@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
|
@@ -7,22 +7,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
7
7
|
* @property {OrderPlatformModel.AttachOrderUser} body
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* @typedef BulkListingParam
|
|
12
|
-
* @property {number} pageSize - Page size
|
|
13
|
-
* @property {number} pageNo - Page number
|
|
14
|
-
* @property {string} startDate - UTC start date in ISO format
|
|
15
|
-
* @property {string} endDate - UTC end date in ISO format
|
|
16
|
-
* @property {string} [status] - Status for which to fetch the jobs.
|
|
17
|
-
* @property {string} [bulkActionType] - Job type.
|
|
18
|
-
* @property {string} [searchKey] - Search_key.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @typedef BulkStateTransistionParam
|
|
23
|
-
* @property {OrderPlatformModel.BulkStateTransistionRequest} body
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
10
|
/**
|
|
27
11
|
* @typedef CheckOrderStatusParam
|
|
28
12
|
* @property {OrderPlatformModel.OrderStatus} body
|
|
@@ -48,8 +32,7 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
48
32
|
*/
|
|
49
33
|
|
|
50
34
|
/**
|
|
51
|
-
* @typedef
|
|
52
|
-
* @property {string} manifestId
|
|
35
|
+
* @typedef DispatchManifestParam
|
|
53
36
|
* @property {OrderPlatformModel.DispatchManifest} body
|
|
54
37
|
*/
|
|
55
38
|
|
|
@@ -68,11 +51,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
68
51
|
* @property {OrderPlatformModel.EInvoiceRetry} body
|
|
69
52
|
*/
|
|
70
53
|
|
|
71
|
-
/**
|
|
72
|
-
* @typedef FailedOrderLogDetailsParam
|
|
73
|
-
* @property {string} logId - Log Error ID
|
|
74
|
-
*/
|
|
75
|
-
|
|
76
54
|
/**
|
|
77
55
|
* @typedef FetchCreditBalanceDetailParam
|
|
78
56
|
* @property {OrderPlatformModel.FetchCreditBalanceRequestPayload} body
|
|
@@ -102,8 +80,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
102
80
|
* @property {string} status - Current status of a shipment
|
|
103
81
|
*/
|
|
104
82
|
|
|
105
|
-
/** @typedef GetAllowedTemplatesForBulkParam */
|
|
106
|
-
|
|
107
83
|
/**
|
|
108
84
|
* @typedef GetAnnouncementsParam
|
|
109
85
|
* @property {string} [date] - Date On which the announcement is Active (Date
|
|
@@ -136,8 +112,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
136
112
|
* @typedef GetBulkShipmentExcelFileParam
|
|
137
113
|
* @property {string} [salesChannels] - Comma separated values of sales channel ids
|
|
138
114
|
* @property {string} [dpIds] - Comma separated values of delivery partner ids
|
|
139
|
-
* @property {string} [
|
|
140
|
-
* @property {string} [
|
|
115
|
+
* @property {string} [fromDate] - Start Date in DD-MM-YYYY format
|
|
116
|
+
* @property {string} [toDate] - End Date in DD-MM-YYYY format
|
|
141
117
|
* @property {string} [stores] - Comma separated values of store ids
|
|
142
118
|
* @property {string} [tags] - Comma separated values of tags
|
|
143
119
|
* @property {string} [bagStatus] - Comma separated values of bag statuses
|
|
@@ -150,22 +126,12 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
150
126
|
|
|
151
127
|
/** @typedef GetChannelConfigParam */
|
|
152
128
|
|
|
153
|
-
/**
|
|
154
|
-
* @typedef GetFileByStatusParam
|
|
155
|
-
* @property {string} batchId
|
|
156
|
-
* @property {string} status
|
|
157
|
-
* @property {string} fileType
|
|
158
|
-
* @property {string} [reportType]
|
|
159
|
-
*/
|
|
160
|
-
|
|
161
129
|
/**
|
|
162
130
|
* @typedef GetLaneConfigParam
|
|
163
131
|
* @property {string} [superLane] - Name of lane for which data is to be fetched
|
|
164
132
|
* @property {string} [groupEntity] - Name of group entity
|
|
165
133
|
* @property {string} [fromDate] - Start Date in DD-MM-YYYY format
|
|
166
134
|
* @property {string} [toDate] - End Date in DD-MM-YYYY format
|
|
167
|
-
* @property {string} [startDate] - UTC Start Date in ISO format
|
|
168
|
-
* @property {string} [endDate] - UTC End Date in ISO format
|
|
169
135
|
* @property {string} [dpIds] - Comma separated values of delivery partner ids
|
|
170
136
|
* @property {string} [stores] - Comma separated values of store ids
|
|
171
137
|
* @property {string} [salesChannels]
|
|
@@ -182,49 +148,10 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
182
148
|
* @property {string} [orderType]
|
|
183
149
|
*/
|
|
184
150
|
|
|
185
|
-
/**
|
|
186
|
-
* @typedef GetManifestDetailsParam
|
|
187
|
-
* @property {string} manifestId
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* @typedef GetManifestShipmentsParam
|
|
192
|
-
* @property {number} dpIds
|
|
193
|
-
* @property {string} stores
|
|
194
|
-
* @property {string} toDate
|
|
195
|
-
* @property {string} fromDate
|
|
196
|
-
* @property {string} [dpName]
|
|
197
|
-
* @property {string} [salesChannels]
|
|
198
|
-
* @property {string} [searchType]
|
|
199
|
-
* @property {string} [searchValue]
|
|
200
|
-
* @property {string} [pageNo]
|
|
201
|
-
* @property {string} [pageSize]
|
|
202
|
-
*/
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* @typedef GetManifestfiltersParam
|
|
206
|
-
* @property {string} view - Name of View
|
|
207
|
-
*/
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* @typedef GetManifestsParam
|
|
211
|
-
* @property {string} [status] - Possible Status [ active, closed ]
|
|
212
|
-
* @property {string} [startDate] - UTC Start Date in ISO format
|
|
213
|
-
* @property {string} [endDate] - UTC End Date in ISO format
|
|
214
|
-
* @property {string} [searchType] - Search type options [ fynd_order_id,
|
|
215
|
-
* shipment_id, manifest_id, dp_name, awb_no ]
|
|
216
|
-
* @property {number} [storeId] - Fetch manifests for a Store.
|
|
217
|
-
* @property {string} [searchValue] - Search value for selected search type
|
|
218
|
-
* @property {string} [dpIds] - DP Ids separated by ',' (comma)
|
|
219
|
-
* @property {number} [pageNo]
|
|
220
|
-
* @property {number} [pageSize]
|
|
221
|
-
*/
|
|
222
|
-
|
|
223
151
|
/**
|
|
224
152
|
* @typedef GetOrderByIdParam
|
|
225
153
|
* @property {string} orderId
|
|
226
154
|
* @property {boolean} [myOrders]
|
|
227
|
-
* @property {boolean} [allowInactive] - Flag to allow inactive shipments
|
|
228
155
|
*/
|
|
229
156
|
|
|
230
157
|
/**
|
|
@@ -243,8 +170,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
243
170
|
* specified by the search_type
|
|
244
171
|
* @property {string} [fromDate]
|
|
245
172
|
* @property {string} [toDate]
|
|
246
|
-
* @property {string} [startDate]
|
|
247
|
-
* @property {string} [endDate]
|
|
248
173
|
* @property {string} [dpIds] - Delivery Partner IDs to which shipments are assigned.
|
|
249
174
|
* @property {string} [stores]
|
|
250
175
|
* @property {string} [salesChannels]
|
|
@@ -265,8 +190,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
265
190
|
* @typedef GetShipmentByIdParam
|
|
266
191
|
* @property {string} [channelShipmentId] - App Shipment Id
|
|
267
192
|
* @property {string} [shipmentId] - Shipment Id
|
|
268
|
-
* @property {boolean} [fetchActiveShipment] - Flag to fetch active or
|
|
269
|
-
* deactivated shipments
|
|
270
193
|
*/
|
|
271
194
|
|
|
272
195
|
/**
|
|
@@ -296,8 +219,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
296
219
|
* @property {string} [searchValue] - Search type value
|
|
297
220
|
* @property {string} [fromDate] - Start Date in DD-MM-YYYY format
|
|
298
221
|
* @property {string} [toDate] - End Date in DD-MM-YYYY format
|
|
299
|
-
* @property {string} [startDate] - UTC Start Date in ISO format
|
|
300
|
-
* @property {string} [endDate] - UTC End Date in ISO format
|
|
301
222
|
* @property {string} [dpIds] - Comma separated values of delivery partner ids
|
|
302
223
|
* @property {string} [stores] - Comma separated values of store ids
|
|
303
224
|
* @property {string} [salesChannels] - Comma separated values of sales channel ids
|
|
@@ -324,11 +245,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
324
245
|
|
|
325
246
|
/** @typedef GetStateTransitionMapParam */
|
|
326
247
|
|
|
327
|
-
/**
|
|
328
|
-
* @typedef GetTemplateParam
|
|
329
|
-
* @property {string} templateName
|
|
330
|
-
*/
|
|
331
|
-
|
|
332
248
|
/**
|
|
333
249
|
* @typedef GetfiltersParam
|
|
334
250
|
* @property {string} view - Name of view
|
|
@@ -340,11 +256,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
340
256
|
* @property {OrderPlatformModel.InvalidateShipmentCachePayload} body
|
|
341
257
|
*/
|
|
342
258
|
|
|
343
|
-
/**
|
|
344
|
-
* @typedef JobDetailsParam
|
|
345
|
-
* @property {string} batchId
|
|
346
|
-
*/
|
|
347
|
-
|
|
348
259
|
/**
|
|
349
260
|
* @typedef OrderUpdateParam
|
|
350
261
|
* @property {OrderPlatformModel.PlatformOrderUpdate} body
|
|
@@ -356,8 +267,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
356
267
|
*/
|
|
357
268
|
|
|
358
269
|
/**
|
|
359
|
-
* @typedef
|
|
360
|
-
* @property {OrderPlatformModel.
|
|
270
|
+
* @typedef ProcessManifestParam
|
|
271
|
+
* @property {OrderPlatformModel.CreateOrderPayload} body
|
|
361
272
|
*/
|
|
362
273
|
|
|
363
274
|
/**
|
|
@@ -420,8 +331,7 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
420
331
|
*/
|
|
421
332
|
|
|
422
333
|
/**
|
|
423
|
-
* @typedef
|
|
424
|
-
* @property {string} manifestId
|
|
334
|
+
* @typedef UploadConsentParam
|
|
425
335
|
* @property {OrderPlatformModel.UploadConsent} body
|
|
426
336
|
*/
|
|
427
337
|
|
|
@@ -438,26 +348,6 @@ class OrderPlatformValidator {
|
|
|
438
348
|
}).required();
|
|
439
349
|
}
|
|
440
350
|
|
|
441
|
-
/** @returns {BulkListingParam} */
|
|
442
|
-
static bulkListing() {
|
|
443
|
-
return Joi.object({
|
|
444
|
-
pageSize: Joi.number().required(),
|
|
445
|
-
pageNo: Joi.number().required(),
|
|
446
|
-
startDate: Joi.string().allow("").required(),
|
|
447
|
-
endDate: Joi.string().allow("").required(),
|
|
448
|
-
status: Joi.string().allow(""),
|
|
449
|
-
bulkActionType: Joi.string().allow(""),
|
|
450
|
-
searchKey: Joi.string().allow(""),
|
|
451
|
-
}).required();
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
/** @returns {BulkStateTransistionParam} */
|
|
455
|
-
static bulkStateTransistion() {
|
|
456
|
-
return Joi.object({
|
|
457
|
-
body: OrderPlatformModel.BulkStateTransistionRequest().required(),
|
|
458
|
-
}).required();
|
|
459
|
-
}
|
|
460
|
-
|
|
461
351
|
/** @returns {CheckOrderStatusParam} */
|
|
462
352
|
static checkOrderStatus() {
|
|
463
353
|
return Joi.object({
|
|
@@ -490,10 +380,9 @@ class OrderPlatformValidator {
|
|
|
490
380
|
}).required();
|
|
491
381
|
}
|
|
492
382
|
|
|
493
|
-
/** @returns {
|
|
494
|
-
static
|
|
383
|
+
/** @returns {DispatchManifestParam} */
|
|
384
|
+
static dispatchManifest() {
|
|
495
385
|
return Joi.object({
|
|
496
|
-
manifestId: Joi.string().allow("").required(),
|
|
497
386
|
body: OrderPlatformModel.DispatchManifest().required(),
|
|
498
387
|
}).required();
|
|
499
388
|
}
|
|
@@ -519,13 +408,6 @@ class OrderPlatformValidator {
|
|
|
519
408
|
}).required();
|
|
520
409
|
}
|
|
521
410
|
|
|
522
|
-
/** @returns {FailedOrderLogDetailsParam} */
|
|
523
|
-
static failedOrderLogDetails() {
|
|
524
|
-
return Joi.object({
|
|
525
|
-
logId: Joi.string().allow("").required(),
|
|
526
|
-
}).required();
|
|
527
|
-
}
|
|
528
|
-
|
|
529
411
|
/** @returns {FetchCreditBalanceDetailParam} */
|
|
530
412
|
static fetchCreditBalanceDetail() {
|
|
531
413
|
return Joi.object({
|
|
@@ -565,11 +447,6 @@ class OrderPlatformValidator {
|
|
|
565
447
|
}).required();
|
|
566
448
|
}
|
|
567
449
|
|
|
568
|
-
/** @returns {GetAllowedTemplatesForBulkParam} */
|
|
569
|
-
static getAllowedTemplatesForBulk() {
|
|
570
|
-
return Joi.object({}).required();
|
|
571
|
-
}
|
|
572
|
-
|
|
573
450
|
/** @returns {GetAnnouncementsParam} */
|
|
574
451
|
static getAnnouncements() {
|
|
575
452
|
return Joi.object({
|
|
@@ -611,8 +488,8 @@ class OrderPlatformValidator {
|
|
|
611
488
|
return Joi.object({
|
|
612
489
|
salesChannels: Joi.string().allow(""),
|
|
613
490
|
dpIds: Joi.string().allow(""),
|
|
614
|
-
|
|
615
|
-
|
|
491
|
+
fromDate: Joi.string().allow(""),
|
|
492
|
+
toDate: Joi.string().allow(""),
|
|
616
493
|
stores: Joi.string().allow(""),
|
|
617
494
|
tags: Joi.string().allow(""),
|
|
618
495
|
bagStatus: Joi.string().allow(""),
|
|
@@ -629,16 +506,6 @@ class OrderPlatformValidator {
|
|
|
629
506
|
return Joi.object({}).required();
|
|
630
507
|
}
|
|
631
508
|
|
|
632
|
-
/** @returns {GetFileByStatusParam} */
|
|
633
|
-
static getFileByStatus() {
|
|
634
|
-
return Joi.object({
|
|
635
|
-
batchId: Joi.string().allow("").required(),
|
|
636
|
-
status: Joi.string().allow("").required(),
|
|
637
|
-
fileType: Joi.string().allow("").required(),
|
|
638
|
-
reportType: Joi.string().allow(""),
|
|
639
|
-
}).required();
|
|
640
|
-
}
|
|
641
|
-
|
|
642
509
|
/** @returns {GetLaneConfigParam} */
|
|
643
510
|
static getLaneConfig() {
|
|
644
511
|
return Joi.object({
|
|
@@ -646,8 +513,6 @@ class OrderPlatformValidator {
|
|
|
646
513
|
groupEntity: Joi.string().allow(""),
|
|
647
514
|
fromDate: Joi.string().allow(""),
|
|
648
515
|
toDate: Joi.string().allow(""),
|
|
649
|
-
startDate: Joi.string().allow(""),
|
|
650
|
-
endDate: Joi.string().allow(""),
|
|
651
516
|
dpIds: Joi.string().allow(""),
|
|
652
517
|
stores: Joi.string().allow(""),
|
|
653
518
|
salesChannels: Joi.string().allow(""),
|
|
@@ -664,57 +529,11 @@ class OrderPlatformValidator {
|
|
|
664
529
|
}).required();
|
|
665
530
|
}
|
|
666
531
|
|
|
667
|
-
/** @returns {GetManifestDetailsParam} */
|
|
668
|
-
static getManifestDetails() {
|
|
669
|
-
return Joi.object({
|
|
670
|
-
manifestId: Joi.string().allow("").required(),
|
|
671
|
-
}).required();
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
/** @returns {GetManifestShipmentsParam} */
|
|
675
|
-
static getManifestShipments() {
|
|
676
|
-
return Joi.object({
|
|
677
|
-
dpIds: Joi.number().required(),
|
|
678
|
-
stores: Joi.string().allow("").required(),
|
|
679
|
-
toDate: Joi.string().allow("").required(),
|
|
680
|
-
fromDate: Joi.string().allow("").required(),
|
|
681
|
-
dpName: Joi.string().allow(""),
|
|
682
|
-
salesChannels: Joi.string().allow(""),
|
|
683
|
-
searchType: Joi.string().allow(""),
|
|
684
|
-
searchValue: Joi.string().allow(""),
|
|
685
|
-
pageNo: Joi.string().allow(""),
|
|
686
|
-
pageSize: Joi.string().allow(""),
|
|
687
|
-
}).required();
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
/** @returns {GetManifestfiltersParam} */
|
|
691
|
-
static getManifestfilters() {
|
|
692
|
-
return Joi.object({
|
|
693
|
-
view: Joi.string().allow("").required(),
|
|
694
|
-
}).required();
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
/** @returns {GetManifestsParam} */
|
|
698
|
-
static getManifests() {
|
|
699
|
-
return Joi.object({
|
|
700
|
-
status: Joi.string().allow(""),
|
|
701
|
-
startDate: Joi.string().allow(""),
|
|
702
|
-
endDate: Joi.string().allow(""),
|
|
703
|
-
searchType: Joi.string().allow(""),
|
|
704
|
-
storeId: Joi.number(),
|
|
705
|
-
searchValue: Joi.string().allow(""),
|
|
706
|
-
dpIds: Joi.string().allow(""),
|
|
707
|
-
pageNo: Joi.number(),
|
|
708
|
-
pageSize: Joi.number(),
|
|
709
|
-
}).required();
|
|
710
|
-
}
|
|
711
|
-
|
|
712
532
|
/** @returns {GetOrderByIdParam} */
|
|
713
533
|
static getOrderById() {
|
|
714
534
|
return Joi.object({
|
|
715
535
|
orderId: Joi.string().allow("").required(),
|
|
716
536
|
myOrders: Joi.boolean(),
|
|
717
|
-
allowInactive: Joi.boolean(),
|
|
718
537
|
}).required();
|
|
719
538
|
}
|
|
720
539
|
|
|
@@ -730,8 +549,6 @@ class OrderPlatformValidator {
|
|
|
730
549
|
searchValue: Joi.string().allow(""),
|
|
731
550
|
fromDate: Joi.string().allow(""),
|
|
732
551
|
toDate: Joi.string().allow(""),
|
|
733
|
-
startDate: Joi.string().allow(""),
|
|
734
|
-
endDate: Joi.string().allow(""),
|
|
735
552
|
dpIds: Joi.string().allow(""),
|
|
736
553
|
stores: Joi.string().allow(""),
|
|
737
554
|
salesChannels: Joi.string().allow(""),
|
|
@@ -756,7 +573,6 @@ class OrderPlatformValidator {
|
|
|
756
573
|
return Joi.object({
|
|
757
574
|
channelShipmentId: Joi.string().allow(""),
|
|
758
575
|
shipmentId: Joi.string().allow(""),
|
|
759
|
-
fetchActiveShipment: Joi.boolean(),
|
|
760
576
|
}).required();
|
|
761
577
|
}
|
|
762
578
|
|
|
@@ -788,8 +604,6 @@ class OrderPlatformValidator {
|
|
|
788
604
|
searchValue: Joi.string().allow(""),
|
|
789
605
|
fromDate: Joi.string().allow(""),
|
|
790
606
|
toDate: Joi.string().allow(""),
|
|
791
|
-
startDate: Joi.string().allow(""),
|
|
792
|
-
endDate: Joi.string().allow(""),
|
|
793
607
|
dpIds: Joi.string().allow(""),
|
|
794
608
|
stores: Joi.string().allow(""),
|
|
795
609
|
salesChannels: Joi.string().allow(""),
|
|
@@ -819,13 +633,6 @@ class OrderPlatformValidator {
|
|
|
819
633
|
return Joi.object({}).required();
|
|
820
634
|
}
|
|
821
635
|
|
|
822
|
-
/** @returns {GetTemplateParam} */
|
|
823
|
-
static getTemplate() {
|
|
824
|
-
return Joi.object({
|
|
825
|
-
templateName: Joi.string().allow("").required(),
|
|
826
|
-
}).required();
|
|
827
|
-
}
|
|
828
|
-
|
|
829
636
|
/** @returns {GetfiltersParam} */
|
|
830
637
|
static getfilters() {
|
|
831
638
|
return Joi.object({
|
|
@@ -841,13 +648,6 @@ class OrderPlatformValidator {
|
|
|
841
648
|
}).required();
|
|
842
649
|
}
|
|
843
650
|
|
|
844
|
-
/** @returns {JobDetailsParam} */
|
|
845
|
-
static jobDetails() {
|
|
846
|
-
return Joi.object({
|
|
847
|
-
batchId: Joi.string().allow("").required(),
|
|
848
|
-
}).required();
|
|
849
|
-
}
|
|
850
|
-
|
|
851
651
|
/** @returns {OrderUpdateParam} */
|
|
852
652
|
static orderUpdate() {
|
|
853
653
|
return Joi.object({
|
|
@@ -862,10 +662,10 @@ class OrderPlatformValidator {
|
|
|
862
662
|
}).required();
|
|
863
663
|
}
|
|
864
664
|
|
|
865
|
-
/** @returns {
|
|
866
|
-
static
|
|
665
|
+
/** @returns {ProcessManifestParam} */
|
|
666
|
+
static processManifest() {
|
|
867
667
|
return Joi.object({
|
|
868
|
-
body: OrderPlatformModel.
|
|
668
|
+
body: OrderPlatformModel.CreateOrderPayload().required(),
|
|
869
669
|
}).required();
|
|
870
670
|
}
|
|
871
671
|
|
|
@@ -946,10 +746,9 @@ class OrderPlatformValidator {
|
|
|
946
746
|
}).required();
|
|
947
747
|
}
|
|
948
748
|
|
|
949
|
-
/** @returns {
|
|
950
|
-
static
|
|
749
|
+
/** @returns {UploadConsentParam} */
|
|
750
|
+
static uploadConsent() {
|
|
951
751
|
return Joi.object({
|
|
952
|
-
manifestId: Joi.string().allow("").required(),
|
|
953
752
|
body: OrderPlatformModel.UploadConsent().required(),
|
|
954
753
|
}).required();
|
|
955
754
|
}
|
|
@@ -8,31 +8,31 @@ export = PartnerPlatformModel;
|
|
|
8
8
|
/**
|
|
9
9
|
* @typedef AddProxyResponse
|
|
10
10
|
* @property {string} [_id]
|
|
11
|
-
* @property {string} [application_id]
|
|
12
11
|
* @property {string} [attached_path]
|
|
12
|
+
* @property {string} [proxy_url]
|
|
13
13
|
* @property {string} [company_id]
|
|
14
|
-
* @property {string} [
|
|
14
|
+
* @property {string} [application_id]
|
|
15
15
|
* @property {string} [extension_id]
|
|
16
|
+
* @property {string} [created_at]
|
|
16
17
|
* @property {string} [modified_at]
|
|
17
|
-
* @property {string} [proxy_url]
|
|
18
18
|
*/
|
|
19
19
|
/**
|
|
20
|
-
* @typedef
|
|
21
|
-
* @property {string} [code]
|
|
22
|
-
* @property {string} [info] - Error code description link
|
|
20
|
+
* @typedef RemoveProxyResponse
|
|
23
21
|
* @property {string} [message]
|
|
24
|
-
* @property {Object} [
|
|
25
|
-
* @property {string} [request_id]
|
|
22
|
+
* @property {Object} [data]
|
|
26
23
|
*/
|
|
27
24
|
/**
|
|
28
|
-
* @typedef
|
|
29
|
-
* @property {
|
|
25
|
+
* @typedef APIError
|
|
26
|
+
* @property {string} [code]
|
|
30
27
|
* @property {string} [message]
|
|
28
|
+
* @property {string} [info] - Error code description link
|
|
29
|
+
* @property {string} [request_id]
|
|
30
|
+
* @property {Object} [meta]
|
|
31
31
|
*/
|
|
32
32
|
declare class PartnerPlatformModel {
|
|
33
33
|
}
|
|
34
34
|
declare namespace PartnerPlatformModel {
|
|
35
|
-
export { AddProxyReq, AddProxyResponse,
|
|
35
|
+
export { AddProxyReq, AddProxyResponse, RemoveProxyResponse, APIError };
|
|
36
36
|
}
|
|
37
37
|
/** @returns {AddProxyReq} */
|
|
38
38
|
declare function AddProxyReq(): AddProxyReq;
|
|
@@ -51,29 +51,29 @@ type AddProxyReq = {
|
|
|
51
51
|
declare function AddProxyResponse(): AddProxyResponse;
|
|
52
52
|
type AddProxyResponse = {
|
|
53
53
|
_id?: string;
|
|
54
|
-
application_id?: string;
|
|
55
54
|
attached_path?: string;
|
|
55
|
+
proxy_url?: string;
|
|
56
56
|
company_id?: string;
|
|
57
|
-
|
|
57
|
+
application_id?: string;
|
|
58
58
|
extension_id?: string;
|
|
59
|
+
created_at?: string;
|
|
59
60
|
modified_at?: string;
|
|
60
|
-
|
|
61
|
+
};
|
|
62
|
+
/** @returns {RemoveProxyResponse} */
|
|
63
|
+
declare function RemoveProxyResponse(): RemoveProxyResponse;
|
|
64
|
+
type RemoveProxyResponse = {
|
|
65
|
+
message?: string;
|
|
66
|
+
data?: any;
|
|
61
67
|
};
|
|
62
68
|
/** @returns {APIError} */
|
|
63
69
|
declare function APIError(): APIError;
|
|
64
70
|
type APIError = {
|
|
65
71
|
code?: string;
|
|
72
|
+
message?: string;
|
|
66
73
|
/**
|
|
67
74
|
* - Error code description link
|
|
68
75
|
*/
|
|
69
76
|
info?: string;
|
|
70
|
-
message?: string;
|
|
71
|
-
meta?: any;
|
|
72
77
|
request_id?: string;
|
|
73
|
-
|
|
74
|
-
/** @returns {RemoveProxyResponse} */
|
|
75
|
-
declare function RemoveProxyResponse(): RemoveProxyResponse;
|
|
76
|
-
type RemoveProxyResponse = {
|
|
77
|
-
data?: any;
|
|
78
|
-
message?: string;
|
|
78
|
+
meta?: any;
|
|
79
79
|
};
|
|
@@ -10,28 +10,28 @@ const Joi = require("joi");
|
|
|
10
10
|
/**
|
|
11
11
|
* @typedef AddProxyResponse
|
|
12
12
|
* @property {string} [_id]
|
|
13
|
-
* @property {string} [application_id]
|
|
14
13
|
* @property {string} [attached_path]
|
|
14
|
+
* @property {string} [proxy_url]
|
|
15
15
|
* @property {string} [company_id]
|
|
16
|
-
* @property {string} [
|
|
16
|
+
* @property {string} [application_id]
|
|
17
17
|
* @property {string} [extension_id]
|
|
18
|
+
* @property {string} [created_at]
|
|
18
19
|
* @property {string} [modified_at]
|
|
19
|
-
* @property {string} [proxy_url]
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* @typedef
|
|
24
|
-
* @property {string} [code]
|
|
25
|
-
* @property {string} [info] - Error code description link
|
|
23
|
+
* @typedef RemoveProxyResponse
|
|
26
24
|
* @property {string} [message]
|
|
27
|
-
* @property {Object} [
|
|
28
|
-
* @property {string} [request_id]
|
|
25
|
+
* @property {Object} [data]
|
|
29
26
|
*/
|
|
30
27
|
|
|
31
28
|
/**
|
|
32
|
-
* @typedef
|
|
33
|
-
* @property {
|
|
29
|
+
* @typedef APIError
|
|
30
|
+
* @property {string} [code]
|
|
34
31
|
* @property {string} [message]
|
|
32
|
+
* @property {string} [info] - Error code description link
|
|
33
|
+
* @property {string} [request_id]
|
|
34
|
+
* @property {Object} [meta]
|
|
35
35
|
*/
|
|
36
36
|
|
|
37
37
|
class PartnerPlatformModel {
|
|
@@ -47,32 +47,32 @@ class PartnerPlatformModel {
|
|
|
47
47
|
static AddProxyResponse() {
|
|
48
48
|
return Joi.object({
|
|
49
49
|
_id: Joi.string().allow(""),
|
|
50
|
-
application_id: Joi.string().allow(""),
|
|
51
50
|
attached_path: Joi.string().allow(""),
|
|
51
|
+
proxy_url: Joi.string().allow(""),
|
|
52
52
|
company_id: Joi.string().allow(""),
|
|
53
|
-
|
|
53
|
+
application_id: Joi.string().allow(""),
|
|
54
54
|
extension_id: Joi.string().allow(""),
|
|
55
|
+
created_at: Joi.string().allow(""),
|
|
55
56
|
modified_at: Joi.string().allow(""),
|
|
56
|
-
proxy_url: Joi.string().allow(""),
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
/** @returns {
|
|
61
|
-
static
|
|
60
|
+
/** @returns {RemoveProxyResponse} */
|
|
61
|
+
static RemoveProxyResponse() {
|
|
62
62
|
return Joi.object({
|
|
63
|
-
code: Joi.string().allow(""),
|
|
64
|
-
info: Joi.string().allow(""),
|
|
65
63
|
message: Joi.string().allow(""),
|
|
66
|
-
|
|
67
|
-
request_id: Joi.string().allow(""),
|
|
64
|
+
data: Joi.any(),
|
|
68
65
|
});
|
|
69
66
|
}
|
|
70
67
|
|
|
71
|
-
/** @returns {
|
|
72
|
-
static
|
|
68
|
+
/** @returns {APIError} */
|
|
69
|
+
static APIError() {
|
|
73
70
|
return Joi.object({
|
|
74
|
-
|
|
71
|
+
code: Joi.string().allow(""),
|
|
75
72
|
message: Joi.string().allow(""),
|
|
73
|
+
info: Joi.string().allow(""),
|
|
74
|
+
request_id: Joi.string().allow(""),
|
|
75
|
+
meta: Joi.any(),
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
}
|