@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.
Files changed (189) hide show
  1. package/README.md +26 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationClient.d.ts +8 -0
  4. package/sdk/application/ApplicationClient.js +14 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
  6. package/sdk/application/Cart/CartApplicationClient.js +20 -20
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
  8. package/sdk/application/Cart/CartApplicationModel.js +783 -552
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
  10. package/sdk/application/Cart/CartApplicationValidator.js +100 -114
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
  15. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
  16. package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
  17. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  18. package/sdk/application/Common/CommonApplicationClient.js +2 -2
  19. package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
  20. package/sdk/application/Common/CommonApplicationModel.js +59 -58
  21. package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
  22. package/sdk/application/Common/CommonApplicationValidator.js +3 -3
  23. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
  24. package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
  25. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
  26. package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
  27. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
  28. package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
  29. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
  30. package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
  31. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
  32. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
  33. package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
  34. package/sdk/application/Content/ContentApplicationClient.js +16 -16
  35. package/sdk/application/Content/ContentApplicationModel.d.ts +1205 -282
  36. package/sdk/application/Content/ContentApplicationModel.js +341 -277
  37. package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
  38. package/sdk/application/Content/ContentApplicationValidator.js +11 -10
  39. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
  40. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  41. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
  42. package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
  46. package/sdk/application/Lead/LeadApplicationModel.js +110 -67
  47. package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
  48. package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
  49. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
  50. package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
  51. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
  52. package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
  53. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
  54. package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
  55. package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
  56. package/sdk/application/Order/OrderApplicationClient.js +10 -10
  57. package/sdk/application/Order/OrderApplicationModel.d.ts +1400 -325
  58. package/sdk/application/Order/OrderApplicationModel.js +391 -317
  59. package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
  60. package/sdk/application/Order/OrderApplicationValidator.js +15 -14
  61. package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
  62. package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
  63. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
  64. package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
  65. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
  66. package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
  69. package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
  70. package/sdk/application/Share/ShareApplicationModel.js +53 -37
  71. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
  72. package/sdk/application/Share/ShareApplicationValidator.js +2 -1
  73. package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
  74. package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
  75. package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
  76. package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
  77. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
  78. package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
  79. package/sdk/application/User/UserApplicationClient.d.ts +36 -36
  80. package/sdk/application/User/UserApplicationClient.js +36 -36
  81. package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
  82. package/sdk/application/User/UserApplicationModel.js +298 -244
  83. package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
  84. package/sdk/application/User/UserApplicationValidator.js +40 -40
  85. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
  86. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
  87. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
  88. package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
  89. package/sdk/common/Clickstream.js +95 -15
  90. package/sdk/common/Constant.d.ts +9 -0
  91. package/sdk/common/Constant.js +11 -0
  92. package/sdk/common/Utility.js +19 -0
  93. package/sdk/common/utils.js +8 -1
  94. package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
  95. package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
  96. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +28 -7
  97. package/sdk/partner/Logistics/LogisticsPartnerModel.js +7 -7
  98. package/sdk/partner/PartnerClient.d.ts +8 -0
  99. package/sdk/partner/PartnerClient.js +14 -0
  100. package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
  101. package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
  102. package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
  103. package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
  104. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
  105. package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
  106. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
  107. package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
  108. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
  109. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
  110. package/sdk/platform/Billing/BillingPlatformClient.d.ts +21 -10
  111. package/sdk/platform/Billing/BillingPlatformClient.js +167 -83
  112. package/sdk/platform/Billing/BillingPlatformModel.d.ts +2849 -565
  113. package/sdk/platform/Billing/BillingPlatformModel.js +935 -556
  114. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +30 -14
  115. package/sdk/platform/Billing/BillingPlatformValidator.js +31 -16
  116. package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
  117. package/sdk/platform/Cart/CartPlatformModel.js +8 -8
  118. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
  119. package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
  120. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
  121. package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
  122. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
  123. package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
  124. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
  125. package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
  128. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
  129. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
  130. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
  131. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
  132. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
  133. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
  134. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
  135. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
  136. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
  137. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
  138. package/sdk/platform/Content/ContentPlatformModel.d.ts +58 -17
  139. package/sdk/platform/Content/ContentPlatformModel.js +28 -15
  140. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
  141. package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
  145. package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1583 -347
  147. package/sdk/platform/Finance/FinancePlatformModel.js +463 -351
  148. package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
  149. package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
  150. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
  151. package/sdk/platform/Order/OrderPlatformClient.js +165 -0
  152. package/sdk/platform/Order/OrderPlatformModel.d.ts +613 -39
  153. package/sdk/platform/Order/OrderPlatformModel.js +359 -41
  154. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
  155. package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
  156. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
  157. package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
  158. package/sdk/platform/PlatformClient.d.ts +8 -0
  159. package/sdk/platform/PlatformClient.js +14 -0
  160. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
  161. package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
  162. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
  163. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
  164. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +120 -22
  165. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +76 -21
  166. package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
  167. package/sdk/platform/Share/SharePlatformModel.js +7 -7
  168. package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
  169. package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
  170. package/sdk/platform/User/UserPlatformModel.d.ts +18 -18
  171. package/sdk/platform/User/UserPlatformModel.js +9 -9
  172. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +28 -7
  173. package/sdk/platform/Webhook/WebhookPlatformModel.js +7 -7
  174. package/sdk/public/Billing/BillingPublicClient.d.ts +11 -0
  175. package/sdk/public/Billing/BillingPublicClient.js +80 -0
  176. package/sdk/public/Billing/BillingPublicModel.d.ts +584 -99
  177. package/sdk/public/Billing/BillingPublicModel.js +252 -87
  178. package/sdk/public/Billing/BillingPublicValidator.d.ts +10 -1
  179. package/sdk/public/Billing/BillingPublicValidator.js +12 -0
  180. package/sdk/public/PublicClient.d.ts +0 -2
  181. package/sdk/public/PublicClient.js +0 -4
  182. package/sdk/public/index.d.ts +0 -1
  183. package/sdk/public/index.js +0 -2
  184. package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
  185. package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
  186. package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
  187. package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
  188. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
  189. 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] - Indicates domain is verified or not. TXT and
11
- * A records should propagate correctly.
12
- * @property {boolean} [is_primary] - Indicates domain is primary or not.
13
- * Primary domain is the default/main domain.
14
- * @property {boolean} [is_shortlink] - Shortlink is present or not for the domain
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] - Domain is hosting domain or not
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] - Shows whether sales channel website URL is
24
- * enabled or not
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] - Shows sales channel auth is enabled or not 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] - It contains detailed information about the
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] - An integer value that specifies the number
69
- * of seconds until the key expires
70
- * @property {boolean} [is_internal] - Indicates whether a sales channel is
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
- * @property {ApplicationMeta[]} [meta]
85
- * @property {string} [created_at] - ISO 8601 timestamp of sales channel creation
86
- * @property {string} [updated_at] - ISO 8601 timestamp of sales channel updation
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
- * @property {string} [phone_code]
130
- * @property {string} [type]
131
- * @property {number} [uid]
132
- * @property {number} [__v]
133
- * @property {string} [_id]
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
- * @property {string} [country_code]
138
- * @property {string} [latitude]
139
- * @property {string} [longitude]
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: Retrieve the consent provided by the user for receiving communication - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/communication/getCommunicationConsent/).
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 inserts the consent provided by the user for receiving communication messages - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/communication/upsertCommunicationConsent/).
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: Retrieve the consent provided by the user for receiving communication - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/communication/getCommunicationConsent/).
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 inserts the consent provided by the user for receiving communication messages - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/communication/upsertCommunicationConsent/).
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
- * @property {string} [action]
6
- * @property {string} [channel]
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
- * @property {string} [user_id]
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
- * @property {string} [display_name]
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
- * @property {string} [display_name]
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
- * @property {string} [display_name]
28
- * @property {string} [country_code]
29
- * @property {string} [phone_number]
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
- * @property {string} [user_id]
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] - Response status.
46
- * @property {string} [message] - Failure 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
- * @property {string} [bundle_identifier]
52
- * @property {string} [push_token]
53
- * @property {string} [unique_device_id]
54
- * @property {string} [type]
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
- * @property {string} [bundle_identifier]
60
- * @property {string} [push_token]
61
- * @property {string} [unique_device_id]
62
- * @property {string} [type]
63
- * @property {string} [platform]
64
- * @property {string} [application_id]
65
- * @property {string} [user_id]
66
- * @property {string} [created_at]
67
- * @property {string} [updated_at]
68
- * @property {string} [expired_at]
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
- * - Response status.
206
+ * - Error code indicating the type of issue.
128
207
  */
129
208
  status?: string;
130
209
  /**
131
- * - Failure message.
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
  };