From 8e0088830513ad8171f0a50078ce89f3301879b0 Mon Sep 17 00:00:00 2001 From: jaikamat Date: Fri, 20 Dec 2024 11:13:31 -0500 Subject: [PATCH 1/2] chore(test-data): introspect scalar types with specificity --- codegen.ctp.yml | 15 + graphql-types/src/generated/ctp.ts | 225 +++- schemas/ctp.json | 1636 +++++++++++++++++++++++++--- 3 files changed, 1678 insertions(+), 198 deletions(-) diff --git a/codegen.ctp.yml b/codegen.ctp.yml index 81865cbf4..af45eb2fe 100644 --- a/codegen.ctp.yml +++ b/codegen.ctp.yml @@ -18,6 +18,21 @@ extensions: typesPrefix: TCtp addUnderscoreToArgsType: true useImplementingTypes: true + scalars: + Long: number + DateTime: string + Country: string + Locale: string + Date: string + Json: '{ [key: string]: unknown }' + Currency: string + KeyReferenceInput: string + SearchFilter: string + SearchSort: string + YearMonth: string + BigDecimal: string + Time: string + Set: 'unknown[]' hooks: afterAllFileWrite: - prettier --write diff --git a/graphql-types/src/generated/ctp.ts b/graphql-types/src/generated/ctp.ts index 2d437f627..43572cd5d 100644 --- a/graphql-types/src/generated/ctp.ts +++ b/graphql-types/src/generated/ctp.ts @@ -9,9 +9,10 @@ type MakeOptional = Omit & { type MakeMaybe = Omit & { [SubKey in K]: Maybe; }; -type MakeEmpty = { - [_ in K]?: never; -}; +type MakeEmpty< + T extends { [key: string]: unknown }, + K extends keyof T +> = { [_ in K]?: never }; type Incremental = | T | { @@ -24,20 +25,23 @@ type Scalars = { Boolean: { input: boolean; output: boolean }; Int: { input: number; output: number }; Float: { input: number; output: number }; - BigDecimal: { input: unknown; output: unknown }; - Country: { input: unknown; output: unknown }; - Currency: { input: unknown; output: unknown }; - Date: { input: unknown; output: unknown }; - DateTime: { input: unknown; output: unknown }; - Json: { input: unknown; output: unknown }; - KeyReferenceInput: { input: unknown; output: unknown }; - Locale: { input: unknown; output: unknown }; - Long: { input: unknown; output: unknown }; - SearchFilter: { input: unknown; output: unknown }; - SearchSort: { input: unknown; output: unknown }; - Set: { input: unknown; output: unknown }; - Time: { input: unknown; output: unknown }; - YearMonth: { input: unknown; output: unknown }; + BigDecimal: { input: string; output: string }; + Country: { input: string; output: string }; + Currency: { input: string; output: string }; + Date: { input: string; output: string }; + DateTime: { input: string; output: string }; + Json: { + input: { [key: string]: unknown }; + output: { [key: string]: unknown }; + }; + KeyReferenceInput: { input: string; output: string }; + Locale: { input: string; output: string }; + Long: { input: number; output: number }; + SearchFilter: { input: string; output: string }; + SearchSort: { input: string; output: string }; + Set: { input: unknown[]; output: unknown[] }; + Time: { input: string; output: string }; + YearMonth: { input: string; output: string }; }; /** API Clients can be used to obtain OAuth 2 access tokens. The secret is only shown once in the response of creating the API Client. */ @@ -403,7 +407,6 @@ export type TCtpAddProductVariant = { export type TCtpAddProductVariantTailoring = { assets?: InputMaybe>; - /** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ attributes?: InputMaybe>; id?: InputMaybe; images?: InputMaybe>; @@ -1838,7 +1841,7 @@ export type TCtpBusinessUnitQueryResult = { total: Scalars['Long']['output']; }; -/** CLOSED BETA: This feature is subject to change and should not be used in production. https://docs.commercetools.com/api/contract#closed-beta */ +/** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ export type TCtpBusinessUnitSearchConfiguration = { __typename?: 'BusinessUnitSearchConfiguration'; lastModifiedAt: Scalars['DateTime']['output']; @@ -1846,7 +1849,7 @@ export type TCtpBusinessUnitSearchConfiguration = { status: TCtpBusinessUnitSearchStatus; }; -/** CLOSED BETA: This feature is subject to change and should not be used in production. https://docs.commercetools.com/api/contract#closed-beta */ +/** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ export enum TCtpBusinessUnitSearchStatus { Activated = 'Activated', Deactivated = 'Deactivated', @@ -1884,6 +1887,10 @@ export type TCtpBusinessUnitStoreAdded = TCtpMessagePayload & { export type TCtpBusinessUnitStoreModeChanged = TCtpMessagePayload & { __typename?: 'BusinessUnitStoreModeChanged'; + inheritedStores?: Maybe>; + inheritedStoresRef?: Maybe>; + oldInheritedStores?: Maybe>; + oldInheritedStoresRef?: Maybe>; oldStoreMode: Scalars['String']['output']; oldStores?: Maybe>; oldStoresRef?: Maybe>; @@ -1979,6 +1986,7 @@ export type TCtpCart = TCtpReferenceExpandable & locale?: Maybe; origin: TCtpCartOrigin; paymentInfo?: Maybe; + placement?: Maybe; refusedGifts: Array; refusedGiftsRefs: Array; shipping: Array; @@ -2055,6 +2063,7 @@ export type TCtpCartDiscount = TCtpReferenceExpandable & stores: Array; storesRef: Array; target?: Maybe< + | TCtpCartDiscountPatternTarget | TCtpCartDiscountTotalPriceTarget | TCtpCustomLineItemsTarget | TCtpLineItemsTarget @@ -2067,6 +2076,7 @@ export type TCtpCartDiscount = TCtpReferenceExpandable & value: | TCtpAbsoluteCartDiscountValue | TCtpAbsoluteDiscountValue + | TCtpFixedPriceCartDiscountValue | TCtpFixedPriceDiscountValue | TCtpGiftLineItemValue | TCtpRelativeDiscountValue; @@ -2136,6 +2146,28 @@ export type TCtpCartDiscountLimitsProjection = { totalActiveWithoutDiscountCodes: TCtpCartDiscountLimitWithCurrent; }; +/** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ +export type TCtpCartDiscountPatternTarget = TCtpCartDiscountTarget & { + __typename?: 'CartDiscountPatternTarget'; + maxOccurrence?: Maybe; + selectionMode: TCtpSelectionMode; + targetPattern: Array< + TCtpCountOnCustomLineItemUnits | TCtpCountOnLineItemUnits + >; + triggerPattern: Array< + TCtpCountOnCustomLineItemUnits | TCtpCountOnLineItemUnits + >; + type: Scalars['String']['output']; +}; + +/** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ +export type TCtpCartDiscountPatternTargetInput = { + maxOccurrence?: InputMaybe; + selectionMode?: InputMaybe; + targetPattern: Array; + triggerPattern: Array; +}; + /** Fields to access cartDiscounts. Includes direct access to a single cartDiscount and searching for cartDiscounts. */ export type TCtpCartDiscountQueryInterface = { cartDiscount?: Maybe; @@ -2195,6 +2227,8 @@ export type TCtpCartDiscountTargetInput = { lineItems?: InputMaybe; multiBuyCustomLineItems?: InputMaybe; multiBuyLineItems?: InputMaybe; + /** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ + pattern?: InputMaybe; shipping?: InputMaybe; totalPrice?: InputMaybe; }; @@ -2246,6 +2280,7 @@ export type TCtpCartDiscountValueInput = { absolute?: InputMaybe; absoluteCart?: InputMaybe; fixed?: InputMaybe; + fixedCart?: InputMaybe; giftLineItem?: InputMaybe; relative?: InputMaybe; }; @@ -2995,7 +3030,7 @@ export type TCtpChangeProductTailoringAssetOrder = { variantId?: InputMaybe; }; -/** CLOSED BETA: This feature is subject to change and should not be used in production. https://docs.commercetools.com/api/contract#closed-beta */ +/** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ export type TCtpChangeProjectSettingsBusinessUnitSearchStatus = { status: TCtpBusinessUnitSearchStatus; }; @@ -3503,6 +3538,42 @@ export type TCtpConfluentCloudDestinationInput = { topic: Scalars['String']['input']; }; +/** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ +export type TCtpCountOnCustomLineItemUnits = TCtpPatternComponent & { + __typename?: 'CountOnCustomLineItemUnits'; + excludeCount?: Maybe; + maxCount?: Maybe; + minCount?: Maybe; + predicate: Scalars['String']['output']; + type: Scalars['String']['output']; +}; + +/** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ +export type TCtpCountOnCustomLineItemUnitsInput = { + excludeCount?: InputMaybe; + maxCount?: InputMaybe; + minCount?: InputMaybe; + predicate: Scalars['String']['input']; +}; + +/** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ +export type TCtpCountOnLineItemUnits = TCtpPatternComponent & { + __typename?: 'CountOnLineItemUnits'; + excludeCount?: Maybe; + maxCount?: Maybe; + minCount?: Maybe; + predicate: Scalars['String']['output']; + type: Scalars['String']['output']; +}; + +/** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ +export type TCtpCountOnLineItemUnitsInput = { + excludeCount?: InputMaybe; + maxCount?: InputMaybe; + minCount?: InputMaybe; + predicate: Scalars['String']['input']; +}; + export type TCtpCreateApiClient = { accessTokenValiditySeconds?: InputMaybe; deleteDaysAfterCreation?: InputMaybe; @@ -4573,6 +4644,7 @@ export type TCtpDirectDiscount = { __typename?: 'DirectDiscount'; id: Scalars['String']['output']; target?: Maybe< + | TCtpCartDiscountPatternTarget | TCtpCartDiscountTotalPriceTarget | TCtpCustomLineItemsTarget | TCtpLineItemsTarget @@ -4583,6 +4655,7 @@ export type TCtpDirectDiscount = { value: | TCtpAbsoluteCartDiscountValue | TCtpAbsoluteDiscountValue + | TCtpFixedPriceCartDiscountValue | TCtpFixedPriceDiscountValue | TCtpGiftLineItemValue | TCtpRelativeDiscountValue; @@ -4596,6 +4669,7 @@ export type TCtpDirectDiscountDraft = { export type TCtpDirectDiscountDraftOutput = { __typename?: 'DirectDiscountDraftOutput'; target?: Maybe< + | TCtpCartDiscountPatternTarget | TCtpCartDiscountTotalPriceTarget | TCtpCustomLineItemsTarget | TCtpLineItemsTarget @@ -4606,6 +4680,7 @@ export type TCtpDirectDiscountDraftOutput = { value: | TCtpAbsoluteCartDiscountValue | TCtpAbsoluteDiscountValue + | TCtpFixedPriceCartDiscountValue | TCtpFixedPriceDiscountValue | TCtpGiftLineItemValue | TCtpRelativeDiscountValue; @@ -4822,6 +4897,11 @@ export type TCtpDiscountedTotalPricePortion = { discountedAmount: TCtpHighPrecisionMoney | TCtpMoney; }; +export type TCtpDiscountsConfiguration = { + __typename?: 'DiscountsConfiguration'; + productVsCartDiscountCombination?: Maybe; +}; + export type TCtpEnumAttribute = TCtpAttribute & { __typename?: 'EnumAttribute'; key: Scalars['String']['output']; @@ -5117,6 +5197,18 @@ export type TCtpFieldTypeSetTypeDraft = { elementType: TCtpFieldTypeSetElementTypeDraft; }; +export type TCtpFixedPriceCartDiscountValue = TCtpCartDiscountValue & { + __typename?: 'FixedPriceCartDiscountValue'; + applicationMode: TCtpDiscountApplicationMode; + money: Array; + type: Scalars['String']['output']; +}; + +export type TCtpFixedPriceCartDiscountValueInput = { + applicationMode: TCtpDiscountApplicationMode; + money: Array; +}; + export type TCtpFixedPriceDiscountValue = TCtpCartDiscountValue & { __typename?: 'FixedPriceDiscountValue'; money: Array; @@ -5726,6 +5818,7 @@ export type TCtpInventoryEntryUpdateAction = { setCustomField?: InputMaybe; setCustomType?: InputMaybe; setExpectedDelivery?: InputMaybe; + setKey?: InputMaybe; setRestockableInDays?: InputMaybe; setSupplyChannel?: InputMaybe; }; @@ -6490,6 +6583,7 @@ export type TCtpMessage = TCtpReferenceExpandable & | TCtpOrderShippingAddressSet | TCtpOrderShippingInfoSet | TCtpOrderShippingRateInputSet + | TCtpOrderShippingUpdated | TCtpOrderStateChanged | TCtpOrderStateTransition | TCtpOrderStoreSet @@ -6564,6 +6658,8 @@ export type TCtpMessage = TCtpReferenceExpandable & | TCtpReviewCreated | TCtpReviewRatingSet | TCtpReviewStateTransition + | TCtpShoppingListLineItemAdded + | TCtpShoppingListLineItemRemoved | TCtpStagedQuoteCreated | TCtpStagedQuoteDeleted | TCtpStagedQuoteSellerCommentSet @@ -7277,7 +7373,8 @@ export type TCtpMutation_DeleteCategoryArgs = { }; export type TCtpMutation_DeleteChannelArgs = { - id: Scalars['String']['input']; + id?: InputMaybe; + key?: InputMaybe; version: Scalars['Long']['input']; }; @@ -7569,7 +7666,8 @@ export type TCtpMutation_UpdateCategoryArgs = { export type TCtpMutation_UpdateChannelArgs = { actions: Array; - id: Scalars['String']['input']; + id?: InputMaybe; + key?: InputMaybe; version: Scalars['Long']['input']; }; @@ -8150,6 +8248,7 @@ export type TCtpOrder = TCtpReferenceExpandable & origin: TCtpCartOrigin; paymentInfo?: Maybe; paymentState?: Maybe; + placement?: Maybe; purchaseOrderNumber?: Maybe; quote?: Maybe; quoteRef?: Maybe; @@ -8713,6 +8812,14 @@ export type TCtpOrderShippingRateInputSet = TCtpMessagePayload & type: Scalars['String']['output']; }; +export type TCtpOrderShippingUpdated = TCtpMessagePayload & + TCtpOrderMessagePayload & { + __typename?: 'OrderShippingUpdated'; + current: TCtpShipping; + type: Scalars['String']['output']; + updated: TCtpShipping; + }; + export enum TCtpOrderState { Cancelled = 'Cancelled', Complete = 'Complete', @@ -8914,6 +9021,17 @@ export type TCtpParcelTrackingDataUpdated = TCtpMessagePayload & type: Scalars['String']['output']; }; +/** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ +export type TCtpPatternComponent = { + type: Scalars['String']['output']; +}; + +/** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ +export type TCtpPatternComponentInput = { + CountOnCustomLineItemUnits?: InputMaybe; + CountOnLineItemUnits?: InputMaybe; +}; + /** * Payments hold information about the current state of receiving and/or refunding money. * [documentation](https://docs.commercetools.com/api/projects/payments) @@ -9126,6 +9244,13 @@ export enum TCtpPermission { ViewOthersQuotes = 'ViewOthersQuotes', } +export enum TCtpPlacement { + /** The Order or Cart is placed in-store. */ + InStore = 'InStore', + /** The Order or Cart is placed online. */ + Online = 'Online', +} + export type TCtpPlainEnumValue = { __typename?: 'PlainEnumValue'; key: Scalars['String']['output']; @@ -9212,6 +9337,7 @@ export type TCtpPreviewSuccess = TCtpOrderEditResult & { | TCtpOrderShippingAddressSet | TCtpOrderShippingInfoSet | TCtpOrderShippingRateInputSet + | TCtpOrderShippingUpdated | TCtpOrderStateChanged | TCtpOrderStateTransition | TCtpOrderStoreSet @@ -9365,6 +9491,7 @@ export type TCtpProductCreated = TCtpMessagePayload & { export type TCtpProductData = { __typename?: 'ProductData'; + /** Fetch all variants, including the master variant in first position. */ allVariants: Array; categories: Array; categoriesRef: Array; @@ -9842,6 +9969,8 @@ export type TCtpProductPricesSet = TCtpMessagePayload & { export type TCtpProductProjection = { __typename?: 'ProductProjection'; + /** Fetch all variants, including the master variant in first position. If `onlyMatching` is used, filter this list based on the the search query. */ + allVariants: Array; categories: Array; categoriesRef: Array; categoryOrderHints: Array; @@ -9872,10 +10001,15 @@ export type TCtpProductProjection = { stateRef?: Maybe; taxCategory?: Maybe; taxCategoryRef?: Maybe; + /** Fetch all variants, excluding the master variant. If `onlyMatching` is used, filter this list based on the the search query. */ variants: Array; version: Scalars['Long']['output']; }; +export type TCtpProductProjection_AllVariantsArgs = { + onlyMatching?: InputMaybe; +}; + export type TCtpProductProjection_DescriptionArgs = { acceptLanguage?: InputMaybe>; locale?: InputMaybe; @@ -9906,6 +10040,10 @@ export type TCtpProductProjection_SlugArgs = { locale?: InputMaybe; }; +export type TCtpProductProjection_VariantsArgs = { + onlyMatching?: InputMaybe; +}; + export type TCtpProductProjectionMessagePayload = { __typename?: 'ProductProjectionMessagePayload'; categories: Array; @@ -10825,7 +10963,6 @@ export type TCtpProductVariantSelectionIncludeOnly = export type TCtpProductVariantTailoring = { __typename?: 'ProductVariantTailoring'; assets: Array; - /** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ attributesRaw: Array; id: Scalars['Int']['output']; images: Array; @@ -10843,7 +10980,6 @@ export type TCtpProductVariantTailoringAdded = TCtpMessagePayload & { export type TCtpProductVariantTailoringInput = { assets?: InputMaybe>; - /** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ attributes?: InputMaybe>; id?: InputMaybe; images?: InputMaybe>; @@ -10860,6 +10996,11 @@ export type TCtpProductVariantTailoringRemoved = TCtpMessagePayload & { variantId: Scalars['Int']['output']; }; +export enum TCtpProductVsCartDiscountCombination { + BestDeal = 'BestDeal', + Stacking = 'Stacking', +} + /** CLOSED BETA: This feature is subject to change and should not be used in production. https://docs.commercetools.com/api/contract#closed-beta */ export type TCtpProductsSearchConfiguration = { __typename?: 'ProductsSearchConfiguration'; @@ -10910,6 +11051,7 @@ export type TCtpProjectProjection = { createdAt: Scalars['DateTime']['output']; createdBy?: Maybe; currencies: Array; + discounts?: Maybe; externalOAuth?: Maybe; key: Scalars['String']['output']; languages: Array; @@ -10927,7 +11069,7 @@ export type TCtpProjectProjection = { }; export type TCtpProjectSettingsUpdateAction = { - /** CLOSED BETA: This feature is subject to change and should not be used in production. https://docs.commercetools.com/api/contract#closed-beta */ + /** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ changeBusinessUnitSearchStatus?: InputMaybe; changeCartsConfiguration?: InputMaybe; changeCountries?: InputMaybe; @@ -10950,6 +11092,8 @@ export type TCtpProjectSettingsUpdateAction = { setExternalOAuth?: InputMaybe; /** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ setMyBusinessUnitAssociateRoleOnCreation?: InputMaybe; + /** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ + setProductVsCartDiscountCombination?: InputMaybe; setShippingRateInputType?: InputMaybe; }; @@ -12923,7 +13067,7 @@ export type TCtpSearchFilterModelInput = { export type TCtpSearchIndexingConfiguration = { __typename?: 'SearchIndexingConfiguration'; - /** CLOSED BETA: This feature is subject to change and should not be used in production. https://docs.commercetools.com/api/contract#closed-beta */ + /** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ businessUnits?: Maybe; customers?: Maybe; orders?: Maybe; @@ -13252,6 +13396,7 @@ export type TCtpSetCartCustomLineItemTaxRate = { }; export type TCtpSetCartCustomShippingMethod = { + custom?: InputMaybe; externalTaxRate?: InputMaybe; shippingMethodName: Scalars['String']['input']; shippingRate: TCtpShippingRateDraft; @@ -13773,6 +13918,10 @@ export type TCtpSetInventoryEntrySupplyChannel = { supplyChannel?: InputMaybe; }; +export type TCtpSetInventoryKey = { + key?: InputMaybe; +}; + export type TCtpSetMyBusinessUnitAddressCustomField = { addressId?: InputMaybe; addressKey?: InputMaybe; @@ -14535,6 +14684,11 @@ export type TCtpSetProjectSettingsMyBusinessUnitAssociateRoleOnCreation = { associateRole?: InputMaybe; }; +/** BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta */ +export type TCtpSetProjectSettingsProductVsCartDiscountCombination = { + productVsCartDiscountCombination?: InputMaybe; +}; + export type TCtpSetProjectSettingsShippingRateInputType = { shippingRateInputType?: InputMaybe; }; @@ -14869,6 +15023,7 @@ export type TCtpSetStagedOrderCustomLineItemTaxRateOutput = }; export type TCtpSetStagedOrderCustomShippingMethod = { + custom?: InputMaybe; externalTaxRate?: InputMaybe; shippingMethodName: Scalars['String']['input']; shippingRate: TCtpShippingRateDraft; @@ -14878,6 +15033,7 @@ export type TCtpSetStagedOrderCustomShippingMethod = { export type TCtpSetStagedOrderCustomShippingMethodOutput = TCtpStagedOrderUpdateActionOutput & { __typename?: 'SetStagedOrderCustomShippingMethodOutput'; + custom?: Maybe; externalTaxRate?: Maybe; shippingMethodName: Scalars['String']['output']; shippingRate: TCtpShippingRate; @@ -15411,6 +15567,7 @@ export type TCtpSetStagedOrderShippingAddress = { export type TCtpSetStagedOrderShippingAddressAndCustomShippingMethod = { address: TCtpAddressInput; + custom?: InputMaybe; externalTaxRate?: InputMaybe; shippingMethodName: Scalars['String']['input']; shippingRate: TCtpShippingRateDraft; @@ -15421,6 +15578,7 @@ export type TCtpSetStagedOrderShippingAddressAndCustomShippingMethodOutput = TCtpStagedOrderUpdateActionOutput & { __typename?: 'SetStagedOrderShippingAddressAndCustomShippingMethodOutput'; address: TCtpAddressDraft; + custom?: Maybe; externalTaxRate?: Maybe; shippingMethodName: Scalars['String']['output']; shippingRate: TCtpShippingRate; @@ -15724,6 +15882,7 @@ export type TCtpSetZoneKey = { export enum TCtpShipmentState { Backorder = 'Backorder', + Canceled = 'Canceled', Delayed = 'Delayed', Delivered = 'Delivered', Partial = 'Partial', @@ -16133,6 +16292,12 @@ export type TCtpShoppingListLineItem_ProductSlugArgs = { locale?: InputMaybe; }; +export type TCtpShoppingListLineItemAdded = TCtpMessagePayload & { + __typename?: 'ShoppingListLineItemAdded'; + lineItem: TCtpShoppingListLineItem; + type: Scalars['String']['output']; +}; + export type TCtpShoppingListLineItemDraft = { addedAt?: InputMaybe; custom?: InputMaybe; @@ -16143,6 +16308,12 @@ export type TCtpShoppingListLineItemDraft = { variantId?: InputMaybe; }; +export type TCtpShoppingListLineItemRemoved = TCtpMessagePayload & { + __typename?: 'ShoppingListLineItemRemoved'; + lineItem: TCtpShoppingListLineItem; + type: Scalars['String']['output']; +}; + /** Fields to access shopping lists. Includes direct access to a single list and searching for shopping lists. */ export type TCtpShoppingListQueryInterface = { shoppingList?: Maybe; diff --git a/schemas/ctp.json b/schemas/ctp.json index dd83aced4..93fa44e13 100644 --- a/schemas/ctp.json +++ b/schemas/ctp.json @@ -3290,7 +3290,7 @@ }, { "name": "attributes", - "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", + "description": null, "type": { "kind": "LIST", "name": null, @@ -16365,7 +16365,7 @@ { "kind": "OBJECT", "name": "BusinessUnitSearchConfiguration", - "description": "CLOSED BETA: This feature is subject to change and should not be used in production. https://docs.commercetools.com/api/contract#closed-beta", + "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", "fields": [ { "name": "lastModifiedAt", @@ -16420,7 +16420,7 @@ { "kind": "ENUM", "name": "BusinessUnitSearchStatus", - "description": "CLOSED BETA: This feature is subject to change and should not be used in production. https://docs.commercetools.com/api/contract#closed-beta", + "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", "fields": null, "inputFields": null, "interfaces": null, @@ -16680,6 +16680,86 @@ "name": "BusinessUnitStoreModeChanged", "description": null, "fields": [ + { + "name": "inheritedStores", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Store", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "inheritedStoresRef", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "KeyReference", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "oldInheritedStores", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Store", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "oldInheritedStoresRef", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "KeyReference", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "oldStoreMode", "description": null, @@ -17797,6 +17877,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "placement", + "description": null, + "args": [], + "type": { + "kind": "ENUM", + "name": "Placement", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "refusedGifts", "description": null, @@ -19128,6 +19220,198 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "CartDiscountPatternTarget", + "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", + "fields": [ + { + "name": "maxOccurrence", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "selectionMode", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "SelectionMode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "targetPattern", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INTERFACE", + "name": "PatternComponent", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "triggerPattern", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INTERFACE", + "name": "PatternComponent", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "CartDiscountTarget", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "CartDiscountPatternTargetInput", + "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", + "fields": null, + "inputFields": [ + { + "name": "maxOccurrence", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "selectionMode", + "description": null, + "type": { + "kind": "ENUM", + "name": "SelectionMode", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "targetPattern", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PatternComponentInput", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "triggerPattern", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PatternComponentInput", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "INTERFACE", "name": "CartDiscountQueryInterface", @@ -19591,6 +19875,11 @@ "interfaces": [], "enumValues": null, "possibleTypes": [ + { + "kind": "OBJECT", + "name": "CartDiscountPatternTarget", + "ofType": null + }, { "kind": "OBJECT", "name": "CartDiscountTotalPriceTarget", @@ -19677,6 +19966,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "pattern", + "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", + "type": { + "kind": "INPUT_OBJECT", + "name": "CartDiscountPatternTargetInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "shipping", "description": null, @@ -20025,6 +20326,11 @@ "name": "AbsoluteDiscountValue", "ofType": null }, + { + "kind": "OBJECT", + "name": "FixedPriceCartDiscountValue", + "ofType": null + }, { "kind": "OBJECT", "name": "FixedPriceDiscountValue", @@ -20143,6 +20449,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "fixedCart", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "FixedPriceCartDiscountValueInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "giftLineItem", "description": null, @@ -26956,7 +27274,7 @@ { "kind": "INPUT_OBJECT", "name": "ChangeProjectSettingsBusinessUnitSearchStatus", - "description": "CLOSED BETA: This feature is subject to change and should not be used in production. https://docs.commercetools.com/api/contract#closed-beta", + "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", "fields": null, "inputFields": [ { @@ -30989,7 +31307,195 @@ "interfaces": [ { "kind": "INTERFACE", - "name": "Destination", + "name": "Destination", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "ConfluentCloudDestinationInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "acks", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "apiKey", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "apiSecret", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "bootstrapServer", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "key", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "topic", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "CountOnCustomLineItemUnits", + "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", + "fields": [ + { + "name": "excludeCount", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "maxCount", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "minCount", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "predicate", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "PatternComponent", "ofType": null } ], @@ -30998,28 +31504,48 @@ }, { "kind": "INPUT_OBJECT", - "name": "ConfluentCloudDestinationInput", - "description": null, + "name": "CountOnCustomLineItemUnitsInput", + "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", "fields": null, "inputFields": [ { - "name": "acks", + "name": "excludeCount", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "Int", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "apiKey", + "name": "maxCount", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "minCount", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": "1", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "predicate", "description": null, "type": { "kind": "NON_NULL", @@ -31033,10 +31559,57 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "CountOnLineItemUnits", + "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", + "fields": [ + { + "name": "excludeCount", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null }, { - "name": "apiSecret", + "name": "maxCount", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "minCount", "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "predicate", + "description": null, + "args": [], "type": { "kind": "NON_NULL", "name": null, @@ -31046,13 +31619,13 @@ "ofType": null } }, - "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "bootstrapServer", + "name": "type", "description": null, + "args": [], "type": { "kind": "NON_NULL", "name": null, @@ -31062,16 +31635,45 @@ "ofType": null } }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "PatternComponent", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "CountOnLineItemUnitsInput", + "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", + "fields": null, + "inputFields": [ + { + "name": "excludeCount", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "key", + "name": "maxCount", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "defaultValue": null, @@ -31079,7 +31681,19 @@ "deprecationReason": null }, { - "name": "topic", + "name": "minCount", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": "1", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "predicate", "description": null, "type": { "kind": "NON_NULL", @@ -42428,50 +43042,148 @@ }, { "kind": "OBJECT", - "name": "DiscountedLineItemPriceForQuantity", - "description": null, - "fields": [ - { - "name": "discountedPrice", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DiscountedLineItemPrice", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "quantity", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Long", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "DiscountedProductPriceValue", + "name": "DiscountedLineItemPriceForQuantity", + "description": null, + "fields": [ + { + "name": "discountedPrice", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "DiscountedLineItemPrice", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "quantity", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Long", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "DiscountedProductPriceValue", + "description": null, + "fields": [ + { + "name": "discount", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "ProductDiscount", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "discountRef", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Reference", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "value", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INTERFACE", + "name": "BaseMoney", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "DiscountedProductPriceValueInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "discount", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ResourceIdentifierInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "value", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "BaseMoneyInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "DiscountedProductSearchPriceValue", "description": null, "fields": [ { @@ -42524,52 +43236,9 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "INPUT_OBJECT", - "name": "DiscountedProductPriceValueInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "discount", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ResourceIdentifierInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "value", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "BaseMoneyInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, { "kind": "OBJECT", - "name": "DiscountedProductSearchPriceValue", + "name": "DiscountedTotalPricePortion", "description": null, "fields": [ { @@ -42578,7 +43247,7 @@ "args": [], "type": { "kind": "OBJECT", - "name": "ProductDiscount", + "name": "CartDiscount", "ofType": null }, "isDeprecated": false, @@ -42601,7 +43270,7 @@ "deprecationReason": null }, { - "name": "value", + "name": "discountedAmount", "description": null, "args": [], "type": { @@ -42624,52 +43293,20 @@ }, { "kind": "OBJECT", - "name": "DiscountedTotalPricePortion", + "name": "DiscountsConfiguration", "description": null, "fields": [ { - "name": "discount", + "name": "productVsCartDiscountCombination", "description": null, "args": [], "type": { - "kind": "OBJECT", - "name": "CartDiscount", + "kind": "ENUM", + "name": "ProductVsCartDiscountCombination", "ofType": null }, "isDeprecated": false, "deprecationReason": null - }, - { - "name": "discountRef", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Reference", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discountedAmount", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INTERFACE", - "name": "BaseMoney", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null } ], "inputFields": null, @@ -45288,6 +45925,130 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "FixedPriceCartDiscountValue", + "description": null, + "fields": [ + { + "name": "applicationMode", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "DiscountApplicationMode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "money", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INTERFACE", + "name": "BaseMoney", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "CartDiscountValue", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "FixedPriceCartDiscountValueInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "applicationMode", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "DiscountApplicationMode", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "money", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CartDiscountValueBaseMoneyInput", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "FixedPriceDiscountValue", @@ -50560,6 +51321,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "setKey", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "SetInventoryKey", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "setRestockableInDays", "description": null, @@ -56262,6 +57035,11 @@ "name": "OrderShippingRateInputSet", "ofType": null }, + { + "kind": "OBJECT", + "name": "OrderShippingUpdated", + "ofType": null + }, { "kind": "OBJECT", "name": "OrderStateChanged", @@ -56632,6 +57410,16 @@ "name": "ReviewStateTransition", "ofType": null }, + { + "kind": "OBJECT", + "name": "ShoppingListLineItemAdded", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ShoppingListLineItemRemoved", + "ofType": null + }, { "kind": "OBJECT", "name": "StagedQuoteCreated", @@ -60760,15 +61548,23 @@ "args": [ { "name": "id", - "description": null, + "description": "Queries with specified ID", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "key", + "description": "Queries with specified key", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null, "isDeprecated": false, @@ -63560,15 +64356,23 @@ }, { "name": "id", - "description": null, + "description": "Queries with specified ID", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "key", + "description": "Queries with specified key", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null, "isDeprecated": false, @@ -69760,6 +70564,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "placement", + "description": null, + "args": [], + "type": { + "kind": "ENUM", + "name": "Placement", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "purchaseOrderNumber", "description": null, @@ -73138,6 +73954,11 @@ "name": "OrderShippingRateInputSet", "ofType": null }, + { + "kind": "OBJECT", + "name": "OrderShippingUpdated", + "ofType": null + }, { "kind": "OBJECT", "name": "OrderStateChanged", @@ -74252,6 +75073,76 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "OrderShippingUpdated", + "description": null, + "fields": [ + { + "name": "current", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Shipping", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updated", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Shipping", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "MessagePayload", + "ofType": null + }, + { + "kind": "INTERFACE", + "name": "OrderMessagePayload", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "ENUM", "name": "OrderState", @@ -76268,6 +77159,79 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INTERFACE", + "name": "PatternComponent", + "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", + "fields": [ + { + "name": "type", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "CountOnCustomLineItemUnits", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "CountOnLineItemUnits", + "ofType": null + } + ] + }, + { + "kind": "INPUT_OBJECT", + "name": "PatternComponentInput", + "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", + "fields": null, + "inputFields": [ + { + "name": "CountOnCustomLineItemUnits", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "CountOnCustomLineItemUnitsInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CountOnLineItemUnits", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "CountOnLineItemUnitsInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "Payment", @@ -78059,6 +79023,29 @@ ], "possibleTypes": null }, + { + "kind": "ENUM", + "name": "Placement", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "InStore", + "description": "The Order or Cart is placed in-store.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "Online", + "description": "The Order or Cart is placed online.", + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "OBJECT", "name": "PlainEnumValue", @@ -79408,7 +80395,7 @@ "fields": [ { "name": "allVariants", - "description": null, + "description": "Fetch all variants, including the master variant in first position.", "args": [ { "name": "hasImages", @@ -83704,6 +84691,43 @@ "name": "ProductProjection", "description": null, "fields": [ + { + "name": "allVariants", + "description": "Fetch all variants, including the master variant in first position. If `onlyMatching` is used, filter this list based on the the search query.", + "args": [ + { + "name": "onlyMatching", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ProductSearchVariant", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "categories", "description": null, @@ -84396,8 +85420,21 @@ }, { "name": "variants", - "description": null, - "args": [], + "description": "Fetch all variants, excluding the master variant. If `onlyMatching` is used, filter this list based on the the search query.", + "args": [ + { + "name": "onlyMatching", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], "type": { "kind": "NON_NULL", "name": null, @@ -93368,7 +94405,7 @@ }, { "name": "attributesRaw", - "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", + "description": null, "args": [], "type": { "kind": "NON_NULL", @@ -93573,7 +94610,7 @@ }, { "name": "attributes", - "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", + "description": null, "type": { "kind": "LIST", "name": null, @@ -93749,6 +94786,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "ENUM", + "name": "ProductVsCartDiscountCombination", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "BestDeal", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "Stacking", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "OBJECT", "name": "ProductsSearchConfiguration", @@ -94299,6 +95359,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "discounts", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "DiscountsConfiguration", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "externalOAuth", "description": null, @@ -94489,7 +95561,7 @@ "inputFields": [ { "name": "changeBusinessUnitSearchStatus", - "description": "CLOSED BETA: This feature is subject to change and should not be used in production. https://docs.commercetools.com/api/contract#closed-beta", + "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", "type": { "kind": "INPUT_OBJECT", "name": "ChangeProjectSettingsBusinessUnitSearchStatus", @@ -94715,6 +95787,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "setProductVsCartDiscountCombination", + "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", + "type": { + "kind": "INPUT_OBJECT", + "name": "SetProjectSettingsProductVsCartDiscountCombination", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "setShippingRateInputType", "description": null, @@ -110080,7 +111164,7 @@ "fields": [ { "name": "businessUnits", - "description": "CLOSED BETA: This feature is subject to change and should not be used in production. https://docs.commercetools.com/api/contract#closed-beta", + "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", "args": [], "type": { "kind": "OBJECT", @@ -112536,6 +113620,18 @@ "description": null, "fields": null, "inputFields": [ + { + "name": "custom", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "CustomFieldsDraft", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "externalTaxRate", "description": null, @@ -116571,6 +117667,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "SetInventoryKey", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "key", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "SetMyBusinessUnitAddressCustomField", @@ -123157,6 +124276,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "SetProjectSettingsProductVsCartDiscountCombination", + "description": "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta", + "fields": null, + "inputFields": [ + { + "name": "productVsCartDiscountCombination", + "description": null, + "type": { + "kind": "ENUM", + "name": "ProductVsCartDiscountCombination", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "SetProjectSettingsShippingRateInputType", @@ -125778,6 +126920,18 @@ "description": null, "fields": null, "inputFields": [ + { + "name": "custom", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "CustomFieldsDraft", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "externalTaxRate", "description": null, @@ -125844,6 +126998,18 @@ "name": "SetStagedOrderCustomShippingMethodOutput", "description": null, "fields": [ + { + "name": "custom", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "CustomFieldsCommand", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "externalTaxRate", "description": null, @@ -130249,6 +131415,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "custom", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "CustomFieldsDraft", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "externalTaxRate", "description": null, @@ -130331,6 +131509,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "custom", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "CustomFieldsCommand", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "externalTaxRate", "description": null, @@ -132505,6 +133695,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "Canceled", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "Delayed", "description": null, @@ -136303,6 +137499,55 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "ShoppingListLineItemAdded", + "description": null, + "fields": [ + { + "name": "lineItem", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ShoppingListLineItem", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "MessagePayload", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "ShoppingListLineItemDraft", @@ -136398,6 +137643,55 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "ShoppingListLineItemRemoved", + "description": null, + "fields": [ + { + "name": "lineItem", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ShoppingListLineItem", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "MessagePayload", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INTERFACE", "name": "ShoppingListQueryInterface", From a9d91e25fec51442fbdfc359bd4a9580d7668bf0 Mon Sep 17 00:00:00 2001 From: jaikamat Date: Fri, 20 Dec 2024 11:17:57 -0500 Subject: [PATCH 2/2] chore(test-data): changeset --- .changeset/strong-toys-marry.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/strong-toys-marry.md diff --git a/.changeset/strong-toys-marry.md b/.changeset/strong-toys-marry.md new file mode 100644 index 000000000..a36aeeb2b --- /dev/null +++ b/.changeset/strong-toys-marry.md @@ -0,0 +1,5 @@ +--- +'@commercetools-test-data/graphql-types': patch +--- + +Use narrow types for scalar types