@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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationModel.d.ts +1742 -1726
- package/sdk/application/Cart/CartApplicationModel.js +1497 -1481
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1611 -1611
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1614 -1614
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1151 -1151
- package/sdk/application/Content/ContentApplicationModel.d.ts +797 -797
- package/sdk/application/Content/ContentApplicationModel.js +757 -757
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +666 -666
- package/sdk/application/Logistic/LogisticApplicationModel.js +601 -601
- package/sdk/application/Order/OrderApplicationModel.d.ts +846 -846
- package/sdk/application/Order/OrderApplicationModel.js +822 -822
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +2155 -2150
- package/sdk/application/Payment/PaymentApplicationModel.js +1460 -1458
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1462 -1462
- package/sdk/application/PosCart/PosCartApplicationModel.js +1260 -1260
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +895 -895
- package/sdk/application/Theme/ThemeApplicationModel.js +684 -684
- package/sdk/application/User/UserApplicationModel.d.ts +762 -762
- package/sdk/application/User/UserApplicationModel.js +738 -738
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +63 -63
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +65 -65
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +661 -661
- package/sdk/partner/Lead/LeadPartnerModel.js +491 -491
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +223 -223
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +235 -235
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1087 -1087
- package/sdk/partner/Theme/ThemePartnerModel.js +819 -819
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +386 -386
- package/sdk/partner/Webhook/WebhookPartnerModel.js +342 -342
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +801 -801
- package/sdk/platform/Billing/BillingPlatformModel.js +783 -783
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3333 -3317
- package/sdk/platform/Cart/CartPlatformModel.js +2936 -2920
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -1013
- package/sdk/platform/Catalog/CatalogPlatformModel.js +923 -923
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1238 -1238
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1273 -1273
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +661 -661
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +692 -692
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +3198 -3198
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2247 -2247
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1833 -1833
- package/sdk/platform/Content/ContentPlatformModel.js +1837 -1837
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
- package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +865 -865
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +877 -877
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1044 -1044
- package/sdk/platform/Finance/FinancePlatformModel.js +974 -974
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +608 -608
- package/sdk/platform/Lead/LeadPlatformModel.js +465 -465
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5180 -5176
- package/sdk/platform/Order/OrderPlatformModel.js +4740 -4736
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2670 -2660
- package/sdk/platform/Payment/PaymentPlatformModel.js +1831 -1827
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1505 -1507
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1532 -1536
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1046 -1046
- package/sdk/platform/Theme/ThemePlatformModel.js +789 -789
- package/sdk/platform/User/UserPlatformModel.d.ts +758 -758
- package/sdk/platform/User/UserPlatformModel.js +643 -643
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +439 -439
- package/sdk/platform/Webhook/WebhookPlatformModel.js +364 -364
- package/sdk/public/Billing/BillingPublicModel.d.ts +55 -55
- package/sdk/public/Billing/BillingPublicModel.js +51 -51
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Content/ContentPublicModel.d.ts +26 -26
- package/sdk/public/Content/ContentPublicModel.js +28 -28
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +87 -87
- package/sdk/public/Webhook/WebhookPublicModel.js +93 -93
|
@@ -1,55 +1,33 @@
|
|
|
1
1
|
export = ConfigurationPublicModel;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
4
|
-
* @property {
|
|
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
|
|
7
|
-
* @property {string} [
|
|
8
|
-
*
|
|
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
|
|
43
|
-
* @property {boolean} [enabled] - Shows sales channel
|
|
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
|
|
51
|
-
* @property {
|
|
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
|
|
65
|
-
* @property {
|
|
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
|
|
69
|
-
* @property {string} [
|
|
70
|
-
|
|
71
|
-
|
|
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
|
|
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 {
|
|
87
|
-
|
|
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
|
-
* @
|
|
111
|
-
* @property {
|
|
112
|
-
* @property {string} [
|
|
113
|
-
* @property {string} [
|
|
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 {
|
|
135
|
+
export { ApplicationResponse, Domain, ApplicationWebsite, ApplicationCors, ApplicationAuth, ApplicationRedirections, ApplicationMeta, SecureUrl, Application, NotFound, BadRequest, LocationDefaultLanguage, LocationDefaultCurrency, LocationCountry, Locations };
|
|
136
136
|
}
|
|
137
|
-
/** @returns {
|
|
138
|
-
declare function
|
|
139
|
-
type
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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
|
|
186
|
-
*
|
|
146
|
+
* - Indicates domain is verified or not. TXT and
|
|
147
|
+
* A records should propagate correctly.
|
|
187
148
|
*/
|
|
188
|
-
|
|
149
|
+
verified?: boolean;
|
|
189
150
|
/**
|
|
190
|
-
* - Indicates
|
|
191
|
-
*
|
|
151
|
+
* - Indicates domain is primary or not.
|
|
152
|
+
* Primary domain is the default/main domain.
|
|
192
153
|
*/
|
|
193
|
-
|
|
194
|
-
logo?: SecureUrl;
|
|
195
|
-
meta?: ApplicationMeta[];
|
|
196
|
-
mobile_logo?: SecureUrl;
|
|
154
|
+
is_primary?: boolean;
|
|
197
155
|
/**
|
|
198
|
-
* -
|
|
156
|
+
* - Shortlink is present or not for the domain
|
|
199
157
|
*/
|
|
200
|
-
|
|
158
|
+
is_shortlink?: boolean;
|
|
201
159
|
/**
|
|
202
160
|
* - The unique identifier (24-digit Mongo Object ID)
|
|
203
|
-
* of
|
|
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
|
-
|
|
163
|
+
_id?: string;
|
|
164
|
+
name?: string;
|
|
213
165
|
/**
|
|
214
|
-
* -
|
|
166
|
+
* - Domain is hosting domain or not
|
|
215
167
|
*/
|
|
216
|
-
|
|
217
|
-
website?: ApplicationWebsite;
|
|
168
|
+
is_predefined?: boolean;
|
|
218
169
|
};
|
|
219
|
-
/** @returns {
|
|
220
|
-
declare function
|
|
221
|
-
type
|
|
170
|
+
/** @returns {ApplicationWebsite} */
|
|
171
|
+
declare function ApplicationWebsite(): ApplicationWebsite;
|
|
172
|
+
type ApplicationWebsite = {
|
|
222
173
|
/**
|
|
223
|
-
* - Shows sales channel
|
|
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 {
|
|
233
|
-
declare function
|
|
234
|
-
type
|
|
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
|
-
* -
|
|
192
|
+
* - Shows sales channel auth is enabled or not enabled.
|
|
241
193
|
*/
|
|
242
|
-
|
|
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 {
|
|
264
|
-
declare function
|
|
265
|
-
type
|
|
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
|
-
* -
|
|
219
|
+
* - Indicates the name of application meta
|
|
273
220
|
*/
|
|
274
|
-
|
|
221
|
+
name?: string;
|
|
275
222
|
/**
|
|
276
|
-
* -
|
|
277
|
-
* enabled or not
|
|
223
|
+
* - Value related to application meta name
|
|
278
224
|
*/
|
|
279
|
-
|
|
225
|
+
value?: string;
|
|
280
226
|
};
|
|
281
|
-
/** @returns {
|
|
282
|
-
declare function
|
|
283
|
-
type
|
|
227
|
+
/** @returns {SecureUrl} */
|
|
228
|
+
declare function SecureUrl(): SecureUrl;
|
|
229
|
+
type SecureUrl = {
|
|
284
230
|
/**
|
|
285
|
-
* -
|
|
231
|
+
* - Hosted URL of the image
|
|
286
232
|
*/
|
|
287
|
-
|
|
233
|
+
secure_url?: string;
|
|
288
234
|
};
|
|
289
|
-
/** @returns {
|
|
290
|
-
declare function
|
|
291
|
-
type
|
|
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
|
|
268
|
+
* of the sales channel
|
|
295
269
|
*/
|
|
296
270
|
_id?: string;
|
|
297
271
|
/**
|
|
298
|
-
* -
|
|
272
|
+
* - Name of the sales channel, e.g. Zenz Fashion
|
|
299
273
|
*/
|
|
300
|
-
|
|
274
|
+
name?: string;
|
|
301
275
|
/**
|
|
302
|
-
* -
|
|
303
|
-
*
|
|
276
|
+
* - The unique identifier (24-digit Mongo Object ID)
|
|
277
|
+
* of owner who owns the application
|
|
304
278
|
*/
|
|
305
|
-
|
|
279
|
+
owner?: string;
|
|
306
280
|
/**
|
|
307
|
-
* -
|
|
281
|
+
* - Numeric ID allotted to a business account
|
|
282
|
+
* where the sales channel exists
|
|
308
283
|
*/
|
|
309
|
-
|
|
310
|
-
name?: string;
|
|
284
|
+
company_id?: number;
|
|
311
285
|
/**
|
|
312
|
-
* -
|
|
313
|
-
*
|
|
286
|
+
* - Randomly generated fixed-length string for sales
|
|
287
|
+
* channel. It is required and auto-generated.
|
|
314
288
|
*/
|
|
315
|
-
|
|
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
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
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
|
-
};
|