@gofynd/fdk-client-javascript 1.4.8-beta.2 → 1.4.8
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 +26 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +8 -0
- package/sdk/application/ApplicationClient.js +14 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
- package/sdk/application/Cart/CartApplicationClient.js +20 -20
- package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
- package/sdk/application/Cart/CartApplicationModel.js +783 -552
- package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
- package/sdk/application/Cart/CartApplicationValidator.js +100 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
- package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
- package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
- package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +2 -2
- package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
- package/sdk/application/Common/CommonApplicationModel.js +59 -58
- package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
- package/sdk/application/Common/CommonApplicationValidator.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
- package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
- package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
- package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
- package/sdk/application/Content/ContentApplicationClient.js +16 -16
- package/sdk/application/Content/ContentApplicationModel.d.ts +1206 -281
- package/sdk/application/Content/ContentApplicationModel.js +342 -276
- package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
- package/sdk/application/Content/ContentApplicationValidator.js +11 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
- package/sdk/application/Lead/LeadApplicationModel.js +110 -67
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
- package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
- package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
- package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
- package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
- package/sdk/application/Order/OrderApplicationClient.js +10 -10
- package/sdk/application/Order/OrderApplicationModel.d.ts +1401 -324
- package/sdk/application/Order/OrderApplicationModel.js +392 -316
- package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
- package/sdk/application/Order/OrderApplicationValidator.js +15 -14
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
- package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
- package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
- package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
- package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
- package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
- package/sdk/application/Share/ShareApplicationModel.js +53 -37
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
- package/sdk/application/Share/ShareApplicationValidator.js +2 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
- package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
- package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
- package/sdk/application/User/UserApplicationClient.d.ts +36 -36
- package/sdk/application/User/UserApplicationClient.js +36 -36
- package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
- package/sdk/application/User/UserApplicationModel.js +298 -244
- package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
- package/sdk/application/User/UserApplicationValidator.js +40 -40
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
- package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
- package/sdk/common/Clickstream.js +95 -15
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/common/Utility.js +19 -0
- package/sdk/common/utils.js +8 -1
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
- package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +75 -8
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +59 -7
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +2 -2
- package/sdk/partner/PartnerClient.d.ts +8 -0
- package/sdk/partner/PartnerClient.js +14 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
- package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
- package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +21 -10
- package/sdk/platform/Billing/BillingPlatformClient.js +167 -83
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +2849 -565
- package/sdk/platform/Billing/BillingPlatformModel.js +935 -556
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +30 -14
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -16
- package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
- package/sdk/platform/Cart/CartPlatformModel.js +8 -8
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +20 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +37 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +16 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
- package/sdk/platform/Content/ContentPlatformModel.d.ts +60 -17
- package/sdk/platform/Content/ContentPlatformModel.js +30 -15
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +30 -30
- package/sdk/platform/Finance/FinancePlatformClient.js +30 -30
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1601 -348
- package/sdk/platform/Finance/FinancePlatformModel.js +488 -352
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
- package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
- package/sdk/platform/Order/OrderPlatformClient.js +165 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +631 -39
- package/sdk/platform/Order/OrderPlatformModel.js +367 -41
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
- package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
- package/sdk/platform/PlatformClient.d.ts +8 -0
- package/sdk/platform/PlatformClient.js +14 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
- package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +139 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +98 -21
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
- package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
- package/sdk/platform/Share/SharePlatformModel.js +7 -7
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
- package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
- package/sdk/platform/User/UserPlatformModel.d.ts +18 -20
- package/sdk/platform/User/UserPlatformModel.js +9 -11
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +54 -33
- package/sdk/platform/Webhook/WebhookPlatformModel.js +33 -33
- package/sdk/public/Billing/BillingPublicClient.d.ts +11 -0
- package/sdk/public/Billing/BillingPublicClient.js +80 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +584 -99
- package/sdk/public/Billing/BillingPublicModel.js +252 -87
- package/sdk/public/Billing/BillingPublicValidator.d.ts +10 -1
- package/sdk/public/Billing/BillingPublicValidator.js +12 -0
- package/sdk/public/PublicClient.d.ts +0 -2
- package/sdk/public/PublicClient.js +0 -4
- package/sdk/public/index.d.ts +0 -1
- package/sdk/public/index.js +0 -2
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
- package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
- package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
- package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
|
@@ -573,13 +573,13 @@ const Joi = require("joi");
|
|
|
573
573
|
|
|
574
574
|
/**
|
|
575
575
|
* @typedef Page
|
|
576
|
-
* @property {number} [item_total]
|
|
577
|
-
* @property {string} [next_id]
|
|
578
|
-
* @property {boolean} [has_previous]
|
|
579
|
-
* @property {boolean} [has_next]
|
|
580
|
-
* @property {number} [current]
|
|
581
|
-
* @property {string} type
|
|
582
|
-
* @property {number} [size]
|
|
576
|
+
* @property {number} [item_total] - The total number of items on the page.
|
|
577
|
+
* @property {string} [next_id] - The identifier for the next page.
|
|
578
|
+
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
579
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
580
|
+
* @property {number} [current] - The current page number.
|
|
581
|
+
* @property {string} type - The type of the page, such as 'PageType'.
|
|
582
|
+
* @property {number} [size] - The number of items per page.
|
|
583
583
|
*/
|
|
584
584
|
|
|
585
585
|
/**
|
|
@@ -788,7 +788,7 @@ const Joi = require("joi");
|
|
|
788
788
|
/**
|
|
789
789
|
* @typedef ValidateCustomerResponse
|
|
790
790
|
* @property {string} message - Error or success message.
|
|
791
|
-
* @property {Object} data - Payment gateway response data
|
|
791
|
+
* @property {Object} [data] - Payment gateway response data
|
|
792
792
|
* @property {boolean} success - Response is successful or not
|
|
793
793
|
*/
|
|
794
794
|
|
|
@@ -2297,7 +2297,7 @@ class PaymentPlatformModel {
|
|
|
2297
2297
|
static ValidateCustomerResponse() {
|
|
2298
2298
|
return Joi.object({
|
|
2299
2299
|
message: Joi.string().allow("").required(),
|
|
2300
|
-
data: Joi.any()
|
|
2300
|
+
data: Joi.any(),
|
|
2301
2301
|
success: Joi.boolean().required(),
|
|
2302
2302
|
});
|
|
2303
2303
|
}
|
|
@@ -46,6 +46,14 @@ declare class PlatformClient {
|
|
|
46
46
|
* @throws {FDKClientValidationError} When the provided header is not an object.
|
|
47
47
|
*/
|
|
48
48
|
setExtraHeaders(header: object): void;
|
|
49
|
+
request({ method, url, query, body, headers, responseHeaders, }: {
|
|
50
|
+
method: any;
|
|
51
|
+
url: any;
|
|
52
|
+
query: any;
|
|
53
|
+
body: any;
|
|
54
|
+
headers: any;
|
|
55
|
+
responseHeaders?: boolean;
|
|
56
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
49
57
|
}
|
|
50
58
|
import AuditTrail = require("./AuditTrail/AuditTrailPlatformClient");
|
|
51
59
|
import Billing = require("./Billing/BillingPlatformClient");
|
|
@@ -34,6 +34,7 @@ const Webhook = require("./Webhook/WebhookPlatformClient");
|
|
|
34
34
|
|
|
35
35
|
const PlatformApplicationClient = require("./PlatformApplicationClient");
|
|
36
36
|
const { FDKClientValidationError } = require("../common/FDKError");
|
|
37
|
+
const { execute } = require("./PlatformAPIClient");
|
|
37
38
|
|
|
38
39
|
/**
|
|
39
40
|
* Represents the client for the platform.
|
|
@@ -115,6 +116,19 @@ class PlatformClient {
|
|
|
115
116
|
throw new FDKClientValidationError("Context value should be an object");
|
|
116
117
|
}
|
|
117
118
|
}
|
|
119
|
+
|
|
120
|
+
async request({
|
|
121
|
+
method,
|
|
122
|
+
url,
|
|
123
|
+
query,
|
|
124
|
+
body,
|
|
125
|
+
headers,
|
|
126
|
+
responseHeaders = false,
|
|
127
|
+
}) {
|
|
128
|
+
return await execute(this.config, method, url, query, body, headers, {
|
|
129
|
+
responseHeaders,
|
|
130
|
+
});
|
|
131
|
+
}
|
|
118
132
|
}
|
|
119
133
|
|
|
120
134
|
module.exports = PlatformClient;
|
|
@@ -50,13 +50,13 @@ export = RewardsPlatformModel;
|
|
|
50
50
|
*/
|
|
51
51
|
/**
|
|
52
52
|
* @typedef Page
|
|
53
|
-
* @property {number} [item_total]
|
|
54
|
-
* @property {string} [next_id]
|
|
55
|
-
* @property {boolean} [has_previous]
|
|
56
|
-
* @property {boolean} [has_next]
|
|
57
|
-
* @property {number} [current]
|
|
58
|
-
* @property {string} type
|
|
59
|
-
* @property {number} [size]
|
|
53
|
+
* @property {number} [item_total] - The total number of items on the page.
|
|
54
|
+
* @property {string} [next_id] - The identifier for the next page.
|
|
55
|
+
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
56
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
57
|
+
* @property {number} [current] - The current page number.
|
|
58
|
+
* @property {string} type - The type of the page, such as 'PageType'.
|
|
59
|
+
* @property {number} [size] - The number of items per page.
|
|
60
60
|
*/
|
|
61
61
|
/**
|
|
62
62
|
* @typedef Offer
|
|
@@ -226,12 +226,33 @@ type RewardsRule = {
|
|
|
226
226
|
/** @returns {Page} */
|
|
227
227
|
declare function Page(): Page;
|
|
228
228
|
type Page = {
|
|
229
|
+
/**
|
|
230
|
+
* - The total number of items on the page.
|
|
231
|
+
*/
|
|
229
232
|
item_total?: number;
|
|
233
|
+
/**
|
|
234
|
+
* - The identifier for the next page.
|
|
235
|
+
*/
|
|
230
236
|
next_id?: string;
|
|
237
|
+
/**
|
|
238
|
+
* - Indicates whether there is a previous page.
|
|
239
|
+
*/
|
|
231
240
|
has_previous?: boolean;
|
|
241
|
+
/**
|
|
242
|
+
* - Indicates whether there is a next page.
|
|
243
|
+
*/
|
|
232
244
|
has_next?: boolean;
|
|
245
|
+
/**
|
|
246
|
+
* - The current page number.
|
|
247
|
+
*/
|
|
233
248
|
current?: number;
|
|
249
|
+
/**
|
|
250
|
+
* - The type of the page, such as 'PageType'.
|
|
251
|
+
*/
|
|
234
252
|
type: string;
|
|
253
|
+
/**
|
|
254
|
+
* - The number of items per page.
|
|
255
|
+
*/
|
|
235
256
|
size?: number;
|
|
236
257
|
};
|
|
237
258
|
/** @returns {Offer} */
|
|
@@ -58,13 +58,13 @@ const Joi = require("joi");
|
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* @typedef Page
|
|
61
|
-
* @property {number} [item_total]
|
|
62
|
-
* @property {string} [next_id]
|
|
63
|
-
* @property {boolean} [has_previous]
|
|
64
|
-
* @property {boolean} [has_next]
|
|
65
|
-
* @property {number} [current]
|
|
66
|
-
* @property {string} type
|
|
67
|
-
* @property {number} [size]
|
|
61
|
+
* @property {number} [item_total] - The total number of items on the page.
|
|
62
|
+
* @property {string} [next_id] - The identifier for the next page.
|
|
63
|
+
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
64
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
65
|
+
* @property {number} [current] - The current page number.
|
|
66
|
+
* @property {string} type - The type of the page, such as 'PageType'.
|
|
67
|
+
* @property {number} [size] - The number of items per page.
|
|
68
68
|
*/
|
|
69
69
|
|
|
70
70
|
/**
|
|
@@ -9,13 +9,14 @@ declare class Serviceability {
|
|
|
9
9
|
*
|
|
10
10
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
11
11
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
12
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
13
|
-
* Success response
|
|
12
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponse>}
|
|
13
|
+
* - Success response
|
|
14
|
+
*
|
|
14
15
|
* @name createCourierPartnerRule
|
|
15
16
|
* @summary: Create rourier rule
|
|
16
17
|
* @description: Creates a rule within the delivery configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createCourierPartnerRule/).
|
|
17
18
|
*/
|
|
18
|
-
createCourierPartnerRule({ body, requestHeaders }?: ServiceabilityPlatformApplicationValidator.CreateCourierPartnerRuleParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.
|
|
19
|
+
createCourierPartnerRule({ body, requestHeaders }?: ServiceabilityPlatformApplicationValidator.CreateCourierPartnerRuleParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponse>;
|
|
19
20
|
/**
|
|
20
21
|
* @param {ServiceabilityPlatformApplicationValidator.CreateStoreRulesParam} arg
|
|
21
22
|
* - Arg object
|
|
@@ -76,13 +77,14 @@ declare class Serviceability {
|
|
|
76
77
|
*
|
|
77
78
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
78
79
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
79
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
80
|
-
* Success response
|
|
80
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponse>}
|
|
81
|
+
* - Success response
|
|
82
|
+
*
|
|
81
83
|
* @name getCourierPartnerRule
|
|
82
84
|
* @summary: Get courier rule
|
|
83
85
|
* @description: Retrieves a single rule within the delivery configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerRule/).
|
|
84
86
|
*/
|
|
85
|
-
getCourierPartnerRule({ ruleId, requestHeaders }?: ServiceabilityPlatformApplicationValidator.GetCourierPartnerRuleParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.
|
|
87
|
+
getCourierPartnerRule({ ruleId, requestHeaders }?: ServiceabilityPlatformApplicationValidator.GetCourierPartnerRuleParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponse>;
|
|
86
88
|
/**
|
|
87
89
|
* @param {ServiceabilityPlatformApplicationValidator.GetCourierPartnerRulesParam} arg
|
|
88
90
|
* - Arg object
|
|
@@ -183,13 +185,14 @@ declare class Serviceability {
|
|
|
183
185
|
*
|
|
184
186
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
185
187
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
186
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
187
|
-
* Success response
|
|
188
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponse>}
|
|
189
|
+
* - Success response
|
|
190
|
+
*
|
|
188
191
|
* @name updateCourierRule
|
|
189
192
|
* @summary: Update courier rule
|
|
190
193
|
* @description: Updates an existing rule within the delivery configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateCourierRule/).
|
|
191
194
|
*/
|
|
192
|
-
updateCourierRule({ ruleId, body, requestHeaders }?: ServiceabilityPlatformApplicationValidator.UpdateCourierRuleParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.
|
|
195
|
+
updateCourierRule({ ruleId, body, requestHeaders }?: ServiceabilityPlatformApplicationValidator.UpdateCourierRuleParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponse>;
|
|
193
196
|
/**
|
|
194
197
|
* @param {ServiceabilityPlatformApplicationValidator.UpdatePincodeAuditHistoryParam} arg
|
|
195
198
|
* - Arg object
|
|
@@ -21,8 +21,9 @@ class Serviceability {
|
|
|
21
21
|
*
|
|
22
22
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
23
23
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
24
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
25
|
-
* Success response
|
|
24
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponse>}
|
|
25
|
+
* - Success response
|
|
26
|
+
*
|
|
26
27
|
* @name createCourierPartnerRule
|
|
27
28
|
* @summary: Create rourier rule
|
|
28
29
|
* @description: Creates a rule within the delivery configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createCourierPartnerRule/).
|
|
@@ -78,7 +79,7 @@ class Serviceability {
|
|
|
78
79
|
|
|
79
80
|
const {
|
|
80
81
|
error: res_error,
|
|
81
|
-
} = ServiceabilityPlatformModel.
|
|
82
|
+
} = ServiceabilityPlatformModel.CourierPartnerRuleResponse().validate(
|
|
82
83
|
responseData,
|
|
83
84
|
{ abortEarly: false, allowUnknown: true }
|
|
84
85
|
);
|
|
@@ -421,8 +422,9 @@ class Serviceability {
|
|
|
421
422
|
*
|
|
422
423
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
423
424
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
424
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
425
|
-
* Success response
|
|
425
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponse>}
|
|
426
|
+
* - Success response
|
|
427
|
+
*
|
|
426
428
|
* @name getCourierPartnerRule
|
|
427
429
|
* @summary: Get courier rule
|
|
428
430
|
* @description: Retrieves a single rule within the delivery configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerRule/).
|
|
@@ -478,7 +480,7 @@ class Serviceability {
|
|
|
478
480
|
|
|
479
481
|
const {
|
|
480
482
|
error: res_error,
|
|
481
|
-
} = ServiceabilityPlatformModel.
|
|
483
|
+
} = ServiceabilityPlatformModel.CourierPartnerRuleResponse().validate(
|
|
482
484
|
responseData,
|
|
483
485
|
{ abortEarly: false, allowUnknown: true }
|
|
484
486
|
);
|
|
@@ -1094,8 +1096,9 @@ class Serviceability {
|
|
|
1094
1096
|
*
|
|
1095
1097
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1096
1098
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1097
|
-
* @returns {Promise<ServiceabilityPlatformModel.
|
|
1098
|
-
* Success response
|
|
1099
|
+
* @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponse>}
|
|
1100
|
+
* - Success response
|
|
1101
|
+
*
|
|
1099
1102
|
* @name updateCourierRule
|
|
1100
1103
|
* @summary: Update courier rule
|
|
1101
1104
|
* @description: Updates an existing rule within the delivery configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateCourierRule/).
|
|
@@ -1153,7 +1156,7 @@ class Serviceability {
|
|
|
1153
1156
|
|
|
1154
1157
|
const {
|
|
1155
1158
|
error: res_error,
|
|
1156
|
-
} = ServiceabilityPlatformModel.
|
|
1159
|
+
} = ServiceabilityPlatformModel.CourierPartnerRuleResponse().validate(
|
|
1157
1160
|
responseData,
|
|
1158
1161
|
{ abortEarly: false, allowUnknown: true }
|
|
1159
1162
|
);
|
|
@@ -245,7 +245,7 @@ declare class Serviceability {
|
|
|
245
245
|
* @summary: Get zones
|
|
246
246
|
* @description: Retrieves a list of delivery zones. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getZones/).
|
|
247
247
|
*/
|
|
248
|
-
getZones({ pageNo, pageSize, isActive, channelId, q,
|
|
248
|
+
getZones({ pageNo, pageSize, isActive, channelId, q, countryIsoCode, state, city, pincode, sector, requestHeaders, }?: ServiceabilityPlatformValidator.GetZonesParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.ListViewResponse>;
|
|
249
249
|
/**
|
|
250
250
|
* @param {ServiceabilityPlatformValidator.UpdateCompanyConfigurationParam} arg
|
|
251
251
|
* - Arg object
|
|
@@ -1730,7 +1730,7 @@ class Serviceability {
|
|
|
1730
1730
|
isActive,
|
|
1731
1731
|
channelId,
|
|
1732
1732
|
q,
|
|
1733
|
-
|
|
1733
|
+
countryIsoCode,
|
|
1734
1734
|
state,
|
|
1735
1735
|
city,
|
|
1736
1736
|
pincode,
|
|
@@ -1746,7 +1746,7 @@ class Serviceability {
|
|
|
1746
1746
|
isActive,
|
|
1747
1747
|
channelId,
|
|
1748
1748
|
q,
|
|
1749
|
-
|
|
1749
|
+
countryIsoCode,
|
|
1750
1750
|
state,
|
|
1751
1751
|
city,
|
|
1752
1752
|
pincode,
|
|
@@ -1768,7 +1768,7 @@ class Serviceability {
|
|
|
1768
1768
|
isActive,
|
|
1769
1769
|
channelId,
|
|
1770
1770
|
q,
|
|
1771
|
-
|
|
1771
|
+
countryIsoCode,
|
|
1772
1772
|
state,
|
|
1773
1773
|
city,
|
|
1774
1774
|
pincode,
|
|
@@ -1789,7 +1789,7 @@ class Serviceability {
|
|
|
1789
1789
|
query_params["is_active"] = isActive;
|
|
1790
1790
|
query_params["channel_id"] = channelId;
|
|
1791
1791
|
query_params["q"] = q;
|
|
1792
|
-
query_params["
|
|
1792
|
+
query_params["country_iso_code"] = countryIsoCode;
|
|
1793
1793
|
query_params["state"] = state;
|
|
1794
1794
|
query_params["city"] = city;
|
|
1795
1795
|
query_params["pincode"] = pincode;
|
|
@@ -92,14 +92,18 @@ export = ServiceabilityPlatformModel;
|
|
|
92
92
|
*/
|
|
93
93
|
/**
|
|
94
94
|
* @typedef ListViewItems
|
|
95
|
-
* @property {string} zone_id
|
|
96
|
-
* @property {string} name
|
|
97
|
-
* @property {string} slug
|
|
98
|
-
*
|
|
99
|
-
* @property {
|
|
100
|
-
* @property {
|
|
101
|
-
* @property {number}
|
|
102
|
-
* @property {
|
|
95
|
+
* @property {string} zone_id - The unique identifier for the zone.
|
|
96
|
+
* @property {string} name - The name of the zone.
|
|
97
|
+
* @property {string} slug - A human-readable and unique identifier for the
|
|
98
|
+
* zone, derived from the name.
|
|
99
|
+
* @property {number} stores_count - The number of stores within the zone.
|
|
100
|
+
* @property {boolean} is_active - A flag indicating whether the zone is active.
|
|
101
|
+
* @property {number} regions_count - The number of regions within the zone.
|
|
102
|
+
* @property {number} company_id - The unique identifier for the company to
|
|
103
|
+
* which the zone belongs.
|
|
104
|
+
* @property {number[]} [store_ids] - A list of store identifiers associated
|
|
105
|
+
* with the zone.
|
|
106
|
+
* @property {ListViewChannels[]} channels - The name of the zone.
|
|
103
107
|
*/
|
|
104
108
|
/**
|
|
105
109
|
* @typedef ListViewResponse
|
|
@@ -521,6 +525,15 @@ export = ServiceabilityPlatformModel;
|
|
|
521
525
|
* @property {string} stage
|
|
522
526
|
* @property {boolean} is_own_account
|
|
523
527
|
*/
|
|
528
|
+
/**
|
|
529
|
+
* @typedef CourierAccountRequestBody
|
|
530
|
+
* @property {string} extension_id
|
|
531
|
+
* @property {string} [account_id]
|
|
532
|
+
* @property {string} scheme_id
|
|
533
|
+
* @property {boolean} is_self_ship
|
|
534
|
+
* @property {string} stage
|
|
535
|
+
* @property {boolean} is_own_account
|
|
536
|
+
*/
|
|
524
537
|
/**
|
|
525
538
|
* @typedef ErrorResponse
|
|
526
539
|
* @property {string} value
|
|
@@ -534,20 +547,40 @@ export = ServiceabilityPlatformModel;
|
|
|
534
547
|
*/
|
|
535
548
|
/**
|
|
536
549
|
* @typedef Page
|
|
537
|
-
* @property {number} [item_total]
|
|
538
|
-
* @property {string} [next_id]
|
|
539
|
-
* @property {boolean} [has_previous]
|
|
540
|
-
* @property {boolean} [has_next]
|
|
541
|
-
* @property {number} [current]
|
|
542
|
-
* @property {string} type
|
|
543
|
-
* @property {number} [size]
|
|
550
|
+
* @property {number} [item_total] - The total number of items on the page.
|
|
551
|
+
* @property {string} [next_id] - The identifier for the next page.
|
|
552
|
+
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
553
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
554
|
+
* @property {number} [current] - The current page number.
|
|
555
|
+
* @property {string} type - The type of the page, such as 'PageType'.
|
|
556
|
+
* @property {number} [size] - The number of items per page.
|
|
557
|
+
*/
|
|
558
|
+
/**
|
|
559
|
+
* @typedef CourierPartnerRuleCPListResponse
|
|
560
|
+
* @property {string} [account_id]
|
|
561
|
+
* @property {string} [extension_id]
|
|
562
|
+
* @property {boolean} [is_self_ship]
|
|
563
|
+
* @property {Object} [scheme_rules]
|
|
564
|
+
*/
|
|
565
|
+
/**
|
|
566
|
+
* @typedef CourierPartnerRuleResponse
|
|
567
|
+
* @property {boolean} [is_active]
|
|
568
|
+
* @property {string} [application_id]
|
|
569
|
+
* @property {number} [company_id]
|
|
570
|
+
* @property {CourierPartnerRuleConditions} [conditions]
|
|
571
|
+
* @property {string[]} [sort]
|
|
572
|
+
* @property {Object} [created_by]
|
|
573
|
+
* @property {string} [id]
|
|
574
|
+
* @property {Object} [modified_by]
|
|
575
|
+
* @property {string} [modified_on]
|
|
576
|
+
* @property {string} [name]
|
|
577
|
+
* @property {string} [type]
|
|
578
|
+
* @property {CourierPartnerRuleCPListResponse[]} [cp_list]
|
|
544
579
|
*/
|
|
545
580
|
/**
|
|
546
581
|
* @typedef CourierPartnerList
|
|
547
582
|
* @property {string} extension_id
|
|
548
583
|
* @property {string} account_id
|
|
549
|
-
* @property {string} name
|
|
550
|
-
* @property {boolean} is_self_ship
|
|
551
584
|
*/
|
|
552
585
|
/**
|
|
553
586
|
* @typedef LocationRuleValues
|
|
@@ -605,7 +638,7 @@ export = ServiceabilityPlatformModel;
|
|
|
605
638
|
*/
|
|
606
639
|
/**
|
|
607
640
|
* @typedef CourierPartnerRulesListResponse
|
|
608
|
-
* @property {
|
|
641
|
+
* @property {CourierPartnerRuleResponse[]} items
|
|
609
642
|
* @property {Page} page
|
|
610
643
|
*/
|
|
611
644
|
/**
|
|
@@ -994,7 +1027,7 @@ export = ServiceabilityPlatformModel;
|
|
|
994
1027
|
declare class ServiceabilityPlatformModel {
|
|
995
1028
|
}
|
|
996
1029
|
declare namespace ServiceabilityPlatformModel {
|
|
997
|
-
export { UpdateZoneConfigRequest, ServiceabilityErrorResponse, ApplicationServiceabilityConfig, ApplicationServiceabilityConfigResponse, EntityRegionView_Request, EntityRegionView_Error, EntityRegionView_page, getAppRegionZonesResponse, PageSchema, EntityRegionView_Items, EntityRegionView_Response, ListViewSummary, ZoneDataItem, ListViewProduct, ListViewChannels, ListViewItems, ListViewResponse, CompanyStoreView_PageItems, CompanyStoreView_Response, GetZoneDataViewChannels, ZoneProductTypes, ZoneMappingType, UpdateZoneData, ZoneUpdateRequest, ZoneSuccessResponse, GetZoneDataViewItems, GetSingleZoneDataViewResponse, GetZoneByIdSchema, CreateZoneData, ZoneResponse, GetZoneFromPincodeViewRequest, Zone, GetZoneFromPincodeViewResponse, GetZoneFromApplicationIdViewResponse, ServiceabilityPageResponse, MobileNo, ManagerResponse, ModifiedByResponse, IntegrationTypeResponse, ProductReturnConfigResponse, ContactNumberResponse, AddressResponse, CreatedByResponse, EwayBillResponse, EinvoiceResponse, GstCredentialsResponse, WarningsResponse, OpeningClosing, TimmingResponse, DocumentsResponse, Dp, LogisticsResponse, ItemResponse, GetStoresViewResponse, PincodeMopData, PincodeMopUpdateResponse, PincodeMOPresponse, CommonError, PincodeMopBulkData, PincodeBulkViewResponse, PincodeCodStatusListingRequest, PincodeCodStatusListingResponse, Error, PincodeCodStatusListingPage, PincodeCodStatusListingSummary, PincodeMopUpdateAuditHistoryRequest, PincodeMopUpdateAuditHistoryPaging, PincodeMopUpdateAuditHistoryResponse, PincodeMopUpdateAuditHistoryResponseData, ArithmeticOperations, SchemeRulesFeatures, SchemeRules, CourierAccount, ErrorResponse, CourierPartnerAccountFailureResponse, Page, CourierPartnerList, LocationRuleValues, LocationRule, StringComparisonOperations, IntComparisonOperations, CourierPartnerRuleConditions, CourierPartnerRule, FailureResponse, CourierPartnerRulesListResponse, CompanyConfig, ZoneConfig, ApplicationConfig, BulkRegionJobSerializer, BulkRegionResponseItemData, BulkRegionResponse, SelfShipResponse, ApplicationSelfShipConfig, ApplicationSelfShipConfigResponse, StoreRuleConfigData, CustomerRadiusSchema, StoreRuleConditionSchema, StoreRuleDataSchema, StorePrioritySchema, GetStoreRulesApiResponse, CreateStoreRuleRequestSchema, StoreRuleResponseSchema, StoreRuleUpdateResponseSchema, ServiceabilityModel, CourierPartnerSchemeFeatures, CourierPartnerSchemeModel, CourierAccountResponse, CompanyCourierPartnerAccountListResponse, PackageMaterial, PackageMaterialResponse, PackageMaterialRule, PackageRule, PackageRuleResponse, Channel, PackageMaterialRuleList, PackageMaterialList, PackageRuleProduct, PackageRuleProductTag, PackageRuleCategory, PackageMaterialRuleQuantity, RulePriorityRequest, RulePriorityResponse, ArticleAssignment, ServiceabilityLocation, LocationDetailsServiceability, OptimalLocationsArticles, OptimlLocationsRequestSchema, OptimalLocationArticlesResponse, OptimalLocationAssignedStoresResponse, OptimalLocationsResponse };
|
|
1030
|
+
export { UpdateZoneConfigRequest, ServiceabilityErrorResponse, ApplicationServiceabilityConfig, ApplicationServiceabilityConfigResponse, EntityRegionView_Request, EntityRegionView_Error, EntityRegionView_page, getAppRegionZonesResponse, PageSchema, EntityRegionView_Items, EntityRegionView_Response, ListViewSummary, ZoneDataItem, ListViewProduct, ListViewChannels, ListViewItems, ListViewResponse, CompanyStoreView_PageItems, CompanyStoreView_Response, GetZoneDataViewChannels, ZoneProductTypes, ZoneMappingType, UpdateZoneData, ZoneUpdateRequest, ZoneSuccessResponse, GetZoneDataViewItems, GetSingleZoneDataViewResponse, GetZoneByIdSchema, CreateZoneData, ZoneResponse, GetZoneFromPincodeViewRequest, Zone, GetZoneFromPincodeViewResponse, GetZoneFromApplicationIdViewResponse, ServiceabilityPageResponse, MobileNo, ManagerResponse, ModifiedByResponse, IntegrationTypeResponse, ProductReturnConfigResponse, ContactNumberResponse, AddressResponse, CreatedByResponse, EwayBillResponse, EinvoiceResponse, GstCredentialsResponse, WarningsResponse, OpeningClosing, TimmingResponse, DocumentsResponse, Dp, LogisticsResponse, ItemResponse, GetStoresViewResponse, PincodeMopData, PincodeMopUpdateResponse, PincodeMOPresponse, CommonError, PincodeMopBulkData, PincodeBulkViewResponse, PincodeCodStatusListingRequest, PincodeCodStatusListingResponse, Error, PincodeCodStatusListingPage, PincodeCodStatusListingSummary, PincodeMopUpdateAuditHistoryRequest, PincodeMopUpdateAuditHistoryPaging, PincodeMopUpdateAuditHistoryResponse, PincodeMopUpdateAuditHistoryResponseData, ArithmeticOperations, SchemeRulesFeatures, SchemeRules, CourierAccount, CourierAccountRequestBody, ErrorResponse, CourierPartnerAccountFailureResponse, Page, CourierPartnerRuleCPListResponse, CourierPartnerRuleResponse, CourierPartnerList, LocationRuleValues, LocationRule, StringComparisonOperations, IntComparisonOperations, CourierPartnerRuleConditions, CourierPartnerRule, FailureResponse, CourierPartnerRulesListResponse, CompanyConfig, ZoneConfig, ApplicationConfig, BulkRegionJobSerializer, BulkRegionResponseItemData, BulkRegionResponse, SelfShipResponse, ApplicationSelfShipConfig, ApplicationSelfShipConfigResponse, StoreRuleConfigData, CustomerRadiusSchema, StoreRuleConditionSchema, StoreRuleDataSchema, StorePrioritySchema, GetStoreRulesApiResponse, CreateStoreRuleRequestSchema, StoreRuleResponseSchema, StoreRuleUpdateResponseSchema, ServiceabilityModel, CourierPartnerSchemeFeatures, CourierPartnerSchemeModel, CourierAccountResponse, CompanyCourierPartnerAccountListResponse, PackageMaterial, PackageMaterialResponse, PackageMaterialRule, PackageRule, PackageRuleResponse, Channel, PackageMaterialRuleList, PackageMaterialList, PackageRuleProduct, PackageRuleProductTag, PackageRuleCategory, PackageMaterialRuleQuantity, RulePriorityRequest, RulePriorityResponse, ArticleAssignment, ServiceabilityLocation, LocationDetailsServiceability, OptimalLocationsArticles, OptimlLocationsRequestSchema, OptimalLocationArticlesResponse, OptimalLocationAssignedStoresResponse, OptimalLocationsResponse };
|
|
998
1031
|
}
|
|
999
1032
|
/** @returns {UpdateZoneConfigRequest} */
|
|
1000
1033
|
declare function UpdateZoneConfigRequest(): UpdateZoneConfigRequest;
|
|
@@ -1105,13 +1138,44 @@ type ListViewChannels = {
|
|
|
1105
1138
|
/** @returns {ListViewItems} */
|
|
1106
1139
|
declare function ListViewItems(): ListViewItems;
|
|
1107
1140
|
type ListViewItems = {
|
|
1141
|
+
/**
|
|
1142
|
+
* - The unique identifier for the zone.
|
|
1143
|
+
*/
|
|
1108
1144
|
zone_id: string;
|
|
1145
|
+
/**
|
|
1146
|
+
* - The name of the zone.
|
|
1147
|
+
*/
|
|
1109
1148
|
name: string;
|
|
1149
|
+
/**
|
|
1150
|
+
* - A human-readable and unique identifier for the
|
|
1151
|
+
* zone, derived from the name.
|
|
1152
|
+
*/
|
|
1110
1153
|
slug: string;
|
|
1154
|
+
/**
|
|
1155
|
+
* - The number of stores within the zone.
|
|
1156
|
+
*/
|
|
1111
1157
|
stores_count: number;
|
|
1158
|
+
/**
|
|
1159
|
+
* - A flag indicating whether the zone is active.
|
|
1160
|
+
*/
|
|
1112
1161
|
is_active: boolean;
|
|
1162
|
+
/**
|
|
1163
|
+
* - The number of regions within the zone.
|
|
1164
|
+
*/
|
|
1113
1165
|
regions_count: number;
|
|
1166
|
+
/**
|
|
1167
|
+
* - The unique identifier for the company to
|
|
1168
|
+
* which the zone belongs.
|
|
1169
|
+
*/
|
|
1114
1170
|
company_id: number;
|
|
1171
|
+
/**
|
|
1172
|
+
* - A list of store identifiers associated
|
|
1173
|
+
* with the zone.
|
|
1174
|
+
*/
|
|
1175
|
+
store_ids?: number[];
|
|
1176
|
+
/**
|
|
1177
|
+
* - The name of the zone.
|
|
1178
|
+
*/
|
|
1115
1179
|
channels: ListViewChannels[];
|
|
1116
1180
|
};
|
|
1117
1181
|
/** @returns {ListViewResponse} */
|
|
@@ -1591,6 +1655,16 @@ type CourierAccount = {
|
|
|
1591
1655
|
stage: string;
|
|
1592
1656
|
is_own_account: boolean;
|
|
1593
1657
|
};
|
|
1658
|
+
/** @returns {CourierAccountRequestBody} */
|
|
1659
|
+
declare function CourierAccountRequestBody(): CourierAccountRequestBody;
|
|
1660
|
+
type CourierAccountRequestBody = {
|
|
1661
|
+
extension_id: string;
|
|
1662
|
+
account_id?: string;
|
|
1663
|
+
scheme_id: string;
|
|
1664
|
+
is_self_ship: boolean;
|
|
1665
|
+
stage: string;
|
|
1666
|
+
is_own_account: boolean;
|
|
1667
|
+
};
|
|
1594
1668
|
/** @returns {ErrorResponse} */
|
|
1595
1669
|
declare function ErrorResponse(): ErrorResponse;
|
|
1596
1670
|
type ErrorResponse = {
|
|
@@ -1607,21 +1681,64 @@ type CourierPartnerAccountFailureResponse = {
|
|
|
1607
1681
|
/** @returns {Page} */
|
|
1608
1682
|
declare function Page(): Page;
|
|
1609
1683
|
type Page = {
|
|
1684
|
+
/**
|
|
1685
|
+
* - The total number of items on the page.
|
|
1686
|
+
*/
|
|
1610
1687
|
item_total?: number;
|
|
1688
|
+
/**
|
|
1689
|
+
* - The identifier for the next page.
|
|
1690
|
+
*/
|
|
1611
1691
|
next_id?: string;
|
|
1692
|
+
/**
|
|
1693
|
+
* - Indicates whether there is a previous page.
|
|
1694
|
+
*/
|
|
1612
1695
|
has_previous?: boolean;
|
|
1696
|
+
/**
|
|
1697
|
+
* - Indicates whether there is a next page.
|
|
1698
|
+
*/
|
|
1613
1699
|
has_next?: boolean;
|
|
1700
|
+
/**
|
|
1701
|
+
* - The current page number.
|
|
1702
|
+
*/
|
|
1614
1703
|
current?: number;
|
|
1704
|
+
/**
|
|
1705
|
+
* - The type of the page, such as 'PageType'.
|
|
1706
|
+
*/
|
|
1615
1707
|
type: string;
|
|
1708
|
+
/**
|
|
1709
|
+
* - The number of items per page.
|
|
1710
|
+
*/
|
|
1616
1711
|
size?: number;
|
|
1617
1712
|
};
|
|
1713
|
+
/** @returns {CourierPartnerRuleCPListResponse} */
|
|
1714
|
+
declare function CourierPartnerRuleCPListResponse(): CourierPartnerRuleCPListResponse;
|
|
1715
|
+
type CourierPartnerRuleCPListResponse = {
|
|
1716
|
+
account_id?: string;
|
|
1717
|
+
extension_id?: string;
|
|
1718
|
+
is_self_ship?: boolean;
|
|
1719
|
+
scheme_rules?: any;
|
|
1720
|
+
};
|
|
1721
|
+
/** @returns {CourierPartnerRuleResponse} */
|
|
1722
|
+
declare function CourierPartnerRuleResponse(): CourierPartnerRuleResponse;
|
|
1723
|
+
type CourierPartnerRuleResponse = {
|
|
1724
|
+
is_active?: boolean;
|
|
1725
|
+
application_id?: string;
|
|
1726
|
+
company_id?: number;
|
|
1727
|
+
conditions?: CourierPartnerRuleConditions;
|
|
1728
|
+
sort?: string[];
|
|
1729
|
+
created_by?: any;
|
|
1730
|
+
id?: string;
|
|
1731
|
+
modified_by?: any;
|
|
1732
|
+
modified_on?: string;
|
|
1733
|
+
name?: string;
|
|
1734
|
+
type?: string;
|
|
1735
|
+
cp_list?: CourierPartnerRuleCPListResponse[];
|
|
1736
|
+
};
|
|
1618
1737
|
/** @returns {CourierPartnerList} */
|
|
1619
1738
|
declare function CourierPartnerList(): CourierPartnerList;
|
|
1620
1739
|
type CourierPartnerList = {
|
|
1621
1740
|
extension_id: string;
|
|
1622
1741
|
account_id: string;
|
|
1623
|
-
name: string;
|
|
1624
|
-
is_self_ship: boolean;
|
|
1625
1742
|
};
|
|
1626
1743
|
/** @returns {LocationRuleValues} */
|
|
1627
1744
|
declare function LocationRuleValues(): LocationRuleValues;
|
|
@@ -1687,7 +1804,7 @@ type FailureResponse = {
|
|
|
1687
1804
|
/** @returns {CourierPartnerRulesListResponse} */
|
|
1688
1805
|
declare function CourierPartnerRulesListResponse(): CourierPartnerRulesListResponse;
|
|
1689
1806
|
type CourierPartnerRulesListResponse = {
|
|
1690
|
-
items:
|
|
1807
|
+
items: CourierPartnerRuleResponse[];
|
|
1691
1808
|
page: Page;
|
|
1692
1809
|
};
|
|
1693
1810
|
/** @returns {CompanyConfig} */
|