Skip to content

Commit 77b7d6a

Browse files
authored
Merge pull request #68 from erincdustin/OCP-418
Regen to API v1.0.235
2 parents a42ba45 + 0b627fa commit 77b7d6a

9 files changed

Lines changed: 19 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ All notable changes to the ordercloud-javascript-sdk will be documented in this
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [4.6.6] - 20220-04-18
8+
9+
## [4.6.7] - 2022-04-27
10+
### Fixed
11+
- DecodedToken.role was not properly typed. It is now (ApiRole[] | ApiRole | undefined)
12+
### Added
13+
- SDK up to date with API v1.0.235
14+
15+
## [4.6.6] - 2022-04-18
916
### Fixed
1017
- bug where new models from v4.6.5 were not being bundled in the final output
1118

codegen/templates/models/DecodedToken.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface DecodedToken {
2222
* has access to, read more about security profile roles
2323
* [here](https://developer.ordercloud.io/documentation/platform-guides/authentication/security-profiles)
2424
*/
25-
role: Array<SecurityProfile['Roles']>
25+
role: Array<SecurityProfile['Roles']> | SecurityProfile['Roles']
2626

2727
/**
2828
* the issuer of the token - should always be https://auth.ordercloud.io

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ordercloud-javascript-sdk",
33
"description": "The offical Javascript SDK for the Ordercloud ecommerce API",
44
"author": "Four51 OrderCloud",
5-
"version": "4.6.6",
5+
"version": "4.6.7",
66
"main": "dist/index.js",
77
"umd:main": "dist/index.umd.js",
88
"module": "dist/index.esm.js",

src/api/IntegrationEvents.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class IntegrationEvents {
6262
* Create a new integration event. If ID is provided and an object with that ID already exists, a 409 (conflict) error is returned.
6363
* Check out the {@link https://ordercloud.io/api-reference/seller/integration-events/create|api docs} for more info
6464
*
65-
* @param integrationEvent Required fields: ElevatedRoles, CustomImplementationUrl, Name, HashKey
65+
* @param integrationEvent Required fields: CustomImplementationUrl, Name, HashKey
6666
* @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation).
6767
* @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request.
6868
* @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs.
@@ -105,7 +105,7 @@ class IntegrationEvents {
105105
* Check out the {@link https://ordercloud.io/api-reference/seller/integration-events/save|api docs} for more info
106106
*
107107
* @param integrationEventID ID of the integration event.
108-
* @param integrationEvent Required fields: ElevatedRoles, CustomImplementationUrl, Name, HashKey
108+
* @param integrationEvent Required fields: CustomImplementationUrl, Name, HashKey
109109
* @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation).
110110
* @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request.
111111
* @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs.

src/models/ApiRole.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export type ApiRole = 'ApiClientAdmin' |
2727
'FullAccess' |
2828
'IncrementorAdmin' |
2929
'IncrementorReader' |
30-
'InventoryAdmin' |
3130
'LocaleReader' |
3231
'LocaleAdmin' |
3332
'MeAddressAdmin' |

src/models/DecodedToken.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface DecodedToken {
2222
* has access to, read more about security profile roles
2323
* [here](https://developer.ordercloud.io/documentation/platform-guides/authentication/security-profiles)
2424
*/
25-
role: Array<SecurityProfile['Roles']>
25+
role: Array<SecurityProfile['Roles']> | SecurityProfile['Roles']
2626

2727
/**
2828
* the issuer of the token - should always be https://auth.ordercloud.io

src/models/IntegrationEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ApiRole } from './ApiRole';
22
import { IntegrationEventType } from './IntegrationEventType';
33

44
export interface IntegrationEvent {
5-
ElevatedRoles: ApiRole[]
5+
ElevatedRoles?: ApiRole[]
66
ID?: string
77
ConfigData?: any
88
EventType?: IntegrationEventType

src/models/OrderWorksheet.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
import { Order } from './Order';
22
import { LineItem } from './LineItem';
3+
import { OrderPromotion } from './OrderPromotion';
34
import { ShipEstimateResponse } from './ShipEstimateResponse';
45
import { OrderCalculateResponse } from './OrderCalculateResponse';
56
import { OrderSubmitResponse } from './OrderSubmitResponse';
67
import { OrderSubmitForApprovalResponse } from './OrderSubmitForApprovalResponse';
78
import { OrderApprovedResponse } from './OrderApprovedResponse';
89

9-
export interface OrderWorksheet<TFromUserXp = any, TBillingAddressXp = any, TOrderXp = any, TProductXp = any, TVariantXp = any, TShippingAddressXp = any, TShipFromAddressXp = any, TLineItemsXp = any, TShipEstimatesXp = any, TShipEstimateResponseXp = any, TOrderCalculateResponseXp = any, TOrderSubmitResponseXp = any, TOrderSubmitForApprovalResponseXp = any, TOrderApprovedResponseXp = any> {
10+
export interface OrderWorksheet<TFromUserXp = any, TBillingAddressXp = any, TOrderXp = any, TProductXp = any, TVariantXp = any, TShippingAddressXp = any, TShipFromAddressXp = any, TLineItemsXp = any, TOrderPromotionsXp = any, TShipEstimatesXp = any, TShipEstimateResponseXp = any, TOrderCalculateResponseXp = any, TOrderSubmitResponseXp = any, TOrderSubmitForApprovalResponseXp = any, TOrderApprovedResponseXp = any> {
1011
Order?: Order<TOrderXp,TFromUserXp,TBillingAddressXp>
1112
LineItems?: LineItem<TLineItemsXp,TProductXp,TVariantXp,TShippingAddressXp,TShipFromAddressXp>[]
13+
OrderPromotions?: OrderPromotion<TOrderPromotionsXp>[]
1214
ShipEstimateResponse?: ShipEstimateResponse<TShipEstimateResponseXp,TShipEstimatesXp>
1315
OrderCalculateResponse?: OrderCalculateResponse<TOrderCalculateResponseXp>
1416
OrderSubmitResponse?: OrderSubmitResponse<TOrderSubmitResponseXp>

0 commit comments

Comments
 (0)