@gofynd/fdk-client-javascript 1.4.1 → 1.4.2-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 +1 -1
- package/package.json +3 -2
- package/sdk/application/ApplicationClient.js +20 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +3 -5
- package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
- package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
- package/sdk/application/Cart/CartApplicationValidator.js +0 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
- package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
- package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
- package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
- package/sdk/application/Content/ContentApplicationClient.js +0 -246
- package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
- package/sdk/application/Content/ContentApplicationModel.js +565 -817
- package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
- package/sdk/application/Content/ContentApplicationValidator.js +0 -41
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
- package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
- package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +8 -32
- package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
- package/sdk/application/Order/OrderApplicationModel.js +816 -824
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
- package/sdk/application/Order/OrderApplicationValidator.js +0 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
- package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
- package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
- package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
- package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
- package/sdk/application/User/UserApplicationClient.d.ts +0 -33
- package/sdk/application/User/UserApplicationClient.js +0 -239
- package/sdk/application/User/UserApplicationModel.d.ts +753 -768
- package/sdk/application/User/UserApplicationModel.js +731 -755
- package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
- package/sdk/application/User/UserApplicationValidator.js +0 -36
- package/sdk/common/Clickstream.d.ts +1 -0
- package/sdk/common/Clickstream.js +254 -0
- package/sdk/common/Utility.js +1 -4
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
- package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
- package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
- package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
- package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
- package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
- package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
- package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
- package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
- package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
- package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
- package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
- package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
- package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
- package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
- package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
- package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +2 -4
- package/sdk/platform/PlatformClient.js +4 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +990 -1589
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +986 -1702
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
- package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
- package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
- package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
- package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
- package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
- package/sdk/platform/User/UserPlatformModel.js +428 -679
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
- package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
- package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
- package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
- package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
- package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
- package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
- package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
- package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
- package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
- package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
- package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
- package/sdk/public/Billing/BillingPublicClient.js +0 -116
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
- package/sdk/public/Billing/BillingPublicModel.js +0 -96
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
- package/sdk/public/Billing/BillingPublicValidator.js +0 -19
- package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
- package/sdk/public/Content/ContentPublicClient.js +0 -114
- package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
- package/sdk/public/Content/ContentPublicModel.js +0 -60
- package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
- package/sdk/public/Content/ContentPublicValidator.js +0 -19
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
const Billing = require("./Billing/BillingPublicClient");
|
|
2
|
-
|
|
3
1
|
const Configuration = require("./Configuration/ConfigurationPublicClient");
|
|
4
2
|
|
|
5
|
-
const Content = require("./Content/ContentPublicClient");
|
|
6
|
-
|
|
7
3
|
const Inventory = require("./Inventory/InventoryPublicClient");
|
|
8
4
|
|
|
9
5
|
const Partner = require("./Partner/PartnerPublicClient");
|
|
@@ -26,12 +22,8 @@ class PublicClient {
|
|
|
26
22
|
constructor(config) {
|
|
27
23
|
this.config = config;
|
|
28
24
|
|
|
29
|
-
this.billing = new Billing(config);
|
|
30
|
-
|
|
31
25
|
this.configuration = new Configuration(config);
|
|
32
26
|
|
|
33
|
-
this.content = new Content(config);
|
|
34
|
-
|
|
35
27
|
this.inventory = new Inventory(config);
|
|
36
28
|
|
|
37
29
|
this.partner = new Partner(config);
|
|
@@ -4,10 +4,7 @@ declare class Webhook {
|
|
|
4
4
|
_conf: any;
|
|
5
5
|
_relativeUrls: {
|
|
6
6
|
fetchAllWebhookEvents: string;
|
|
7
|
-
notifyDepricatedEvent: string;
|
|
8
7
|
queryWebhookEventDetails: string;
|
|
9
|
-
testHandlerTransformation: string;
|
|
10
|
-
validateSchema: string;
|
|
11
8
|
};
|
|
12
9
|
_urls: {};
|
|
13
10
|
updateUrls(urls: any): void;
|
|
@@ -21,16 +18,6 @@ declare class Webhook {
|
|
|
21
18
|
* @description: Get All Webhook Events - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/webhook/fetchAllWebhookEvents/).
|
|
22
19
|
*/
|
|
23
20
|
fetchAllWebhookEvents({ requestHeaders }?: any, { responseHeaders }?: object): Promise<WebhookPublicModel.EventConfigResponse>;
|
|
24
|
-
/**
|
|
25
|
-
* @param {WebhookPublicValidator.NotifyDepricatedEventParam} arg - Arg object.
|
|
26
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
27
|
-
* @param {import("../PublicAPIClient").Options} - Options
|
|
28
|
-
* @returns {Promise<WebhookPublicModel.EventNotifier>} - Success response
|
|
29
|
-
* @name notifyDepricatedEvent
|
|
30
|
-
* @summary: Notifies all the events that are going to depricate
|
|
31
|
-
* @description: Notifies all the events that are subscribed and are going to deprecate or new version is available for those events - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/webhook/notifyDepricatedEvent/).
|
|
32
|
-
*/
|
|
33
|
-
notifyDepricatedEvent({ requestHeaders }?: any, { responseHeaders }?: object): Promise<WebhookPublicModel.EventNotifier>;
|
|
34
21
|
/**
|
|
35
22
|
* @param {WebhookPublicValidator.QueryWebhookEventDetailsParam} arg - Arg object.
|
|
36
23
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -41,26 +28,6 @@ declare class Webhook {
|
|
|
41
28
|
* @description: Get Webhook Event Details for provided events - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/webhook/queryWebhookEventDetails/).
|
|
42
29
|
*/
|
|
43
30
|
queryWebhookEventDetails({ body, requestHeaders }?: WebhookPublicValidator.QueryWebhookEventDetailsParam, { responseHeaders }?: object): Promise<WebhookPublicModel.EventConfigResponse>;
|
|
44
|
-
/**
|
|
45
|
-
* @param {WebhookPublicValidator.TestHandlerTransformationParam} arg - Arg object.
|
|
46
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
47
|
-
* @param {import("../PublicAPIClient").Options} - Options
|
|
48
|
-
* @returns {Promise<WebhookPublicModel.TransformEventResponse>} - Success response
|
|
49
|
-
* @name testHandlerTransformation
|
|
50
|
-
* @summary: Test transformation of handler
|
|
51
|
-
* @description: Test transformation of handler - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/webhook/testHandlerTransformation/).
|
|
52
|
-
*/
|
|
53
|
-
testHandlerTransformation({ body, requestHeaders }?: WebhookPublicValidator.TestHandlerTransformationParam, { responseHeaders }?: object): Promise<WebhookPublicModel.TransformEventResponse>;
|
|
54
|
-
/**
|
|
55
|
-
* @param {WebhookPublicValidator.ValidateSchemaParam} arg - Arg object.
|
|
56
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
57
|
-
* @param {import("../PublicAPIClient").Options} - Options
|
|
58
|
-
* @returns {Promise<WebhookPublicModel.ValidateSchemaResponse>} - Success response
|
|
59
|
-
* @name validateSchema
|
|
60
|
-
* @summary: Validate Schema for an event
|
|
61
|
-
* @description: Validate Schema for an event - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/webhook/validateSchema/).
|
|
62
|
-
*/
|
|
63
|
-
validateSchema({ body, requestHeaders }?: WebhookPublicValidator.ValidateSchemaParam, { responseHeaders }?: object): Promise<WebhookPublicModel.ValidateSchemaResponse>;
|
|
64
31
|
}
|
|
65
32
|
import WebhookPublicModel = require("./WebhookPublicModel");
|
|
66
33
|
import WebhookPublicValidator = require("./WebhookPublicValidator");
|
|
@@ -15,14 +15,8 @@ class Webhook {
|
|
|
15
15
|
this._conf = _conf;
|
|
16
16
|
this._relativeUrls = {
|
|
17
17
|
fetchAllWebhookEvents: "/service/common/webhook/v1.0/events",
|
|
18
|
-
notifyDepricatedEvent:
|
|
19
|
-
"/service/common/webhook/v1.0/events/depricated-event-notifier",
|
|
20
18
|
queryWebhookEventDetails:
|
|
21
19
|
"/service/common/webhook/v1.0/events/query-event-details",
|
|
22
|
-
testHandlerTransformation:
|
|
23
|
-
"/service/common/webhook/v1.0/events/transform-event",
|
|
24
|
-
validateSchema:
|
|
25
|
-
"/service/common/webhook/v1.0/events/validate-event-schema",
|
|
26
20
|
};
|
|
27
21
|
this._urls = Object.entries(this._relativeUrls).reduce(
|
|
28
22
|
(urls, [method, relativeUrl]) => {
|
|
@@ -118,84 +112,6 @@ class Webhook {
|
|
|
118
112
|
return response;
|
|
119
113
|
}
|
|
120
114
|
|
|
121
|
-
/**
|
|
122
|
-
* @param {WebhookPublicValidator.NotifyDepricatedEventParam} arg - Arg object.
|
|
123
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
124
|
-
* @param {import("../PublicAPIClient").Options} - Options
|
|
125
|
-
* @returns {Promise<WebhookPublicModel.EventNotifier>} - Success response
|
|
126
|
-
* @name notifyDepricatedEvent
|
|
127
|
-
* @summary: Notifies all the events that are going to depricate
|
|
128
|
-
* @description: Notifies all the events that are subscribed and are going to deprecate or new version is available for those events - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/webhook/notifyDepricatedEvent/).
|
|
129
|
-
*/
|
|
130
|
-
async notifyDepricatedEvent(
|
|
131
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
132
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
133
|
-
) {
|
|
134
|
-
const { error } = WebhookPublicValidator.notifyDepricatedEvent().validate(
|
|
135
|
-
{},
|
|
136
|
-
{ abortEarly: false, allowUnknown: true }
|
|
137
|
-
);
|
|
138
|
-
if (error) {
|
|
139
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
// Showing warrnings if extra unknown parameters are found
|
|
143
|
-
const {
|
|
144
|
-
error: warrning,
|
|
145
|
-
} = WebhookPublicValidator.notifyDepricatedEvent().validate(
|
|
146
|
-
{},
|
|
147
|
-
{ abortEarly: false, allowUnknown: false }
|
|
148
|
-
);
|
|
149
|
-
if (warrning) {
|
|
150
|
-
Logger({
|
|
151
|
-
level: "WARN",
|
|
152
|
-
message: `Parameter Validation warrnings for public > Webhook > notifyDepricatedEvent \n ${warrning}`,
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
const query_params = {};
|
|
157
|
-
|
|
158
|
-
const xHeaders = {};
|
|
159
|
-
|
|
160
|
-
const response = await PublicAPIClient.execute(
|
|
161
|
-
this._conf,
|
|
162
|
-
"get",
|
|
163
|
-
constructUrl({
|
|
164
|
-
url: this._urls["notifyDepricatedEvent"],
|
|
165
|
-
params: {},
|
|
166
|
-
}),
|
|
167
|
-
query_params,
|
|
168
|
-
undefined,
|
|
169
|
-
{ ...xHeaders, ...requestHeaders },
|
|
170
|
-
{ responseHeaders }
|
|
171
|
-
);
|
|
172
|
-
|
|
173
|
-
let responseData = response;
|
|
174
|
-
if (responseHeaders) {
|
|
175
|
-
responseData = response[0];
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
const {
|
|
179
|
-
error: res_error,
|
|
180
|
-
} = WebhookPublicModel.EventNotifier().validate(responseData, {
|
|
181
|
-
abortEarly: false,
|
|
182
|
-
allowUnknown: true,
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
if (res_error) {
|
|
186
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
187
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
188
|
-
} else {
|
|
189
|
-
Logger({
|
|
190
|
-
level: "WARN",
|
|
191
|
-
message: `Response Validation Warnings for public > Webhook > notifyDepricatedEvent \n ${res_error}`,
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
return response;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
115
|
/**
|
|
200
116
|
* @param {WebhookPublicValidator.QueryWebhookEventDetailsParam} arg - Arg object.
|
|
201
117
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -275,164 +191,6 @@ class Webhook {
|
|
|
275
191
|
|
|
276
192
|
return response;
|
|
277
193
|
}
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* @param {WebhookPublicValidator.TestHandlerTransformationParam} arg - Arg object.
|
|
281
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
282
|
-
* @param {import("../PublicAPIClient").Options} - Options
|
|
283
|
-
* @returns {Promise<WebhookPublicModel.TransformEventResponse>} - Success response
|
|
284
|
-
* @name testHandlerTransformation
|
|
285
|
-
* @summary: Test transformation of handler
|
|
286
|
-
* @description: Test transformation of handler - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/webhook/testHandlerTransformation/).
|
|
287
|
-
*/
|
|
288
|
-
async testHandlerTransformation(
|
|
289
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
290
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
291
|
-
) {
|
|
292
|
-
const {
|
|
293
|
-
error,
|
|
294
|
-
} = WebhookPublicValidator.testHandlerTransformation().validate(
|
|
295
|
-
{ body },
|
|
296
|
-
{ abortEarly: false, allowUnknown: true }
|
|
297
|
-
);
|
|
298
|
-
if (error) {
|
|
299
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
// Showing warrnings if extra unknown parameters are found
|
|
303
|
-
const {
|
|
304
|
-
error: warrning,
|
|
305
|
-
} = WebhookPublicValidator.testHandlerTransformation().validate(
|
|
306
|
-
{ body },
|
|
307
|
-
{ abortEarly: false, allowUnknown: false }
|
|
308
|
-
);
|
|
309
|
-
if (warrning) {
|
|
310
|
-
Logger({
|
|
311
|
-
level: "WARN",
|
|
312
|
-
message: `Parameter Validation warrnings for public > Webhook > testHandlerTransformation \n ${warrning}`,
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
const query_params = {};
|
|
317
|
-
|
|
318
|
-
const xHeaders = {};
|
|
319
|
-
|
|
320
|
-
const response = await PublicAPIClient.execute(
|
|
321
|
-
this._conf,
|
|
322
|
-
"post",
|
|
323
|
-
constructUrl({
|
|
324
|
-
url: this._urls["testHandlerTransformation"],
|
|
325
|
-
params: {},
|
|
326
|
-
}),
|
|
327
|
-
query_params,
|
|
328
|
-
body,
|
|
329
|
-
{ ...xHeaders, ...requestHeaders },
|
|
330
|
-
{ responseHeaders }
|
|
331
|
-
);
|
|
332
|
-
|
|
333
|
-
let responseData = response;
|
|
334
|
-
if (responseHeaders) {
|
|
335
|
-
responseData = response[0];
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
const {
|
|
339
|
-
error: res_error,
|
|
340
|
-
} = WebhookPublicModel.TransformEventResponse().validate(responseData, {
|
|
341
|
-
abortEarly: false,
|
|
342
|
-
allowUnknown: true,
|
|
343
|
-
});
|
|
344
|
-
|
|
345
|
-
if (res_error) {
|
|
346
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
347
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
348
|
-
} else {
|
|
349
|
-
Logger({
|
|
350
|
-
level: "WARN",
|
|
351
|
-
message: `Response Validation Warnings for public > Webhook > testHandlerTransformation \n ${res_error}`,
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
return response;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* @param {WebhookPublicValidator.ValidateSchemaParam} arg - Arg object.
|
|
361
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
362
|
-
* @param {import("../PublicAPIClient").Options} - Options
|
|
363
|
-
* @returns {Promise<WebhookPublicModel.ValidateSchemaResponse>} - Success response
|
|
364
|
-
* @name validateSchema
|
|
365
|
-
* @summary: Validate Schema for an event
|
|
366
|
-
* @description: Validate Schema for an event - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/webhook/validateSchema/).
|
|
367
|
-
*/
|
|
368
|
-
async validateSchema(
|
|
369
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
370
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
371
|
-
) {
|
|
372
|
-
const { error } = WebhookPublicValidator.validateSchema().validate(
|
|
373
|
-
{ body },
|
|
374
|
-
{ abortEarly: false, allowUnknown: true }
|
|
375
|
-
);
|
|
376
|
-
if (error) {
|
|
377
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
// Showing warrnings if extra unknown parameters are found
|
|
381
|
-
const {
|
|
382
|
-
error: warrning,
|
|
383
|
-
} = WebhookPublicValidator.validateSchema().validate(
|
|
384
|
-
{ body },
|
|
385
|
-
{ abortEarly: false, allowUnknown: false }
|
|
386
|
-
);
|
|
387
|
-
if (warrning) {
|
|
388
|
-
Logger({
|
|
389
|
-
level: "WARN",
|
|
390
|
-
message: `Parameter Validation warrnings for public > Webhook > validateSchema \n ${warrning}`,
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
const query_params = {};
|
|
395
|
-
|
|
396
|
-
const xHeaders = {};
|
|
397
|
-
|
|
398
|
-
const response = await PublicAPIClient.execute(
|
|
399
|
-
this._conf,
|
|
400
|
-
"post",
|
|
401
|
-
constructUrl({
|
|
402
|
-
url: this._urls["validateSchema"],
|
|
403
|
-
params: {},
|
|
404
|
-
}),
|
|
405
|
-
query_params,
|
|
406
|
-
body,
|
|
407
|
-
{ ...xHeaders, ...requestHeaders },
|
|
408
|
-
{ responseHeaders }
|
|
409
|
-
);
|
|
410
|
-
|
|
411
|
-
let responseData = response;
|
|
412
|
-
if (responseHeaders) {
|
|
413
|
-
responseData = response[0];
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
const {
|
|
417
|
-
error: res_error,
|
|
418
|
-
} = WebhookPublicModel.ValidateSchemaResponse().validate(responseData, {
|
|
419
|
-
abortEarly: false,
|
|
420
|
-
allowUnknown: true,
|
|
421
|
-
});
|
|
422
|
-
|
|
423
|
-
if (res_error) {
|
|
424
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
425
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
426
|
-
} else {
|
|
427
|
-
Logger({
|
|
428
|
-
level: "WARN",
|
|
429
|
-
message: `Response Validation Warnings for public > Webhook > validateSchema \n ${res_error}`,
|
|
430
|
-
});
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
return response;
|
|
435
|
-
}
|
|
436
194
|
}
|
|
437
195
|
|
|
438
196
|
module.exports = Webhook;
|
|
@@ -1,199 +1,53 @@
|
|
|
1
1
|
export = WebhookPublicModel;
|
|
2
2
|
/**
|
|
3
3
|
* @typedef EventConfig
|
|
4
|
-
* @property {string} [created_on]
|
|
5
|
-
* @property {string} [description]
|
|
6
|
-
* @property {string} [display_name]
|
|
7
|
-
* @property {string} [event_category]
|
|
8
|
-
* @property {string} [event_name]
|
|
9
|
-
* @property {Object} [event_schema]
|
|
10
|
-
* @property {string} [event_type]
|
|
11
4
|
* @property {number} [id]
|
|
12
|
-
* @property {string} [updated_on]
|
|
13
|
-
* @property {string} [version]
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* @typedef EventConfigBase
|
|
17
|
-
* @property {string} [event_category]
|
|
18
5
|
* @property {string} [event_name]
|
|
19
6
|
* @property {string} [event_type]
|
|
7
|
+
* @property {string} [event_category]
|
|
20
8
|
* @property {string} [version]
|
|
9
|
+
* @property {string} [display_name]
|
|
10
|
+
* @property {string} [description]
|
|
11
|
+
* @property {string} [created_on]
|
|
21
12
|
*/
|
|
22
13
|
/**
|
|
23
14
|
* @typedef EventConfigResponse
|
|
24
15
|
* @property {EventConfig[]} [event_configs]
|
|
25
16
|
*/
|
|
26
17
|
/**
|
|
27
|
-
* @typedef
|
|
28
|
-
* @property {string[]} [emails]
|
|
29
|
-
* @property {string} [message]
|
|
30
|
-
*/
|
|
31
|
-
/**
|
|
32
|
-
* @typedef EventSchema
|
|
33
|
-
* @property {Object} [meta]
|
|
34
|
-
* @property {Object} [payload]
|
|
35
|
-
*/
|
|
36
|
-
/**
|
|
37
|
-
* @typedef InternalTransformEvent
|
|
38
|
-
* @property {number} [created_timestamp]
|
|
39
|
-
* @property {string} [name]
|
|
40
|
-
* @property {string[]} [trace_id]
|
|
41
|
-
* @property {string} [type]
|
|
42
|
-
* @property {string} [version]
|
|
43
|
-
*/
|
|
44
|
-
/**
|
|
45
|
-
* @typedef TransformEventAssociation
|
|
46
|
-
* @property {number} [company_id]
|
|
47
|
-
*/
|
|
48
|
-
/**
|
|
49
|
-
* @typedef TransformEventData
|
|
50
|
-
* @property {number} [company_id]
|
|
51
|
-
* @property {string[]} [contains]
|
|
52
|
-
* @property {InternalTransformEvent} [event]
|
|
53
|
-
* @property {Object} [payload]
|
|
54
|
-
*/
|
|
55
|
-
/**
|
|
56
|
-
* @typedef TransformEventRequest
|
|
57
|
-
* @property {EventSchema} [event]
|
|
58
|
-
* @property {string} [event_category]
|
|
59
|
-
* @property {string} [event_name]
|
|
60
|
-
* @property {string} [event_type]
|
|
61
|
-
* @property {string} [event_version]
|
|
62
|
-
*/
|
|
63
|
-
/**
|
|
64
|
-
* @typedef TransformEventResponse
|
|
65
|
-
* @property {TransformEventAssociation} [association]
|
|
66
|
-
* @property {TransformEventData} [data]
|
|
18
|
+
* @typedef EventConfigBase
|
|
67
19
|
* @property {string} [event_name]
|
|
68
|
-
* @property {string[]} [event_trace_id]
|
|
69
20
|
* @property {string} [event_type]
|
|
70
|
-
* @property {TransformEventServiceMeta} [service_meta]
|
|
71
|
-
* @property {boolean} [status]
|
|
72
|
-
* @property {string} [version]
|
|
73
|
-
*/
|
|
74
|
-
/**
|
|
75
|
-
* @typedef TransformEventServiceMeta
|
|
76
|
-
* @property {string} [name]
|
|
77
|
-
*/
|
|
78
|
-
/**
|
|
79
|
-
* @typedef ValidateSchemaRequest
|
|
80
|
-
* @property {EventSchema} [event]
|
|
81
21
|
* @property {string} [event_category]
|
|
82
|
-
* @property {string} [
|
|
83
|
-
* @property {Object} [event_schema]
|
|
84
|
-
* @property {string} [event_type]
|
|
85
|
-
* @property {string} [event_version]
|
|
86
|
-
*/
|
|
87
|
-
/**
|
|
88
|
-
* @typedef ValidateSchemaResponse
|
|
89
|
-
* @property {string} [message]
|
|
90
|
-
* @property {boolean} [status]
|
|
22
|
+
* @property {string} [version]
|
|
91
23
|
*/
|
|
92
24
|
declare class WebhookPublicModel {
|
|
93
25
|
}
|
|
94
26
|
declare namespace WebhookPublicModel {
|
|
95
|
-
export { EventConfig,
|
|
27
|
+
export { EventConfig, EventConfigResponse, EventConfigBase };
|
|
96
28
|
}
|
|
97
29
|
/** @returns {EventConfig} */
|
|
98
30
|
declare function EventConfig(): EventConfig;
|
|
99
31
|
type EventConfig = {
|
|
100
|
-
created_on?: string;
|
|
101
|
-
description?: string;
|
|
102
|
-
display_name?: string;
|
|
103
|
-
event_category?: string;
|
|
104
|
-
event_name?: string;
|
|
105
|
-
event_schema?: any;
|
|
106
|
-
event_type?: string;
|
|
107
32
|
id?: number;
|
|
108
|
-
updated_on?: string;
|
|
109
|
-
version?: string;
|
|
110
|
-
};
|
|
111
|
-
/** @returns {EventConfigBase} */
|
|
112
|
-
declare function EventConfigBase(): EventConfigBase;
|
|
113
|
-
type EventConfigBase = {
|
|
114
|
-
event_category?: string;
|
|
115
33
|
event_name?: string;
|
|
116
34
|
event_type?: string;
|
|
35
|
+
event_category?: string;
|
|
117
36
|
version?: string;
|
|
37
|
+
display_name?: string;
|
|
38
|
+
description?: string;
|
|
39
|
+
created_on?: string;
|
|
118
40
|
};
|
|
119
41
|
/** @returns {EventConfigResponse} */
|
|
120
42
|
declare function EventConfigResponse(): EventConfigResponse;
|
|
121
43
|
type EventConfigResponse = {
|
|
122
44
|
event_configs?: EventConfig[];
|
|
123
45
|
};
|
|
124
|
-
/** @returns {
|
|
125
|
-
declare function
|
|
126
|
-
type
|
|
127
|
-
emails?: string[];
|
|
128
|
-
message?: string;
|
|
129
|
-
};
|
|
130
|
-
/** @returns {EventSchema} */
|
|
131
|
-
declare function EventSchema(): EventSchema;
|
|
132
|
-
type EventSchema = {
|
|
133
|
-
meta?: any;
|
|
134
|
-
payload?: any;
|
|
135
|
-
};
|
|
136
|
-
/** @returns {InternalTransformEvent} */
|
|
137
|
-
declare function InternalTransformEvent(): InternalTransformEvent;
|
|
138
|
-
type InternalTransformEvent = {
|
|
139
|
-
created_timestamp?: number;
|
|
140
|
-
name?: string;
|
|
141
|
-
trace_id?: string[];
|
|
142
|
-
type?: string;
|
|
143
|
-
version?: string;
|
|
144
|
-
};
|
|
145
|
-
/** @returns {TransformEventAssociation} */
|
|
146
|
-
declare function TransformEventAssociation(): TransformEventAssociation;
|
|
147
|
-
type TransformEventAssociation = {
|
|
148
|
-
company_id?: number;
|
|
149
|
-
};
|
|
150
|
-
/** @returns {TransformEventData} */
|
|
151
|
-
declare function TransformEventData(): TransformEventData;
|
|
152
|
-
type TransformEventData = {
|
|
153
|
-
company_id?: number;
|
|
154
|
-
contains?: string[];
|
|
155
|
-
event?: InternalTransformEvent;
|
|
156
|
-
payload?: any;
|
|
157
|
-
};
|
|
158
|
-
/** @returns {TransformEventRequest} */
|
|
159
|
-
declare function TransformEventRequest(): TransformEventRequest;
|
|
160
|
-
type TransformEventRequest = {
|
|
161
|
-
event?: EventSchema;
|
|
162
|
-
event_category?: string;
|
|
163
|
-
event_name?: string;
|
|
164
|
-
event_type?: string;
|
|
165
|
-
event_version?: string;
|
|
166
|
-
};
|
|
167
|
-
/** @returns {TransformEventResponse} */
|
|
168
|
-
declare function TransformEventResponse(): TransformEventResponse;
|
|
169
|
-
type TransformEventResponse = {
|
|
170
|
-
association?: TransformEventAssociation;
|
|
171
|
-
data?: TransformEventData;
|
|
46
|
+
/** @returns {EventConfigBase} */
|
|
47
|
+
declare function EventConfigBase(): EventConfigBase;
|
|
48
|
+
type EventConfigBase = {
|
|
172
49
|
event_name?: string;
|
|
173
|
-
event_trace_id?: string[];
|
|
174
50
|
event_type?: string;
|
|
175
|
-
service_meta?: TransformEventServiceMeta;
|
|
176
|
-
status?: boolean;
|
|
177
|
-
version?: string;
|
|
178
|
-
};
|
|
179
|
-
/** @returns {TransformEventServiceMeta} */
|
|
180
|
-
declare function TransformEventServiceMeta(): TransformEventServiceMeta;
|
|
181
|
-
type TransformEventServiceMeta = {
|
|
182
|
-
name?: string;
|
|
183
|
-
};
|
|
184
|
-
/** @returns {ValidateSchemaRequest} */
|
|
185
|
-
declare function ValidateSchemaRequest(): ValidateSchemaRequest;
|
|
186
|
-
type ValidateSchemaRequest = {
|
|
187
|
-
event?: EventSchema;
|
|
188
51
|
event_category?: string;
|
|
189
|
-
|
|
190
|
-
event_schema?: any;
|
|
191
|
-
event_type?: string;
|
|
192
|
-
event_version?: string;
|
|
193
|
-
};
|
|
194
|
-
/** @returns {ValidateSchemaResponse} */
|
|
195
|
-
declare function ValidateSchemaResponse(): ValidateSchemaResponse;
|
|
196
|
-
type ValidateSchemaResponse = {
|
|
197
|
-
message?: string;
|
|
198
|
-
status?: boolean;
|
|
52
|
+
version?: string;
|
|
199
53
|
};
|