@poweredbysous/storefront-admin-sdk 4.3.1 → 4.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/index.d.cts CHANGED
@@ -353,6 +353,30 @@ interface paths {
353
353
  patch?: never;
354
354
  trace?: never;
355
355
  };
356
+ "/api/v1/admin/nationwide-shipping/": {
357
+ parameters: {
358
+ query?: never;
359
+ header?: never;
360
+ path?: never;
361
+ cookie?: never;
362
+ };
363
+ /**
364
+ * Read the company's nationwide-shipping switch
365
+ * @description ``GET``/``PATCH /api/v1/admin/nationwide-shipping/``: the company's switch.
366
+ */
367
+ get: operations["admin_nationwide_shipping_retrieve"];
368
+ put?: never;
369
+ post?: never;
370
+ delete?: never;
371
+ options?: never;
372
+ head?: never;
373
+ /**
374
+ * Switch nationwide shipping on or off for every store of the company
375
+ * @description ``GET``/``PATCH /api/v1/admin/nationwide-shipping/``: the company's switch.
376
+ */
377
+ patch: operations["admin_nationwide_shipping_partial_update"];
378
+ trace?: never;
379
+ };
356
380
  "/api/v1/admin/pages/": {
357
381
  parameters: {
358
382
  query?: never;
@@ -4370,6 +4394,13 @@ interface components {
4370
4394
  * @enum {string}
4371
4395
  */
4372
4396
  NamespaceEnum: "merchant" | "product" | "category" | "collection" | "geocoding" | "shipping" | "translation" | "keycloak" | "segment" | "page" | "channel";
4397
+ /** @description The company's nationwide-shipping switch (exploreSOUS). */
4398
+ NationwideShipping: {
4399
+ /** @description Whether the company is on exploreSOUS and so has the switch. */
4400
+ is_available: boolean;
4401
+ /** @description Whether any of the company's stores ships nationwide. */
4402
+ is_enabled: boolean;
4403
+ };
4373
4404
  /** @description Render-ready open/closed badge — see ``availability.get_open_status``. */
4374
4405
  OpenStatus: {
4375
4406
  open: boolean;
@@ -5207,6 +5238,9 @@ interface components {
5207
5238
  PatchedSetCompanyAvailability: {
5208
5239
  is_available?: boolean;
5209
5240
  };
5241
+ PatchedSetNationwideShipping: {
5242
+ is_enabled?: boolean;
5243
+ };
5210
5244
  /**
5211
5245
  * @description PATCH body for a store's delivery-method row.
5212
5246
  *
@@ -7501,6 +7535,182 @@ interface operations {
7501
7535
  };
7502
7536
  };
7503
7537
  };
7538
+ admin_nationwide_shipping_retrieve: {
7539
+ parameters: {
7540
+ query?: never;
7541
+ header?: {
7542
+ /** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
7543
+ "X-Sous-Company-Id"?: number;
7544
+ };
7545
+ path?: never;
7546
+ cookie?: never;
7547
+ };
7548
+ requestBody?: never;
7549
+ responses: {
7550
+ 200: {
7551
+ headers: {
7552
+ [name: string]: unknown;
7553
+ };
7554
+ content: {
7555
+ "application/json": components["schemas"]["NationwideShipping"];
7556
+ };
7557
+ };
7558
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
7559
+ 400: {
7560
+ headers: {
7561
+ [name: string]: unknown;
7562
+ };
7563
+ content: {
7564
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7565
+ };
7566
+ };
7567
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
7568
+ 401: {
7569
+ headers: {
7570
+ [name: string]: unknown;
7571
+ };
7572
+ content: {
7573
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7574
+ };
7575
+ };
7576
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `EXPLORESOUS_CHANNEL_REQUIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
7577
+ 403: {
7578
+ headers: {
7579
+ [name: string]: unknown;
7580
+ };
7581
+ content: {
7582
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7583
+ };
7584
+ };
7585
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
7586
+ 404: {
7587
+ headers: {
7588
+ [name: string]: unknown;
7589
+ };
7590
+ content: {
7591
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7592
+ };
7593
+ };
7594
+ /** @description Possible error codes include `NATIONWIDE_CARRIER_UNCLEAR`. Use `x-error-codes` for machine-readable retryability metadata. */
7595
+ 409: {
7596
+ headers: {
7597
+ [name: string]: unknown;
7598
+ };
7599
+ content: {
7600
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7601
+ };
7602
+ };
7603
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
7604
+ 429: {
7605
+ headers: {
7606
+ [name: string]: unknown;
7607
+ };
7608
+ content: {
7609
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7610
+ };
7611
+ };
7612
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
7613
+ 500: {
7614
+ headers: {
7615
+ [name: string]: unknown;
7616
+ };
7617
+ content: {
7618
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7619
+ };
7620
+ };
7621
+ };
7622
+ };
7623
+ admin_nationwide_shipping_partial_update: {
7624
+ parameters: {
7625
+ query?: never;
7626
+ header?: {
7627
+ /** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
7628
+ "X-Sous-Company-Id"?: number;
7629
+ };
7630
+ path?: never;
7631
+ cookie?: never;
7632
+ };
7633
+ requestBody?: {
7634
+ content: {
7635
+ "application/json": components["schemas"]["PatchedSetNationwideShipping"];
7636
+ "application/x-www-form-urlencoded": components["schemas"]["PatchedSetNationwideShipping"];
7637
+ "multipart/form-data": components["schemas"]["PatchedSetNationwideShipping"];
7638
+ };
7639
+ };
7640
+ responses: {
7641
+ 200: {
7642
+ headers: {
7643
+ [name: string]: unknown;
7644
+ };
7645
+ content: {
7646
+ "application/json": components["schemas"]["NationwideShipping"];
7647
+ };
7648
+ };
7649
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
7650
+ 400: {
7651
+ headers: {
7652
+ [name: string]: unknown;
7653
+ };
7654
+ content: {
7655
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7656
+ };
7657
+ };
7658
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
7659
+ 401: {
7660
+ headers: {
7661
+ [name: string]: unknown;
7662
+ };
7663
+ content: {
7664
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7665
+ };
7666
+ };
7667
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `EXPLORESOUS_CHANNEL_REQUIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
7668
+ 403: {
7669
+ headers: {
7670
+ [name: string]: unknown;
7671
+ };
7672
+ content: {
7673
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7674
+ };
7675
+ };
7676
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
7677
+ 404: {
7678
+ headers: {
7679
+ [name: string]: unknown;
7680
+ };
7681
+ content: {
7682
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7683
+ };
7684
+ };
7685
+ /** @description Possible error codes include `NATIONWIDE_CARRIER_UNCLEAR`. Use `x-error-codes` for machine-readable retryability metadata. */
7686
+ 409: {
7687
+ headers: {
7688
+ [name: string]: unknown;
7689
+ };
7690
+ content: {
7691
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7692
+ };
7693
+ };
7694
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
7695
+ 429: {
7696
+ headers: {
7697
+ [name: string]: unknown;
7698
+ };
7699
+ content: {
7700
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7701
+ };
7702
+ };
7703
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
7704
+ 500: {
7705
+ headers: {
7706
+ [name: string]: unknown;
7707
+ };
7708
+ content: {
7709
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7710
+ };
7711
+ };
7712
+ };
7713
+ };
7504
7714
  admin_pages_list: {
7505
7715
  parameters: {
7506
7716
  query?: {
package/dist/index.d.ts CHANGED
@@ -353,6 +353,30 @@ interface paths {
353
353
  patch?: never;
354
354
  trace?: never;
355
355
  };
356
+ "/api/v1/admin/nationwide-shipping/": {
357
+ parameters: {
358
+ query?: never;
359
+ header?: never;
360
+ path?: never;
361
+ cookie?: never;
362
+ };
363
+ /**
364
+ * Read the company's nationwide-shipping switch
365
+ * @description ``GET``/``PATCH /api/v1/admin/nationwide-shipping/``: the company's switch.
366
+ */
367
+ get: operations["admin_nationwide_shipping_retrieve"];
368
+ put?: never;
369
+ post?: never;
370
+ delete?: never;
371
+ options?: never;
372
+ head?: never;
373
+ /**
374
+ * Switch nationwide shipping on or off for every store of the company
375
+ * @description ``GET``/``PATCH /api/v1/admin/nationwide-shipping/``: the company's switch.
376
+ */
377
+ patch: operations["admin_nationwide_shipping_partial_update"];
378
+ trace?: never;
379
+ };
356
380
  "/api/v1/admin/pages/": {
357
381
  parameters: {
358
382
  query?: never;
@@ -4370,6 +4394,13 @@ interface components {
4370
4394
  * @enum {string}
4371
4395
  */
4372
4396
  NamespaceEnum: "merchant" | "product" | "category" | "collection" | "geocoding" | "shipping" | "translation" | "keycloak" | "segment" | "page" | "channel";
4397
+ /** @description The company's nationwide-shipping switch (exploreSOUS). */
4398
+ NationwideShipping: {
4399
+ /** @description Whether the company is on exploreSOUS and so has the switch. */
4400
+ is_available: boolean;
4401
+ /** @description Whether any of the company's stores ships nationwide. */
4402
+ is_enabled: boolean;
4403
+ };
4373
4404
  /** @description Render-ready open/closed badge — see ``availability.get_open_status``. */
4374
4405
  OpenStatus: {
4375
4406
  open: boolean;
@@ -5207,6 +5238,9 @@ interface components {
5207
5238
  PatchedSetCompanyAvailability: {
5208
5239
  is_available?: boolean;
5209
5240
  };
5241
+ PatchedSetNationwideShipping: {
5242
+ is_enabled?: boolean;
5243
+ };
5210
5244
  /**
5211
5245
  * @description PATCH body for a store's delivery-method row.
5212
5246
  *
@@ -7501,6 +7535,182 @@ interface operations {
7501
7535
  };
7502
7536
  };
7503
7537
  };
7538
+ admin_nationwide_shipping_retrieve: {
7539
+ parameters: {
7540
+ query?: never;
7541
+ header?: {
7542
+ /** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
7543
+ "X-Sous-Company-Id"?: number;
7544
+ };
7545
+ path?: never;
7546
+ cookie?: never;
7547
+ };
7548
+ requestBody?: never;
7549
+ responses: {
7550
+ 200: {
7551
+ headers: {
7552
+ [name: string]: unknown;
7553
+ };
7554
+ content: {
7555
+ "application/json": components["schemas"]["NationwideShipping"];
7556
+ };
7557
+ };
7558
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
7559
+ 400: {
7560
+ headers: {
7561
+ [name: string]: unknown;
7562
+ };
7563
+ content: {
7564
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7565
+ };
7566
+ };
7567
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
7568
+ 401: {
7569
+ headers: {
7570
+ [name: string]: unknown;
7571
+ };
7572
+ content: {
7573
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7574
+ };
7575
+ };
7576
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `EXPLORESOUS_CHANNEL_REQUIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
7577
+ 403: {
7578
+ headers: {
7579
+ [name: string]: unknown;
7580
+ };
7581
+ content: {
7582
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7583
+ };
7584
+ };
7585
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
7586
+ 404: {
7587
+ headers: {
7588
+ [name: string]: unknown;
7589
+ };
7590
+ content: {
7591
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7592
+ };
7593
+ };
7594
+ /** @description Possible error codes include `NATIONWIDE_CARRIER_UNCLEAR`. Use `x-error-codes` for machine-readable retryability metadata. */
7595
+ 409: {
7596
+ headers: {
7597
+ [name: string]: unknown;
7598
+ };
7599
+ content: {
7600
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7601
+ };
7602
+ };
7603
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
7604
+ 429: {
7605
+ headers: {
7606
+ [name: string]: unknown;
7607
+ };
7608
+ content: {
7609
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7610
+ };
7611
+ };
7612
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
7613
+ 500: {
7614
+ headers: {
7615
+ [name: string]: unknown;
7616
+ };
7617
+ content: {
7618
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7619
+ };
7620
+ };
7621
+ };
7622
+ };
7623
+ admin_nationwide_shipping_partial_update: {
7624
+ parameters: {
7625
+ query?: never;
7626
+ header?: {
7627
+ /** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
7628
+ "X-Sous-Company-Id"?: number;
7629
+ };
7630
+ path?: never;
7631
+ cookie?: never;
7632
+ };
7633
+ requestBody?: {
7634
+ content: {
7635
+ "application/json": components["schemas"]["PatchedSetNationwideShipping"];
7636
+ "application/x-www-form-urlencoded": components["schemas"]["PatchedSetNationwideShipping"];
7637
+ "multipart/form-data": components["schemas"]["PatchedSetNationwideShipping"];
7638
+ };
7639
+ };
7640
+ responses: {
7641
+ 200: {
7642
+ headers: {
7643
+ [name: string]: unknown;
7644
+ };
7645
+ content: {
7646
+ "application/json": components["schemas"]["NationwideShipping"];
7647
+ };
7648
+ };
7649
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
7650
+ 400: {
7651
+ headers: {
7652
+ [name: string]: unknown;
7653
+ };
7654
+ content: {
7655
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7656
+ };
7657
+ };
7658
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
7659
+ 401: {
7660
+ headers: {
7661
+ [name: string]: unknown;
7662
+ };
7663
+ content: {
7664
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7665
+ };
7666
+ };
7667
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `EXPLORESOUS_CHANNEL_REQUIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
7668
+ 403: {
7669
+ headers: {
7670
+ [name: string]: unknown;
7671
+ };
7672
+ content: {
7673
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7674
+ };
7675
+ };
7676
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
7677
+ 404: {
7678
+ headers: {
7679
+ [name: string]: unknown;
7680
+ };
7681
+ content: {
7682
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7683
+ };
7684
+ };
7685
+ /** @description Possible error codes include `NATIONWIDE_CARRIER_UNCLEAR`. Use `x-error-codes` for machine-readable retryability metadata. */
7686
+ 409: {
7687
+ headers: {
7688
+ [name: string]: unknown;
7689
+ };
7690
+ content: {
7691
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7692
+ };
7693
+ };
7694
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
7695
+ 429: {
7696
+ headers: {
7697
+ [name: string]: unknown;
7698
+ };
7699
+ content: {
7700
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7701
+ };
7702
+ };
7703
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
7704
+ 500: {
7705
+ headers: {
7706
+ [name: string]: unknown;
7707
+ };
7708
+ content: {
7709
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7710
+ };
7711
+ };
7712
+ };
7713
+ };
7504
7714
  admin_pages_list: {
7505
7715
  parameters: {
7506
7716
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poweredbysous/storefront-admin-sdk",
3
- "version": "4.3.1",
3
+ "version": "4.4.0",
4
4
  "description": "Type-safe TypeScript SDK for SOUS Storefront Backend admin endpoints",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,