@gofynd/fdk-client-javascript 1.2.0 → 1.3.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -7
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +3 -3
- package/sdk/application/ApplicationAPIClient.js +6 -4
- package/sdk/application/ApplicationClient.d.ts +2 -3
- package/sdk/application/ApplicationClient.js +1 -45
- package/sdk/application/ApplicationConfig.d.ts +46 -6
- package/sdk/application/ApplicationConfig.js +15 -16
- package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
- package/sdk/application/Cart/CartApplicationClient.js +225 -134
- package/sdk/application/Cart/CartApplicationModel.d.ts +6 -4
- package/sdk/application/Cart/CartApplicationModel.js +6 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
- package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
- package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
- package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
- package/sdk/application/Common/CommonApplicationClient.js +13 -11
- package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
- package/sdk/application/Common/CommonApplicationModel.js +2 -58
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
- package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
- package/sdk/application/Content/ContentApplicationClient.js +159 -80
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
- package/sdk/application/Content/ContentApplicationModel.js +11 -763
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
- package/sdk/application/Lead/LeadApplicationClient.js +50 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
- package/sdk/application/Lead/LeadApplicationModel.js +21 -481
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
- package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
- package/sdk/application/Order/OrderApplicationClient.js +88 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
- package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
- package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
- package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
- package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
- package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
- package/sdk/application/Share/ShareApplicationClient.js +51 -31
- package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
- package/sdk/application/Share/ShareApplicationModel.js +0 -38
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
- package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
- package/sdk/application/User/UserApplicationClient.d.ts +74 -35
- package/sdk/application/User/UserApplicationClient.js +252 -161
- package/sdk/application/User/UserApplicationModel.d.ts +3 -401
- package/sdk/application/User/UserApplicationModel.js +2 -490
- package/sdk/common/AxiosHelper.js +1 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +5 -4
- package/sdk/partner/PartnerAPIClient.js +7 -4
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
- package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
- package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
- package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
- package/sdk/platform/Cart/CartPlatformModel.js +104 -54
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
- package/sdk/platform/Common/CommonPlatformClient.js +13 -11
- package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
- package/sdk/platform/Common/CommonPlatformModel.js +23 -57
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
- package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
- package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
- package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
- package/sdk/platform/Content/ContentPlatformModel.js +8 -231
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
- package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
- package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
- package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
- package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
- package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
- package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
- package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
- package/sdk/platform/Order/OrderPlatformClient.js +738 -205
- package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
- package/sdk/platform/Order/OrderPlatformModel.js +225 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
- package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
- package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
- package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
- package/sdk/platform/PlatformAPIClient.d.ts +3 -3
- package/sdk/platform/PlatformAPIClient.js +2 -2
- package/sdk/platform/PlatformClient.d.ts +2 -2
- package/sdk/platform/PlatformClient.js +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
- package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
- package/sdk/platform/Share/SharePlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
- package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
- package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
- package/sdk/platform/User/UserPlatformModel.js +3 -899
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
- package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
- package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +90 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +113 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
- package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
- package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
- package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -48
- package/sdk/application/ApplicationModels.js +0 -38
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
|
@@ -1,20 +1,54 @@
|
|
|
1
1
|
export = WebhookPlatformValidator;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef CancelJobByNameParam
|
|
4
|
+
* @property {string} filename - Filename of the specific report export to cancel.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @typedef DownloadDeliveryReportParam
|
|
8
|
+
* @property {WebhookPlatformModel.EventProcessRequest} body
|
|
9
|
+
*/
|
|
2
10
|
/** @typedef FetchAllEventConfigurationsParam */
|
|
11
|
+
/**
|
|
12
|
+
* @typedef GetDeliveryReportsParam
|
|
13
|
+
* @property {WebhookPlatformModel.EventProcessRequest} body
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* @typedef GetEventCountsParam
|
|
17
|
+
* @property {WebhookPlatformModel.EventProcessRequest} body
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* @typedef GetHistoricalReportsParam
|
|
21
|
+
* @property {WebhookPlatformModel.HistoryPayload} body
|
|
22
|
+
*/
|
|
23
|
+
/** @typedef GetManualRetryStatusParam */
|
|
24
|
+
/**
|
|
25
|
+
* @typedef GetReportFiltersParam
|
|
26
|
+
* @property {WebhookPlatformModel.ReportFiltersPayload} body
|
|
27
|
+
*/
|
|
3
28
|
/**
|
|
4
29
|
* @typedef GetSubscriberByIdParam
|
|
5
|
-
* @property {number} subscriberId - Subscriber
|
|
30
|
+
* @property {number} subscriberId - Subscriber id
|
|
6
31
|
*/
|
|
7
32
|
/**
|
|
8
33
|
* @typedef GetSubscribersByCompanyParam
|
|
9
34
|
* @property {number} [pageNo] - Page Number
|
|
10
35
|
* @property {number} [pageSize] - Page Size
|
|
11
|
-
* @property {string} [extensionId] -
|
|
36
|
+
* @property {string} [extensionId] - Extension_id
|
|
12
37
|
*/
|
|
13
38
|
/**
|
|
14
39
|
* @typedef GetSubscribersByExtensionIdParam
|
|
15
40
|
* @property {number} [pageNo] - Page Number
|
|
16
41
|
* @property {number} [pageSize] - Page Size
|
|
17
|
-
* @property {string} extensionId - Extension
|
|
42
|
+
* @property {string} extensionId - Extension id
|
|
43
|
+
*/
|
|
44
|
+
/** @typedef ManualRetryCancelParam */
|
|
45
|
+
/**
|
|
46
|
+
* @typedef ManualRetryOfFailedEventParam
|
|
47
|
+
* @property {WebhookPlatformModel.EventProcessRequest} body
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* @typedef PingWebhookParam
|
|
51
|
+
* @property {WebhookPlatformModel.PingWebhook} body
|
|
18
52
|
*/
|
|
19
53
|
/**
|
|
20
54
|
* @typedef RegisterSubscriberToEventParam
|
|
@@ -25,25 +59,66 @@ export = WebhookPlatformValidator;
|
|
|
25
59
|
* @property {WebhookPlatformModel.SubscriberConfig} body
|
|
26
60
|
*/
|
|
27
61
|
declare class WebhookPlatformValidator {
|
|
62
|
+
/** @returns {CancelJobByNameParam} */
|
|
63
|
+
static cancelJobByName(): CancelJobByNameParam;
|
|
64
|
+
/** @returns {DownloadDeliveryReportParam} */
|
|
65
|
+
static downloadDeliveryReport(): DownloadDeliveryReportParam;
|
|
28
66
|
/** @returns {FetchAllEventConfigurationsParam} */
|
|
29
67
|
static fetchAllEventConfigurations(): any;
|
|
68
|
+
/** @returns {GetDeliveryReportsParam} */
|
|
69
|
+
static getDeliveryReports(): GetDeliveryReportsParam;
|
|
70
|
+
/** @returns {GetEventCountsParam} */
|
|
71
|
+
static getEventCounts(): GetEventCountsParam;
|
|
72
|
+
/** @returns {GetHistoricalReportsParam} */
|
|
73
|
+
static getHistoricalReports(): GetHistoricalReportsParam;
|
|
74
|
+
/** @returns {GetManualRetryStatusParam} */
|
|
75
|
+
static getManualRetryStatus(): any;
|
|
76
|
+
/** @returns {GetReportFiltersParam} */
|
|
77
|
+
static getReportFilters(): GetReportFiltersParam;
|
|
30
78
|
/** @returns {GetSubscriberByIdParam} */
|
|
31
79
|
static getSubscriberById(): GetSubscriberByIdParam;
|
|
32
80
|
/** @returns {GetSubscribersByCompanyParam} */
|
|
33
81
|
static getSubscribersByCompany(): GetSubscribersByCompanyParam;
|
|
34
82
|
/** @returns {GetSubscribersByExtensionIdParam} */
|
|
35
83
|
static getSubscribersByExtensionId(): GetSubscribersByExtensionIdParam;
|
|
84
|
+
/** @returns {ManualRetryCancelParam} */
|
|
85
|
+
static manualRetryCancel(): any;
|
|
86
|
+
/** @returns {ManualRetryOfFailedEventParam} */
|
|
87
|
+
static manualRetryOfFailedEvent(): ManualRetryOfFailedEventParam;
|
|
88
|
+
/** @returns {PingWebhookParam} */
|
|
89
|
+
static pingWebhook(): PingWebhookParam;
|
|
36
90
|
/** @returns {RegisterSubscriberToEventParam} */
|
|
37
91
|
static registerSubscriberToEvent(): RegisterSubscriberToEventParam;
|
|
38
92
|
/** @returns {UpdateSubscriberConfigParam} */
|
|
39
93
|
static updateSubscriberConfig(): UpdateSubscriberConfigParam;
|
|
40
94
|
}
|
|
41
95
|
declare namespace WebhookPlatformValidator {
|
|
42
|
-
export { FetchAllEventConfigurationsParam, GetSubscriberByIdParam, GetSubscribersByCompanyParam, GetSubscribersByExtensionIdParam, RegisterSubscriberToEventParam, UpdateSubscriberConfigParam };
|
|
96
|
+
export { CancelJobByNameParam, DownloadDeliveryReportParam, FetchAllEventConfigurationsParam, GetDeliveryReportsParam, GetEventCountsParam, GetHistoricalReportsParam, GetManualRetryStatusParam, GetReportFiltersParam, GetSubscriberByIdParam, GetSubscribersByCompanyParam, GetSubscribersByExtensionIdParam, ManualRetryCancelParam, ManualRetryOfFailedEventParam, PingWebhookParam, RegisterSubscriberToEventParam, UpdateSubscriberConfigParam };
|
|
43
97
|
}
|
|
98
|
+
type CancelJobByNameParam = {
|
|
99
|
+
/**
|
|
100
|
+
* - Filename of the specific report export to cancel.
|
|
101
|
+
*/
|
|
102
|
+
filename: string;
|
|
103
|
+
};
|
|
104
|
+
type DownloadDeliveryReportParam = {
|
|
105
|
+
body: WebhookPlatformModel.EventProcessRequest;
|
|
106
|
+
};
|
|
107
|
+
type GetDeliveryReportsParam = {
|
|
108
|
+
body: WebhookPlatformModel.EventProcessRequest;
|
|
109
|
+
};
|
|
110
|
+
type GetEventCountsParam = {
|
|
111
|
+
body: WebhookPlatformModel.EventProcessRequest;
|
|
112
|
+
};
|
|
113
|
+
type GetHistoricalReportsParam = {
|
|
114
|
+
body: WebhookPlatformModel.HistoryPayload;
|
|
115
|
+
};
|
|
116
|
+
type GetReportFiltersParam = {
|
|
117
|
+
body: WebhookPlatformModel.ReportFiltersPayload;
|
|
118
|
+
};
|
|
44
119
|
type GetSubscriberByIdParam = {
|
|
45
120
|
/**
|
|
46
|
-
* - Subscriber
|
|
121
|
+
* - Subscriber id
|
|
47
122
|
*/
|
|
48
123
|
subscriberId: number;
|
|
49
124
|
};
|
|
@@ -57,7 +132,7 @@ type GetSubscribersByCompanyParam = {
|
|
|
57
132
|
*/
|
|
58
133
|
pageSize?: number;
|
|
59
134
|
/**
|
|
60
|
-
* -
|
|
135
|
+
* - Extension_id
|
|
61
136
|
*/
|
|
62
137
|
extensionId?: string;
|
|
63
138
|
};
|
|
@@ -71,10 +146,16 @@ type GetSubscribersByExtensionIdParam = {
|
|
|
71
146
|
*/
|
|
72
147
|
pageSize?: number;
|
|
73
148
|
/**
|
|
74
|
-
* - Extension
|
|
149
|
+
* - Extension id
|
|
75
150
|
*/
|
|
76
151
|
extensionId: string;
|
|
77
152
|
};
|
|
153
|
+
type ManualRetryOfFailedEventParam = {
|
|
154
|
+
body: WebhookPlatformModel.EventProcessRequest;
|
|
155
|
+
};
|
|
156
|
+
type PingWebhookParam = {
|
|
157
|
+
body: WebhookPlatformModel.PingWebhook;
|
|
158
|
+
};
|
|
78
159
|
type RegisterSubscriberToEventParam = {
|
|
79
160
|
body: WebhookPlatformModel.SubscriberConfig;
|
|
80
161
|
};
|
|
@@ -82,4 +163,6 @@ type UpdateSubscriberConfigParam = {
|
|
|
82
163
|
body: WebhookPlatformModel.SubscriberConfig;
|
|
83
164
|
};
|
|
84
165
|
type FetchAllEventConfigurationsParam = any;
|
|
166
|
+
type GetManualRetryStatusParam = any;
|
|
167
|
+
type ManualRetryCancelParam = any;
|
|
85
168
|
import WebhookPlatformModel = require("./WebhookPlatformModel");
|
|
@@ -2,25 +2,69 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
const WebhookPlatformModel = require("./WebhookPlatformModel");
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @typedef CancelJobByNameParam
|
|
7
|
+
* @property {string} filename - Filename of the specific report export to cancel.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @typedef DownloadDeliveryReportParam
|
|
12
|
+
* @property {WebhookPlatformModel.EventProcessRequest} body
|
|
13
|
+
*/
|
|
14
|
+
|
|
5
15
|
/** @typedef FetchAllEventConfigurationsParam */
|
|
6
16
|
|
|
17
|
+
/**
|
|
18
|
+
* @typedef GetDeliveryReportsParam
|
|
19
|
+
* @property {WebhookPlatformModel.EventProcessRequest} body
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @typedef GetEventCountsParam
|
|
24
|
+
* @property {WebhookPlatformModel.EventProcessRequest} body
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @typedef GetHistoricalReportsParam
|
|
29
|
+
* @property {WebhookPlatformModel.HistoryPayload} body
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/** @typedef GetManualRetryStatusParam */
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @typedef GetReportFiltersParam
|
|
36
|
+
* @property {WebhookPlatformModel.ReportFiltersPayload} body
|
|
37
|
+
*/
|
|
38
|
+
|
|
7
39
|
/**
|
|
8
40
|
* @typedef GetSubscriberByIdParam
|
|
9
|
-
* @property {number} subscriberId - Subscriber
|
|
41
|
+
* @property {number} subscriberId - Subscriber id
|
|
10
42
|
*/
|
|
11
43
|
|
|
12
44
|
/**
|
|
13
45
|
* @typedef GetSubscribersByCompanyParam
|
|
14
46
|
* @property {number} [pageNo] - Page Number
|
|
15
47
|
* @property {number} [pageSize] - Page Size
|
|
16
|
-
* @property {string} [extensionId] -
|
|
48
|
+
* @property {string} [extensionId] - Extension_id
|
|
17
49
|
*/
|
|
18
50
|
|
|
19
51
|
/**
|
|
20
52
|
* @typedef GetSubscribersByExtensionIdParam
|
|
21
53
|
* @property {number} [pageNo] - Page Number
|
|
22
54
|
* @property {number} [pageSize] - Page Size
|
|
23
|
-
* @property {string} extensionId - Extension
|
|
55
|
+
* @property {string} extensionId - Extension id
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
/** @typedef ManualRetryCancelParam */
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @typedef ManualRetryOfFailedEventParam
|
|
62
|
+
* @property {WebhookPlatformModel.EventProcessRequest} body
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @typedef PingWebhookParam
|
|
67
|
+
* @property {WebhookPlatformModel.PingWebhook} body
|
|
24
68
|
*/
|
|
25
69
|
|
|
26
70
|
/**
|
|
@@ -34,11 +78,58 @@ const WebhookPlatformModel = require("./WebhookPlatformModel");
|
|
|
34
78
|
*/
|
|
35
79
|
|
|
36
80
|
class WebhookPlatformValidator {
|
|
81
|
+
/** @returns {CancelJobByNameParam} */
|
|
82
|
+
static cancelJobByName() {
|
|
83
|
+
return Joi.object({
|
|
84
|
+
filename: Joi.string().allow("").required(),
|
|
85
|
+
}).required();
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** @returns {DownloadDeliveryReportParam} */
|
|
89
|
+
static downloadDeliveryReport() {
|
|
90
|
+
return Joi.object({
|
|
91
|
+
body: WebhookPlatformModel.EventProcessRequest().required(),
|
|
92
|
+
}).required();
|
|
93
|
+
}
|
|
94
|
+
|
|
37
95
|
/** @returns {FetchAllEventConfigurationsParam} */
|
|
38
96
|
static fetchAllEventConfigurations() {
|
|
39
97
|
return Joi.object({}).required();
|
|
40
98
|
}
|
|
41
99
|
|
|
100
|
+
/** @returns {GetDeliveryReportsParam} */
|
|
101
|
+
static getDeliveryReports() {
|
|
102
|
+
return Joi.object({
|
|
103
|
+
body: WebhookPlatformModel.EventProcessRequest().required(),
|
|
104
|
+
}).required();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/** @returns {GetEventCountsParam} */
|
|
108
|
+
static getEventCounts() {
|
|
109
|
+
return Joi.object({
|
|
110
|
+
body: WebhookPlatformModel.EventProcessRequest().required(),
|
|
111
|
+
}).required();
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** @returns {GetHistoricalReportsParam} */
|
|
115
|
+
static getHistoricalReports() {
|
|
116
|
+
return Joi.object({
|
|
117
|
+
body: WebhookPlatformModel.HistoryPayload().required(),
|
|
118
|
+
}).required();
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/** @returns {GetManualRetryStatusParam} */
|
|
122
|
+
static getManualRetryStatus() {
|
|
123
|
+
return Joi.object({}).required();
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/** @returns {GetReportFiltersParam} */
|
|
127
|
+
static getReportFilters() {
|
|
128
|
+
return Joi.object({
|
|
129
|
+
body: WebhookPlatformModel.ReportFiltersPayload().required(),
|
|
130
|
+
}).required();
|
|
131
|
+
}
|
|
132
|
+
|
|
42
133
|
/** @returns {GetSubscriberByIdParam} */
|
|
43
134
|
static getSubscriberById() {
|
|
44
135
|
return Joi.object({
|
|
@@ -64,6 +155,25 @@ class WebhookPlatformValidator {
|
|
|
64
155
|
}).required();
|
|
65
156
|
}
|
|
66
157
|
|
|
158
|
+
/** @returns {ManualRetryCancelParam} */
|
|
159
|
+
static manualRetryCancel() {
|
|
160
|
+
return Joi.object({}).required();
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/** @returns {ManualRetryOfFailedEventParam} */
|
|
164
|
+
static manualRetryOfFailedEvent() {
|
|
165
|
+
return Joi.object({
|
|
166
|
+
body: WebhookPlatformModel.EventProcessRequest().required(),
|
|
167
|
+
}).required();
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/** @returns {PingWebhookParam} */
|
|
171
|
+
static pingWebhook() {
|
|
172
|
+
return Joi.object({
|
|
173
|
+
body: WebhookPlatformModel.PingWebhook().required(),
|
|
174
|
+
}).required();
|
|
175
|
+
}
|
|
176
|
+
|
|
67
177
|
/** @returns {RegisterSubscriberToEventParam} */
|
|
68
178
|
static registerSubscriberToEvent() {
|
|
69
179
|
return Joi.object({
|
|
@@ -10,22 +10,24 @@ declare class Configuration {
|
|
|
10
10
|
updateUrls(urls: any): void;
|
|
11
11
|
/**
|
|
12
12
|
* @param {ConfigurationPublicValidator.GetLocationsParam} arg - Arg object.
|
|
13
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
13
14
|
* @param {import("../PublicAPIClient").Options} - Options
|
|
14
15
|
* @returns {Promise<ConfigurationPublicModel.Locations>} - Success response
|
|
15
16
|
* @name getLocations
|
|
16
17
|
* @summary: Get countries, states, cities
|
|
17
|
-
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/configuration/getLocations/).
|
|
18
|
+
* @description: Get Location configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/configuration/getLocations/).
|
|
18
19
|
*/
|
|
19
|
-
getLocations({ locationType, id }?: ConfigurationPublicValidator.GetLocationsParam, {
|
|
20
|
+
getLocations({ locationType, id, requestHeaders }?: ConfigurationPublicValidator.GetLocationsParam, { responseHeaders }?: object): Promise<ConfigurationPublicModel.Locations>;
|
|
20
21
|
/**
|
|
21
22
|
* @param {ConfigurationPublicValidator.SearchApplicationParam} arg - Arg object.
|
|
23
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
22
24
|
* @param {import("../PublicAPIClient").Options} - Options
|
|
23
25
|
* @returns {Promise<ConfigurationPublicModel.ApplicationResponse>} - Success response
|
|
24
26
|
* @name searchApplication
|
|
25
27
|
* @summary: Search Application
|
|
26
28
|
* @description: Provide application name or domain url - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/configuration/searchApplication/).
|
|
27
29
|
*/
|
|
28
|
-
searchApplication({ authorization, query }?: ConfigurationPublicValidator.SearchApplicationParam, {
|
|
30
|
+
searchApplication({ authorization, query, requestHeaders }?: ConfigurationPublicValidator.SearchApplicationParam, { responseHeaders }?: object): Promise<ConfigurationPublicModel.ApplicationResponse>;
|
|
29
31
|
}
|
|
30
32
|
import ConfigurationPublicValidator = require("./ConfigurationPublicValidator");
|
|
31
33
|
import ConfigurationPublicModel = require("./ConfigurationPublicModel");
|
|
@@ -33,15 +33,16 @@ class Configuration {
|
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* @param {ConfigurationPublicValidator.GetLocationsParam} arg - Arg object.
|
|
36
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
36
37
|
* @param {import("../PublicAPIClient").Options} - Options
|
|
37
38
|
* @returns {Promise<ConfigurationPublicModel.Locations>} - Success response
|
|
38
39
|
* @name getLocations
|
|
39
40
|
* @summary: Get countries, states, cities
|
|
40
|
-
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/configuration/getLocations/).
|
|
41
|
+
* @description: Get Location configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/configuration/getLocations/).
|
|
41
42
|
*/
|
|
42
43
|
async getLocations(
|
|
43
|
-
{ locationType, id } = {},
|
|
44
|
-
{
|
|
44
|
+
{ locationType, id, requestHeaders } = { requestHeaders: {} },
|
|
45
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
45
46
|
) {
|
|
46
47
|
const { error } = ConfigurationPublicValidator.getLocations().validate(
|
|
47
48
|
{ locationType, id },
|
|
@@ -80,12 +81,12 @@ class Configuration {
|
|
|
80
81
|
}),
|
|
81
82
|
query_params,
|
|
82
83
|
undefined,
|
|
83
|
-
xHeaders,
|
|
84
|
-
{
|
|
84
|
+
{ ...xHeaders, ...requestHeaders },
|
|
85
|
+
{ responseHeaders }
|
|
85
86
|
);
|
|
86
87
|
|
|
87
88
|
let responseData = response;
|
|
88
|
-
if (
|
|
89
|
+
if (responseHeaders) {
|
|
89
90
|
responseData = response[0];
|
|
90
91
|
}
|
|
91
92
|
|
|
@@ -108,6 +109,7 @@ class Configuration {
|
|
|
108
109
|
|
|
109
110
|
/**
|
|
110
111
|
* @param {ConfigurationPublicValidator.SearchApplicationParam} arg - Arg object.
|
|
112
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
111
113
|
* @param {import("../PublicAPIClient").Options} - Options
|
|
112
114
|
* @returns {Promise<ConfigurationPublicModel.ApplicationResponse>} - Success response
|
|
113
115
|
* @name searchApplication
|
|
@@ -115,8 +117,8 @@ class Configuration {
|
|
|
115
117
|
* @description: Provide application name or domain url - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/configuration/searchApplication/).
|
|
116
118
|
*/
|
|
117
119
|
async searchApplication(
|
|
118
|
-
{ authorization, query } = {},
|
|
119
|
-
{
|
|
120
|
+
{ authorization, query, requestHeaders } = { requestHeaders: {} },
|
|
121
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
120
122
|
) {
|
|
121
123
|
const { error } = ConfigurationPublicValidator.searchApplication().validate(
|
|
122
124
|
{ authorization, query },
|
|
@@ -155,12 +157,12 @@ class Configuration {
|
|
|
155
157
|
}),
|
|
156
158
|
query_params,
|
|
157
159
|
undefined,
|
|
158
|
-
xHeaders,
|
|
159
|
-
{
|
|
160
|
+
{ ...xHeaders, ...requestHeaders },
|
|
161
|
+
{ responseHeaders }
|
|
160
162
|
);
|
|
161
163
|
|
|
162
164
|
let responseData = response;
|
|
163
|
-
if (
|
|
165
|
+
if (responseHeaders) {
|
|
164
166
|
responseData = response[0];
|
|
165
167
|
}
|
|
166
168
|
|
|
@@ -74,23 +74,6 @@ export = ConfigurationPublicModel;
|
|
|
74
74
|
* @typedef BadRequest
|
|
75
75
|
* @property {string} [message] - Failure message (in a string format)
|
|
76
76
|
*/
|
|
77
|
-
/**
|
|
78
|
-
* @typedef Currency
|
|
79
|
-
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
80
|
-
* of the current sales channel supported currency
|
|
81
|
-
* @property {string} [code] - 3-character currency code, e.g. INR, USD, EUR.
|
|
82
|
-
* @property {string} [created_at] - ISO 8601 timestamp of sales channel support
|
|
83
|
-
* currency creation
|
|
84
|
-
* @property {number} [decimal_digits] - Acceptable decimal limits for a given
|
|
85
|
-
* currency, e.g. 1.05$ means upto 2 decimal digits can be accepted as a valid
|
|
86
|
-
* value of a currency.
|
|
87
|
-
* @property {boolean} [is_active] - Shows currency is enabled or not in current
|
|
88
|
-
* sales channel
|
|
89
|
-
* @property {string} [name] - Name of the currency, e.g. Indian Rupee
|
|
90
|
-
* @property {string} [symbol] - Unique symbol for identifying the currency, e.g. ₹
|
|
91
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of sales channel support
|
|
92
|
-
* currency updation
|
|
93
|
-
*/
|
|
94
77
|
/**
|
|
95
78
|
* @typedef Domain
|
|
96
79
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
@@ -136,23 +119,12 @@ export = ConfigurationPublicModel;
|
|
|
136
119
|
*/
|
|
137
120
|
/**
|
|
138
121
|
* @typedef Locations
|
|
139
|
-
* @property {
|
|
122
|
+
* @property {LocationCountry[]} [items]
|
|
140
123
|
*/
|
|
141
124
|
/**
|
|
142
125
|
* @typedef NotFound
|
|
143
126
|
* @property {string} [message] - Response message for not found
|
|
144
127
|
*/
|
|
145
|
-
/**
|
|
146
|
-
* @typedef Page
|
|
147
|
-
* @property {number} [current] - Current page number
|
|
148
|
-
* @property {boolean} [has_next] - Next page is present or not
|
|
149
|
-
* @property {boolean} [has_previous] - Previous page is present or not
|
|
150
|
-
* @property {number} [item_total] - Total number of items to retrieve
|
|
151
|
-
* @property {string} [next_id] - Next page ID
|
|
152
|
-
* @property {number} [size] - The number of items to retrieve in each page.
|
|
153
|
-
* Default value is 10.
|
|
154
|
-
* @property {string} type - Page type
|
|
155
|
-
*/
|
|
156
128
|
/**
|
|
157
129
|
* @typedef SecureUrl
|
|
158
130
|
* @property {string} [secure_url] - Hosted URL of the image
|
|
@@ -160,7 +132,7 @@ export = ConfigurationPublicModel;
|
|
|
160
132
|
declare class ConfigurationPublicModel {
|
|
161
133
|
}
|
|
162
134
|
declare namespace ConfigurationPublicModel {
|
|
163
|
-
export { Application, ApplicationAuth, ApplicationCors, ApplicationMeta, ApplicationRedirections, ApplicationResponse, ApplicationWebsite, BadRequest,
|
|
135
|
+
export { Application, ApplicationAuth, ApplicationCors, ApplicationMeta, ApplicationRedirections, ApplicationResponse, ApplicationWebsite, BadRequest, Domain, LocationCountry, LocationDefaultCurrency, LocationDefaultLanguage, Locations, NotFound, SecureUrl };
|
|
164
136
|
}
|
|
165
137
|
/** @returns {Application} */
|
|
166
138
|
declare function Application(): Application;
|
|
@@ -314,48 +286,6 @@ type BadRequest = {
|
|
|
314
286
|
*/
|
|
315
287
|
message?: string;
|
|
316
288
|
};
|
|
317
|
-
/** @returns {Currency} */
|
|
318
|
-
declare function Currency(): Currency;
|
|
319
|
-
type Currency = {
|
|
320
|
-
/**
|
|
321
|
-
* - The unique identifier (24-digit Mongo Object ID)
|
|
322
|
-
* of the current sales channel supported currency
|
|
323
|
-
*/
|
|
324
|
-
_id?: string;
|
|
325
|
-
/**
|
|
326
|
-
* - 3-character currency code, e.g. INR, USD, EUR.
|
|
327
|
-
*/
|
|
328
|
-
code?: string;
|
|
329
|
-
/**
|
|
330
|
-
* - ISO 8601 timestamp of sales channel support
|
|
331
|
-
* currency creation
|
|
332
|
-
*/
|
|
333
|
-
created_at?: string;
|
|
334
|
-
/**
|
|
335
|
-
* - Acceptable decimal limits for a given
|
|
336
|
-
* currency, e.g. 1.05$ means upto 2 decimal digits can be accepted as a valid
|
|
337
|
-
* value of a currency.
|
|
338
|
-
*/
|
|
339
|
-
decimal_digits?: number;
|
|
340
|
-
/**
|
|
341
|
-
* - Shows currency is enabled or not in current
|
|
342
|
-
* sales channel
|
|
343
|
-
*/
|
|
344
|
-
is_active?: boolean;
|
|
345
|
-
/**
|
|
346
|
-
* - Name of the currency, e.g. Indian Rupee
|
|
347
|
-
*/
|
|
348
|
-
name?: string;
|
|
349
|
-
/**
|
|
350
|
-
* - Unique symbol for identifying the currency, e.g. ₹
|
|
351
|
-
*/
|
|
352
|
-
symbol?: string;
|
|
353
|
-
/**
|
|
354
|
-
* - ISO 8601 timestamp of sales channel support
|
|
355
|
-
* currency updation
|
|
356
|
-
*/
|
|
357
|
-
updated_at?: string;
|
|
358
|
-
};
|
|
359
289
|
/** @returns {Domain} */
|
|
360
290
|
declare function Domain(): Domain;
|
|
361
291
|
type Domain = {
|
|
@@ -421,7 +351,7 @@ type LocationDefaultLanguage = {
|
|
|
421
351
|
/** @returns {Locations} */
|
|
422
352
|
declare function Locations(): Locations;
|
|
423
353
|
type Locations = {
|
|
424
|
-
items?:
|
|
354
|
+
items?: LocationCountry[];
|
|
425
355
|
};
|
|
426
356
|
/** @returns {NotFound} */
|
|
427
357
|
declare function NotFound(): NotFound;
|
|
@@ -431,39 +361,6 @@ type NotFound = {
|
|
|
431
361
|
*/
|
|
432
362
|
message?: string;
|
|
433
363
|
};
|
|
434
|
-
/** @returns {Page} */
|
|
435
|
-
declare function Page(): Page;
|
|
436
|
-
type Page = {
|
|
437
|
-
/**
|
|
438
|
-
* - Current page number
|
|
439
|
-
*/
|
|
440
|
-
current?: number;
|
|
441
|
-
/**
|
|
442
|
-
* - Next page is present or not
|
|
443
|
-
*/
|
|
444
|
-
has_next?: boolean;
|
|
445
|
-
/**
|
|
446
|
-
* - Previous page is present or not
|
|
447
|
-
*/
|
|
448
|
-
has_previous?: boolean;
|
|
449
|
-
/**
|
|
450
|
-
* - Total number of items to retrieve
|
|
451
|
-
*/
|
|
452
|
-
item_total?: number;
|
|
453
|
-
/**
|
|
454
|
-
* - Next page ID
|
|
455
|
-
*/
|
|
456
|
-
next_id?: string;
|
|
457
|
-
/**
|
|
458
|
-
* - The number of items to retrieve in each page.
|
|
459
|
-
* Default value is 10.
|
|
460
|
-
*/
|
|
461
|
-
size?: number;
|
|
462
|
-
/**
|
|
463
|
-
* - Page type
|
|
464
|
-
*/
|
|
465
|
-
type: string;
|
|
466
|
-
};
|
|
467
364
|
/** @returns {SecureUrl} */
|
|
468
365
|
declare function SecureUrl(): SecureUrl;
|
|
469
366
|
type SecureUrl = {
|
|
@@ -83,24 +83,6 @@ const Joi = require("joi");
|
|
|
83
83
|
* @property {string} [message] - Failure message (in a string format)
|
|
84
84
|
*/
|
|
85
85
|
|
|
86
|
-
/**
|
|
87
|
-
* @typedef Currency
|
|
88
|
-
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
89
|
-
* of the current sales channel supported currency
|
|
90
|
-
* @property {string} [code] - 3-character currency code, e.g. INR, USD, EUR.
|
|
91
|
-
* @property {string} [created_at] - ISO 8601 timestamp of sales channel support
|
|
92
|
-
* currency creation
|
|
93
|
-
* @property {number} [decimal_digits] - Acceptable decimal limits for a given
|
|
94
|
-
* currency, e.g. 1.05$ means upto 2 decimal digits can be accepted as a valid
|
|
95
|
-
* value of a currency.
|
|
96
|
-
* @property {boolean} [is_active] - Shows currency is enabled or not in current
|
|
97
|
-
* sales channel
|
|
98
|
-
* @property {string} [name] - Name of the currency, e.g. Indian Rupee
|
|
99
|
-
* @property {string} [symbol] - Unique symbol for identifying the currency, e.g. ₹
|
|
100
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of sales channel support
|
|
101
|
-
* currency updation
|
|
102
|
-
*/
|
|
103
|
-
|
|
104
86
|
/**
|
|
105
87
|
* @typedef Domain
|
|
106
88
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
@@ -150,7 +132,7 @@ const Joi = require("joi");
|
|
|
150
132
|
|
|
151
133
|
/**
|
|
152
134
|
* @typedef Locations
|
|
153
|
-
* @property {
|
|
135
|
+
* @property {LocationCountry[]} [items]
|
|
154
136
|
*/
|
|
155
137
|
|
|
156
138
|
/**
|
|
@@ -158,18 +140,6 @@ const Joi = require("joi");
|
|
|
158
140
|
* @property {string} [message] - Response message for not found
|
|
159
141
|
*/
|
|
160
142
|
|
|
161
|
-
/**
|
|
162
|
-
* @typedef Page
|
|
163
|
-
* @property {number} [current] - Current page number
|
|
164
|
-
* @property {boolean} [has_next] - Next page is present or not
|
|
165
|
-
* @property {boolean} [has_previous] - Previous page is present or not
|
|
166
|
-
* @property {number} [item_total] - Total number of items to retrieve
|
|
167
|
-
* @property {string} [next_id] - Next page ID
|
|
168
|
-
* @property {number} [size] - The number of items to retrieve in each page.
|
|
169
|
-
* Default value is 10.
|
|
170
|
-
* @property {string} type - Page type
|
|
171
|
-
*/
|
|
172
|
-
|
|
173
143
|
/**
|
|
174
144
|
* @typedef SecureUrl
|
|
175
145
|
* @property {string} [secure_url] - Hosted URL of the image
|
|
@@ -263,20 +233,6 @@ class ConfigurationPublicModel {
|
|
|
263
233
|
});
|
|
264
234
|
}
|
|
265
235
|
|
|
266
|
-
/** @returns {Currency} */
|
|
267
|
-
static Currency() {
|
|
268
|
-
return Joi.object({
|
|
269
|
-
_id: Joi.string().allow(""),
|
|
270
|
-
code: Joi.string().allow(""),
|
|
271
|
-
created_at: Joi.string().allow(""),
|
|
272
|
-
decimal_digits: Joi.number(),
|
|
273
|
-
is_active: Joi.boolean(),
|
|
274
|
-
name: Joi.string().allow(""),
|
|
275
|
-
symbol: Joi.string().allow(""),
|
|
276
|
-
updated_at: Joi.string().allow(""),
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
|
|
280
236
|
/** @returns {Domain} */
|
|
281
237
|
static Domain() {
|
|
282
238
|
return Joi.object({
|
|
@@ -332,7 +288,7 @@ class ConfigurationPublicModel {
|
|
|
332
288
|
/** @returns {Locations} */
|
|
333
289
|
static Locations() {
|
|
334
290
|
return Joi.object({
|
|
335
|
-
items: Joi.array().items(
|
|
291
|
+
items: Joi.array().items(ConfigurationPublicModel.LocationCountry()),
|
|
336
292
|
});
|
|
337
293
|
}
|
|
338
294
|
|
|
@@ -343,19 +299,6 @@ class ConfigurationPublicModel {
|
|
|
343
299
|
});
|
|
344
300
|
}
|
|
345
301
|
|
|
346
|
-
/** @returns {Page} */
|
|
347
|
-
static Page() {
|
|
348
|
-
return Joi.object({
|
|
349
|
-
current: Joi.number(),
|
|
350
|
-
has_next: Joi.boolean(),
|
|
351
|
-
has_previous: Joi.boolean(),
|
|
352
|
-
item_total: Joi.number(),
|
|
353
|
-
next_id: Joi.string().allow(""),
|
|
354
|
-
size: Joi.number(),
|
|
355
|
-
type: Joi.string().allow("").required(),
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
|
|
359
302
|
/** @returns {SecureUrl} */
|
|
360
303
|
static SecureUrl() {
|
|
361
304
|
return Joi.object({
|