@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.4.0-beta.1
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 +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +5 -3
- package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
- package/sdk/application/Cart/CartApplicationModel.js +74 -0
- package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
- package/sdk/application/Cart/CartApplicationValidator.js +4 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
- package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
- package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
- package/sdk/application/Content/ContentApplicationClient.js +246 -0
- package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
- package/sdk/application/Content/ContentApplicationModel.js +252 -0
- package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
- package/sdk/application/Content/ContentApplicationValidator.js +41 -0
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
- package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
- package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +32 -8
- package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
- package/sdk/application/Order/OrderApplicationModel.js +6 -0
- package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
- package/sdk/application/Order/OrderApplicationValidator.js +8 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
- package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
- package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
- package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
- package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
- package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
- package/sdk/application/User/UserApplicationClient.d.ts +33 -0
- package/sdk/application/User/UserApplicationClient.js +239 -0
- package/sdk/application/User/UserApplicationModel.d.ts +28 -13
- package/sdk/application/User/UserApplicationModel.js +36 -12
- package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
- package/sdk/application/User/UserApplicationValidator.js +36 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +3 -15
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -14
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
- package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
- package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
- package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
- package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
- package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
- package/sdk/platform/Cart/CartPlatformModel.js +71 -4
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
- package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +3641 -1059
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +351 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +410 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
- package/sdk/platform/Content/ContentPlatformClient.js +2011 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1100 -1
- package/sdk/platform/Content/ContentPlatformModel.js +1362 -46
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +247 -0
- package/sdk/platform/Content/ContentPlatformValidator.js +319 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +18 -19
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -18
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
- package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
- package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
- package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
- package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
- package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +4 -2
- package/sdk/platform/PlatformClient.js +8 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
- package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
- package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
- package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
- package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
- package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
- package/sdk/platform/User/UserPlatformModel.js +256 -5
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
- package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
- package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
- 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/Billing/BillingPublicClient.d.ts +23 -0
- package/sdk/public/Billing/BillingPublicClient.js +116 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
- package/sdk/public/Billing/BillingPublicModel.js +96 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
- package/sdk/public/Billing/BillingPublicValidator.js +19 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +114 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
- package/sdk/public/Content/ContentPublicModel.js +60 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +4 -0
- package/sdk/public/PublicClient.js +8 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
- package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
- package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
- package/sdk/public/index.d.ts +2 -0
- package/sdk/public/index.js +4 -0
|
@@ -9,9 +9,12 @@ const Joi = require("joi");
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @typedef AppCurrencyResponse
|
|
12
|
+
* @property {string} [_id]
|
|
12
13
|
* @property {string} [application] - Alphanumeric ID allotted to an application
|
|
13
14
|
* (sales channel website) created within a business account
|
|
15
|
+
* @property {string} [created_at]
|
|
14
16
|
* @property {DefaultCurrency} [default_currency]
|
|
17
|
+
* @property {string} [modified_at]
|
|
15
18
|
* @property {Currency[]} [supported_currency]
|
|
16
19
|
*/
|
|
17
20
|
|
|
@@ -27,13 +30,13 @@ const Joi = require("joi");
|
|
|
27
30
|
* the features were configured
|
|
28
31
|
* @property {HomePageFeature} [home_page]
|
|
29
32
|
* @property {LandingPageFeature} [landing_page]
|
|
33
|
+
* @property {string} [modified_at] - ISO 8601 timestamp of last known
|
|
34
|
+
* modifications to the sales channel feature configuration
|
|
30
35
|
* @property {OrderFeature} [order]
|
|
31
36
|
* @property {PcrFeature} [pcr]
|
|
32
37
|
* @property {ProductDetailFeature} [product_detail]
|
|
33
38
|
* @property {QrFeature} [qr]
|
|
34
39
|
* @property {RegistrationPageFeature} [registration_page]
|
|
35
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of last known
|
|
36
|
-
* modifications to the sales channel feature configuration
|
|
37
40
|
*/
|
|
38
41
|
|
|
39
42
|
/**
|
|
@@ -68,21 +71,23 @@ const Joi = require("joi");
|
|
|
68
71
|
* @property {SecureUrl} [logo]
|
|
69
72
|
* @property {ApplicationMeta[]} [meta]
|
|
70
73
|
* @property {SecureUrl} [mobile_logo]
|
|
74
|
+
* @property {string} [mode]
|
|
75
|
+
* @property {string} [modified_at] - ISO 8601 timestamp of sales channel updation
|
|
71
76
|
* @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion
|
|
72
77
|
* @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
|
|
73
78
|
* of owner who owns the application
|
|
74
79
|
* @property {ApplicationRedirections[]} [redirections]
|
|
80
|
+
* @property {string} [slug]
|
|
81
|
+
* @property {string} [status]
|
|
75
82
|
* @property {string} [token] - Random generated fix length string for sales
|
|
76
83
|
* channel. It is required and auto-generated.
|
|
77
|
-
* @property {
|
|
84
|
+
* @property {TokenSchema[]} [tokens]
|
|
78
85
|
* @property {ApplicationWebsite} [website]
|
|
79
86
|
*/
|
|
80
87
|
|
|
81
88
|
/**
|
|
82
89
|
* @typedef ApplicationAboutResponse
|
|
83
90
|
* @property {ApplicationInfo} [application_info]
|
|
84
|
-
* @property {CompanyInfo} [company_info]
|
|
85
|
-
* @property {OwnerInfo} [owner_info]
|
|
86
91
|
*/
|
|
87
92
|
|
|
88
93
|
/**
|
|
@@ -100,6 +105,7 @@ const Joi = require("joi");
|
|
|
100
105
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
101
106
|
* for the sales channel details
|
|
102
107
|
* @property {SecureUrl} [banner]
|
|
108
|
+
* @property {number} [company_id]
|
|
103
109
|
* @property {string} [description] - It gives a detailed information about the
|
|
104
110
|
* sales channel. It is required.
|
|
105
111
|
* @property {Domain} [domain]
|
|
@@ -108,6 +114,7 @@ const Joi = require("joi");
|
|
|
108
114
|
* @property {SecureUrl} [logo]
|
|
109
115
|
* @property {SecureUrl} [mobile_logo]
|
|
110
116
|
* @property {string} name - Name of the sales channel. It is required.
|
|
117
|
+
* @property {string} [slug]
|
|
111
118
|
*/
|
|
112
119
|
|
|
113
120
|
/**
|
|
@@ -115,21 +122,29 @@ const Joi = require("joi");
|
|
|
115
122
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
116
123
|
* of application information
|
|
117
124
|
* @property {SecureUrl} [banner]
|
|
125
|
+
* @property {CompanyInfo} [company_info]
|
|
118
126
|
* @property {ApplicationCors} [cors]
|
|
119
127
|
* @property {string} [created_at] - ISO 8601 timestamp of sales channel
|
|
120
128
|
* information creation
|
|
121
129
|
* @property {string} [description] - It contains details information about the
|
|
122
130
|
* sales channel
|
|
123
131
|
* @property {Domain} [domain]
|
|
132
|
+
* @property {Domain[]} [domains]
|
|
133
|
+
* @property {SecureUrl} [favicon]
|
|
124
134
|
* @property {boolean} [is_active] - Indicates whether sales channel is active
|
|
125
135
|
* or not active
|
|
126
136
|
* @property {SecureUrl} [logo]
|
|
127
|
-
* @property {ApplicationMeta} [meta]
|
|
137
|
+
* @property {ApplicationMeta[]} [meta]
|
|
138
|
+
* @property {SecureUrl} [mobile_logo]
|
|
139
|
+
* @property {string} [mode]
|
|
128
140
|
* @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion
|
|
141
|
+
* @property {OwnerInfo} [owner_info]
|
|
129
142
|
* @property {string} [secret] - Random generated fix length string for sales
|
|
130
143
|
* channel. It is required and auto-generated.
|
|
144
|
+
* @property {string} [slug]
|
|
131
145
|
* @property {string} [token] - Random generated fix length string for sales
|
|
132
146
|
* channel. It is required and auto-generated.
|
|
147
|
+
* @property {TokenSchema[]} [tokens]
|
|
133
148
|
* @property {ApplicationWebsite} [website]
|
|
134
149
|
*/
|
|
135
150
|
|
|
@@ -141,16 +156,16 @@ const Joi = require("joi");
|
|
|
141
156
|
* @property {InformationAddress} [address]
|
|
142
157
|
* @property {string} [application] - Alphanumeric ID allotted to a sales
|
|
143
158
|
* channel application created within a business account
|
|
144
|
-
* @property {BusinessHighlights} [business_highlights]
|
|
159
|
+
* @property {BusinessHighlights[]} [business_highlights]
|
|
145
160
|
* @property {string} [copyright_text] - Copyright statement usually seen at the
|
|
146
161
|
* site's footer
|
|
147
162
|
* @property {string} [created_at] - ISO 8601 timestamp of creation of the
|
|
148
163
|
* application information
|
|
149
|
-
* @property {Links} [links]
|
|
164
|
+
* @property {Links[]} [links]
|
|
165
|
+
* @property {string} [modified_at] - ISO 8601 timestamp of updation of the
|
|
166
|
+
* application information
|
|
150
167
|
* @property {SocialLinks} [social_links]
|
|
151
168
|
* @property {InformationSupport} [support]
|
|
152
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of updation of the
|
|
153
|
-
* application information
|
|
154
169
|
*/
|
|
155
170
|
|
|
156
171
|
/**
|
|
@@ -213,8 +228,8 @@ const Joi = require("joi");
|
|
|
213
228
|
* @property {string} [application] - Alphanumeric ID allotted to the current
|
|
214
229
|
* application created within the current business account
|
|
215
230
|
* @property {string} [created_at] - ISO 8601 timestamp of token creation
|
|
231
|
+
* @property {string} [modified_at] - ISO 8601 timestamp of token updation
|
|
216
232
|
* @property {Tokens} [tokens]
|
|
217
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of token updation
|
|
218
233
|
*/
|
|
219
234
|
|
|
220
235
|
/**
|
|
@@ -254,6 +269,8 @@ const Joi = require("joi");
|
|
|
254
269
|
* @property {CurrencyFeature} [currency]
|
|
255
270
|
* @property {DeploymentStoreSelectionFeature} [deployment_store_selection]
|
|
256
271
|
* @property {FeedbackFeature} [feedback]
|
|
272
|
+
* @property {InternationalShipping} [international_shipping]
|
|
273
|
+
* @property {ListingPageFeature} [listing_page]
|
|
257
274
|
* @property {ListingPriceFeature} [listing_price]
|
|
258
275
|
* @property {RevenueEngineFeature} [revenue_engine]
|
|
259
276
|
* @property {RewardPointsConfig} [reward_points]
|
|
@@ -324,6 +341,8 @@ const Joi = require("joi");
|
|
|
324
341
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
325
342
|
* of the current sales channel supported currency
|
|
326
343
|
* @property {string} [code] - 3-character currency code, e.g. INR, USD, EUR.
|
|
344
|
+
* @property {string} [country_code]
|
|
345
|
+
* @property {string} [country_name]
|
|
327
346
|
* @property {string} [created_at] - ISO 8601 timestamp of sales channel support
|
|
328
347
|
* currency creation
|
|
329
348
|
* @property {number} [decimal_digits] - Acceptable decimal limits for a given
|
|
@@ -331,10 +350,10 @@ const Joi = require("joi");
|
|
|
331
350
|
* value of a currency.
|
|
332
351
|
* @property {boolean} [is_active] - Shows currency is enabled or not in current
|
|
333
352
|
* sales channel
|
|
353
|
+
* @property {string} [modified_at] - ISO 8601 timestamp of sales channel
|
|
354
|
+
* support currency updation
|
|
334
355
|
* @property {string} [name] - Name of the currency, e.g Indian Rupee
|
|
335
356
|
* @property {string} [symbol] - Unique symbol for identifying the currency, e.g. ₹
|
|
336
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of sales channel support
|
|
337
|
-
* currency updation
|
|
338
357
|
*/
|
|
339
358
|
|
|
340
359
|
/**
|
|
@@ -470,11 +489,17 @@ const Joi = require("joi");
|
|
|
470
489
|
* @property {string[]} [address_line] - Contact address of the sales channel
|
|
471
490
|
* @property {string} [city] - Name of the city, e.g. Mumbai
|
|
472
491
|
* @property {string} [country] - Name of the country, e.g. India
|
|
473
|
-
* @property {
|
|
474
|
-
* @property {InformationPhone} [phone]
|
|
492
|
+
* @property {InformationLoc} [loc]
|
|
493
|
+
* @property {InformationPhone[]} [phone]
|
|
475
494
|
* @property {number} [pincode] - 6-digit PIN Code of the city, e.g. 400001
|
|
476
495
|
*/
|
|
477
496
|
|
|
497
|
+
/**
|
|
498
|
+
* @typedef InformationLoc
|
|
499
|
+
* @property {number[]} [coordinates] - 10-digit mobile number
|
|
500
|
+
* @property {string} [type] - Country code for contact number, e.g. +91 (for India)
|
|
501
|
+
*/
|
|
502
|
+
|
|
478
503
|
/**
|
|
479
504
|
* @typedef InformationPhone
|
|
480
505
|
* @property {string} [code] - Country code for contact number, e.g. +91 (for India)
|
|
@@ -483,11 +508,24 @@ const Joi = require("joi");
|
|
|
483
508
|
|
|
484
509
|
/**
|
|
485
510
|
* @typedef InformationSupport
|
|
486
|
-
* @property {
|
|
487
|
-
* @property {
|
|
511
|
+
* @property {InformationSupportEmail[]} [email]
|
|
512
|
+
* @property {InformationSupportPhone[]} [phone]
|
|
488
513
|
* @property {string} [timing] - Working hours of support team, e.g. 9 AM to 9 PM
|
|
489
514
|
*/
|
|
490
515
|
|
|
516
|
+
/**
|
|
517
|
+
* @typedef InformationSupportEmail
|
|
518
|
+
* @property {string} [key]
|
|
519
|
+
* @property {string} [value] - Value of email.
|
|
520
|
+
*/
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* @typedef InformationSupportPhone
|
|
524
|
+
* @property {string} [code] - Country code for contact number, e.g. +91 (for India)
|
|
525
|
+
* @property {string} [key]
|
|
526
|
+
* @property {string} [number] - 10-digit mobile number
|
|
527
|
+
*/
|
|
528
|
+
|
|
491
529
|
/**
|
|
492
530
|
* @typedef InstagramLink
|
|
493
531
|
* @property {string} [icon] - Hosted URL of social icon image shown on the website
|
|
@@ -495,6 +533,16 @@ const Joi = require("joi");
|
|
|
495
533
|
* @property {string} [title] - Name of the social media platform, e.g. Instagram
|
|
496
534
|
*/
|
|
497
535
|
|
|
536
|
+
/**
|
|
537
|
+
* @typedef InternationalShipping
|
|
538
|
+
* @property {boolean} [enabled] - International shipping is enabled or not.
|
|
539
|
+
*/
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* @typedef InvalidPayloadRequest
|
|
543
|
+
* @property {string} [message] - Error message when request body payload is improper
|
|
544
|
+
*/
|
|
545
|
+
|
|
498
546
|
/**
|
|
499
547
|
* @typedef Ios
|
|
500
548
|
* @property {string} [api_key] - Firebase secret credential API key for IOS
|
|
@@ -539,6 +587,11 @@ const Joi = require("joi");
|
|
|
539
587
|
* @property {string} [title] - Name of the related page or link
|
|
540
588
|
*/
|
|
541
589
|
|
|
590
|
+
/**
|
|
591
|
+
* @typedef ListingPageFeature
|
|
592
|
+
* @property {string} [sort_on]
|
|
593
|
+
*/
|
|
594
|
+
|
|
542
595
|
/**
|
|
543
596
|
* @typedef ListingPriceFeature
|
|
544
597
|
* @property {string} [sort] - Sorting of listing price with min or max value.
|
|
@@ -774,6 +827,13 @@ const Joi = require("joi");
|
|
|
774
827
|
* @property {Segment} [segment]
|
|
775
828
|
*/
|
|
776
829
|
|
|
830
|
+
/**
|
|
831
|
+
* @typedef TokenSchema
|
|
832
|
+
* @property {string} [created_at] - ISO 8601 timestamp of when token created
|
|
833
|
+
* @property {Object} [created_by]
|
|
834
|
+
* @property {string} [token]
|
|
835
|
+
*/
|
|
836
|
+
|
|
777
837
|
/**
|
|
778
838
|
* @typedef TwitterLink
|
|
779
839
|
* @property {string} [icon] - Hosted URL of social icon image shown on the website
|
|
@@ -833,8 +893,11 @@ class ConfigurationApplicationModel {
|
|
|
833
893
|
/** @returns {AppCurrencyResponse} */
|
|
834
894
|
static AppCurrencyResponse() {
|
|
835
895
|
return Joi.object({
|
|
896
|
+
_id: Joi.string().allow(""),
|
|
836
897
|
application: Joi.string().allow(""),
|
|
898
|
+
created_at: Joi.string().allow(""),
|
|
837
899
|
default_currency: ConfigurationApplicationModel.DefaultCurrency(),
|
|
900
|
+
modified_at: Joi.string().allow(""),
|
|
838
901
|
supported_currency: Joi.array().items(
|
|
839
902
|
ConfigurationApplicationModel.Currency()
|
|
840
903
|
),
|
|
@@ -852,12 +915,12 @@ class ConfigurationApplicationModel {
|
|
|
852
915
|
created_at: Joi.string().allow(""),
|
|
853
916
|
home_page: ConfigurationApplicationModel.HomePageFeature(),
|
|
854
917
|
landing_page: ConfigurationApplicationModel.LandingPageFeature(),
|
|
918
|
+
modified_at: Joi.string().allow(""),
|
|
855
919
|
order: ConfigurationApplicationModel.OrderFeature(),
|
|
856
920
|
pcr: ConfigurationApplicationModel.PcrFeature(),
|
|
857
921
|
product_detail: ConfigurationApplicationModel.ProductDetailFeature(),
|
|
858
922
|
qr: ConfigurationApplicationModel.QrFeature(),
|
|
859
923
|
registration_page: ConfigurationApplicationModel.RegistrationPageFeature(),
|
|
860
|
-
updated_at: Joi.string().allow(""),
|
|
861
924
|
});
|
|
862
925
|
}
|
|
863
926
|
|
|
@@ -890,13 +953,17 @@ class ConfigurationApplicationModel {
|
|
|
890
953
|
logo: ConfigurationApplicationModel.SecureUrl(),
|
|
891
954
|
meta: Joi.array().items(ConfigurationApplicationModel.ApplicationMeta()),
|
|
892
955
|
mobile_logo: ConfigurationApplicationModel.SecureUrl(),
|
|
956
|
+
mode: Joi.string().allow(""),
|
|
957
|
+
modified_at: Joi.string().allow(""),
|
|
893
958
|
name: Joi.string().allow(""),
|
|
894
959
|
owner: Joi.string().allow(""),
|
|
895
960
|
redirections: Joi.array().items(
|
|
896
961
|
ConfigurationApplicationModel.ApplicationRedirections()
|
|
897
962
|
),
|
|
963
|
+
slug: Joi.string().allow(""),
|
|
964
|
+
status: Joi.string().allow(""),
|
|
898
965
|
token: Joi.string().allow(""),
|
|
899
|
-
|
|
966
|
+
tokens: Joi.array().items(ConfigurationApplicationModel.TokenSchema()),
|
|
900
967
|
website: ConfigurationApplicationModel.ApplicationWebsite(),
|
|
901
968
|
});
|
|
902
969
|
}
|
|
@@ -905,8 +972,6 @@ class ConfigurationApplicationModel {
|
|
|
905
972
|
static ApplicationAboutResponse() {
|
|
906
973
|
return Joi.object({
|
|
907
974
|
application_info: ConfigurationApplicationModel.ApplicationInfo(),
|
|
908
|
-
company_info: ConfigurationApplicationModel.CompanyInfo(),
|
|
909
|
-
owner_info: ConfigurationApplicationModel.OwnerInfo(),
|
|
910
975
|
});
|
|
911
976
|
}
|
|
912
977
|
|
|
@@ -929,6 +994,7 @@ class ConfigurationApplicationModel {
|
|
|
929
994
|
return Joi.object({
|
|
930
995
|
_id: Joi.string().allow(""),
|
|
931
996
|
banner: ConfigurationApplicationModel.SecureUrl(),
|
|
997
|
+
company_id: Joi.number(),
|
|
932
998
|
description: Joi.string().allow(""),
|
|
933
999
|
domain: ConfigurationApplicationModel.Domain(),
|
|
934
1000
|
domains: Joi.array().items(ConfigurationApplicationModel.Domain()),
|
|
@@ -936,6 +1002,7 @@ class ConfigurationApplicationModel {
|
|
|
936
1002
|
logo: ConfigurationApplicationModel.SecureUrl(),
|
|
937
1003
|
mobile_logo: ConfigurationApplicationModel.SecureUrl(),
|
|
938
1004
|
name: Joi.string().allow("").required(),
|
|
1005
|
+
slug: Joi.string().allow(""),
|
|
939
1006
|
});
|
|
940
1007
|
}
|
|
941
1008
|
|
|
@@ -944,16 +1011,24 @@ class ConfigurationApplicationModel {
|
|
|
944
1011
|
return Joi.object({
|
|
945
1012
|
_id: Joi.string().allow(""),
|
|
946
1013
|
banner: ConfigurationApplicationModel.SecureUrl(),
|
|
1014
|
+
company_info: ConfigurationApplicationModel.CompanyInfo(),
|
|
947
1015
|
cors: ConfigurationApplicationModel.ApplicationCors(),
|
|
948
1016
|
created_at: Joi.string().allow(""),
|
|
949
1017
|
description: Joi.string().allow(""),
|
|
950
1018
|
domain: ConfigurationApplicationModel.Domain(),
|
|
1019
|
+
domains: Joi.array().items(ConfigurationApplicationModel.Domain()),
|
|
1020
|
+
favicon: ConfigurationApplicationModel.SecureUrl(),
|
|
951
1021
|
is_active: Joi.boolean(),
|
|
952
1022
|
logo: ConfigurationApplicationModel.SecureUrl(),
|
|
953
|
-
meta: ConfigurationApplicationModel.ApplicationMeta(),
|
|
1023
|
+
meta: Joi.array().items(ConfigurationApplicationModel.ApplicationMeta()),
|
|
1024
|
+
mobile_logo: ConfigurationApplicationModel.SecureUrl(),
|
|
1025
|
+
mode: Joi.string().allow(""),
|
|
954
1026
|
name: Joi.string().allow(""),
|
|
1027
|
+
owner_info: ConfigurationApplicationModel.OwnerInfo(),
|
|
955
1028
|
secret: Joi.string().allow(""),
|
|
1029
|
+
slug: Joi.string().allow(""),
|
|
956
1030
|
token: Joi.string().allow(""),
|
|
1031
|
+
tokens: Joi.array().items(ConfigurationApplicationModel.TokenSchema()),
|
|
957
1032
|
website: ConfigurationApplicationModel.ApplicationWebsite(),
|
|
958
1033
|
});
|
|
959
1034
|
}
|
|
@@ -965,13 +1040,15 @@ class ConfigurationApplicationModel {
|
|
|
965
1040
|
_id: Joi.string().allow(""),
|
|
966
1041
|
address: ConfigurationApplicationModel.InformationAddress(),
|
|
967
1042
|
application: Joi.string().allow(""),
|
|
968
|
-
business_highlights:
|
|
1043
|
+
business_highlights: Joi.array().items(
|
|
1044
|
+
ConfigurationApplicationModel.BusinessHighlights()
|
|
1045
|
+
),
|
|
969
1046
|
copyright_text: Joi.string().allow(""),
|
|
970
1047
|
created_at: Joi.string().allow(""),
|
|
971
|
-
links: ConfigurationApplicationModel.Links(),
|
|
1048
|
+
links: Joi.array().items(ConfigurationApplicationModel.Links()),
|
|
1049
|
+
modified_at: Joi.string().allow(""),
|
|
972
1050
|
social_links: ConfigurationApplicationModel.SocialLinks(),
|
|
973
1051
|
support: ConfigurationApplicationModel.InformationSupport(),
|
|
974
|
-
updated_at: Joi.string().allow(""),
|
|
975
1052
|
});
|
|
976
1053
|
}
|
|
977
1054
|
|
|
@@ -1038,8 +1115,8 @@ class ConfigurationApplicationModel {
|
|
|
1038
1115
|
_id: Joi.string().allow(""),
|
|
1039
1116
|
application: Joi.string().allow(""),
|
|
1040
1117
|
created_at: Joi.string().allow(""),
|
|
1118
|
+
modified_at: Joi.string().allow(""),
|
|
1041
1119
|
tokens: ConfigurationApplicationModel.Tokens(),
|
|
1042
|
-
updated_at: Joi.string().allow(""),
|
|
1043
1120
|
});
|
|
1044
1121
|
}
|
|
1045
1122
|
|
|
@@ -1081,6 +1158,8 @@ class ConfigurationApplicationModel {
|
|
|
1081
1158
|
currency: ConfigurationApplicationModel.CurrencyFeature(),
|
|
1082
1159
|
deployment_store_selection: ConfigurationApplicationModel.DeploymentStoreSelectionFeature(),
|
|
1083
1160
|
feedback: ConfigurationApplicationModel.FeedbackFeature(),
|
|
1161
|
+
international_shipping: ConfigurationApplicationModel.InternationalShipping(),
|
|
1162
|
+
listing_page: ConfigurationApplicationModel.ListingPageFeature(),
|
|
1084
1163
|
listing_price: ConfigurationApplicationModel.ListingPriceFeature(),
|
|
1085
1164
|
revenue_engine: ConfigurationApplicationModel.RevenueEngineFeature(),
|
|
1086
1165
|
reward_points: ConfigurationApplicationModel.RewardPointsConfig(),
|
|
@@ -1160,12 +1239,14 @@ class ConfigurationApplicationModel {
|
|
|
1160
1239
|
return Joi.object({
|
|
1161
1240
|
_id: Joi.string().allow(""),
|
|
1162
1241
|
code: Joi.string().allow(""),
|
|
1242
|
+
country_code: Joi.string().allow(""),
|
|
1243
|
+
country_name: Joi.string().allow(""),
|
|
1163
1244
|
created_at: Joi.string().allow(""),
|
|
1164
1245
|
decimal_digits: Joi.number(),
|
|
1165
1246
|
is_active: Joi.boolean(),
|
|
1247
|
+
modified_at: Joi.string().allow(""),
|
|
1166
1248
|
name: Joi.string().allow(""),
|
|
1167
1249
|
symbol: Joi.string().allow(""),
|
|
1168
|
-
updated_at: Joi.string().allow(""),
|
|
1169
1250
|
});
|
|
1170
1251
|
}
|
|
1171
1252
|
|
|
@@ -1321,12 +1402,22 @@ class ConfigurationApplicationModel {
|
|
|
1321
1402
|
address_line: Joi.array().items(Joi.string().allow("")),
|
|
1322
1403
|
city: Joi.string().allow(""),
|
|
1323
1404
|
country: Joi.string().allow(""),
|
|
1324
|
-
loc:
|
|
1325
|
-
phone:
|
|
1405
|
+
loc: ConfigurationApplicationModel.InformationLoc(),
|
|
1406
|
+
phone: Joi.array().items(
|
|
1407
|
+
ConfigurationApplicationModel.InformationPhone()
|
|
1408
|
+
),
|
|
1326
1409
|
pincode: Joi.number(),
|
|
1327
1410
|
});
|
|
1328
1411
|
}
|
|
1329
1412
|
|
|
1413
|
+
/** @returns {InformationLoc} */
|
|
1414
|
+
static InformationLoc() {
|
|
1415
|
+
return Joi.object({
|
|
1416
|
+
coordinates: Joi.array().items(Joi.number()),
|
|
1417
|
+
type: Joi.string().allow(""),
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1330
1421
|
/** @returns {InformationPhone} */
|
|
1331
1422
|
static InformationPhone() {
|
|
1332
1423
|
return Joi.object({
|
|
@@ -1338,12 +1429,33 @@ class ConfigurationApplicationModel {
|
|
|
1338
1429
|
/** @returns {InformationSupport} */
|
|
1339
1430
|
static InformationSupport() {
|
|
1340
1431
|
return Joi.object({
|
|
1341
|
-
email: Joi.array().items(
|
|
1342
|
-
|
|
1432
|
+
email: Joi.array().items(
|
|
1433
|
+
ConfigurationApplicationModel.InformationSupportEmail()
|
|
1434
|
+
),
|
|
1435
|
+
phone: Joi.array().items(
|
|
1436
|
+
ConfigurationApplicationModel.InformationSupportPhone()
|
|
1437
|
+
),
|
|
1343
1438
|
timing: Joi.string().allow(""),
|
|
1344
1439
|
});
|
|
1345
1440
|
}
|
|
1346
1441
|
|
|
1442
|
+
/** @returns {InformationSupportEmail} */
|
|
1443
|
+
static InformationSupportEmail() {
|
|
1444
|
+
return Joi.object({
|
|
1445
|
+
key: Joi.string().allow(""),
|
|
1446
|
+
value: Joi.string().allow(""),
|
|
1447
|
+
});
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
/** @returns {InformationSupportPhone} */
|
|
1451
|
+
static InformationSupportPhone() {
|
|
1452
|
+
return Joi.object({
|
|
1453
|
+
code: Joi.string().allow(""),
|
|
1454
|
+
key: Joi.string().allow(""),
|
|
1455
|
+
number: Joi.string().allow(""),
|
|
1456
|
+
});
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1347
1459
|
/** @returns {InstagramLink} */
|
|
1348
1460
|
static InstagramLink() {
|
|
1349
1461
|
return Joi.object({
|
|
@@ -1353,6 +1465,20 @@ class ConfigurationApplicationModel {
|
|
|
1353
1465
|
});
|
|
1354
1466
|
}
|
|
1355
1467
|
|
|
1468
|
+
/** @returns {InternationalShipping} */
|
|
1469
|
+
static InternationalShipping() {
|
|
1470
|
+
return Joi.object({
|
|
1471
|
+
enabled: Joi.boolean(),
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
/** @returns {InvalidPayloadRequest} */
|
|
1476
|
+
static InvalidPayloadRequest() {
|
|
1477
|
+
return Joi.object({
|
|
1478
|
+
message: Joi.string().allow(""),
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1356
1482
|
/** @returns {Ios} */
|
|
1357
1483
|
static Ios() {
|
|
1358
1484
|
return Joi.object({
|
|
@@ -1407,6 +1533,13 @@ class ConfigurationApplicationModel {
|
|
|
1407
1533
|
});
|
|
1408
1534
|
}
|
|
1409
1535
|
|
|
1536
|
+
/** @returns {ListingPageFeature} */
|
|
1537
|
+
static ListingPageFeature() {
|
|
1538
|
+
return Joi.object({
|
|
1539
|
+
sort_on: Joi.string().allow(""),
|
|
1540
|
+
});
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1410
1543
|
/** @returns {ListingPriceFeature} */
|
|
1411
1544
|
static ListingPriceFeature() {
|
|
1412
1545
|
return Joi.object({
|
|
@@ -1674,6 +1807,15 @@ class ConfigurationApplicationModel {
|
|
|
1674
1807
|
});
|
|
1675
1808
|
}
|
|
1676
1809
|
|
|
1810
|
+
/** @returns {TokenSchema} */
|
|
1811
|
+
static TokenSchema() {
|
|
1812
|
+
return Joi.object({
|
|
1813
|
+
created_at: Joi.string().allow(""),
|
|
1814
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
1815
|
+
token: Joi.string().allow(""),
|
|
1816
|
+
});
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1677
1819
|
/** @returns {TwitterLink} */
|
|
1678
1820
|
static TwitterLink() {
|
|
1679
1821
|
return Joi.object({
|
|
@@ -6,6 +6,8 @@ declare class Content {
|
|
|
6
6
|
getAnnouncements: string;
|
|
7
7
|
getBlog: string;
|
|
8
8
|
getBlogs: string;
|
|
9
|
+
getCustomFields: string;
|
|
10
|
+
getCustomObject: string;
|
|
9
11
|
getDataLoaders: string;
|
|
10
12
|
getFaqBySlug: string;
|
|
11
13
|
getFaqCategories: string;
|
|
@@ -18,6 +20,7 @@ declare class Content {
|
|
|
18
20
|
getPage: string;
|
|
19
21
|
getPages: string;
|
|
20
22
|
getSEOConfiguration: string;
|
|
23
|
+
getSEOMarkupSchemas: string;
|
|
21
24
|
getSlideshow: string;
|
|
22
25
|
getSlideshows: string;
|
|
23
26
|
getSupportInformation: string;
|
|
@@ -67,6 +70,29 @@ declare class Content {
|
|
|
67
70
|
getBlogsPaginator({ pageSize }?: {
|
|
68
71
|
pageSize?: number;
|
|
69
72
|
}): Paginator<ContentApplicationModel.BlogGetResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* @param {ContentApplicationValidator.GetCustomFieldsParam} arg - Arg object.
|
|
75
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
76
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
77
|
+
* @returns {Promise<ContentApplicationModel.CustomFieldsResponseByResourceIdSchema>}
|
|
78
|
+
* - Success response
|
|
79
|
+
*
|
|
80
|
+
* @name getCustomFields
|
|
81
|
+
* @summary: Get list of custom fields of given resource and resource_id.
|
|
82
|
+
* @description: Use this API to retrieve the custom fields for given resource and resource_id in param. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomFields/).
|
|
83
|
+
*/
|
|
84
|
+
getCustomFields({ resource, resourceId, requestHeaders }?: ContentApplicationValidator.GetCustomFieldsParam, { responseHeaders }?: object): Promise<ContentApplicationModel.CustomFieldsResponseByResourceIdSchema>;
|
|
85
|
+
/**
|
|
86
|
+
* @param {ContentApplicationValidator.GetCustomObjectParam} arg - Arg object.
|
|
87
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
88
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
89
|
+
* @returns {Promise<ContentApplicationModel.CustomObjectByIdSchema>} -
|
|
90
|
+
* Success response
|
|
91
|
+
* @name getCustomObject
|
|
92
|
+
* @summary: Get custom object details
|
|
93
|
+
* @description: Use this API to retrieve the custom object details, their fields details with definitions and references. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomObject/).
|
|
94
|
+
*/
|
|
95
|
+
getCustomObject({ metaobjectId, requestHeaders }?: ContentApplicationValidator.GetCustomObjectParam, { responseHeaders }?: object): Promise<ContentApplicationModel.CustomObjectByIdSchema>;
|
|
70
96
|
/**
|
|
71
97
|
* @param {ContentApplicationValidator.GetDataLoadersParam} arg - Arg object.
|
|
72
98
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -210,6 +236,16 @@ declare class Content {
|
|
|
210
236
|
* @description: Use this API to get the SEO details of an application, which includes a robot.txt, meta-tags and sitemap. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSEOConfiguration/).
|
|
211
237
|
*/
|
|
212
238
|
getSEOConfiguration({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ContentApplicationModel.SeoComponent>;
|
|
239
|
+
/**
|
|
240
|
+
* @param {ContentApplicationValidator.GetSEOMarkupSchemasParam} arg - Arg object.
|
|
241
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
242
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
243
|
+
* @returns {Promise<ContentApplicationModel.SeoSchemaComponent>} - Success response
|
|
244
|
+
* @name getSEOMarkupSchemas
|
|
245
|
+
* @summary: Get SEO Markup schemas of an application
|
|
246
|
+
* @description: Use this API to get all SEO Markup schema Templates setup for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSEOMarkupSchemas/).
|
|
247
|
+
*/
|
|
248
|
+
getSEOMarkupSchemas({ pageType, active, requestHeaders }?: ContentApplicationValidator.GetSEOMarkupSchemasParam, { responseHeaders }?: object): Promise<ContentApplicationModel.SeoSchemaComponent>;
|
|
213
249
|
/**
|
|
214
250
|
* @param {ContentApplicationValidator.GetSlideshowParam} arg - Arg object.
|
|
215
251
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|