@gradientedge/commercetools-utils 5.3.1 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ge-commercetools-utils-browser.cjs.js +1 -1
- package/dist/ge-commercetools-utils-browser.cjs.js.map +1 -1
- package/dist/ge-commercetools-utils-browser.esm.js +1 -1
- package/dist/ge-commercetools-utils-browser.esm.js.map +1 -1
- package/dist/ge-commercetools-utils-node.cjs.js +1 -1
- package/dist/ge-commercetools-utils-node.cjs.js.map +1 -1
- package/dist/ge-commercetools-utils-node.esm.js +1 -1
- package/dist/typings/models/associate-role.d.ts +79 -0
- package/dist/typings/models/attribute-group.d.ts +68 -0
- package/dist/typings/models/business-unit.d.ts +272 -0
- package/dist/typings/models/cart-discount.d.ts +2 -2
- package/dist/typings/models/cart.d.ts +133 -115
- package/dist/typings/models/channel.d.ts +4 -4
- package/dist/typings/models/common.d.ts +49 -40
- package/dist/typings/models/customer.d.ts +16 -13
- package/dist/typings/models/error.d.ts +451 -18
- package/dist/typings/models/extension.d.ts +7 -3
- package/dist/typings/models/graph-ql.d.ts +3 -1
- package/dist/typings/models/index.d.ts +13 -6
- package/dist/typings/models/me.d.ts +179 -37
- package/dist/typings/models/message.d.ts +849 -20
- package/dist/typings/models/order-edit.d.ts +22 -16
- package/dist/typings/models/order.d.ts +124 -25
- package/dist/typings/models/payment.d.ts +19 -14
- package/dist/typings/models/product-selection.d.ts +39 -6
- package/dist/typings/models/product-type.d.ts +4 -4
- package/dist/typings/models/product.d.ts +13 -5
- package/dist/typings/models/project.d.ts +18 -3
- package/dist/typings/models/quote-request.d.ts +5 -1
- package/dist/typings/models/quote.d.ts +8 -3
- package/dist/typings/models/scalar-types.d.ts +0 -1
- package/dist/typings/models/shipping-method.d.ts +7 -7
- package/dist/typings/models/shopping-list.d.ts +22 -22
- package/dist/typings/models/staged-quote.d.ts +5 -1
- package/dist/typings/models/standalone-price.d.ts +9 -5
- package/dist/typings/models/state.d.ts +2 -2
- package/dist/typings/models/store-country.d.ts +3 -0
- package/dist/typings/models/store.d.ts +16 -1
- package/dist/typings/models/subscription.d.ts +27 -14
- package/dist/typings/models/tax-category.d.ts +6 -2
- package/dist/typings/models/type.d.ts +3 -3
- package/package.json +19 -19
|
@@ -1,23 +1,31 @@
|
|
|
1
|
+
import { Permission } from './associate-role';
|
|
2
|
+
import { BusinessUnitResourceIdentifier } from './business-unit';
|
|
1
3
|
import { ChannelReference, ChannelResourceIdentifier, ChannelRoleEnum } from './channel';
|
|
2
4
|
import { LocalizedString, Price, PriceDraft, Reference, ReferenceTypeId } from './common';
|
|
5
|
+
import { CustomerResourceIdentifier } from './customer';
|
|
3
6
|
import { CustomerGroupReference, CustomerGroupResourceIdentifier } from './customer-group';
|
|
4
7
|
import { OrderEditPreviewFailure } from './order-edit';
|
|
5
|
-
import { Attribute } from './product';
|
|
8
|
+
import { Attribute, ProductReference } from './product';
|
|
9
|
+
import { ProductVariantSelection } from './product-selection';
|
|
6
10
|
import { StandalonePriceReference } from './standalone-price';
|
|
7
11
|
export interface ErrorByExtension {
|
|
8
12
|
readonly id: string;
|
|
9
13
|
readonly key?: string;
|
|
10
14
|
}
|
|
11
|
-
export type ErrorObject =
|
|
12
|
-
export interface
|
|
13
|
-
readonly code: '
|
|
15
|
+
export type ErrorObject = AnonymousIdAlreadyInUseError | AssociateMissingPermissionError | AttributeDefinitionAlreadyExistsError | AttributeDefinitionTypeConflictError | AttributeNameDoesNotExistError | BadGatewayError | ConcurrentModificationError | CountryNotConfiguredInStoreError | DiscountCodeNonApplicableError | DuplicateAttributeValueError | DuplicateAttributeValuesError | DuplicateEnumValuesError | DuplicateFieldError | DuplicateFieldWithConflictingResourceError | DuplicatePriceKeyError | DuplicatePriceScopeError | DuplicateStandalonePriceScopeError | DuplicateVariantValuesError | EditPreviewFailedError | EnumKeyAlreadyExistsError | EnumKeyDoesNotExistError | EnumValueIsUsedError | EnumValuesMustMatchError | ExtensionBadResponseError | ExtensionNoResponseError | ExtensionPredicateEvaluationFailedError | ExtensionUpdateActionsFailedError | ExternalOAuthFailedError | FeatureRemovedError | GeneralError | InsufficientScopeError | InternalConstraintViolatedError | InvalidCredentialsError | InvalidCurrentPasswordError | InvalidFieldError | InvalidInputError | InvalidItemShippingDetailsError | InvalidJsonInputError | InvalidOperationError | InvalidSubjectError | InvalidTokenError | LanguageUsedInStoresError | MatchingPriceNotFoundError | MaxResourceLimitExceededError | MissingRoleOnChannelError | MissingTaxRateForCountryError | NoMatchingProductDiscountFoundError | NotEnabledError | ObjectNotFoundError | OutOfStockError | OverCapacityError | OverlappingStandalonePriceValidityError | PendingOperationError | PriceChangedError | ProductAssignmentMissingError | ProductPresentWithDifferentVariantSelectionError | ProjectNotConfiguredForLanguagesError | QueryComplexityLimitExceededError | QueryTimedOutError | ReferenceExistsError | ReferencedResourceNotFoundError | RequiredFieldError | ResourceNotFoundError | ResourceSizeLimitExceededError | SearchDeactivatedError | SearchExecutionFailureError | SearchFacetPathNotFoundError | SearchIndexingInProgressError | SemanticErrorError | ShippingMethodDoesNotMatchCartError | SyntaxErrorError;
|
|
16
|
+
export interface AnonymousIdAlreadyInUseError {
|
|
17
|
+
readonly code: 'AnonymousIdAlreadyInUse';
|
|
14
18
|
[key: string]: any;
|
|
15
19
|
readonly message: string;
|
|
16
20
|
}
|
|
17
|
-
export interface
|
|
18
|
-
readonly code: '
|
|
21
|
+
export interface AssociateMissingPermissionError {
|
|
22
|
+
readonly code: 'AssociateMissingPermission';
|
|
19
23
|
[key: string]: any;
|
|
20
24
|
readonly message: string;
|
|
25
|
+
readonly associate: CustomerResourceIdentifier;
|
|
26
|
+
readonly businessUnit: BusinessUnitResourceIdentifier;
|
|
27
|
+
readonly associateOnBehalf?: CustomerResourceIdentifier;
|
|
28
|
+
readonly permissions: Permission[];
|
|
21
29
|
}
|
|
22
30
|
export interface AttributeDefinitionAlreadyExistsError {
|
|
23
31
|
readonly code: 'AttributeDefinitionAlreadyExists';
|
|
@@ -52,13 +60,20 @@ export interface ConcurrentModificationError {
|
|
|
52
60
|
readonly message: string;
|
|
53
61
|
readonly currentVersion?: number;
|
|
54
62
|
}
|
|
63
|
+
export interface CountryNotConfiguredInStoreError {
|
|
64
|
+
readonly code: 'CountryNotConfiguredInStore';
|
|
65
|
+
[key: string]: any;
|
|
66
|
+
readonly message: string;
|
|
67
|
+
readonly storeCountries: string[];
|
|
68
|
+
readonly country: string;
|
|
69
|
+
}
|
|
55
70
|
export interface DiscountCodeNonApplicableError {
|
|
56
71
|
readonly code: 'DiscountCodeNonApplicable';
|
|
57
72
|
[key: string]: any;
|
|
58
73
|
readonly message: string;
|
|
59
74
|
readonly discountCode?: string;
|
|
60
75
|
readonly reason?: string;
|
|
61
|
-
readonly
|
|
76
|
+
readonly discountCodeId?: string;
|
|
62
77
|
readonly validFrom?: string;
|
|
63
78
|
readonly validUntil?: string;
|
|
64
79
|
readonly validityCheckTime?: string;
|
|
@@ -85,9 +100,8 @@ export interface DuplicateFieldError {
|
|
|
85
100
|
readonly code: 'DuplicateField';
|
|
86
101
|
[key: string]: any;
|
|
87
102
|
readonly message: string;
|
|
88
|
-
readonly field
|
|
89
|
-
readonly duplicateValue
|
|
90
|
-
readonly conflictingResource?: Reference;
|
|
103
|
+
readonly field: string;
|
|
104
|
+
readonly duplicateValue: any;
|
|
91
105
|
}
|
|
92
106
|
export interface DuplicateFieldWithConflictingResourceError {
|
|
93
107
|
readonly code: 'DuplicateFieldWithConflictingResource';
|
|
@@ -97,11 +111,17 @@ export interface DuplicateFieldWithConflictingResourceError {
|
|
|
97
111
|
readonly duplicateValue: any;
|
|
98
112
|
readonly conflictingResource: Reference;
|
|
99
113
|
}
|
|
114
|
+
export interface DuplicatePriceKeyError {
|
|
115
|
+
readonly code: 'DuplicatePriceKey';
|
|
116
|
+
[key: string]: any;
|
|
117
|
+
readonly message: string;
|
|
118
|
+
readonly conflictingPrice: Price;
|
|
119
|
+
}
|
|
100
120
|
export interface DuplicatePriceScopeError {
|
|
101
121
|
readonly code: 'DuplicatePriceScope';
|
|
102
122
|
[key: string]: any;
|
|
103
123
|
readonly message: string;
|
|
104
|
-
readonly
|
|
124
|
+
readonly conflictingPrice: Price;
|
|
105
125
|
}
|
|
106
126
|
export interface DuplicateStandalonePriceScopeError {
|
|
107
127
|
readonly code: 'DuplicateStandalonePriceScope';
|
|
@@ -155,17 +175,32 @@ export interface EnumValuesMustMatchError {
|
|
|
155
175
|
export interface ErrorResponse {
|
|
156
176
|
readonly statusCode: number;
|
|
157
177
|
readonly message: string;
|
|
158
|
-
readonly error?: string;
|
|
159
|
-
readonly error_description?: string;
|
|
160
178
|
readonly errors?: ErrorObject[];
|
|
161
179
|
}
|
|
180
|
+
export type _ErrorResponse = ErrorResponse | AuthErrorResponse;
|
|
181
|
+
export interface AuthErrorResponse extends ErrorResponse {
|
|
182
|
+
readonly error: string;
|
|
183
|
+
readonly error_description?: string;
|
|
184
|
+
readonly errors: ErrorObject[];
|
|
185
|
+
}
|
|
162
186
|
export interface ExtensionBadResponseError {
|
|
163
187
|
readonly code: 'ExtensionBadResponse';
|
|
164
188
|
[key: string]: any;
|
|
165
189
|
readonly message: string;
|
|
166
190
|
readonly localizedMessage?: LocalizedString;
|
|
167
191
|
readonly extensionExtraInfo?: any;
|
|
168
|
-
readonly
|
|
192
|
+
readonly extensionErrors: ExtensionError[];
|
|
193
|
+
readonly extensionBody?: string;
|
|
194
|
+
readonly extensionStatusCode?: number;
|
|
195
|
+
readonly extensionId: string;
|
|
196
|
+
readonly extensionKey?: string;
|
|
197
|
+
}
|
|
198
|
+
export interface ExtensionError {
|
|
199
|
+
[key: string]: any;
|
|
200
|
+
readonly code: string;
|
|
201
|
+
readonly message: string;
|
|
202
|
+
readonly extensionId: string;
|
|
203
|
+
readonly extensionKey?: string;
|
|
169
204
|
}
|
|
170
205
|
export interface ExtensionNoResponseError {
|
|
171
206
|
readonly code: 'ExtensionNoResponse';
|
|
@@ -174,13 +209,19 @@ export interface ExtensionNoResponseError {
|
|
|
174
209
|
readonly extensionId: string;
|
|
175
210
|
readonly extensionKey?: string;
|
|
176
211
|
}
|
|
212
|
+
export interface ExtensionPredicateEvaluationFailedError {
|
|
213
|
+
readonly code: 'ExtensionPredicateEvaluationFailed';
|
|
214
|
+
[key: string]: any;
|
|
215
|
+
readonly message: string;
|
|
216
|
+
readonly errorByExtension: ErrorByExtension;
|
|
217
|
+
}
|
|
177
218
|
export interface ExtensionUpdateActionsFailedError {
|
|
178
219
|
readonly code: 'ExtensionUpdateActionsFailed';
|
|
179
220
|
[key: string]: any;
|
|
180
221
|
readonly message: string;
|
|
181
222
|
readonly localizedMessage?: LocalizedString;
|
|
182
223
|
readonly extensionExtraInfo?: any;
|
|
183
|
-
readonly
|
|
224
|
+
readonly extensionErrors: ExtensionError[];
|
|
184
225
|
}
|
|
185
226
|
export interface ExternalOAuthFailedError {
|
|
186
227
|
readonly code: 'ExternalOAuthFailed';
|
|
@@ -241,6 +282,7 @@ export interface InvalidJsonInputError {
|
|
|
241
282
|
readonly code: 'InvalidJsonInput';
|
|
242
283
|
[key: string]: any;
|
|
243
284
|
readonly message: string;
|
|
285
|
+
readonly detailedErrorMessage: string;
|
|
244
286
|
}
|
|
245
287
|
export interface InvalidOperationError {
|
|
246
288
|
readonly code: 'InvalidOperation';
|
|
@@ -348,6 +390,19 @@ export interface PriceChangedError {
|
|
|
348
390
|
readonly lineItems: string[];
|
|
349
391
|
readonly shipping: boolean;
|
|
350
392
|
}
|
|
393
|
+
export interface ProductAssignmentMissingError {
|
|
394
|
+
readonly code: 'ProductAssignmentMissing';
|
|
395
|
+
[key: string]: any;
|
|
396
|
+
readonly message: string;
|
|
397
|
+
readonly product: ProductReference;
|
|
398
|
+
}
|
|
399
|
+
export interface ProductPresentWithDifferentVariantSelectionError {
|
|
400
|
+
readonly code: 'ProductPresentWithDifferentVariantSelection';
|
|
401
|
+
[key: string]: any;
|
|
402
|
+
readonly message: string;
|
|
403
|
+
readonly product: ProductReference;
|
|
404
|
+
readonly existingVariantSelection: ProductVariantSelection;
|
|
405
|
+
}
|
|
351
406
|
export interface ProjectNotConfiguredForLanguagesError {
|
|
352
407
|
readonly code: 'ProjectNotConfiguredForLanguages';
|
|
353
408
|
[key: string]: any;
|
|
@@ -434,8 +489,386 @@ export interface VariantValues {
|
|
|
434
489
|
readonly prices: PriceDraft[];
|
|
435
490
|
readonly attributes: Attribute[];
|
|
436
491
|
}
|
|
437
|
-
export
|
|
438
|
-
|
|
492
|
+
export type GraphQLErrorObject = GraphQLAnonymousIdAlreadyInUseError | GraphQLAssociateMissingPermissionError | GraphQLAttributeDefinitionAlreadyExistsError | GraphQLAttributeDefinitionTypeConflictError | GraphQLAttributeNameDoesNotExistError | GraphQLBadGatewayError | GraphQLConcurrentModificationError | GraphQLCountryNotConfiguredInStoreError | GraphQLDiscountCodeNonApplicableError | GraphQLDuplicateAttributeValueError | GraphQLDuplicateAttributeValuesError | GraphQLDuplicateEnumValuesError | GraphQLDuplicateFieldError | GraphQLDuplicateFieldWithConflictingResourceError | GraphQLDuplicatePriceKeyError | GraphQLDuplicatePriceScopeError | GraphQLDuplicateStandalonePriceScopeError | GraphQLDuplicateVariantValuesError | GraphQLEditPreviewFailedError | GraphQLEnumKeyAlreadyExistsError | GraphQLEnumKeyDoesNotExistError | GraphQLEnumValueIsUsedError | GraphQLEnumValuesMustMatchError | GraphQLExtensionBadResponseError | GraphQLExtensionNoResponseError | GraphQLExtensionPredicateEvaluationFailedError | GraphQLExtensionUpdateActionsFailedError | GraphQLExternalOAuthFailedError | GraphQLFeatureRemovedError | GraphQLGeneralError | GraphQLInsufficientScopeError | GraphQLInternalConstraintViolatedError | GraphQLInvalidCredentialsError | GraphQLInvalidCurrentPasswordError | GraphQLInvalidFieldError | GraphQLInvalidInputError | GraphQLInvalidItemShippingDetailsError | GraphQLInvalidJsonInputError | GraphQLInvalidOperationError | GraphQLInvalidSubjectError | GraphQLInvalidTokenError | GraphQLLanguageUsedInStoresError | GraphQLMatchingPriceNotFoundError | GraphQLMaxResourceLimitExceededError | GraphQLMissingRoleOnChannelError | GraphQLMissingTaxRateForCountryError | GraphQLNoMatchingProductDiscountFoundError | GraphQLNotEnabledError | GraphQLObjectNotFoundError | GraphQLOutOfStockError | GraphQLOverCapacityError | GraphQLOverlappingStandalonePriceValidityError | GraphQLPendingOperationError | GraphQLPriceChangedError | GraphQLProductAssignmentMissingError | GraphQLProductPresentWithDifferentVariantSelectionError | GraphQLProjectNotConfiguredForLanguagesError | GraphQLQueryComplexityLimitExceededError | GraphQLQueryTimedOutError | GraphQLReferenceExistsError | GraphQLReferencedResourceNotFoundError | GraphQLRequiredFieldError | GraphQLResourceNotFoundError | GraphQLResourceSizeLimitExceededError | GraphQLSearchDeactivatedError | GraphQLSearchExecutionFailureError | GraphQLSearchFacetPathNotFoundError | GraphQLSearchIndexingInProgressError | GraphQLSemanticErrorError | GraphQLShippingMethodDoesNotMatchCartError | GraphQLSyntaxErrorError;
|
|
493
|
+
export interface GraphQLAnonymousIdAlreadyInUseError {
|
|
494
|
+
readonly code: 'AnonymousIdAlreadyInUse';
|
|
495
|
+
[key: string]: any;
|
|
496
|
+
}
|
|
497
|
+
export interface GraphQLAssociateMissingPermissionError {
|
|
498
|
+
readonly code: 'AssociateMissingPermission';
|
|
499
|
+
[key: string]: any;
|
|
500
|
+
readonly associate: CustomerResourceIdentifier;
|
|
501
|
+
readonly businessUnit: BusinessUnitResourceIdentifier;
|
|
502
|
+
readonly associateOnBehalf?: CustomerResourceIdentifier;
|
|
503
|
+
readonly permissions: Permission[];
|
|
504
|
+
}
|
|
505
|
+
export interface GraphQLAttributeDefinitionAlreadyExistsError {
|
|
506
|
+
readonly code: 'AttributeDefinitionAlreadyExists';
|
|
507
|
+
[key: string]: any;
|
|
508
|
+
readonly conflictingProductTypeId: string;
|
|
509
|
+
readonly conflictingProductTypeName: string;
|
|
510
|
+
readonly conflictingAttributeName: string;
|
|
511
|
+
}
|
|
512
|
+
export interface GraphQLAttributeDefinitionTypeConflictError {
|
|
513
|
+
readonly code: 'AttributeDefinitionTypeConflict';
|
|
514
|
+
[key: string]: any;
|
|
515
|
+
readonly conflictingProductTypeId: string;
|
|
516
|
+
readonly conflictingProductTypeName: string;
|
|
517
|
+
readonly conflictingAttributeName: string;
|
|
518
|
+
}
|
|
519
|
+
export interface GraphQLAttributeNameDoesNotExistError {
|
|
520
|
+
readonly code: 'AttributeNameDoesNotExist';
|
|
521
|
+
[key: string]: any;
|
|
522
|
+
readonly invalidAttributeName: string;
|
|
523
|
+
}
|
|
524
|
+
export interface GraphQLBadGatewayError {
|
|
525
|
+
readonly code: 'BadGateway';
|
|
526
|
+
[key: string]: any;
|
|
527
|
+
}
|
|
528
|
+
export interface GraphQLConcurrentModificationError {
|
|
529
|
+
readonly code: 'ConcurrentModification';
|
|
530
|
+
[key: string]: any;
|
|
531
|
+
readonly currentVersion?: number;
|
|
532
|
+
}
|
|
533
|
+
export interface GraphQLCountryNotConfiguredInStoreError {
|
|
534
|
+
readonly code: 'CountryNotConfiguredInStore';
|
|
535
|
+
[key: string]: any;
|
|
536
|
+
readonly storeCountries: string[];
|
|
537
|
+
readonly country: string;
|
|
538
|
+
}
|
|
539
|
+
export interface GraphQLDiscountCodeNonApplicableError {
|
|
540
|
+
readonly code: 'DiscountCodeNonApplicable';
|
|
541
|
+
[key: string]: any;
|
|
542
|
+
readonly discountCode?: string;
|
|
543
|
+
readonly reason?: string;
|
|
544
|
+
readonly discountCodeId?: string;
|
|
545
|
+
readonly validFrom?: string;
|
|
546
|
+
readonly validUntil?: string;
|
|
547
|
+
readonly validityCheckTime?: string;
|
|
548
|
+
}
|
|
549
|
+
export interface GraphQLDuplicateAttributeValueError {
|
|
550
|
+
readonly code: 'DuplicateAttributeValue';
|
|
551
|
+
[key: string]: any;
|
|
552
|
+
readonly attribute: Attribute;
|
|
553
|
+
}
|
|
554
|
+
export interface GraphQLDuplicateAttributeValuesError {
|
|
555
|
+
readonly code: 'DuplicateAttributeValues';
|
|
556
|
+
[key: string]: any;
|
|
557
|
+
readonly attributes: Attribute[];
|
|
558
|
+
}
|
|
559
|
+
export interface GraphQLDuplicateEnumValuesError {
|
|
560
|
+
readonly code: 'DuplicateEnumValues';
|
|
561
|
+
[key: string]: any;
|
|
562
|
+
readonly duplicates: string[];
|
|
563
|
+
}
|
|
564
|
+
export interface GraphQLDuplicateFieldError {
|
|
565
|
+
readonly code: 'DuplicateField';
|
|
566
|
+
[key: string]: any;
|
|
567
|
+
readonly field: string;
|
|
568
|
+
readonly duplicateValue: any;
|
|
569
|
+
}
|
|
570
|
+
export interface GraphQLDuplicateFieldWithConflictingResourceError {
|
|
571
|
+
readonly code: 'DuplicateFieldWithConflictingResource';
|
|
572
|
+
[key: string]: any;
|
|
573
|
+
readonly field: string;
|
|
574
|
+
readonly duplicateValue: any;
|
|
575
|
+
readonly conflictingResource: Reference;
|
|
576
|
+
}
|
|
577
|
+
export interface GraphQLDuplicatePriceKeyError {
|
|
578
|
+
readonly code: 'DuplicatePriceKey';
|
|
579
|
+
[key: string]: any;
|
|
580
|
+
readonly conflictingPrice: Price;
|
|
581
|
+
}
|
|
582
|
+
export interface GraphQLDuplicatePriceScopeError {
|
|
583
|
+
readonly code: 'DuplicatePriceScope';
|
|
584
|
+
[key: string]: any;
|
|
585
|
+
readonly conflictingPrice: Price;
|
|
586
|
+
}
|
|
587
|
+
export interface GraphQLDuplicateStandalonePriceScopeError {
|
|
588
|
+
readonly code: 'DuplicateStandalonePriceScope';
|
|
589
|
+
[key: string]: any;
|
|
590
|
+
readonly conflictingStandalonePrice: StandalonePriceReference;
|
|
591
|
+
readonly sku: string;
|
|
592
|
+
readonly currency: string;
|
|
593
|
+
readonly country?: string;
|
|
594
|
+
readonly customerGroup?: CustomerGroupResourceIdentifier;
|
|
595
|
+
readonly channel?: ChannelResourceIdentifier;
|
|
596
|
+
readonly validFrom?: string;
|
|
597
|
+
readonly validUntil?: string;
|
|
598
|
+
}
|
|
599
|
+
export interface GraphQLDuplicateVariantValuesError {
|
|
600
|
+
readonly code: 'DuplicateVariantValues';
|
|
601
|
+
[key: string]: any;
|
|
602
|
+
readonly variantValues: VariantValues;
|
|
603
|
+
}
|
|
604
|
+
export interface GraphQLEditPreviewFailedError {
|
|
605
|
+
readonly code: 'EditPreviewFailed';
|
|
606
|
+
[key: string]: any;
|
|
607
|
+
readonly result: OrderEditPreviewFailure;
|
|
608
|
+
}
|
|
609
|
+
export interface GraphQLEnumKeyAlreadyExistsError {
|
|
610
|
+
readonly code: 'EnumKeyAlreadyExists';
|
|
611
|
+
[key: string]: any;
|
|
612
|
+
readonly conflictingEnumKey: string;
|
|
613
|
+
readonly conflictingAttributeName: string;
|
|
614
|
+
}
|
|
615
|
+
export interface GraphQLEnumKeyDoesNotExistError {
|
|
616
|
+
readonly code: 'EnumKeyDoesNotExist';
|
|
617
|
+
[key: string]: any;
|
|
618
|
+
readonly conflictingEnumKey: string;
|
|
619
|
+
readonly conflictingAttributeName: string;
|
|
620
|
+
}
|
|
621
|
+
export interface GraphQLEnumValueIsUsedError {
|
|
622
|
+
readonly code: 'EnumValueIsUsed';
|
|
623
|
+
[key: string]: any;
|
|
624
|
+
}
|
|
625
|
+
export interface GraphQLEnumValuesMustMatchError {
|
|
626
|
+
readonly code: 'EnumValuesMustMatch';
|
|
627
|
+
[key: string]: any;
|
|
628
|
+
}
|
|
629
|
+
export interface GraphQLExtensionBadResponseError {
|
|
630
|
+
readonly code: 'ExtensionBadResponse';
|
|
631
|
+
[key: string]: any;
|
|
632
|
+
readonly localizedMessage?: LocalizedString;
|
|
633
|
+
readonly extensionExtraInfo?: any;
|
|
634
|
+
readonly extensionErrors: ExtensionError[];
|
|
635
|
+
readonly extensionBody?: string;
|
|
636
|
+
readonly extensionStatusCode?: number;
|
|
637
|
+
readonly extensionId: string;
|
|
638
|
+
readonly extensionKey?: string;
|
|
639
|
+
}
|
|
640
|
+
export interface GraphQLExtensionNoResponseError {
|
|
641
|
+
readonly code: 'ExtensionNoResponse';
|
|
642
|
+
[key: string]: any;
|
|
643
|
+
readonly extensionId: string;
|
|
644
|
+
readonly extensionKey?: string;
|
|
645
|
+
}
|
|
646
|
+
export interface GraphQLExtensionPredicateEvaluationFailedError {
|
|
647
|
+
readonly code: 'ExtensionPredicateEvaluationFailed';
|
|
648
|
+
[key: string]: any;
|
|
649
|
+
readonly errorByExtension: ErrorByExtension;
|
|
650
|
+
}
|
|
651
|
+
export interface GraphQLExtensionUpdateActionsFailedError {
|
|
652
|
+
readonly code: 'ExtensionUpdateActionsFailed';
|
|
653
|
+
[key: string]: any;
|
|
654
|
+
readonly localizedMessage?: LocalizedString;
|
|
655
|
+
readonly extensionExtraInfo?: any;
|
|
656
|
+
readonly extensionErrors: ExtensionError[];
|
|
657
|
+
}
|
|
658
|
+
export interface GraphQLExternalOAuthFailedError {
|
|
659
|
+
readonly code: 'ExternalOAuthFailed';
|
|
660
|
+
[key: string]: any;
|
|
661
|
+
}
|
|
662
|
+
export interface GraphQLFeatureRemovedError {
|
|
663
|
+
readonly code: 'FeatureRemoved';
|
|
664
|
+
[key: string]: any;
|
|
665
|
+
}
|
|
666
|
+
export interface GraphQLGeneralError {
|
|
667
|
+
readonly code: 'General';
|
|
668
|
+
[key: string]: any;
|
|
669
|
+
}
|
|
670
|
+
export interface GraphQLInsufficientScopeError {
|
|
671
|
+
readonly code: 'insufficient_scope';
|
|
672
|
+
[key: string]: any;
|
|
673
|
+
}
|
|
674
|
+
export interface GraphQLInternalConstraintViolatedError {
|
|
675
|
+
readonly code: 'InternalConstraintViolated';
|
|
676
|
+
[key: string]: any;
|
|
677
|
+
}
|
|
678
|
+
export interface GraphQLInvalidCredentialsError {
|
|
679
|
+
readonly code: 'InvalidCredentials';
|
|
680
|
+
[key: string]: any;
|
|
681
|
+
}
|
|
682
|
+
export interface GraphQLInvalidCurrentPasswordError {
|
|
683
|
+
readonly code: 'InvalidCurrentPassword';
|
|
684
|
+
[key: string]: any;
|
|
685
|
+
}
|
|
686
|
+
export interface GraphQLInvalidFieldError {
|
|
687
|
+
readonly code: 'InvalidField';
|
|
688
|
+
[key: string]: any;
|
|
689
|
+
readonly field: string;
|
|
690
|
+
readonly invalidValue: any;
|
|
691
|
+
readonly allowedValues?: any[];
|
|
692
|
+
}
|
|
693
|
+
export interface GraphQLInvalidInputError {
|
|
694
|
+
readonly code: 'InvalidInput';
|
|
695
|
+
[key: string]: any;
|
|
696
|
+
}
|
|
697
|
+
export interface GraphQLInvalidItemShippingDetailsError {
|
|
698
|
+
readonly code: 'InvalidItemShippingDetails';
|
|
699
|
+
[key: string]: any;
|
|
700
|
+
readonly subject: string;
|
|
701
|
+
readonly itemId: string;
|
|
702
|
+
}
|
|
703
|
+
export interface GraphQLInvalidJsonInputError {
|
|
704
|
+
readonly code: 'InvalidJsonInput';
|
|
705
|
+
[key: string]: any;
|
|
706
|
+
readonly detailedErrorMessage: string;
|
|
707
|
+
}
|
|
708
|
+
export interface GraphQLInvalidOperationError {
|
|
709
|
+
readonly code: 'InvalidOperation';
|
|
710
|
+
[key: string]: any;
|
|
711
|
+
}
|
|
712
|
+
export interface GraphQLInvalidSubjectError {
|
|
713
|
+
readonly code: 'InvalidSubject';
|
|
714
|
+
[key: string]: any;
|
|
715
|
+
}
|
|
716
|
+
export interface GraphQLInvalidTokenError {
|
|
717
|
+
readonly code: 'invalid_token';
|
|
718
|
+
[key: string]: any;
|
|
719
|
+
}
|
|
720
|
+
export interface GraphQLLanguageUsedInStoresError {
|
|
721
|
+
readonly code: 'LanguageUsedInStores';
|
|
722
|
+
[key: string]: any;
|
|
723
|
+
}
|
|
724
|
+
export interface GraphQLMatchingPriceNotFoundError {
|
|
725
|
+
readonly code: 'MatchingPriceNotFound';
|
|
726
|
+
[key: string]: any;
|
|
727
|
+
readonly productId: string;
|
|
728
|
+
readonly variantId: number;
|
|
729
|
+
readonly currency?: string;
|
|
730
|
+
readonly country?: string;
|
|
731
|
+
readonly customerGroup?: CustomerGroupReference;
|
|
732
|
+
readonly channel?: ChannelReference;
|
|
733
|
+
}
|
|
734
|
+
export interface GraphQLMaxResourceLimitExceededError {
|
|
735
|
+
readonly code: 'MaxResourceLimitExceeded';
|
|
736
|
+
[key: string]: any;
|
|
737
|
+
readonly exceededResource: ReferenceTypeId;
|
|
738
|
+
}
|
|
739
|
+
export interface GraphQLMissingRoleOnChannelError {
|
|
740
|
+
readonly code: 'MissingRoleOnChannel';
|
|
741
|
+
[key: string]: any;
|
|
742
|
+
readonly channel?: ChannelResourceIdentifier;
|
|
743
|
+
readonly missingRole: ChannelRoleEnum;
|
|
744
|
+
}
|
|
745
|
+
export interface GraphQLMissingTaxRateForCountryError {
|
|
746
|
+
readonly code: 'MissingTaxRateForCountry';
|
|
747
|
+
[key: string]: any;
|
|
748
|
+
readonly taxCategoryId: string;
|
|
749
|
+
readonly country?: string;
|
|
750
|
+
readonly state?: string;
|
|
751
|
+
}
|
|
752
|
+
export interface GraphQLNoMatchingProductDiscountFoundError {
|
|
753
|
+
readonly code: 'NoMatchingProductDiscountFound';
|
|
754
|
+
[key: string]: any;
|
|
755
|
+
}
|
|
756
|
+
export interface GraphQLNotEnabledError {
|
|
757
|
+
readonly code: 'NotEnabled';
|
|
758
|
+
[key: string]: any;
|
|
759
|
+
}
|
|
760
|
+
export interface GraphQLObjectNotFoundError {
|
|
761
|
+
readonly code: 'ObjectNotFound';
|
|
762
|
+
[key: string]: any;
|
|
763
|
+
}
|
|
764
|
+
export interface GraphQLOutOfStockError {
|
|
765
|
+
readonly code: 'OutOfStock';
|
|
766
|
+
[key: string]: any;
|
|
767
|
+
readonly lineItems: string[];
|
|
768
|
+
readonly skus: string[];
|
|
769
|
+
}
|
|
770
|
+
export interface GraphQLOverCapacityError {
|
|
771
|
+
readonly code: 'OverCapacity';
|
|
772
|
+
[key: string]: any;
|
|
773
|
+
}
|
|
774
|
+
export interface GraphQLOverlappingStandalonePriceValidityError {
|
|
775
|
+
readonly code: 'OverlappingStandalonePriceValidity';
|
|
776
|
+
[key: string]: any;
|
|
777
|
+
readonly conflictingStandalonePrice: StandalonePriceReference;
|
|
778
|
+
readonly sku: string;
|
|
779
|
+
readonly currency: string;
|
|
780
|
+
readonly country?: string;
|
|
781
|
+
readonly customerGroup?: CustomerGroupResourceIdentifier;
|
|
782
|
+
readonly channel?: ChannelResourceIdentifier;
|
|
783
|
+
readonly validFrom?: string;
|
|
784
|
+
readonly validUntil?: string;
|
|
785
|
+
readonly conflictingValidFrom?: string;
|
|
786
|
+
readonly conflictingValidUntil?: string;
|
|
787
|
+
}
|
|
788
|
+
export interface GraphQLPendingOperationError {
|
|
789
|
+
readonly code: 'PendingOperation';
|
|
790
|
+
[key: string]: any;
|
|
791
|
+
}
|
|
792
|
+
export interface GraphQLPriceChangedError {
|
|
793
|
+
readonly code: 'PriceChanged';
|
|
794
|
+
[key: string]: any;
|
|
795
|
+
readonly lineItems: string[];
|
|
796
|
+
readonly shipping: boolean;
|
|
797
|
+
}
|
|
798
|
+
export interface GraphQLProductAssignmentMissingError {
|
|
799
|
+
readonly code: 'ProductAssignmentMissing';
|
|
800
|
+
[key: string]: any;
|
|
801
|
+
readonly product: ProductReference;
|
|
802
|
+
}
|
|
803
|
+
export interface GraphQLProductPresentWithDifferentVariantSelectionError {
|
|
804
|
+
readonly code: 'ProductPresentWithDifferentVariantSelection';
|
|
805
|
+
[key: string]: any;
|
|
806
|
+
readonly product: ProductReference;
|
|
807
|
+
readonly existingVariantSelection: ProductVariantSelection;
|
|
808
|
+
}
|
|
809
|
+
export interface GraphQLProjectNotConfiguredForLanguagesError {
|
|
810
|
+
readonly code: 'ProjectNotConfiguredForLanguages';
|
|
811
|
+
[key: string]: any;
|
|
812
|
+
readonly languages?: string[];
|
|
813
|
+
}
|
|
814
|
+
export interface GraphQLQueryComplexityLimitExceededError {
|
|
815
|
+
readonly code: 'QueryComplexityLimitExceeded';
|
|
816
|
+
[key: string]: any;
|
|
817
|
+
}
|
|
818
|
+
export interface GraphQLQueryTimedOutError {
|
|
819
|
+
readonly code: 'QueryTimedOut';
|
|
820
|
+
[key: string]: any;
|
|
821
|
+
}
|
|
822
|
+
export interface GraphQLReferenceExistsError {
|
|
823
|
+
readonly code: 'ReferenceExists';
|
|
824
|
+
[key: string]: any;
|
|
825
|
+
readonly referencedBy?: ReferenceTypeId;
|
|
826
|
+
}
|
|
827
|
+
export interface GraphQLReferencedResourceNotFoundError {
|
|
828
|
+
readonly code: 'ReferencedResourceNotFound';
|
|
829
|
+
[key: string]: any;
|
|
830
|
+
readonly typeId: ReferenceTypeId;
|
|
831
|
+
readonly id?: string;
|
|
832
|
+
readonly key?: string;
|
|
833
|
+
}
|
|
834
|
+
export interface GraphQLRequiredFieldError {
|
|
835
|
+
readonly code: 'RequiredField';
|
|
836
|
+
[key: string]: any;
|
|
837
|
+
readonly field: string;
|
|
838
|
+
}
|
|
839
|
+
export interface GraphQLResourceNotFoundError {
|
|
840
|
+
readonly code: 'ResourceNotFound';
|
|
841
|
+
[key: string]: any;
|
|
842
|
+
}
|
|
843
|
+
export interface GraphQLResourceSizeLimitExceededError {
|
|
844
|
+
readonly code: 'ResourceSizeLimitExceeded';
|
|
845
|
+
[key: string]: any;
|
|
846
|
+
}
|
|
847
|
+
export interface GraphQLSearchDeactivatedError {
|
|
848
|
+
readonly code: 'SearchDeactivated';
|
|
849
|
+
[key: string]: any;
|
|
850
|
+
}
|
|
851
|
+
export interface GraphQLSearchExecutionFailureError {
|
|
852
|
+
readonly code: 'SearchExecutionFailure';
|
|
853
|
+
[key: string]: any;
|
|
854
|
+
}
|
|
855
|
+
export interface GraphQLSearchFacetPathNotFoundError {
|
|
856
|
+
readonly code: 'SearchFacetPathNotFound';
|
|
857
|
+
[key: string]: any;
|
|
858
|
+
}
|
|
859
|
+
export interface GraphQLSearchIndexingInProgressError {
|
|
860
|
+
readonly code: 'SearchIndexingInProgress';
|
|
861
|
+
[key: string]: any;
|
|
862
|
+
}
|
|
863
|
+
export interface GraphQLSemanticErrorError {
|
|
864
|
+
readonly code: 'SemanticError';
|
|
865
|
+
[key: string]: any;
|
|
866
|
+
}
|
|
867
|
+
export interface GraphQLShippingMethodDoesNotMatchCartError {
|
|
868
|
+
readonly code: 'ShippingMethodDoesNotMatchCart';
|
|
869
|
+
[key: string]: any;
|
|
870
|
+
}
|
|
871
|
+
export interface GraphQLSyntaxErrorError {
|
|
872
|
+
readonly code: 'SyntaxError';
|
|
439
873
|
[key: string]: any;
|
|
440
|
-
readonly message: string;
|
|
441
874
|
}
|
|
@@ -11,8 +11,8 @@ export interface Extension extends BaseResource {
|
|
|
11
11
|
readonly triggers: ExtensionTrigger[];
|
|
12
12
|
readonly timeoutInMs?: number;
|
|
13
13
|
}
|
|
14
|
-
export type ExtensionAction = 'Create' | 'Update';
|
|
15
|
-
export type ExtensionDestination = AWSLambdaDestination | HttpDestination;
|
|
14
|
+
export type ExtensionAction = 'Create' | 'Update' | string;
|
|
15
|
+
export type ExtensionDestination = AWSLambdaDestination | GoogleCloudFunctionDestination | HttpDestination;
|
|
16
16
|
export interface AWSLambdaDestination {
|
|
17
17
|
readonly type: 'AWSLambda';
|
|
18
18
|
readonly arn: string;
|
|
@@ -36,7 +36,7 @@ export interface ExtensionPagedQueryResponse {
|
|
|
36
36
|
readonly total?: number;
|
|
37
37
|
readonly results: Extension[];
|
|
38
38
|
}
|
|
39
|
-
export type ExtensionResourceTypeId = 'cart' | 'customer' | 'order' | 'payment' | 'quote' | 'quote-request' | 'staged-quote';
|
|
39
|
+
export type ExtensionResourceTypeId = 'business-unit' | 'cart' | 'customer' | 'order' | 'payment' | 'quote' | 'quote-request' | 'staged-quote' | string;
|
|
40
40
|
export interface ExtensionTrigger {
|
|
41
41
|
readonly resourceTypeId: ExtensionResourceTypeId;
|
|
42
42
|
readonly actions: ExtensionAction[];
|
|
@@ -47,6 +47,10 @@ export interface ExtensionUpdate {
|
|
|
47
47
|
readonly actions: ExtensionUpdateAction[];
|
|
48
48
|
}
|
|
49
49
|
export type ExtensionUpdateAction = ExtensionChangeDestinationAction | ExtensionChangeTriggersAction | ExtensionSetKeyAction | ExtensionSetTimeoutInMsAction;
|
|
50
|
+
export interface GoogleCloudFunctionDestination {
|
|
51
|
+
readonly type: 'GoogleCloudFunction';
|
|
52
|
+
readonly url: string;
|
|
53
|
+
}
|
|
50
54
|
export interface HttpDestination {
|
|
51
55
|
readonly type: 'HTTP';
|
|
52
56
|
readonly url: string;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { GraphQLErrorObject } from './error';
|
|
1
2
|
export interface GraphQLError {
|
|
2
3
|
readonly message: string;
|
|
3
4
|
readonly locations: GraphQLErrorLocation[];
|
|
4
|
-
readonly path
|
|
5
|
+
readonly path?: any[];
|
|
6
|
+
readonly extensions: GraphQLErrorObject;
|
|
5
7
|
}
|
|
6
8
|
export interface GraphQLErrorLocation {
|
|
7
9
|
readonly line: number;
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './associate-role';
|
|
2
|
+
export * from './attribute-group';
|
|
3
|
+
export * from './business-unit';
|
|
2
4
|
export * from './cart-discount';
|
|
5
|
+
export * from './cart';
|
|
3
6
|
export * from './category';
|
|
4
7
|
export * from './channel';
|
|
5
8
|
export * from './common';
|
|
6
|
-
export * from './custom-object';
|
|
7
|
-
export * from './customer';
|
|
8
9
|
export * from './customer-group';
|
|
10
|
+
export * from './customer';
|
|
11
|
+
export * from './custom-object';
|
|
9
12
|
export * from './discount-code';
|
|
10
13
|
export * from './error';
|
|
11
14
|
export * from './extension';
|
|
12
15
|
export * from './graph-ql';
|
|
13
16
|
export * from './inventory';
|
|
14
|
-
export * from './me';
|
|
15
17
|
export * from './message';
|
|
16
|
-
export * from './
|
|
18
|
+
export * from './me';
|
|
17
19
|
export * from './order-edit';
|
|
20
|
+
export * from './order';
|
|
18
21
|
export * from './payment';
|
|
19
|
-
export * from './product';
|
|
20
22
|
export * from './product-discount';
|
|
21
23
|
export * from './product-selection';
|
|
24
|
+
export * from './product';
|
|
22
25
|
export * from './product-type';
|
|
23
26
|
export * from './project';
|
|
27
|
+
export * from './quote-request';
|
|
28
|
+
export * from './quote';
|
|
24
29
|
export * from './review';
|
|
25
30
|
export * from './scalar-types';
|
|
26
31
|
export * from './shipping-method';
|
|
27
32
|
export * from './shopping-list';
|
|
33
|
+
export * from './staged-quote';
|
|
28
34
|
export * from './standalone-price';
|
|
29
35
|
export * from './state';
|
|
36
|
+
export * from './store-country';
|
|
30
37
|
export * from './store';
|
|
31
38
|
export * from './subscription';
|
|
32
39
|
export * from './tax-category';
|