@gofynd/fdk-client-javascript 1.4.8-beta.3 → 1.4.9
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 +6 -397
- package/sdk/platform/Billing/BillingPlatformClient.js +77 -3215
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +621 -2021
- package/sdk/platform/Billing/BillingPlatformModel.js +353 -2405
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +12 -451
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -483
- 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/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -45
- package/sdk/public/Billing/BillingPublicClient.js +0 -269
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -434
- package/sdk/public/Billing/BillingPublicModel.js +0 -395
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -34
- package/sdk/public/Billing/BillingPublicValidator.js +0 -38
- 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
|
@@ -7,37 +7,37 @@ const Joi = require("joi");
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @typedef Domain
|
|
10
|
-
* @property {boolean} [verified] -
|
|
11
|
-
*
|
|
12
|
-
* @property {boolean} [is_primary] -
|
|
13
|
-
*
|
|
14
|
-
* @property {boolean} [is_shortlink] -
|
|
10
|
+
* @property {boolean} [verified] - Whether domain is verified or not. TXT and A
|
|
11
|
+
* records should propagate correctly.
|
|
12
|
+
* @property {boolean} [is_primary] - Whether domain is primary or not. Primary
|
|
13
|
+
* domain is the default/main domain.
|
|
14
|
+
* @property {boolean} [is_shortlink] - Whether shortlink is present or not for
|
|
15
|
+
* the domain.
|
|
15
16
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
16
|
-
* of the domain
|
|
17
|
-
* @property {string} [name]
|
|
18
|
-
* @property {boolean} [is_predefined] -
|
|
17
|
+
* of the domain.
|
|
18
|
+
* @property {string} [name] - The name of the domain.
|
|
19
|
+
* @property {boolean} [is_predefined] - Whether domain is hosting domain or not.
|
|
19
20
|
*/
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
23
|
* @typedef ApplicationWebsite
|
|
23
|
-
* @property {boolean} [enabled] -
|
|
24
|
-
*
|
|
25
|
-
* @property {string} [basepath] - Base path for the current sales channel website
|
|
24
|
+
* @property {boolean} [enabled] - Whether sales channel website URL is enabled or not.
|
|
25
|
+
* @property {string} [basepath] - Base path for the current sales channel website.
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* @typedef ApplicationCors
|
|
30
|
-
* @property {string[]} [domains]
|
|
30
|
+
* @property {string[]} [domains] - List of all domains added to the sales channel.
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* @typedef ApplicationAuth
|
|
35
|
-
* @property {boolean} [enabled] -
|
|
35
|
+
* @property {boolean} [enabled] - Whether sales channel auth is enabled or not enabled.
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* @typedef ApplicationRedirections
|
|
40
|
-
* @property {string} [redirect_from] - Old domain URL of the sales channel
|
|
40
|
+
* @property {string} [redirect_from] - Old domain URL of the sales channel.
|
|
41
41
|
* @property {string} [redirect_to] - New domain URL of the sales channel. Users
|
|
42
42
|
* will be automatically redirected from old domain to new domain.
|
|
43
43
|
* @property {string} [type] - It shows domain redirection type. Permanent
|
|
@@ -47,13 +47,13 @@ const Joi = require("joi");
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* @typedef ApplicationMeta
|
|
50
|
-
* @property {string} [name] - Indicates the name of application meta
|
|
51
|
-
* @property {string} [value] - Value related to application meta name
|
|
50
|
+
* @property {string} [name] - Indicates the name of application meta.
|
|
51
|
+
* @property {string} [value] - Value related to application meta name.
|
|
52
52
|
*/
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* @typedef SecureUrl
|
|
56
|
-
* @property {string} [secure_url] - Hosted URL of the image
|
|
56
|
+
* @property {string} [secure_url] - Hosted URL of the image.
|
|
57
57
|
*/
|
|
58
58
|
|
|
59
59
|
/**
|
|
@@ -61,87 +61,88 @@ const Joi = require("joi");
|
|
|
61
61
|
* @property {ApplicationWebsite} [website]
|
|
62
62
|
* @property {ApplicationCors} [cors]
|
|
63
63
|
* @property {ApplicationAuth} [auth]
|
|
64
|
-
* @property {string} [description] -
|
|
65
|
-
* sales channel
|
|
64
|
+
* @property {string} [description] - Detailed information about the sales channel.
|
|
66
65
|
* @property {string} [channel_type] - It indicates different channel types like
|
|
67
66
|
* store, website-and-mobile-apps. Default value is store.
|
|
68
|
-
* @property {number} [cache_ttl] -
|
|
69
|
-
*
|
|
70
|
-
* @property {boolean} [
|
|
71
|
-
* internal or not
|
|
72
|
-
* @property {boolean} [is_active] - Indicates whether a sales channel is active
|
|
73
|
-
* or not active
|
|
67
|
+
* @property {number} [cache_ttl] - Number of seconds until the key expires.
|
|
68
|
+
* @property {boolean} [is_internal] - Whether a sales channel is internal or not.
|
|
69
|
+
* @property {boolean} [is_active] - Whether a sales channel is active or not active.
|
|
74
70
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
75
|
-
* of the sales channel
|
|
76
|
-
* @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion
|
|
71
|
+
* of the sales channel.
|
|
72
|
+
* @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion.
|
|
77
73
|
* @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
|
|
78
|
-
* of owner who owns the application
|
|
74
|
+
* of owner who owns the application.
|
|
79
75
|
* @property {number} [company_id] - Numeric ID allotted to a business account
|
|
80
|
-
* where the sales channel exists
|
|
76
|
+
* where the sales channel exists.
|
|
81
77
|
* @property {string} [token] - Randomly generated fixed-length string for sales
|
|
82
78
|
* channel. It is required and auto-generated.
|
|
83
|
-
* @property {ApplicationRedirections[]} [redirections]
|
|
84
|
-
*
|
|
85
|
-
* @property {
|
|
86
|
-
*
|
|
79
|
+
* @property {ApplicationRedirections[]} [redirections] - List of redirection
|
|
80
|
+
* configurations for the sales channel.
|
|
81
|
+
* @property {ApplicationMeta[]} [meta] - List of metadata associated with the
|
|
82
|
+
* sales channel.
|
|
83
|
+
* @property {string} [created_at] - ISO 8601 timestamp of sales channel creation.
|
|
84
|
+
* @property {string} [updated_at] - ISO 8601 timestamp of sales channel updation.
|
|
87
85
|
* @property {number} [__v] - Version key for tracking revisions. Default value is zero.
|
|
88
86
|
* @property {SecureUrl} [banner]
|
|
89
87
|
* @property {SecureUrl} [logo]
|
|
90
88
|
* @property {SecureUrl} [favicon]
|
|
91
|
-
* @property {Domain[]} [domains]
|
|
89
|
+
* @property {Domain[]} [domains] - List of domains associated with the sales channel.
|
|
92
90
|
* @property {string} [app_type] - It shows whether application is live or in
|
|
93
|
-
* development mode
|
|
91
|
+
* development mode.
|
|
94
92
|
* @property {SecureUrl} [mobile_logo]
|
|
95
93
|
* @property {Domain} [domain]
|
|
96
94
|
*/
|
|
97
95
|
|
|
98
96
|
/**
|
|
99
97
|
* @typedef NotFound
|
|
100
|
-
* @property {string} [message] - Response message for not found
|
|
98
|
+
* @property {string} [message] - Response message for not found.
|
|
101
99
|
*/
|
|
102
100
|
|
|
103
101
|
/**
|
|
104
102
|
* @typedef BadRequest
|
|
105
|
-
* @property {string} [message] - Failure message (in a string format)
|
|
103
|
+
* @property {string} [message] - Failure message (in a string format).
|
|
106
104
|
*/
|
|
107
105
|
|
|
108
106
|
/**
|
|
109
107
|
* @typedef LocationDefaultLanguage
|
|
110
|
-
* @property {string} [name]
|
|
111
|
-
* @property {string} [code]
|
|
108
|
+
* @property {string} [name] - Name of the language.
|
|
109
|
+
* @property {string} [code] - Code of the language.
|
|
112
110
|
*/
|
|
113
111
|
|
|
114
112
|
/**
|
|
115
113
|
* @typedef LocationDefaultCurrency
|
|
116
|
-
* @property {string} [name]
|
|
117
|
-
* @property {string} [symbol]
|
|
118
|
-
* @property {string} [code]
|
|
114
|
+
* @property {string} [name] - The name of the currency.
|
|
115
|
+
* @property {string} [symbol] - The symbol representing the currency.
|
|
116
|
+
* @property {string} [code] - The ISO 4217 code for the currency.
|
|
119
117
|
*/
|
|
120
118
|
|
|
121
119
|
/**
|
|
122
120
|
* @typedef LocationCountry
|
|
123
|
-
* @property {string} [capital]
|
|
124
|
-
* @property {string} [currency]
|
|
125
|
-
* @property {string} [iso2]
|
|
126
|
-
* @property {string} [iso3]
|
|
127
|
-
* @property {string} [name]
|
|
128
|
-
* @property {string} [parent]
|
|
129
|
-
*
|
|
130
|
-
* @property {string} [
|
|
131
|
-
* @property {
|
|
132
|
-
* @property {number} [
|
|
133
|
-
* @property {
|
|
121
|
+
* @property {string} [capital] - The capital of the country.
|
|
122
|
+
* @property {string} [currency] - The currency code used in the country.
|
|
123
|
+
* @property {string} [iso2] - The ISO 3166-1 alpha-2 code for the country.
|
|
124
|
+
* @property {string} [iso3] - The ISO 3166-1 alpha-3 code for the country.
|
|
125
|
+
* @property {string} [name] - The name of the country.
|
|
126
|
+
* @property {string} [parent] - The parent country if this is a subnational
|
|
127
|
+
* entity (e.g., a territory or region).
|
|
128
|
+
* @property {string} [phone_code] - The international dialing code for the country.
|
|
129
|
+
* @property {string} [type] - The type of location, which is a country in this context.
|
|
130
|
+
* @property {number} [uid] - A unique identifier for the country.
|
|
131
|
+
* @property {number} [__v] - Version key for tracking revisions.
|
|
132
|
+
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
133
|
+
* for the country.
|
|
134
134
|
* @property {LocationDefaultCurrency} [default_currency]
|
|
135
135
|
* @property {LocationDefaultLanguage} [default_language]
|
|
136
|
-
* @property {string} [state_code]
|
|
137
|
-
*
|
|
138
|
-
* @property {string} [
|
|
139
|
-
* @property {string} [
|
|
136
|
+
* @property {string} [state_code] - The code representing the state or region
|
|
137
|
+
* within the country, if applicable.
|
|
138
|
+
* @property {string} [country_code] - The country code used for the country.
|
|
139
|
+
* @property {string} [latitude] - The latitude of the store's location.
|
|
140
|
+
* @property {string} [longitude] - The longitude of the store's location.
|
|
140
141
|
*/
|
|
141
142
|
|
|
142
143
|
/**
|
|
143
144
|
* @typedef Locations
|
|
144
|
-
* @property {LocationCountry[]} [items]
|
|
145
|
+
* @property {LocationCountry[]} [items] - A list of country location details.
|
|
145
146
|
*/
|
|
146
147
|
|
|
147
148
|
class CommonApplicationModel {
|
|
@@ -2,15 +2,15 @@ export = CommonApplicationValidator;
|
|
|
2
2
|
/**
|
|
3
3
|
* @typedef GetLocationsParam
|
|
4
4
|
* @property {string} [locationType] - Provide location type to query on.
|
|
5
|
-
* Possible values : country, state, city
|
|
5
|
+
* Possible values : country, state, city.
|
|
6
6
|
* @property {string} [id] - Field is optional when location_type is country. If
|
|
7
7
|
* querying for state, provide id of country. If querying for city, provide id
|
|
8
8
|
* of state.
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
11
|
* @typedef SearchApplicationParam
|
|
12
|
-
* @property {string} [authorization]
|
|
13
|
-
* @property {string} [query] - Provide application name
|
|
12
|
+
* @property {string} [authorization] - Basic auth string to access the api endpoint.
|
|
13
|
+
* @property {string} [query] - Provide application name.
|
|
14
14
|
*/
|
|
15
15
|
declare class CommonApplicationValidator {
|
|
16
16
|
/** @returns {GetLocationsParam} */
|
|
@@ -24,7 +24,7 @@ declare namespace CommonApplicationValidator {
|
|
|
24
24
|
type GetLocationsParam = {
|
|
25
25
|
/**
|
|
26
26
|
* - Provide location type to query on.
|
|
27
|
-
* Possible values : country, state, city
|
|
27
|
+
* Possible values : country, state, city.
|
|
28
28
|
*/
|
|
29
29
|
locationType?: string;
|
|
30
30
|
/**
|
|
@@ -35,9 +35,12 @@ type GetLocationsParam = {
|
|
|
35
35
|
id?: string;
|
|
36
36
|
};
|
|
37
37
|
type SearchApplicationParam = {
|
|
38
|
+
/**
|
|
39
|
+
* - Basic auth string to access the api endpoint.
|
|
40
|
+
*/
|
|
38
41
|
authorization?: string;
|
|
39
42
|
/**
|
|
40
|
-
* - Provide application name
|
|
43
|
+
* - Provide application name.
|
|
41
44
|
*/
|
|
42
45
|
query?: string;
|
|
43
46
|
};
|
|
@@ -5,7 +5,7 @@ const CommonApplicationModel = require("./CommonApplicationModel");
|
|
|
5
5
|
/**
|
|
6
6
|
* @typedef GetLocationsParam
|
|
7
7
|
* @property {string} [locationType] - Provide location type to query on.
|
|
8
|
-
* Possible values : country, state, city
|
|
8
|
+
* Possible values : country, state, city.
|
|
9
9
|
* @property {string} [id] - Field is optional when location_type is country. If
|
|
10
10
|
* querying for state, provide id of country. If querying for city, provide id
|
|
11
11
|
* of state.
|
|
@@ -13,8 +13,8 @@ const CommonApplicationModel = require("./CommonApplicationModel");
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @typedef SearchApplicationParam
|
|
16
|
-
* @property {string} [authorization]
|
|
17
|
-
* @property {string} [query] - Provide application name
|
|
16
|
+
* @property {string} [authorization] - Basic auth string to access the api endpoint.
|
|
17
|
+
* @property {string} [query] - Provide application name.
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
class CommonApplicationValidator {
|
|
@@ -19,7 +19,7 @@ declare class Communication {
|
|
|
19
19
|
* Success response
|
|
20
20
|
* @name getCommunicationConsent
|
|
21
21
|
* @summary: Retrieve consent status
|
|
22
|
-
* @description:
|
|
22
|
+
* @description: Get the consent provided by the user for receiving communication. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/communication/getCommunicationConsent/).
|
|
23
23
|
*/
|
|
24
24
|
getCommunicationConsent({ requestHeaders }?: any, { responseHeaders }?: object): Promise<CommunicationApplicationModel.CommunicationConsent>;
|
|
25
25
|
/**
|
|
@@ -44,7 +44,7 @@ declare class Communication {
|
|
|
44
44
|
*
|
|
45
45
|
* @name upsertCommunicationConsent
|
|
46
46
|
* @summary: Update or adds consent settings
|
|
47
|
-
* @description: Update or
|
|
47
|
+
* @description: Update or insert the consent provided by the user for receiving communication messages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/communication/upsertCommunicationConsent/).
|
|
48
48
|
*/
|
|
49
49
|
upsertCommunicationConsent({ body, requestHeaders }?: CommunicationApplicationValidator.UpsertCommunicationConsentParam, { responseHeaders }?: object): Promise<CommunicationApplicationModel.CommunicationConsentRes>;
|
|
50
50
|
}
|
|
@@ -46,7 +46,7 @@ class Communication {
|
|
|
46
46
|
* Success response
|
|
47
47
|
* @name getCommunicationConsent
|
|
48
48
|
* @summary: Retrieve consent status
|
|
49
|
-
* @description:
|
|
49
|
+
* @description: Get the consent provided by the user for receiving communication. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/communication/getCommunicationConsent/).
|
|
50
50
|
*/
|
|
51
51
|
async getCommunicationConsent(
|
|
52
52
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -211,7 +211,7 @@ class Communication {
|
|
|
211
211
|
*
|
|
212
212
|
* @name upsertCommunicationConsent
|
|
213
213
|
* @summary: Update or adds consent settings
|
|
214
|
-
* @description: Update or
|
|
214
|
+
* @description: Update or insert the consent provided by the user for receiving communication messages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/communication/upsertCommunicationConsent/).
|
|
215
215
|
*/
|
|
216
216
|
async upsertCommunicationConsent(
|
|
217
217
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1,32 +1,44 @@
|
|
|
1
1
|
export = CommunicationApplicationModel;
|
|
2
2
|
/**
|
|
3
3
|
* @typedef CommunicationConsentReq
|
|
4
|
-
* @property {string} [response]
|
|
5
|
-
*
|
|
6
|
-
* @property {string} [
|
|
4
|
+
* @property {string} [response] - Whether the user has responded to the inquiry
|
|
5
|
+
* regarding their preference for opting in or out of receiving communications.
|
|
6
|
+
* @property {string} [action] - The user's choice to opt in or opt out of
|
|
7
|
+
* receiving communications.
|
|
8
|
+
* @property {string} [channel] - The channel of communication the user has
|
|
9
|
+
* agreed to receive messages through.
|
|
7
10
|
*/
|
|
8
11
|
/**
|
|
9
12
|
* @typedef CommunicationConsentRes
|
|
10
|
-
* @property {string} [app_id]
|
|
11
|
-
*
|
|
13
|
+
* @property {string} [app_id] - The ID of the sales channel where the user has
|
|
14
|
+
* given their consent.
|
|
15
|
+
* @property {string} [user_id] - Identifier which can uniquely identify the user.
|
|
12
16
|
* @property {CommunicationConsentChannels} [channels]
|
|
13
17
|
*/
|
|
14
18
|
/**
|
|
15
19
|
* @typedef CommunicationConsentChannelsEmail
|
|
16
|
-
* @property {string} [response]
|
|
17
|
-
*
|
|
20
|
+
* @property {string} [response] - The user's choice to opt in or opt out of
|
|
21
|
+
* receiving communications.
|
|
22
|
+
* @property {string} [display_name] - Name of the channel of communication the
|
|
23
|
+
* user has agreed to receive messages through.
|
|
18
24
|
*/
|
|
19
25
|
/**
|
|
20
26
|
* @typedef CommunicationConsentChannelsSms
|
|
21
|
-
* @property {string} [response]
|
|
22
|
-
*
|
|
27
|
+
* @property {string} [response] - The user's choice to opt in or opt out of
|
|
28
|
+
* receiving communications.
|
|
29
|
+
* @property {string} [display_name] - Name of the channel of communication the
|
|
30
|
+
* user has agreed to receive messages through.
|
|
23
31
|
*/
|
|
24
32
|
/**
|
|
25
33
|
* @typedef CommunicationConsentChannelsWhatsapp
|
|
26
|
-
* @property {string} [response]
|
|
27
|
-
*
|
|
28
|
-
* @property {string} [
|
|
29
|
-
*
|
|
34
|
+
* @property {string} [response] - The user's choice to opt in or opt out of
|
|
35
|
+
* receiving communications.
|
|
36
|
+
* @property {string} [display_name] - Name of the channel of communication the
|
|
37
|
+
* user has agreed to receive messages through.
|
|
38
|
+
* @property {string} [country_code] - Alphanumeric identification code for the
|
|
39
|
+
* users country.
|
|
40
|
+
* @property {string} [phone_number] - Phone number of the user that the user
|
|
41
|
+
* has accepted to receive communication through WhatsApp.
|
|
30
42
|
*/
|
|
31
43
|
/**
|
|
32
44
|
* @typedef CommunicationConsentChannels
|
|
@@ -36,36 +48,45 @@ export = CommunicationApplicationModel;
|
|
|
36
48
|
*/
|
|
37
49
|
/**
|
|
38
50
|
* @typedef CommunicationConsent
|
|
39
|
-
* @property {string} [app_id]
|
|
40
|
-
*
|
|
51
|
+
* @property {string} [app_id] - The ID of the sales channel where the user has
|
|
52
|
+
* given their consent.
|
|
53
|
+
* @property {string} [user_id] - Identifier which can uniquely identify the user.
|
|
41
54
|
* @property {CommunicationConsentChannels} [channels]
|
|
42
55
|
*/
|
|
43
56
|
/**
|
|
44
57
|
* @typedef BadRequestSchema
|
|
45
|
-
* @property {string} [status] -
|
|
46
|
-
* @property {string} [message] -
|
|
58
|
+
* @property {string} [status] - Error code indicating the type of issue.
|
|
59
|
+
* @property {string} [message] - Error message providing details about the error.
|
|
47
60
|
*/
|
|
48
61
|
/**
|
|
49
62
|
* @typedef PushtokenReq
|
|
50
|
-
* @property {string} [action]
|
|
51
|
-
*
|
|
52
|
-
* @property {string} [
|
|
53
|
-
* @property {string} [
|
|
54
|
-
*
|
|
63
|
+
* @property {string} [action] - The type of operation to perform with the push
|
|
64
|
+
* token, such as create, update, or reset.
|
|
65
|
+
* @property {string} [bundle_identifier] - Unique identifier used to identify a bundle.
|
|
66
|
+
* @property {string} [push_token] - A string of codes containing comprehensive
|
|
67
|
+
* data that identifies a identity of requester.
|
|
68
|
+
* @property {string} [unique_device_id] - Unique identifier used to identify a device.
|
|
69
|
+
* @property {string} [type] - Source address of the requestee.
|
|
55
70
|
*/
|
|
56
71
|
/**
|
|
57
72
|
* @typedef PushtokenRes
|
|
58
|
-
* @property {string} [_id]
|
|
59
|
-
*
|
|
60
|
-
* @property {string} [
|
|
61
|
-
* @property {string} [
|
|
62
|
-
*
|
|
63
|
-
* @property {string} [
|
|
64
|
-
* @property {string} [
|
|
65
|
-
* @property {string} [
|
|
66
|
-
* @property {string} [
|
|
67
|
-
*
|
|
68
|
-
* @property {string} [
|
|
73
|
+
* @property {string} [_id] - Key used to uniquely identify document that
|
|
74
|
+
* contains push token credentials.
|
|
75
|
+
* @property {string} [bundle_identifier] - Unique identifier used to identify a bundle.
|
|
76
|
+
* @property {string} [push_token] - A string of codes containing comprehensive
|
|
77
|
+
* data that identifies a identity of requester.
|
|
78
|
+
* @property {string} [unique_device_id] - Unique identifier used to identify a device.
|
|
79
|
+
* @property {string} [type] - Source address of the requester.
|
|
80
|
+
* @property {string} [platform] - Source address of the requester.
|
|
81
|
+
* @property {string} [application_id] - The ID of the sales channel associated
|
|
82
|
+
* with the push token.
|
|
83
|
+
* @property {string} [user_id] - Identifier which can uniquely identify the user.
|
|
84
|
+
* @property {string} [created_at] - The timestamp indicating when a record was
|
|
85
|
+
* initially created.
|
|
86
|
+
* @property {string} [updated_at] - The timestamp indicating when a record was
|
|
87
|
+
* last modified or updated.
|
|
88
|
+
* @property {string} [expired_at] - The timestamp indicating when a record is
|
|
89
|
+
* set to expire or become invalid.
|
|
69
90
|
*/
|
|
70
91
|
declare class CommunicationApplicationModel {
|
|
71
92
|
}
|
|
@@ -75,35 +96,86 @@ declare namespace CommunicationApplicationModel {
|
|
|
75
96
|
/** @returns {CommunicationConsentReq} */
|
|
76
97
|
declare function CommunicationConsentReq(): CommunicationConsentReq;
|
|
77
98
|
type CommunicationConsentReq = {
|
|
99
|
+
/**
|
|
100
|
+
* - Whether the user has responded to the inquiry
|
|
101
|
+
* regarding their preference for opting in or out of receiving communications.
|
|
102
|
+
*/
|
|
78
103
|
response?: string;
|
|
104
|
+
/**
|
|
105
|
+
* - The user's choice to opt in or opt out of
|
|
106
|
+
* receiving communications.
|
|
107
|
+
*/
|
|
79
108
|
action?: string;
|
|
109
|
+
/**
|
|
110
|
+
* - The channel of communication the user has
|
|
111
|
+
* agreed to receive messages through.
|
|
112
|
+
*/
|
|
80
113
|
channel?: string;
|
|
81
114
|
};
|
|
82
115
|
/** @returns {CommunicationConsentRes} */
|
|
83
116
|
declare function CommunicationConsentRes(): CommunicationConsentRes;
|
|
84
117
|
type CommunicationConsentRes = {
|
|
118
|
+
/**
|
|
119
|
+
* - The ID of the sales channel where the user has
|
|
120
|
+
* given their consent.
|
|
121
|
+
*/
|
|
85
122
|
app_id?: string;
|
|
123
|
+
/**
|
|
124
|
+
* - Identifier which can uniquely identify the user.
|
|
125
|
+
*/
|
|
86
126
|
user_id?: string;
|
|
87
127
|
channels?: CommunicationConsentChannels;
|
|
88
128
|
};
|
|
89
129
|
/** @returns {CommunicationConsentChannelsEmail} */
|
|
90
130
|
declare function CommunicationConsentChannelsEmail(): CommunicationConsentChannelsEmail;
|
|
91
131
|
type CommunicationConsentChannelsEmail = {
|
|
132
|
+
/**
|
|
133
|
+
* - The user's choice to opt in or opt out of
|
|
134
|
+
* receiving communications.
|
|
135
|
+
*/
|
|
92
136
|
response?: string;
|
|
137
|
+
/**
|
|
138
|
+
* - Name of the channel of communication the
|
|
139
|
+
* user has agreed to receive messages through.
|
|
140
|
+
*/
|
|
93
141
|
display_name?: string;
|
|
94
142
|
};
|
|
95
143
|
/** @returns {CommunicationConsentChannelsSms} */
|
|
96
144
|
declare function CommunicationConsentChannelsSms(): CommunicationConsentChannelsSms;
|
|
97
145
|
type CommunicationConsentChannelsSms = {
|
|
146
|
+
/**
|
|
147
|
+
* - The user's choice to opt in or opt out of
|
|
148
|
+
* receiving communications.
|
|
149
|
+
*/
|
|
98
150
|
response?: string;
|
|
151
|
+
/**
|
|
152
|
+
* - Name of the channel of communication the
|
|
153
|
+
* user has agreed to receive messages through.
|
|
154
|
+
*/
|
|
99
155
|
display_name?: string;
|
|
100
156
|
};
|
|
101
157
|
/** @returns {CommunicationConsentChannelsWhatsapp} */
|
|
102
158
|
declare function CommunicationConsentChannelsWhatsapp(): CommunicationConsentChannelsWhatsapp;
|
|
103
159
|
type CommunicationConsentChannelsWhatsapp = {
|
|
160
|
+
/**
|
|
161
|
+
* - The user's choice to opt in or opt out of
|
|
162
|
+
* receiving communications.
|
|
163
|
+
*/
|
|
104
164
|
response?: string;
|
|
165
|
+
/**
|
|
166
|
+
* - Name of the channel of communication the
|
|
167
|
+
* user has agreed to receive messages through.
|
|
168
|
+
*/
|
|
105
169
|
display_name?: string;
|
|
170
|
+
/**
|
|
171
|
+
* - Alphanumeric identification code for the
|
|
172
|
+
* users country.
|
|
173
|
+
*/
|
|
106
174
|
country_code?: string;
|
|
175
|
+
/**
|
|
176
|
+
* - Phone number of the user that the user
|
|
177
|
+
* has accepted to receive communication through WhatsApp.
|
|
178
|
+
*/
|
|
107
179
|
phone_number?: string;
|
|
108
180
|
};
|
|
109
181
|
/** @returns {CommunicationConsentChannels} */
|
|
@@ -116,7 +188,14 @@ type CommunicationConsentChannels = {
|
|
|
116
188
|
/** @returns {CommunicationConsent} */
|
|
117
189
|
declare function CommunicationConsent(): CommunicationConsent;
|
|
118
190
|
type CommunicationConsent = {
|
|
191
|
+
/**
|
|
192
|
+
* - The ID of the sales channel where the user has
|
|
193
|
+
* given their consent.
|
|
194
|
+
*/
|
|
119
195
|
app_id?: string;
|
|
196
|
+
/**
|
|
197
|
+
* - Identifier which can uniquely identify the user.
|
|
198
|
+
*/
|
|
120
199
|
user_id?: string;
|
|
121
200
|
channels?: CommunicationConsentChannels;
|
|
122
201
|
};
|
|
@@ -124,35 +203,91 @@ type CommunicationConsent = {
|
|
|
124
203
|
declare function BadRequestSchema(): BadRequestSchema;
|
|
125
204
|
type BadRequestSchema = {
|
|
126
205
|
/**
|
|
127
|
-
* -
|
|
206
|
+
* - Error code indicating the type of issue.
|
|
128
207
|
*/
|
|
129
208
|
status?: string;
|
|
130
209
|
/**
|
|
131
|
-
* -
|
|
210
|
+
* - Error message providing details about the error.
|
|
132
211
|
*/
|
|
133
212
|
message?: string;
|
|
134
213
|
};
|
|
135
214
|
/** @returns {PushtokenReq} */
|
|
136
215
|
declare function PushtokenReq(): PushtokenReq;
|
|
137
216
|
type PushtokenReq = {
|
|
217
|
+
/**
|
|
218
|
+
* - The type of operation to perform with the push
|
|
219
|
+
* token, such as create, update, or reset.
|
|
220
|
+
*/
|
|
138
221
|
action?: string;
|
|
222
|
+
/**
|
|
223
|
+
* - Unique identifier used to identify a bundle.
|
|
224
|
+
*/
|
|
139
225
|
bundle_identifier?: string;
|
|
226
|
+
/**
|
|
227
|
+
* - A string of codes containing comprehensive
|
|
228
|
+
* data that identifies a identity of requester.
|
|
229
|
+
*/
|
|
140
230
|
push_token?: string;
|
|
231
|
+
/**
|
|
232
|
+
* - Unique identifier used to identify a device.
|
|
233
|
+
*/
|
|
141
234
|
unique_device_id?: string;
|
|
235
|
+
/**
|
|
236
|
+
* - Source address of the requestee.
|
|
237
|
+
*/
|
|
142
238
|
type?: string;
|
|
143
239
|
};
|
|
144
240
|
/** @returns {PushtokenRes} */
|
|
145
241
|
declare function PushtokenRes(): PushtokenRes;
|
|
146
242
|
type PushtokenRes = {
|
|
243
|
+
/**
|
|
244
|
+
* - Key used to uniquely identify document that
|
|
245
|
+
* contains push token credentials.
|
|
246
|
+
*/
|
|
147
247
|
_id?: string;
|
|
248
|
+
/**
|
|
249
|
+
* - Unique identifier used to identify a bundle.
|
|
250
|
+
*/
|
|
148
251
|
bundle_identifier?: string;
|
|
252
|
+
/**
|
|
253
|
+
* - A string of codes containing comprehensive
|
|
254
|
+
* data that identifies a identity of requester.
|
|
255
|
+
*/
|
|
149
256
|
push_token?: string;
|
|
257
|
+
/**
|
|
258
|
+
* - Unique identifier used to identify a device.
|
|
259
|
+
*/
|
|
150
260
|
unique_device_id?: string;
|
|
261
|
+
/**
|
|
262
|
+
* - Source address of the requester.
|
|
263
|
+
*/
|
|
151
264
|
type?: string;
|
|
265
|
+
/**
|
|
266
|
+
* - Source address of the requester.
|
|
267
|
+
*/
|
|
152
268
|
platform?: string;
|
|
269
|
+
/**
|
|
270
|
+
* - The ID of the sales channel associated
|
|
271
|
+
* with the push token.
|
|
272
|
+
*/
|
|
153
273
|
application_id?: string;
|
|
274
|
+
/**
|
|
275
|
+
* - Identifier which can uniquely identify the user.
|
|
276
|
+
*/
|
|
154
277
|
user_id?: string;
|
|
278
|
+
/**
|
|
279
|
+
* - The timestamp indicating when a record was
|
|
280
|
+
* initially created.
|
|
281
|
+
*/
|
|
155
282
|
created_at?: string;
|
|
283
|
+
/**
|
|
284
|
+
* - The timestamp indicating when a record was
|
|
285
|
+
* last modified or updated.
|
|
286
|
+
*/
|
|
156
287
|
updated_at?: string;
|
|
288
|
+
/**
|
|
289
|
+
* - The timestamp indicating when a record is
|
|
290
|
+
* set to expire or become invalid.
|
|
291
|
+
*/
|
|
157
292
|
expired_at?: string;
|
|
158
293
|
};
|