@aimee.shop/sdk 0.31.0-dev.320 → 0.31.0-dev.322

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.
Files changed (29) hide show
  1. package/dist/core/errors/shipping-rate-in-use.d.ts +25 -0
  2. package/dist/core/errors/shipping-rate-in-use.d.ts.map +1 -0
  3. package/dist/core/errors/shipping-rate-in-use.js +31 -0
  4. package/dist/core/errors/shipping-rate-in-use.js.map +1 -0
  5. package/dist/generated/core-api.d.ts +439 -30
  6. package/dist/generated/core-api.d.ts.map +1 -1
  7. package/dist/index.d.ts +3 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +1 -0
  10. package/dist/index.js.map +1 -1
  11. package/dist/services/core/shipping/index.d.ts +1 -0
  12. package/dist/services/core/shipping/index.d.ts.map +1 -1
  13. package/dist/services/core/shipping/index.js +1 -0
  14. package/dist/services/core/shipping/index.js.map +1 -1
  15. package/dist/services/core/shipping/methods.client.d.ts +20 -0
  16. package/dist/services/core/shipping/methods.client.d.ts.map +1 -0
  17. package/dist/services/core/shipping/methods.client.js +31 -0
  18. package/dist/services/core/shipping/methods.client.js.map +1 -0
  19. package/dist/services/core/shipping/rates.client.d.ts +6 -2
  20. package/dist/services/core/shipping/rates.client.d.ts.map +1 -1
  21. package/dist/services/core/shipping/rates.client.js +6 -2
  22. package/dist/services/core/shipping/rates.client.js.map +1 -1
  23. package/dist/services/core/shipping/shipping.client.d.ts +12 -1
  24. package/dist/services/core/shipping/shipping.client.d.ts.map +1 -1
  25. package/dist/services/core/shipping/shipping.client.js +21 -0
  26. package/dist/services/core/shipping/shipping.client.js.map +1 -1
  27. package/dist/services/core/shipping/types.d.ts +27 -5
  28. package/dist/services/core/shipping/types.d.ts.map +1 -1
  29. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ import { ConflictError } from './index.js';
2
+ /** Error code core-api returns when a shipping rate is still linked to rules. */
3
+ export declare const SHIPPING_RATE_IN_USE_CODE = "SHIPPING_RATE_IN_USE";
4
+ /** A rule that still uses the rate. */
5
+ export interface ShippingRateLinkedRule {
6
+ id: string;
7
+ name: string;
8
+ }
9
+ /** Body of the 409 from `sdk.shipping.rates.delete(id)` when the rate is linked to rules. */
10
+ export interface ShippingRateInUseErrorBody {
11
+ code: typeof SHIPPING_RATE_IN_USE_CODE;
12
+ message: string;
13
+ linkedRules: ShippingRateLinkedRule[];
14
+ }
15
+ /** 409: the rate is linked to rules. `details` is the typed body. */
16
+ export type ShippingRateInUseError = ConflictError & {
17
+ details: ShippingRateInUseErrorBody;
18
+ };
19
+ /**
20
+ * True when `shipping.rates.delete(id)` failed with 409 `SHIPPING_RATE_IN_USE`. Read
21
+ * `error.details.linkedRules` to list the rules, then retry with `{ force: true }` to
22
+ * unlink the rate and delete it. Any other 409 returns false.
23
+ */
24
+ export declare function isShippingRateInUseError(error: unknown): error is ShippingRateInUseError;
25
+ //# sourceMappingURL=shipping-rate-in-use.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shipping-rate-in-use.d.ts","sourceRoot":"","sources":["../../../../../src/core/errors/shipping-rate-in-use.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,iFAAiF;AACjF,eAAO,MAAM,yBAAyB,yBAAyB,CAAC;AAEhE,uCAAuC;AACvC,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,6FAA6F;AAC7F,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,OAAO,yBAAyB,CAAC;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,sBAAsB,EAAE,CAAC;CACvC;AAED,qEAAqE;AACrE,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG;IACnD,OAAO,EAAE,0BAA0B,CAAC;CACrC,CAAC;AA2BF;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,sBAAsB,CAExF"}
@@ -0,0 +1,31 @@
1
+ import { ConflictError } from './index.js';
2
+ /** Error code core-api returns when a shipping rate is still linked to rules. */
3
+ export const SHIPPING_RATE_IN_USE_CODE = 'SHIPPING_RATE_IN_USE';
4
+ function isLinkedRule(value) {
5
+ return (typeof value === 'object' &&
6
+ value !== null &&
7
+ 'id' in value &&
8
+ typeof value.id === 'string' &&
9
+ 'name' in value &&
10
+ typeof value.name === 'string');
11
+ }
12
+ function isShippingRateInUseBody(value) {
13
+ return (typeof value === 'object' &&
14
+ value !== null &&
15
+ 'code' in value &&
16
+ value.code === SHIPPING_RATE_IN_USE_CODE &&
17
+ 'message' in value &&
18
+ typeof value.message === 'string' &&
19
+ 'linkedRules' in value &&
20
+ Array.isArray(value.linkedRules) &&
21
+ value.linkedRules.every(isLinkedRule));
22
+ }
23
+ /**
24
+ * True when `shipping.rates.delete(id)` failed with 409 `SHIPPING_RATE_IN_USE`. Read
25
+ * `error.details.linkedRules` to list the rules, then retry with `{ force: true }` to
26
+ * unlink the rate and delete it. Any other 409 returns false.
27
+ */
28
+ export function isShippingRateInUseError(error) {
29
+ return error instanceof ConflictError && isShippingRateInUseBody(error.details);
30
+ }
31
+ //# sourceMappingURL=shipping-rate-in-use.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shipping-rate-in-use.js","sourceRoot":"","sources":["../../../../../src/core/errors/shipping-rate-in-use.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,iFAAiF;AACjF,MAAM,CAAC,MAAM,yBAAyB,GAAG,sBAAsB,CAAC;AAoBhE,SAAS,YAAY,CAAC,KAAc;IAClC,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,IAAI,IAAI,KAAK;QACb,OAAO,KAAK,CAAC,EAAE,KAAK,QAAQ;QAC5B,MAAM,IAAI,KAAK;QACf,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAC/B,CAAC;AACJ,CAAC;AAED,SAAS,uBAAuB,CAAC,KAAc;IAC7C,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,MAAM,IAAI,KAAK;QACf,KAAK,CAAC,IAAI,KAAK,yBAAyB;QACxC,SAAS,IAAI,KAAK;QAClB,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ;QACjC,aAAa,IAAI,KAAK;QACtB,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC;QAChC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,YAAY,CAAC,CACtC,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CAAC,KAAc;IACrD,OAAO,KAAK,YAAY,aAAa,IAAI,uBAAuB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAClF,CAAC"}
@@ -5414,7 +5414,7 @@ export interface paths {
5414
5414
  post?: never;
5415
5415
  /**
5416
5416
  * Delete shipping rate
5417
- * @description Soft delete a shipping rate
5417
+ * @description Soft delete a shipping rate. Refuses with 409 while live rules link it; force=true unlinks and deletes.
5418
5418
  */
5419
5419
  delete: operations['ShippingRatesController_remove'];
5420
5420
  options?: never;
@@ -5446,6 +5446,75 @@ export interface paths {
5446
5446
  patch?: never;
5447
5447
  trace?: never;
5448
5448
  };
5449
+ '/v1/shipping/methods': {
5450
+ parameters: {
5451
+ query?: never;
5452
+ header?: never;
5453
+ path?: never;
5454
+ cookie?: never;
5455
+ };
5456
+ /**
5457
+ * List shipping methods
5458
+ * @description Every rule with exactly one linked flat rate, as a method. Ordered by priority (high first), then oldest first.
5459
+ */
5460
+ get: operations['ShippingMethodsController_list'];
5461
+ put?: never;
5462
+ /**
5463
+ * Create a shipping method
5464
+ * @description Creates the flat rate and the rule and links them in one transaction.
5465
+ */
5466
+ post: operations['ShippingMethodsController_create'];
5467
+ delete?: never;
5468
+ options?: never;
5469
+ head?: never;
5470
+ patch?: never;
5471
+ trace?: never;
5472
+ };
5473
+ '/v1/shipping/methods/{id}': {
5474
+ parameters: {
5475
+ query?: never;
5476
+ header?: never;
5477
+ path?: never;
5478
+ cookie?: never;
5479
+ };
5480
+ /** Get a shipping method */
5481
+ get: operations['ShippingMethodsController_findOne'];
5482
+ put?: never;
5483
+ post?: never;
5484
+ /**
5485
+ * Delete a shipping method
5486
+ * @description Deletes the rule, and its rate when no other live rule links the rate.
5487
+ */
5488
+ delete: operations['ShippingMethodsController_remove'];
5489
+ options?: never;
5490
+ head?: never;
5491
+ /**
5492
+ * Update a shipping method
5493
+ * @description Updates the rule and its rate in one transaction. null clears an optional field, [] clears a list, omitted keeps the stored value.
5494
+ */
5495
+ patch: operations['ShippingMethodsController_update'];
5496
+ trace?: never;
5497
+ };
5498
+ '/v1/shipping/store-status': {
5499
+ parameters: {
5500
+ query?: never;
5501
+ header?: never;
5502
+ path?: never;
5503
+ cookie?: never;
5504
+ };
5505
+ /**
5506
+ * Checkout shipping state per store
5507
+ * @description For each store the caller can access: active method count, whether the only active method is the untouched bootstrap method, and whether every active method is free.
5508
+ */
5509
+ get: operations['ShippingStoreStatusController_list'];
5510
+ put?: never;
5511
+ post?: never;
5512
+ delete?: never;
5513
+ options?: never;
5514
+ head?: never;
5515
+ patch?: never;
5516
+ trace?: never;
5517
+ };
5449
5518
  '/v1/shipping/labels': {
5450
5519
  parameters: {
5451
5520
  query?: never;
@@ -23671,6 +23740,18 @@ export interface components {
23671
23740
  updatedAt: string;
23672
23741
  /** @description Associated shipping rates that will be offered when this rule matches */
23673
23742
  shippingRates?: components['schemas']['ShippingRuleRateDto'][];
23743
+ /** @description Targeted product IDs */
23744
+ productIds: string[];
23745
+ /** @description Targeted product variant IDs */
23746
+ productVariantIds: string[];
23747
+ /** @description Targeted SKUs */
23748
+ skus: string[];
23749
+ /** @description Targeted category IDs */
23750
+ categoryIds: string[];
23751
+ /** @description Targeted shipping class IDs */
23752
+ shippingClassIds: string[];
23753
+ /** @description Seeded by store bootstrap and not edited since (cleared when a method edit changes name or price) */
23754
+ isBootstrap: boolean;
23674
23755
  };
23675
23756
  ShippingRuleListResponseDto: {
23676
23757
  rules: components['schemas']['ShippingRuleDto'][];
@@ -24934,16 +25015,6 @@ export interface components {
24934
25015
  * @example ups-ground-standard
24935
25016
  */
24936
25017
  name?: string;
24937
- /**
24938
- * @description Customer-facing display name
24939
- * @example UPS Ground (3-5 business days)
24940
- */
24941
- displayName?: string;
24942
- /**
24943
- * @description Description of the shipping rate
24944
- * @example Standard ground shipping via UPS
24945
- */
24946
- description?: string;
24947
25018
  /**
24948
25019
  * @description Type of rate calculation
24949
25020
  * @example flat
@@ -24961,24 +25032,6 @@ export interface components {
24961
25032
  * @example USD
24962
25033
  */
24963
25034
  currency?: string;
24964
- /**
24965
- * @description Rate modifiers for additional fees and adjustments
24966
- * @example {
24967
- * "handlingFee": 250,
24968
- * "fuelSurchargePercent": 5
24969
- * }
24970
- */
24971
- rateModifiers?: components['schemas']['RateModifiersDto'];
24972
- /**
24973
- * @description Minimum delivery estimate in business days
24974
- * @example 3
24975
- */
24976
- deliveryEstimateMinDays?: number;
24977
- /**
24978
- * @description Maximum delivery estimate in business days
24979
- * @example 5
24980
- */
24981
- deliveryEstimateMaxDays?: number;
24982
25035
  /**
24983
25036
  * @description When true the rate is not offered for PO box destinations (checkout returns it unavailable with code po_box_not_supported)
24984
25037
  * @default false
@@ -24996,6 +25049,190 @@ export interface components {
24996
25049
  * @example true
24997
25050
  */
24998
25051
  isActive?: boolean;
25052
+ /** @description Customer-facing display name. null clears it. */
25053
+ displayName?: string | null;
25054
+ /** @description Rate description. null clears it. */
25055
+ description?: string | null;
25056
+ /** @description Rate modifiers. null clears them. */
25057
+ rateModifiers?: components['schemas']['RateModifiersDto'] | null;
25058
+ /** @description Minimum delivery estimate in days. null clears it. */
25059
+ deliveryEstimateMinDays?: number | null;
25060
+ /** @description Maximum delivery estimate in days. null clears it. */
25061
+ deliveryEstimateMaxDays?: number | null;
25062
+ };
25063
+ ShippingMethodDto: {
25064
+ /** @description Shipping rule ID */
25065
+ id: string;
25066
+ /** @description Linked flat shipping rate ID */
25067
+ rateId: string;
25068
+ name: string;
25069
+ /**
25070
+ * @description Price in cents
25071
+ * @example 500
25072
+ */
25073
+ price: string;
25074
+ /** @example USD */
25075
+ currency: string;
25076
+ deliveryEstimateMinDays: number | null;
25077
+ deliveryEstimateMaxDays: number | null;
25078
+ countries: string[];
25079
+ states: string[];
25080
+ /** @description Minimum cart total in cents */
25081
+ minCartValue: string | null;
25082
+ /** @description Free at or over this cart total, in cents */
25083
+ freeShippingThreshold: string | null;
25084
+ shippingClassIds: string[];
25085
+ /** @description Rule and rate are both active */
25086
+ isActive: boolean;
25087
+ /** @description Seeded by store bootstrap and not edited since */
25088
+ isBootstrap: boolean;
25089
+ priority: number;
25090
+ /** Format: date-time */
25091
+ createdAt: string;
25092
+ /** Format: date-time */
25093
+ updatedAt: string;
25094
+ };
25095
+ ShippingMethodListResponseDto: {
25096
+ methods: components['schemas']['ShippingMethodDto'][];
25097
+ };
25098
+ CreateShippingMethodDto: {
25099
+ /**
25100
+ * @description Method name, shown at checkout
25101
+ * @example United States - Standard
25102
+ */
25103
+ name: string;
25104
+ /**
25105
+ * @description Price in cents. 0 is free.
25106
+ * @example 500
25107
+ */
25108
+ price: number;
25109
+ /**
25110
+ * @description ISO 4217 currency. Defaults to the store default currency.
25111
+ * @example USD
25112
+ */
25113
+ currency?: string;
25114
+ /**
25115
+ * @description Minimum delivery estimate in days. null clears it.
25116
+ * @example 3
25117
+ */
25118
+ deliveryEstimateMinDays?: number | null;
25119
+ /**
25120
+ * @description Maximum delivery estimate in days. null clears it.
25121
+ * @example 7
25122
+ */
25123
+ deliveryEstimateMaxDays?: number | null;
25124
+ /**
25125
+ * @description ISO 3166-1 alpha-2 destination countries
25126
+ * @example [
25127
+ * "US"
25128
+ * ]
25129
+ */
25130
+ countries: string[];
25131
+ /**
25132
+ * @description Only these states or provinces. [] clears.
25133
+ * @example [
25134
+ * "CA",
25135
+ * "NY"
25136
+ * ]
25137
+ */
25138
+ states?: string[];
25139
+ /**
25140
+ * @description Offered only when the cart total is at least this many cents. null clears it.
25141
+ * @example 2500
25142
+ */
25143
+ minCartValue?: number | null;
25144
+ /**
25145
+ * @description This method is free when the cart total is at least this many cents. null clears it.
25146
+ * @example 5000
25147
+ */
25148
+ freeShippingThreshold?: number | null;
25149
+ /** @description Offered only when the cart has a product in one of these shipping classes. [] clears. */
25150
+ shippingClassIds?: string[];
25151
+ /**
25152
+ * @description Offered at checkout
25153
+ * @default true
25154
+ */
25155
+ isActive?: boolean;
25156
+ /**
25157
+ * @description Higher is evaluated first
25158
+ * @default 0
25159
+ */
25160
+ priority?: number;
25161
+ };
25162
+ UpdateShippingMethodDto: {
25163
+ /**
25164
+ * @description Method name, shown at checkout
25165
+ * @example United States - Standard
25166
+ */
25167
+ name?: string;
25168
+ /**
25169
+ * @description Price in cents. 0 is free.
25170
+ * @example 500
25171
+ */
25172
+ price?: number;
25173
+ /**
25174
+ * @description ISO 4217 currency. Defaults to the store default currency.
25175
+ * @example USD
25176
+ */
25177
+ currency?: string;
25178
+ /**
25179
+ * @description Minimum delivery estimate in days. null clears it.
25180
+ * @example 3
25181
+ */
25182
+ deliveryEstimateMinDays?: number | null;
25183
+ /**
25184
+ * @description Maximum delivery estimate in days. null clears it.
25185
+ * @example 7
25186
+ */
25187
+ deliveryEstimateMaxDays?: number | null;
25188
+ /**
25189
+ * @description ISO 3166-1 alpha-2 destination countries
25190
+ * @example [
25191
+ * "US"
25192
+ * ]
25193
+ */
25194
+ countries?: string[];
25195
+ /**
25196
+ * @description Only these states or provinces. [] clears.
25197
+ * @example [
25198
+ * "CA",
25199
+ * "NY"
25200
+ * ]
25201
+ */
25202
+ states?: string[];
25203
+ /**
25204
+ * @description Offered only when the cart total is at least this many cents. null clears it.
25205
+ * @example 2500
25206
+ */
25207
+ minCartValue?: number | null;
25208
+ /**
25209
+ * @description This method is free when the cart total is at least this many cents. null clears it.
25210
+ * @example 5000
25211
+ */
25212
+ freeShippingThreshold?: number | null;
25213
+ /** @description Offered only when the cart has a product in one of these shipping classes. [] clears. */
25214
+ shippingClassIds?: string[];
25215
+ /**
25216
+ * @description Offered at checkout
25217
+ * @default true
25218
+ */
25219
+ isActive?: boolean;
25220
+ /**
25221
+ * @description Higher is evaluated first
25222
+ * @default 0
25223
+ */
25224
+ priority?: number;
25225
+ };
25226
+ ShippingStoreStatusDto: {
25227
+ storeId: string;
25228
+ activeMethodCount: number;
25229
+ /** @description The only active method is the untouched bootstrap method */
25230
+ onlyBootstrap: boolean;
25231
+ /** @description Every active method has price 0. false when there are no active methods. */
25232
+ allFree: boolean;
25233
+ };
25234
+ ShippingStoreStatusListResponseDto: {
25235
+ stores: components['schemas']['ShippingStoreStatusDto'][];
24999
25236
  };
25000
25237
  CreateShippingLabelDto: {
25001
25238
  /**
@@ -51211,7 +51448,10 @@ export interface operations {
51211
51448
  };
51212
51449
  ShippingRatesController_remove: {
51213
51450
  parameters: {
51214
- query?: never;
51451
+ query?: {
51452
+ /** @description Unlink the rate from its rules and delete it */
51453
+ force?: boolean;
51454
+ };
51215
51455
  header?: never;
51216
51456
  path: {
51217
51457
  /** @description Shipping rate ID */
@@ -51235,6 +51475,13 @@ export interface operations {
51235
51475
  };
51236
51476
  content?: never;
51237
51477
  };
51478
+ /** @description Rate is linked to rules: { code: "SHIPPING_RATE_IN_USE", message, linkedRules: [{ id, name }] } */
51479
+ 409: {
51480
+ headers: {
51481
+ [name: string]: unknown;
51482
+ };
51483
+ content?: never;
51484
+ };
51238
51485
  };
51239
51486
  };
51240
51487
  ShippingRatesController_update: {
@@ -51301,6 +51548,168 @@ export interface operations {
51301
51548
  };
51302
51549
  };
51303
51550
  };
51551
+ ShippingMethodsController_list: {
51552
+ parameters: {
51553
+ query?: never;
51554
+ header?: never;
51555
+ path?: never;
51556
+ cookie?: never;
51557
+ };
51558
+ requestBody?: never;
51559
+ responses: {
51560
+ 200: {
51561
+ headers: {
51562
+ [name: string]: unknown;
51563
+ };
51564
+ content: {
51565
+ 'application/json': components['schemas']['ShippingMethodListResponseDto'];
51566
+ };
51567
+ };
51568
+ };
51569
+ };
51570
+ ShippingMethodsController_create: {
51571
+ parameters: {
51572
+ query?: never;
51573
+ header?: never;
51574
+ path?: never;
51575
+ cookie?: never;
51576
+ };
51577
+ requestBody: {
51578
+ content: {
51579
+ 'application/json': components['schemas']['CreateShippingMethodDto'];
51580
+ };
51581
+ };
51582
+ responses: {
51583
+ 201: {
51584
+ headers: {
51585
+ [name: string]: unknown;
51586
+ };
51587
+ content: {
51588
+ 'application/json': components['schemas']['ShippingMethodDto'];
51589
+ };
51590
+ };
51591
+ /** @description Another rate in this store has that name: { code: "SHIPPING_METHOD_NAME_TAKEN", message } */
51592
+ 409: {
51593
+ headers: {
51594
+ [name: string]: unknown;
51595
+ };
51596
+ content?: never;
51597
+ };
51598
+ };
51599
+ };
51600
+ ShippingMethodsController_findOne: {
51601
+ parameters: {
51602
+ query?: never;
51603
+ header?: never;
51604
+ path: {
51605
+ id: string;
51606
+ };
51607
+ cookie?: never;
51608
+ };
51609
+ requestBody?: never;
51610
+ responses: {
51611
+ 200: {
51612
+ headers: {
51613
+ [name: string]: unknown;
51614
+ };
51615
+ content: {
51616
+ 'application/json': components['schemas']['ShippingMethodDto'];
51617
+ };
51618
+ };
51619
+ /** @description No such rule, or it is not a method */
51620
+ 404: {
51621
+ headers: {
51622
+ [name: string]: unknown;
51623
+ };
51624
+ content?: never;
51625
+ };
51626
+ };
51627
+ };
51628
+ ShippingMethodsController_remove: {
51629
+ parameters: {
51630
+ query?: never;
51631
+ header?: never;
51632
+ path: {
51633
+ id: string;
51634
+ };
51635
+ cookie?: never;
51636
+ };
51637
+ requestBody?: never;
51638
+ responses: {
51639
+ /** @description Shipping method deleted */
51640
+ 204: {
51641
+ headers: {
51642
+ [name: string]: unknown;
51643
+ };
51644
+ content?: never;
51645
+ };
51646
+ /** @description No such rule, or it is not a method */
51647
+ 404: {
51648
+ headers: {
51649
+ [name: string]: unknown;
51650
+ };
51651
+ content?: never;
51652
+ };
51653
+ };
51654
+ };
51655
+ ShippingMethodsController_update: {
51656
+ parameters: {
51657
+ query?: never;
51658
+ header?: never;
51659
+ path: {
51660
+ id: string;
51661
+ };
51662
+ cookie?: never;
51663
+ };
51664
+ requestBody: {
51665
+ content: {
51666
+ 'application/json': components['schemas']['UpdateShippingMethodDto'];
51667
+ };
51668
+ };
51669
+ responses: {
51670
+ 200: {
51671
+ headers: {
51672
+ [name: string]: unknown;
51673
+ };
51674
+ content: {
51675
+ 'application/json': components['schemas']['ShippingMethodDto'];
51676
+ };
51677
+ };
51678
+ /** @description No such rule, or it is not a method */
51679
+ 404: {
51680
+ headers: {
51681
+ [name: string]: unknown;
51682
+ };
51683
+ content?: never;
51684
+ };
51685
+ /** @description Another rate in this store has that name: { code: "SHIPPING_METHOD_NAME_TAKEN", message } */
51686
+ 409: {
51687
+ headers: {
51688
+ [name: string]: unknown;
51689
+ };
51690
+ content?: never;
51691
+ };
51692
+ };
51693
+ };
51694
+ ShippingStoreStatusController_list: {
51695
+ parameters: {
51696
+ query?: never;
51697
+ header?: never;
51698
+ path?: never;
51699
+ cookie?: never;
51700
+ };
51701
+ requestBody?: never;
51702
+ responses: {
51703
+ 200: {
51704
+ headers: {
51705
+ [name: string]: unknown;
51706
+ };
51707
+ content: {
51708
+ 'application/json': components['schemas']['ShippingStoreStatusListResponseDto'];
51709
+ };
51710
+ };
51711
+ };
51712
+ };
51304
51713
  ShippingLabelsController_findAll: {
51305
51714
  parameters: {
51306
51715
  query?: {