@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +55 -97
- package/sdk/application/Cart/CartApplicationClient.js +60 -1262
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -162
- package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1313
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -9
- package/sdk/application/Common/CommonApplicationClient.js +5 -90
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -80
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -725
- package/sdk/application/Content/ContentApplicationClient.d.ts +63 -85
- package/sdk/application/Content/ContentApplicationClient.js +126 -942
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +26 -130
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -17
- package/sdk/application/Lead/LeadApplicationClient.js +32 -201
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -62
- package/sdk/application/Logistic/LogisticApplicationClient.js +51 -647
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -56
- package/sdk/application/Order/OrderApplicationClient.js +86 -555
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -209
- package/sdk/application/Payment/PaymentApplicationClient.js +57 -2099
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -26
- package/sdk/application/Rewards/RewardsApplicationClient.js +17 -303
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +34 -294
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +30 -166
- package/sdk/application/User/UserApplicationClient.d.ts +87 -138
- package/sdk/application/User/UserApplicationClient.js +47 -1817
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
- package/sdk/application/Webhook/WebhookApplicationClient.js +6 -49
- package/sdk/application/index.d.ts +0 -19
- package/sdk/application/index.js +0 -35
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -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/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
- package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
- 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 +1328 -4975
- package/sdk/platform/Cart/CartPlatformModel.js +1229 -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 +1744 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1211 -1383
- 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 +138 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +100 -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 +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -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 +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -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 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -175
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -52
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -34
- package/sdk/platform/Order/OrderPlatformClient.d.ts +103 -174
- package/sdk/platform/Order/OrderPlatformClient.js +275 -528
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3078 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1659 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +219 -234
- package/sdk/platform/Order/OrderPlatformValidator.js +118 -146
- 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 +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +11 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +10 -10
- 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 +13 -76
- package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
- 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 +10 -8
- 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 +19 -793
- 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/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +14 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -10
- 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/Cart/CartApplicationModel.d.ts +0 -4340
- package/sdk/application/Cart/CartApplicationModel.js +0 -2718
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -788
- package/sdk/application/Cart/CartApplicationValidator.js +0 -546
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3909
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2667
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2544
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1875
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2189
- package/sdk/application/Content/ContentApplicationModel.js +0 -1640
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -290
- package/sdk/application/Content/ContentApplicationValidator.js +0 -269
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -270
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -188
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- 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
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -2034
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1391
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -299
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -224
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2612
- package/sdk/application/Order/OrderApplicationModel.js +0 -1669
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -279
- package/sdk/application/Order/OrderApplicationValidator.js +0 -210
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4062
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2632
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1744
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1446
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -79
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -65
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -54
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -48
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
export = FileStorageApplicationModel;
|
|
2
|
-
/**
|
|
3
|
-
* @typedef CDN
|
|
4
|
-
* @property {string} url - The CDN URL for accessing the file.
|
|
5
|
-
* @property {string} absolute_url - The absolute URL of the file.
|
|
6
|
-
* @property {string} relative_url - The relative URL of the file.
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* @typedef Upload
|
|
10
|
-
* @property {number} expiry - The expiration time for the signed URL.
|
|
11
|
-
* @property {string} url - The signed URL for uploading the file.
|
|
12
|
-
*/
|
|
13
|
-
/**
|
|
14
|
-
* @typedef FileUpload
|
|
15
|
-
* @property {string} file_name - The name of the file that was uploaded.
|
|
16
|
-
* @property {string} file_path - The path to the file in the storage location.
|
|
17
|
-
* @property {string} content_type - The content type of the file.
|
|
18
|
-
* @property {string} [method] - The HTTP method to be used for uploading the file.
|
|
19
|
-
* @property {string} namespace - The namespace associated with the file.
|
|
20
|
-
* @property {string} operation - The operation to be performed on the storage service.
|
|
21
|
-
* @property {number} size - The size of the file in bytes.
|
|
22
|
-
* @property {Upload} upload
|
|
23
|
-
* @property {string[]} [tags] - Tags associated with the file.
|
|
24
|
-
*/
|
|
25
|
-
/**
|
|
26
|
-
* @typedef Params
|
|
27
|
-
* @property {string} [subpath] - Specifies a particular directory or location
|
|
28
|
-
* within the storage structure where the file should be placed or is located.
|
|
29
|
-
*/
|
|
30
|
-
/**
|
|
31
|
-
* @typedef FileUploadStart
|
|
32
|
-
* @property {string} file_name - The name of the file to be uploaded.
|
|
33
|
-
* @property {string} content_type - The name of the file to be uploaded.
|
|
34
|
-
* @property {number} size - The size of the file in bytes.
|
|
35
|
-
* @property {string[]} [tags] - Tags associated with the file.
|
|
36
|
-
* @property {Params} [params]
|
|
37
|
-
*/
|
|
38
|
-
/**
|
|
39
|
-
* @typedef CreatedBy
|
|
40
|
-
* @property {string} [username] - The username of the user who created the file.
|
|
41
|
-
*/
|
|
42
|
-
/**
|
|
43
|
-
* @typedef FileUploadComplete
|
|
44
|
-
* @property {string} _id - The unique identifier of the uploaded file.
|
|
45
|
-
* @property {string} file_name - The name of the file that was uploaded.
|
|
46
|
-
* @property {string} file_path - The path to the file in the storage location.
|
|
47
|
-
* @property {string} content_type - The content type of the file.
|
|
48
|
-
* @property {string} namespace - The namespace associated with the file.
|
|
49
|
-
* @property {string} operation - The operation performed on the storage service.
|
|
50
|
-
* @property {number} size - The size of the file in bytes.
|
|
51
|
-
* @property {Upload} upload
|
|
52
|
-
* @property {CDN} cdn
|
|
53
|
-
* @property {boolean} success - The success status of the upload operation.
|
|
54
|
-
* @property {string[]} [tags] - Tags associated with the file.
|
|
55
|
-
* @property {string} created_on - The timestamp when the file was created.
|
|
56
|
-
* @property {string} modified_on - The timestamp when the file was last modified.
|
|
57
|
-
* @property {CreatedBy} [created_by]
|
|
58
|
-
*/
|
|
59
|
-
/**
|
|
60
|
-
* @typedef Urls
|
|
61
|
-
* @property {string} url - This is the original asset URL provided in the
|
|
62
|
-
* request. This is the URL for which a signed URL has been generated.
|
|
63
|
-
* @property {string} signed_url - Generated signed URL.
|
|
64
|
-
* @property {number} expiry - The expiration time for the signed URL.
|
|
65
|
-
*/
|
|
66
|
-
/**
|
|
67
|
-
* @typedef SignUrlResult
|
|
68
|
-
* @property {Urls[]} urls - Signed URL object.
|
|
69
|
-
*/
|
|
70
|
-
/**
|
|
71
|
-
* @typedef SignUrl
|
|
72
|
-
* @property {number} expiry - The expiration time for the signed URL.
|
|
73
|
-
* @property {string[]} urls - List of asset URLs to be signed.
|
|
74
|
-
*/
|
|
75
|
-
declare class FileStorageApplicationModel {
|
|
76
|
-
}
|
|
77
|
-
declare namespace FileStorageApplicationModel {
|
|
78
|
-
export { CDN, Upload, FileUpload, Params, FileUploadStart, CreatedBy, FileUploadComplete, Urls, SignUrlResult, SignUrl };
|
|
79
|
-
}
|
|
80
|
-
/** @returns {CDN} */
|
|
81
|
-
declare function CDN(): CDN;
|
|
82
|
-
type CDN = {
|
|
83
|
-
/**
|
|
84
|
-
* - The CDN URL for accessing the file.
|
|
85
|
-
*/
|
|
86
|
-
url: string;
|
|
87
|
-
/**
|
|
88
|
-
* - The absolute URL of the file.
|
|
89
|
-
*/
|
|
90
|
-
absolute_url: string;
|
|
91
|
-
/**
|
|
92
|
-
* - The relative URL of the file.
|
|
93
|
-
*/
|
|
94
|
-
relative_url: string;
|
|
95
|
-
};
|
|
96
|
-
/** @returns {Upload} */
|
|
97
|
-
declare function Upload(): Upload;
|
|
98
|
-
type Upload = {
|
|
99
|
-
/**
|
|
100
|
-
* - The expiration time for the signed URL.
|
|
101
|
-
*/
|
|
102
|
-
expiry: number;
|
|
103
|
-
/**
|
|
104
|
-
* - The signed URL for uploading the file.
|
|
105
|
-
*/
|
|
106
|
-
url: string;
|
|
107
|
-
};
|
|
108
|
-
/** @returns {FileUpload} */
|
|
109
|
-
declare function FileUpload(): FileUpload;
|
|
110
|
-
type FileUpload = {
|
|
111
|
-
/**
|
|
112
|
-
* - The name of the file that was uploaded.
|
|
113
|
-
*/
|
|
114
|
-
file_name: string;
|
|
115
|
-
/**
|
|
116
|
-
* - The path to the file in the storage location.
|
|
117
|
-
*/
|
|
118
|
-
file_path: string;
|
|
119
|
-
/**
|
|
120
|
-
* - The content type of the file.
|
|
121
|
-
*/
|
|
122
|
-
content_type: string;
|
|
123
|
-
/**
|
|
124
|
-
* - The HTTP method to be used for uploading the file.
|
|
125
|
-
*/
|
|
126
|
-
method?: string;
|
|
127
|
-
/**
|
|
128
|
-
* - The namespace associated with the file.
|
|
129
|
-
*/
|
|
130
|
-
namespace: string;
|
|
131
|
-
/**
|
|
132
|
-
* - The operation to be performed on the storage service.
|
|
133
|
-
*/
|
|
134
|
-
operation: string;
|
|
135
|
-
/**
|
|
136
|
-
* - The size of the file in bytes.
|
|
137
|
-
*/
|
|
138
|
-
size: number;
|
|
139
|
-
upload: Upload;
|
|
140
|
-
/**
|
|
141
|
-
* - Tags associated with the file.
|
|
142
|
-
*/
|
|
143
|
-
tags?: string[];
|
|
144
|
-
};
|
|
145
|
-
/** @returns {Params} */
|
|
146
|
-
declare function Params(): Params;
|
|
147
|
-
type Params = {
|
|
148
|
-
/**
|
|
149
|
-
* - Specifies a particular directory or location
|
|
150
|
-
* within the storage structure where the file should be placed or is located.
|
|
151
|
-
*/
|
|
152
|
-
subpath?: string;
|
|
153
|
-
};
|
|
154
|
-
/** @returns {FileUploadStart} */
|
|
155
|
-
declare function FileUploadStart(): FileUploadStart;
|
|
156
|
-
type FileUploadStart = {
|
|
157
|
-
/**
|
|
158
|
-
* - The name of the file to be uploaded.
|
|
159
|
-
*/
|
|
160
|
-
file_name: string;
|
|
161
|
-
/**
|
|
162
|
-
* - The name of the file to be uploaded.
|
|
163
|
-
*/
|
|
164
|
-
content_type: string;
|
|
165
|
-
/**
|
|
166
|
-
* - The size of the file in bytes.
|
|
167
|
-
*/
|
|
168
|
-
size: number;
|
|
169
|
-
/**
|
|
170
|
-
* - Tags associated with the file.
|
|
171
|
-
*/
|
|
172
|
-
tags?: string[];
|
|
173
|
-
params?: Params;
|
|
174
|
-
};
|
|
175
|
-
/** @returns {CreatedBy} */
|
|
176
|
-
declare function CreatedBy(): CreatedBy;
|
|
177
|
-
type CreatedBy = {
|
|
178
|
-
/**
|
|
179
|
-
* - The username of the user who created the file.
|
|
180
|
-
*/
|
|
181
|
-
username?: string;
|
|
182
|
-
};
|
|
183
|
-
/** @returns {FileUploadComplete} */
|
|
184
|
-
declare function FileUploadComplete(): FileUploadComplete;
|
|
185
|
-
type FileUploadComplete = {
|
|
186
|
-
/**
|
|
187
|
-
* - The unique identifier of the uploaded file.
|
|
188
|
-
*/
|
|
189
|
-
_id: string;
|
|
190
|
-
/**
|
|
191
|
-
* - The name of the file that was uploaded.
|
|
192
|
-
*/
|
|
193
|
-
file_name: string;
|
|
194
|
-
/**
|
|
195
|
-
* - The path to the file in the storage location.
|
|
196
|
-
*/
|
|
197
|
-
file_path: string;
|
|
198
|
-
/**
|
|
199
|
-
* - The content type of the file.
|
|
200
|
-
*/
|
|
201
|
-
content_type: string;
|
|
202
|
-
/**
|
|
203
|
-
* - The namespace associated with the file.
|
|
204
|
-
*/
|
|
205
|
-
namespace: string;
|
|
206
|
-
/**
|
|
207
|
-
* - The operation performed on the storage service.
|
|
208
|
-
*/
|
|
209
|
-
operation: string;
|
|
210
|
-
/**
|
|
211
|
-
* - The size of the file in bytes.
|
|
212
|
-
*/
|
|
213
|
-
size: number;
|
|
214
|
-
upload: Upload;
|
|
215
|
-
cdn: CDN;
|
|
216
|
-
/**
|
|
217
|
-
* - The success status of the upload operation.
|
|
218
|
-
*/
|
|
219
|
-
success: boolean;
|
|
220
|
-
/**
|
|
221
|
-
* - Tags associated with the file.
|
|
222
|
-
*/
|
|
223
|
-
tags?: string[];
|
|
224
|
-
/**
|
|
225
|
-
* - The timestamp when the file was created.
|
|
226
|
-
*/
|
|
227
|
-
created_on: string;
|
|
228
|
-
/**
|
|
229
|
-
* - The timestamp when the file was last modified.
|
|
230
|
-
*/
|
|
231
|
-
modified_on: string;
|
|
232
|
-
created_by?: CreatedBy;
|
|
233
|
-
};
|
|
234
|
-
/** @returns {Urls} */
|
|
235
|
-
declare function Urls(): Urls;
|
|
236
|
-
type Urls = {
|
|
237
|
-
/**
|
|
238
|
-
* - This is the original asset URL provided in the
|
|
239
|
-
* request. This is the URL for which a signed URL has been generated.
|
|
240
|
-
*/
|
|
241
|
-
url: string;
|
|
242
|
-
/**
|
|
243
|
-
* - Generated signed URL.
|
|
244
|
-
*/
|
|
245
|
-
signed_url: string;
|
|
246
|
-
/**
|
|
247
|
-
* - The expiration time for the signed URL.
|
|
248
|
-
*/
|
|
249
|
-
expiry: number;
|
|
250
|
-
};
|
|
251
|
-
/** @returns {SignUrlResult} */
|
|
252
|
-
declare function SignUrlResult(): SignUrlResult;
|
|
253
|
-
type SignUrlResult = {
|
|
254
|
-
/**
|
|
255
|
-
* - Signed URL object.
|
|
256
|
-
*/
|
|
257
|
-
urls: Urls[];
|
|
258
|
-
};
|
|
259
|
-
/** @returns {SignUrl} */
|
|
260
|
-
declare function SignUrl(): SignUrl;
|
|
261
|
-
type SignUrl = {
|
|
262
|
-
/**
|
|
263
|
-
* - The expiration time for the signed URL.
|
|
264
|
-
*/
|
|
265
|
-
expiry: number;
|
|
266
|
-
/**
|
|
267
|
-
* - List of asset URLs to be signed.
|
|
268
|
-
*/
|
|
269
|
-
urls: string[];
|
|
270
|
-
};
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
const Joi = require("joi");
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @typedef CDN
|
|
5
|
-
* @property {string} url - The CDN URL for accessing the file.
|
|
6
|
-
* @property {string} absolute_url - The absolute URL of the file.
|
|
7
|
-
* @property {string} relative_url - The relative URL of the file.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @typedef Upload
|
|
12
|
-
* @property {number} expiry - The expiration time for the signed URL.
|
|
13
|
-
* @property {string} url - The signed URL for uploading the file.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @typedef FileUpload
|
|
18
|
-
* @property {string} file_name - The name of the file that was uploaded.
|
|
19
|
-
* @property {string} file_path - The path to the file in the storage location.
|
|
20
|
-
* @property {string} content_type - The content type of the file.
|
|
21
|
-
* @property {string} [method] - The HTTP method to be used for uploading the file.
|
|
22
|
-
* @property {string} namespace - The namespace associated with the file.
|
|
23
|
-
* @property {string} operation - The operation to be performed on the storage service.
|
|
24
|
-
* @property {number} size - The size of the file in bytes.
|
|
25
|
-
* @property {Upload} upload
|
|
26
|
-
* @property {string[]} [tags] - Tags associated with the file.
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @typedef Params
|
|
31
|
-
* @property {string} [subpath] - Specifies a particular directory or location
|
|
32
|
-
* within the storage structure where the file should be placed or is located.
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @typedef FileUploadStart
|
|
37
|
-
* @property {string} file_name - The name of the file to be uploaded.
|
|
38
|
-
* @property {string} content_type - The name of the file to be uploaded.
|
|
39
|
-
* @property {number} size - The size of the file in bytes.
|
|
40
|
-
* @property {string[]} [tags] - Tags associated with the file.
|
|
41
|
-
* @property {Params} [params]
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @typedef CreatedBy
|
|
46
|
-
* @property {string} [username] - The username of the user who created the file.
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @typedef FileUploadComplete
|
|
51
|
-
* @property {string} _id - The unique identifier of the uploaded file.
|
|
52
|
-
* @property {string} file_name - The name of the file that was uploaded.
|
|
53
|
-
* @property {string} file_path - The path to the file in the storage location.
|
|
54
|
-
* @property {string} content_type - The content type of the file.
|
|
55
|
-
* @property {string} namespace - The namespace associated with the file.
|
|
56
|
-
* @property {string} operation - The operation performed on the storage service.
|
|
57
|
-
* @property {number} size - The size of the file in bytes.
|
|
58
|
-
* @property {Upload} upload
|
|
59
|
-
* @property {CDN} cdn
|
|
60
|
-
* @property {boolean} success - The success status of the upload operation.
|
|
61
|
-
* @property {string[]} [tags] - Tags associated with the file.
|
|
62
|
-
* @property {string} created_on - The timestamp when the file was created.
|
|
63
|
-
* @property {string} modified_on - The timestamp when the file was last modified.
|
|
64
|
-
* @property {CreatedBy} [created_by]
|
|
65
|
-
*/
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @typedef Urls
|
|
69
|
-
* @property {string} url - This is the original asset URL provided in the
|
|
70
|
-
* request. This is the URL for which a signed URL has been generated.
|
|
71
|
-
* @property {string} signed_url - Generated signed URL.
|
|
72
|
-
* @property {number} expiry - The expiration time for the signed URL.
|
|
73
|
-
*/
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @typedef SignUrlResult
|
|
77
|
-
* @property {Urls[]} urls - Signed URL object.
|
|
78
|
-
*/
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* @typedef SignUrl
|
|
82
|
-
* @property {number} expiry - The expiration time for the signed URL.
|
|
83
|
-
* @property {string[]} urls - List of asset URLs to be signed.
|
|
84
|
-
*/
|
|
85
|
-
|
|
86
|
-
class FileStorageApplicationModel {
|
|
87
|
-
/** @returns {CDN} */
|
|
88
|
-
static CDN() {
|
|
89
|
-
return Joi.object({
|
|
90
|
-
url: Joi.string().allow("").required(),
|
|
91
|
-
absolute_url: Joi.string().allow("").required(),
|
|
92
|
-
relative_url: Joi.string().allow("").required(),
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/** @returns {Upload} */
|
|
97
|
-
static Upload() {
|
|
98
|
-
return Joi.object({
|
|
99
|
-
expiry: Joi.number().required(),
|
|
100
|
-
url: Joi.string().allow("").required(),
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/** @returns {FileUpload} */
|
|
105
|
-
static FileUpload() {
|
|
106
|
-
return Joi.object({
|
|
107
|
-
file_name: Joi.string().allow("").required(),
|
|
108
|
-
file_path: Joi.string().allow("").required(),
|
|
109
|
-
content_type: Joi.string().allow("").required(),
|
|
110
|
-
method: Joi.string().allow(""),
|
|
111
|
-
namespace: Joi.string().allow("").required(),
|
|
112
|
-
operation: Joi.string().allow("").required(),
|
|
113
|
-
size: Joi.number().required(),
|
|
114
|
-
upload: FileStorageApplicationModel.Upload().required(),
|
|
115
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/** @returns {Params} */
|
|
120
|
-
static Params() {
|
|
121
|
-
return Joi.object({
|
|
122
|
-
subpath: Joi.string().allow(""),
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/** @returns {FileUploadStart} */
|
|
127
|
-
static FileUploadStart() {
|
|
128
|
-
return Joi.object({
|
|
129
|
-
file_name: Joi.string().allow("").required(),
|
|
130
|
-
content_type: Joi.string().allow("").required(),
|
|
131
|
-
size: Joi.number().required(),
|
|
132
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
133
|
-
params: FileStorageApplicationModel.Params(),
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/** @returns {CreatedBy} */
|
|
138
|
-
static CreatedBy() {
|
|
139
|
-
return Joi.object({
|
|
140
|
-
username: Joi.string().allow(""),
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/** @returns {FileUploadComplete} */
|
|
145
|
-
static FileUploadComplete() {
|
|
146
|
-
return Joi.object({
|
|
147
|
-
_id: Joi.string().allow("").required(),
|
|
148
|
-
file_name: Joi.string().allow("").required(),
|
|
149
|
-
file_path: Joi.string().allow("").required(),
|
|
150
|
-
content_type: Joi.string().allow("").required(),
|
|
151
|
-
namespace: Joi.string().allow("").required(),
|
|
152
|
-
operation: Joi.string().allow("").required(),
|
|
153
|
-
size: Joi.number().required(),
|
|
154
|
-
upload: FileStorageApplicationModel.Upload().required(),
|
|
155
|
-
cdn: FileStorageApplicationModel.CDN().required(),
|
|
156
|
-
success: Joi.boolean().required(),
|
|
157
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
158
|
-
created_on: Joi.string().allow("").required(),
|
|
159
|
-
modified_on: Joi.string().allow("").required(),
|
|
160
|
-
created_by: FileStorageApplicationModel.CreatedBy(),
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/** @returns {Urls} */
|
|
165
|
-
static Urls() {
|
|
166
|
-
return Joi.object({
|
|
167
|
-
url: Joi.string().allow("").required(),
|
|
168
|
-
signed_url: Joi.string().allow("").required(),
|
|
169
|
-
expiry: Joi.number().required(),
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/** @returns {SignUrlResult} */
|
|
174
|
-
static SignUrlResult() {
|
|
175
|
-
return Joi.object({
|
|
176
|
-
urls: Joi.array().items(FileStorageApplicationModel.Urls()).required(),
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/** @returns {SignUrl} */
|
|
181
|
-
static SignUrl() {
|
|
182
|
-
return Joi.object({
|
|
183
|
-
expiry: Joi.number().required(),
|
|
184
|
-
urls: Joi.array().items(Joi.string().allow("")).required(),
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
module.exports = FileStorageApplicationModel;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export = FileStorageApplicationValidator;
|
|
2
|
-
/**
|
|
3
|
-
* @typedef CompleteUploadParam
|
|
4
|
-
* @property {string} namespace - Segregation of different types of
|
|
5
|
-
* files(products, orders, logistics etc), Required for validating the data of
|
|
6
|
-
* the file being uploaded, decides where exactly the file will be stored
|
|
7
|
-
* inside the storage bucket.
|
|
8
|
-
* @property {FileStorageApplicationModel.FileUpload} body
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* @typedef SignUrlsParam
|
|
12
|
-
* @property {FileStorageApplicationModel.SignUrl} body
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* @typedef StartUploadParam
|
|
16
|
-
* @property {string} namespace - Segregation of different types of
|
|
17
|
-
* files(products, orders, logistics etc), Required for validating the data of
|
|
18
|
-
* the file being uploaded, decides where exactly the file will be stored
|
|
19
|
-
* inside the storage bucket.
|
|
20
|
-
* @property {FileStorageApplicationModel.FileUploadStart} body
|
|
21
|
-
*/
|
|
22
|
-
declare class FileStorageApplicationValidator {
|
|
23
|
-
/** @returns {CompleteUploadParam} */
|
|
24
|
-
static completeUpload(): CompleteUploadParam;
|
|
25
|
-
/** @returns {SignUrlsParam} */
|
|
26
|
-
static signUrls(): SignUrlsParam;
|
|
27
|
-
/** @returns {StartUploadParam} */
|
|
28
|
-
static startUpload(): StartUploadParam;
|
|
29
|
-
}
|
|
30
|
-
declare namespace FileStorageApplicationValidator {
|
|
31
|
-
export { CompleteUploadParam, SignUrlsParam, StartUploadParam };
|
|
32
|
-
}
|
|
33
|
-
type CompleteUploadParam = {
|
|
34
|
-
/**
|
|
35
|
-
* - Segregation of different types of
|
|
36
|
-
* files(products, orders, logistics etc), Required for validating the data of
|
|
37
|
-
* the file being uploaded, decides where exactly the file will be stored
|
|
38
|
-
* inside the storage bucket.
|
|
39
|
-
*/
|
|
40
|
-
namespace: string;
|
|
41
|
-
body: FileStorageApplicationModel.FileUpload;
|
|
42
|
-
};
|
|
43
|
-
type SignUrlsParam = {
|
|
44
|
-
body: FileStorageApplicationModel.SignUrl;
|
|
45
|
-
};
|
|
46
|
-
type StartUploadParam = {
|
|
47
|
-
/**
|
|
48
|
-
* - Segregation of different types of
|
|
49
|
-
* files(products, orders, logistics etc), Required for validating the data of
|
|
50
|
-
* the file being uploaded, decides where exactly the file will be stored
|
|
51
|
-
* inside the storage bucket.
|
|
52
|
-
*/
|
|
53
|
-
namespace: string;
|
|
54
|
-
body: FileStorageApplicationModel.FileUploadStart;
|
|
55
|
-
};
|
|
56
|
-
import FileStorageApplicationModel = require("./FileStorageApplicationModel");
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
const Joi = require("joi");
|
|
2
|
-
|
|
3
|
-
const FileStorageApplicationModel = require("./FileStorageApplicationModel");
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @typedef CompleteUploadParam
|
|
7
|
-
* @property {string} namespace - Segregation of different types of
|
|
8
|
-
* files(products, orders, logistics etc), Required for validating the data of
|
|
9
|
-
* the file being uploaded, decides where exactly the file will be stored
|
|
10
|
-
* inside the storage bucket.
|
|
11
|
-
* @property {FileStorageApplicationModel.FileUpload} body
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @typedef SignUrlsParam
|
|
16
|
-
* @property {FileStorageApplicationModel.SignUrl} body
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @typedef StartUploadParam
|
|
21
|
-
* @property {string} namespace - Segregation of different types of
|
|
22
|
-
* files(products, orders, logistics etc), Required for validating the data of
|
|
23
|
-
* the file being uploaded, decides where exactly the file will be stored
|
|
24
|
-
* inside the storage bucket.
|
|
25
|
-
* @property {FileStorageApplicationModel.FileUploadStart} body
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
class FileStorageApplicationValidator {
|
|
29
|
-
/** @returns {CompleteUploadParam} */
|
|
30
|
-
static completeUpload() {
|
|
31
|
-
return Joi.object({
|
|
32
|
-
namespace: Joi.string().allow("").required(),
|
|
33
|
-
body: FileStorageApplicationModel.FileUpload().required(),
|
|
34
|
-
}).required();
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/** @returns {SignUrlsParam} */
|
|
38
|
-
static signUrls() {
|
|
39
|
-
return Joi.object({
|
|
40
|
-
body: FileStorageApplicationModel.SignUrl().required(),
|
|
41
|
-
}).required();
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/** @returns {StartUploadParam} */
|
|
45
|
-
static startUpload() {
|
|
46
|
-
return Joi.object({
|
|
47
|
-
namespace: Joi.string().allow("").required(),
|
|
48
|
-
body: FileStorageApplicationModel.FileUploadStart().required(),
|
|
49
|
-
}).required();
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
module.exports = FileStorageApplicationValidator;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export = Finance;
|
|
2
|
-
declare class Finance {
|
|
3
|
-
constructor(_conf: any);
|
|
4
|
-
_conf: any;
|
|
5
|
-
_relativeUrls: {
|
|
6
|
-
customerCreditBalance: string;
|
|
7
|
-
lockUnlockCreditNote: string;
|
|
8
|
-
};
|
|
9
|
-
_urls: {};
|
|
10
|
-
updateUrls(urls: any): void;
|
|
11
|
-
/**
|
|
12
|
-
* @param {FinanceApplicationValidator.CustomerCreditBalanceParam} arg - Arg object.
|
|
13
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
14
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
15
|
-
* @returns {Promise<FinanceApplicationModel.CustomerCreditBalanceResponseSchema>}
|
|
16
|
-
* - Success response
|
|
17
|
-
*
|
|
18
|
-
* @name customerCreditBalance
|
|
19
|
-
* @summary: This API will provide customer's credit balance against phone number or email and seller*affiliate id
|
|
20
|
-
* @description: This API will provide customer's credit balance against phone number or email and seller*affiliate id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/finance/customerCreditBalance/).
|
|
21
|
-
*/
|
|
22
|
-
customerCreditBalance({ body, requestHeaders }?: FinanceApplicationValidator.CustomerCreditBalanceParam, { responseHeaders }?: object): Promise<FinanceApplicationModel.CustomerCreditBalanceResponseSchema>;
|
|
23
|
-
/**
|
|
24
|
-
* @param {FinanceApplicationValidator.LockUnlockCreditNoteParam} arg - Arg object.
|
|
25
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
26
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
27
|
-
* @returns {Promise<FinanceApplicationModel.LockUnlockResponseSchema>} -
|
|
28
|
-
* Success response
|
|
29
|
-
* @name lockUnlockCreditNote
|
|
30
|
-
* @summary: Lock or Unlock requested credit note.
|
|
31
|
-
* @description: Used to lock or unlock requested credit note. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/finance/lockUnlockCreditNote/).
|
|
32
|
-
*/
|
|
33
|
-
lockUnlockCreditNote({ body, requestHeaders }?: FinanceApplicationValidator.LockUnlockCreditNoteParam, { responseHeaders }?: object): Promise<FinanceApplicationModel.LockUnlockResponseSchema>;
|
|
34
|
-
}
|
|
35
|
-
import FinanceApplicationValidator = require("./FinanceApplicationValidator");
|
|
36
|
-
import FinanceApplicationModel = require("./FinanceApplicationModel");
|