@gofynd/fdk-client-javascript 1.4.12 → 1.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +60 -53
- package/sdk/application/Cart/CartApplicationClient.js +130 -53
- package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
- package/sdk/application/Cart/CartApplicationModel.js +380 -159
- package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
- package/sdk/application/Cart/CartApplicationValidator.js +34 -18
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
- package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
- package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
- package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
- package/sdk/application/Common/CommonApplicationClient.js +6 -5
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
- package/sdk/application/Content/ContentApplicationClient.js +54 -75
- package/sdk/application/Content/ContentApplicationModel.d.ts +96 -39
- package/sdk/application/Content/ContentApplicationModel.js +88 -34
- package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
- package/sdk/application/Content/ContentApplicationValidator.js +15 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
- package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
- package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
- package/sdk/application/Lead/LeadApplicationClient.js +2 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
- package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
- package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
- package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
- package/sdk/application/Order/OrderApplicationClient.js +96 -13
- package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
- package/sdk/application/Order/OrderApplicationModel.js +278 -73
- package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
- package/sdk/application/Order/OrderApplicationValidator.js +15 -2
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
- package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
- package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
- package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +51 -19
- package/sdk/application/Theme/ThemeApplicationModel.js +47 -24
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
- package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
- package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +1 -0
- package/sdk/application/index.js +2 -0
- package/sdk/common/Clickstream.js +12 -0
- package/sdk/common/Constant.d.ts +5 -0
- package/sdk/common/Constant.js +5 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- 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 +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +99 -39
- package/sdk/partner/Theme/ThemePartnerModel.js +95 -38
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
- package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +192 -164
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +371 -343
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +99 -99
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +54 -54
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +139 -116
- package/sdk/platform/Catalog/CatalogPlatformClient.js +191 -168
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1374 -749
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1241 -830
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1244 -397
- package/sdk/platform/Content/ContentPlatformModel.js +526 -392
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- 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 +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- 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 +15 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +138 -101
- package/sdk/platform/Order/OrderPlatformClient.js +267 -203
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4497 -877
- package/sdk/platform/Order/OrderPlatformModel.js +2336 -812
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +147 -50
- package/sdk/platform/Order/OrderPlatformValidator.js +75 -46
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
- package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- 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 +45 -35
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +40 -13
- package/sdk/platform/Theme/ThemePlatformModel.js +38 -17
- 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 +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +791 -5
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -14,11 +14,96 @@ class Webhook {
|
|
|
14
14
|
this.config = config;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* @param {WebhookPartnerValidator.ResponseTimeSummaryParam} arg - Arg object.
|
|
19
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
20
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
21
|
+
* @returns {Promise<WebhookPartnerModel.ResponseTimeTs>} - Success response
|
|
22
|
+
* @name responseTimeSummary
|
|
23
|
+
* @summary: Response time summary
|
|
24
|
+
* @description: Response time summary - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/responseTimeSummary/).
|
|
25
|
+
*/
|
|
26
|
+
async responseTimeSummary(
|
|
27
|
+
{ extensionId, startDate, endDate, requestHeaders } = {
|
|
28
|
+
requestHeaders: {},
|
|
29
|
+
},
|
|
30
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
31
|
+
) {
|
|
32
|
+
const { error } = WebhookPartnerValidator.responseTimeSummary().validate(
|
|
33
|
+
{
|
|
34
|
+
extensionId,
|
|
35
|
+
startDate,
|
|
36
|
+
endDate,
|
|
37
|
+
},
|
|
38
|
+
{ abortEarly: false, allowUnknown: true }
|
|
39
|
+
);
|
|
40
|
+
if (error) {
|
|
41
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Showing warrnings if extra unknown parameters are found
|
|
45
|
+
const {
|
|
46
|
+
error: warrning,
|
|
47
|
+
} = WebhookPartnerValidator.responseTimeSummary().validate(
|
|
48
|
+
{
|
|
49
|
+
extensionId,
|
|
50
|
+
startDate,
|
|
51
|
+
endDate,
|
|
52
|
+
},
|
|
53
|
+
{ abortEarly: false, allowUnknown: false }
|
|
54
|
+
);
|
|
55
|
+
if (warrning) {
|
|
56
|
+
Logger({
|
|
57
|
+
level: "WARN",
|
|
58
|
+
message: `Parameter Validation warrnings for partner > Webhook > responseTimeSummary \n ${warrning}`,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const query_params = {};
|
|
63
|
+
query_params["start_date"] = startDate;
|
|
64
|
+
query_params["end_date"] = endDate;
|
|
65
|
+
|
|
66
|
+
const response = await PartnerAPIClient.execute(
|
|
67
|
+
this.config,
|
|
68
|
+
"get",
|
|
69
|
+
`/service/partner/webhook/v1.0/organization/${this.config.organizationId}/extension/${extensionId}/report/response_time_ts`,
|
|
70
|
+
query_params,
|
|
71
|
+
undefined,
|
|
72
|
+
requestHeaders,
|
|
73
|
+
{ responseHeaders }
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
let responseData = response;
|
|
77
|
+
if (responseHeaders) {
|
|
78
|
+
responseData = response[0];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const {
|
|
82
|
+
error: res_error,
|
|
83
|
+
} = WebhookPartnerModel.ResponseTimeTs().validate(responseData, {
|
|
84
|
+
abortEarly: false,
|
|
85
|
+
allowUnknown: true,
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
if (res_error) {
|
|
89
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
90
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
91
|
+
} else {
|
|
92
|
+
Logger({
|
|
93
|
+
level: "WARN",
|
|
94
|
+
message: `Response Validation Warnings for partner > Webhook > responseTimeSummary \n ${res_error}`,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return response;
|
|
100
|
+
}
|
|
101
|
+
|
|
17
102
|
/**
|
|
18
103
|
* @param {WebhookPartnerValidator.FetchDeliverySummaryParam} arg - Arg object.
|
|
19
104
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
20
105
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
21
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
106
|
+
* @returns {Promise<WebhookPartnerModel.DeliverySummaryResult>} - Success response
|
|
22
107
|
* @name fetchDeliverySummary
|
|
23
108
|
* @summary: Webhook delivery summary
|
|
24
109
|
* @description: Webhook delivery summary - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchDeliverySummary/).
|
|
@@ -80,7 +165,7 @@ class Webhook {
|
|
|
80
165
|
|
|
81
166
|
const {
|
|
82
167
|
error: res_error,
|
|
83
|
-
} = WebhookPartnerModel.
|
|
168
|
+
} = WebhookPartnerModel.DeliverySummaryResult().validate(responseData, {
|
|
84
169
|
abortEarly: false,
|
|
85
170
|
allowUnknown: true,
|
|
86
171
|
});
|
|
@@ -103,7 +188,7 @@ class Webhook {
|
|
|
103
188
|
* @param {WebhookPartnerValidator.GetDeliveryDetailInsightsParam} arg - Arg object.
|
|
104
189
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
105
190
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
106
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
191
|
+
* @returns {Promise<WebhookPartnerModel.DeliveryDetailsResult>} - Success response
|
|
107
192
|
* @name getDeliveryDetailInsights
|
|
108
193
|
* @summary: Get the insights of delivery details of the events that was pushed to subscribers
|
|
109
194
|
* @description: Get the delivery details insights - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/getDeliveryDetailInsights/).
|
|
@@ -161,7 +246,7 @@ class Webhook {
|
|
|
161
246
|
|
|
162
247
|
const {
|
|
163
248
|
error: res_error,
|
|
164
|
-
} = WebhookPartnerModel.
|
|
249
|
+
} = WebhookPartnerModel.DeliveryDetailsResult().validate(responseData, {
|
|
165
250
|
abortEarly: false,
|
|
166
251
|
allowUnknown: true,
|
|
167
252
|
});
|
|
@@ -184,7 +269,7 @@ class Webhook {
|
|
|
184
269
|
* @param {WebhookPartnerValidator.FetchDeliveryTsParam} arg - Arg object.
|
|
185
270
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
186
271
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
187
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
272
|
+
* @returns {Promise<WebhookPartnerModel.DeliveryTsResult>} - Success response
|
|
188
273
|
* @name fetchDeliveryTs
|
|
189
274
|
* @summary: Webhook delivery ts
|
|
190
275
|
* @description: Webhook delivery ts - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchDeliveryTs/).
|
|
@@ -246,7 +331,7 @@ class Webhook {
|
|
|
246
331
|
|
|
247
332
|
const {
|
|
248
333
|
error: res_error,
|
|
249
|
-
} = WebhookPartnerModel.
|
|
334
|
+
} = WebhookPartnerModel.DeliveryTsResult().validate(responseData, {
|
|
250
335
|
abortEarly: false,
|
|
251
336
|
allowUnknown: true,
|
|
252
337
|
});
|
|
@@ -269,7 +354,7 @@ class Webhook {
|
|
|
269
354
|
* @param {WebhookPartnerValidator.FetchReportFiltersParam} arg - Arg object.
|
|
270
355
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
271
356
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
272
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
357
|
+
* @returns {Promise<WebhookPartnerModel.FilterReportResult[]>} - Success response
|
|
273
358
|
* @name fetchReportFilters
|
|
274
359
|
* @summary: Fetch webhook report filters
|
|
275
360
|
* @description: Fetch webhook report filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchReportFilters/).
|
|
@@ -336,7 +421,7 @@ class Webhook {
|
|
|
336
421
|
}
|
|
337
422
|
|
|
338
423
|
const { error: res_error } = Joi.array()
|
|
339
|
-
.items(WebhookPartnerModel.
|
|
424
|
+
.items(WebhookPartnerModel.FilterReportResult())
|
|
340
425
|
.validate(responseData, { abortEarly: false, allowUnknown: true });
|
|
341
426
|
|
|
342
427
|
if (res_error) {
|
|
@@ -357,7 +442,7 @@ class Webhook {
|
|
|
357
442
|
* @param {WebhookPartnerValidator.CancelReportDownloadParam} arg - Arg object.
|
|
358
443
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
359
444
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
360
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
445
|
+
* @returns {Promise<WebhookPartnerModel.CancelDownloadResult>} - Success response
|
|
361
446
|
* @name cancelReportDownload
|
|
362
447
|
* @summary: Cancel report download job
|
|
363
448
|
* @description: Cancel report download job - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/cancelReportDownload/).
|
|
@@ -413,7 +498,7 @@ class Webhook {
|
|
|
413
498
|
|
|
414
499
|
const {
|
|
415
500
|
error: res_error,
|
|
416
|
-
} = WebhookPartnerModel.
|
|
501
|
+
} = WebhookPartnerModel.CancelDownloadResult().validate(responseData, {
|
|
417
502
|
abortEarly: false,
|
|
418
503
|
allowUnknown: true,
|
|
419
504
|
});
|
|
@@ -436,7 +521,7 @@ class Webhook {
|
|
|
436
521
|
* @param {WebhookPartnerValidator.GetHistoricalReportsParam} arg - Arg object.
|
|
437
522
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
438
523
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
439
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
524
|
+
* @returns {Promise<WebhookPartnerModel.HistoryResult>} - Success response
|
|
440
525
|
* @name getHistoricalReports
|
|
441
526
|
* @summary: Get report download history.
|
|
442
527
|
* @description: Retrieve history reports for a specific company based on the provided filters.
|
|
@@ -493,7 +578,7 @@ class Webhook {
|
|
|
493
578
|
|
|
494
579
|
const {
|
|
495
580
|
error: res_error,
|
|
496
|
-
} = WebhookPartnerModel.
|
|
581
|
+
} = WebhookPartnerModel.HistoryResult().validate(responseData, {
|
|
497
582
|
abortEarly: false,
|
|
498
583
|
allowUnknown: true,
|
|
499
584
|
});
|
|
@@ -516,7 +601,7 @@ class Webhook {
|
|
|
516
601
|
* @param {WebhookPartnerValidator.GetInvalidEventListParam} arg - Arg object.
|
|
517
602
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
518
603
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
519
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
604
|
+
* @returns {Promise<WebhookPartnerModel.InvalidEventsResult[]>} - Success response
|
|
520
605
|
* @name getInvalidEventList
|
|
521
606
|
* @summary: Get invalid event list
|
|
522
607
|
* @description: Get invalid event list.
|
|
@@ -572,7 +657,7 @@ class Webhook {
|
|
|
572
657
|
}
|
|
573
658
|
|
|
574
659
|
const { error: res_error } = Joi.array()
|
|
575
|
-
.items(WebhookPartnerModel.
|
|
660
|
+
.items(WebhookPartnerModel.InvalidEventsResult())
|
|
576
661
|
.validate(responseData, { abortEarly: false, allowUnknown: true });
|
|
577
662
|
|
|
578
663
|
if (res_error) {
|
|
@@ -593,7 +678,7 @@ class Webhook {
|
|
|
593
678
|
* @param {WebhookPartnerValidator.FetchSubscribersParam} arg - Arg object.
|
|
594
679
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
595
680
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
596
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
681
|
+
* @returns {Promise<WebhookPartnerModel.SubscriberConfigDetails>} - Success response
|
|
597
682
|
* @name fetchSubscribers
|
|
598
683
|
* @summary: Fetch subscriber by filters
|
|
599
684
|
* @description: Fetch subscriber by filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchSubscribers/).
|
|
@@ -647,7 +732,7 @@ class Webhook {
|
|
|
647
732
|
|
|
648
733
|
const {
|
|
649
734
|
error: res_error,
|
|
650
|
-
} = WebhookPartnerModel.
|
|
735
|
+
} = WebhookPartnerModel.SubscriberConfigDetails().validate(responseData, {
|
|
651
736
|
abortEarly: false,
|
|
652
737
|
allowUnknown: true,
|
|
653
738
|
});
|
|
@@ -670,7 +755,7 @@ class Webhook {
|
|
|
670
755
|
* @param {WebhookPartnerValidator.UpdateSubscriberParam} arg - Arg object.
|
|
671
756
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
672
757
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
673
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
758
|
+
* @returns {Promise<WebhookPartnerModel.SubscriberUpdateResult>} - Success response
|
|
674
759
|
* @name updateSubscriber
|
|
675
760
|
* @summary: Update subscriber status by id.
|
|
676
761
|
* @description: Update subscriber status by id.
|
|
@@ -731,7 +816,7 @@ class Webhook {
|
|
|
731
816
|
|
|
732
817
|
const {
|
|
733
818
|
error: res_error,
|
|
734
|
-
} = WebhookPartnerModel.
|
|
819
|
+
} = WebhookPartnerModel.SubscriberUpdateResult().validate(responseData, {
|
|
735
820
|
abortEarly: false,
|
|
736
821
|
allowUnknown: true,
|
|
737
822
|
});
|