@gofynd/fdk-client-javascript 1.4.2-beta.2 → 1.4.2-beta.3

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 (106) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationModel.d.ts +1742 -1726
  4. package/sdk/application/Cart/CartApplicationModel.js +1497 -1481
  5. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  6. package/sdk/application/Catalog/CatalogApplicationModel.js +1611 -1611
  7. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  8. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  9. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  10. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  11. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1614 -1614
  12. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1151 -1151
  13. package/sdk/application/Content/ContentApplicationModel.d.ts +797 -797
  14. package/sdk/application/Content/ContentApplicationModel.js +757 -757
  15. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  16. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  17. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  18. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  19. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +666 -666
  20. package/sdk/application/Logistic/LogisticApplicationModel.js +601 -601
  21. package/sdk/application/Order/OrderApplicationModel.d.ts +846 -846
  22. package/sdk/application/Order/OrderApplicationModel.js +822 -822
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
  24. package/sdk/application/Payment/PaymentApplicationClient.js +10 -10
  25. package/sdk/application/Payment/PaymentApplicationModel.d.ts +2155 -2150
  26. package/sdk/application/Payment/PaymentApplicationModel.js +1460 -1458
  27. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
  28. package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
  29. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1462 -1462
  30. package/sdk/application/PosCart/PosCartApplicationModel.js +1260 -1260
  31. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  32. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  33. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  34. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  35. package/sdk/application/Theme/ThemeApplicationModel.d.ts +895 -895
  36. package/sdk/application/Theme/ThemeApplicationModel.js +684 -684
  37. package/sdk/application/User/UserApplicationModel.d.ts +762 -762
  38. package/sdk/application/User/UserApplicationModel.js +738 -738
  39. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +63 -63
  40. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +65 -65
  41. package/sdk/partner/Lead/LeadPartnerModel.d.ts +661 -661
  42. package/sdk/partner/Lead/LeadPartnerModel.js +491 -491
  43. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +223 -223
  44. package/sdk/partner/Logistics/LogisticsPartnerModel.js +235 -235
  45. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1087 -1087
  46. package/sdk/partner/Theme/ThemePartnerModel.js +819 -819
  47. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +386 -386
  48. package/sdk/partner/Webhook/WebhookPartnerModel.js +342 -342
  49. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  50. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  51. package/sdk/platform/Billing/BillingPlatformModel.d.ts +801 -801
  52. package/sdk/platform/Billing/BillingPlatformModel.js +783 -783
  53. package/sdk/platform/Cart/CartPlatformModel.d.ts +3333 -3317
  54. package/sdk/platform/Cart/CartPlatformModel.js +2936 -2920
  55. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -1013
  56. package/sdk/platform/Catalog/CatalogPlatformModel.js +923 -923
  57. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  58. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  59. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1238 -1238
  60. package/sdk/platform/Communication/CommunicationPlatformModel.js +1273 -1273
  61. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +661 -661
  62. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +692 -692
  63. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +3198 -3198
  64. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2247 -2247
  65. package/sdk/platform/Content/ContentPlatformModel.d.ts +1833 -1833
  66. package/sdk/platform/Content/ContentPlatformModel.js +1837 -1837
  67. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
  68. package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
  69. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +865 -865
  70. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +877 -877
  71. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1044 -1044
  72. package/sdk/platform/Finance/FinancePlatformModel.js +974 -974
  73. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  74. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  75. package/sdk/platform/Lead/LeadPlatformModel.d.ts +608 -608
  76. package/sdk/platform/Lead/LeadPlatformModel.js +465 -465
  77. package/sdk/platform/Order/OrderPlatformModel.d.ts +5180 -5176
  78. package/sdk/platform/Order/OrderPlatformModel.js +4740 -4736
  79. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  80. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  81. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2670 -2660
  82. package/sdk/platform/Payment/PaymentPlatformModel.js +1831 -1827
  83. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  84. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  85. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1505 -1507
  86. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1532 -1536
  87. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  88. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  89. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1046 -1046
  90. package/sdk/platform/Theme/ThemePlatformModel.js +789 -789
  91. package/sdk/platform/User/UserPlatformModel.d.ts +758 -758
  92. package/sdk/platform/User/UserPlatformModel.js +643 -643
  93. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +439 -439
  94. package/sdk/platform/Webhook/WebhookPlatformModel.js +364 -364
  95. package/sdk/public/Billing/BillingPublicModel.d.ts +55 -55
  96. package/sdk/public/Billing/BillingPublicModel.js +51 -51
  97. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  98. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  99. package/sdk/public/Content/ContentPublicModel.d.ts +26 -26
  100. package/sdk/public/Content/ContentPublicModel.js +28 -28
  101. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  102. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  103. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  104. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  105. package/sdk/public/Webhook/WebhookPublicModel.d.ts +87 -87
  106. package/sdk/public/Webhook/WebhookPublicModel.js +93 -93
@@ -1,55 +1,33 @@
1
1
  export = ConfigurationPublicModel;
2
2
  /**
3
- * @typedef Application
4
- * @property {number} [__v] - Version key for tracking revisions. Default value is zero.
3
+ * @typedef ApplicationResponse
4
+ * @property {Application} [application]
5
+ */
6
+ /**
7
+ * @typedef Domain
8
+ * @property {boolean} [verified] - Indicates domain is verified or not. TXT and
9
+ * A records should propagate correctly.
10
+ * @property {boolean} [is_primary] - Indicates domain is primary or not.
11
+ * Primary domain is the default/main domain.
12
+ * @property {boolean} [is_shortlink] - Shortlink is present or not for the domain
5
13
  * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
6
- * of the sales channel
7
- * @property {string} [app_type] - It shows whether application is live or in
8
- * development mode
9
- * @property {ApplicationAuth} [auth]
10
- * @property {SecureUrl} [banner]
11
- * @property {number} [cache_ttl] - An integer value that specifies the number
12
- * of seconds until the key expires
13
- * @property {string} [channel_type] - It indicates different channel types like
14
- * store, website-and-mobile-apps. Default value is store.
15
- * @property {number} [company_id] - Numeric ID allotted to a business account
16
- * where the sales channel exists
17
- * @property {ApplicationCors} [cors]
18
- * @property {string} [created_at] - ISO 8601 timestamp of sales channel creation
19
- * @property {string} [description] - It contains detailed information about the
20
- * sales channel
21
- * @property {Domain} [domain]
22
- * @property {Domain[]} [domains]
23
- * @property {SecureUrl} [favicon]
24
- * @property {boolean} [is_active] - Indicates whether a sales channel is active
25
- * or not active
26
- * @property {boolean} [is_internal] - Indicates whether a sales channel is
27
- * internal or not
28
- * @property {SecureUrl} [logo]
29
- * @property {ApplicationMeta[]} [meta]
30
- * @property {SecureUrl} [mobile_logo]
31
- * @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion
32
- * @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
33
- * of owner who owns the application
34
- * @property {ApplicationRedirections[]} [redirections]
35
- * @property {string} [slug]
36
- * @property {string} [token] - Randomly generated fixed-length string for sales
37
- * channel. It is required and auto-generated.
38
- * @property {string} [updated_at] - ISO 8601 timestamp of sales channel updation
39
- * @property {ApplicationWebsite} [website]
14
+ * of the domain
15
+ * @property {string} [name]
16
+ * @property {boolean} [is_predefined] - Domain is hosting domain or not
40
17
  */
41
18
  /**
42
- * @typedef ApplicationAuth
43
- * @property {boolean} [enabled] - Shows sales channel auth is enabled or not enabled.
19
+ * @typedef ApplicationWebsite
20
+ * @property {boolean} [enabled] - Shows whether sales channel website URL is
21
+ * enabled or not
22
+ * @property {string} [basepath] - Base path for the current sales channel website
44
23
  */
45
24
  /**
46
25
  * @typedef ApplicationCors
47
26
  * @property {string[]} [domains]
48
27
  */
49
28
  /**
50
- * @typedef ApplicationMeta
51
- * @property {string} [name] - Indicates the name of application meta
52
- * @property {string} [value] - Value related to application meta name
29
+ * @typedef ApplicationAuth
30
+ * @property {boolean} [enabled] - Shows sales channel auth is enabled or not enabled.
53
31
  */
54
32
  /**
55
33
  * @typedef ApplicationRedirections
@@ -61,185 +39,159 @@ export = ConfigurationPublicModel;
61
39
  * for a short time period.
62
40
  */
63
41
  /**
64
- * @typedef ApplicationResponse
65
- * @property {Application} [application]
42
+ * @typedef ApplicationMeta
43
+ * @property {string} [name] - Indicates the name of application meta
44
+ * @property {string} [value] - Value related to application meta name
66
45
  */
67
46
  /**
68
- * @typedef ApplicationWebsite
69
- * @property {string} [basepath] - Base path for the current sales channel website
70
- * @property {boolean} [enabled] - Shows whether sales channel website URL is
71
- * enabled or not
47
+ * @typedef SecureUrl
48
+ * @property {string} [secure_url] - Hosted URL of the image
49
+ */
50
+ /**
51
+ * @typedef Application
52
+ * @property {ApplicationWebsite} [website]
53
+ * @property {ApplicationCors} [cors]
54
+ * @property {ApplicationAuth} [auth]
55
+ * @property {string} [description] - It contains detailed information about the
56
+ * sales channel
57
+ * @property {string} [channel_type] - It indicates different channel types like
58
+ * store, website-and-mobile-apps. Default value is store.
59
+ * @property {number} [cache_ttl] - An integer value that specifies the number
60
+ * of seconds until the key expires
61
+ * @property {boolean} [is_internal] - Indicates whether a sales channel is
62
+ * internal or not
63
+ * @property {boolean} [is_active] - Indicates whether a sales channel is active
64
+ * or not active
65
+ * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
66
+ * of the sales channel
67
+ * @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion
68
+ * @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
69
+ * of owner who owns the application
70
+ * @property {number} [company_id] - Numeric ID allotted to a business account
71
+ * where the sales channel exists
72
+ * @property {string} [token] - Randomly generated fixed-length string for sales
73
+ * channel. It is required and auto-generated.
74
+ * @property {ApplicationRedirections[]} [redirections]
75
+ * @property {ApplicationMeta[]} [meta]
76
+ * @property {string} [created_at] - ISO 8601 timestamp of sales channel creation
77
+ * @property {string} [updated_at] - ISO 8601 timestamp of sales channel updation
78
+ * @property {number} [__v] - Version key for tracking revisions. Default value is zero.
79
+ * @property {SecureUrl} [banner]
80
+ * @property {SecureUrl} [logo]
81
+ * @property {SecureUrl} [favicon]
82
+ * @property {Domain[]} [domains]
83
+ * @property {string} [app_type] - It shows whether application is live or in
84
+ * development mode
85
+ * @property {SecureUrl} [mobile_logo]
86
+ * @property {Domain} [domain]
87
+ * @property {string} [slug]
88
+ */
89
+ /**
90
+ * @typedef NotFound
91
+ * @property {string} [message] - Response message for not found
72
92
  */
73
93
  /**
74
94
  * @typedef BadRequest
75
95
  * @property {string} [message] - Failure message (in a string format)
76
96
  */
77
97
  /**
78
- * @typedef Domain
79
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
80
- * of the domain
81
- * @property {boolean} [is_predefined] - Domain is hosting domain or not
82
- * @property {boolean} [is_primary] - Indicates domain is primary or not.
83
- * Primary domain is the default/main domain.
84
- * @property {boolean} [is_shortlink] - Shortlink is present or not for the domain
98
+ * @typedef LocationDefaultLanguage
85
99
  * @property {string} [name]
86
- * @property {boolean} [verified] - Indicates domain is verified or not. TXT and
87
- * A records should propagate correctly.
100
+ * @property {string} [code]
101
+ */
102
+ /**
103
+ * @typedef LocationDefaultCurrency
104
+ * @property {string} [name]
105
+ * @property {string} [symbol]
106
+ * @property {string} [code]
88
107
  */
89
108
  /**
90
109
  * @typedef LocationCountry
91
- * @property {number} [__v]
92
- * @property {string} [_id]
93
110
  * @property {string} [capital]
94
- * @property {string} [country_code]
95
111
  * @property {string} [currency]
96
- * @property {LocationDefaultCurrency} [default_currency]
97
- * @property {LocationDefaultLanguage} [default_language]
98
112
  * @property {string} [iso2]
99
113
  * @property {string} [iso3]
100
- * @property {string} [latitude]
101
- * @property {string} [longitude]
102
114
  * @property {string} [name]
103
115
  * @property {string} [parent]
104
116
  * @property {string} [phone_code]
105
- * @property {string} [state_code]
106
117
  * @property {string} [type]
107
118
  * @property {number} [uid]
108
- */
109
- /**
110
- * @typedef LocationDefaultCurrency
111
- * @property {string} [code]
112
- * @property {string} [name]
113
- * @property {string} [symbol]
114
- */
115
- /**
116
- * @typedef LocationDefaultLanguage
117
- * @property {string} [code]
118
- * @property {string} [name]
119
+ * @property {number} [__v]
120
+ * @property {string} [_id]
121
+ * @property {LocationDefaultCurrency} [default_currency]
122
+ * @property {LocationDefaultLanguage} [default_language]
123
+ * @property {string} [state_code]
124
+ * @property {string} [country_code]
125
+ * @property {string} [latitude]
126
+ * @property {string} [longitude]
119
127
  */
120
128
  /**
121
129
  * @typedef Locations
122
130
  * @property {LocationCountry[]} [items]
123
131
  */
124
- /**
125
- * @typedef NotFound
126
- * @property {string} [message] - Response message for not found
127
- */
128
- /**
129
- * @typedef SecureUrl
130
- * @property {string} [secure_url] - Hosted URL of the image
131
- */
132
132
  declare class ConfigurationPublicModel {
133
133
  }
134
134
  declare namespace ConfigurationPublicModel {
135
- export { Application, ApplicationAuth, ApplicationCors, ApplicationMeta, ApplicationRedirections, ApplicationResponse, ApplicationWebsite, BadRequest, Domain, LocationCountry, LocationDefaultCurrency, LocationDefaultLanguage, Locations, NotFound, SecureUrl };
135
+ export { ApplicationResponse, Domain, ApplicationWebsite, ApplicationCors, ApplicationAuth, ApplicationRedirections, ApplicationMeta, SecureUrl, Application, NotFound, BadRequest, LocationDefaultLanguage, LocationDefaultCurrency, LocationCountry, Locations };
136
136
  }
137
- /** @returns {Application} */
138
- declare function Application(): Application;
139
- type Application = {
140
- /**
141
- * - Version key for tracking revisions. Default value is zero.
142
- */
143
- __v?: number;
144
- /**
145
- * - The unique identifier (24-digit Mongo Object ID)
146
- * of the sales channel
147
- */
148
- _id?: string;
149
- /**
150
- * - It shows whether application is live or in
151
- * development mode
152
- */
153
- app_type?: string;
154
- auth?: ApplicationAuth;
155
- banner?: SecureUrl;
156
- /**
157
- * - An integer value that specifies the number
158
- * of seconds until the key expires
159
- */
160
- cache_ttl?: number;
161
- /**
162
- * - It indicates different channel types like
163
- * store, website-and-mobile-apps. Default value is store.
164
- */
165
- channel_type?: string;
166
- /**
167
- * - Numeric ID allotted to a business account
168
- * where the sales channel exists
169
- */
170
- company_id?: number;
171
- cors?: ApplicationCors;
172
- /**
173
- * - ISO 8601 timestamp of sales channel creation
174
- */
175
- created_at?: string;
176
- /**
177
- * - It contains detailed information about the
178
- * sales channel
179
- */
180
- description?: string;
181
- domain?: Domain;
182
- domains?: Domain[];
183
- favicon?: SecureUrl;
137
+ /** @returns {ApplicationResponse} */
138
+ declare function ApplicationResponse(): ApplicationResponse;
139
+ type ApplicationResponse = {
140
+ application?: Application;
141
+ };
142
+ /** @returns {Domain} */
143
+ declare function Domain(): Domain;
144
+ type Domain = {
184
145
  /**
185
- * - Indicates whether a sales channel is active
186
- * or not active
146
+ * - Indicates domain is verified or not. TXT and
147
+ * A records should propagate correctly.
187
148
  */
188
- is_active?: boolean;
149
+ verified?: boolean;
189
150
  /**
190
- * - Indicates whether a sales channel is
191
- * internal or not
151
+ * - Indicates domain is primary or not.
152
+ * Primary domain is the default/main domain.
192
153
  */
193
- is_internal?: boolean;
194
- logo?: SecureUrl;
195
- meta?: ApplicationMeta[];
196
- mobile_logo?: SecureUrl;
154
+ is_primary?: boolean;
197
155
  /**
198
- * - Name of the sales channel, e.g. Zenz Fashion
156
+ * - Shortlink is present or not for the domain
199
157
  */
200
- name?: string;
158
+ is_shortlink?: boolean;
201
159
  /**
202
160
  * - The unique identifier (24-digit Mongo Object ID)
203
- * of owner who owns the application
204
- */
205
- owner?: string;
206
- redirections?: ApplicationRedirections[];
207
- slug?: string;
208
- /**
209
- * - Randomly generated fixed-length string for sales
210
- * channel. It is required and auto-generated.
161
+ * of the domain
211
162
  */
212
- token?: string;
163
+ _id?: string;
164
+ name?: string;
213
165
  /**
214
- * - ISO 8601 timestamp of sales channel updation
166
+ * - Domain is hosting domain or not
215
167
  */
216
- updated_at?: string;
217
- website?: ApplicationWebsite;
168
+ is_predefined?: boolean;
218
169
  };
219
- /** @returns {ApplicationAuth} */
220
- declare function ApplicationAuth(): ApplicationAuth;
221
- type ApplicationAuth = {
170
+ /** @returns {ApplicationWebsite} */
171
+ declare function ApplicationWebsite(): ApplicationWebsite;
172
+ type ApplicationWebsite = {
222
173
  /**
223
- * - Shows sales channel auth is enabled or not enabled.
174
+ * - Shows whether sales channel website URL is
175
+ * enabled or not
224
176
  */
225
177
  enabled?: boolean;
178
+ /**
179
+ * - Base path for the current sales channel website
180
+ */
181
+ basepath?: string;
226
182
  };
227
183
  /** @returns {ApplicationCors} */
228
184
  declare function ApplicationCors(): ApplicationCors;
229
185
  type ApplicationCors = {
230
186
  domains?: string[];
231
187
  };
232
- /** @returns {ApplicationMeta} */
233
- declare function ApplicationMeta(): ApplicationMeta;
234
- type ApplicationMeta = {
235
- /**
236
- * - Indicates the name of application meta
237
- */
238
- name?: string;
188
+ /** @returns {ApplicationAuth} */
189
+ declare function ApplicationAuth(): ApplicationAuth;
190
+ type ApplicationAuth = {
239
191
  /**
240
- * - Value related to application meta name
192
+ * - Shows sales channel auth is enabled or not enabled.
241
193
  */
242
- value?: string;
194
+ enabled?: boolean;
243
195
  };
244
196
  /** @returns {ApplicationRedirections} */
245
197
  declare function ApplicationRedirections(): ApplicationRedirections;
@@ -260,112 +212,160 @@ type ApplicationRedirections = {
260
212
  */
261
213
  type?: string;
262
214
  };
263
- /** @returns {ApplicationResponse} */
264
- declare function ApplicationResponse(): ApplicationResponse;
265
- type ApplicationResponse = {
266
- application?: Application;
267
- };
268
- /** @returns {ApplicationWebsite} */
269
- declare function ApplicationWebsite(): ApplicationWebsite;
270
- type ApplicationWebsite = {
215
+ /** @returns {ApplicationMeta} */
216
+ declare function ApplicationMeta(): ApplicationMeta;
217
+ type ApplicationMeta = {
271
218
  /**
272
- * - Base path for the current sales channel website
219
+ * - Indicates the name of application meta
273
220
  */
274
- basepath?: string;
221
+ name?: string;
275
222
  /**
276
- * - Shows whether sales channel website URL is
277
- * enabled or not
223
+ * - Value related to application meta name
278
224
  */
279
- enabled?: boolean;
225
+ value?: string;
280
226
  };
281
- /** @returns {BadRequest} */
282
- declare function BadRequest(): BadRequest;
283
- type BadRequest = {
227
+ /** @returns {SecureUrl} */
228
+ declare function SecureUrl(): SecureUrl;
229
+ type SecureUrl = {
284
230
  /**
285
- * - Failure message (in a string format)
231
+ * - Hosted URL of the image
286
232
  */
287
- message?: string;
233
+ secure_url?: string;
288
234
  };
289
- /** @returns {Domain} */
290
- declare function Domain(): Domain;
291
- type Domain = {
235
+ /** @returns {Application} */
236
+ declare function Application(): Application;
237
+ type Application = {
238
+ website?: ApplicationWebsite;
239
+ cors?: ApplicationCors;
240
+ auth?: ApplicationAuth;
241
+ /**
242
+ * - It contains detailed information about the
243
+ * sales channel
244
+ */
245
+ description?: string;
246
+ /**
247
+ * - It indicates different channel types like
248
+ * store, website-and-mobile-apps. Default value is store.
249
+ */
250
+ channel_type?: string;
251
+ /**
252
+ * - An integer value that specifies the number
253
+ * of seconds until the key expires
254
+ */
255
+ cache_ttl?: number;
256
+ /**
257
+ * - Indicates whether a sales channel is
258
+ * internal or not
259
+ */
260
+ is_internal?: boolean;
261
+ /**
262
+ * - Indicates whether a sales channel is active
263
+ * or not active
264
+ */
265
+ is_active?: boolean;
292
266
  /**
293
267
  * - The unique identifier (24-digit Mongo Object ID)
294
- * of the domain
268
+ * of the sales channel
295
269
  */
296
270
  _id?: string;
297
271
  /**
298
- * - Domain is hosting domain or not
272
+ * - Name of the sales channel, e.g. Zenz Fashion
299
273
  */
300
- is_predefined?: boolean;
274
+ name?: string;
301
275
  /**
302
- * - Indicates domain is primary or not.
303
- * Primary domain is the default/main domain.
276
+ * - The unique identifier (24-digit Mongo Object ID)
277
+ * of owner who owns the application
304
278
  */
305
- is_primary?: boolean;
279
+ owner?: string;
306
280
  /**
307
- * - Shortlink is present or not for the domain
281
+ * - Numeric ID allotted to a business account
282
+ * where the sales channel exists
308
283
  */
309
- is_shortlink?: boolean;
310
- name?: string;
284
+ company_id?: number;
311
285
  /**
312
- * - Indicates domain is verified or not. TXT and
313
- * A records should propagate correctly.
286
+ * - Randomly generated fixed-length string for sales
287
+ * channel. It is required and auto-generated.
314
288
  */
315
- verified?: boolean;
289
+ token?: string;
290
+ redirections?: ApplicationRedirections[];
291
+ meta?: ApplicationMeta[];
292
+ /**
293
+ * - ISO 8601 timestamp of sales channel creation
294
+ */
295
+ created_at?: string;
296
+ /**
297
+ * - ISO 8601 timestamp of sales channel updation
298
+ */
299
+ updated_at?: string;
300
+ /**
301
+ * - Version key for tracking revisions. Default value is zero.
302
+ */
303
+ __v?: number;
304
+ banner?: SecureUrl;
305
+ logo?: SecureUrl;
306
+ favicon?: SecureUrl;
307
+ domains?: Domain[];
308
+ /**
309
+ * - It shows whether application is live or in
310
+ * development mode
311
+ */
312
+ app_type?: string;
313
+ mobile_logo?: SecureUrl;
314
+ domain?: Domain;
315
+ slug?: string;
316
+ };
317
+ /** @returns {NotFound} */
318
+ declare function NotFound(): NotFound;
319
+ type NotFound = {
320
+ /**
321
+ * - Response message for not found
322
+ */
323
+ message?: string;
324
+ };
325
+ /** @returns {BadRequest} */
326
+ declare function BadRequest(): BadRequest;
327
+ type BadRequest = {
328
+ /**
329
+ * - Failure message (in a string format)
330
+ */
331
+ message?: string;
332
+ };
333
+ /** @returns {LocationDefaultLanguage} */
334
+ declare function LocationDefaultLanguage(): LocationDefaultLanguage;
335
+ type LocationDefaultLanguage = {
336
+ name?: string;
337
+ code?: string;
338
+ };
339
+ /** @returns {LocationDefaultCurrency} */
340
+ declare function LocationDefaultCurrency(): LocationDefaultCurrency;
341
+ type LocationDefaultCurrency = {
342
+ name?: string;
343
+ symbol?: string;
344
+ code?: string;
316
345
  };
317
346
  /** @returns {LocationCountry} */
318
347
  declare function LocationCountry(): LocationCountry;
319
348
  type LocationCountry = {
320
- __v?: number;
321
- _id?: string;
322
349
  capital?: string;
323
- country_code?: string;
324
350
  currency?: string;
325
- default_currency?: LocationDefaultCurrency;
326
- default_language?: LocationDefaultLanguage;
327
351
  iso2?: string;
328
352
  iso3?: string;
329
- latitude?: string;
330
- longitude?: string;
331
353
  name?: string;
332
354
  parent?: string;
333
355
  phone_code?: string;
334
- state_code?: string;
335
356
  type?: string;
336
357
  uid?: number;
337
- };
338
- /** @returns {LocationDefaultCurrency} */
339
- declare function LocationDefaultCurrency(): LocationDefaultCurrency;
340
- type LocationDefaultCurrency = {
341
- code?: string;
342
- name?: string;
343
- symbol?: string;
344
- };
345
- /** @returns {LocationDefaultLanguage} */
346
- declare function LocationDefaultLanguage(): LocationDefaultLanguage;
347
- type LocationDefaultLanguage = {
348
- code?: string;
349
- name?: string;
358
+ __v?: number;
359
+ _id?: string;
360
+ default_currency?: LocationDefaultCurrency;
361
+ default_language?: LocationDefaultLanguage;
362
+ state_code?: string;
363
+ country_code?: string;
364
+ latitude?: string;
365
+ longitude?: string;
350
366
  };
351
367
  /** @returns {Locations} */
352
368
  declare function Locations(): Locations;
353
369
  type Locations = {
354
370
  items?: LocationCountry[];
355
371
  };
356
- /** @returns {NotFound} */
357
- declare function NotFound(): NotFound;
358
- type NotFound = {
359
- /**
360
- * - Response message for not found
361
- */
362
- message?: string;
363
- };
364
- /** @returns {SecureUrl} */
365
- declare function SecureUrl(): SecureUrl;
366
- type SecureUrl = {
367
- /**
368
- * - Hosted URL of the image
369
- */
370
- secure_url?: string;
371
- };