@gofynd/fdk-client-javascript 1.4.15-beta.14 → 1.4.15-beta.15
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 +23 -26
- package/package.json +5 -1
- package/sdk/application/ApplicationClient.d.ts +5 -6
- package/sdk/application/ApplicationClient.js +24 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
- package/sdk/application/Cart/CartApplicationClient.js +444 -76
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
- package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -4
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
- package/sdk/application/Content/ContentApplicationClient.js +274 -111
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
- package/sdk/application/Lead/LeadApplicationClient.js +6 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
- package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
- package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
- package/sdk/application/Order/OrderApplicationClient.js +217 -17
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
- package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
- package/sdk/application/User/UserApplicationClient.d.ts +103 -53
- package/sdk/application/User/UserApplicationClient.js +308 -49
- package/sdk/common/AxiosHelper.js +11 -4
- package/sdk/common/Constant.d.ts +27 -4
- package/sdk/common/Constant.js +33 -6
- package/sdk/common/utils.d.ts +10 -0
- package/sdk/common/utils.js +24 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
- package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
- package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
- package/sdk/partner/PartnerClient.d.ts +5 -2
- package/sdk/partner/PartnerClient.js +21 -7
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
- package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
- package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
- package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +266 -203
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
- package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
- package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
- package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9573 -2678
- package/sdk/platform/Catalog/CatalogPlatformModel.js +5033 -1973
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
- package/sdk/platform/Common/CommonPlatformModel.js +25 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
- package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
- package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
- package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
- package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
- package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
- package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
- package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
- package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
- package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
- package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
- package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
- package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
- package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
- package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
- package/sdk/platform/PlatformApplicationClient.js +0 -4
- package/sdk/platform/PlatformClient.d.ts +5 -4
- package/sdk/platform/PlatformClient.js +32 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
- package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
- package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
- package/sdk/platform/Share/SharePlatformModel.js +31 -6
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
- package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
- package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
- package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
- package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
- package/sdk/platform/User/UserPlatformModel.js +607 -46
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
- package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
- package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -2
- package/sdk/platform/index.js +0 -4
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
- package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
- package/sdk/public/Content/ContentPublicClient.js +1067 -17
- package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
- package/sdk/public/Content/ContentPublicModel.js +751 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
- package/sdk/public/Content/ContentPublicValidator.js +119 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +1 -1
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/PublicClient.d.ts +5 -2
- package/sdk/public/PublicClient.js +16 -6
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +81 -61
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/utility.d.ts +3 -0
- package/utility.js +7 -0
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
- package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
- package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
|
@@ -1,10 +1,267 @@
|
|
|
1
1
|
export = ContentPublicModel;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef BasicDetailsPayloadSchema
|
|
4
|
+
* @property {string} [name]
|
|
5
|
+
* @property {string} [logo_url]
|
|
6
|
+
* @property {string} [favicon_url]
|
|
7
|
+
* @property {string} [title]
|
|
8
|
+
* @property {string} [meta_title]
|
|
9
|
+
* @property {string} [meta_description]
|
|
10
|
+
* @property {string} [meta_image]
|
|
11
|
+
* @property {WhatsNew[]} [whats_new]
|
|
12
|
+
* @property {Features[]} [features]
|
|
13
|
+
* @property {Object} [authentication]
|
|
14
|
+
* @property {BusinessAccount} [business_account]
|
|
15
|
+
* @property {SellerSupport} [seller_support]
|
|
16
|
+
* @property {string} [copyright]
|
|
17
|
+
* @property {string} [address]
|
|
18
|
+
* @property {string} [documentation_url]
|
|
19
|
+
* @property {string} [faq_url]
|
|
20
|
+
* @property {string} [facebook_url]
|
|
21
|
+
* @property {string} [instagram_url]
|
|
22
|
+
* @property {string} [privacy_url]
|
|
23
|
+
* @property {string} [twitter_url]
|
|
24
|
+
* @property {string} [termsofservice_url]
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* @typedef WhatsNew
|
|
28
|
+
* @property {string} [description]
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* @typedef Features
|
|
32
|
+
* @property {string} [title]
|
|
33
|
+
* @property {string} [text]
|
|
34
|
+
* @property {string[]} [list]
|
|
35
|
+
* @property {string} [image]
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* @typedef BusinessAccount
|
|
39
|
+
* @property {boolean} [is_limit]
|
|
40
|
+
* @property {number} [threshold]
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* @typedef SellerSupport
|
|
44
|
+
* @property {string} [email]
|
|
45
|
+
* @property {number} [phone_number]
|
|
46
|
+
*/
|
|
47
|
+
/**
|
|
48
|
+
* @typedef MenuSchema
|
|
49
|
+
* @property {SalesChannelSchema} [sales_channel]
|
|
50
|
+
* @property {OtherSellerSchema} [other_seller]
|
|
51
|
+
* @property {FooterContentSchema} [footer_content]
|
|
52
|
+
* @property {boolean} [can_create_business_account]
|
|
53
|
+
* @property {CompanyLevelMenuItemSchema[]} [company_level]
|
|
54
|
+
* @property {ApplicationLevelMenuItemSchema[]} [application_level]
|
|
55
|
+
*/
|
|
56
|
+
/**
|
|
57
|
+
* @typedef MenusSchema
|
|
58
|
+
* @property {string} [_id]
|
|
59
|
+
* @property {MenuTypeSchema} [desktop]
|
|
60
|
+
* @property {MenuTypeSchema} [mobile]
|
|
61
|
+
* @property {number} [__v]
|
|
62
|
+
*/
|
|
63
|
+
/**
|
|
64
|
+
* @typedef MenuTypeSchema
|
|
65
|
+
* @property {MenuSchema} [menu]
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* @typedef CompanyLevelMenuItemSchema
|
|
69
|
+
* @property {VisibleOnSchema} [visible_on]
|
|
70
|
+
* @property {string} [display]
|
|
71
|
+
* @property {string[]} [permissions]
|
|
72
|
+
* @property {string} [title]
|
|
73
|
+
* @property {string} [link]
|
|
74
|
+
* @property {string} [icon]
|
|
75
|
+
* @property {boolean} [is_disabled]
|
|
76
|
+
* @property {CompanyLevelMenuItemSchema[]} [child]
|
|
77
|
+
*/
|
|
78
|
+
/**
|
|
79
|
+
* @typedef ApplicationLevelMenuItemSchema
|
|
80
|
+
* @property {VisibleOnSchema} [visible_on]
|
|
81
|
+
* @property {string} [display]
|
|
82
|
+
* @property {string[]} [permissions]
|
|
83
|
+
* @property {string} [title]
|
|
84
|
+
* @property {string} [link]
|
|
85
|
+
* @property {string} [icon]
|
|
86
|
+
* @property {boolean} [is_disabled]
|
|
87
|
+
* @property {ApplicationLevelMenuItemSchema[]} [child]
|
|
88
|
+
*/
|
|
89
|
+
/**
|
|
90
|
+
* @typedef VisibleOnSchema
|
|
91
|
+
* @property {boolean} [web]
|
|
92
|
+
* @property {boolean} [ios]
|
|
93
|
+
* @property {boolean} [android]
|
|
94
|
+
*/
|
|
95
|
+
/**
|
|
96
|
+
* @typedef SalesChannelSchema
|
|
97
|
+
* @property {boolean} [can_add]
|
|
98
|
+
* @property {string} [title]
|
|
99
|
+
*/
|
|
100
|
+
/**
|
|
101
|
+
* @typedef OtherSellerSchema
|
|
102
|
+
* @property {boolean} [is_visible]
|
|
103
|
+
* @property {string} [title]
|
|
104
|
+
*/
|
|
105
|
+
/**
|
|
106
|
+
* @typedef FooterContentSchema
|
|
107
|
+
* @property {boolean} [is_visible]
|
|
108
|
+
* @property {string} [line_one]
|
|
109
|
+
* @property {string} [line_two]
|
|
110
|
+
*/
|
|
111
|
+
/**
|
|
112
|
+
* @typedef AnalyticsTagsSchema
|
|
113
|
+
* @property {string} [_id]
|
|
114
|
+
* @property {number} [__v]
|
|
115
|
+
* @property {string} [body_code]
|
|
116
|
+
* @property {boolean} [enabled]
|
|
117
|
+
* @property {string} [header_code]
|
|
118
|
+
* @property {string} [name]
|
|
119
|
+
*/
|
|
120
|
+
/**
|
|
121
|
+
* @typedef CustomPageBySlugSchema
|
|
122
|
+
* @property {string} [_id]
|
|
123
|
+
* @property {string} [title]
|
|
124
|
+
* @property {string} [slug]
|
|
125
|
+
* @property {string} [type]
|
|
126
|
+
* @property {string} [description]
|
|
127
|
+
* @property {boolean} [published]
|
|
128
|
+
* @property {ItemSchema[]} [content]
|
|
129
|
+
* @property {CreateCustomPageSeoSchema} [seo]
|
|
130
|
+
* @property {CreatedBySchema} [created_by]
|
|
131
|
+
* @property {CreatedBySchema} [modified_by]
|
|
132
|
+
* @property {boolean} [archived]
|
|
133
|
+
* @property {string} [created_on]
|
|
134
|
+
* @property {string} [modified_on]
|
|
135
|
+
* @property {number} [__v]
|
|
136
|
+
*/
|
|
137
|
+
/**
|
|
138
|
+
* @typedef ItemSchema
|
|
139
|
+
* @property {string} [type]
|
|
140
|
+
* @property {string} [value]
|
|
141
|
+
*/
|
|
142
|
+
/**
|
|
143
|
+
* @typedef CreateCustomPageSeoSchema
|
|
144
|
+
* @property {string} [title]
|
|
145
|
+
* @property {string} [description]
|
|
146
|
+
*/
|
|
147
|
+
/**
|
|
148
|
+
* @typedef RawHtmlContentSchema
|
|
149
|
+
* @property {string} [type]
|
|
150
|
+
* @property {string} [value]
|
|
151
|
+
*/
|
|
152
|
+
/**
|
|
153
|
+
* @typedef FooterSchema
|
|
154
|
+
* @property {string} [_id]
|
|
155
|
+
* @property {string} [title]
|
|
156
|
+
* @property {string} [description]
|
|
157
|
+
* @property {string} [type]
|
|
158
|
+
* @property {Object[]} [tags]
|
|
159
|
+
* @property {boolean} [published]
|
|
160
|
+
* @property {RawHtmlContentSchema[]} [content]
|
|
161
|
+
* @property {Object[]} [footer_meta]
|
|
162
|
+
* @property {CreatedBySchema} [created_by]
|
|
163
|
+
* @property {CreatedBySchema} [modified_by]
|
|
164
|
+
* @property {boolean} [archived]
|
|
165
|
+
* @property {number} [__v]
|
|
166
|
+
*/
|
|
167
|
+
/**
|
|
168
|
+
* @typedef HomePageContentSchema
|
|
169
|
+
* @property {string} [_id]
|
|
170
|
+
* @property {string} [slug]
|
|
171
|
+
* @property {CreatedBySchema} [created_by]
|
|
172
|
+
* @property {boolean} [archived]
|
|
173
|
+
* @property {string} [page_type]
|
|
174
|
+
* @property {string} [created_on]
|
|
175
|
+
* @property {string} [modified_on]
|
|
176
|
+
* @property {number} [__v]
|
|
177
|
+
*/
|
|
178
|
+
/**
|
|
179
|
+
* @typedef NavItemSchema
|
|
180
|
+
* @property {string} [title]
|
|
181
|
+
* @property {string} [link]
|
|
182
|
+
* @property {string} [href]
|
|
183
|
+
*/
|
|
184
|
+
/**
|
|
185
|
+
* @typedef NavbarSchema
|
|
186
|
+
* @property {string} [_id]
|
|
187
|
+
* @property {NavItemSchema[]} [items]
|
|
188
|
+
* @property {number} [__v]
|
|
189
|
+
* @property {CreatedBySchema} [modified_by]
|
|
190
|
+
*/
|
|
191
|
+
/**
|
|
192
|
+
* @typedef MediaSchema
|
|
193
|
+
* @property {string} [url]
|
|
194
|
+
* @property {string} [type]
|
|
195
|
+
* @property {string} [alt]
|
|
196
|
+
* @property {string} [anchor_link]
|
|
197
|
+
*/
|
|
198
|
+
/**
|
|
199
|
+
* @typedef CreatedBySchema
|
|
200
|
+
* @property {string} [user_id]
|
|
201
|
+
*/
|
|
202
|
+
/**
|
|
203
|
+
* @typedef PricingBannerSchema
|
|
204
|
+
* @property {string} [_id]
|
|
205
|
+
* @property {MediaSchema} [web_banner]
|
|
206
|
+
* @property {MediaSchema} [mobile_banner]
|
|
207
|
+
* @property {boolean} [published]
|
|
208
|
+
* @property {CreatedBySchema} [created_by]
|
|
209
|
+
* @property {CreatedBySchema} [modified_by]
|
|
210
|
+
* @property {string} [created_on]
|
|
211
|
+
* @property {string} [modified_on]
|
|
212
|
+
* @property {number} [__v]
|
|
213
|
+
*/
|
|
214
|
+
/**
|
|
215
|
+
* @typedef SdkReadmeSchema
|
|
216
|
+
* @property {string} [data]
|
|
217
|
+
*/
|
|
218
|
+
/**
|
|
219
|
+
* @typedef TagsSchema
|
|
220
|
+
* @property {CustomItemSchema[]} [items]
|
|
221
|
+
* @property {PageSchema} [page]
|
|
222
|
+
*/
|
|
223
|
+
/**
|
|
224
|
+
* @typedef CustomItemSchema
|
|
225
|
+
* @property {string} [_id]
|
|
226
|
+
* @property {string} [name]
|
|
227
|
+
* @property {string} [type]
|
|
228
|
+
* @property {string} [sub_type]
|
|
229
|
+
* @property {string} [position]
|
|
230
|
+
* @property {boolean} [archived]
|
|
231
|
+
* @property {UserSchema} [created_by]
|
|
232
|
+
* @property {string} [url]
|
|
233
|
+
* @property {string} [content]
|
|
234
|
+
* @property {string} [created_on]
|
|
235
|
+
* @property {string} [modified_on]
|
|
236
|
+
* @property {number} [__v]
|
|
237
|
+
*/
|
|
238
|
+
/**
|
|
239
|
+
* @typedef PageSchema
|
|
240
|
+
* @property {string} [type]
|
|
241
|
+
* @property {number} [current]
|
|
242
|
+
* @property {number} [size]
|
|
243
|
+
* @property {number} [item_total]
|
|
244
|
+
* @property {boolean} [has_next]
|
|
245
|
+
*/
|
|
246
|
+
/**
|
|
247
|
+
* @typedef UserSchema
|
|
248
|
+
* @property {string} [user_id]
|
|
249
|
+
*/
|
|
2
250
|
/**
|
|
3
251
|
* @typedef CredentialSchema
|
|
4
|
-
* @property {
|
|
252
|
+
* @property {string} [_id]
|
|
253
|
+
* @property {ConfigurationSchema} [configuration]
|
|
5
254
|
* @property {string} [entity_type]
|
|
6
255
|
* @property {string} [type]
|
|
7
256
|
* @property {boolean} [is_enable]
|
|
257
|
+
* @property {string} [updated_at]
|
|
258
|
+
* @property {string} [created_at]
|
|
259
|
+
* @property {number} [__v]
|
|
260
|
+
*/
|
|
261
|
+
/**
|
|
262
|
+
* @typedef ConfigurationSchema
|
|
263
|
+
* @property {string} [token]
|
|
264
|
+
* @property {string} [host]
|
|
8
265
|
*/
|
|
9
266
|
/**
|
|
10
267
|
* @typedef CredentialsSchema
|
|
@@ -21,18 +278,355 @@ export = ContentPublicModel;
|
|
|
21
278
|
* @property {string} [stack_trace]
|
|
22
279
|
* @property {Object} [meta]
|
|
23
280
|
*/
|
|
281
|
+
/**
|
|
282
|
+
* @typedef Language
|
|
283
|
+
* @property {string} [_id] - Unique identifier for the language entry in the
|
|
284
|
+
* system database.
|
|
285
|
+
* @property {string} locale - Standard language code following ISO 639-1 format
|
|
286
|
+
* for language identification.
|
|
287
|
+
* @property {string} direction - Text direction specification for proper
|
|
288
|
+
* content rendering in the language.
|
|
289
|
+
* @property {string} name - Full name of the language in English for easy
|
|
290
|
+
* reference and display at the merchant panel.
|
|
291
|
+
* @property {string} [display_name] - Translated name of the language in
|
|
292
|
+
* English for easy reference and display at the website.
|
|
293
|
+
* @property {boolean} [is_enabled] - Indicates whether the language is enabled for use.
|
|
294
|
+
*/
|
|
295
|
+
/**
|
|
296
|
+
* @typedef Error
|
|
297
|
+
* @property {string} [error] - Detailed error message explaining the nature of
|
|
298
|
+
* the failure or invalid request.
|
|
299
|
+
*/
|
|
300
|
+
/**
|
|
301
|
+
* @typedef TranslatableResource
|
|
302
|
+
* @property {string} [_id] - Unique identifier for the translatable resource in
|
|
303
|
+
* the system.
|
|
304
|
+
* @property {string} type - Categorization of the resource indicating its
|
|
305
|
+
* context and ownership level
|
|
306
|
+
* @property {string} name - Primary identifier or title of the resource in its
|
|
307
|
+
* default language.
|
|
308
|
+
* @property {string} description - Detailed explanation of the resource's
|
|
309
|
+
* purpose and content scope.
|
|
310
|
+
* @property {Meta} meta
|
|
311
|
+
*/
|
|
312
|
+
/**
|
|
313
|
+
* @typedef Meta
|
|
314
|
+
* @property {string} [created_by] - ID of the user who initially created the resource.
|
|
315
|
+
* @property {string} [updated_by] - ID of the user who last modified the resource.
|
|
316
|
+
* @property {string} [created_at] - Timestamp indicating when the resource was
|
|
317
|
+
* first created.
|
|
318
|
+
* @property {string} [updated_at] - Timestamp indicating when the resource was
|
|
319
|
+
* last modified.
|
|
320
|
+
*/
|
|
321
|
+
/**
|
|
322
|
+
* @typedef ResourceTranslation
|
|
323
|
+
* @property {string} [_id] - Unique identifier for the translation entry in the system.
|
|
324
|
+
* @property {string} [locale] - Language code indicating the target language of
|
|
325
|
+
* the translation.
|
|
326
|
+
* @property {Object} [value] - Contains the translated content with flexible
|
|
327
|
+
* schema based on resource type.
|
|
328
|
+
*/
|
|
24
329
|
declare class ContentPublicModel {
|
|
25
330
|
}
|
|
26
331
|
declare namespace ContentPublicModel {
|
|
27
|
-
export { CredentialSchema, CredentialsSchema, ContentAPIError };
|
|
332
|
+
export { BasicDetailsPayloadSchema, WhatsNew, Features, BusinessAccount, SellerSupport, MenuSchema, MenusSchema, MenuTypeSchema, CompanyLevelMenuItemSchema, ApplicationLevelMenuItemSchema, VisibleOnSchema, SalesChannelSchema, OtherSellerSchema, FooterContentSchema, AnalyticsTagsSchema, CustomPageBySlugSchema, ItemSchema, CreateCustomPageSeoSchema, RawHtmlContentSchema, FooterSchema, HomePageContentSchema, NavItemSchema, NavbarSchema, MediaSchema, CreatedBySchema, PricingBannerSchema, SdkReadmeSchema, TagsSchema, CustomItemSchema, PageSchema, UserSchema, CredentialSchema, ConfigurationSchema, CredentialsSchema, ContentAPIError, Language, Error, TranslatableResource, Meta, ResourceTranslation };
|
|
28
333
|
}
|
|
334
|
+
/** @returns {BasicDetailsPayloadSchema} */
|
|
335
|
+
declare function BasicDetailsPayloadSchema(): BasicDetailsPayloadSchema;
|
|
336
|
+
type BasicDetailsPayloadSchema = {
|
|
337
|
+
name?: string;
|
|
338
|
+
logo_url?: string;
|
|
339
|
+
favicon_url?: string;
|
|
340
|
+
title?: string;
|
|
341
|
+
meta_title?: string;
|
|
342
|
+
meta_description?: string;
|
|
343
|
+
meta_image?: string;
|
|
344
|
+
whats_new?: WhatsNew[];
|
|
345
|
+
features?: Features[];
|
|
346
|
+
authentication?: any;
|
|
347
|
+
business_account?: BusinessAccount;
|
|
348
|
+
seller_support?: SellerSupport;
|
|
349
|
+
copyright?: string;
|
|
350
|
+
address?: string;
|
|
351
|
+
documentation_url?: string;
|
|
352
|
+
faq_url?: string;
|
|
353
|
+
facebook_url?: string;
|
|
354
|
+
instagram_url?: string;
|
|
355
|
+
privacy_url?: string;
|
|
356
|
+
twitter_url?: string;
|
|
357
|
+
termsofservice_url?: string;
|
|
358
|
+
};
|
|
359
|
+
/** @returns {WhatsNew} */
|
|
360
|
+
declare function WhatsNew(): WhatsNew;
|
|
361
|
+
type WhatsNew = {
|
|
362
|
+
description?: string;
|
|
363
|
+
};
|
|
364
|
+
/** @returns {Features} */
|
|
365
|
+
declare function Features(): Features;
|
|
366
|
+
type Features = {
|
|
367
|
+
title?: string;
|
|
368
|
+
text?: string;
|
|
369
|
+
list?: string[];
|
|
370
|
+
image?: string;
|
|
371
|
+
};
|
|
372
|
+
/** @returns {BusinessAccount} */
|
|
373
|
+
declare function BusinessAccount(): BusinessAccount;
|
|
374
|
+
type BusinessAccount = {
|
|
375
|
+
is_limit?: boolean;
|
|
376
|
+
threshold?: number;
|
|
377
|
+
};
|
|
378
|
+
/** @returns {SellerSupport} */
|
|
379
|
+
declare function SellerSupport(): SellerSupport;
|
|
380
|
+
type SellerSupport = {
|
|
381
|
+
email?: string;
|
|
382
|
+
phone_number?: number;
|
|
383
|
+
};
|
|
384
|
+
/** @returns {MenuSchema} */
|
|
385
|
+
declare function MenuSchema(): MenuSchema;
|
|
386
|
+
type MenuSchema = {
|
|
387
|
+
sales_channel?: SalesChannelSchema;
|
|
388
|
+
other_seller?: OtherSellerSchema;
|
|
389
|
+
footer_content?: FooterContentSchema;
|
|
390
|
+
can_create_business_account?: boolean;
|
|
391
|
+
company_level?: CompanyLevelMenuItemSchema[];
|
|
392
|
+
application_level?: ApplicationLevelMenuItemSchema[];
|
|
393
|
+
};
|
|
394
|
+
/** @returns {MenusSchema} */
|
|
395
|
+
declare function MenusSchema(): MenusSchema;
|
|
396
|
+
type MenusSchema = {
|
|
397
|
+
_id?: string;
|
|
398
|
+
desktop?: MenuTypeSchema;
|
|
399
|
+
mobile?: MenuTypeSchema;
|
|
400
|
+
__v?: number;
|
|
401
|
+
};
|
|
402
|
+
/** @returns {MenuTypeSchema} */
|
|
403
|
+
declare function MenuTypeSchema(): MenuTypeSchema;
|
|
404
|
+
type MenuTypeSchema = {
|
|
405
|
+
menu?: MenuSchema;
|
|
406
|
+
};
|
|
407
|
+
/** @returns {CompanyLevelMenuItemSchema} */
|
|
408
|
+
declare function CompanyLevelMenuItemSchema(): CompanyLevelMenuItemSchema;
|
|
409
|
+
type CompanyLevelMenuItemSchema = {
|
|
410
|
+
visible_on?: VisibleOnSchema;
|
|
411
|
+
display?: string;
|
|
412
|
+
permissions?: string[];
|
|
413
|
+
title?: string;
|
|
414
|
+
link?: string;
|
|
415
|
+
icon?: string;
|
|
416
|
+
is_disabled?: boolean;
|
|
417
|
+
child?: CompanyLevelMenuItemSchema[];
|
|
418
|
+
};
|
|
419
|
+
/** @returns {ApplicationLevelMenuItemSchema} */
|
|
420
|
+
declare function ApplicationLevelMenuItemSchema(): ApplicationLevelMenuItemSchema;
|
|
421
|
+
type ApplicationLevelMenuItemSchema = {
|
|
422
|
+
visible_on?: VisibleOnSchema;
|
|
423
|
+
display?: string;
|
|
424
|
+
permissions?: string[];
|
|
425
|
+
title?: string;
|
|
426
|
+
link?: string;
|
|
427
|
+
icon?: string;
|
|
428
|
+
is_disabled?: boolean;
|
|
429
|
+
child?: ApplicationLevelMenuItemSchema[];
|
|
430
|
+
};
|
|
431
|
+
/** @returns {VisibleOnSchema} */
|
|
432
|
+
declare function VisibleOnSchema(): VisibleOnSchema;
|
|
433
|
+
type VisibleOnSchema = {
|
|
434
|
+
web?: boolean;
|
|
435
|
+
ios?: boolean;
|
|
436
|
+
android?: boolean;
|
|
437
|
+
};
|
|
438
|
+
/** @returns {SalesChannelSchema} */
|
|
439
|
+
declare function SalesChannelSchema(): SalesChannelSchema;
|
|
440
|
+
type SalesChannelSchema = {
|
|
441
|
+
can_add?: boolean;
|
|
442
|
+
title?: string;
|
|
443
|
+
};
|
|
444
|
+
/** @returns {OtherSellerSchema} */
|
|
445
|
+
declare function OtherSellerSchema(): OtherSellerSchema;
|
|
446
|
+
type OtherSellerSchema = {
|
|
447
|
+
is_visible?: boolean;
|
|
448
|
+
title?: string;
|
|
449
|
+
};
|
|
450
|
+
/** @returns {FooterContentSchema} */
|
|
451
|
+
declare function FooterContentSchema(): FooterContentSchema;
|
|
452
|
+
type FooterContentSchema = {
|
|
453
|
+
is_visible?: boolean;
|
|
454
|
+
line_one?: string;
|
|
455
|
+
line_two?: string;
|
|
456
|
+
};
|
|
457
|
+
/** @returns {AnalyticsTagsSchema} */
|
|
458
|
+
declare function AnalyticsTagsSchema(): AnalyticsTagsSchema;
|
|
459
|
+
type AnalyticsTagsSchema = {
|
|
460
|
+
_id?: string;
|
|
461
|
+
__v?: number;
|
|
462
|
+
body_code?: string;
|
|
463
|
+
enabled?: boolean;
|
|
464
|
+
header_code?: string;
|
|
465
|
+
name?: string;
|
|
466
|
+
};
|
|
467
|
+
/** @returns {CustomPageBySlugSchema} */
|
|
468
|
+
declare function CustomPageBySlugSchema(): CustomPageBySlugSchema;
|
|
469
|
+
type CustomPageBySlugSchema = {
|
|
470
|
+
_id?: string;
|
|
471
|
+
title?: string;
|
|
472
|
+
slug?: string;
|
|
473
|
+
type?: string;
|
|
474
|
+
description?: string;
|
|
475
|
+
published?: boolean;
|
|
476
|
+
content?: ItemSchema[];
|
|
477
|
+
seo?: CreateCustomPageSeoSchema;
|
|
478
|
+
created_by?: CreatedBySchema;
|
|
479
|
+
modified_by?: CreatedBySchema;
|
|
480
|
+
archived?: boolean;
|
|
481
|
+
created_on?: string;
|
|
482
|
+
modified_on?: string;
|
|
483
|
+
__v?: number;
|
|
484
|
+
};
|
|
485
|
+
/** @returns {ItemSchema} */
|
|
486
|
+
declare function ItemSchema(): ItemSchema;
|
|
487
|
+
type ItemSchema = {
|
|
488
|
+
type?: string;
|
|
489
|
+
value?: string;
|
|
490
|
+
};
|
|
491
|
+
/** @returns {CreateCustomPageSeoSchema} */
|
|
492
|
+
declare function CreateCustomPageSeoSchema(): CreateCustomPageSeoSchema;
|
|
493
|
+
type CreateCustomPageSeoSchema = {
|
|
494
|
+
title?: string;
|
|
495
|
+
description?: string;
|
|
496
|
+
};
|
|
497
|
+
/** @returns {RawHtmlContentSchema} */
|
|
498
|
+
declare function RawHtmlContentSchema(): RawHtmlContentSchema;
|
|
499
|
+
type RawHtmlContentSchema = {
|
|
500
|
+
type?: string;
|
|
501
|
+
value?: string;
|
|
502
|
+
};
|
|
503
|
+
/** @returns {FooterSchema} */
|
|
504
|
+
declare function FooterSchema(): FooterSchema;
|
|
505
|
+
type FooterSchema = {
|
|
506
|
+
_id?: string;
|
|
507
|
+
title?: string;
|
|
508
|
+
description?: string;
|
|
509
|
+
type?: string;
|
|
510
|
+
tags?: any[];
|
|
511
|
+
published?: boolean;
|
|
512
|
+
content?: RawHtmlContentSchema[];
|
|
513
|
+
footer_meta?: any[];
|
|
514
|
+
created_by?: CreatedBySchema;
|
|
515
|
+
modified_by?: CreatedBySchema;
|
|
516
|
+
archived?: boolean;
|
|
517
|
+
__v?: number;
|
|
518
|
+
};
|
|
519
|
+
/** @returns {HomePageContentSchema} */
|
|
520
|
+
declare function HomePageContentSchema(): HomePageContentSchema;
|
|
521
|
+
type HomePageContentSchema = {
|
|
522
|
+
_id?: string;
|
|
523
|
+
slug?: string;
|
|
524
|
+
created_by?: CreatedBySchema;
|
|
525
|
+
archived?: boolean;
|
|
526
|
+
page_type?: string;
|
|
527
|
+
created_on?: string;
|
|
528
|
+
modified_on?: string;
|
|
529
|
+
__v?: number;
|
|
530
|
+
};
|
|
531
|
+
/** @returns {NavItemSchema} */
|
|
532
|
+
declare function NavItemSchema(): NavItemSchema;
|
|
533
|
+
type NavItemSchema = {
|
|
534
|
+
title?: string;
|
|
535
|
+
link?: string;
|
|
536
|
+
href?: string;
|
|
537
|
+
};
|
|
538
|
+
/** @returns {NavbarSchema} */
|
|
539
|
+
declare function NavbarSchema(): NavbarSchema;
|
|
540
|
+
type NavbarSchema = {
|
|
541
|
+
_id?: string;
|
|
542
|
+
items?: NavItemSchema[];
|
|
543
|
+
__v?: number;
|
|
544
|
+
modified_by?: CreatedBySchema;
|
|
545
|
+
};
|
|
546
|
+
/** @returns {MediaSchema} */
|
|
547
|
+
declare function MediaSchema(): MediaSchema;
|
|
548
|
+
type MediaSchema = {
|
|
549
|
+
url?: string;
|
|
550
|
+
type?: string;
|
|
551
|
+
alt?: string;
|
|
552
|
+
anchor_link?: string;
|
|
553
|
+
};
|
|
554
|
+
/** @returns {CreatedBySchema} */
|
|
555
|
+
declare function CreatedBySchema(): CreatedBySchema;
|
|
556
|
+
type CreatedBySchema = {
|
|
557
|
+
user_id?: string;
|
|
558
|
+
};
|
|
559
|
+
/** @returns {PricingBannerSchema} */
|
|
560
|
+
declare function PricingBannerSchema(): PricingBannerSchema;
|
|
561
|
+
type PricingBannerSchema = {
|
|
562
|
+
_id?: string;
|
|
563
|
+
web_banner?: MediaSchema;
|
|
564
|
+
mobile_banner?: MediaSchema;
|
|
565
|
+
published?: boolean;
|
|
566
|
+
created_by?: CreatedBySchema;
|
|
567
|
+
modified_by?: CreatedBySchema;
|
|
568
|
+
created_on?: string;
|
|
569
|
+
modified_on?: string;
|
|
570
|
+
__v?: number;
|
|
571
|
+
};
|
|
572
|
+
/** @returns {SdkReadmeSchema} */
|
|
573
|
+
declare function SdkReadmeSchema(): SdkReadmeSchema;
|
|
574
|
+
type SdkReadmeSchema = {
|
|
575
|
+
data?: string;
|
|
576
|
+
};
|
|
577
|
+
/** @returns {TagsSchema} */
|
|
578
|
+
declare function TagsSchema(): TagsSchema;
|
|
579
|
+
type TagsSchema = {
|
|
580
|
+
items?: CustomItemSchema[];
|
|
581
|
+
page?: PageSchema;
|
|
582
|
+
};
|
|
583
|
+
/** @returns {CustomItemSchema} */
|
|
584
|
+
declare function CustomItemSchema(): CustomItemSchema;
|
|
585
|
+
type CustomItemSchema = {
|
|
586
|
+
_id?: string;
|
|
587
|
+
name?: string;
|
|
588
|
+
type?: string;
|
|
589
|
+
sub_type?: string;
|
|
590
|
+
position?: string;
|
|
591
|
+
archived?: boolean;
|
|
592
|
+
created_by?: UserSchema;
|
|
593
|
+
url?: string;
|
|
594
|
+
content?: string;
|
|
595
|
+
created_on?: string;
|
|
596
|
+
modified_on?: string;
|
|
597
|
+
__v?: number;
|
|
598
|
+
};
|
|
599
|
+
/** @returns {PageSchema} */
|
|
600
|
+
declare function PageSchema(): PageSchema;
|
|
601
|
+
type PageSchema = {
|
|
602
|
+
type?: string;
|
|
603
|
+
current?: number;
|
|
604
|
+
size?: number;
|
|
605
|
+
item_total?: number;
|
|
606
|
+
has_next?: boolean;
|
|
607
|
+
};
|
|
608
|
+
/** @returns {UserSchema} */
|
|
609
|
+
declare function UserSchema(): UserSchema;
|
|
610
|
+
type UserSchema = {
|
|
611
|
+
user_id?: string;
|
|
612
|
+
};
|
|
29
613
|
/** @returns {CredentialSchema} */
|
|
30
614
|
declare function CredentialSchema(): CredentialSchema;
|
|
31
615
|
type CredentialSchema = {
|
|
32
|
-
|
|
616
|
+
_id?: string;
|
|
617
|
+
configuration?: ConfigurationSchema;
|
|
33
618
|
entity_type?: string;
|
|
34
619
|
type?: string;
|
|
35
620
|
is_enable?: boolean;
|
|
621
|
+
updated_at?: string;
|
|
622
|
+
created_at?: string;
|
|
623
|
+
__v?: number;
|
|
624
|
+
};
|
|
625
|
+
/** @returns {ConfigurationSchema} */
|
|
626
|
+
declare function ConfigurationSchema(): ConfigurationSchema;
|
|
627
|
+
type ConfigurationSchema = {
|
|
628
|
+
token?: string;
|
|
629
|
+
host?: string;
|
|
36
630
|
};
|
|
37
631
|
/** @returns {CredentialsSchema} */
|
|
38
632
|
declare function CredentialsSchema(): CredentialsSchema;
|
|
@@ -51,3 +645,110 @@ type ContentAPIError = {
|
|
|
51
645
|
stack_trace?: string;
|
|
52
646
|
meta?: any;
|
|
53
647
|
};
|
|
648
|
+
/** @returns {Language} */
|
|
649
|
+
declare function Language(): Language;
|
|
650
|
+
type Language = {
|
|
651
|
+
/**
|
|
652
|
+
* - Unique identifier for the language entry in the
|
|
653
|
+
* system database.
|
|
654
|
+
*/
|
|
655
|
+
_id?: string;
|
|
656
|
+
/**
|
|
657
|
+
* - Standard language code following ISO 639-1 format
|
|
658
|
+
* for language identification.
|
|
659
|
+
*/
|
|
660
|
+
locale: string;
|
|
661
|
+
/**
|
|
662
|
+
* - Text direction specification for proper
|
|
663
|
+
* content rendering in the language.
|
|
664
|
+
*/
|
|
665
|
+
direction: string;
|
|
666
|
+
/**
|
|
667
|
+
* - Full name of the language in English for easy
|
|
668
|
+
* reference and display at the merchant panel.
|
|
669
|
+
*/
|
|
670
|
+
name: string;
|
|
671
|
+
/**
|
|
672
|
+
* - Translated name of the language in
|
|
673
|
+
* English for easy reference and display at the website.
|
|
674
|
+
*/
|
|
675
|
+
display_name?: string;
|
|
676
|
+
/**
|
|
677
|
+
* - Indicates whether the language is enabled for use.
|
|
678
|
+
*/
|
|
679
|
+
is_enabled?: boolean;
|
|
680
|
+
};
|
|
681
|
+
/** @returns {Error} */
|
|
682
|
+
declare function Error(): Error;
|
|
683
|
+
type Error = {
|
|
684
|
+
/**
|
|
685
|
+
* - Detailed error message explaining the nature of
|
|
686
|
+
* the failure or invalid request.
|
|
687
|
+
*/
|
|
688
|
+
error?: string;
|
|
689
|
+
};
|
|
690
|
+
/** @returns {TranslatableResource} */
|
|
691
|
+
declare function TranslatableResource(): TranslatableResource;
|
|
692
|
+
type TranslatableResource = {
|
|
693
|
+
/**
|
|
694
|
+
* - Unique identifier for the translatable resource in
|
|
695
|
+
* the system.
|
|
696
|
+
*/
|
|
697
|
+
_id?: string;
|
|
698
|
+
/**
|
|
699
|
+
* - Categorization of the resource indicating its
|
|
700
|
+
* context and ownership level
|
|
701
|
+
*/
|
|
702
|
+
type: string;
|
|
703
|
+
/**
|
|
704
|
+
* - Primary identifier or title of the resource in its
|
|
705
|
+
* default language.
|
|
706
|
+
*/
|
|
707
|
+
name: string;
|
|
708
|
+
/**
|
|
709
|
+
* - Detailed explanation of the resource's
|
|
710
|
+
* purpose and content scope.
|
|
711
|
+
*/
|
|
712
|
+
description: string;
|
|
713
|
+
meta: Meta;
|
|
714
|
+
};
|
|
715
|
+
/** @returns {Meta} */
|
|
716
|
+
declare function Meta(): Meta;
|
|
717
|
+
type Meta = {
|
|
718
|
+
/**
|
|
719
|
+
* - ID of the user who initially created the resource.
|
|
720
|
+
*/
|
|
721
|
+
created_by?: string;
|
|
722
|
+
/**
|
|
723
|
+
* - ID of the user who last modified the resource.
|
|
724
|
+
*/
|
|
725
|
+
updated_by?: string;
|
|
726
|
+
/**
|
|
727
|
+
* - Timestamp indicating when the resource was
|
|
728
|
+
* first created.
|
|
729
|
+
*/
|
|
730
|
+
created_at?: string;
|
|
731
|
+
/**
|
|
732
|
+
* - Timestamp indicating when the resource was
|
|
733
|
+
* last modified.
|
|
734
|
+
*/
|
|
735
|
+
updated_at?: string;
|
|
736
|
+
};
|
|
737
|
+
/** @returns {ResourceTranslation} */
|
|
738
|
+
declare function ResourceTranslation(): ResourceTranslation;
|
|
739
|
+
type ResourceTranslation = {
|
|
740
|
+
/**
|
|
741
|
+
* - Unique identifier for the translation entry in the system.
|
|
742
|
+
*/
|
|
743
|
+
_id?: string;
|
|
744
|
+
/**
|
|
745
|
+
* - Language code indicating the target language of
|
|
746
|
+
* the translation.
|
|
747
|
+
*/
|
|
748
|
+
locale?: string;
|
|
749
|
+
/**
|
|
750
|
+
* - Contains the translated content with flexible
|
|
751
|
+
* schema based on resource type.
|
|
752
|
+
*/
|
|
753
|
+
value?: any;
|
|
754
|
+
};
|