@gofynd/fdk-client-javascript 1.4.2-beta.1 → 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,54 +1,33 @@
1
1
  export = CommonApplicationModel;
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} [token] - Randomly generated fixed-length string for sales
36
- * channel. It is required and auto-generated.
37
- * @property {string} [updated_at] - ISO 8601 timestamp of sales channel updation
38
- * @property {ApplicationWebsite} [website]
14
+ * of the domain
15
+ * @property {string} [name]
16
+ * @property {boolean} [is_predefined] - Domain is hosting domain or not
39
17
  */
40
18
  /**
41
- * @typedef ApplicationAuth
42
- * @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
43
23
  */
44
24
  /**
45
25
  * @typedef ApplicationCors
46
26
  * @property {string[]} [domains]
47
27
  */
48
28
  /**
49
- * @typedef ApplicationMeta
50
- * @property {string} [name] - Indicates the name of application meta
51
- * @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.
52
31
  */
53
32
  /**
54
33
  * @typedef ApplicationRedirections
@@ -60,184 +39,158 @@ export = CommonApplicationModel;
60
39
  * for a short time period.
61
40
  */
62
41
  /**
63
- * @typedef ApplicationResponse
64
- * @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
65
45
  */
66
46
  /**
67
- * @typedef ApplicationWebsite
68
- * @property {string} [basepath] - Base path for the current sales channel website
69
- * @property {boolean} [enabled] - Shows whether sales channel website URL is
70
- * 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
+ */
88
+ /**
89
+ * @typedef NotFound
90
+ * @property {string} [message] - Response message for not found
71
91
  */
72
92
  /**
73
93
  * @typedef BadRequest
74
94
  * @property {string} [message] - Failure message (in a string format)
75
95
  */
76
96
  /**
77
- * @typedef Domain
78
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
79
- * of the domain
80
- * @property {boolean} [is_predefined] - Domain is hosting domain or not
81
- * @property {boolean} [is_primary] - Indicates domain is primary or not.
82
- * Primary domain is the default/main domain.
83
- * @property {boolean} [is_shortlink] - Shortlink is present or not for the domain
97
+ * @typedef LocationDefaultLanguage
84
98
  * @property {string} [name]
85
- * @property {boolean} [verified] - Indicates domain is verified or not. TXT and
86
- * A records should propagate correctly.
99
+ * @property {string} [code]
100
+ */
101
+ /**
102
+ * @typedef LocationDefaultCurrency
103
+ * @property {string} [name]
104
+ * @property {string} [symbol]
105
+ * @property {string} [code]
87
106
  */
88
107
  /**
89
108
  * @typedef LocationCountry
90
- * @property {number} [__v]
91
- * @property {string} [_id]
92
109
  * @property {string} [capital]
93
- * @property {string} [country_code]
94
110
  * @property {string} [currency]
95
- * @property {LocationDefaultCurrency} [default_currency]
96
- * @property {LocationDefaultLanguage} [default_language]
97
111
  * @property {string} [iso2]
98
112
  * @property {string} [iso3]
99
- * @property {string} [latitude]
100
- * @property {string} [longitude]
101
113
  * @property {string} [name]
102
114
  * @property {string} [parent]
103
115
  * @property {string} [phone_code]
104
- * @property {string} [state_code]
105
116
  * @property {string} [type]
106
117
  * @property {number} [uid]
107
- */
108
- /**
109
- * @typedef LocationDefaultCurrency
110
- * @property {string} [code]
111
- * @property {string} [name]
112
- * @property {string} [symbol]
113
- */
114
- /**
115
- * @typedef LocationDefaultLanguage
116
- * @property {string} [code]
117
- * @property {string} [name]
118
+ * @property {number} [__v]
119
+ * @property {string} [_id]
120
+ * @property {LocationDefaultCurrency} [default_currency]
121
+ * @property {LocationDefaultLanguage} [default_language]
122
+ * @property {string} [state_code]
123
+ * @property {string} [country_code]
124
+ * @property {string} [latitude]
125
+ * @property {string} [longitude]
118
126
  */
119
127
  /**
120
128
  * @typedef Locations
121
129
  * @property {LocationCountry[]} [items]
122
130
  */
123
- /**
124
- * @typedef NotFound
125
- * @property {string} [message] - Response message for not found
126
- */
127
- /**
128
- * @typedef SecureUrl
129
- * @property {string} [secure_url] - Hosted URL of the image
130
- */
131
131
  declare class CommonApplicationModel {
132
132
  }
133
133
  declare namespace CommonApplicationModel {
134
- export { Application, ApplicationAuth, ApplicationCors, ApplicationMeta, ApplicationRedirections, ApplicationResponse, ApplicationWebsite, BadRequest, Domain, LocationCountry, LocationDefaultCurrency, LocationDefaultLanguage, Locations, NotFound, SecureUrl };
134
+ export { ApplicationResponse, Domain, ApplicationWebsite, ApplicationCors, ApplicationAuth, ApplicationRedirections, ApplicationMeta, SecureUrl, Application, NotFound, BadRequest, LocationDefaultLanguage, LocationDefaultCurrency, LocationCountry, Locations };
135
135
  }
136
- /** @returns {Application} */
137
- declare function Application(): Application;
138
- type Application = {
139
- /**
140
- * - Version key for tracking revisions. Default value is zero.
141
- */
142
- __v?: number;
143
- /**
144
- * - The unique identifier (24-digit Mongo Object ID)
145
- * of the sales channel
146
- */
147
- _id?: string;
148
- /**
149
- * - It shows whether application is live or in
150
- * development mode
151
- */
152
- app_type?: string;
153
- auth?: ApplicationAuth;
154
- banner?: SecureUrl;
155
- /**
156
- * - An integer value that specifies the number
157
- * of seconds until the key expires
158
- */
159
- cache_ttl?: number;
160
- /**
161
- * - It indicates different channel types like
162
- * store, website-and-mobile-apps. Default value is store.
163
- */
164
- channel_type?: string;
165
- /**
166
- * - Numeric ID allotted to a business account
167
- * where the sales channel exists
168
- */
169
- company_id?: number;
170
- cors?: ApplicationCors;
171
- /**
172
- * - ISO 8601 timestamp of sales channel creation
173
- */
174
- created_at?: string;
175
- /**
176
- * - It contains detailed information about the
177
- * sales channel
178
- */
179
- description?: string;
180
- domain?: Domain;
181
- domains?: Domain[];
182
- favicon?: SecureUrl;
136
+ /** @returns {ApplicationResponse} */
137
+ declare function ApplicationResponse(): ApplicationResponse;
138
+ type ApplicationResponse = {
139
+ application?: Application;
140
+ };
141
+ /** @returns {Domain} */
142
+ declare function Domain(): Domain;
143
+ type Domain = {
183
144
  /**
184
- * - Indicates whether a sales channel is active
185
- * or not active
145
+ * - Indicates domain is verified or not. TXT and
146
+ * A records should propagate correctly.
186
147
  */
187
- is_active?: boolean;
148
+ verified?: boolean;
188
149
  /**
189
- * - Indicates whether a sales channel is
190
- * internal or not
150
+ * - Indicates domain is primary or not.
151
+ * Primary domain is the default/main domain.
191
152
  */
192
- is_internal?: boolean;
193
- logo?: SecureUrl;
194
- meta?: ApplicationMeta[];
195
- mobile_logo?: SecureUrl;
153
+ is_primary?: boolean;
196
154
  /**
197
- * - Name of the sales channel, e.g. Zenz Fashion
155
+ * - Shortlink is present or not for the domain
198
156
  */
199
- name?: string;
157
+ is_shortlink?: boolean;
200
158
  /**
201
159
  * - The unique identifier (24-digit Mongo Object ID)
202
- * of owner who owns the application
203
- */
204
- owner?: string;
205
- redirections?: ApplicationRedirections[];
206
- /**
207
- * - Randomly generated fixed-length string for sales
208
- * channel. It is required and auto-generated.
160
+ * of the domain
209
161
  */
210
- token?: string;
162
+ _id?: string;
163
+ name?: string;
211
164
  /**
212
- * - ISO 8601 timestamp of sales channel updation
165
+ * - Domain is hosting domain or not
213
166
  */
214
- updated_at?: string;
215
- website?: ApplicationWebsite;
167
+ is_predefined?: boolean;
216
168
  };
217
- /** @returns {ApplicationAuth} */
218
- declare function ApplicationAuth(): ApplicationAuth;
219
- type ApplicationAuth = {
169
+ /** @returns {ApplicationWebsite} */
170
+ declare function ApplicationWebsite(): ApplicationWebsite;
171
+ type ApplicationWebsite = {
220
172
  /**
221
- * - Shows sales channel auth is enabled or not enabled.
173
+ * - Shows whether sales channel website URL is
174
+ * enabled or not
222
175
  */
223
176
  enabled?: boolean;
177
+ /**
178
+ * - Base path for the current sales channel website
179
+ */
180
+ basepath?: string;
224
181
  };
225
182
  /** @returns {ApplicationCors} */
226
183
  declare function ApplicationCors(): ApplicationCors;
227
184
  type ApplicationCors = {
228
185
  domains?: string[];
229
186
  };
230
- /** @returns {ApplicationMeta} */
231
- declare function ApplicationMeta(): ApplicationMeta;
232
- type ApplicationMeta = {
233
- /**
234
- * - Indicates the name of application meta
235
- */
236
- name?: string;
187
+ /** @returns {ApplicationAuth} */
188
+ declare function ApplicationAuth(): ApplicationAuth;
189
+ type ApplicationAuth = {
237
190
  /**
238
- * - Value related to application meta name
191
+ * - Shows sales channel auth is enabled or not enabled.
239
192
  */
240
- value?: string;
193
+ enabled?: boolean;
241
194
  };
242
195
  /** @returns {ApplicationRedirections} */
243
196
  declare function ApplicationRedirections(): ApplicationRedirections;
@@ -258,112 +211,159 @@ type ApplicationRedirections = {
258
211
  */
259
212
  type?: string;
260
213
  };
261
- /** @returns {ApplicationResponse} */
262
- declare function ApplicationResponse(): ApplicationResponse;
263
- type ApplicationResponse = {
264
- application?: Application;
265
- };
266
- /** @returns {ApplicationWebsite} */
267
- declare function ApplicationWebsite(): ApplicationWebsite;
268
- type ApplicationWebsite = {
214
+ /** @returns {ApplicationMeta} */
215
+ declare function ApplicationMeta(): ApplicationMeta;
216
+ type ApplicationMeta = {
269
217
  /**
270
- * - Base path for the current sales channel website
218
+ * - Indicates the name of application meta
271
219
  */
272
- basepath?: string;
220
+ name?: string;
273
221
  /**
274
- * - Shows whether sales channel website URL is
275
- * enabled or not
222
+ * - Value related to application meta name
276
223
  */
277
- enabled?: boolean;
224
+ value?: string;
278
225
  };
279
- /** @returns {BadRequest} */
280
- declare function BadRequest(): BadRequest;
281
- type BadRequest = {
226
+ /** @returns {SecureUrl} */
227
+ declare function SecureUrl(): SecureUrl;
228
+ type SecureUrl = {
282
229
  /**
283
- * - Failure message (in a string format)
230
+ * - Hosted URL of the image
284
231
  */
285
- message?: string;
232
+ secure_url?: string;
286
233
  };
287
- /** @returns {Domain} */
288
- declare function Domain(): Domain;
289
- type Domain = {
234
+ /** @returns {Application} */
235
+ declare function Application(): Application;
236
+ type Application = {
237
+ website?: ApplicationWebsite;
238
+ cors?: ApplicationCors;
239
+ auth?: ApplicationAuth;
240
+ /**
241
+ * - It contains detailed information about the
242
+ * sales channel
243
+ */
244
+ description?: string;
245
+ /**
246
+ * - It indicates different channel types like
247
+ * store, website-and-mobile-apps. Default value is store.
248
+ */
249
+ channel_type?: string;
250
+ /**
251
+ * - An integer value that specifies the number
252
+ * of seconds until the key expires
253
+ */
254
+ cache_ttl?: number;
255
+ /**
256
+ * - Indicates whether a sales channel is
257
+ * internal or not
258
+ */
259
+ is_internal?: boolean;
260
+ /**
261
+ * - Indicates whether a sales channel is active
262
+ * or not active
263
+ */
264
+ is_active?: boolean;
290
265
  /**
291
266
  * - The unique identifier (24-digit Mongo Object ID)
292
- * of the domain
267
+ * of the sales channel
293
268
  */
294
269
  _id?: string;
295
270
  /**
296
- * - Domain is hosting domain or not
271
+ * - Name of the sales channel, e.g. Zenz Fashion
297
272
  */
298
- is_predefined?: boolean;
273
+ name?: string;
299
274
  /**
300
- * - Indicates domain is primary or not.
301
- * Primary domain is the default/main domain.
275
+ * - The unique identifier (24-digit Mongo Object ID)
276
+ * of owner who owns the application
302
277
  */
303
- is_primary?: boolean;
278
+ owner?: string;
304
279
  /**
305
- * - Shortlink is present or not for the domain
280
+ * - Numeric ID allotted to a business account
281
+ * where the sales channel exists
306
282
  */
307
- is_shortlink?: boolean;
308
- name?: string;
283
+ company_id?: number;
309
284
  /**
310
- * - Indicates domain is verified or not. TXT and
311
- * A records should propagate correctly.
285
+ * - Randomly generated fixed-length string for sales
286
+ * channel. It is required and auto-generated.
312
287
  */
313
- verified?: boolean;
288
+ token?: string;
289
+ redirections?: ApplicationRedirections[];
290
+ meta?: ApplicationMeta[];
291
+ /**
292
+ * - ISO 8601 timestamp of sales channel creation
293
+ */
294
+ created_at?: string;
295
+ /**
296
+ * - ISO 8601 timestamp of sales channel updation
297
+ */
298
+ updated_at?: string;
299
+ /**
300
+ * - Version key for tracking revisions. Default value is zero.
301
+ */
302
+ __v?: number;
303
+ banner?: SecureUrl;
304
+ logo?: SecureUrl;
305
+ favicon?: SecureUrl;
306
+ domains?: Domain[];
307
+ /**
308
+ * - It shows whether application is live or in
309
+ * development mode
310
+ */
311
+ app_type?: string;
312
+ mobile_logo?: SecureUrl;
313
+ domain?: Domain;
314
+ };
315
+ /** @returns {NotFound} */
316
+ declare function NotFound(): NotFound;
317
+ type NotFound = {
318
+ /**
319
+ * - Response message for not found
320
+ */
321
+ message?: string;
322
+ };
323
+ /** @returns {BadRequest} */
324
+ declare function BadRequest(): BadRequest;
325
+ type BadRequest = {
326
+ /**
327
+ * - Failure message (in a string format)
328
+ */
329
+ message?: string;
330
+ };
331
+ /** @returns {LocationDefaultLanguage} */
332
+ declare function LocationDefaultLanguage(): LocationDefaultLanguage;
333
+ type LocationDefaultLanguage = {
334
+ name?: string;
335
+ code?: string;
336
+ };
337
+ /** @returns {LocationDefaultCurrency} */
338
+ declare function LocationDefaultCurrency(): LocationDefaultCurrency;
339
+ type LocationDefaultCurrency = {
340
+ name?: string;
341
+ symbol?: string;
342
+ code?: string;
314
343
  };
315
344
  /** @returns {LocationCountry} */
316
345
  declare function LocationCountry(): LocationCountry;
317
346
  type LocationCountry = {
318
- __v?: number;
319
- _id?: string;
320
347
  capital?: string;
321
- country_code?: string;
322
348
  currency?: string;
323
- default_currency?: LocationDefaultCurrency;
324
- default_language?: LocationDefaultLanguage;
325
349
  iso2?: string;
326
350
  iso3?: string;
327
- latitude?: string;
328
- longitude?: string;
329
351
  name?: string;
330
352
  parent?: string;
331
353
  phone_code?: string;
332
- state_code?: string;
333
354
  type?: string;
334
355
  uid?: number;
335
- };
336
- /** @returns {LocationDefaultCurrency} */
337
- declare function LocationDefaultCurrency(): LocationDefaultCurrency;
338
- type LocationDefaultCurrency = {
339
- code?: string;
340
- name?: string;
341
- symbol?: string;
342
- };
343
- /** @returns {LocationDefaultLanguage} */
344
- declare function LocationDefaultLanguage(): LocationDefaultLanguage;
345
- type LocationDefaultLanguage = {
346
- code?: string;
347
- name?: string;
356
+ __v?: number;
357
+ _id?: string;
358
+ default_currency?: LocationDefaultCurrency;
359
+ default_language?: LocationDefaultLanguage;
360
+ state_code?: string;
361
+ country_code?: string;
362
+ latitude?: string;
363
+ longitude?: string;
348
364
  };
349
365
  /** @returns {Locations} */
350
366
  declare function Locations(): Locations;
351
367
  type Locations = {
352
368
  items?: LocationCountry[];
353
369
  };
354
- /** @returns {NotFound} */
355
- declare function NotFound(): NotFound;
356
- type NotFound = {
357
- /**
358
- * - Response message for not found
359
- */
360
- message?: string;
361
- };
362
- /** @returns {SecureUrl} */
363
- declare function SecureUrl(): SecureUrl;
364
- type SecureUrl = {
365
- /**
366
- * - Hosted URL of the image
367
- */
368
- secure_url?: string;
369
- };