Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 21 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,63 @@

## @commercetools/[email protected] (2020-04-28)

#### :house: Maintenance
* `product-json-to-csv`
* [#1538](https://github.com/commercetools/nodejs/pull/1538) fix(deps): update dependency archiver to v4 ([@renovate[bot]](https://github.com/apps/renovate))

- `product-json-to-csv`
- [#1538](https://github.com/commercetools/nodejs/pull/1538) fix(deps): update dependency archiver to v4 ([@renovate[bot]](https://github.com/apps/renovate))

#### Committers: 2

- Beniasaad Achraf ([@acbeni](https://github.com/acbeni))
- vineet kumar ([@VineetKumarKushwaha](https://github.com/VineetKumarKushwaha))


## @commercetools/[email protected] (2020-04-28)

#### :house: Maintenance
* `product-json-to-csv`
* [#1538](https://github.com/commercetools/nodejs/pull/1538) fix(deps): update dependency archiver to v4 ([@renovate[bot]](https://github.com/apps/renovate))

- `product-json-to-csv`
- [#1538](https://github.com/commercetools/nodejs/pull/1538) fix(deps): update dependency archiver to v4 ([@renovate[bot]](https://github.com/apps/renovate))

#### Committers: 2

- Beniasaad Achraf ([@acbeni](https://github.com/acbeni))
- vineet kumar ([@VineetKumarKushwaha](https://github.com/VineetKumarKushwaha))


## @commercetools/[email protected] (2020-04-28)

#### :house: Maintenance
* `product-json-to-csv`
* [#1538](https://github.com/commercetools/nodejs/pull/1538) fix(deps): update dependency archiver to v4 ([@renovate[bot]](https://github.com/apps/renovate))

- `product-json-to-csv`
- [#1538](https://github.com/commercetools/nodejs/pull/1538) fix(deps): update dependency archiver to v4 ([@renovate[bot]](https://github.com/apps/renovate))

#### Committers: 2

- Beniasaad Achraf ([@acbeni](https://github.com/acbeni))
- vineet kumar ([@VineetKumarKushwaha](https://github.com/VineetKumarKushwaha))


## @commercetools/[email protected] (2020-04-28)

#### :house: Maintenance
* `product-json-to-csv`
* [#1538](https://github.com/commercetools/nodejs/pull/1538) fix(deps): update dependency archiver to v4 ([@renovate[bot]](https://github.com/apps/renovate))

- `product-json-to-csv`
- [#1538](https://github.com/commercetools/nodejs/pull/1538) fix(deps): update dependency archiver to v4 ([@renovate[bot]](https://github.com/apps/renovate))

#### Committers: 2

- Beniasaad Achraf ([@acbeni](https://github.com/acbeni))
- vineet kumar ([@VineetKumarKushwaha](https://github.com/VineetKumarKushwaha))


## @commercetools/[email protected] (2020-04-28)

#### :house: Maintenance
* `product-json-to-csv`
* [#1538](https://github.com/commercetools/nodejs/pull/1538) fix(deps): update dependency archiver to v4 ([@renovate[bot]](https://github.com/apps/renovate))

- `product-json-to-csv`
- [#1538](https://github.com/commercetools/nodejs/pull/1538) fix(deps): update dependency archiver to v4 ([@renovate[bot]](https://github.com/apps/renovate))

#### Committers: 2

- Beniasaad Achraf ([@acbeni](https://github.com/acbeni))
- vineet kumar ([@VineetKumarKushwaha](https://github.com/VineetKumarKushwaha))

## @commercetools/[email protected] (2020-04-24)

#### :bug: Bug Fix
Expand Down
6 changes: 3 additions & 3 deletions packages/sync-actions/test/cart-discounts-sync.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ describe('Cart Discounts Exports', () => {
expect.arrayContaining([
{
action: 'setKey',
key: 'key'
}
key: 'key',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm these formatting changes shouldnt be here, could you please run yarn format inside the root folder to fix them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i run yarn format inside the root folder, but i got them still, i dont know why i got them

},
])
)
})
Expand Down Expand Up @@ -441,7 +441,7 @@ describe('Cart Discounts Actions', () => {
{
action: 'setKey',
key: 'key-now',
}
},
]
const actual = cartDiscountsSync.buildActions(now, before)
expect(actual).toEqual(expected)
Expand Down
2 changes: 1 addition & 1 deletion packages/sync-actions/test/product-discounts-sync.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ describe('Actions', () => {
{
action: 'setKey',
key: 'key-now',
}
},
]
const actual = productDiscountsSync.buildActions(now, before)
expect(actual).toEqual(expected)
Expand Down
2 changes: 1 addition & 1 deletion packages/sync-actions/test/zones.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe('Actions', () => {
{
action: 'setKey',
key: 'key-now',
}
},
]
expect(actual).toEqual(expected)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* `Y'
*
*/
import { ShippingMethodPagedQueryResponse } from 'models/shipping-method'
import { QueryParam, executeRequest } from 'shared/utils/common-types'
import { ApiRequest } from 'shared/utils/requests-utils'

Expand All @@ -24,17 +25,17 @@ export class ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartRequestB
baseUri?: string
}
) {}
public get(methodArgs?: {
queryArgs?: {
cartId?: string | string[]
public get(methodArgs: {
queryArgs: {
cartId: string | string[]
expand?: string | string[]
[key: string]: QueryParam
}
headers?: {
[key: string]: string
}
}): ApiRequest<any> {
return new ApiRequest<any>(
}): ApiRequest<ShippingMethodPagedQueryResponse> {
return new ApiRequest<ShippingMethodPagedQueryResponse>(
{
baseUri: this.args.baseUri,
method: 'GET',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* `Y'
*
*/
import { ShippingMethodPagedQueryResponse } from 'models/shipping-method'
import { QueryParam, executeRequest } from 'shared/utils/common-types'
import { ApiRequest } from 'shared/utils/requests-utils'

Expand All @@ -23,17 +24,17 @@ export class ByProjectKeyShippingMethodsMatchingCartRequestBuilder {
baseUri?: string
}
) {}
public get(methodArgs?: {
queryArgs?: {
cartId?: string | string[]
public get(methodArgs: {
queryArgs: {
cartId: string | string[]
expand?: string | string[]
[key: string]: QueryParam
}
headers?: {
[key: string]: string
}
}): ApiRequest<any> {
return new ApiRequest<any>(
}): ApiRequest<ShippingMethodPagedQueryResponse> {
return new ApiRequest<ShippingMethodPagedQueryResponse>(
{
baseUri: this.args.baseUri,
method: 'GET',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* `Y'
*
*/
import { ShippingMethodPagedQueryResponse } from 'models/shipping-method'
import { QueryParam, executeRequest } from 'shared/utils/common-types'
import { ApiRequest } from 'shared/utils/requests-utils'

Expand All @@ -34,8 +35,8 @@ export class ByProjectKeyShippingMethodsMatchingLocationRequestBuilder {
headers?: {
[key: string]: string
}
}): ApiRequest<any> {
return new ApiRequest<any>(
}): ApiRequest<ShippingMethodPagedQueryResponse> {
return new ApiRequest<ShippingMethodPagedQueryResponse>(
{
baseUri: this.args.baseUri,
method: 'GET',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* `Y'
*
*/
import { ShippingMethodPagedQueryResponse } from 'models/shipping-method'
import { QueryParam, executeRequest } from 'shared/utils/common-types'
import { ApiRequest } from 'shared/utils/requests-utils'

Expand All @@ -33,8 +34,8 @@ export class ByProjectKeyShippingMethodsMatchingOrdereditRequestBuilder {
headers?: {
[key: string]: string
}
}): ApiRequest<any> {
return new ApiRequest<any>(
}): ApiRequest<ShippingMethodPagedQueryResponse> {
return new ApiRequest<ShippingMethodPagedQueryResponse>(
{
baseUri: this.args.baseUri,
method: 'GET',
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-sdk/src/generated/gen.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
hash=473aee2ee1012c357b455cb1b7b11c87072cbdfc
hash=f66612a2421a3e46a37fdfd29a19f87a3677c000
4 changes: 2 additions & 2 deletions packages/typescript-sdk/src/generated/models/cart-discount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ export interface CartDiscountResourceIdentifier {
export type CartDiscountTarget =
| MultiBuyCustomLineItemsTarget
| MultiBuyLineItemsTarget
| CartDiscountLineItemsTarget
| CartDiscountShippingCostTarget
| CartDiscountCustomLineItemsTarget
| CartDiscountShippingCostTarget
| CartDiscountLineItemsTarget
export interface CartDiscountCustomLineItemsTarget {
readonly type: 'customLineItems'
readonly predicate: string
Expand Down
6 changes: 4 additions & 2 deletions packages/typescript-sdk/src/generated/models/cart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,8 @@ export type DiscountCodeState =
| 'DoesNotMatchCart'
| 'MatchesCart'
| 'MaxApplicationReached'
| 'ApplicationStoppedByPreviousDiscount'
| 'NotValid'
export interface DiscountedLineItemPortion {
readonly discount: CartDiscountReference
readonly discountedAmount: TypedMoney
Expand Down Expand Up @@ -645,8 +647,8 @@ export interface ShippingInfo {
}
export type ShippingMethodState = 'DoesNotMatchCart' | 'MatchesCart'
export type ShippingRateInput =
| ClassificationShippingRateInput
| ScoreShippingRateInput
| ClassificationShippingRateInput
export interface ClassificationShippingRateInput {
readonly type: 'Classification'
readonly key: string
Expand All @@ -657,8 +659,8 @@ export interface ScoreShippingRateInput {
readonly score: number
}
export type ShippingRateInputDraft =
| ClassificationShippingRateInputDraft
| ScoreShippingRateInputDraft
| ClassificationShippingRateInputDraft
export interface ClassificationShippingRateInputDraft {
readonly type: 'Classification'
readonly key: string
Expand Down
8 changes: 4 additions & 4 deletions packages/typescript-sdk/src/generated/models/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,10 @@ export type Reference =
| TaxCategoryReference
| TypeReference
| ZoneReference
| CategoryReference
| CartDiscountReference
| CartReference
| CategoryReference
| ChannelReference
| CartDiscountReference
export type ReferenceTypeId =
| 'cart'
| 'cart-discount'
Expand Down Expand Up @@ -358,9 +358,9 @@ export type ResourceIdentifier =
| TaxCategoryResourceIdentifier
| TypeResourceIdentifier
| ZoneResourceIdentifier
| ChannelResourceIdentifier
| CategoryResourceIdentifier
| CartDiscountResourceIdentifier
| ChannelResourceIdentifier
| CartResourceIdentifier
export interface ScopedPrice {
readonly id: string
Expand All @@ -378,7 +378,7 @@ export interface ScopedPrice {
readonly discounted?: DiscountedPrice
readonly custom?: CustomFields
}
export type TypedMoney = HighPrecisionMoney | CentPrecisionMoney
export type TypedMoney = CentPrecisionMoney | HighPrecisionMoney
export interface CentPrecisionMoney {
readonly type: 'centPrecision'
readonly fractionDigits: number
Expand Down
12 changes: 6 additions & 6 deletions packages/typescript-sdk/src/generated/models/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ export type ErrorObject =
| RequiredFieldError
| ResourceNotFoundError
| ShippingMethodDoesNotMatchCartError
| DiscountCodeNonApplicableError
| AccessDeniedError
| DuplicateAttributeValueError
| DuplicateVariantValuesError
| DuplicateAttributeValuesError
| ConcurrentModificationError
| DuplicateFieldWithConflictingResourceError
| DuplicateVariantValuesError
| DiscountCodeNonApplicableError
| DuplicatePriceScopeError
| DuplicateAttributeValueError
| EnumValueIsUsedError
| DuplicateFieldError
| DuplicatePriceScopeError
| DuplicateFieldWithConflictingResourceError
| DuplicateAttributeValuesError
export interface AccessDeniedError {
readonly code: 'access_denied'
readonly message: string
Expand Down
56 changes: 28 additions & 28 deletions packages/typescript-sdk/src/generated/models/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,26 +110,26 @@ export type Message =
| ReviewCreatedMessage
| ReviewRatingSetMessage
| ReviewStateTransitionMessage
| CustomerCreatedMessage
| CategorySlugChangedMessage
| DeliveryAddedMessage
| CustomerAddressRemovedMessage
| CustomerEmailVerifiedMessage
| CustomerAddressAddedMessage
| CustomerCompanyNameSetMessage
| CustomerGroupSetMessage
| CustomerDateOfBirthSetMessage
| CategorySlugChangedMessage
| CustomerAddressChangedMessage
| DeliveryAddressSetMessage
| DeliveryItemsUpdatedMessage
| InventoryEntryQuantitySetMessage
| LineItemStateTransitionMessage
| CustomerEmailChangedMessage
| CustomerAddressRemovedMessage
| CustomerCompanyNameSetMessage
| CustomLineItemStateTransitionMessage
| CustomerGroupSetMessage
| DeliveryAddedMessage
| InventoryEntryCreatedMessage
| CustomerCreatedMessage
| CustomerAddressAddedMessage
| DeliveryItemsUpdatedMessage
| DeliveryRemovedMessage
| InventoryEntryDeletedMessage
| LineItemStateTransitionMessage
| InventoryEntryQuantitySetMessage
| CategoryCreatedMessage
| CustomLineItemStateTransitionMessage
| DeliveryRemovedMessage
| DeliveryAddressSetMessage
export interface CategoryCreatedMessage {
readonly type: 'CategoryCreated'
readonly id: string
Expand Down Expand Up @@ -1278,26 +1278,26 @@ export type MessagePayload =
| ReviewCreatedMessagePayload
| ReviewRatingSetMessagePayload
| ReviewStateTransitionMessagePayload
| DeliveryItemsUpdatedMessagePayload
| CustomerAddressChangedMessagePayload
| CustomerEmailVerifiedMessagePayload
| DeliveryAddedMessagePayload
| InventoryEntryQuantitySetMessagePayload
| LineItemStateTransitionMessagePayload
| CustomerGroupSetMessagePayload
| CustomLineItemStateTransitionMessagePayload
| CustomerCompanyNameSetMessagePayload
| CategorySlugChangedMessagePayload
| InventoryEntryQuantitySetMessagePayload
| CustomerAddressAddedMessagePayload
| CustomerDateOfBirthSetMessagePayload
| InventoryEntryDeletedMessagePayload
| CustomerEmailChangedMessagePayload
| CustomerCreatedMessagePayload
| CategoryCreatedMessagePayload
| CustomerAddressChangedMessagePayload
| InventoryEntryCreatedMessagePayload
| DeliveryRemovedMessagePayload
| DeliveryAddedMessagePayload
| InventoryEntryDeletedMessagePayload
| CustomerDateOfBirthSetMessagePayload
| DeliveryAddressSetMessagePayload
| CategorySlugChangedMessagePayload
| CustomerCreatedMessagePayload
| CustomerAddressRemovedMessagePayload
| CategoryCreatedMessagePayload
| DeliveryItemsUpdatedMessagePayload
| DeliveryAddressSetMessagePayload
| CustomerEmailVerifiedMessagePayload
| DeliveryRemovedMessagePayload
| CustomerCompanyNameSetMessagePayload
| CustomerGroupSetMessagePayload
| CustomerAddressAddedMessagePayload
export interface CategoryCreatedMessagePayload {
readonly type: 'CategoryCreated'
readonly category: Category
Expand Down
Loading