@gofynd/fdk-client-javascript 1.4.2-beta.2 → 1.4.2-beta.4
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 +852 -846
- package/sdk/application/Order/OrderApplicationModel.js +828 -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 +2176 -2145
- package/sdk/application/Payment/PaymentApplicationModel.js +1474 -1453
- 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/UserApplicationClient.d.ts +2 -2
- package/sdk/application/User/UserApplicationClient.js +4 -7
- package/sdk/application/User/UserApplicationModel.d.ts +769 -764
- package/sdk/application/User/UserApplicationModel.js +731 -741
- 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/CatalogPlatformApplicationClient.d.ts +26 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +182 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +70 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +44 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -980
- package/sdk/platform/Catalog/CatalogPlatformModel.js +977 -933
- 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 +1842 -1825
- package/sdk/platform/Content/ContentPlatformModel.js +1868 -1848
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
- package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +7 -4
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +882 -869
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +894 -878
- 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 +5192 -5176
- package/sdk/platform/Order/OrderPlatformModel.js +4752 -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 +2693 -2657
- package/sdk/platform/Payment/PaymentPlatformModel.js +1842 -1819
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +7 -6
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1674 -1539
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1663 -1534
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationClient.js +19 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
- 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 +823 -753
- package/sdk/platform/User/UserPlatformModel.js +731 -661
- 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,54 +1,33 @@
|
|
|
1
1
|
export = CommonApplicationModel;
|
|
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} [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
|
|
42
|
-
* @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
|
|
43
23
|
*/
|
|
44
24
|
/**
|
|
45
25
|
* @typedef ApplicationCors
|
|
46
26
|
* @property {string[]} [domains]
|
|
47
27
|
*/
|
|
48
28
|
/**
|
|
49
|
-
* @typedef
|
|
50
|
-
* @property {
|
|
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
|
|
64
|
-
* @property {
|
|
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
|
|
68
|
-
* @property {string} [
|
|
69
|
-
|
|
70
|
-
|
|
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
|
|
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 {
|
|
86
|
-
|
|
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
|
-
* @
|
|
110
|
-
* @property {
|
|
111
|
-
* @property {string} [
|
|
112
|
-
* @property {string} [
|
|
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 {
|
|
134
|
+
export { ApplicationResponse, Domain, ApplicationWebsite, ApplicationCors, ApplicationAuth, ApplicationRedirections, ApplicationMeta, SecureUrl, Application, NotFound, BadRequest, LocationDefaultLanguage, LocationDefaultCurrency, LocationCountry, Locations };
|
|
135
135
|
}
|
|
136
|
-
/** @returns {
|
|
137
|
-
declare function
|
|
138
|
-
type
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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
|
|
185
|
-
*
|
|
145
|
+
* - Indicates domain is verified or not. TXT and
|
|
146
|
+
* A records should propagate correctly.
|
|
186
147
|
*/
|
|
187
|
-
|
|
148
|
+
verified?: boolean;
|
|
188
149
|
/**
|
|
189
|
-
* - Indicates
|
|
190
|
-
*
|
|
150
|
+
* - Indicates domain is primary or not.
|
|
151
|
+
* Primary domain is the default/main domain.
|
|
191
152
|
*/
|
|
192
|
-
|
|
193
|
-
logo?: SecureUrl;
|
|
194
|
-
meta?: ApplicationMeta[];
|
|
195
|
-
mobile_logo?: SecureUrl;
|
|
153
|
+
is_primary?: boolean;
|
|
196
154
|
/**
|
|
197
|
-
* -
|
|
155
|
+
* - Shortlink is present or not for the domain
|
|
198
156
|
*/
|
|
199
|
-
|
|
157
|
+
is_shortlink?: boolean;
|
|
200
158
|
/**
|
|
201
159
|
* - The unique identifier (24-digit Mongo Object ID)
|
|
202
|
-
* of
|
|
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
|
-
|
|
162
|
+
_id?: string;
|
|
163
|
+
name?: string;
|
|
211
164
|
/**
|
|
212
|
-
* -
|
|
165
|
+
* - Domain is hosting domain or not
|
|
213
166
|
*/
|
|
214
|
-
|
|
215
|
-
website?: ApplicationWebsite;
|
|
167
|
+
is_predefined?: boolean;
|
|
216
168
|
};
|
|
217
|
-
/** @returns {
|
|
218
|
-
declare function
|
|
219
|
-
type
|
|
169
|
+
/** @returns {ApplicationWebsite} */
|
|
170
|
+
declare function ApplicationWebsite(): ApplicationWebsite;
|
|
171
|
+
type ApplicationWebsite = {
|
|
220
172
|
/**
|
|
221
|
-
* - Shows sales channel
|
|
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 {
|
|
231
|
-
declare function
|
|
232
|
-
type
|
|
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
|
-
* -
|
|
191
|
+
* - Shows sales channel auth is enabled or not enabled.
|
|
239
192
|
*/
|
|
240
|
-
|
|
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 {
|
|
262
|
-
declare function
|
|
263
|
-
type
|
|
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
|
-
* -
|
|
218
|
+
* - Indicates the name of application meta
|
|
271
219
|
*/
|
|
272
|
-
|
|
220
|
+
name?: string;
|
|
273
221
|
/**
|
|
274
|
-
* -
|
|
275
|
-
* enabled or not
|
|
222
|
+
* - Value related to application meta name
|
|
276
223
|
*/
|
|
277
|
-
|
|
224
|
+
value?: string;
|
|
278
225
|
};
|
|
279
|
-
/** @returns {
|
|
280
|
-
declare function
|
|
281
|
-
type
|
|
226
|
+
/** @returns {SecureUrl} */
|
|
227
|
+
declare function SecureUrl(): SecureUrl;
|
|
228
|
+
type SecureUrl = {
|
|
282
229
|
/**
|
|
283
|
-
* -
|
|
230
|
+
* - Hosted URL of the image
|
|
284
231
|
*/
|
|
285
|
-
|
|
232
|
+
secure_url?: string;
|
|
286
233
|
};
|
|
287
|
-
/** @returns {
|
|
288
|
-
declare function
|
|
289
|
-
type
|
|
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
|
|
267
|
+
* of the sales channel
|
|
293
268
|
*/
|
|
294
269
|
_id?: string;
|
|
295
270
|
/**
|
|
296
|
-
* -
|
|
271
|
+
* - Name of the sales channel, e.g. Zenz Fashion
|
|
297
272
|
*/
|
|
298
|
-
|
|
273
|
+
name?: string;
|
|
299
274
|
/**
|
|
300
|
-
* -
|
|
301
|
-
*
|
|
275
|
+
* - The unique identifier (24-digit Mongo Object ID)
|
|
276
|
+
* of owner who owns the application
|
|
302
277
|
*/
|
|
303
|
-
|
|
278
|
+
owner?: string;
|
|
304
279
|
/**
|
|
305
|
-
* -
|
|
280
|
+
* - Numeric ID allotted to a business account
|
|
281
|
+
* where the sales channel exists
|
|
306
282
|
*/
|
|
307
|
-
|
|
308
|
-
name?: string;
|
|
283
|
+
company_id?: number;
|
|
309
284
|
/**
|
|
310
|
-
* -
|
|
311
|
-
*
|
|
285
|
+
* - Randomly generated fixed-length string for sales
|
|
286
|
+
* channel. It is required and auto-generated.
|
|
312
287
|
*/
|
|
313
|
-
|
|
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
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
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
|
-
};
|