New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@commercetools/platform-sdk

Package Overview
Dependencies
Maintainers
16
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools/platform-sdk - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

dist/generated/client/carts/by-project-key-me-carts-key-by-key-request-builder.d.ts

5

dist/generated/client/carts/by-project-key-me-carts-by-id-request-builder.d.ts

@@ -13,4 +13,3 @@ /**

*/
import { Update } from '../../models/common'
import { MyCart } from '../../models/me'
import { MyCart, MyCartUpdate } from '../../models/me'
import { executeRequest, QueryParam } from '../../shared/utils/common-types'

@@ -55,3 +54,3 @@ import { ApiRequest } from '../../shared/utils/requests-utils'

}
body: Update
body: MyCartUpdate
headers?: {

@@ -58,0 +57,0 @@ [key: string]: string

4

dist/generated/client/carts/by-project-key-me-carts-request-builder.d.ts

@@ -18,2 +18,3 @@ /**

import { ByProjectKeyMeCartsByIDRequestBuilder } from './by-project-key-me-carts-by-id-request-builder'
import { ByProjectKeyMeCartsKeyByKeyRequestBuilder } from './by-project-key-me-carts-key-by-key-request-builder'
export declare class ByProjectKeyMeCartsRequestBuilder {

@@ -35,2 +36,5 @@ protected readonly args: {

withId(childPathArgs: { ID: string }): ByProjectKeyMeCartsByIDRequestBuilder
keyWithKeyValue(childPathArgs: {
key: string
}): ByProjectKeyMeCartsKeyByKeyRequestBuilder
/**

@@ -37,0 +41,0 @@ * Query carts

@@ -13,4 +13,3 @@ /**

*/
import { Update } from '../../models/common'
import { MyCustomer } from '../../models/me'
import { MyCustomer, MyCustomerUpdate } from '../../models/me'
import { executeRequest, QueryParam } from '../../shared/utils/common-types'

@@ -78,6 +77,6 @@ import { ApiRequest } from '../../shared/utils/requests-utils'

/**
* Create my customer
* Update my customer
*/
post(methodArgs: {
body: Update
body: MyCustomerUpdate
headers?: {

@@ -84,0 +83,0 @@ [key: string]: string

@@ -152,5 +152,5 @@ /**

| MultiBuyLineItemsTarget
| CartDiscountShippingCostTarget
| CartDiscountLineItemsTarget
| CartDiscountCustomLineItemsTarget
| CartDiscountShippingCostTarget
export interface CartDiscountCustomLineItemsTarget {

@@ -157,0 +157,0 @@ readonly type: 'customLineItems'

@@ -569,2 +569,8 @@ /**

readonly shippingDetails?: ItemShippingDetails
/**
* The date when the LineItem was last modified by one of the following actions
* setLineItemShippingDetails, addLineItem, removeLineItem, or changeLineItemQuantity.
* Optional only for backwards compatible reasons. When the LineItem is created lastModifiedAt is set to addedAt.
*/
readonly lastModifiedAt?: string
}

@@ -675,4 +681,4 @@ export interface LineItemDraft {

export declare type ShippingRateInputDraft =
| ClassificationShippingRateInputDraft
| ScoreShippingRateInputDraft
| ClassificationShippingRateInputDraft
export interface ClassificationShippingRateInputDraft {

@@ -1007,2 +1013,23 @@ readonly type: 'Classification'

}
export interface CustomLineItemImportDraft {
readonly name: LocalizedString
/**
* The amount of a CustomLineItem in the cart.
* Must be a positive integer.
*/
readonly quantity: number
/**
* The cost to add to the cart. The amount can be negative.
*/
readonly money: Money
readonly slug: string
readonly state?: ItemState[]
readonly taxRate?: TaxRate
readonly taxCategory?: TaxCategoryResourceIdentifier
/**
* The custom fields.
*/
readonly custom?: CustomFieldsDraft
readonly shippingDetails?: ItemShippingDetailsDraft
}
export declare type ProductPublishScope = 'All' | 'Prices'

@@ -280,20 +280,24 @@ /**

| 'customer'
| 'customer-email-token'
| 'customer-group'
| 'customer-password-token'
| 'discount-code'
| 'extension'
| 'inventory-entry'
| 'key-value-document'
| 'order'
| 'order-edit'
| 'payment'
| 'product'
| 'product-discount'
| 'product-type'
| 'product-discount'
| 'order'
| 'review'
| 'shipping-method'
| 'shopping-list'
| 'shipping-method'
| 'state'
| 'store'
| 'subscription'
| 'tax-category'
| 'type'
| 'zone'
| 'inventory-entry'
| 'order-edit'
export declare type ResourceIdentifier =

@@ -319,4 +323,4 @@ | CustomerGroupResourceIdentifier

| CartResourceIdentifier
| CategoryResourceIdentifier
| ChannelResourceIdentifier
| CategoryResourceIdentifier
| CartDiscountResourceIdentifier

@@ -362,4 +366,4 @@ export interface ScopedPrice {

export declare type TypedMoneyDraft =
| HighPrecisionMoneyDraft
| CentPrecisionMoneyDraft
| HighPrecisionMoneyDraft
export interface CentPrecisionMoneyDraft {

@@ -366,0 +370,0 @@ readonly type: 'centPrecision'

@@ -13,2 +13,3 @@ /**

*/
import { CartResourceIdentifier } from './cart'
import { Address, BaseResource, CreatedBy, LastModifiedBy } from './common'

@@ -146,2 +147,6 @@ import {

/**
* Identifies a single cart that will be assigned to the new customer account.
*/
readonly anonymousCart?: CartResourceIdentifier
/**
* Identifies carts and orders belonging to an anonymous session that will be assigned to the new customer account.

@@ -240,2 +245,3 @@ */

readonly anonymousCartId?: string
readonly anonymousCart?: CartResourceIdentifier
readonly anonymousCartSignInMode?: AnonymousCartSignInMode

@@ -242,0 +248,0 @@ readonly anonymousId?: string

@@ -76,21 +76,21 @@ /**

| WeakPasswordError
| EnumKeyAlreadyExistsError
| DuplicateFieldError
| AttributeDefinitionAlreadyExistsError
| DuplicateFieldWithConflictingResourceError
| DuplicateVariantValuesError
| DuplicateAttributeValuesError
| DuplicatePriceScopeError
| EnumValuesMustMatchError
| AttributeNameDoesNotExistError
| ConcurrentModificationError
| EnumValueIsUsedError
| DuplicateFieldError
| AnonymousIdAlreadyInUseError
| AccessDeniedError
| AttributeDefinitionTypeConflictError
| DuplicateAttributeValueError
| DuplicateAttributeValuesError
| DiscountCodeNonApplicableError
| DuplicateEnumValuesError
| DuplicateVariantValuesError
| ConcurrentModificationError
| EnumKeyDoesNotExistError
| DiscountCodeNonApplicableError
| DuplicatePriceScopeError
| EnumValuesMustMatchError
| EnumKeyAlreadyExistsError
| AccessDeniedError
| EditPreviewFailedError
| EnumValueIsUsedError
| DuplicateEnumValuesError
| AttributeDefinitionAlreadyExistsError
export interface AccessDeniedError {

@@ -219,5 +219,4 @@ readonly code: 'access_denied'

readonly message: string
readonly localizedMessage?: LocalizedString
readonly extensionExtraInfo?: any
readonly errorByExtension: ErrorByExtension
readonly extensionId: string
readonly extensionKey?: string
}

@@ -224,0 +223,0 @@ export interface ExtensionUpdateActionsFailedError {

@@ -73,4 +73,4 @@ /**

export declare type ExtensionHttpDestinationAuthentication =
| ExtensionAzureFunctionsAuthentication
| ExtensionAuthorizationHeaderAuthentication
| ExtensionAzureFunctionsAuthentication
export interface ExtensionAuthorizationHeaderAuthentication {

@@ -77,0 +77,0 @@ readonly type: 'AuthorizationHeader'

@@ -151,3 +151,9 @@ /**

readonly itemShippingAddresses?: Address[]
readonly store?: StoreKeyReference
readonly discountCodes?: DiscountCodeInfo[]
}
export interface MyCartUpdate {
readonly version: number
readonly actions: MyCartUpdateAction[]
}
export declare type MyCartUpdateAction =

@@ -242,2 +248,6 @@ | MyCartAddDiscountCodeAction

}
export interface MyCustomerUpdate {
readonly version: number
readonly actions: MyCustomerUpdateAction[]
}
export declare type MyCustomerUpdateAction =

@@ -244,0 +254,0 @@ | MyCustomerAddAddressAction

@@ -111,22 +111,22 @@ /**

| ReviewStateTransitionMessage
| LineItemStateTransitionMessage
| CustomerCompanyNameSetMessage
| CustomerEmailVerifiedMessage
| CustomLineItemStateTransitionMessage
| CustomerDateOfBirthSetMessage
| CustomerAddressAddedMessage
| CustomerAddressChangedMessage
| InventoryEntryCreatedMessage
| DeliveryAddedMessage
| InventoryEntryDeletedMessage
| CustomerEmailChangedMessage
| DeliveryAddedMessage
| CustomerDateOfBirthSetMessage
| CategoryCreatedMessage
| CustomerGroupSetMessage
| DeliveryRemovedMessage
| CustomerCreatedMessage
| DeliveryAddressSetMessage
| InventoryEntryCreatedMessage
| DeliveryRemovedMessage
| CustomerAddressRemovedMessage
| CustomerEmailVerifiedMessage
| CustomerGroupSetMessage
| CategoryCreatedMessage
| CategorySlugChangedMessage
| DeliveryItemsUpdatedMessage
| CustomLineItemStateTransitionMessage
| InventoryEntryQuantitySetMessage
| CategorySlugChangedMessage
| CustomerCompanyNameSetMessage
| LineItemStateTransitionMessage
| CustomerAddressRemovedMessage
| DeliveryAddressSetMessage
| CustomerEmailChangedMessage
export interface CategoryCreatedMessage {

@@ -159,2 +159,3 @@ readonly type: 'CategoryCreated'

readonly slug: LocalizedString
readonly oldSlug?: LocalizedString
}

@@ -1127,2 +1128,3 @@ export interface CustomLineItemStateTransitionMessage {

readonly slug: LocalizedString
readonly oldSlug?: LocalizedString
}

@@ -1298,22 +1300,22 @@ export interface ProductStateTransitionMessage {

| ReviewStateTransitionMessagePayload
| CustomerCompanyNameSetMessagePayload
| CustomerAddressChangedMessagePayload
| DeliveryItemsUpdatedMessagePayload
| LineItemStateTransitionMessagePayload
| CustomerEmailVerifiedMessagePayload
| InventoryEntryDeletedMessagePayload
| CustomerEmailChangedMessagePayload
| DeliveryAddedMessagePayload
| CustomerAddressAddedMessagePayload
| CategorySlugChangedMessagePayload
| CustomerGroupSetMessagePayload
| DeliveryAddressSetMessagePayload
| DeliveryRemovedMessagePayload
| DeliveryAddedMessagePayload
| CustomerAddressRemovedMessagePayload
| InventoryEntryCreatedMessagePayload
| CategorySlugChangedMessagePayload
| InventoryEntryDeletedMessagePayload
| CustomerDateOfBirthSetMessagePayload
| CustomerAddressAddedMessagePayload
| CustomerCompanyNameSetMessagePayload
| InventoryEntryQuantitySetMessagePayload
| CategoryCreatedMessagePayload
| CustomerAddressChangedMessagePayload
| CustomLineItemStateTransitionMessagePayload
| CustomerDateOfBirthSetMessagePayload
| DeliveryItemsUpdatedMessagePayload
| LineItemStateTransitionMessagePayload
| CustomerCreatedMessagePayload
| InventoryEntryCreatedMessagePayload
| CustomerAddressRemovedMessagePayload
| CustomerEmailChangedMessagePayload
export interface CategoryCreatedMessagePayload {

@@ -1326,2 +1328,3 @@ readonly type: 'CategoryCreated'

readonly slug: LocalizedString
readonly oldSlug?: LocalizedString
}

@@ -1641,2 +1644,3 @@ export interface CustomLineItemStateTransitionMessagePayload {

readonly slug: LocalizedString
readonly oldSlug?: LocalizedString
}

@@ -1643,0 +1647,0 @@ export interface ProductStateTransitionMessagePayload {

@@ -162,4 +162,4 @@ /**

| OrderEditApplied
| OrderEditPreviewSuccess
| OrderEditNotProcessed
| OrderEditPreviewSuccess
export interface OrderEditApplied {

@@ -166,0 +166,0 @@ readonly type: 'Applied'

@@ -118,15 +118,15 @@ /**

export declare type AttributeType =
| AttributeDateTimeType
| AttributeReferenceType
| AttributeBooleanType
| AttributeSetType
| AttributeNestedType
| AttributeEnumType
| AttributeLocalizableTextType
| AttributeLocalizedEnumType
| AttributeDateType
| AttributeBooleanType
| AttributeNumberType
| AttributeSetType
| AttributeMoneyType
| AttributeTextType
| AttributeDateTimeType
| AttributeLocalizedEnumType
| AttributeTimeType
| AttributeEnumType
| AttributeNestedType
| AttributeReferenceType
| AttributeNumberType
export interface AttributeBooleanType {

@@ -133,0 +133,0 @@ readonly name: 'boolean'

@@ -72,4 +72,4 @@ /**

export declare type ShippingRateInputType =
| CartValueType
| CartScoreType
| CartValueType
| CartClassificationType

@@ -76,0 +76,0 @@ export interface CartClassificationType {

@@ -145,4 +145,4 @@ /**

export declare type ShippingRatePriceTier =
| CartClassificationTier
| CartValueTier
| CartClassificationTier
| CartScoreTier

@@ -149,0 +149,0 @@ export interface CartClassificationTier {

@@ -20,2 +20,3 @@ /**

} from './common'
import { CustomFields, CustomFieldsDraft, TypeResourceIdentifier } from './type'
export interface Store extends BaseResource {

@@ -47,2 +48,3 @@ readonly id: string

readonly supplyChannels?: ChannelReference[]
readonly custom?: CustomFields
}

@@ -69,2 +71,3 @@ export interface StoreDraft {

readonly supplyChannels?: ChannelResourceIdentifier[]
readonly custom?: CustomFieldsDraft
}

@@ -97,44 +100,64 @@ export interface StoreKeyReference {

export declare type StoreUpdateAction =
| StoreAddDistributionChannelAction
| StoreAddSupplyChannelAction
| StoreRemoveDistributionChannelAction
| StoreRemoveSupplyChannelAction
| StoreSetCustomFieldAction
| StoreSetCustomTypeAction
| StoreSetDistributionChannelsAction
| StoreSetLanguagesAction
| StoreSetNameAction
| StoresAddDistributionChannelsAction
| StoresAddSupplyChannelsAction
| StoresRemoveDistributionChannelsAction
| StoresRemoveSupplyChannelsAction
| StoresSetDistributionChannelsAction
| StoresSetSupplyChannelsAction
export interface StoreSetLanguagesAction {
readonly action: 'setLanguages'
readonly languages?: string[]
}
export interface StoreSetNameAction {
readonly action: 'setName'
/**
* The updated name of the store
*/
readonly name?: LocalizedString
}
export interface StoresAddDistributionChannelsAction {
| StoreSetSupplyChannelsAction
export interface StoreAddDistributionChannelAction {
readonly action: 'addDistributionChannel'
readonly distributionChannel: ChannelResourceIdentifier
}
export interface StoresAddSupplyChannelsAction {
export interface StoreAddSupplyChannelAction {
readonly action: 'addSupplyChannel'
readonly supplyChannel: ChannelResourceIdentifier
}
export interface StoresRemoveDistributionChannelsAction {
export interface StoreRemoveDistributionChannelAction {
readonly action: 'removeDistributionChannel'
readonly distributionChannel: ChannelResourceIdentifier
}
export interface StoresRemoveSupplyChannelsAction {
export interface StoreRemoveSupplyChannelAction {
readonly action: 'removeSupplyChannel'
readonly supplyChannel: ChannelResourceIdentifier
}
export interface StoresSetDistributionChannelsAction {
export interface StoreSetCustomFieldAction {
readonly action: 'setCustomField'
readonly name: string
readonly value?: any
}
export interface StoreSetCustomTypeAction {
readonly action: 'setCustomType'
/**
* If set, the custom type is reset to this value.
* If absent, the custom type and any existing custom fields are removed.
*/
readonly type?: TypeResourceIdentifier
/**
* A valid JSON object, based on the FieldDefinitions of the Type
* Sets the custom field to this value.
*/
readonly fields?: any
}
export interface StoreSetDistributionChannelsAction {
readonly action: 'setDistributionChannels'
readonly distributionChannels?: ChannelResourceIdentifier[]
}
export interface StoresSetSupplyChannelsAction {
export interface StoreSetLanguagesAction {
readonly action: 'setLanguages'
readonly languages?: string[]
}
export interface StoreSetNameAction {
readonly action: 'setName'
/**
* The updated name of the store
*/
readonly name?: LocalizedString
}
export interface StoreSetSupplyChannelsAction {
readonly action: 'setSupplyChannels'
readonly supplyChannels?: ChannelResourceIdentifier[]
}

@@ -95,6 +95,6 @@ /**

export declare type SubscriptionDelivery =
| ResourceCreatedDelivery
| MessageDelivery
| ResourceUpdatedDelivery
| ResourceDeletedDelivery
| MessageDelivery
| ResourceCreatedDelivery
export interface MessageDelivery {

@@ -128,2 +128,3 @@ readonly notificationType: 'Message'

readonly modifiedAt: string
readonly dataErasure?: boolean
}

@@ -130,0 +131,0 @@ export interface ResourceUpdatedDelivery {

@@ -75,14 +75,14 @@ /**

export declare type FieldType =
| CustomFieldNumberType
| CustomFieldMoneyType
| CustomFieldReferenceType
| CustomFieldLocalizedEnumType
| CustomFieldDateType
| CustomFieldSetType
| CustomFieldBooleanType
| CustomFieldSetType
| CustomFieldStringType
| CustomFieldEnumType
| CustomFieldStringType
| CustomFieldDateType
| CustomFieldLocalizedStringType
| CustomFieldDateTimeType
| CustomFieldTimeType
| CustomFieldDateTimeType
| CustomFieldNumberType
| CustomFieldReferenceType
| CustomFieldMoneyType
| CustomFieldLocalizedStringType
export interface CustomFieldBooleanType {

@@ -89,0 +89,0 @@ readonly name: 'Boolean'

@@ -7,3 +7,3 @@ {

"name": "@commercetools/platform-sdk",
"version": "1.5.0",
"version": "1.6.0",
"description": "Typescript definitions and sdk for commercetools platform",

@@ -63,3 +63,3 @@ "keywords": [

},
"gitHead": "265ecaf05936128f700a0d5d70792f92f33129c5"
"gitHead": "c0c96fa5b293e0eb9b25cda5d5623db76feb8b7f"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc