@gofynd/fdk-client-javascript 1.4.8-beta.3 → 1.4.8
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 +26 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +8 -0
- package/sdk/application/ApplicationClient.js +14 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
- package/sdk/application/Cart/CartApplicationClient.js +20 -20
- package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
- package/sdk/application/Cart/CartApplicationModel.js +783 -552
- package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
- package/sdk/application/Cart/CartApplicationValidator.js +100 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
- package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
- package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
- package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +2 -2
- package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
- package/sdk/application/Common/CommonApplicationModel.js +59 -58
- package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
- package/sdk/application/Common/CommonApplicationValidator.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
- package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
- package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
- package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
- package/sdk/application/Content/ContentApplicationClient.js +16 -16
- package/sdk/application/Content/ContentApplicationModel.d.ts +1205 -282
- package/sdk/application/Content/ContentApplicationModel.js +341 -277
- package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
- package/sdk/application/Content/ContentApplicationValidator.js +11 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
- package/sdk/application/Lead/LeadApplicationModel.js +110 -67
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
- package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
- package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
- package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
- package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
- package/sdk/application/Order/OrderApplicationClient.js +10 -10
- package/sdk/application/Order/OrderApplicationModel.d.ts +1400 -325
- package/sdk/application/Order/OrderApplicationModel.js +391 -317
- package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
- package/sdk/application/Order/OrderApplicationValidator.js +15 -14
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
- package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
- package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
- package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
- package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
- package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
- package/sdk/application/Share/ShareApplicationModel.js +53 -37
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
- package/sdk/application/Share/ShareApplicationValidator.js +2 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
- package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
- package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
- package/sdk/application/User/UserApplicationClient.d.ts +36 -36
- package/sdk/application/User/UserApplicationClient.js +36 -36
- package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
- package/sdk/application/User/UserApplicationModel.js +298 -244
- package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
- package/sdk/application/User/UserApplicationValidator.js +40 -40
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
- package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
- package/sdk/common/Clickstream.js +95 -15
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/common/Utility.js +19 -0
- package/sdk/common/utils.js +8 -1
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
- package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +28 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +7 -7
- package/sdk/partner/PartnerClient.d.ts +8 -0
- package/sdk/partner/PartnerClient.js +14 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
- package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
- package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +21 -10
- package/sdk/platform/Billing/BillingPlatformClient.js +167 -83
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +2849 -565
- package/sdk/platform/Billing/BillingPlatformModel.js +935 -556
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +30 -14
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -16
- package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
- package/sdk/platform/Cart/CartPlatformModel.js +8 -8
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
- package/sdk/platform/Content/ContentPlatformModel.d.ts +58 -17
- package/sdk/platform/Content/ContentPlatformModel.js +28 -15
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1583 -347
- package/sdk/platform/Finance/FinancePlatformModel.js +463 -351
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
- package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
- package/sdk/platform/Order/OrderPlatformClient.js +165 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +613 -39
- package/sdk/platform/Order/OrderPlatformModel.js +359 -41
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
- package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
- package/sdk/platform/PlatformClient.d.ts +8 -0
- package/sdk/platform/PlatformClient.js +14 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
- package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +120 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +76 -21
- package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
- package/sdk/platform/Share/SharePlatformModel.js +7 -7
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
- package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
- package/sdk/platform/User/UserPlatformModel.d.ts +18 -18
- package/sdk/platform/User/UserPlatformModel.js +9 -9
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +28 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +7 -7
- package/sdk/public/Billing/BillingPublicClient.d.ts +11 -0
- package/sdk/public/Billing/BillingPublicClient.js +80 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +584 -99
- package/sdk/public/Billing/BillingPublicModel.js +252 -87
- package/sdk/public/Billing/BillingPublicValidator.d.ts +10 -1
- package/sdk/public/Billing/BillingPublicValidator.js +12 -0
- package/sdk/public/PublicClient.d.ts +0 -2
- package/sdk/public/PublicClient.js +0 -4
- package/sdk/public/index.d.ts +0 -1
- package/sdk/public/index.js +0 -2
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
- package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
- package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
- package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
|
@@ -5,33 +5,33 @@ export = CommonApplicationModel;
|
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* @typedef Domain
|
|
8
|
-
* @property {boolean} [verified] -
|
|
9
|
-
*
|
|
10
|
-
* @property {boolean} [is_primary] -
|
|
11
|
-
*
|
|
12
|
-
* @property {boolean} [is_shortlink] -
|
|
8
|
+
* @property {boolean} [verified] - Whether domain is verified or not. TXT and A
|
|
9
|
+
* records should propagate correctly.
|
|
10
|
+
* @property {boolean} [is_primary] - Whether domain is primary or not. Primary
|
|
11
|
+
* domain is the default/main domain.
|
|
12
|
+
* @property {boolean} [is_shortlink] - Whether shortlink is present or not for
|
|
13
|
+
* the domain.
|
|
13
14
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
14
|
-
* of the domain
|
|
15
|
-
* @property {string} [name]
|
|
16
|
-
* @property {boolean} [is_predefined] -
|
|
15
|
+
* of the domain.
|
|
16
|
+
* @property {string} [name] - The name of the domain.
|
|
17
|
+
* @property {boolean} [is_predefined] - Whether domain is hosting domain or not.
|
|
17
18
|
*/
|
|
18
19
|
/**
|
|
19
20
|
* @typedef ApplicationWebsite
|
|
20
|
-
* @property {boolean} [enabled] -
|
|
21
|
-
*
|
|
22
|
-
* @property {string} [basepath] - Base path for the current sales channel website
|
|
21
|
+
* @property {boolean} [enabled] - Whether sales channel website URL is enabled or not.
|
|
22
|
+
* @property {string} [basepath] - Base path for the current sales channel website.
|
|
23
23
|
*/
|
|
24
24
|
/**
|
|
25
25
|
* @typedef ApplicationCors
|
|
26
|
-
* @property {string[]} [domains]
|
|
26
|
+
* @property {string[]} [domains] - List of all domains added to the sales channel.
|
|
27
27
|
*/
|
|
28
28
|
/**
|
|
29
29
|
* @typedef ApplicationAuth
|
|
30
|
-
* @property {boolean} [enabled] -
|
|
30
|
+
* @property {boolean} [enabled] - Whether sales channel auth is enabled or not enabled.
|
|
31
31
|
*/
|
|
32
32
|
/**
|
|
33
33
|
* @typedef ApplicationRedirections
|
|
34
|
-
* @property {string} [redirect_from] - Old domain URL of the sales channel
|
|
34
|
+
* @property {string} [redirect_from] - Old domain URL of the sales channel.
|
|
35
35
|
* @property {string} [redirect_to] - New domain URL of the sales channel. Users
|
|
36
36
|
* will be automatically redirected from old domain to new domain.
|
|
37
37
|
* @property {string} [type] - It shows domain redirection type. Permanent
|
|
@@ -40,93 +40,94 @@ export = CommonApplicationModel;
|
|
|
40
40
|
*/
|
|
41
41
|
/**
|
|
42
42
|
* @typedef ApplicationMeta
|
|
43
|
-
* @property {string} [name] - Indicates the name of application meta
|
|
44
|
-
* @property {string} [value] - Value related to application meta name
|
|
43
|
+
* @property {string} [name] - Indicates the name of application meta.
|
|
44
|
+
* @property {string} [value] - Value related to application meta name.
|
|
45
45
|
*/
|
|
46
46
|
/**
|
|
47
47
|
* @typedef SecureUrl
|
|
48
|
-
* @property {string} [secure_url] - Hosted URL of the image
|
|
48
|
+
* @property {string} [secure_url] - Hosted URL of the image.
|
|
49
49
|
*/
|
|
50
50
|
/**
|
|
51
51
|
* @typedef Application
|
|
52
52
|
* @property {ApplicationWebsite} [website]
|
|
53
53
|
* @property {ApplicationCors} [cors]
|
|
54
54
|
* @property {ApplicationAuth} [auth]
|
|
55
|
-
* @property {string} [description] -
|
|
56
|
-
* sales channel
|
|
55
|
+
* @property {string} [description] - Detailed information about the sales channel.
|
|
57
56
|
* @property {string} [channel_type] - It indicates different channel types like
|
|
58
57
|
* store, website-and-mobile-apps. Default value is store.
|
|
59
|
-
* @property {number} [cache_ttl] -
|
|
60
|
-
*
|
|
61
|
-
* @property {boolean} [
|
|
62
|
-
* internal or not
|
|
63
|
-
* @property {boolean} [is_active] - Indicates whether a sales channel is active
|
|
64
|
-
* or not active
|
|
58
|
+
* @property {number} [cache_ttl] - Number of seconds until the key expires.
|
|
59
|
+
* @property {boolean} [is_internal] - Whether a sales channel is internal or not.
|
|
60
|
+
* @property {boolean} [is_active] - Whether a sales channel is active or not active.
|
|
65
61
|
* @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
|
|
62
|
+
* of the sales channel.
|
|
63
|
+
* @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion.
|
|
68
64
|
* @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
|
|
69
|
-
* of owner who owns the application
|
|
65
|
+
* of owner who owns the application.
|
|
70
66
|
* @property {number} [company_id] - Numeric ID allotted to a business account
|
|
71
|
-
* where the sales channel exists
|
|
67
|
+
* where the sales channel exists.
|
|
72
68
|
* @property {string} [token] - Randomly generated fixed-length string for sales
|
|
73
69
|
* channel. It is required and auto-generated.
|
|
74
|
-
* @property {ApplicationRedirections[]} [redirections]
|
|
75
|
-
*
|
|
76
|
-
* @property {
|
|
77
|
-
*
|
|
70
|
+
* @property {ApplicationRedirections[]} [redirections] - List of redirection
|
|
71
|
+
* configurations for the sales channel.
|
|
72
|
+
* @property {ApplicationMeta[]} [meta] - List of metadata associated with the
|
|
73
|
+
* sales channel.
|
|
74
|
+
* @property {string} [created_at] - ISO 8601 timestamp of sales channel creation.
|
|
75
|
+
* @property {string} [updated_at] - ISO 8601 timestamp of sales channel updation.
|
|
78
76
|
* @property {number} [__v] - Version key for tracking revisions. Default value is zero.
|
|
79
77
|
* @property {SecureUrl} [banner]
|
|
80
78
|
* @property {SecureUrl} [logo]
|
|
81
79
|
* @property {SecureUrl} [favicon]
|
|
82
|
-
* @property {Domain[]} [domains]
|
|
80
|
+
* @property {Domain[]} [domains] - List of domains associated with the sales channel.
|
|
83
81
|
* @property {string} [app_type] - It shows whether application is live or in
|
|
84
|
-
* development mode
|
|
82
|
+
* development mode.
|
|
85
83
|
* @property {SecureUrl} [mobile_logo]
|
|
86
84
|
* @property {Domain} [domain]
|
|
87
85
|
*/
|
|
88
86
|
/**
|
|
89
87
|
* @typedef NotFound
|
|
90
|
-
* @property {string} [message] - Response message for not found
|
|
88
|
+
* @property {string} [message] - Response message for not found.
|
|
91
89
|
*/
|
|
92
90
|
/**
|
|
93
91
|
* @typedef BadRequest
|
|
94
|
-
* @property {string} [message] - Failure message (in a string format)
|
|
92
|
+
* @property {string} [message] - Failure message (in a string format).
|
|
95
93
|
*/
|
|
96
94
|
/**
|
|
97
95
|
* @typedef LocationDefaultLanguage
|
|
98
|
-
* @property {string} [name]
|
|
99
|
-
* @property {string} [code]
|
|
96
|
+
* @property {string} [name] - Name of the language.
|
|
97
|
+
* @property {string} [code] - Code of the language.
|
|
100
98
|
*/
|
|
101
99
|
/**
|
|
102
100
|
* @typedef LocationDefaultCurrency
|
|
103
|
-
* @property {string} [name]
|
|
104
|
-
* @property {string} [symbol]
|
|
105
|
-
* @property {string} [code]
|
|
101
|
+
* @property {string} [name] - The name of the currency.
|
|
102
|
+
* @property {string} [symbol] - The symbol representing the currency.
|
|
103
|
+
* @property {string} [code] - The ISO 4217 code for the currency.
|
|
106
104
|
*/
|
|
107
105
|
/**
|
|
108
106
|
* @typedef LocationCountry
|
|
109
|
-
* @property {string} [capital]
|
|
110
|
-
* @property {string} [currency]
|
|
111
|
-
* @property {string} [iso2]
|
|
112
|
-
* @property {string} [iso3]
|
|
113
|
-
* @property {string} [name]
|
|
114
|
-
* @property {string} [parent]
|
|
115
|
-
*
|
|
116
|
-
* @property {string} [
|
|
117
|
-
* @property {
|
|
118
|
-
* @property {number} [
|
|
119
|
-
* @property {
|
|
107
|
+
* @property {string} [capital] - The capital of the country.
|
|
108
|
+
* @property {string} [currency] - The currency code used in the country.
|
|
109
|
+
* @property {string} [iso2] - The ISO 3166-1 alpha-2 code for the country.
|
|
110
|
+
* @property {string} [iso3] - The ISO 3166-1 alpha-3 code for the country.
|
|
111
|
+
* @property {string} [name] - The name of the country.
|
|
112
|
+
* @property {string} [parent] - The parent country if this is a subnational
|
|
113
|
+
* entity (e.g., a territory or region).
|
|
114
|
+
* @property {string} [phone_code] - The international dialing code for the country.
|
|
115
|
+
* @property {string} [type] - The type of location, which is a country in this context.
|
|
116
|
+
* @property {number} [uid] - A unique identifier for the country.
|
|
117
|
+
* @property {number} [__v] - Version key for tracking revisions.
|
|
118
|
+
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
119
|
+
* for the country.
|
|
120
120
|
* @property {LocationDefaultCurrency} [default_currency]
|
|
121
121
|
* @property {LocationDefaultLanguage} [default_language]
|
|
122
|
-
* @property {string} [state_code]
|
|
123
|
-
*
|
|
124
|
-
* @property {string} [
|
|
125
|
-
* @property {string} [
|
|
122
|
+
* @property {string} [state_code] - The code representing the state or region
|
|
123
|
+
* within the country, if applicable.
|
|
124
|
+
* @property {string} [country_code] - The country code used for the country.
|
|
125
|
+
* @property {string} [latitude] - The latitude of the store's location.
|
|
126
|
+
* @property {string} [longitude] - The longitude of the store's location.
|
|
126
127
|
*/
|
|
127
128
|
/**
|
|
128
129
|
* @typedef Locations
|
|
129
|
-
* @property {LocationCountry[]} [items]
|
|
130
|
+
* @property {LocationCountry[]} [items] - A list of country location details.
|
|
130
131
|
*/
|
|
131
132
|
declare class CommonApplicationModel {
|
|
132
133
|
}
|
|
@@ -142,27 +143,31 @@ type ApplicationResponse = {
|
|
|
142
143
|
declare function Domain(): Domain;
|
|
143
144
|
type Domain = {
|
|
144
145
|
/**
|
|
145
|
-
* -
|
|
146
|
-
*
|
|
146
|
+
* - Whether domain is verified or not. TXT and A
|
|
147
|
+
* records should propagate correctly.
|
|
147
148
|
*/
|
|
148
149
|
verified?: boolean;
|
|
149
150
|
/**
|
|
150
|
-
* -
|
|
151
|
-
*
|
|
151
|
+
* - Whether domain is primary or not. Primary
|
|
152
|
+
* domain is the default/main domain.
|
|
152
153
|
*/
|
|
153
154
|
is_primary?: boolean;
|
|
154
155
|
/**
|
|
155
|
-
* -
|
|
156
|
+
* - Whether shortlink is present or not for
|
|
157
|
+
* the domain.
|
|
156
158
|
*/
|
|
157
159
|
is_shortlink?: boolean;
|
|
158
160
|
/**
|
|
159
161
|
* - The unique identifier (24-digit Mongo Object ID)
|
|
160
|
-
* of the domain
|
|
162
|
+
* of the domain.
|
|
161
163
|
*/
|
|
162
164
|
_id?: string;
|
|
165
|
+
/**
|
|
166
|
+
* - The name of the domain.
|
|
167
|
+
*/
|
|
163
168
|
name?: string;
|
|
164
169
|
/**
|
|
165
|
-
* -
|
|
170
|
+
* - Whether domain is hosting domain or not.
|
|
166
171
|
*/
|
|
167
172
|
is_predefined?: boolean;
|
|
168
173
|
};
|
|
@@ -170,25 +175,27 @@ type Domain = {
|
|
|
170
175
|
declare function ApplicationWebsite(): ApplicationWebsite;
|
|
171
176
|
type ApplicationWebsite = {
|
|
172
177
|
/**
|
|
173
|
-
* -
|
|
174
|
-
* enabled or not
|
|
178
|
+
* - Whether sales channel website URL is enabled or not.
|
|
175
179
|
*/
|
|
176
180
|
enabled?: boolean;
|
|
177
181
|
/**
|
|
178
|
-
* - Base path for the current sales channel website
|
|
182
|
+
* - Base path for the current sales channel website.
|
|
179
183
|
*/
|
|
180
184
|
basepath?: string;
|
|
181
185
|
};
|
|
182
186
|
/** @returns {ApplicationCors} */
|
|
183
187
|
declare function ApplicationCors(): ApplicationCors;
|
|
184
188
|
type ApplicationCors = {
|
|
189
|
+
/**
|
|
190
|
+
* - List of all domains added to the sales channel.
|
|
191
|
+
*/
|
|
185
192
|
domains?: string[];
|
|
186
193
|
};
|
|
187
194
|
/** @returns {ApplicationAuth} */
|
|
188
195
|
declare function ApplicationAuth(): ApplicationAuth;
|
|
189
196
|
type ApplicationAuth = {
|
|
190
197
|
/**
|
|
191
|
-
* -
|
|
198
|
+
* - Whether sales channel auth is enabled or not enabled.
|
|
192
199
|
*/
|
|
193
200
|
enabled?: boolean;
|
|
194
201
|
};
|
|
@@ -196,7 +203,7 @@ type ApplicationAuth = {
|
|
|
196
203
|
declare function ApplicationRedirections(): ApplicationRedirections;
|
|
197
204
|
type ApplicationRedirections = {
|
|
198
205
|
/**
|
|
199
|
-
* - Old domain URL of the sales channel
|
|
206
|
+
* - Old domain URL of the sales channel.
|
|
200
207
|
*/
|
|
201
208
|
redirect_from?: string;
|
|
202
209
|
/**
|
|
@@ -215,11 +222,11 @@ type ApplicationRedirections = {
|
|
|
215
222
|
declare function ApplicationMeta(): ApplicationMeta;
|
|
216
223
|
type ApplicationMeta = {
|
|
217
224
|
/**
|
|
218
|
-
* - Indicates the name of application meta
|
|
225
|
+
* - Indicates the name of application meta.
|
|
219
226
|
*/
|
|
220
227
|
name?: string;
|
|
221
228
|
/**
|
|
222
|
-
* - Value related to application meta name
|
|
229
|
+
* - Value related to application meta name.
|
|
223
230
|
*/
|
|
224
231
|
value?: string;
|
|
225
232
|
};
|
|
@@ -227,7 +234,7 @@ type ApplicationMeta = {
|
|
|
227
234
|
declare function SecureUrl(): SecureUrl;
|
|
228
235
|
type SecureUrl = {
|
|
229
236
|
/**
|
|
230
|
-
* - Hosted URL of the image
|
|
237
|
+
* - Hosted URL of the image.
|
|
231
238
|
*/
|
|
232
239
|
secure_url?: string;
|
|
233
240
|
};
|
|
@@ -238,8 +245,7 @@ type Application = {
|
|
|
238
245
|
cors?: ApplicationCors;
|
|
239
246
|
auth?: ApplicationAuth;
|
|
240
247
|
/**
|
|
241
|
-
* -
|
|
242
|
-
* sales channel
|
|
248
|
+
* - Detailed information about the sales channel.
|
|
243
249
|
*/
|
|
244
250
|
description?: string;
|
|
245
251
|
/**
|
|
@@ -248,37 +254,34 @@ type Application = {
|
|
|
248
254
|
*/
|
|
249
255
|
channel_type?: string;
|
|
250
256
|
/**
|
|
251
|
-
* -
|
|
252
|
-
* of seconds until the key expires
|
|
257
|
+
* - Number of seconds until the key expires.
|
|
253
258
|
*/
|
|
254
259
|
cache_ttl?: number;
|
|
255
260
|
/**
|
|
256
|
-
* -
|
|
257
|
-
* internal or not
|
|
261
|
+
* - Whether a sales channel is internal or not.
|
|
258
262
|
*/
|
|
259
263
|
is_internal?: boolean;
|
|
260
264
|
/**
|
|
261
|
-
* -
|
|
262
|
-
* or not active
|
|
265
|
+
* - Whether a sales channel is active or not active.
|
|
263
266
|
*/
|
|
264
267
|
is_active?: boolean;
|
|
265
268
|
/**
|
|
266
269
|
* - The unique identifier (24-digit Mongo Object ID)
|
|
267
|
-
* of the sales channel
|
|
270
|
+
* of the sales channel.
|
|
268
271
|
*/
|
|
269
272
|
_id?: string;
|
|
270
273
|
/**
|
|
271
|
-
* - Name of the sales channel, e.g. Zenz Fashion
|
|
274
|
+
* - Name of the sales channel, e.g. Zenz Fashion.
|
|
272
275
|
*/
|
|
273
276
|
name?: string;
|
|
274
277
|
/**
|
|
275
278
|
* - The unique identifier (24-digit Mongo Object ID)
|
|
276
|
-
* of owner who owns the application
|
|
279
|
+
* of owner who owns the application.
|
|
277
280
|
*/
|
|
278
281
|
owner?: string;
|
|
279
282
|
/**
|
|
280
283
|
* - Numeric ID allotted to a business account
|
|
281
|
-
* where the sales channel exists
|
|
284
|
+
* where the sales channel exists.
|
|
282
285
|
*/
|
|
283
286
|
company_id?: number;
|
|
284
287
|
/**
|
|
@@ -286,14 +289,22 @@ type Application = {
|
|
|
286
289
|
* channel. It is required and auto-generated.
|
|
287
290
|
*/
|
|
288
291
|
token?: string;
|
|
292
|
+
/**
|
|
293
|
+
* - List of redirection
|
|
294
|
+
* configurations for the sales channel.
|
|
295
|
+
*/
|
|
289
296
|
redirections?: ApplicationRedirections[];
|
|
297
|
+
/**
|
|
298
|
+
* - List of metadata associated with the
|
|
299
|
+
* sales channel.
|
|
300
|
+
*/
|
|
290
301
|
meta?: ApplicationMeta[];
|
|
291
302
|
/**
|
|
292
|
-
* - ISO 8601 timestamp of sales channel creation
|
|
303
|
+
* - ISO 8601 timestamp of sales channel creation.
|
|
293
304
|
*/
|
|
294
305
|
created_at?: string;
|
|
295
306
|
/**
|
|
296
|
-
* - ISO 8601 timestamp of sales channel updation
|
|
307
|
+
* - ISO 8601 timestamp of sales channel updation.
|
|
297
308
|
*/
|
|
298
309
|
updated_at?: string;
|
|
299
310
|
/**
|
|
@@ -303,10 +314,13 @@ type Application = {
|
|
|
303
314
|
banner?: SecureUrl;
|
|
304
315
|
logo?: SecureUrl;
|
|
305
316
|
favicon?: SecureUrl;
|
|
317
|
+
/**
|
|
318
|
+
* - List of domains associated with the sales channel.
|
|
319
|
+
*/
|
|
306
320
|
domains?: Domain[];
|
|
307
321
|
/**
|
|
308
322
|
* - It shows whether application is live or in
|
|
309
|
-
* development mode
|
|
323
|
+
* development mode.
|
|
310
324
|
*/
|
|
311
325
|
app_type?: string;
|
|
312
326
|
mobile_logo?: SecureUrl;
|
|
@@ -316,7 +330,7 @@ type Application = {
|
|
|
316
330
|
declare function NotFound(): NotFound;
|
|
317
331
|
type NotFound = {
|
|
318
332
|
/**
|
|
319
|
-
* - Response message for not found
|
|
333
|
+
* - Response message for not found.
|
|
320
334
|
*/
|
|
321
335
|
message?: string;
|
|
322
336
|
};
|
|
@@ -324,46 +338,112 @@ type NotFound = {
|
|
|
324
338
|
declare function BadRequest(): BadRequest;
|
|
325
339
|
type BadRequest = {
|
|
326
340
|
/**
|
|
327
|
-
* - Failure message (in a string format)
|
|
341
|
+
* - Failure message (in a string format).
|
|
328
342
|
*/
|
|
329
343
|
message?: string;
|
|
330
344
|
};
|
|
331
345
|
/** @returns {LocationDefaultLanguage} */
|
|
332
346
|
declare function LocationDefaultLanguage(): LocationDefaultLanguage;
|
|
333
347
|
type LocationDefaultLanguage = {
|
|
348
|
+
/**
|
|
349
|
+
* - Name of the language.
|
|
350
|
+
*/
|
|
334
351
|
name?: string;
|
|
352
|
+
/**
|
|
353
|
+
* - Code of the language.
|
|
354
|
+
*/
|
|
335
355
|
code?: string;
|
|
336
356
|
};
|
|
337
357
|
/** @returns {LocationDefaultCurrency} */
|
|
338
358
|
declare function LocationDefaultCurrency(): LocationDefaultCurrency;
|
|
339
359
|
type LocationDefaultCurrency = {
|
|
360
|
+
/**
|
|
361
|
+
* - The name of the currency.
|
|
362
|
+
*/
|
|
340
363
|
name?: string;
|
|
364
|
+
/**
|
|
365
|
+
* - The symbol representing the currency.
|
|
366
|
+
*/
|
|
341
367
|
symbol?: string;
|
|
368
|
+
/**
|
|
369
|
+
* - The ISO 4217 code for the currency.
|
|
370
|
+
*/
|
|
342
371
|
code?: string;
|
|
343
372
|
};
|
|
344
373
|
/** @returns {LocationCountry} */
|
|
345
374
|
declare function LocationCountry(): LocationCountry;
|
|
346
375
|
type LocationCountry = {
|
|
376
|
+
/**
|
|
377
|
+
* - The capital of the country.
|
|
378
|
+
*/
|
|
347
379
|
capital?: string;
|
|
380
|
+
/**
|
|
381
|
+
* - The currency code used in the country.
|
|
382
|
+
*/
|
|
348
383
|
currency?: string;
|
|
384
|
+
/**
|
|
385
|
+
* - The ISO 3166-1 alpha-2 code for the country.
|
|
386
|
+
*/
|
|
349
387
|
iso2?: string;
|
|
388
|
+
/**
|
|
389
|
+
* - The ISO 3166-1 alpha-3 code for the country.
|
|
390
|
+
*/
|
|
350
391
|
iso3?: string;
|
|
392
|
+
/**
|
|
393
|
+
* - The name of the country.
|
|
394
|
+
*/
|
|
351
395
|
name?: string;
|
|
396
|
+
/**
|
|
397
|
+
* - The parent country if this is a subnational
|
|
398
|
+
* entity (e.g., a territory or region).
|
|
399
|
+
*/
|
|
352
400
|
parent?: string;
|
|
401
|
+
/**
|
|
402
|
+
* - The international dialing code for the country.
|
|
403
|
+
*/
|
|
353
404
|
phone_code?: string;
|
|
405
|
+
/**
|
|
406
|
+
* - The type of location, which is a country in this context.
|
|
407
|
+
*/
|
|
354
408
|
type?: string;
|
|
409
|
+
/**
|
|
410
|
+
* - A unique identifier for the country.
|
|
411
|
+
*/
|
|
355
412
|
uid?: number;
|
|
413
|
+
/**
|
|
414
|
+
* - Version key for tracking revisions.
|
|
415
|
+
*/
|
|
356
416
|
__v?: number;
|
|
417
|
+
/**
|
|
418
|
+
* - The unique identifier (24-digit Mongo Object ID)
|
|
419
|
+
* for the country.
|
|
420
|
+
*/
|
|
357
421
|
_id?: string;
|
|
358
422
|
default_currency?: LocationDefaultCurrency;
|
|
359
423
|
default_language?: LocationDefaultLanguage;
|
|
424
|
+
/**
|
|
425
|
+
* - The code representing the state or region
|
|
426
|
+
* within the country, if applicable.
|
|
427
|
+
*/
|
|
360
428
|
state_code?: string;
|
|
429
|
+
/**
|
|
430
|
+
* - The country code used for the country.
|
|
431
|
+
*/
|
|
361
432
|
country_code?: string;
|
|
433
|
+
/**
|
|
434
|
+
* - The latitude of the store's location.
|
|
435
|
+
*/
|
|
362
436
|
latitude?: string;
|
|
437
|
+
/**
|
|
438
|
+
* - The longitude of the store's location.
|
|
439
|
+
*/
|
|
363
440
|
longitude?: string;
|
|
364
441
|
};
|
|
365
442
|
/** @returns {Locations} */
|
|
366
443
|
declare function Locations(): Locations;
|
|
367
444
|
type Locations = {
|
|
445
|
+
/**
|
|
446
|
+
* - A list of country location details.
|
|
447
|
+
*/
|
|
368
448
|
items?: LocationCountry[];
|
|
369
449
|
};
|