@gofynd/fdk-client-javascript 1.4.2-beta.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 +989 -1588
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +977 -1695
- 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
|
@@ -1,47 +1,28 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
5
|
-
* @property {
|
|
4
|
+
* @typedef ApplicationResponse
|
|
5
|
+
* @property {Application} [application]
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
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
|
|
6
15
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
7
|
-
* of the
|
|
8
|
-
* @property {string} [
|
|
9
|
-
*
|
|
10
|
-
* @property {ApplicationAuth} [auth]
|
|
11
|
-
* @property {SecureUrl} [banner]
|
|
12
|
-
* @property {number} [cache_ttl] - An integer value that specifies the number
|
|
13
|
-
* of seconds until the key expires
|
|
14
|
-
* @property {string} [channel_type] - It indicates different channel types like
|
|
15
|
-
* store, website-and-mobile-apps. Default value is store.
|
|
16
|
-
* @property {number} [company_id] - Numeric ID allotted to a business account
|
|
17
|
-
* where the sales channel exists
|
|
18
|
-
* @property {ApplicationCors} [cors]
|
|
19
|
-
* @property {string} [created_at] - ISO 8601 timestamp of sales channel creation
|
|
20
|
-
* @property {string} [description] - It contains detailed information about the
|
|
21
|
-
* sales channel
|
|
22
|
-
* @property {Domain} [domain]
|
|
23
|
-
* @property {Domain[]} [domains]
|
|
24
|
-
* @property {SecureUrl} [favicon]
|
|
25
|
-
* @property {boolean} [is_active] - Indicates whether a sales channel is active
|
|
26
|
-
* or not active
|
|
27
|
-
* @property {boolean} [is_internal] - Indicates whether a sales channel is
|
|
28
|
-
* internal or not
|
|
29
|
-
* @property {SecureUrl} [logo]
|
|
30
|
-
* @property {ApplicationMeta[]} [meta]
|
|
31
|
-
* @property {SecureUrl} [mobile_logo]
|
|
32
|
-
* @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion
|
|
33
|
-
* @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
|
|
34
|
-
* of owner who owns the application
|
|
35
|
-
* @property {ApplicationRedirections[]} [redirections]
|
|
36
|
-
* @property {string} [token] - Randomly generated fixed-length string for sales
|
|
37
|
-
* channel. It is required and auto-generated.
|
|
38
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of sales channel updation
|
|
39
|
-
* @property {ApplicationWebsite} [website]
|
|
16
|
+
* of the domain
|
|
17
|
+
* @property {string} [name]
|
|
18
|
+
* @property {boolean} [is_predefined] - Domain is hosting domain or not
|
|
40
19
|
*/
|
|
41
20
|
|
|
42
21
|
/**
|
|
43
|
-
* @typedef
|
|
44
|
-
* @property {boolean} [enabled] - Shows sales channel
|
|
22
|
+
* @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
|
|
45
26
|
*/
|
|
46
27
|
|
|
47
28
|
/**
|
|
@@ -50,9 +31,8 @@ const Joi = require("joi");
|
|
|
50
31
|
*/
|
|
51
32
|
|
|
52
33
|
/**
|
|
53
|
-
* @typedef
|
|
54
|
-
* @property {
|
|
55
|
-
* @property {string} [value] - Value related to application meta name
|
|
34
|
+
* @typedef ApplicationAuth
|
|
35
|
+
* @property {boolean} [enabled] - Shows sales channel auth is enabled or not enabled.
|
|
56
36
|
*/
|
|
57
37
|
|
|
58
38
|
/**
|
|
@@ -66,15 +46,58 @@ const Joi = require("joi");
|
|
|
66
46
|
*/
|
|
67
47
|
|
|
68
48
|
/**
|
|
69
|
-
* @typedef
|
|
70
|
-
* @property {
|
|
49
|
+
* @typedef ApplicationMeta
|
|
50
|
+
* @property {string} [name] - Indicates the name of application meta
|
|
51
|
+
* @property {string} [value] - Value related to application meta name
|
|
71
52
|
*/
|
|
72
53
|
|
|
73
54
|
/**
|
|
74
|
-
* @typedef
|
|
75
|
-
* @property {string} [
|
|
76
|
-
|
|
77
|
-
|
|
55
|
+
* @typedef SecureUrl
|
|
56
|
+
* @property {string} [secure_url] - Hosted URL of the image
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @typedef Application
|
|
61
|
+
* @property {ApplicationWebsite} [website]
|
|
62
|
+
* @property {ApplicationCors} [cors]
|
|
63
|
+
* @property {ApplicationAuth} [auth]
|
|
64
|
+
* @property {string} [description] - It contains detailed information about the
|
|
65
|
+
* sales channel
|
|
66
|
+
* @property {string} [channel_type] - It indicates different channel types like
|
|
67
|
+
* 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
|
|
74
|
+
* @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
|
|
77
|
+
* @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
|
|
78
|
+
* of owner who owns the application
|
|
79
|
+
* @property {number} [company_id] - Numeric ID allotted to a business account
|
|
80
|
+
* where the sales channel exists
|
|
81
|
+
* @property {string} [token] - Randomly generated fixed-length string for sales
|
|
82
|
+
* 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
|
|
87
|
+
* @property {number} [__v] - Version key for tracking revisions. Default value is zero.
|
|
88
|
+
* @property {SecureUrl} [banner]
|
|
89
|
+
* @property {SecureUrl} [logo]
|
|
90
|
+
* @property {SecureUrl} [favicon]
|
|
91
|
+
* @property {Domain[]} [domains]
|
|
92
|
+
* @property {string} [app_type] - It shows whether application is live or in
|
|
93
|
+
* development mode
|
|
94
|
+
* @property {SecureUrl} [mobile_logo]
|
|
95
|
+
* @property {Domain} [domain]
|
|
96
|
+
*/
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @typedef NotFound
|
|
100
|
+
* @property {string} [message] - Response message for not found
|
|
78
101
|
*/
|
|
79
102
|
|
|
80
103
|
/**
|
|
@@ -83,50 +106,37 @@ const Joi = require("joi");
|
|
|
83
106
|
*/
|
|
84
107
|
|
|
85
108
|
/**
|
|
86
|
-
* @typedef
|
|
87
|
-
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
88
|
-
* of the domain
|
|
89
|
-
* @property {boolean} [is_predefined] - Domain is hosting domain or not
|
|
90
|
-
* @property {boolean} [is_primary] - Indicates domain is primary or not.
|
|
91
|
-
* Primary domain is the default/main domain.
|
|
92
|
-
* @property {boolean} [is_shortlink] - Shortlink is present or not for the domain
|
|
109
|
+
* @typedef LocationDefaultLanguage
|
|
93
110
|
* @property {string} [name]
|
|
94
|
-
* @property {
|
|
95
|
-
|
|
111
|
+
* @property {string} [code]
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @typedef LocationDefaultCurrency
|
|
116
|
+
* @property {string} [name]
|
|
117
|
+
* @property {string} [symbol]
|
|
118
|
+
* @property {string} [code]
|
|
96
119
|
*/
|
|
97
120
|
|
|
98
121
|
/**
|
|
99
122
|
* @typedef LocationCountry
|
|
100
|
-
* @property {number} [__v]
|
|
101
|
-
* @property {string} [_id]
|
|
102
123
|
* @property {string} [capital]
|
|
103
|
-
* @property {string} [country_code]
|
|
104
124
|
* @property {string} [currency]
|
|
105
|
-
* @property {LocationDefaultCurrency} [default_currency]
|
|
106
|
-
* @property {LocationDefaultLanguage} [default_language]
|
|
107
125
|
* @property {string} [iso2]
|
|
108
126
|
* @property {string} [iso3]
|
|
109
|
-
* @property {string} [latitude]
|
|
110
|
-
* @property {string} [longitude]
|
|
111
127
|
* @property {string} [name]
|
|
112
128
|
* @property {string} [parent]
|
|
113
129
|
* @property {string} [phone_code]
|
|
114
|
-
* @property {string} [state_code]
|
|
115
130
|
* @property {string} [type]
|
|
116
131
|
* @property {number} [uid]
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
* @
|
|
121
|
-
* @property {string} [
|
|
122
|
-
* @property {string} [
|
|
123
|
-
* @property {string} [
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* @typedef LocationDefaultLanguage
|
|
128
|
-
* @property {string} [code]
|
|
129
|
-
* @property {string} [name]
|
|
132
|
+
* @property {number} [__v]
|
|
133
|
+
* @property {string} [_id]
|
|
134
|
+
* @property {LocationDefaultCurrency} [default_currency]
|
|
135
|
+
* @property {LocationDefaultLanguage} [default_language]
|
|
136
|
+
* @property {string} [state_code]
|
|
137
|
+
* @property {string} [country_code]
|
|
138
|
+
* @property {string} [latitude]
|
|
139
|
+
* @property {string} [longitude]
|
|
130
140
|
*/
|
|
131
141
|
|
|
132
142
|
/**
|
|
@@ -134,54 +144,31 @@ const Joi = require("joi");
|
|
|
134
144
|
* @property {LocationCountry[]} [items]
|
|
135
145
|
*/
|
|
136
146
|
|
|
137
|
-
/**
|
|
138
|
-
* @typedef NotFound
|
|
139
|
-
* @property {string} [message] - Response message for not found
|
|
140
|
-
*/
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* @typedef SecureUrl
|
|
144
|
-
* @property {string} [secure_url] - Hosted URL of the image
|
|
145
|
-
*/
|
|
146
|
-
|
|
147
147
|
class CommonApplicationModel {
|
|
148
|
-
/** @returns {
|
|
149
|
-
static
|
|
148
|
+
/** @returns {ApplicationResponse} */
|
|
149
|
+
static ApplicationResponse() {
|
|
150
150
|
return Joi.object({
|
|
151
|
-
|
|
151
|
+
application: CommonApplicationModel.Application(),
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/** @returns {Domain} */
|
|
156
|
+
static Domain() {
|
|
157
|
+
return Joi.object({
|
|
158
|
+
verified: Joi.boolean(),
|
|
159
|
+
is_primary: Joi.boolean(),
|
|
160
|
+
is_shortlink: Joi.boolean(),
|
|
152
161
|
_id: Joi.string().allow(""),
|
|
153
|
-
app_type: Joi.string().allow(""),
|
|
154
|
-
auth: CommonApplicationModel.ApplicationAuth(),
|
|
155
|
-
banner: CommonApplicationModel.SecureUrl(),
|
|
156
|
-
cache_ttl: Joi.number(),
|
|
157
|
-
channel_type: Joi.string().allow(""),
|
|
158
|
-
company_id: Joi.number(),
|
|
159
|
-
cors: CommonApplicationModel.ApplicationCors(),
|
|
160
|
-
created_at: Joi.string().allow(""),
|
|
161
|
-
description: Joi.string().allow(""),
|
|
162
|
-
domain: CommonApplicationModel.Domain(),
|
|
163
|
-
domains: Joi.array().items(CommonApplicationModel.Domain()),
|
|
164
|
-
favicon: CommonApplicationModel.SecureUrl(),
|
|
165
|
-
is_active: Joi.boolean(),
|
|
166
|
-
is_internal: Joi.boolean(),
|
|
167
|
-
logo: CommonApplicationModel.SecureUrl(),
|
|
168
|
-
meta: Joi.array().items(CommonApplicationModel.ApplicationMeta()),
|
|
169
|
-
mobile_logo: CommonApplicationModel.SecureUrl(),
|
|
170
162
|
name: Joi.string().allow(""),
|
|
171
|
-
|
|
172
|
-
redirections: Joi.array().items(
|
|
173
|
-
CommonApplicationModel.ApplicationRedirections()
|
|
174
|
-
),
|
|
175
|
-
token: Joi.string().allow(""),
|
|
176
|
-
updated_at: Joi.string().allow(""),
|
|
177
|
-
website: CommonApplicationModel.ApplicationWebsite(),
|
|
163
|
+
is_predefined: Joi.boolean(),
|
|
178
164
|
});
|
|
179
165
|
}
|
|
180
166
|
|
|
181
|
-
/** @returns {
|
|
182
|
-
static
|
|
167
|
+
/** @returns {ApplicationWebsite} */
|
|
168
|
+
static ApplicationWebsite() {
|
|
183
169
|
return Joi.object({
|
|
184
170
|
enabled: Joi.boolean(),
|
|
171
|
+
basepath: Joi.string().allow(""),
|
|
185
172
|
});
|
|
186
173
|
}
|
|
187
174
|
|
|
@@ -192,11 +179,10 @@ class CommonApplicationModel {
|
|
|
192
179
|
});
|
|
193
180
|
}
|
|
194
181
|
|
|
195
|
-
/** @returns {
|
|
196
|
-
static
|
|
182
|
+
/** @returns {ApplicationAuth} */
|
|
183
|
+
static ApplicationAuth() {
|
|
197
184
|
return Joi.object({
|
|
198
|
-
|
|
199
|
-
value: Joi.string().allow(""),
|
|
185
|
+
enabled: Joi.boolean(),
|
|
200
186
|
});
|
|
201
187
|
}
|
|
202
188
|
|
|
@@ -209,77 +195,105 @@ class CommonApplicationModel {
|
|
|
209
195
|
});
|
|
210
196
|
}
|
|
211
197
|
|
|
212
|
-
/** @returns {
|
|
213
|
-
static
|
|
198
|
+
/** @returns {ApplicationMeta} */
|
|
199
|
+
static ApplicationMeta() {
|
|
214
200
|
return Joi.object({
|
|
215
|
-
|
|
201
|
+
name: Joi.string().allow(""),
|
|
202
|
+
value: Joi.string().allow(""),
|
|
216
203
|
});
|
|
217
204
|
}
|
|
218
205
|
|
|
219
|
-
/** @returns {
|
|
220
|
-
static
|
|
206
|
+
/** @returns {SecureUrl} */
|
|
207
|
+
static SecureUrl() {
|
|
221
208
|
return Joi.object({
|
|
222
|
-
|
|
223
|
-
enabled: Joi.boolean(),
|
|
209
|
+
secure_url: Joi.string().allow(""),
|
|
224
210
|
});
|
|
225
211
|
}
|
|
226
212
|
|
|
227
|
-
/** @returns {
|
|
228
|
-
static
|
|
213
|
+
/** @returns {Application} */
|
|
214
|
+
static Application() {
|
|
215
|
+
return Joi.object({
|
|
216
|
+
website: CommonApplicationModel.ApplicationWebsite(),
|
|
217
|
+
cors: CommonApplicationModel.ApplicationCors(),
|
|
218
|
+
auth: CommonApplicationModel.ApplicationAuth(),
|
|
219
|
+
description: Joi.string().allow(""),
|
|
220
|
+
channel_type: Joi.string().allow(""),
|
|
221
|
+
cache_ttl: Joi.number(),
|
|
222
|
+
is_internal: Joi.boolean(),
|
|
223
|
+
is_active: Joi.boolean(),
|
|
224
|
+
_id: Joi.string().allow(""),
|
|
225
|
+
name: Joi.string().allow(""),
|
|
226
|
+
owner: Joi.string().allow(""),
|
|
227
|
+
company_id: Joi.number(),
|
|
228
|
+
token: Joi.string().allow(""),
|
|
229
|
+
redirections: Joi.array().items(
|
|
230
|
+
CommonApplicationModel.ApplicationRedirections()
|
|
231
|
+
),
|
|
232
|
+
meta: Joi.array().items(CommonApplicationModel.ApplicationMeta()),
|
|
233
|
+
created_at: Joi.string().allow(""),
|
|
234
|
+
updated_at: Joi.string().allow(""),
|
|
235
|
+
__v: Joi.number(),
|
|
236
|
+
banner: CommonApplicationModel.SecureUrl(),
|
|
237
|
+
logo: CommonApplicationModel.SecureUrl(),
|
|
238
|
+
favicon: CommonApplicationModel.SecureUrl(),
|
|
239
|
+
domains: Joi.array().items(CommonApplicationModel.Domain()),
|
|
240
|
+
app_type: Joi.string().allow(""),
|
|
241
|
+
mobile_logo: CommonApplicationModel.SecureUrl(),
|
|
242
|
+
domain: CommonApplicationModel.Domain(),
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/** @returns {NotFound} */
|
|
247
|
+
static NotFound() {
|
|
229
248
|
return Joi.object({
|
|
230
249
|
message: Joi.string().allow(""),
|
|
231
250
|
});
|
|
232
251
|
}
|
|
233
252
|
|
|
234
|
-
/** @returns {
|
|
235
|
-
static
|
|
253
|
+
/** @returns {BadRequest} */
|
|
254
|
+
static BadRequest() {
|
|
236
255
|
return Joi.object({
|
|
237
|
-
|
|
238
|
-
is_predefined: Joi.boolean(),
|
|
239
|
-
is_primary: Joi.boolean(),
|
|
240
|
-
is_shortlink: Joi.boolean(),
|
|
241
|
-
name: Joi.string().allow(""),
|
|
242
|
-
verified: Joi.boolean(),
|
|
256
|
+
message: Joi.string().allow(""),
|
|
243
257
|
});
|
|
244
258
|
}
|
|
245
259
|
|
|
246
|
-
/** @returns {
|
|
247
|
-
static
|
|
260
|
+
/** @returns {LocationDefaultLanguage} */
|
|
261
|
+
static LocationDefaultLanguage() {
|
|
248
262
|
return Joi.object({
|
|
249
|
-
__v: Joi.number(),
|
|
250
|
-
_id: Joi.string().allow(""),
|
|
251
|
-
capital: Joi.string().allow(""),
|
|
252
|
-
country_code: Joi.string().allow(""),
|
|
253
|
-
currency: Joi.string().allow(""),
|
|
254
|
-
default_currency: CommonApplicationModel.LocationDefaultCurrency(),
|
|
255
|
-
default_language: CommonApplicationModel.LocationDefaultLanguage(),
|
|
256
|
-
iso2: Joi.string().allow(""),
|
|
257
|
-
iso3: Joi.string().allow(""),
|
|
258
|
-
latitude: Joi.string().allow(""),
|
|
259
|
-
longitude: Joi.string().allow(""),
|
|
260
263
|
name: Joi.string().allow(""),
|
|
261
|
-
|
|
262
|
-
phone_code: Joi.string().allow(""),
|
|
263
|
-
state_code: Joi.string().allow(""),
|
|
264
|
-
type: Joi.string().allow(""),
|
|
265
|
-
uid: Joi.number(),
|
|
264
|
+
code: Joi.string().allow(""),
|
|
266
265
|
});
|
|
267
266
|
}
|
|
268
267
|
|
|
269
268
|
/** @returns {LocationDefaultCurrency} */
|
|
270
269
|
static LocationDefaultCurrency() {
|
|
271
270
|
return Joi.object({
|
|
272
|
-
code: Joi.string().allow(""),
|
|
273
271
|
name: Joi.string().allow(""),
|
|
274
272
|
symbol: Joi.string().allow(""),
|
|
273
|
+
code: Joi.string().allow(""),
|
|
275
274
|
});
|
|
276
275
|
}
|
|
277
276
|
|
|
278
|
-
/** @returns {
|
|
279
|
-
static
|
|
277
|
+
/** @returns {LocationCountry} */
|
|
278
|
+
static LocationCountry() {
|
|
280
279
|
return Joi.object({
|
|
281
|
-
|
|
280
|
+
capital: Joi.string().allow(""),
|
|
281
|
+
currency: Joi.string().allow(""),
|
|
282
|
+
iso2: Joi.string().allow(""),
|
|
283
|
+
iso3: Joi.string().allow(""),
|
|
282
284
|
name: Joi.string().allow(""),
|
|
285
|
+
parent: Joi.string().allow(""),
|
|
286
|
+
phone_code: Joi.string().allow(""),
|
|
287
|
+
type: Joi.string().allow(""),
|
|
288
|
+
uid: Joi.number(),
|
|
289
|
+
__v: Joi.number(),
|
|
290
|
+
_id: Joi.string().allow(""),
|
|
291
|
+
default_currency: CommonApplicationModel.LocationDefaultCurrency(),
|
|
292
|
+
default_language: CommonApplicationModel.LocationDefaultLanguage(),
|
|
293
|
+
state_code: Joi.string().allow(""),
|
|
294
|
+
country_code: Joi.string().allow(""),
|
|
295
|
+
latitude: Joi.string().allow(""),
|
|
296
|
+
longitude: Joi.string().allow(""),
|
|
283
297
|
});
|
|
284
298
|
}
|
|
285
299
|
|
|
@@ -289,19 +303,5 @@ class CommonApplicationModel {
|
|
|
289
303
|
items: Joi.array().items(CommonApplicationModel.LocationCountry()),
|
|
290
304
|
});
|
|
291
305
|
}
|
|
292
|
-
|
|
293
|
-
/** @returns {NotFound} */
|
|
294
|
-
static NotFound() {
|
|
295
|
-
return Joi.object({
|
|
296
|
-
message: Joi.string().allow(""),
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
/** @returns {SecureUrl} */
|
|
301
|
-
static SecureUrl() {
|
|
302
|
-
return Joi.object({
|
|
303
|
-
secure_url: Joi.string().allow(""),
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
306
|
}
|
|
307
307
|
module.exports = CommonApplicationModel;
|
|
@@ -1,136 +1,136 @@
|
|
|
1
1
|
export = CommunicationApplicationModel;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
4
|
-
* @property {string} [
|
|
5
|
-
* @property {string} [
|
|
3
|
+
* @typedef CommunicationConsentReq
|
|
4
|
+
* @property {string} [response]
|
|
5
|
+
* @property {string} [action]
|
|
6
|
+
* @property {string} [channel]
|
|
6
7
|
*/
|
|
7
8
|
/**
|
|
8
|
-
* @typedef
|
|
9
|
+
* @typedef CommunicationConsentRes
|
|
9
10
|
* @property {string} [app_id]
|
|
10
|
-
* @property {CommunicationConsentChannels} [channels]
|
|
11
11
|
* @property {string} [user_id]
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @typedef CommunicationConsentChannels
|
|
15
|
-
* @property {CommunicationConsentChannelsEmail} [email]
|
|
16
|
-
* @property {CommunicationConsentChannelsSms} [sms]
|
|
17
|
-
* @property {CommunicationConsentChannelsWhatsapp} [whatsapp]
|
|
12
|
+
* @property {CommunicationConsentChannels} [channels]
|
|
18
13
|
*/
|
|
19
14
|
/**
|
|
20
15
|
* @typedef CommunicationConsentChannelsEmail
|
|
21
|
-
* @property {string} [display_name]
|
|
22
16
|
* @property {string} [response]
|
|
17
|
+
* @property {string} [display_name]
|
|
23
18
|
*/
|
|
24
19
|
/**
|
|
25
20
|
* @typedef CommunicationConsentChannelsSms
|
|
26
|
-
* @property {string} [display_name]
|
|
27
21
|
* @property {string} [response]
|
|
22
|
+
* @property {string} [display_name]
|
|
28
23
|
*/
|
|
29
24
|
/**
|
|
30
25
|
* @typedef CommunicationConsentChannelsWhatsapp
|
|
31
|
-
* @property {string} [
|
|
26
|
+
* @property {string} [response]
|
|
32
27
|
* @property {string} [display_name]
|
|
28
|
+
* @property {string} [country_code]
|
|
33
29
|
* @property {string} [phone_number]
|
|
34
|
-
* @property {string} [response]
|
|
35
30
|
*/
|
|
36
31
|
/**
|
|
37
|
-
* @typedef
|
|
38
|
-
* @property {
|
|
39
|
-
* @property {
|
|
40
|
-
* @property {
|
|
32
|
+
* @typedef CommunicationConsentChannels
|
|
33
|
+
* @property {CommunicationConsentChannelsEmail} [email]
|
|
34
|
+
* @property {CommunicationConsentChannelsSms} [sms]
|
|
35
|
+
* @property {CommunicationConsentChannelsWhatsapp} [whatsapp]
|
|
41
36
|
*/
|
|
42
37
|
/**
|
|
43
|
-
* @typedef
|
|
38
|
+
* @typedef CommunicationConsent
|
|
44
39
|
* @property {string} [app_id]
|
|
45
|
-
* @property {CommunicationConsentChannels} [channels]
|
|
46
40
|
* @property {string} [user_id]
|
|
41
|
+
* @property {CommunicationConsentChannels} [channels]
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* @typedef BadRequestSchema
|
|
45
|
+
* @property {string} [status] - Response status.
|
|
46
|
+
* @property {string} [message] - Failure message.
|
|
47
47
|
*/
|
|
48
48
|
/**
|
|
49
49
|
* @typedef PushtokenReq
|
|
50
50
|
* @property {string} [action]
|
|
51
51
|
* @property {string} [bundle_identifier]
|
|
52
52
|
* @property {string} [push_token]
|
|
53
|
-
* @property {string} [type]
|
|
54
53
|
* @property {string} [unique_device_id]
|
|
54
|
+
* @property {string} [type]
|
|
55
55
|
*/
|
|
56
56
|
/**
|
|
57
57
|
* @typedef PushtokenRes
|
|
58
58
|
* @property {string} [_id]
|
|
59
|
-
* @property {string} [application_id]
|
|
60
59
|
* @property {string} [bundle_identifier]
|
|
61
|
-
* @property {string} [created_at]
|
|
62
|
-
* @property {string} [expired_at]
|
|
63
|
-
* @property {string} [platform]
|
|
64
60
|
* @property {string} [push_token]
|
|
65
|
-
* @property {string} [type]
|
|
66
61
|
* @property {string} [unique_device_id]
|
|
67
|
-
* @property {string} [
|
|
62
|
+
* @property {string} [type]
|
|
63
|
+
* @property {string} [platform]
|
|
64
|
+
* @property {string} [application_id]
|
|
68
65
|
* @property {string} [user_id]
|
|
66
|
+
* @property {string} [created_at]
|
|
67
|
+
* @property {string} [updated_at]
|
|
68
|
+
* @property {string} [expired_at]
|
|
69
69
|
*/
|
|
70
70
|
declare class CommunicationApplicationModel {
|
|
71
71
|
}
|
|
72
72
|
declare namespace CommunicationApplicationModel {
|
|
73
|
-
export {
|
|
73
|
+
export { CommunicationConsentReq, CommunicationConsentRes, CommunicationConsentChannelsEmail, CommunicationConsentChannelsSms, CommunicationConsentChannelsWhatsapp, CommunicationConsentChannels, CommunicationConsent, BadRequestSchema, PushtokenReq, PushtokenRes };
|
|
74
74
|
}
|
|
75
|
-
/** @returns {
|
|
76
|
-
declare function
|
|
77
|
-
type
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
message?: string;
|
|
82
|
-
/**
|
|
83
|
-
* - Response status.
|
|
84
|
-
*/
|
|
85
|
-
status?: string;
|
|
75
|
+
/** @returns {CommunicationConsentReq} */
|
|
76
|
+
declare function CommunicationConsentReq(): CommunicationConsentReq;
|
|
77
|
+
type CommunicationConsentReq = {
|
|
78
|
+
response?: string;
|
|
79
|
+
action?: string;
|
|
80
|
+
channel?: string;
|
|
86
81
|
};
|
|
87
|
-
/** @returns {
|
|
88
|
-
declare function
|
|
89
|
-
type
|
|
82
|
+
/** @returns {CommunicationConsentRes} */
|
|
83
|
+
declare function CommunicationConsentRes(): CommunicationConsentRes;
|
|
84
|
+
type CommunicationConsentRes = {
|
|
90
85
|
app_id?: string;
|
|
91
|
-
channels?: CommunicationConsentChannels;
|
|
92
86
|
user_id?: string;
|
|
93
|
-
|
|
94
|
-
/** @returns {CommunicationConsentChannels} */
|
|
95
|
-
declare function CommunicationConsentChannels(): CommunicationConsentChannels;
|
|
96
|
-
type CommunicationConsentChannels = {
|
|
97
|
-
email?: CommunicationConsentChannelsEmail;
|
|
98
|
-
sms?: CommunicationConsentChannelsSms;
|
|
99
|
-
whatsapp?: CommunicationConsentChannelsWhatsapp;
|
|
87
|
+
channels?: CommunicationConsentChannels;
|
|
100
88
|
};
|
|
101
89
|
/** @returns {CommunicationConsentChannelsEmail} */
|
|
102
90
|
declare function CommunicationConsentChannelsEmail(): CommunicationConsentChannelsEmail;
|
|
103
91
|
type CommunicationConsentChannelsEmail = {
|
|
104
|
-
display_name?: string;
|
|
105
92
|
response?: string;
|
|
93
|
+
display_name?: string;
|
|
106
94
|
};
|
|
107
95
|
/** @returns {CommunicationConsentChannelsSms} */
|
|
108
96
|
declare function CommunicationConsentChannelsSms(): CommunicationConsentChannelsSms;
|
|
109
97
|
type CommunicationConsentChannelsSms = {
|
|
110
|
-
display_name?: string;
|
|
111
98
|
response?: string;
|
|
99
|
+
display_name?: string;
|
|
112
100
|
};
|
|
113
101
|
/** @returns {CommunicationConsentChannelsWhatsapp} */
|
|
114
102
|
declare function CommunicationConsentChannelsWhatsapp(): CommunicationConsentChannelsWhatsapp;
|
|
115
103
|
type CommunicationConsentChannelsWhatsapp = {
|
|
116
|
-
|
|
104
|
+
response?: string;
|
|
117
105
|
display_name?: string;
|
|
106
|
+
country_code?: string;
|
|
118
107
|
phone_number?: string;
|
|
119
|
-
response?: string;
|
|
120
108
|
};
|
|
121
|
-
/** @returns {
|
|
122
|
-
declare function
|
|
123
|
-
type
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
109
|
+
/** @returns {CommunicationConsentChannels} */
|
|
110
|
+
declare function CommunicationConsentChannels(): CommunicationConsentChannels;
|
|
111
|
+
type CommunicationConsentChannels = {
|
|
112
|
+
email?: CommunicationConsentChannelsEmail;
|
|
113
|
+
sms?: CommunicationConsentChannelsSms;
|
|
114
|
+
whatsapp?: CommunicationConsentChannelsWhatsapp;
|
|
127
115
|
};
|
|
128
|
-
/** @returns {
|
|
129
|
-
declare function
|
|
130
|
-
type
|
|
116
|
+
/** @returns {CommunicationConsent} */
|
|
117
|
+
declare function CommunicationConsent(): CommunicationConsent;
|
|
118
|
+
type CommunicationConsent = {
|
|
131
119
|
app_id?: string;
|
|
132
|
-
channels?: CommunicationConsentChannels;
|
|
133
120
|
user_id?: string;
|
|
121
|
+
channels?: CommunicationConsentChannels;
|
|
122
|
+
};
|
|
123
|
+
/** @returns {BadRequestSchema} */
|
|
124
|
+
declare function BadRequestSchema(): BadRequestSchema;
|
|
125
|
+
type BadRequestSchema = {
|
|
126
|
+
/**
|
|
127
|
+
* - Response status.
|
|
128
|
+
*/
|
|
129
|
+
status?: string;
|
|
130
|
+
/**
|
|
131
|
+
* - Failure message.
|
|
132
|
+
*/
|
|
133
|
+
message?: string;
|
|
134
134
|
};
|
|
135
135
|
/** @returns {PushtokenReq} */
|
|
136
136
|
declare function PushtokenReq(): PushtokenReq;
|
|
@@ -138,21 +138,21 @@ type PushtokenReq = {
|
|
|
138
138
|
action?: string;
|
|
139
139
|
bundle_identifier?: string;
|
|
140
140
|
push_token?: string;
|
|
141
|
-
type?: string;
|
|
142
141
|
unique_device_id?: string;
|
|
142
|
+
type?: string;
|
|
143
143
|
};
|
|
144
144
|
/** @returns {PushtokenRes} */
|
|
145
145
|
declare function PushtokenRes(): PushtokenRes;
|
|
146
146
|
type PushtokenRes = {
|
|
147
147
|
_id?: string;
|
|
148
|
-
application_id?: string;
|
|
149
148
|
bundle_identifier?: string;
|
|
150
|
-
created_at?: string;
|
|
151
|
-
expired_at?: string;
|
|
152
|
-
platform?: string;
|
|
153
149
|
push_token?: string;
|
|
154
|
-
type?: string;
|
|
155
150
|
unique_device_id?: string;
|
|
156
|
-
|
|
151
|
+
type?: string;
|
|
152
|
+
platform?: string;
|
|
153
|
+
application_id?: string;
|
|
157
154
|
user_id?: string;
|
|
155
|
+
created_at?: string;
|
|
156
|
+
updated_at?: string;
|
|
157
|
+
expired_at?: string;
|
|
158
158
|
};
|