Skip to content

Commit

Permalink
build(codegen): updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Auto Mation committed Oct 24, 2023
1 parent 00c6176 commit 6fae30e
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .changeset/great-teachers-camp.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@commercetools/importapi-sdk": minor
'@commercetools/importapi-sdk': minor
---

**Import changes**
Expand Down
2 changes: 1 addition & 1 deletion .changeset/proud-books-count.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@commercetools/history-sdk": minor
'@commercetools/history-sdk': minor
---

**History changes**
Expand Down
2 changes: 1 addition & 1 deletion .changeset/tricky-houses-invite.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@commercetools/platform-sdk": minor
'@commercetools/platform-sdk': minor
---

**Api changes**
Expand Down
76 changes: 38 additions & 38 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,32 @@
**Api changes**

<details>
<summary>Removed Type(s)</summary>
<summary>Added Property(s)</summary>

- :warning: removed type `CustomerMessagePayload`
- added property `discountOnTotalPrice` to type `Cart`
- added property `discountOnTotalPrice` to type `StagedOrder`
- added property `custom` to type `StagedOrderAddParcelToDeliveryAction`
- added property `discountOnTotalPrice` to type `Order`
- added property `custom` to type `OrderAddParcelToDeliveryAction`
</details>

<details>
<summary>Added Enum(s)</summary>

- added enum `CreateApprovalRules` to type `Permission`
- added enum `UpdateApprovalRules` to type `Permission`
- added enum `UpdateApprovalFlows` to type `Permission`
- added enum `approval-flow` to type `ReferenceTypeId`
- added enum `approval-rule` to type `ReferenceTypeId`
- added enum `customer-email-token` to type `ReferenceTypeId`
- added enum `customer-password-token` to type `ReferenceTypeId`
- added enum `approval-flow` to type `ChangeSubscriptionResourceTypeId`
- added enum `approval-rule` to type `ChangeSubscriptionResourceTypeId`
- added enum `approval-flow` to type `MessageSubscriptionResourceTypeId`
- added enum `approval-rule` to type `MessageSubscriptionResourceTypeId`
- added enum `customer-email-token` to type `MessageSubscriptionResourceTypeId`
- added enum `customer-group` to type `MessageSubscriptionResourceTypeId`
- added enum `customer-password-token` to type `MessageSubscriptionResourceTypeId`
</details>

<details>
Expand Down Expand Up @@ -107,32 +130,9 @@
</details>

<details>
<summary>Added Resource(s)</summary>

- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-rules`
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-flows`
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-rules/{ID}`
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-rules/key={key}`
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-flows/{ID}`
</details>

<details>
<summary>Added Enum(s)</summary>
<summary>Removed Type(s)</summary>

- added enum `CreateApprovalRules` to type `Permission`
- added enum `UpdateApprovalRules` to type `Permission`
- added enum `UpdateApprovalFlows` to type `Permission`
- added enum `approval-flow` to type `ReferenceTypeId`
- added enum `approval-rule` to type `ReferenceTypeId`
- added enum `customer-email-token` to type `ReferenceTypeId`
- added enum `customer-password-token` to type `ReferenceTypeId`
- added enum `approval-flow` to type `ChangeSubscriptionResourceTypeId`
- added enum `approval-rule` to type `ChangeSubscriptionResourceTypeId`
- added enum `approval-flow` to type `MessageSubscriptionResourceTypeId`
- added enum `approval-rule` to type `MessageSubscriptionResourceTypeId`
- added enum `customer-email-token` to type `MessageSubscriptionResourceTypeId`
- added enum `customer-group` to type `MessageSubscriptionResourceTypeId`
- added enum `customer-password-token` to type `MessageSubscriptionResourceTypeId`
- :warning: removed type `CustomerMessagePayload`
</details>

<details>
Expand Down Expand Up @@ -314,13 +314,13 @@
</details>

<details>
<summary>Added Property(s)</summary>
<summary>Added Resource(s)</summary>

- added property `discountOnTotalPrice` to type `Cart`
- added property `discountOnTotalPrice` to type `StagedOrder`
- added property `custom` to type `StagedOrderAddParcelToDeliveryAction`
- added property `discountOnTotalPrice` to type `Order`
- added property `custom` to type `OrderAddParcelToDeliveryAction`
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-rules`
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-flows`
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-rules/{ID}`
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-rules/key={key}`
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-flows/{ID}`
</details>

**Import changes**
Expand All @@ -334,16 +334,16 @@
**History changes**

<details>
<summary>Changed Property(s)</summary>
<summary>Added Property(s)</summary>

- :warning: changed property `previousValue` of type `SetNameChange` from type `LocalizedString` to `string`
- :warning: changed property `nextValue` of type `SetNameChange` from type `LocalizedString` to `string`
- added property `businessUnit` to type `Record`
</details>

<details>
<summary>Added Property(s)</summary>
<summary>Changed Property(s)</summary>

- added property `businessUnit` to type `Record`
- :warning: changed property `previousValue` of type `SetNameChange` from type `LocalizedString` to `string`
- :warning: changed property `nextValue` of type `SetNameChange` from type `LocalizedString` to `string`
</details>

<details>
Expand Down
3 changes: 2 additions & 1 deletion packages/history-sdk/src/generated/shared/utils/uri-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export function buildRelativeUri(commonRequest: ClientRequest): string {
var uri: string = commonRequest.uriTemplate as string

for (const param in pathMap) {
uri = uri.replace(`{${param}}`, `${pathMap[param]}`)
const value = encodeURIComponent(`${pathMap[param]}`)
uri = uri.replace(`{${param}}`, `${value}`)
}

const resQuery = formatQueryString(commonRequest.queryParams || {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export function buildRelativeUri(commonRequest: ClientRequest): string {
var uri: string = commonRequest.uriTemplate as string

for (const param in pathMap) {
uri = uri.replace(`{${param}}`, `${pathMap[param]}`)
const value = encodeURIComponent(`${pathMap[param]}`)
uri = uri.replace(`{${param}}`, `${value}`)
}

const resQuery = formatQueryString(commonRequest.queryParams || {})
Expand Down
3 changes: 2 additions & 1 deletion packages/ml-sdk/src/generated/shared/utils/uri-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export function buildRelativeUri(commonRequest: ClientRequest): string {
var uri: string = commonRequest.uriTemplate as string

for (const param in pathMap) {
uri = uri.replace(`{${param}}`, `${pathMap[param]}`)
const value = encodeURIComponent(`${pathMap[param]}`)
uri = uri.replace(`{${param}}`, `${value}`)
}

const resQuery = formatQueryString(commonRequest.queryParams || {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export function buildRelativeUri(commonRequest: ClientRequest): string {
var uri: string = commonRequest.uriTemplate as string

for (const param in pathMap) {
uri = uri.replace(`{${param}}`, `${pathMap[param]}`)
const value = encodeURIComponent(`${pathMap[param]}`)
uri = uri.replace(`{${param}}`, `${value}`)
}

const resQuery = formatQueryString(commonRequest.queryParams || {})
Expand Down
1 change: 0 additions & 1 deletion packages/ts-sdk-apm/src/apm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import type {
Next,
OTelemetryMiddlewareOptions,
} from '../types/types'
import packageJson from '../package.json'

/**
* default newrelic APM and
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,4 @@ cfb34c1d1b7549d9bfe759d13ca9357646371e72
da5022ed759c0ebb3b80c15eb62488c7584dfeba
b25b7cc02df72845f3045528120267d1b6330e0a
8e6bc39ae805ea9d9f046fb70734980f82bbb272
8e6bc39ae805ea9d9f046fb70734980f82bbb272

0 comments on commit 6fae30e

Please sign in to comment.