@gofynd/fdk-client-javascript 3.17.1 → 3.18.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/README.md CHANGED
@@ -234,7 +234,7 @@ console.log("Active Theme: ", response.information.name);
234
234
  The above code will log the curl command in the console
235
235
 
236
236
  ```bash
237
- curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.17.1' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
237
+ curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.18.0' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
238
238
  Active Theme: Emerge
239
239
  ```
240
240
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gofynd/fdk-client-javascript",
3
- "version": "3.17.1",
3
+ "version": "3.18.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -12,6 +12,10 @@
12
12
  },
13
13
  "author": "Jigar Dafda",
14
14
  "license": "ISC",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/gofynd/fdk-client-javascript.git"
18
+ },
15
19
  "dependencies": {
16
20
  "axios": "^1.6.4",
17
21
  "camelcase": "^6.3.0",
@@ -42,4 +46,4 @@
42
46
  "!dist",
43
47
  "!cypress"
44
48
  ]
45
- }
49
+ }
@@ -1,4 +1,4 @@
1
- const { isAbsoluteURL, combineURLs } = require("./utils");
1
+ const { isAbsoluteURL, combineURLs, isWebWorker } = require("./utils");
2
2
  const axios = require("axios").default;
3
3
  const querystring = require("query-string");
4
4
  const { sign } = require("@gofynd/fp-signature");
@@ -79,12 +79,19 @@ function requestInterceptorFn() {
79
79
  return config;
80
80
  };
81
81
  }
82
- const fdkAxios = axios.create({
82
+
83
+ const axiosConfig = {
83
84
  withCredentials: true,
84
85
  paramsSerializer: (params) => {
85
86
  return querystring.stringify(params);
86
87
  },
87
- });
88
+ };
89
+
90
+ if (isWebWorker()) {
91
+ axiosConfig.adapter = "fetch";
92
+ }
93
+
94
+ const fdkAxios = axios.create(axiosConfig);
88
95
 
89
96
  // Generate Curl in debug mode
90
97
  fdkAxios.interceptors.request.use(
@@ -49,6 +49,7 @@ export namespace AVAILABLE_PAGE_TYPE {
49
49
  const LOCATE_US: string;
50
50
  const SINGLE_PAGE_CHECKOUT: string;
51
51
  const REQUEST_REATTEMPT: string;
52
+ const FILES: string;
52
53
  }
53
54
  export const NAVIGATORS: {
54
55
  "about-us": {
@@ -315,4 +316,12 @@ export const NAVIGATORS: {
315
316
  required: boolean;
316
317
  }[];
317
318
  };
319
+ files: {
320
+ name: string;
321
+ link: string;
322
+ params: {
323
+ key: string;
324
+ required: boolean;
325
+ }[];
326
+ };
318
327
  };
@@ -49,6 +49,7 @@ const AVAILABLE_PAGE_TYPE = {
49
49
  LOCATE_US: "locate-us",
50
50
  SINGLE_PAGE_CHECKOUT: "single-page-checkout",
51
51
  REQUEST_REATTEMPT: "request-reattempt",
52
+ FILES: "files",
52
53
  };
53
54
 
54
55
  Object.freeze(AVAILABLE_PAGE_TYPE);
@@ -350,6 +351,16 @@ const NAVIGATORS = {
350
351
  },
351
352
  ],
352
353
  },
354
+ files: {
355
+ name: "Files",
356
+ link: "/files/:file_name",
357
+ params: [
358
+ {
359
+ key: "file_name",
360
+ required: true,
361
+ },
362
+ ],
363
+ },
353
364
  };
354
365
 
355
366
  module.exports = {
@@ -7,7 +7,7 @@ export function findBestMatchingLink(allLinks?: any[], pathname?: string): {
7
7
  value: string;
8
8
  params: {};
9
9
  };
10
- export function convertStringToBase64(string: any): string;
10
+ export function convertStringToBase64(string: any): any;
11
11
  export function isBrowser(): boolean;
12
12
  export function isNode(): boolean;
13
13
  export namespace NAV_TYPE {
@@ -29,3 +29,13 @@ export function combineURLs(baseURL: string, relativeURL: string): string;
29
29
  * @returns {boolean} True if the specified URL is absolute, otherwise false
30
30
  */
31
31
  export function isAbsoluteURL(url: string): boolean;
32
+ /**
33
+ * Checks if the current execution context is a Web Worker (DedicatedWorker).
34
+ *
35
+ * This function determines whether the code is running inside a Dedicated Web
36
+ * Worker by verifying that the global `self` object exists, has a constructor,
37
+ * and that the constructor's name is "DedicatedWorkerGlobalScope".
38
+ *
39
+ * @returns {boolean} True if running in a Dedicated Web Worker, otherwise false.
40
+ */
41
+ export function isWebWorker(): boolean;
@@ -166,11 +166,27 @@ const isNode = () => {
166
166
  );
167
167
  };
168
168
 
169
+ /**
170
+ * Checks if the current execution context is a Web Worker (DedicatedWorker).
171
+ *
172
+ * This function determines whether the code is running inside a Dedicated Web
173
+ * Worker by verifying that the global `self` object exists, has a constructor,
174
+ * and that the constructor's name is "DedicatedWorkerGlobalScope".
175
+ *
176
+ * @returns {boolean} True if running in a Dedicated Web Worker, otherwise false.
177
+ */
178
+ const isWebWorker = () =>
179
+ typeof self === "object" &&
180
+ self.constructor &&
181
+ self.constructor.name === "DedicatedWorkerGlobalScope";
182
+
169
183
  const convertStringToBase64 = (string) => {
170
184
  if (isNode()) {
171
185
  return Buffer.from(string, "utf-8").toString("base64");
172
186
  } else if (isBrowser()) {
173
187
  return window.btoa(string);
188
+ } else if (isWebWorker()) {
189
+ return BufferPolyFill.from(string, "utf-8").toString("base64");
174
190
  } else {
175
191
  throw new FDKException("Base64 conversion error: Unsupported environment");
176
192
  }
@@ -217,4 +233,5 @@ module.exports = {
217
233
  NAV_TYPE,
218
234
  combineURLs,
219
235
  isAbsoluteURL,
236
+ isWebWorker,
220
237
  };
@@ -675,7 +675,8 @@ export = ThemePartnerModel;
675
675
  * | "order-status"
676
676
  * | "locate-us"
677
677
  * | "single-page-checkout"
678
- * | "request-reattempt"} PageType
678
+ * | "request-reattempt"
679
+ * | "files"} PageType
679
680
  */
680
681
  declare class ThemePartnerModel {
681
682
  }
@@ -1897,4 +1898,4 @@ type ActionPage = {
1897
1898
  * @returns {PageType}
1898
1899
  */
1899
1900
  declare function PageType(): PageType;
1900
- type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-email" | "profile-phone" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status" | "locate-us" | "single-page-checkout" | "request-reattempt";
1901
+ type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-email" | "profile-phone" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status" | "locate-us" | "single-page-checkout" | "request-reattempt" | "files";
@@ -767,7 +767,8 @@ const Joi = require("joi");
767
767
  * | "order-status"
768
768
  * | "locate-us"
769
769
  * | "single-page-checkout"
770
- * | "request-reattempt"} PageType
770
+ * | "request-reattempt"
771
+ * | "files"} PageType
771
772
  */
772
773
 
773
774
  class ThemePartnerModel {
@@ -1780,7 +1781,9 @@ class ThemePartnerModel {
1780
1781
 
1781
1782
  "single-page-checkout",
1782
1783
 
1783
- "request-reattempt"
1784
+ "request-reattempt",
1785
+
1786
+ "files"
1784
1787
  );
1785
1788
  }
1786
1789
  }
@@ -4930,7 +4930,8 @@ export = CatalogPlatformModel;
4930
4930
  * | "order-status"
4931
4931
  * | "locate-us"
4932
4932
  * | "single-page-checkout"
4933
- * | "request-reattempt"} PageType
4933
+ * | "request-reattempt"
4934
+ * | "files"} PageType
4934
4935
  */
4935
4936
  declare class CatalogPlatformModel {
4936
4937
  }
@@ -15437,4 +15438,4 @@ type HsTypeEnum = "HS" | "SAC";
15437
15438
  * @returns {PageType}
15438
15439
  */
15439
15440
  declare function PageType(): PageType;
15440
- type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-email" | "profile-phone" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status" | "locate-us" | "single-page-checkout" | "request-reattempt";
15441
+ type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-email" | "profile-phone" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status" | "locate-us" | "single-page-checkout" | "request-reattempt" | "files";
@@ -5411,7 +5411,8 @@ const Joi = require("joi");
5411
5411
  * | "order-status"
5412
5412
  * | "locate-us"
5413
5413
  * | "single-page-checkout"
5414
- * | "request-reattempt"} PageType
5414
+ * | "request-reattempt"
5415
+ * | "files"} PageType
5415
5416
  */
5416
5417
 
5417
5418
  class CatalogPlatformModel {
@@ -11261,7 +11262,9 @@ class CatalogPlatformModel {
11261
11262
 
11262
11263
  "single-page-checkout",
11263
11264
 
11264
- "request-reattempt"
11265
+ "request-reattempt",
11266
+
11267
+ "files"
11265
11268
  );
11266
11269
  }
11267
11270
  }
@@ -269,8 +269,8 @@ export = ContentPlatformApplicationValidator;
269
269
  /** @typedef GetDefaultNavigationsParam */
270
270
  /**
271
271
  * @typedef GetDefaultSEOMarkupSchemaParam
272
- * @property {string} [pageType] - The type of page against which schema
273
- * template was created
272
+ * @property {ContentPlatformModel.PageType} [pageType] - The type of page
273
+ * against which schema template was created
274
274
  */
275
275
  /**
276
276
  * @typedef GetFaqByIdOrSlugParam
@@ -1023,10 +1023,10 @@ type GetDataLoadersByServiceParam = {
1023
1023
  };
1024
1024
  type GetDefaultSEOMarkupSchemaParam = {
1025
1025
  /**
1026
- * - The type of page against which schema
1027
- * template was created
1026
+ * - The type of page
1027
+ * against which schema template was created
1028
1028
  */
1029
- pageType?: string;
1029
+ pageType?: ContentPlatformModel.PageType;
1030
1030
  };
1031
1031
  type GetFaqByIdOrSlugParam = {
1032
1032
  /**
@@ -330,8 +330,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
330
330
 
331
331
  /**
332
332
  * @typedef GetDefaultSEOMarkupSchemaParam
333
- * @property {string} [pageType] - The type of page against which schema
334
- * template was created
333
+ * @property {ContentPlatformModel.PageType} [pageType] - The type of page
334
+ * against which schema template was created
335
335
  */
336
336
 
337
337
  /**
@@ -1059,7 +1059,7 @@ class ContentPlatformApplicationValidator {
1059
1059
  /** @returns {GetDefaultSEOMarkupSchemaParam} */
1060
1060
  static getDefaultSEOMarkupSchema() {
1061
1061
  return Joi.object({
1062
- pageType: Joi.string().allow(""),
1062
+ pageType: ContentPlatformModel.PageType(),
1063
1063
  }).required();
1064
1064
  }
1065
1065
 
@@ -86,7 +86,7 @@ export = ContentPlatformModel;
86
86
  * @typedef SEOSchemaMarkupTemplate
87
87
  * @property {string} [id]
88
88
  * @property {string} [title]
89
- * @property {string} [page_type]
89
+ * @property {PageType} [page_type]
90
90
  * @property {string} [schema]
91
91
  * @property {string} [description]
92
92
  * @property {boolean} [active]
@@ -98,7 +98,7 @@ export = ContentPlatformModel;
98
98
  /**
99
99
  * @typedef SEOSchemaMarkupTemplateRequestBody
100
100
  * @property {string} [title]
101
- * @property {string} [page_type]
101
+ * @property {PageType} [page_type]
102
102
  * @property {string} [schema]
103
103
  * @property {string} [description]
104
104
  * @property {Object} [target_json]
@@ -143,7 +143,7 @@ export = ContentPlatformModel;
143
143
  */
144
144
  /**
145
145
  * @typedef DefaultSEOSchemaMarkupTemplate
146
- * @property {string} [page_type]
146
+ * @property {PageType} [page_type]
147
147
  * @property {string} [schema]
148
148
  * @property {Object} [target_json]
149
149
  */
@@ -1623,7 +1623,8 @@ export = ContentPlatformModel;
1623
1623
  * | "order-status"
1624
1624
  * | "locate-us"
1625
1625
  * | "single-page-checkout"
1626
- * | "request-reattempt"} PageType
1626
+ * | "request-reattempt"
1627
+ * | "files"} PageType
1627
1628
  */
1628
1629
  declare class ContentPlatformModel {
1629
1630
  }
@@ -1736,7 +1737,7 @@ declare function SEOSchemaMarkupTemplate(): SEOSchemaMarkupTemplate;
1736
1737
  type SEOSchemaMarkupTemplate = {
1737
1738
  id?: string;
1738
1739
  title?: string;
1739
- page_type?: string;
1740
+ page_type?: PageType;
1740
1741
  schema?: string;
1741
1742
  description?: string;
1742
1743
  active?: boolean;
@@ -1749,7 +1750,7 @@ type SEOSchemaMarkupTemplate = {
1749
1750
  declare function SEOSchemaMarkupTemplateRequestBody(): SEOSchemaMarkupTemplateRequestBody;
1750
1751
  type SEOSchemaMarkupTemplateRequestBody = {
1751
1752
  title?: string;
1752
- page_type?: string;
1753
+ page_type?: PageType;
1753
1754
  schema?: string;
1754
1755
  description?: string;
1755
1756
  target_json?: any;
@@ -1800,7 +1801,7 @@ type DefaultSchemaComponent = {
1800
1801
  /** @returns {DefaultSEOSchemaMarkupTemplate} */
1801
1802
  declare function DefaultSEOSchemaMarkupTemplate(): DefaultSEOSchemaMarkupTemplate;
1802
1803
  type DefaultSEOSchemaMarkupTemplate = {
1803
- page_type?: string;
1804
+ page_type?: PageType;
1804
1805
  schema?: string;
1805
1806
  target_json?: any;
1806
1807
  };
@@ -4649,4 +4650,4 @@ type GenerationEntityType = "title" | "description";
4649
4650
  * @returns {PageType}
4650
4651
  */
4651
4652
  declare function PageType(): PageType;
4652
- type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-email" | "profile-phone" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status" | "locate-us" | "single-page-checkout" | "request-reattempt";
4653
+ type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-email" | "profile-phone" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status" | "locate-us" | "single-page-checkout" | "request-reattempt" | "files";
@@ -99,7 +99,7 @@ const Joi = require("joi");
99
99
  * @typedef SEOSchemaMarkupTemplate
100
100
  * @property {string} [id]
101
101
  * @property {string} [title]
102
- * @property {string} [page_type]
102
+ * @property {PageType} [page_type]
103
103
  * @property {string} [schema]
104
104
  * @property {string} [description]
105
105
  * @property {boolean} [active]
@@ -112,7 +112,7 @@ const Joi = require("joi");
112
112
  /**
113
113
  * @typedef SEOSchemaMarkupTemplateRequestBody
114
114
  * @property {string} [title]
115
- * @property {string} [page_type]
115
+ * @property {PageType} [page_type]
116
116
  * @property {string} [schema]
117
117
  * @property {string} [description]
118
118
  * @property {Object} [target_json]
@@ -163,7 +163,7 @@ const Joi = require("joi");
163
163
 
164
164
  /**
165
165
  * @typedef DefaultSEOSchemaMarkupTemplate
166
- * @property {string} [page_type]
166
+ * @property {PageType} [page_type]
167
167
  * @property {string} [schema]
168
168
  * @property {Object} [target_json]
169
169
  */
@@ -1825,7 +1825,8 @@ const Joi = require("joi");
1825
1825
  * | "order-status"
1826
1826
  * | "locate-us"
1827
1827
  * | "single-page-checkout"
1828
- * | "request-reattempt"} PageType
1828
+ * | "request-reattempt"
1829
+ * | "files"} PageType
1829
1830
  */
1830
1831
 
1831
1832
  class ContentPlatformModel {
@@ -1953,7 +1954,7 @@ class ContentPlatformModel {
1953
1954
  return Joi.object({
1954
1955
  id: Joi.string().allow(""),
1955
1956
  title: Joi.string().allow(""),
1956
- page_type: Joi.string().allow(""),
1957
+ page_type: ContentPlatformModel.PageType(),
1957
1958
  schema: Joi.string().allow(""),
1958
1959
  description: Joi.string().allow(""),
1959
1960
  active: Joi.boolean(),
@@ -1968,7 +1969,7 @@ class ContentPlatformModel {
1968
1969
  static SEOSchemaMarkupTemplateRequestBody() {
1969
1970
  return Joi.object({
1970
1971
  title: Joi.string().allow(""),
1971
- page_type: Joi.string().allow(""),
1972
+ page_type: ContentPlatformModel.PageType(),
1972
1973
  schema: Joi.string().allow(""),
1973
1974
  description: Joi.string().allow(""),
1974
1975
  target_json: Joi.object().pattern(/\S/, Joi.any()),
@@ -2033,7 +2034,7 @@ class ContentPlatformModel {
2033
2034
  /** @returns {DefaultSEOSchemaMarkupTemplate} */
2034
2035
  static DefaultSEOSchemaMarkupTemplate() {
2035
2036
  return Joi.object({
2036
- page_type: Joi.string().allow(""),
2037
+ page_type: ContentPlatformModel.PageType(),
2037
2038
  schema: Joi.string().allow(""),
2038
2039
  target_json: Joi.object().pattern(/\S/, Joi.any()),
2039
2040
  });
@@ -4064,7 +4065,9 @@ class ContentPlatformModel {
4064
4065
 
4065
4066
  "single-page-checkout",
4066
4067
 
4067
- "request-reattempt"
4068
+ "request-reattempt",
4069
+
4070
+ "files"
4068
4071
  );
4069
4072
  }
4070
4073
  }
@@ -2858,8 +2858,8 @@ export = OrderPlatformModel;
2858
2858
  * offline mode. Used to enable offline-specific processing and sync behavior.
2859
2859
  * @property {LineItemSchema[]} [line_items] - A list of items included in the shipment.
2860
2860
  * @property {OrderFulfillmentTimelineSchema} [order_fulfillment_timeline]
2861
- * @property {number} [location_id] - The location ID from which this shipment
2862
- * is being fulfilled.
2861
+ * @property {number} location_id - The location ID from which this shipment is
2862
+ * being fulfilled.
2863
2863
  * @property {string} [external_location_id] - The external location ID from
2864
2864
  * which this shipment is being fulfilled.
2865
2865
  * @property {number} [return_location_id] - Overrides the article's default
@@ -11344,10 +11344,10 @@ type CreateOrderShipmentSchema = {
11344
11344
  line_items?: LineItemSchema[];
11345
11345
  order_fulfillment_timeline?: OrderFulfillmentTimelineSchema;
11346
11346
  /**
11347
- * - The location ID from which this shipment
11348
- * is being fulfilled.
11347
+ * - The location ID from which this shipment is
11348
+ * being fulfilled.
11349
11349
  */
11350
- location_id?: number;
11350
+ location_id: number;
11351
11351
  /**
11352
11352
  * - The external location ID from
11353
11353
  * which this shipment is being fulfilled.
@@ -3117,8 +3117,8 @@ const Joi = require("joi");
3117
3117
  * offline mode. Used to enable offline-specific processing and sync behavior.
3118
3118
  * @property {LineItemSchema[]} [line_items] - A list of items included in the shipment.
3119
3119
  * @property {OrderFulfillmentTimelineSchema} [order_fulfillment_timeline]
3120
- * @property {number} [location_id] - The location ID from which this shipment
3121
- * is being fulfilled.
3120
+ * @property {number} location_id - The location ID from which this shipment is
3121
+ * being fulfilled.
3122
3122
  * @property {string} [external_location_id] - The external location ID from
3123
3123
  * which this shipment is being fulfilled.
3124
3124
  * @property {number} [return_location_id] - Overrides the article's default
@@ -8898,7 +8898,7 @@ class OrderPlatformModel {
8898
8898
  invoice_id: Joi.string().allow(""),
8899
8899
  line_items: Joi.array().items(OrderPlatformModel.LineItemSchema()),
8900
8900
  order_fulfillment_timeline: OrderPlatformModel.OrderFulfillmentTimelineSchema(),
8901
- location_id: Joi.number(),
8901
+ location_id: Joi.number().required(),
8902
8902
  external_location_id: Joi.string().allow(""),
8903
8903
  return_location_id: Joi.number(),
8904
8904
  courier_partner_details: OrderPlatformModel.CourierPartnerDetailsSchema(),
@@ -603,7 +603,8 @@ export = ThemePlatformModel;
603
603
  * | "order-status"
604
604
  * | "locate-us"
605
605
  * | "single-page-checkout"
606
- * | "request-reattempt"} PageType
606
+ * | "request-reattempt"
607
+ * | "files"} PageType
607
608
  */
608
609
  declare class ThemePlatformModel {
609
610
  }
@@ -1666,4 +1667,4 @@ type ActionPage = {
1666
1667
  * @returns {PageType}
1667
1668
  */
1668
1669
  declare function PageType(): PageType;
1669
- type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-email" | "profile-phone" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status" | "locate-us" | "single-page-checkout" | "request-reattempt";
1670
+ type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-email" | "profile-phone" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status" | "locate-us" | "single-page-checkout" | "request-reattempt" | "files";
@@ -686,7 +686,8 @@ const Joi = require("joi");
686
686
  * | "order-status"
687
687
  * | "locate-us"
688
688
  * | "single-page-checkout"
689
- * | "request-reattempt"} PageType
689
+ * | "request-reattempt"
690
+ * | "files"} PageType
690
691
  */
691
692
 
692
693
  class ThemePlatformModel {
@@ -1598,7 +1599,9 @@ class ThemePlatformModel {
1598
1599
 
1599
1600
  "single-page-checkout",
1600
1601
 
1601
- "request-reattempt"
1602
+ "request-reattempt",
1603
+
1604
+ "files"
1602
1605
  );
1603
1606
  }
1604
1607
  }