@gofynd/fdk-client-javascript 1.4.1 → 1.4.2-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +3 -2
- package/sdk/application/ApplicationClient.js +20 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +3 -5
- package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
- package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
- package/sdk/application/Cart/CartApplicationValidator.js +0 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
- package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
- package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
- package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
- package/sdk/application/Content/ContentApplicationClient.js +0 -246
- package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
- package/sdk/application/Content/ContentApplicationModel.js +565 -817
- package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
- package/sdk/application/Content/ContentApplicationValidator.js +0 -41
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
- package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
- package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +8 -32
- package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
- package/sdk/application/Order/OrderApplicationModel.js +816 -824
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
- package/sdk/application/Order/OrderApplicationValidator.js +0 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
- package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
- package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
- package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
- package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
- package/sdk/application/User/UserApplicationClient.d.ts +0 -33
- package/sdk/application/User/UserApplicationClient.js +0 -239
- package/sdk/application/User/UserApplicationModel.d.ts +753 -768
- package/sdk/application/User/UserApplicationModel.js +731 -755
- package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
- package/sdk/application/User/UserApplicationValidator.js +0 -36
- package/sdk/common/Clickstream.d.ts +1 -0
- package/sdk/common/Clickstream.js +254 -0
- package/sdk/common/Utility.js +1 -4
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
- package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
- package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
- package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
- package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
- package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
- package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
- package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
- package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
- package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
- package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
- package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
- package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
- package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
- package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
- package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
- package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +2 -4
- package/sdk/platform/PlatformClient.js +4 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +990 -1589
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +986 -1702
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
- package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
- package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
- package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
- package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
- package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
- package/sdk/platform/User/UserPlatformModel.js +428 -679
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
- package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
- package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
- package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
- package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
- package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
- package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
- package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
- package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
- package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
- package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
- package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
- package/sdk/public/Billing/BillingPublicClient.js +0 -116
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
- package/sdk/public/Billing/BillingPublicModel.js +0 -96
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
- package/sdk/public/Billing/BillingPublicValidator.js +0 -19
- package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
- package/sdk/public/Content/ContentPublicClient.js +0 -114
- package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
- package/sdk/public/Content/ContentPublicModel.js +0 -60
- package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
- package/sdk/public/Content/ContentPublicValidator.js +0 -19
|
@@ -148,6 +148,8 @@ export = CatalogApplicationValidator;
|
|
|
148
148
|
* /service/application/catalog/v1.0/products/sizes
|
|
149
149
|
* @property {number} [storeId] - The ID of the store that is selling the
|
|
150
150
|
* product, e.g. 1,2,3.
|
|
151
|
+
* @property {string} [pincode] - The PIN Code of the area near which the
|
|
152
|
+
* selling locations should be searched, e.g. 400059.
|
|
151
153
|
* @property {number} [moq] - An Integer indication the Minimum Order Quantity
|
|
152
154
|
* of a product, e.g. 100.
|
|
153
155
|
*/
|
|
@@ -159,6 +161,8 @@ export = CatalogApplicationValidator;
|
|
|
159
161
|
* @property {string} size - A string indicating the size of the product, e.g.
|
|
160
162
|
* S, M, XL. You can get slug value from the endpoint
|
|
161
163
|
* /service/application/catalog/v1.0/products/sizes
|
|
164
|
+
* @property {string} [pincode] - The 6-digit PIN Code of the area near which
|
|
165
|
+
* the selling locations should be searched, e.g. 400059
|
|
162
166
|
* @property {string} [strategy] - Sort stores on the basis of strategy. eg,
|
|
163
167
|
* fast-delivery, low-price, optimal.
|
|
164
168
|
* @property {number} [pageNo] - The page number to navigate through the given
|
|
@@ -585,6 +589,11 @@ type GetProductPriceBySlugParam = {
|
|
|
585
589
|
* product, e.g. 1,2,3.
|
|
586
590
|
*/
|
|
587
591
|
storeId?: number;
|
|
592
|
+
/**
|
|
593
|
+
* - The PIN Code of the area near which the
|
|
594
|
+
* selling locations should be searched, e.g. 400059.
|
|
595
|
+
*/
|
|
596
|
+
pincode?: string;
|
|
588
597
|
/**
|
|
589
598
|
* - An Integer indication the Minimum Order Quantity
|
|
590
599
|
* of a product, e.g. 100.
|
|
@@ -604,6 +613,11 @@ type GetProductSellersBySlugParam = {
|
|
|
604
613
|
* /service/application/catalog/v1.0/products/sizes
|
|
605
614
|
*/
|
|
606
615
|
size: string;
|
|
616
|
+
/**
|
|
617
|
+
* - The 6-digit PIN Code of the area near which
|
|
618
|
+
* the selling locations should be searched, e.g. 400059
|
|
619
|
+
*/
|
|
620
|
+
pincode?: string;
|
|
607
621
|
/**
|
|
608
622
|
* - Sort stores on the basis of strategy. eg,
|
|
609
623
|
* fast-delivery, low-price, optimal.
|
|
@@ -170,6 +170,8 @@ const CatalogApplicationModel = require("./CatalogApplicationModel");
|
|
|
170
170
|
* /service/application/catalog/v1.0/products/sizes
|
|
171
171
|
* @property {number} [storeId] - The ID of the store that is selling the
|
|
172
172
|
* product, e.g. 1,2,3.
|
|
173
|
+
* @property {string} [pincode] - The PIN Code of the area near which the
|
|
174
|
+
* selling locations should be searched, e.g. 400059.
|
|
173
175
|
* @property {number} [moq] - An Integer indication the Minimum Order Quantity
|
|
174
176
|
* of a product, e.g. 100.
|
|
175
177
|
*/
|
|
@@ -182,6 +184,8 @@ const CatalogApplicationModel = require("./CatalogApplicationModel");
|
|
|
182
184
|
* @property {string} size - A string indicating the size of the product, e.g.
|
|
183
185
|
* S, M, XL. You can get slug value from the endpoint
|
|
184
186
|
* /service/application/catalog/v1.0/products/sizes
|
|
187
|
+
* @property {string} [pincode] - The 6-digit PIN Code of the area near which
|
|
188
|
+
* the selling locations should be searched, e.g. 400059
|
|
185
189
|
* @property {string} [strategy] - Sort stores on the basis of strategy. eg,
|
|
186
190
|
* fast-delivery, low-price, optimal.
|
|
187
191
|
* @property {number} [pageNo] - The page number to navigate through the given
|
|
@@ -447,6 +451,7 @@ class CatalogApplicationValidator {
|
|
|
447
451
|
slug: Joi.string().allow("").required(),
|
|
448
452
|
size: Joi.string().allow("").required(),
|
|
449
453
|
storeId: Joi.number(),
|
|
454
|
+
pincode: Joi.string().allow(""),
|
|
450
455
|
moq: Joi.number(),
|
|
451
456
|
}).required();
|
|
452
457
|
}
|
|
@@ -456,6 +461,7 @@ class CatalogApplicationValidator {
|
|
|
456
461
|
return Joi.object({
|
|
457
462
|
slug: Joi.string().allow("").required(),
|
|
458
463
|
size: Joi.string().allow("").required(),
|
|
464
|
+
pincode: Joi.string().allow(""),
|
|
459
465
|
strategy: Joi.string().allow(""),
|
|
460
466
|
pageNo: Joi.number(),
|
|
461
467
|
pageSize: Joi.number(),
|
|
@@ -1,54 +1,33 @@
|
|
|
1
1
|
export = CommonApplicationModel;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
4
|
-
* @property {
|
|
3
|
+
* @typedef ApplicationResponse
|
|
4
|
+
* @property {Application} [application]
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @typedef Domain
|
|
8
|
+
* @property {boolean} [verified] - Indicates domain is verified or not. TXT and
|
|
9
|
+
* A records should propagate correctly.
|
|
10
|
+
* @property {boolean} [is_primary] - Indicates domain is primary or not.
|
|
11
|
+
* Primary domain is the default/main domain.
|
|
12
|
+
* @property {boolean} [is_shortlink] - Shortlink is present or not for the domain
|
|
5
13
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
6
|
-
* of the
|
|
7
|
-
* @property {string} [
|
|
8
|
-
*
|
|
9
|
-
* @property {ApplicationAuth} [auth]
|
|
10
|
-
* @property {SecureUrl} [banner]
|
|
11
|
-
* @property {number} [cache_ttl] - An integer value that specifies the number
|
|
12
|
-
* of seconds until the key expires
|
|
13
|
-
* @property {string} [channel_type] - It indicates different channel types like
|
|
14
|
-
* store, website-and-mobile-apps. Default value is store.
|
|
15
|
-
* @property {number} [company_id] - Numeric ID allotted to a business account
|
|
16
|
-
* where the sales channel exists
|
|
17
|
-
* @property {ApplicationCors} [cors]
|
|
18
|
-
* @property {string} [created_at] - ISO 8601 timestamp of sales channel creation
|
|
19
|
-
* @property {string} [description] - It contains detailed information about the
|
|
20
|
-
* sales channel
|
|
21
|
-
* @property {Domain} [domain]
|
|
22
|
-
* @property {Domain[]} [domains]
|
|
23
|
-
* @property {SecureUrl} [favicon]
|
|
24
|
-
* @property {boolean} [is_active] - Indicates whether a sales channel is active
|
|
25
|
-
* or not active
|
|
26
|
-
* @property {boolean} [is_internal] - Indicates whether a sales channel is
|
|
27
|
-
* internal or not
|
|
28
|
-
* @property {SecureUrl} [logo]
|
|
29
|
-
* @property {ApplicationMeta[]} [meta]
|
|
30
|
-
* @property {SecureUrl} [mobile_logo]
|
|
31
|
-
* @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion
|
|
32
|
-
* @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
|
|
33
|
-
* of owner who owns the application
|
|
34
|
-
* @property {ApplicationRedirections[]} [redirections]
|
|
35
|
-
* @property {string} [token] - Randomly generated fixed-length string for sales
|
|
36
|
-
* channel. It is required and auto-generated.
|
|
37
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of sales channel updation
|
|
38
|
-
* @property {ApplicationWebsite} [website]
|
|
14
|
+
* of the domain
|
|
15
|
+
* @property {string} [name]
|
|
16
|
+
* @property {boolean} [is_predefined] - Domain is hosting domain or not
|
|
39
17
|
*/
|
|
40
18
|
/**
|
|
41
|
-
* @typedef
|
|
42
|
-
* @property {boolean} [enabled] - Shows sales channel
|
|
19
|
+
* @typedef ApplicationWebsite
|
|
20
|
+
* @property {boolean} [enabled] - Shows whether sales channel website URL is
|
|
21
|
+
* enabled or not
|
|
22
|
+
* @property {string} [basepath] - Base path for the current sales channel website
|
|
43
23
|
*/
|
|
44
24
|
/**
|
|
45
25
|
* @typedef ApplicationCors
|
|
46
26
|
* @property {string[]} [domains]
|
|
47
27
|
*/
|
|
48
28
|
/**
|
|
49
|
-
* @typedef
|
|
50
|
-
* @property {
|
|
51
|
-
* @property {string} [value] - Value related to application meta name
|
|
29
|
+
* @typedef ApplicationAuth
|
|
30
|
+
* @property {boolean} [enabled] - Shows sales channel auth is enabled or not enabled.
|
|
52
31
|
*/
|
|
53
32
|
/**
|
|
54
33
|
* @typedef ApplicationRedirections
|
|
@@ -60,184 +39,158 @@ export = CommonApplicationModel;
|
|
|
60
39
|
* for a short time period.
|
|
61
40
|
*/
|
|
62
41
|
/**
|
|
63
|
-
* @typedef
|
|
64
|
-
* @property {
|
|
42
|
+
* @typedef ApplicationMeta
|
|
43
|
+
* @property {string} [name] - Indicates the name of application meta
|
|
44
|
+
* @property {string} [value] - Value related to application meta name
|
|
65
45
|
*/
|
|
66
46
|
/**
|
|
67
|
-
* @typedef
|
|
68
|
-
* @property {string} [
|
|
69
|
-
|
|
70
|
-
|
|
47
|
+
* @typedef SecureUrl
|
|
48
|
+
* @property {string} [secure_url] - Hosted URL of the image
|
|
49
|
+
*/
|
|
50
|
+
/**
|
|
51
|
+
* @typedef Application
|
|
52
|
+
* @property {ApplicationWebsite} [website]
|
|
53
|
+
* @property {ApplicationCors} [cors]
|
|
54
|
+
* @property {ApplicationAuth} [auth]
|
|
55
|
+
* @property {string} [description] - It contains detailed information about the
|
|
56
|
+
* sales channel
|
|
57
|
+
* @property {string} [channel_type] - It indicates different channel types like
|
|
58
|
+
* store, website-and-mobile-apps. Default value is store.
|
|
59
|
+
* @property {number} [cache_ttl] - An integer value that specifies the number
|
|
60
|
+
* of seconds until the key expires
|
|
61
|
+
* @property {boolean} [is_internal] - Indicates whether a sales channel is
|
|
62
|
+
* internal or not
|
|
63
|
+
* @property {boolean} [is_active] - Indicates whether a sales channel is active
|
|
64
|
+
* or not active
|
|
65
|
+
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
66
|
+
* of the sales channel
|
|
67
|
+
* @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion
|
|
68
|
+
* @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
|
|
69
|
+
* of owner who owns the application
|
|
70
|
+
* @property {number} [company_id] - Numeric ID allotted to a business account
|
|
71
|
+
* where the sales channel exists
|
|
72
|
+
* @property {string} [token] - Randomly generated fixed-length string for sales
|
|
73
|
+
* channel. It is required and auto-generated.
|
|
74
|
+
* @property {ApplicationRedirections[]} [redirections]
|
|
75
|
+
* @property {ApplicationMeta[]} [meta]
|
|
76
|
+
* @property {string} [created_at] - ISO 8601 timestamp of sales channel creation
|
|
77
|
+
* @property {string} [updated_at] - ISO 8601 timestamp of sales channel updation
|
|
78
|
+
* @property {number} [__v] - Version key for tracking revisions. Default value is zero.
|
|
79
|
+
* @property {SecureUrl} [banner]
|
|
80
|
+
* @property {SecureUrl} [logo]
|
|
81
|
+
* @property {SecureUrl} [favicon]
|
|
82
|
+
* @property {Domain[]} [domains]
|
|
83
|
+
* @property {string} [app_type] - It shows whether application is live or in
|
|
84
|
+
* development mode
|
|
85
|
+
* @property {SecureUrl} [mobile_logo]
|
|
86
|
+
* @property {Domain} [domain]
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
* @typedef NotFound
|
|
90
|
+
* @property {string} [message] - Response message for not found
|
|
71
91
|
*/
|
|
72
92
|
/**
|
|
73
93
|
* @typedef BadRequest
|
|
74
94
|
* @property {string} [message] - Failure message (in a string format)
|
|
75
95
|
*/
|
|
76
96
|
/**
|
|
77
|
-
* @typedef
|
|
78
|
-
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
79
|
-
* of the domain
|
|
80
|
-
* @property {boolean} [is_predefined] - Domain is hosting domain or not
|
|
81
|
-
* @property {boolean} [is_primary] - Indicates domain is primary or not.
|
|
82
|
-
* Primary domain is the default/main domain.
|
|
83
|
-
* @property {boolean} [is_shortlink] - Shortlink is present or not for the domain
|
|
97
|
+
* @typedef LocationDefaultLanguage
|
|
84
98
|
* @property {string} [name]
|
|
85
|
-
* @property {
|
|
86
|
-
|
|
99
|
+
* @property {string} [code]
|
|
100
|
+
*/
|
|
101
|
+
/**
|
|
102
|
+
* @typedef LocationDefaultCurrency
|
|
103
|
+
* @property {string} [name]
|
|
104
|
+
* @property {string} [symbol]
|
|
105
|
+
* @property {string} [code]
|
|
87
106
|
*/
|
|
88
107
|
/**
|
|
89
108
|
* @typedef LocationCountry
|
|
90
|
-
* @property {number} [__v]
|
|
91
|
-
* @property {string} [_id]
|
|
92
109
|
* @property {string} [capital]
|
|
93
|
-
* @property {string} [country_code]
|
|
94
110
|
* @property {string} [currency]
|
|
95
|
-
* @property {LocationDefaultCurrency} [default_currency]
|
|
96
|
-
* @property {LocationDefaultLanguage} [default_language]
|
|
97
111
|
* @property {string} [iso2]
|
|
98
112
|
* @property {string} [iso3]
|
|
99
|
-
* @property {string} [latitude]
|
|
100
|
-
* @property {string} [longitude]
|
|
101
113
|
* @property {string} [name]
|
|
102
114
|
* @property {string} [parent]
|
|
103
115
|
* @property {string} [phone_code]
|
|
104
|
-
* @property {string} [state_code]
|
|
105
116
|
* @property {string} [type]
|
|
106
117
|
* @property {number} [uid]
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
* @
|
|
110
|
-
* @property {
|
|
111
|
-
* @property {string} [
|
|
112
|
-
* @property {string} [
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
* @typedef LocationDefaultLanguage
|
|
116
|
-
* @property {string} [code]
|
|
117
|
-
* @property {string} [name]
|
|
118
|
+
* @property {number} [__v]
|
|
119
|
+
* @property {string} [_id]
|
|
120
|
+
* @property {LocationDefaultCurrency} [default_currency]
|
|
121
|
+
* @property {LocationDefaultLanguage} [default_language]
|
|
122
|
+
* @property {string} [state_code]
|
|
123
|
+
* @property {string} [country_code]
|
|
124
|
+
* @property {string} [latitude]
|
|
125
|
+
* @property {string} [longitude]
|
|
118
126
|
*/
|
|
119
127
|
/**
|
|
120
128
|
* @typedef Locations
|
|
121
129
|
* @property {LocationCountry[]} [items]
|
|
122
130
|
*/
|
|
123
|
-
/**
|
|
124
|
-
* @typedef NotFound
|
|
125
|
-
* @property {string} [message] - Response message for not found
|
|
126
|
-
*/
|
|
127
|
-
/**
|
|
128
|
-
* @typedef SecureUrl
|
|
129
|
-
* @property {string} [secure_url] - Hosted URL of the image
|
|
130
|
-
*/
|
|
131
131
|
declare class CommonApplicationModel {
|
|
132
132
|
}
|
|
133
133
|
declare namespace CommonApplicationModel {
|
|
134
|
-
export {
|
|
134
|
+
export { ApplicationResponse, Domain, ApplicationWebsite, ApplicationCors, ApplicationAuth, ApplicationRedirections, ApplicationMeta, SecureUrl, Application, NotFound, BadRequest, LocationDefaultLanguage, LocationDefaultCurrency, LocationCountry, Locations };
|
|
135
135
|
}
|
|
136
|
-
/** @returns {
|
|
137
|
-
declare function
|
|
138
|
-
type
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
* - The unique identifier (24-digit Mongo Object ID)
|
|
145
|
-
* of the sales channel
|
|
146
|
-
*/
|
|
147
|
-
_id?: string;
|
|
148
|
-
/**
|
|
149
|
-
* - It shows whether application is live or in
|
|
150
|
-
* development mode
|
|
151
|
-
*/
|
|
152
|
-
app_type?: string;
|
|
153
|
-
auth?: ApplicationAuth;
|
|
154
|
-
banner?: SecureUrl;
|
|
155
|
-
/**
|
|
156
|
-
* - An integer value that specifies the number
|
|
157
|
-
* of seconds until the key expires
|
|
158
|
-
*/
|
|
159
|
-
cache_ttl?: number;
|
|
160
|
-
/**
|
|
161
|
-
* - It indicates different channel types like
|
|
162
|
-
* store, website-and-mobile-apps. Default value is store.
|
|
163
|
-
*/
|
|
164
|
-
channel_type?: string;
|
|
165
|
-
/**
|
|
166
|
-
* - Numeric ID allotted to a business account
|
|
167
|
-
* where the sales channel exists
|
|
168
|
-
*/
|
|
169
|
-
company_id?: number;
|
|
170
|
-
cors?: ApplicationCors;
|
|
171
|
-
/**
|
|
172
|
-
* - ISO 8601 timestamp of sales channel creation
|
|
173
|
-
*/
|
|
174
|
-
created_at?: string;
|
|
175
|
-
/**
|
|
176
|
-
* - It contains detailed information about the
|
|
177
|
-
* sales channel
|
|
178
|
-
*/
|
|
179
|
-
description?: string;
|
|
180
|
-
domain?: Domain;
|
|
181
|
-
domains?: Domain[];
|
|
182
|
-
favicon?: SecureUrl;
|
|
136
|
+
/** @returns {ApplicationResponse} */
|
|
137
|
+
declare function ApplicationResponse(): ApplicationResponse;
|
|
138
|
+
type ApplicationResponse = {
|
|
139
|
+
application?: Application;
|
|
140
|
+
};
|
|
141
|
+
/** @returns {Domain} */
|
|
142
|
+
declare function Domain(): Domain;
|
|
143
|
+
type Domain = {
|
|
183
144
|
/**
|
|
184
|
-
* - Indicates
|
|
185
|
-
*
|
|
145
|
+
* - Indicates domain is verified or not. TXT and
|
|
146
|
+
* A records should propagate correctly.
|
|
186
147
|
*/
|
|
187
|
-
|
|
148
|
+
verified?: boolean;
|
|
188
149
|
/**
|
|
189
|
-
* - Indicates
|
|
190
|
-
*
|
|
150
|
+
* - Indicates domain is primary or not.
|
|
151
|
+
* Primary domain is the default/main domain.
|
|
191
152
|
*/
|
|
192
|
-
|
|
193
|
-
logo?: SecureUrl;
|
|
194
|
-
meta?: ApplicationMeta[];
|
|
195
|
-
mobile_logo?: SecureUrl;
|
|
153
|
+
is_primary?: boolean;
|
|
196
154
|
/**
|
|
197
|
-
* -
|
|
155
|
+
* - Shortlink is present or not for the domain
|
|
198
156
|
*/
|
|
199
|
-
|
|
157
|
+
is_shortlink?: boolean;
|
|
200
158
|
/**
|
|
201
159
|
* - The unique identifier (24-digit Mongo Object ID)
|
|
202
|
-
* of
|
|
203
|
-
*/
|
|
204
|
-
owner?: string;
|
|
205
|
-
redirections?: ApplicationRedirections[];
|
|
206
|
-
/**
|
|
207
|
-
* - Randomly generated fixed-length string for sales
|
|
208
|
-
* channel. It is required and auto-generated.
|
|
160
|
+
* of the domain
|
|
209
161
|
*/
|
|
210
|
-
|
|
162
|
+
_id?: string;
|
|
163
|
+
name?: string;
|
|
211
164
|
/**
|
|
212
|
-
* -
|
|
165
|
+
* - Domain is hosting domain or not
|
|
213
166
|
*/
|
|
214
|
-
|
|
215
|
-
website?: ApplicationWebsite;
|
|
167
|
+
is_predefined?: boolean;
|
|
216
168
|
};
|
|
217
|
-
/** @returns {
|
|
218
|
-
declare function
|
|
219
|
-
type
|
|
169
|
+
/** @returns {ApplicationWebsite} */
|
|
170
|
+
declare function ApplicationWebsite(): ApplicationWebsite;
|
|
171
|
+
type ApplicationWebsite = {
|
|
220
172
|
/**
|
|
221
|
-
* - Shows sales channel
|
|
173
|
+
* - Shows whether sales channel website URL is
|
|
174
|
+
* enabled or not
|
|
222
175
|
*/
|
|
223
176
|
enabled?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* - Base path for the current sales channel website
|
|
179
|
+
*/
|
|
180
|
+
basepath?: string;
|
|
224
181
|
};
|
|
225
182
|
/** @returns {ApplicationCors} */
|
|
226
183
|
declare function ApplicationCors(): ApplicationCors;
|
|
227
184
|
type ApplicationCors = {
|
|
228
185
|
domains?: string[];
|
|
229
186
|
};
|
|
230
|
-
/** @returns {
|
|
231
|
-
declare function
|
|
232
|
-
type
|
|
233
|
-
/**
|
|
234
|
-
* - Indicates the name of application meta
|
|
235
|
-
*/
|
|
236
|
-
name?: string;
|
|
187
|
+
/** @returns {ApplicationAuth} */
|
|
188
|
+
declare function ApplicationAuth(): ApplicationAuth;
|
|
189
|
+
type ApplicationAuth = {
|
|
237
190
|
/**
|
|
238
|
-
* -
|
|
191
|
+
* - Shows sales channel auth is enabled or not enabled.
|
|
239
192
|
*/
|
|
240
|
-
|
|
193
|
+
enabled?: boolean;
|
|
241
194
|
};
|
|
242
195
|
/** @returns {ApplicationRedirections} */
|
|
243
196
|
declare function ApplicationRedirections(): ApplicationRedirections;
|
|
@@ -258,112 +211,159 @@ type ApplicationRedirections = {
|
|
|
258
211
|
*/
|
|
259
212
|
type?: string;
|
|
260
213
|
};
|
|
261
|
-
/** @returns {
|
|
262
|
-
declare function
|
|
263
|
-
type
|
|
264
|
-
application?: Application;
|
|
265
|
-
};
|
|
266
|
-
/** @returns {ApplicationWebsite} */
|
|
267
|
-
declare function ApplicationWebsite(): ApplicationWebsite;
|
|
268
|
-
type ApplicationWebsite = {
|
|
214
|
+
/** @returns {ApplicationMeta} */
|
|
215
|
+
declare function ApplicationMeta(): ApplicationMeta;
|
|
216
|
+
type ApplicationMeta = {
|
|
269
217
|
/**
|
|
270
|
-
* -
|
|
218
|
+
* - Indicates the name of application meta
|
|
271
219
|
*/
|
|
272
|
-
|
|
220
|
+
name?: string;
|
|
273
221
|
/**
|
|
274
|
-
* -
|
|
275
|
-
* enabled or not
|
|
222
|
+
* - Value related to application meta name
|
|
276
223
|
*/
|
|
277
|
-
|
|
224
|
+
value?: string;
|
|
278
225
|
};
|
|
279
|
-
/** @returns {
|
|
280
|
-
declare function
|
|
281
|
-
type
|
|
226
|
+
/** @returns {SecureUrl} */
|
|
227
|
+
declare function SecureUrl(): SecureUrl;
|
|
228
|
+
type SecureUrl = {
|
|
282
229
|
/**
|
|
283
|
-
* -
|
|
230
|
+
* - Hosted URL of the image
|
|
284
231
|
*/
|
|
285
|
-
|
|
232
|
+
secure_url?: string;
|
|
286
233
|
};
|
|
287
|
-
/** @returns {
|
|
288
|
-
declare function
|
|
289
|
-
type
|
|
234
|
+
/** @returns {Application} */
|
|
235
|
+
declare function Application(): Application;
|
|
236
|
+
type Application = {
|
|
237
|
+
website?: ApplicationWebsite;
|
|
238
|
+
cors?: ApplicationCors;
|
|
239
|
+
auth?: ApplicationAuth;
|
|
240
|
+
/**
|
|
241
|
+
* - It contains detailed information about the
|
|
242
|
+
* sales channel
|
|
243
|
+
*/
|
|
244
|
+
description?: string;
|
|
245
|
+
/**
|
|
246
|
+
* - It indicates different channel types like
|
|
247
|
+
* store, website-and-mobile-apps. Default value is store.
|
|
248
|
+
*/
|
|
249
|
+
channel_type?: string;
|
|
250
|
+
/**
|
|
251
|
+
* - An integer value that specifies the number
|
|
252
|
+
* of seconds until the key expires
|
|
253
|
+
*/
|
|
254
|
+
cache_ttl?: number;
|
|
255
|
+
/**
|
|
256
|
+
* - Indicates whether a sales channel is
|
|
257
|
+
* internal or not
|
|
258
|
+
*/
|
|
259
|
+
is_internal?: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* - Indicates whether a sales channel is active
|
|
262
|
+
* or not active
|
|
263
|
+
*/
|
|
264
|
+
is_active?: boolean;
|
|
290
265
|
/**
|
|
291
266
|
* - The unique identifier (24-digit Mongo Object ID)
|
|
292
|
-
* of the
|
|
267
|
+
* of the sales channel
|
|
293
268
|
*/
|
|
294
269
|
_id?: string;
|
|
295
270
|
/**
|
|
296
|
-
* -
|
|
271
|
+
* - Name of the sales channel, e.g. Zenz Fashion
|
|
297
272
|
*/
|
|
298
|
-
|
|
273
|
+
name?: string;
|
|
299
274
|
/**
|
|
300
|
-
* -
|
|
301
|
-
*
|
|
275
|
+
* - The unique identifier (24-digit Mongo Object ID)
|
|
276
|
+
* of owner who owns the application
|
|
302
277
|
*/
|
|
303
|
-
|
|
278
|
+
owner?: string;
|
|
304
279
|
/**
|
|
305
|
-
* -
|
|
280
|
+
* - Numeric ID allotted to a business account
|
|
281
|
+
* where the sales channel exists
|
|
306
282
|
*/
|
|
307
|
-
|
|
308
|
-
name?: string;
|
|
283
|
+
company_id?: number;
|
|
309
284
|
/**
|
|
310
|
-
* -
|
|
311
|
-
*
|
|
285
|
+
* - Randomly generated fixed-length string for sales
|
|
286
|
+
* channel. It is required and auto-generated.
|
|
312
287
|
*/
|
|
313
|
-
|
|
288
|
+
token?: string;
|
|
289
|
+
redirections?: ApplicationRedirections[];
|
|
290
|
+
meta?: ApplicationMeta[];
|
|
291
|
+
/**
|
|
292
|
+
* - ISO 8601 timestamp of sales channel creation
|
|
293
|
+
*/
|
|
294
|
+
created_at?: string;
|
|
295
|
+
/**
|
|
296
|
+
* - ISO 8601 timestamp of sales channel updation
|
|
297
|
+
*/
|
|
298
|
+
updated_at?: string;
|
|
299
|
+
/**
|
|
300
|
+
* - Version key for tracking revisions. Default value is zero.
|
|
301
|
+
*/
|
|
302
|
+
__v?: number;
|
|
303
|
+
banner?: SecureUrl;
|
|
304
|
+
logo?: SecureUrl;
|
|
305
|
+
favicon?: SecureUrl;
|
|
306
|
+
domains?: Domain[];
|
|
307
|
+
/**
|
|
308
|
+
* - It shows whether application is live or in
|
|
309
|
+
* development mode
|
|
310
|
+
*/
|
|
311
|
+
app_type?: string;
|
|
312
|
+
mobile_logo?: SecureUrl;
|
|
313
|
+
domain?: Domain;
|
|
314
|
+
};
|
|
315
|
+
/** @returns {NotFound} */
|
|
316
|
+
declare function NotFound(): NotFound;
|
|
317
|
+
type NotFound = {
|
|
318
|
+
/**
|
|
319
|
+
* - Response message for not found
|
|
320
|
+
*/
|
|
321
|
+
message?: string;
|
|
322
|
+
};
|
|
323
|
+
/** @returns {BadRequest} */
|
|
324
|
+
declare function BadRequest(): BadRequest;
|
|
325
|
+
type BadRequest = {
|
|
326
|
+
/**
|
|
327
|
+
* - Failure message (in a string format)
|
|
328
|
+
*/
|
|
329
|
+
message?: string;
|
|
330
|
+
};
|
|
331
|
+
/** @returns {LocationDefaultLanguage} */
|
|
332
|
+
declare function LocationDefaultLanguage(): LocationDefaultLanguage;
|
|
333
|
+
type LocationDefaultLanguage = {
|
|
334
|
+
name?: string;
|
|
335
|
+
code?: string;
|
|
336
|
+
};
|
|
337
|
+
/** @returns {LocationDefaultCurrency} */
|
|
338
|
+
declare function LocationDefaultCurrency(): LocationDefaultCurrency;
|
|
339
|
+
type LocationDefaultCurrency = {
|
|
340
|
+
name?: string;
|
|
341
|
+
symbol?: string;
|
|
342
|
+
code?: string;
|
|
314
343
|
};
|
|
315
344
|
/** @returns {LocationCountry} */
|
|
316
345
|
declare function LocationCountry(): LocationCountry;
|
|
317
346
|
type LocationCountry = {
|
|
318
|
-
__v?: number;
|
|
319
|
-
_id?: string;
|
|
320
347
|
capital?: string;
|
|
321
|
-
country_code?: string;
|
|
322
348
|
currency?: string;
|
|
323
|
-
default_currency?: LocationDefaultCurrency;
|
|
324
|
-
default_language?: LocationDefaultLanguage;
|
|
325
349
|
iso2?: string;
|
|
326
350
|
iso3?: string;
|
|
327
|
-
latitude?: string;
|
|
328
|
-
longitude?: string;
|
|
329
351
|
name?: string;
|
|
330
352
|
parent?: string;
|
|
331
353
|
phone_code?: string;
|
|
332
|
-
state_code?: string;
|
|
333
354
|
type?: string;
|
|
334
355
|
uid?: number;
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
/** @returns {LocationDefaultLanguage} */
|
|
344
|
-
declare function LocationDefaultLanguage(): LocationDefaultLanguage;
|
|
345
|
-
type LocationDefaultLanguage = {
|
|
346
|
-
code?: string;
|
|
347
|
-
name?: string;
|
|
356
|
+
__v?: number;
|
|
357
|
+
_id?: string;
|
|
358
|
+
default_currency?: LocationDefaultCurrency;
|
|
359
|
+
default_language?: LocationDefaultLanguage;
|
|
360
|
+
state_code?: string;
|
|
361
|
+
country_code?: string;
|
|
362
|
+
latitude?: string;
|
|
363
|
+
longitude?: string;
|
|
348
364
|
};
|
|
349
365
|
/** @returns {Locations} */
|
|
350
366
|
declare function Locations(): Locations;
|
|
351
367
|
type Locations = {
|
|
352
368
|
items?: LocationCountry[];
|
|
353
369
|
};
|
|
354
|
-
/** @returns {NotFound} */
|
|
355
|
-
declare function NotFound(): NotFound;
|
|
356
|
-
type NotFound = {
|
|
357
|
-
/**
|
|
358
|
-
* - Response message for not found
|
|
359
|
-
*/
|
|
360
|
-
message?: string;
|
|
361
|
-
};
|
|
362
|
-
/** @returns {SecureUrl} */
|
|
363
|
-
declare function SecureUrl(): SecureUrl;
|
|
364
|
-
type SecureUrl = {
|
|
365
|
-
/**
|
|
366
|
-
* - Hosted URL of the image
|
|
367
|
-
*/
|
|
368
|
-
secure_url?: string;
|
|
369
|
-
};
|