@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.2
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/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +53 -60
- package/sdk/application/Cart/CartApplicationClient.js +53 -130
- package/sdk/application/Cart/CartApplicationModel.d.ts +143 -489
- package/sdk/application/Cart/CartApplicationModel.js +159 -380
- package/sdk/application/Cart/CartApplicationValidator.d.ts +19 -38
- package/sdk/application/Cart/CartApplicationValidator.js +18 -34
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +68 -88
- package/sdk/application/Catalog/CatalogApplicationClient.js +94 -114
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +142 -194
- package/sdk/application/Catalog/CatalogApplicationModel.js +133 -171
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -3
- package/sdk/application/Common/CommonApplicationClient.js +5 -6
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +57 -45
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +47 -35
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +33 -23
- package/sdk/application/Content/ContentApplicationClient.js +75 -54
- package/sdk/application/Content/ContentApplicationModel.d.ts +37 -93
- package/sdk/application/Content/ContentApplicationModel.js +32 -83
- package/sdk/application/Content/ContentApplicationValidator.d.ts +17 -23
- package/sdk/application/Content/ContentApplicationValidator.js +10 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +13 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +25 -23
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +18 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -2
- package/sdk/application/Lead/LeadApplicationClient.js +3 -2
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +21 -189
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +173 -532
- package/sdk/application/Logistic/LogisticApplicationModel.js +139 -409
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +9 -54
- package/sdk/application/Logistic/LogisticApplicationValidator.js +8 -42
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -24
- package/sdk/application/Order/OrderApplicationClient.js +13 -96
- package/sdk/application/Order/OrderApplicationModel.d.ts +120 -436
- package/sdk/application/Order/OrderApplicationModel.js +81 -279
- package/sdk/application/Order/OrderApplicationValidator.d.ts +3 -17
- package/sdk/application/Order/OrderApplicationValidator.js +2 -15
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +99 -96
- package/sdk/application/Payment/PaymentApplicationClient.js +114 -111
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +289 -293
- package/sdk/application/Payment/PaymentApplicationModel.js +241 -243
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +22 -19
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +6 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +17 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +22 -42
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +3 -16
- package/sdk/application/Theme/ThemeApplicationValidator.js +2 -9
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +9 -11
- package/sdk/application/Webhook/WebhookApplicationModel.js +6 -8
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +0 -1
- package/sdk/application/index.js +0 -2
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1321 -4975
- package/sdk/platform/Cart/CartPlatformModel.js +1226 -1922
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
- package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1751 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1224 -1393
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +124 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +94 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +36 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -15
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -83
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -16
- package/sdk/platform/Order/OrderPlatformClient.d.ts +97 -178
- package/sdk/platform/Order/OrderPlatformClient.js +245 -597
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3071 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1656 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +190 -237
- package/sdk/platform/Order/OrderPlatformValidator.js +105 -153
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
- package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +5 -791
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
- package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
- package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
|
@@ -26,12 +26,6 @@ const Joi = require("joi");
|
|
|
26
26
|
* @property {SeoSchema} [seo]
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
|
-
/**
|
|
30
|
-
* @typedef ValidationError
|
|
31
|
-
* @property {string} message - A brief description of the error encountered.
|
|
32
|
-
* @property {string} field - The field in the request that caused the error.
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
29
|
/**
|
|
36
30
|
* @typedef SeoSchema
|
|
37
31
|
* @property {string} [app] - Application ID - Identifier for a Sales channel.
|
|
@@ -117,7 +111,7 @@ const Joi = require("joi");
|
|
|
117
111
|
*/
|
|
118
112
|
|
|
119
113
|
/**
|
|
120
|
-
* @typedef
|
|
114
|
+
* @typedef BlogGetResponse
|
|
121
115
|
* @property {BlogSchema[]} [items] - List of blogs with details.
|
|
122
116
|
* @property {Page} [page]
|
|
123
117
|
* @property {BlogFilters} [filters]
|
|
@@ -420,7 +414,7 @@ const Joi = require("joi");
|
|
|
420
414
|
*/
|
|
421
415
|
|
|
422
416
|
/**
|
|
423
|
-
* @typedef
|
|
417
|
+
* @typedef NavigationGetResponse
|
|
424
418
|
* @property {NavigationSchema[]} [items] - List of navigation items.
|
|
425
419
|
* @property {Page} [page]
|
|
426
420
|
*/
|
|
@@ -452,7 +446,7 @@ const Joi = require("joi");
|
|
|
452
446
|
*/
|
|
453
447
|
|
|
454
448
|
/**
|
|
455
|
-
* @typedef
|
|
449
|
+
* @typedef PageGetResponse
|
|
456
450
|
* @property {PageSchema[]} [items] - List of details of custom pages.
|
|
457
451
|
* @property {Page} [page]
|
|
458
452
|
*/
|
|
@@ -493,7 +487,7 @@ const Joi = require("joi");
|
|
|
493
487
|
*/
|
|
494
488
|
|
|
495
489
|
/**
|
|
496
|
-
* @typedef
|
|
490
|
+
* @typedef SlideshowGetResponse
|
|
497
491
|
* @property {SlideshowSchema[]} [items] - Details related to slideshow/screensaver.
|
|
498
492
|
* @property {Page} [page]
|
|
499
493
|
*/
|
|
@@ -598,7 +592,7 @@ const Joi = require("joi");
|
|
|
598
592
|
/**
|
|
599
593
|
* @typedef CustomObjectFieldSchema
|
|
600
594
|
* @property {string} [_id] - Unique identifier of an entry.
|
|
601
|
-
* @property {string} [
|
|
595
|
+
* @property {string} [key] - Key of custom field inside custom object.
|
|
602
596
|
* @property {CustomObjectFieldValue[]} [value] - Value of custom field inside
|
|
603
597
|
* custom object.
|
|
604
598
|
* @property {string} [type] - Data type of custom field inside custom object.
|
|
@@ -608,7 +602,7 @@ const Joi = require("joi");
|
|
|
608
602
|
|
|
609
603
|
/**
|
|
610
604
|
* @typedef CustomObjectByIdSchema
|
|
611
|
-
* @property {string} [
|
|
605
|
+
* @property {string} [_id] - Unique identifier of an entry.
|
|
612
606
|
* @property {string} [status] - String denoting whether custom object is active
|
|
613
607
|
* or inactive.
|
|
614
608
|
* @property {string} [display_name] - Unique Display name of a custom object
|
|
@@ -629,8 +623,10 @@ const Joi = require("joi");
|
|
|
629
623
|
* @typedef CustomFieldSchema
|
|
630
624
|
* @property {string} [_id] - Unique identifier of an entry.
|
|
631
625
|
* @property {string} [namespace] - Namespace under which custom field is present.
|
|
632
|
-
* @property {string} [
|
|
626
|
+
* @property {string} [key] - Unique identifier for a custom field.
|
|
633
627
|
* @property {string} [resource] - Type of an entity under which custom field is defined.
|
|
628
|
+
* @property {string} [creator] - Denotes where the custom field has been
|
|
629
|
+
* defined - within a company or within a sales channel.
|
|
634
630
|
* @property {CustomFieldValue[]} [value] - Array containing values of custom field.
|
|
635
631
|
* @property {string} [resource_id] - Unique identifier for the entity under
|
|
636
632
|
* which custom field is defined.
|
|
@@ -643,6 +639,7 @@ const Joi = require("joi");
|
|
|
643
639
|
* @property {boolean} [has_invalid_values] - Whether the custom field has invalid values.
|
|
644
640
|
* @property {Object[]} [invalid_value_errors] - Array denoting if there's a
|
|
645
641
|
* validation failure on a custom field inside a custom object.
|
|
642
|
+
* @property {string} [created_by] - Details of the owner of custom field creator.
|
|
646
643
|
* @property {boolean} [is_deleted] - Whether the custom field definition is deleted.
|
|
647
644
|
* @property {string} [created_at] - Timestamp which represent the time when
|
|
648
645
|
* data was created.
|
|
@@ -655,25 +652,6 @@ const Joi = require("joi");
|
|
|
655
652
|
* @property {CustomFieldSchema[]} [items] - List of custom fields against a resource.
|
|
656
653
|
*/
|
|
657
654
|
|
|
658
|
-
/**
|
|
659
|
-
* @typedef CustomObjectListItemSchema
|
|
660
|
-
* @property {string} [_id] - Unique system generated if for a custom object
|
|
661
|
-
* @property {string} [definition_id] - Unique system generated id for a custom
|
|
662
|
-
* object definition
|
|
663
|
-
* @property {string} [status] - Flag to denote whether custom object is active or not
|
|
664
|
-
* @property {string} [updated_at] - Updation time of custom object entry
|
|
665
|
-
* @property {string} [display_name] - A custom field inside custom object used
|
|
666
|
-
* to display the entry of custom object in listing
|
|
667
|
-
* @property {CustomObjectListItemDefinationSchema} [definition]
|
|
668
|
-
* @property {number} [references]
|
|
669
|
-
*/
|
|
670
|
-
|
|
671
|
-
/**
|
|
672
|
-
* @typedef CustomObjectsSchema
|
|
673
|
-
* @property {CustomObjectListItemSchema[]} [items]
|
|
674
|
-
* @property {Page} [page]
|
|
675
|
-
*/
|
|
676
|
-
|
|
677
655
|
/**
|
|
678
656
|
* @typedef ActionPage
|
|
679
657
|
* @property {Object} [params] - Parameters that should be considered in path.
|
|
@@ -764,14 +742,6 @@ class ContentApplicationModel {
|
|
|
764
742
|
});
|
|
765
743
|
}
|
|
766
744
|
|
|
767
|
-
/** @returns {ValidationError} */
|
|
768
|
-
static ValidationError() {
|
|
769
|
-
return Joi.object({
|
|
770
|
-
message: Joi.string().allow("").required(),
|
|
771
|
-
field: Joi.string().allow("").required(),
|
|
772
|
-
});
|
|
773
|
-
}
|
|
774
|
-
|
|
775
745
|
/** @returns {SeoSchema} */
|
|
776
746
|
static SeoSchema() {
|
|
777
747
|
return Joi.object({
|
|
@@ -867,8 +837,8 @@ class ContentApplicationModel {
|
|
|
867
837
|
});
|
|
868
838
|
}
|
|
869
839
|
|
|
870
|
-
/** @returns {
|
|
871
|
-
static
|
|
840
|
+
/** @returns {BlogGetResponse} */
|
|
841
|
+
static BlogGetResponse() {
|
|
872
842
|
return Joi.object({
|
|
873
843
|
items: Joi.array().items(ContentApplicationModel.BlogSchema()),
|
|
874
844
|
page: ContentApplicationModel.Page(),
|
|
@@ -913,7 +883,7 @@ class ContentApplicationModel {
|
|
|
913
883
|
static BlogSchema() {
|
|
914
884
|
return Joi.object({
|
|
915
885
|
_id: Joi.string().allow(""),
|
|
916
|
-
_custom_json: Joi.
|
|
886
|
+
_custom_json: Joi.any(),
|
|
917
887
|
application: Joi.string().allow(""),
|
|
918
888
|
archived: Joi.boolean(),
|
|
919
889
|
author: ContentApplicationModel.Author(),
|
|
@@ -1112,7 +1082,7 @@ class ContentApplicationModel {
|
|
|
1112
1082
|
info: Joi.string().allow(""),
|
|
1113
1083
|
request_id: Joi.string().allow(""),
|
|
1114
1084
|
stack_trace: Joi.string().allow(""),
|
|
1115
|
-
meta: Joi.
|
|
1085
|
+
meta: Joi.any(),
|
|
1116
1086
|
});
|
|
1117
1087
|
}
|
|
1118
1088
|
|
|
@@ -1134,7 +1104,7 @@ class ContentApplicationModel {
|
|
|
1134
1104
|
slug: Joi.string().allow(""),
|
|
1135
1105
|
application: Joi.string().allow(""),
|
|
1136
1106
|
icon_url: Joi.string().allow(""),
|
|
1137
|
-
_custom_json: Joi.
|
|
1107
|
+
_custom_json: Joi.any(),
|
|
1138
1108
|
});
|
|
1139
1109
|
}
|
|
1140
1110
|
|
|
@@ -1160,7 +1130,7 @@ class ContentApplicationModel {
|
|
|
1160
1130
|
slug: Joi.string().allow(""),
|
|
1161
1131
|
application: Joi.string().allow(""),
|
|
1162
1132
|
icon_url: Joi.string().allow(""),
|
|
1163
|
-
_custom_json: Joi.
|
|
1133
|
+
_custom_json: Joi.any(),
|
|
1164
1134
|
});
|
|
1165
1135
|
}
|
|
1166
1136
|
|
|
@@ -1221,12 +1191,12 @@ class ContentApplicationModel {
|
|
|
1221
1191
|
_id: Joi.string().allow(""),
|
|
1222
1192
|
application: Joi.string().allow(""),
|
|
1223
1193
|
archived: Joi.boolean(),
|
|
1224
|
-
_custom_json: Joi.
|
|
1194
|
+
_custom_json: Joi.any(),
|
|
1225
1195
|
});
|
|
1226
1196
|
}
|
|
1227
1197
|
|
|
1228
|
-
/** @returns {
|
|
1229
|
-
static
|
|
1198
|
+
/** @returns {NavigationGetResponse} */
|
|
1199
|
+
static NavigationGetResponse() {
|
|
1230
1200
|
return Joi.object({
|
|
1231
1201
|
items: Joi.array().items(ContentApplicationModel.NavigationSchema()),
|
|
1232
1202
|
page: ContentApplicationModel.Page(),
|
|
@@ -1260,8 +1230,8 @@ class ContentApplicationModel {
|
|
|
1260
1230
|
});
|
|
1261
1231
|
}
|
|
1262
1232
|
|
|
1263
|
-
/** @returns {
|
|
1264
|
-
static
|
|
1233
|
+
/** @returns {PageGetResponse} */
|
|
1234
|
+
static PageGetResponse() {
|
|
1265
1235
|
return Joi.object({
|
|
1266
1236
|
items: Joi.array().items(ContentApplicationModel.PageSchema()),
|
|
1267
1237
|
page: ContentApplicationModel.Page(),
|
|
@@ -1282,7 +1252,7 @@ class ContentApplicationModel {
|
|
|
1282
1252
|
feature_image: ContentApplicationModel.Asset(),
|
|
1283
1253
|
page_meta: Joi.array().items(Joi.any()),
|
|
1284
1254
|
_schedule: ContentApplicationModel.ScheduleSchema(),
|
|
1285
|
-
_custom_json: Joi.
|
|
1255
|
+
_custom_json: Joi.any(),
|
|
1286
1256
|
orientation: Joi.string().allow(""),
|
|
1287
1257
|
platform: Joi.string().allow(""),
|
|
1288
1258
|
published: Joi.boolean(),
|
|
@@ -1291,7 +1261,7 @@ class ContentApplicationModel {
|
|
|
1291
1261
|
title: Joi.string().allow(""),
|
|
1292
1262
|
type: Joi.string().allow(""),
|
|
1293
1263
|
seo: ContentApplicationModel.SEO(),
|
|
1294
|
-
visibility: Joi.
|
|
1264
|
+
visibility: Joi.any(),
|
|
1295
1265
|
archived: Joi.boolean(),
|
|
1296
1266
|
});
|
|
1297
1267
|
}
|
|
@@ -1303,8 +1273,8 @@ class ContentApplicationModel {
|
|
|
1303
1273
|
});
|
|
1304
1274
|
}
|
|
1305
1275
|
|
|
1306
|
-
/** @returns {
|
|
1307
|
-
static
|
|
1276
|
+
/** @returns {SlideshowGetResponse} */
|
|
1277
|
+
static SlideshowGetResponse() {
|
|
1308
1278
|
return Joi.object({
|
|
1309
1279
|
items: Joi.array().items(ContentApplicationModel.SlideshowSchema()),
|
|
1310
1280
|
page: ContentApplicationModel.Page(),
|
|
@@ -1323,7 +1293,7 @@ class ContentApplicationModel {
|
|
|
1323
1293
|
media: Joi.array().items(ContentApplicationModel.SlideshowMedia()),
|
|
1324
1294
|
active: Joi.boolean(),
|
|
1325
1295
|
archived: Joi.boolean(),
|
|
1326
|
-
_custom_json: Joi.
|
|
1296
|
+
_custom_json: Joi.any(),
|
|
1327
1297
|
});
|
|
1328
1298
|
}
|
|
1329
1299
|
|
|
@@ -1399,7 +1369,7 @@ class ContentApplicationModel {
|
|
|
1399
1369
|
sub_type: Joi.string().allow(""),
|
|
1400
1370
|
_id: Joi.string().allow(""),
|
|
1401
1371
|
position: Joi.string().allow(""),
|
|
1402
|
-
attributes: Joi.
|
|
1372
|
+
attributes: Joi.any(),
|
|
1403
1373
|
content: Joi.string().allow(""),
|
|
1404
1374
|
pages: Joi.array().items(Joi.any()),
|
|
1405
1375
|
__source: ContentApplicationModel.TagSourceSchema(),
|
|
@@ -1434,7 +1404,7 @@ class ContentApplicationModel {
|
|
|
1434
1404
|
static CustomObjectFieldSchema() {
|
|
1435
1405
|
return Joi.object({
|
|
1436
1406
|
_id: Joi.string().allow(""),
|
|
1437
|
-
|
|
1407
|
+
key: Joi.string().allow(""),
|
|
1438
1408
|
value: Joi.array().items(
|
|
1439
1409
|
ContentApplicationModel.CustomObjectFieldValue()
|
|
1440
1410
|
),
|
|
@@ -1446,7 +1416,7 @@ class ContentApplicationModel {
|
|
|
1446
1416
|
/** @returns {CustomObjectByIdSchema} */
|
|
1447
1417
|
static CustomObjectByIdSchema() {
|
|
1448
1418
|
return Joi.object({
|
|
1449
|
-
|
|
1419
|
+
_id: Joi.string().allow(""),
|
|
1450
1420
|
status: Joi.string().allow(""),
|
|
1451
1421
|
display_name: Joi.string().allow(""),
|
|
1452
1422
|
definition: ContentApplicationModel.CustomObjectListItemDefinationSchema(),
|
|
@@ -1469,8 +1439,9 @@ class ContentApplicationModel {
|
|
|
1469
1439
|
return Joi.object({
|
|
1470
1440
|
_id: Joi.string().allow(""),
|
|
1471
1441
|
namespace: Joi.string().allow(""),
|
|
1472
|
-
|
|
1442
|
+
key: Joi.string().allow(""),
|
|
1473
1443
|
resource: Joi.string().allow(""),
|
|
1444
|
+
creator: Joi.string().allow(""),
|
|
1474
1445
|
value: Joi.array().items(ContentApplicationModel.CustomFieldValue()),
|
|
1475
1446
|
resource_id: Joi.string().allow(""),
|
|
1476
1447
|
type: Joi.string().allow(""),
|
|
@@ -1480,6 +1451,7 @@ class ContentApplicationModel {
|
|
|
1480
1451
|
definition_id: Joi.string().allow(""),
|
|
1481
1452
|
has_invalid_values: Joi.boolean(),
|
|
1482
1453
|
invalid_value_errors: Joi.array().items(Joi.any()),
|
|
1454
|
+
created_by: Joi.string().allow(""),
|
|
1483
1455
|
is_deleted: Joi.boolean(),
|
|
1484
1456
|
created_at: Joi.string().allow(""),
|
|
1485
1457
|
updated_at: Joi.string().allow(""),
|
|
@@ -1493,29 +1465,6 @@ class ContentApplicationModel {
|
|
|
1493
1465
|
});
|
|
1494
1466
|
}
|
|
1495
1467
|
|
|
1496
|
-
/** @returns {CustomObjectListItemSchema} */
|
|
1497
|
-
static CustomObjectListItemSchema() {
|
|
1498
|
-
return Joi.object({
|
|
1499
|
-
_id: Joi.string().allow(""),
|
|
1500
|
-
definition_id: Joi.string().allow(""),
|
|
1501
|
-
status: Joi.string().allow(""),
|
|
1502
|
-
updated_at: Joi.string().allow(""),
|
|
1503
|
-
display_name: Joi.string().allow(""),
|
|
1504
|
-
definition: ContentApplicationModel.CustomObjectListItemDefinationSchema(),
|
|
1505
|
-
references: Joi.number(),
|
|
1506
|
-
});
|
|
1507
|
-
}
|
|
1508
|
-
|
|
1509
|
-
/** @returns {CustomObjectsSchema} */
|
|
1510
|
-
static CustomObjectsSchema() {
|
|
1511
|
-
return Joi.object({
|
|
1512
|
-
items: Joi.array().items(
|
|
1513
|
-
ContentApplicationModel.CustomObjectListItemSchema()
|
|
1514
|
-
),
|
|
1515
|
-
page: ContentApplicationModel.Page(),
|
|
1516
|
-
});
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
1468
|
/** @returns {ActionPage} */
|
|
1520
1469
|
static ActionPage() {
|
|
1521
1470
|
return Joi.object({
|
|
@@ -6,7 +6,6 @@ export = ContentApplicationValidator;
|
|
|
6
6
|
* a blog. You can get slug value from the endpoint
|
|
7
7
|
* /service/application/content/v1.0/blogs/.
|
|
8
8
|
* @property {string} [rootId] - ID given to the HTML element.
|
|
9
|
-
* @property {boolean} [preview] - Boolean value to get the preview for the blogs.
|
|
10
9
|
*/
|
|
11
10
|
/**
|
|
12
11
|
* @typedef GetBlogsParam
|
|
@@ -17,16 +16,14 @@ export = ContentApplicationValidator;
|
|
|
17
16
|
* @property {string} [search] - Blogs retrieve based on the title.
|
|
18
17
|
*/
|
|
19
18
|
/**
|
|
20
|
-
* @typedef
|
|
19
|
+
* @typedef GetCustomFieldsParam
|
|
21
20
|
* @property {string} resource - This is the name of resource for which you want
|
|
22
21
|
* to fetch custom fields eg. product, collection, customer etc.
|
|
23
|
-
* @property {string}
|
|
24
|
-
* fields created
|
|
22
|
+
* @property {string} resourceId - This is the resource id for which custom fields created
|
|
25
23
|
*/
|
|
26
24
|
/**
|
|
27
|
-
* @typedef
|
|
28
|
-
* @property {string}
|
|
29
|
-
* @property {string} slug
|
|
25
|
+
* @typedef GetCustomObjectParam
|
|
26
|
+
* @property {string} metaobjectId - This is meta object id
|
|
30
27
|
*/
|
|
31
28
|
/** @typedef GetDataLoadersParam */
|
|
32
29
|
/**
|
|
@@ -98,10 +95,10 @@ declare class ContentApplicationValidator {
|
|
|
98
95
|
static getBlog(): GetBlogParam;
|
|
99
96
|
/** @returns {GetBlogsParam} */
|
|
100
97
|
static getBlogs(): GetBlogsParam;
|
|
101
|
-
/** @returns {
|
|
102
|
-
static
|
|
103
|
-
/** @returns {
|
|
104
|
-
static
|
|
98
|
+
/** @returns {GetCustomFieldsParam} */
|
|
99
|
+
static getCustomFields(): GetCustomFieldsParam;
|
|
100
|
+
/** @returns {GetCustomObjectParam} */
|
|
101
|
+
static getCustomObject(): GetCustomObjectParam;
|
|
105
102
|
/** @returns {GetDataLoadersParam} */
|
|
106
103
|
static getDataLoaders(): any;
|
|
107
104
|
/** @returns {GetFaqBySlugParam} */
|
|
@@ -138,7 +135,7 @@ declare class ContentApplicationValidator {
|
|
|
138
135
|
static getTags(): any;
|
|
139
136
|
}
|
|
140
137
|
declare namespace ContentApplicationValidator {
|
|
141
|
-
export { GetAnnouncementsParam, GetBlogParam, GetBlogsParam,
|
|
138
|
+
export { GetAnnouncementsParam, GetBlogParam, GetBlogsParam, GetCustomFieldsParam, GetCustomObjectParam, GetDataLoadersParam, GetFaqBySlugParam, GetFaqCategoriesParam, GetFaqCategoryBySlugParam, GetFaqsParam, GetFaqsByCategorySlugParam, GetLandingPageParam, GetLegalInformationParam, GetNavigationsParam, GetPageParam, GetPagesParam, GetSEOConfigurationParam, GetSEOMarkupSchemasParam, GetSlideshowParam, GetSlideshowsParam, GetSupportInformationParam, GetTagsParam };
|
|
142
139
|
}
|
|
143
140
|
type GetBlogParam = {
|
|
144
141
|
/**
|
|
@@ -151,10 +148,6 @@ type GetBlogParam = {
|
|
|
151
148
|
* - ID given to the HTML element.
|
|
152
149
|
*/
|
|
153
150
|
rootId?: string;
|
|
154
|
-
/**
|
|
155
|
-
* - Boolean value to get the preview for the blogs.
|
|
156
|
-
*/
|
|
157
|
-
preview?: boolean;
|
|
158
151
|
};
|
|
159
152
|
type GetBlogsParam = {
|
|
160
153
|
/**
|
|
@@ -175,21 +168,22 @@ type GetBlogsParam = {
|
|
|
175
168
|
*/
|
|
176
169
|
search?: string;
|
|
177
170
|
};
|
|
178
|
-
type
|
|
171
|
+
type GetCustomFieldsParam = {
|
|
179
172
|
/**
|
|
180
173
|
* - This is the name of resource for which you want
|
|
181
174
|
* to fetch custom fields eg. product, collection, customer etc.
|
|
182
175
|
*/
|
|
183
176
|
resource: string;
|
|
184
177
|
/**
|
|
185
|
-
* - This is the resource id for which custom
|
|
186
|
-
* fields created
|
|
178
|
+
* - This is the resource id for which custom fields created
|
|
187
179
|
*/
|
|
188
|
-
|
|
180
|
+
resourceId: string;
|
|
189
181
|
};
|
|
190
|
-
type
|
|
191
|
-
|
|
192
|
-
|
|
182
|
+
type GetCustomObjectParam = {
|
|
183
|
+
/**
|
|
184
|
+
* - This is meta object id
|
|
185
|
+
*/
|
|
186
|
+
metaobjectId: string;
|
|
193
187
|
};
|
|
194
188
|
type GetFaqBySlugParam = {
|
|
195
189
|
/**
|
|
@@ -10,7 +10,6 @@ const ContentApplicationModel = require("./ContentApplicationModel");
|
|
|
10
10
|
* a blog. You can get slug value from the endpoint
|
|
11
11
|
* /service/application/content/v1.0/blogs/.
|
|
12
12
|
* @property {string} [rootId] - ID given to the HTML element.
|
|
13
|
-
* @property {boolean} [preview] - Boolean value to get the preview for the blogs.
|
|
14
13
|
*/
|
|
15
14
|
|
|
16
15
|
/**
|
|
@@ -23,17 +22,15 @@ const ContentApplicationModel = require("./ContentApplicationModel");
|
|
|
23
22
|
*/
|
|
24
23
|
|
|
25
24
|
/**
|
|
26
|
-
* @typedef
|
|
25
|
+
* @typedef GetCustomFieldsParam
|
|
27
26
|
* @property {string} resource - This is the name of resource for which you want
|
|
28
27
|
* to fetch custom fields eg. product, collection, customer etc.
|
|
29
|
-
* @property {string}
|
|
30
|
-
* fields created
|
|
28
|
+
* @property {string} resourceId - This is the resource id for which custom fields created
|
|
31
29
|
*/
|
|
32
30
|
|
|
33
31
|
/**
|
|
34
|
-
* @typedef
|
|
35
|
-
* @property {string}
|
|
36
|
-
* @property {string} slug
|
|
32
|
+
* @typedef GetCustomObjectParam
|
|
33
|
+
* @property {string} metaobjectId - This is meta object id
|
|
37
34
|
*/
|
|
38
35
|
|
|
39
36
|
/** @typedef GetDataLoadersParam */
|
|
@@ -127,7 +124,6 @@ class ContentApplicationValidator {
|
|
|
127
124
|
return Joi.object({
|
|
128
125
|
slug: Joi.string().allow("").required(),
|
|
129
126
|
rootId: Joi.string().allow(""),
|
|
130
|
-
preview: Joi.boolean(),
|
|
131
127
|
}).required();
|
|
132
128
|
}
|
|
133
129
|
|
|
@@ -141,19 +137,18 @@ class ContentApplicationValidator {
|
|
|
141
137
|
});
|
|
142
138
|
}
|
|
143
139
|
|
|
144
|
-
/** @returns {
|
|
145
|
-
static
|
|
140
|
+
/** @returns {GetCustomFieldsParam} */
|
|
141
|
+
static getCustomFields() {
|
|
146
142
|
return Joi.object({
|
|
147
143
|
resource: Joi.string().allow("").required(),
|
|
148
|
-
|
|
144
|
+
resourceId: Joi.string().allow("").required(),
|
|
149
145
|
}).required();
|
|
150
146
|
}
|
|
151
147
|
|
|
152
|
-
/** @returns {
|
|
153
|
-
static
|
|
148
|
+
/** @returns {GetCustomObjectParam} */
|
|
149
|
+
static getCustomObject() {
|
|
154
150
|
return Joi.object({
|
|
155
|
-
|
|
156
|
-
slug: Joi.string().allow("").required(),
|
|
151
|
+
metaobjectId: Joi.string().allow("").required(),
|
|
157
152
|
}).required();
|
|
158
153
|
}
|
|
159
154
|
|
|
@@ -13,33 +13,32 @@ declare class FileStorage {
|
|
|
13
13
|
* @param {FileStorageApplicationValidator.CompleteUploadParam} arg - Arg object.
|
|
14
14
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
15
15
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
16
|
-
* @returns {Promise<FileStorageApplicationModel.
|
|
17
|
-
* Success response
|
|
16
|
+
* @returns {Promise<FileStorageApplicationModel.CompleteResponse>} - Success response
|
|
18
17
|
* @name completeUpload
|
|
19
|
-
* @summary:
|
|
18
|
+
* @summary: Complete file upload
|
|
20
19
|
* @description: Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/completeUpload/).
|
|
21
20
|
*/
|
|
22
|
-
completeUpload({ namespace, body, requestHeaders }?: FileStorageApplicationValidator.CompleteUploadParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.
|
|
21
|
+
completeUpload({ namespace, body, requestHeaders }?: FileStorageApplicationValidator.CompleteUploadParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.CompleteResponse>;
|
|
23
22
|
/**
|
|
24
23
|
* @param {FileStorageApplicationValidator.SignUrlsParam} arg - Arg object.
|
|
25
24
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
26
25
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
27
|
-
* @returns {Promise<FileStorageApplicationModel.
|
|
26
|
+
* @returns {Promise<FileStorageApplicationModel.SignUrlResponse>} - Success response
|
|
28
27
|
* @name signUrls
|
|
29
|
-
* @summary:
|
|
28
|
+
* @summary: Get signed URLs
|
|
30
29
|
* @description: Generates secure, signed URLs that is valid for certain expiry time for accessing stored files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/signUrls/).
|
|
31
30
|
*/
|
|
32
|
-
signUrls({ body, requestHeaders }?: FileStorageApplicationValidator.SignUrlsParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.
|
|
31
|
+
signUrls({ body, requestHeaders }?: FileStorageApplicationValidator.SignUrlsParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.SignUrlResponse>;
|
|
33
32
|
/**
|
|
34
33
|
* @param {FileStorageApplicationValidator.StartUploadParam} arg - Arg object.
|
|
35
34
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
36
35
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
37
|
-
* @returns {Promise<FileStorageApplicationModel.
|
|
36
|
+
* @returns {Promise<FileStorageApplicationModel.StartResponse>} - Success response
|
|
38
37
|
* @name startUpload
|
|
39
38
|
* @summary: Initiates file upload
|
|
40
39
|
* @description: Starts the process of uploading a file to storage location, and returns a signed url in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/startUpload/).
|
|
41
40
|
*/
|
|
42
|
-
startUpload({ namespace, body, requestHeaders }?: FileStorageApplicationValidator.StartUploadParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.
|
|
41
|
+
startUpload({ namespace, body, requestHeaders }?: FileStorageApplicationValidator.StartUploadParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.StartResponse>;
|
|
43
42
|
/**
|
|
44
43
|
* @param data
|
|
45
44
|
* @param {string} file_name
|
|
@@ -16,10 +16,10 @@ class FileStorage {
|
|
|
16
16
|
this._conf = _conf;
|
|
17
17
|
this._relativeUrls = {
|
|
18
18
|
completeUpload:
|
|
19
|
-
"/service/application/assets/
|
|
19
|
+
"/service/application/assets/v1.0/namespaces/{namespace}/upload/complete",
|
|
20
20
|
signUrls: "/service/application/assets/v1.0/sign-urls",
|
|
21
21
|
startUpload:
|
|
22
|
-
"/service/application/assets/
|
|
22
|
+
"/service/application/assets/v1.0/namespaces/{namespace}/upload/start",
|
|
23
23
|
};
|
|
24
24
|
this._urls = Object.entries(this._relativeUrls).reduce(
|
|
25
25
|
(urls, [method, relativeUrl]) => {
|
|
@@ -41,10 +41,9 @@ class FileStorage {
|
|
|
41
41
|
* @param {FileStorageApplicationValidator.CompleteUploadParam} arg - Arg object.
|
|
42
42
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
43
43
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
44
|
-
* @returns {Promise<FileStorageApplicationModel.
|
|
45
|
-
* Success response
|
|
44
|
+
* @returns {Promise<FileStorageApplicationModel.CompleteResponse>} - Success response
|
|
46
45
|
* @name completeUpload
|
|
47
|
-
* @summary:
|
|
46
|
+
* @summary: Complete file upload
|
|
48
47
|
* @description: Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/completeUpload/).
|
|
49
48
|
*/
|
|
50
49
|
async completeUpload(
|
|
@@ -97,10 +96,10 @@ class FileStorage {
|
|
|
97
96
|
|
|
98
97
|
const {
|
|
99
98
|
error: res_error,
|
|
100
|
-
} = FileStorageApplicationModel.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
);
|
|
99
|
+
} = FileStorageApplicationModel.CompleteResponse().validate(responseData, {
|
|
100
|
+
abortEarly: false,
|
|
101
|
+
allowUnknown: true,
|
|
102
|
+
});
|
|
104
103
|
|
|
105
104
|
if (res_error) {
|
|
106
105
|
if (this._conf.options.strictResponseCheck === true) {
|
|
@@ -120,9 +119,9 @@ class FileStorage {
|
|
|
120
119
|
* @param {FileStorageApplicationValidator.SignUrlsParam} arg - Arg object.
|
|
121
120
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
122
121
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
123
|
-
* @returns {Promise<FileStorageApplicationModel.
|
|
122
|
+
* @returns {Promise<FileStorageApplicationModel.SignUrlResponse>} - Success response
|
|
124
123
|
* @name signUrls
|
|
125
|
-
* @summary:
|
|
124
|
+
* @summary: Get signed URLs
|
|
126
125
|
* @description: Generates secure, signed URLs that is valid for certain expiry time for accessing stored files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/signUrls/).
|
|
127
126
|
*/
|
|
128
127
|
async signUrls(
|
|
@@ -175,7 +174,7 @@ class FileStorage {
|
|
|
175
174
|
|
|
176
175
|
const {
|
|
177
176
|
error: res_error,
|
|
178
|
-
} = FileStorageApplicationModel.
|
|
177
|
+
} = FileStorageApplicationModel.SignUrlResponse().validate(responseData, {
|
|
179
178
|
abortEarly: false,
|
|
180
179
|
allowUnknown: true,
|
|
181
180
|
});
|
|
@@ -198,7 +197,7 @@ class FileStorage {
|
|
|
198
197
|
* @param {FileStorageApplicationValidator.StartUploadParam} arg - Arg object.
|
|
199
198
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
200
199
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
201
|
-
* @returns {Promise<FileStorageApplicationModel.
|
|
200
|
+
* @returns {Promise<FileStorageApplicationModel.StartResponse>} - Success response
|
|
202
201
|
* @name startUpload
|
|
203
202
|
* @summary: Initiates file upload
|
|
204
203
|
* @description: Starts the process of uploading a file to storage location, and returns a signed url in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/startUpload/).
|
|
@@ -253,7 +252,7 @@ class FileStorage {
|
|
|
253
252
|
|
|
254
253
|
const {
|
|
255
254
|
error: res_error,
|
|
256
|
-
} = FileStorageApplicationModel.
|
|
255
|
+
} = FileStorageApplicationModel.StartResponse().validate(responseData, {
|
|
257
256
|
abortEarly: false,
|
|
258
257
|
allowUnknown: true,
|
|
259
258
|
});
|