@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,16 +1,4 @@
|
|
|
1
1
|
export = WebhookPublicModel;
|
|
2
|
-
/**
|
|
3
|
-
* @typedef Association
|
|
4
|
-
* @property {string[]} [application_id]
|
|
5
|
-
* @property {number} [company_id]
|
|
6
|
-
* @property {string} [criteria]
|
|
7
|
-
* @property {string} [extension_id]
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @typedef AuthMeta
|
|
11
|
-
* @property {string} [secret]
|
|
12
|
-
* @property {string} [type]
|
|
13
|
-
*/
|
|
14
2
|
/**
|
|
15
3
|
* @typedef EventConfig
|
|
16
4
|
* @property {string} [created_on]
|
|
@@ -29,104 +17,15 @@ export = WebhookPublicModel;
|
|
|
29
17
|
* @property {string} [event_type]
|
|
30
18
|
* @property {string} [version]
|
|
31
19
|
*/
|
|
32
|
-
/**
|
|
33
|
-
* @typedef EventConfigList
|
|
34
|
-
* @property {EventConfig[]} [items]
|
|
35
|
-
* @property {Page} [page]
|
|
36
|
-
*/
|
|
37
20
|
/**
|
|
38
21
|
* @typedef EventConfigResponse
|
|
39
22
|
* @property {EventConfig[]} [event_configs]
|
|
40
23
|
*/
|
|
41
|
-
/**
|
|
42
|
-
* @typedef EventPayload
|
|
43
|
-
* @property {string} [event_name]
|
|
44
|
-
* @property {string} [event_trace_id]
|
|
45
|
-
* @property {string} [event_type]
|
|
46
|
-
* @property {number} [id]
|
|
47
|
-
* @property {string} [message_id]
|
|
48
|
-
* @property {boolean} [status]
|
|
49
|
-
* @property {string} [version]
|
|
50
|
-
*/
|
|
51
|
-
/**
|
|
52
|
-
* @typedef EventProcessedStatus
|
|
53
|
-
* @property {number} [attempt]
|
|
54
|
-
* @property {string} [created_on]
|
|
55
|
-
* @property {number} [id]
|
|
56
|
-
* @property {string} [processed_on]
|
|
57
|
-
* @property {string} [response_code]
|
|
58
|
-
* @property {string} [response_message]
|
|
59
|
-
* @property {boolean} [status]
|
|
60
|
-
* @property {string} [subscriber_id]
|
|
61
|
-
*/
|
|
62
|
-
/**
|
|
63
|
-
* @typedef Page
|
|
64
|
-
* @property {number} [current]
|
|
65
|
-
* @property {boolean} [has_next]
|
|
66
|
-
* @property {boolean} [has_previous]
|
|
67
|
-
* @property {number} [item_total]
|
|
68
|
-
* @property {string} [next_id]
|
|
69
|
-
* @property {number} [size]
|
|
70
|
-
* @property {string} type
|
|
71
|
-
*/
|
|
72
|
-
/**
|
|
73
|
-
* @typedef SubscriberConfig
|
|
74
|
-
* @property {Association} [association]
|
|
75
|
-
* @property {AuthMeta} [auth_meta]
|
|
76
|
-
* @property {Object} [custom_headers]
|
|
77
|
-
* @property {string} [email_id]
|
|
78
|
-
* @property {number[]} [event_id]
|
|
79
|
-
* @property {number} [id]
|
|
80
|
-
* @property {string} [name]
|
|
81
|
-
* @property {SubscriberStatus} [status]
|
|
82
|
-
* @property {string} [webhook_url]
|
|
83
|
-
*/
|
|
84
|
-
/**
|
|
85
|
-
* @typedef SubscriberConfigList
|
|
86
|
-
* @property {SubscriberResponse[]} [items]
|
|
87
|
-
* @property {Page} [page]
|
|
88
|
-
*/
|
|
89
|
-
/**
|
|
90
|
-
* @typedef SubscriberEvent
|
|
91
|
-
* @property {string} [created_date]
|
|
92
|
-
* @property {number} [event_id]
|
|
93
|
-
* @property {number} [id]
|
|
94
|
-
* @property {number} [subscriber_id]
|
|
95
|
-
*/
|
|
96
|
-
/**
|
|
97
|
-
* @typedef SubscriberResponse
|
|
98
|
-
* @property {Association} [association]
|
|
99
|
-
* @property {AuthMeta} [auth_meta]
|
|
100
|
-
* @property {string} [created_on]
|
|
101
|
-
* @property {Object} [custom_headers]
|
|
102
|
-
* @property {string} [email_id]
|
|
103
|
-
* @property {EventConfig[]} [event_configs]
|
|
104
|
-
* @property {number} [id]
|
|
105
|
-
* @property {string} [name]
|
|
106
|
-
* @property {SubscriberStatus} [status]
|
|
107
|
-
* @property {string} [updated_on]
|
|
108
|
-
* @property {string} [webhook_url]
|
|
109
|
-
*/
|
|
110
|
-
/** @typedef {"active" | "inactive" | "blocked"} SubscriberStatus */
|
|
111
24
|
declare class WebhookPublicModel {
|
|
112
25
|
}
|
|
113
26
|
declare namespace WebhookPublicModel {
|
|
114
|
-
export {
|
|
27
|
+
export { EventConfig, EventConfigBase, EventConfigResponse };
|
|
115
28
|
}
|
|
116
|
-
/** @returns {Association} */
|
|
117
|
-
declare function Association(): Association;
|
|
118
|
-
type Association = {
|
|
119
|
-
application_id?: string[];
|
|
120
|
-
company_id?: number;
|
|
121
|
-
criteria?: string;
|
|
122
|
-
extension_id?: string;
|
|
123
|
-
};
|
|
124
|
-
/** @returns {AuthMeta} */
|
|
125
|
-
declare function AuthMeta(): AuthMeta;
|
|
126
|
-
type AuthMeta = {
|
|
127
|
-
secret?: string;
|
|
128
|
-
type?: string;
|
|
129
|
-
};
|
|
130
29
|
/** @returns {EventConfig} */
|
|
131
30
|
declare function EventConfig(): EventConfig;
|
|
132
31
|
type EventConfig = {
|
|
@@ -147,97 +46,8 @@ type EventConfigBase = {
|
|
|
147
46
|
event_type?: string;
|
|
148
47
|
version?: string;
|
|
149
48
|
};
|
|
150
|
-
/** @returns {EventConfigList} */
|
|
151
|
-
declare function EventConfigList(): EventConfigList;
|
|
152
|
-
type EventConfigList = {
|
|
153
|
-
items?: EventConfig[];
|
|
154
|
-
page?: Page;
|
|
155
|
-
};
|
|
156
49
|
/** @returns {EventConfigResponse} */
|
|
157
50
|
declare function EventConfigResponse(): EventConfigResponse;
|
|
158
51
|
type EventConfigResponse = {
|
|
159
52
|
event_configs?: EventConfig[];
|
|
160
53
|
};
|
|
161
|
-
/** @returns {EventPayload} */
|
|
162
|
-
declare function EventPayload(): EventPayload;
|
|
163
|
-
type EventPayload = {
|
|
164
|
-
event_name?: string;
|
|
165
|
-
event_trace_id?: string;
|
|
166
|
-
event_type?: string;
|
|
167
|
-
id?: number;
|
|
168
|
-
message_id?: string;
|
|
169
|
-
status?: boolean;
|
|
170
|
-
version?: string;
|
|
171
|
-
};
|
|
172
|
-
/** @returns {EventProcessedStatus} */
|
|
173
|
-
declare function EventProcessedStatus(): EventProcessedStatus;
|
|
174
|
-
type EventProcessedStatus = {
|
|
175
|
-
attempt?: number;
|
|
176
|
-
created_on?: string;
|
|
177
|
-
id?: number;
|
|
178
|
-
processed_on?: string;
|
|
179
|
-
response_code?: string;
|
|
180
|
-
response_message?: string;
|
|
181
|
-
status?: boolean;
|
|
182
|
-
subscriber_id?: string;
|
|
183
|
-
};
|
|
184
|
-
/** @returns {Page} */
|
|
185
|
-
declare function Page(): Page;
|
|
186
|
-
type Page = {
|
|
187
|
-
current?: number;
|
|
188
|
-
has_next?: boolean;
|
|
189
|
-
has_previous?: boolean;
|
|
190
|
-
item_total?: number;
|
|
191
|
-
next_id?: string;
|
|
192
|
-
size?: number;
|
|
193
|
-
type: string;
|
|
194
|
-
};
|
|
195
|
-
/** @returns {SubscriberConfig} */
|
|
196
|
-
declare function SubscriberConfig(): SubscriberConfig;
|
|
197
|
-
type SubscriberConfig = {
|
|
198
|
-
association?: Association;
|
|
199
|
-
auth_meta?: AuthMeta;
|
|
200
|
-
custom_headers?: any;
|
|
201
|
-
email_id?: string;
|
|
202
|
-
event_id?: number[];
|
|
203
|
-
id?: number;
|
|
204
|
-
name?: string;
|
|
205
|
-
status?: SubscriberStatus;
|
|
206
|
-
webhook_url?: string;
|
|
207
|
-
};
|
|
208
|
-
/** @returns {SubscriberConfigList} */
|
|
209
|
-
declare function SubscriberConfigList(): SubscriberConfigList;
|
|
210
|
-
type SubscriberConfigList = {
|
|
211
|
-
items?: SubscriberResponse[];
|
|
212
|
-
page?: Page;
|
|
213
|
-
};
|
|
214
|
-
/** @returns {SubscriberEvent} */
|
|
215
|
-
declare function SubscriberEvent(): SubscriberEvent;
|
|
216
|
-
type SubscriberEvent = {
|
|
217
|
-
created_date?: string;
|
|
218
|
-
event_id?: number;
|
|
219
|
-
id?: number;
|
|
220
|
-
subscriber_id?: number;
|
|
221
|
-
};
|
|
222
|
-
/** @returns {SubscriberResponse} */
|
|
223
|
-
declare function SubscriberResponse(): SubscriberResponse;
|
|
224
|
-
type SubscriberResponse = {
|
|
225
|
-
association?: Association;
|
|
226
|
-
auth_meta?: AuthMeta;
|
|
227
|
-
created_on?: string;
|
|
228
|
-
custom_headers?: any;
|
|
229
|
-
email_id?: string;
|
|
230
|
-
event_configs?: EventConfig[];
|
|
231
|
-
id?: number;
|
|
232
|
-
name?: string;
|
|
233
|
-
status?: SubscriberStatus;
|
|
234
|
-
updated_on?: string;
|
|
235
|
-
webhook_url?: string;
|
|
236
|
-
};
|
|
237
|
-
/**
|
|
238
|
-
* Enum: SubscriberStatus Used By: Webhook
|
|
239
|
-
*
|
|
240
|
-
* @returns {SubscriberStatus}
|
|
241
|
-
*/
|
|
242
|
-
declare function SubscriberStatus(): SubscriberStatus;
|
|
243
|
-
type SubscriberStatus = "active" | "inactive" | "blocked";
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* @typedef Association
|
|
5
|
-
* @property {string[]} [application_id]
|
|
6
|
-
* @property {number} [company_id]
|
|
7
|
-
* @property {string} [criteria]
|
|
8
|
-
* @property {string} [extension_id]
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @typedef AuthMeta
|
|
13
|
-
* @property {string} [secret]
|
|
14
|
-
* @property {string} [type]
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
3
|
/**
|
|
18
4
|
* @typedef EventConfig
|
|
19
5
|
* @property {string} [created_on]
|
|
@@ -34,114 +20,12 @@ const Joi = require("joi");
|
|
|
34
20
|
* @property {string} [version]
|
|
35
21
|
*/
|
|
36
22
|
|
|
37
|
-
/**
|
|
38
|
-
* @typedef EventConfigList
|
|
39
|
-
* @property {EventConfig[]} [items]
|
|
40
|
-
* @property {Page} [page]
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
23
|
/**
|
|
44
24
|
* @typedef EventConfigResponse
|
|
45
25
|
* @property {EventConfig[]} [event_configs]
|
|
46
26
|
*/
|
|
47
27
|
|
|
48
|
-
/**
|
|
49
|
-
* @typedef EventPayload
|
|
50
|
-
* @property {string} [event_name]
|
|
51
|
-
* @property {string} [event_trace_id]
|
|
52
|
-
* @property {string} [event_type]
|
|
53
|
-
* @property {number} [id]
|
|
54
|
-
* @property {string} [message_id]
|
|
55
|
-
* @property {boolean} [status]
|
|
56
|
-
* @property {string} [version]
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @typedef EventProcessedStatus
|
|
61
|
-
* @property {number} [attempt]
|
|
62
|
-
* @property {string} [created_on]
|
|
63
|
-
* @property {number} [id]
|
|
64
|
-
* @property {string} [processed_on]
|
|
65
|
-
* @property {string} [response_code]
|
|
66
|
-
* @property {string} [response_message]
|
|
67
|
-
* @property {boolean} [status]
|
|
68
|
-
* @property {string} [subscriber_id]
|
|
69
|
-
*/
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @typedef Page
|
|
73
|
-
* @property {number} [current]
|
|
74
|
-
* @property {boolean} [has_next]
|
|
75
|
-
* @property {boolean} [has_previous]
|
|
76
|
-
* @property {number} [item_total]
|
|
77
|
-
* @property {string} [next_id]
|
|
78
|
-
* @property {number} [size]
|
|
79
|
-
* @property {string} type
|
|
80
|
-
*/
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @typedef SubscriberConfig
|
|
84
|
-
* @property {Association} [association]
|
|
85
|
-
* @property {AuthMeta} [auth_meta]
|
|
86
|
-
* @property {Object} [custom_headers]
|
|
87
|
-
* @property {string} [email_id]
|
|
88
|
-
* @property {number[]} [event_id]
|
|
89
|
-
* @property {number} [id]
|
|
90
|
-
* @property {string} [name]
|
|
91
|
-
* @property {SubscriberStatus} [status]
|
|
92
|
-
* @property {string} [webhook_url]
|
|
93
|
-
*/
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @typedef SubscriberConfigList
|
|
97
|
-
* @property {SubscriberResponse[]} [items]
|
|
98
|
-
* @property {Page} [page]
|
|
99
|
-
*/
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* @typedef SubscriberEvent
|
|
103
|
-
* @property {string} [created_date]
|
|
104
|
-
* @property {number} [event_id]
|
|
105
|
-
* @property {number} [id]
|
|
106
|
-
* @property {number} [subscriber_id]
|
|
107
|
-
*/
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* @typedef SubscriberResponse
|
|
111
|
-
* @property {Association} [association]
|
|
112
|
-
* @property {AuthMeta} [auth_meta]
|
|
113
|
-
* @property {string} [created_on]
|
|
114
|
-
* @property {Object} [custom_headers]
|
|
115
|
-
* @property {string} [email_id]
|
|
116
|
-
* @property {EventConfig[]} [event_configs]
|
|
117
|
-
* @property {number} [id]
|
|
118
|
-
* @property {string} [name]
|
|
119
|
-
* @property {SubscriberStatus} [status]
|
|
120
|
-
* @property {string} [updated_on]
|
|
121
|
-
* @property {string} [webhook_url]
|
|
122
|
-
*/
|
|
123
|
-
|
|
124
|
-
/** @typedef {"active" | "inactive" | "blocked"} SubscriberStatus */
|
|
125
|
-
|
|
126
28
|
class WebhookPublicModel {
|
|
127
|
-
/** @returns {Association} */
|
|
128
|
-
static Association() {
|
|
129
|
-
return Joi.object({
|
|
130
|
-
application_id: Joi.array().items(Joi.string().allow("")),
|
|
131
|
-
company_id: Joi.number(),
|
|
132
|
-
criteria: Joi.string().allow(""),
|
|
133
|
-
extension_id: Joi.string().allow(""),
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/** @returns {AuthMeta} */
|
|
138
|
-
static AuthMeta() {
|
|
139
|
-
return Joi.object({
|
|
140
|
-
secret: Joi.string().allow(""),
|
|
141
|
-
type: Joi.string().allow(""),
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
|
|
145
29
|
/** @returns {EventConfig} */
|
|
146
30
|
static EventConfig() {
|
|
147
31
|
return Joi.object({
|
|
@@ -166,124 +50,11 @@ class WebhookPublicModel {
|
|
|
166
50
|
});
|
|
167
51
|
}
|
|
168
52
|
|
|
169
|
-
/** @returns {EventConfigList} */
|
|
170
|
-
static EventConfigList() {
|
|
171
|
-
return Joi.object({
|
|
172
|
-
items: Joi.array().items(WebhookPublicModel.EventConfig()),
|
|
173
|
-
page: WebhookPublicModel.Page(),
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
|
|
177
53
|
/** @returns {EventConfigResponse} */
|
|
178
54
|
static EventConfigResponse() {
|
|
179
55
|
return Joi.object({
|
|
180
56
|
event_configs: Joi.array().items(WebhookPublicModel.EventConfig()),
|
|
181
57
|
});
|
|
182
58
|
}
|
|
183
|
-
|
|
184
|
-
/** @returns {EventPayload} */
|
|
185
|
-
static EventPayload() {
|
|
186
|
-
return Joi.object({
|
|
187
|
-
event_name: Joi.string().allow(""),
|
|
188
|
-
event_trace_id: Joi.string().allow(""),
|
|
189
|
-
event_type: Joi.string().allow(""),
|
|
190
|
-
id: Joi.number(),
|
|
191
|
-
message_id: Joi.string().allow(""),
|
|
192
|
-
status: Joi.boolean(),
|
|
193
|
-
version: Joi.string().allow(""),
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/** @returns {EventProcessedStatus} */
|
|
198
|
-
static EventProcessedStatus() {
|
|
199
|
-
return Joi.object({
|
|
200
|
-
attempt: Joi.number(),
|
|
201
|
-
created_on: Joi.string().allow(""),
|
|
202
|
-
id: Joi.number(),
|
|
203
|
-
processed_on: Joi.string().allow(""),
|
|
204
|
-
response_code: Joi.string().allow(""),
|
|
205
|
-
response_message: Joi.string().allow(""),
|
|
206
|
-
status: Joi.boolean(),
|
|
207
|
-
subscriber_id: Joi.string().allow(""),
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
/** @returns {Page} */
|
|
212
|
-
static Page() {
|
|
213
|
-
return Joi.object({
|
|
214
|
-
current: Joi.number(),
|
|
215
|
-
has_next: Joi.boolean(),
|
|
216
|
-
has_previous: Joi.boolean(),
|
|
217
|
-
item_total: Joi.number(),
|
|
218
|
-
next_id: Joi.string().allow(""),
|
|
219
|
-
size: Joi.number(),
|
|
220
|
-
type: Joi.string().allow("").required(),
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/** @returns {SubscriberConfig} */
|
|
225
|
-
static SubscriberConfig() {
|
|
226
|
-
return Joi.object({
|
|
227
|
-
association: WebhookPublicModel.Association(),
|
|
228
|
-
auth_meta: WebhookPublicModel.AuthMeta(),
|
|
229
|
-
custom_headers: Joi.any(),
|
|
230
|
-
email_id: Joi.string().allow(""),
|
|
231
|
-
event_id: Joi.array().items(Joi.number()),
|
|
232
|
-
id: Joi.number(),
|
|
233
|
-
name: Joi.string().allow(""),
|
|
234
|
-
status: WebhookPublicModel.SubscriberStatus(),
|
|
235
|
-
webhook_url: Joi.string().allow(""),
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/** @returns {SubscriberConfigList} */
|
|
240
|
-
static SubscriberConfigList() {
|
|
241
|
-
return Joi.object({
|
|
242
|
-
items: Joi.array().items(WebhookPublicModel.SubscriberResponse()),
|
|
243
|
-
page: WebhookPublicModel.Page(),
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
/** @returns {SubscriberEvent} */
|
|
248
|
-
static SubscriberEvent() {
|
|
249
|
-
return Joi.object({
|
|
250
|
-
created_date: Joi.string().allow(""),
|
|
251
|
-
event_id: Joi.number(),
|
|
252
|
-
id: Joi.number(),
|
|
253
|
-
subscriber_id: Joi.number(),
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/** @returns {SubscriberResponse} */
|
|
258
|
-
static SubscriberResponse() {
|
|
259
|
-
return Joi.object({
|
|
260
|
-
association: WebhookPublicModel.Association(),
|
|
261
|
-
auth_meta: WebhookPublicModel.AuthMeta(),
|
|
262
|
-
created_on: Joi.string().allow(""),
|
|
263
|
-
custom_headers: Joi.any(),
|
|
264
|
-
email_id: Joi.string().allow(""),
|
|
265
|
-
event_configs: Joi.array().items(WebhookPublicModel.EventConfig()),
|
|
266
|
-
id: Joi.number(),
|
|
267
|
-
name: Joi.string().allow(""),
|
|
268
|
-
status: WebhookPublicModel.SubscriberStatus(),
|
|
269
|
-
updated_on: Joi.string().allow(""),
|
|
270
|
-
webhook_url: Joi.string().allow(""),
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* Enum: SubscriberStatus Used By: Webhook
|
|
276
|
-
*
|
|
277
|
-
* @returns {SubscriberStatus}
|
|
278
|
-
*/
|
|
279
|
-
static SubscriberStatus() {
|
|
280
|
-
return Joi.string().valid(
|
|
281
|
-
"active",
|
|
282
|
-
|
|
283
|
-
"inactive",
|
|
284
|
-
|
|
285
|
-
"blocked"
|
|
286
|
-
);
|
|
287
|
-
}
|
|
288
59
|
}
|
|
289
60
|
module.exports = WebhookPublicModel;
|
package/sdk/public/index.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export const PublicClient: typeof import("./PublicClient");
|
|
|
3
3
|
export namespace PublicModel {
|
|
4
4
|
const ConfigurationPublicModel: typeof import("./Configuration/ConfigurationPublicModel");
|
|
5
5
|
const InventoryPublicModel: typeof import("./Inventory/InventoryPublicModel");
|
|
6
|
+
const PartnerPublicModel: typeof import("./Partner/PartnerPublicModel");
|
|
6
7
|
const WebhookPublicModel: typeof import("./Webhook/WebhookPublicModel");
|
|
7
8
|
}
|
package/sdk/public/index.js
CHANGED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents the location object for validation.
|
|
3
|
-
*/
|
|
4
|
-
export type LocationObject = {
|
|
5
|
-
/**
|
|
6
|
-
* - The pincode of the location.
|
|
7
|
-
*/
|
|
8
|
-
pincode: string;
|
|
9
|
-
/**
|
|
10
|
-
* - The country of the location.
|
|
11
|
-
*/
|
|
12
|
-
country: string;
|
|
13
|
-
/**
|
|
14
|
-
* - The ISO code of the country.
|
|
15
|
-
*/
|
|
16
|
-
country_iso_code: string;
|
|
17
|
-
/**
|
|
18
|
-
* - The city of the location.
|
|
19
|
-
*/
|
|
20
|
-
city: string;
|
|
21
|
-
/**
|
|
22
|
-
* - The geographical coordinates of the location.
|
|
23
|
-
*/
|
|
24
|
-
location: {
|
|
25
|
-
longitude: string;
|
|
26
|
-
latitude: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Represents the location object for validation.
|
|
31
|
-
*
|
|
32
|
-
* @typedef {Object} LocationObject
|
|
33
|
-
* @property {string} pincode - The pincode of the location.
|
|
34
|
-
* @property {string} country - The country of the location.
|
|
35
|
-
* @property {string} country_iso_code - The ISO code of the country.
|
|
36
|
-
* @property {string} city - The city of the location.
|
|
37
|
-
* @property {Object} location - The geographical coordinates of the location.
|
|
38
|
-
* @property {string} location.longitude - The longitude of the location.
|
|
39
|
-
* @property {string} location.latitude - The latitude of the location.
|
|
40
|
-
*/
|
|
41
|
-
export class LocationValidator {
|
|
42
|
-
/**
|
|
43
|
-
* Validates the location object.
|
|
44
|
-
*
|
|
45
|
-
* @returns {LocationObject} - The location object schema for validation.
|
|
46
|
-
*/
|
|
47
|
-
static validateLocationObj(): LocationObject;
|
|
48
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const Joi = require("joi");
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Represents the location object for validation.
|
|
5
|
-
*
|
|
6
|
-
* @typedef {Object} LocationObject
|
|
7
|
-
* @property {string} pincode - The pincode of the location.
|
|
8
|
-
* @property {string} country - The country of the location.
|
|
9
|
-
* @property {string} country_iso_code - The ISO code of the country.
|
|
10
|
-
* @property {string} city - The city of the location.
|
|
11
|
-
* @property {Object} location - The geographical coordinates of the location.
|
|
12
|
-
* @property {string} location.longitude - The longitude of the location.
|
|
13
|
-
* @property {string} location.latitude - The latitude of the location.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
class LocationValidator {
|
|
17
|
-
/**
|
|
18
|
-
* Validates the location object.
|
|
19
|
-
*
|
|
20
|
-
* @returns {LocationObject} - The location object schema for validation.
|
|
21
|
-
*/
|
|
22
|
-
static validateLocationObj() {
|
|
23
|
-
return Joi.object({
|
|
24
|
-
pincode: Joi.string(),
|
|
25
|
-
country: Joi.string(),
|
|
26
|
-
country_iso_code: Joi.string(),
|
|
27
|
-
city: Joi.string(),
|
|
28
|
-
location: Joi.object({
|
|
29
|
-
longitude: Joi.string(),
|
|
30
|
-
latitude: Joi.string(),
|
|
31
|
-
}),
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
module.exports = {
|
|
37
|
-
LocationValidator,
|
|
38
|
-
};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
export = Partner;
|
|
2
|
-
declare class Partner {
|
|
3
|
-
constructor(config: any);
|
|
4
|
-
config: any;
|
|
5
|
-
/**
|
|
6
|
-
* @param {PartnerPlatformValidator.DeleteExtensionByIdParam} arg - Arg object
|
|
7
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
8
|
-
* @returns {Promise<PartnerPlatformModel.UninstallExtension>} - Success response
|
|
9
|
-
* @name deleteExtensionById
|
|
10
|
-
* @summary: Uninstall extension
|
|
11
|
-
* @description: Use this API to remove extension from yout company or channel - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/deleteExtensionById/).
|
|
12
|
-
*/
|
|
13
|
-
deleteExtensionById({ extensionId, message, uninstallReasonType }?: PartnerPlatformValidator.DeleteExtensionByIdParam, { headers }?: import("../PlatformAPIClient").Options): Promise<PartnerPlatformModel.UninstallExtension>;
|
|
14
|
-
/**
|
|
15
|
-
* @param {PartnerPlatformValidator.GetExtensionByIdParam} arg - Arg object
|
|
16
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
17
|
-
* @returns {Promise<PartnerPlatformModel.ExtensionCommon>} - Success response
|
|
18
|
-
* @name getExtensionById
|
|
19
|
-
* @summary: Get extension details
|
|
20
|
-
* @description: Use this API to get the details of extension - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/getExtensionById/).
|
|
21
|
-
*/
|
|
22
|
-
getExtensionById({ extensionId }?: PartnerPlatformValidator.GetExtensionByIdParam, { headers }?: import("../PlatformAPIClient").Options): Promise<PartnerPlatformModel.ExtensionCommon>;
|
|
23
|
-
/**
|
|
24
|
-
* @param {PartnerPlatformValidator.GetExtensionsForCompanyParam} arg - Arg object
|
|
25
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
26
|
-
* @returns {Promise<PartnerPlatformModel.ExtensionList>} - Success response
|
|
27
|
-
* @name getExtensionsForCompany
|
|
28
|
-
* @summary: Get the list of all the extensions
|
|
29
|
-
* @description: Use this API to get the the extensions for the company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/getExtensionsForCompany/).
|
|
30
|
-
*/
|
|
31
|
-
getExtensionsForCompany({ pageSize, tag, currentPage, pageNo, filterBy, query }?: PartnerPlatformValidator.GetExtensionsForCompanyParam, { headers }?: import("../PlatformAPIClient").Options): Promise<PartnerPlatformModel.ExtensionList>;
|
|
32
|
-
/**
|
|
33
|
-
* @param {PartnerPlatformValidator.GetExtensionsSuggestionsParam} arg - Arg object
|
|
34
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
35
|
-
* @returns {Promise<PartnerPlatformModel.ExtensionSuggestionList>} - Success response
|
|
36
|
-
* @name getExtensionsSuggestions
|
|
37
|
-
* @summary: Get the list of all the extension suggestions
|
|
38
|
-
* @description: Use this API to get the the extensions suggestions - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/getExtensionsSuggestions/).
|
|
39
|
-
*/
|
|
40
|
-
getExtensionsSuggestions({ pageSize }?: PartnerPlatformValidator.GetExtensionsSuggestionsParam, { headers }?: import("../PlatformAPIClient").Options): Promise<PartnerPlatformModel.ExtensionSuggestionList>;
|
|
41
|
-
/**
|
|
42
|
-
* @param {PartnerPlatformValidator.GetPartnerInvitesParam} arg - Arg object
|
|
43
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
44
|
-
* @returns {Promise<PartnerPlatformModel.PartnerRequestList>} - Success response
|
|
45
|
-
* @name getPartnerInvites
|
|
46
|
-
* @summary: Get partner invites
|
|
47
|
-
* @description: Use this API to get pending, accepted and rejected partner invites in platform - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/getPartnerInvites/).
|
|
48
|
-
*/
|
|
49
|
-
getPartnerInvites({ requestStatus, pageSize, pageNo }?: PartnerPlatformValidator.GetPartnerInvitesParam, { headers }?: import("../PlatformAPIClient").Options): Promise<PartnerPlatformModel.PartnerRequestList>;
|
|
50
|
-
/**
|
|
51
|
-
* @param {PartnerPlatformValidator.GetPartnerRequestDetailsParam} arg - Arg object
|
|
52
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
53
|
-
* @returns {Promise<PartnerPlatformModel.PartnerInviteDetails>} - Success response
|
|
54
|
-
* @name getPartnerRequestDetails
|
|
55
|
-
* @summary: Get partner request details
|
|
56
|
-
* @description: Use this API to get details of pending partner request - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/getPartnerRequestDetails/).
|
|
57
|
-
*/
|
|
58
|
-
getPartnerRequestDetails({ inviteId }?: PartnerPlatformValidator.GetPartnerRequestDetailsParam, { headers }?: import("../PlatformAPIClient").Options): Promise<PartnerPlatformModel.PartnerInviteDetails>;
|
|
59
|
-
/**
|
|
60
|
-
* @param {PartnerPlatformValidator.GetPrivateExtensionsParam} arg - Arg object
|
|
61
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
62
|
-
* @returns {Promise<PartnerPlatformModel.ExtensionResponse>} - Success response
|
|
63
|
-
* @name getPrivateExtensions
|
|
64
|
-
* @summary: Get the list of private extensions
|
|
65
|
-
* @description: Use this API to get the list of private extensions - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/getPrivateExtensions/).
|
|
66
|
-
*/
|
|
67
|
-
getPrivateExtensions({ pageSize, pageNo, query }?: PartnerPlatformValidator.GetPrivateExtensionsParam, { headers }?: import("../PlatformAPIClient").Options): Promise<PartnerPlatformModel.ExtensionResponse>;
|
|
68
|
-
/**
|
|
69
|
-
* @param {PartnerPlatformValidator.GetPublicExtensionParam} arg - Arg object
|
|
70
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
71
|
-
* @returns {Promise<PartnerPlatformModel.PublicExtension>} - Success response
|
|
72
|
-
* @name getPublicExtension
|
|
73
|
-
* @summary: Get details of public extension
|
|
74
|
-
* @description: Use this API to get the details of public extensions - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/getPublicExtension/).
|
|
75
|
-
*/
|
|
76
|
-
getPublicExtension({ extensionId }?: PartnerPlatformValidator.GetPublicExtensionParam, { headers }?: import("../PlatformAPIClient").Options): Promise<PartnerPlatformModel.PublicExtension>;
|
|
77
|
-
/**
|
|
78
|
-
* @param {PartnerPlatformValidator.ModifyPartnerRequestParam} arg - Arg object
|
|
79
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
80
|
-
* @returns {Promise<PartnerPlatformModel.PartnerInviteDetails>} - Success response
|
|
81
|
-
* @name modifyPartnerRequest
|
|
82
|
-
* @summary: Act on the pending partner request
|
|
83
|
-
* @description: Use this API to approve or reject the pending partner request - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/modifyPartnerRequest/).
|
|
84
|
-
*/
|
|
85
|
-
modifyPartnerRequest({ inviteId, body }?: PartnerPlatformValidator.ModifyPartnerRequestParam, { headers }?: import("../PlatformAPIClient").Options): Promise<PartnerPlatformModel.PartnerInviteDetails>;
|
|
86
|
-
/**
|
|
87
|
-
* @param {PartnerPlatformValidator.SetupProductsParam} arg - Arg object
|
|
88
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
89
|
-
* @returns {Promise<PartnerPlatformModel.SetupProductRes>} - Success response
|
|
90
|
-
* @name setupProducts
|
|
91
|
-
* @summary:
|
|
92
|
-
* @description: Use this API for setup - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/setupProducts/).
|
|
93
|
-
*/
|
|
94
|
-
setupProducts({ requestId }?: PartnerPlatformValidator.SetupProductsParam, { headers }?: import("../PlatformAPIClient").Options): Promise<PartnerPlatformModel.SetupProductRes>;
|
|
95
|
-
/**
|
|
96
|
-
* @param {PartnerPlatformValidator.SubscribeExtensionParam} arg - Arg object
|
|
97
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
98
|
-
* @returns {Promise<PartnerPlatformModel.SubscriptionRes>} - Success response
|
|
99
|
-
* @name subscribeExtension
|
|
100
|
-
* @summary: Subscribe for extension plan
|
|
101
|
-
* @description: Use this API to select plan for paid extension - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/subscribeExtension/).
|
|
102
|
-
*/
|
|
103
|
-
subscribeExtension({ entity, extensionId, entityId, body }?: PartnerPlatformValidator.SubscribeExtensionParam, { headers }?: import("../PlatformAPIClient").Options): Promise<PartnerPlatformModel.SubscriptionRes>;
|
|
104
|
-
}
|
|
105
|
-
import PartnerPlatformValidator = require("./PartnerPlatformValidator");
|
|
106
|
-
import PartnerPlatformModel = require("./PartnerPlatformModel");
|