@gofynd/fdk-client-javascript 1.4.15-beta.2 → 1.4.15-beta.4
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 +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.js +0 -18
- package/sdk/application/Cart/CartApplicationClient.d.ts +55 -90
- package/sdk/application/Cart/CartApplicationClient.js +27 -1203
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -142
- package/sdk/application/Catalog/CatalogApplicationClient.js +40 -1344
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
- package/sdk/application/Common/CommonApplicationClient.js +2 -92
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -148
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -727
- package/sdk/application/Content/ContentApplicationClient.d.ts +46 -78
- package/sdk/application/Content/ContentApplicationClient.js +23 -941
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +4 -134
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
- package/sdk/application/Lead/LeadApplicationClient.js +5 -217
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +11 -496
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -42
- package/sdk/application/Order/OrderApplicationClient.js +11 -505
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -212
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -2106
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -28
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -311
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +7 -309
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +4 -174
- package/sdk/application/User/UserApplicationClient.d.ts +85 -136
- package/sdk/application/User/UserApplicationClient.js +42 -1818
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +2 -5
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -50
- package/sdk/application/index.d.ts +0 -18
- package/sdk/application/index.js +0 -33
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +7 -0
- package/sdk/platform/Cart/CartPlatformModel.js +3 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +0 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.js +0 -3
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +3 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.js +4 -2
- package/sdk/public/Content/ContentPublicClient.js +4 -2
- package/sdk/public/Partner/PartnerPublicClient.js +4 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +4 -2
- package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
- package/sdk/application/Cart/CartApplicationModel.js +0 -2497
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
- package/sdk/application/Cart/CartApplicationValidator.js +0 -530
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
- package/sdk/application/Content/ContentApplicationModel.js +0 -1589
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
- package/sdk/application/Content/ContentApplicationValidator.js +0 -264
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
- package/sdk/application/Order/OrderApplicationModel.js +0 -1471
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
- package/sdk/application/Order/OrderApplicationValidator.js +0 -197
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
|
@@ -8,15 +8,12 @@ declare class Webhook {
|
|
|
8
8
|
_urls: {};
|
|
9
9
|
updateUrls(urls: any): void;
|
|
10
10
|
/**
|
|
11
|
-
* @param {WebhookApplicationValidator.SaveClickEventParam} arg - Arg object.
|
|
12
11
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
13
12
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
14
|
-
* @returns {Promise<
|
|
13
|
+
* @returns {Promise<ClickEventResponse>} - Success response
|
|
15
14
|
* @name saveClickEvent
|
|
16
15
|
* @summary: Endpoint to capture click events from sales channels and persist them in database.
|
|
17
16
|
* @description: Send click events from sales channels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/webhook/saveClickEvent/).
|
|
18
17
|
*/
|
|
19
|
-
saveClickEvent({ body, requestHeaders }?:
|
|
18
|
+
saveClickEvent({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ClickEventResponse>;
|
|
20
19
|
}
|
|
21
|
-
import WebhookApplicationValidator = require("./WebhookApplicationValidator");
|
|
22
|
-
import WebhookApplicationModel = require("./WebhookApplicationModel");
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
|
-
const {
|
|
3
|
-
FDKClientValidationError,
|
|
4
|
-
FDKResponseValidationError,
|
|
5
|
-
} = require("../../common/FDKError");
|
|
6
2
|
const constructUrl = require("../constructUrl");
|
|
7
3
|
const Paginator = require("../../common/Paginator");
|
|
8
|
-
const WebhookApplicationValidator = require("./WebhookApplicationValidator");
|
|
9
|
-
const WebhookApplicationModel = require("./WebhookApplicationModel");
|
|
10
|
-
const { Logger } = require("./../../common/Logger");
|
|
11
|
-
const Joi = require("joi");
|
|
12
4
|
|
|
13
5
|
class Webhook {
|
|
14
6
|
constructor(_conf) {
|
|
@@ -34,10 +26,9 @@ class Webhook {
|
|
|
34
26
|
}
|
|
35
27
|
|
|
36
28
|
/**
|
|
37
|
-
* @param {WebhookApplicationValidator.SaveClickEventParam} arg - Arg object.
|
|
38
29
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
39
30
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
40
|
-
* @returns {Promise<
|
|
31
|
+
* @returns {Promise<ClickEventResponse>} - Success response
|
|
41
32
|
* @name saveClickEvent
|
|
42
33
|
* @summary: Endpoint to capture click events from sales channels and persist them in database.
|
|
43
34
|
* @description: Send click events from sales channels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/webhook/saveClickEvent/).
|
|
@@ -46,28 +37,6 @@ class Webhook {
|
|
|
46
37
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
47
38
|
{ responseHeaders } = { responseHeaders: false }
|
|
48
39
|
) {
|
|
49
|
-
const { error } = WebhookApplicationValidator.saveClickEvent().validate(
|
|
50
|
-
{ body },
|
|
51
|
-
{ abortEarly: false, allowUnknown: true }
|
|
52
|
-
);
|
|
53
|
-
if (error) {
|
|
54
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// Showing warrnings if extra unknown parameters are found
|
|
58
|
-
const {
|
|
59
|
-
error: warrning,
|
|
60
|
-
} = WebhookApplicationValidator.saveClickEvent().validate(
|
|
61
|
-
{ body },
|
|
62
|
-
{ abortEarly: false, allowUnknown: false }
|
|
63
|
-
);
|
|
64
|
-
if (warrning) {
|
|
65
|
-
Logger({
|
|
66
|
-
level: "WARN",
|
|
67
|
-
message: `Parameter Validation warrnings for application > Webhook > saveClickEvent \n ${warrning}`,
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
40
|
const query_params = {};
|
|
72
41
|
|
|
73
42
|
const xHeaders = {};
|
|
@@ -90,24 +59,6 @@ class Webhook {
|
|
|
90
59
|
responseData = response[0];
|
|
91
60
|
}
|
|
92
61
|
|
|
93
|
-
const {
|
|
94
|
-
error: res_error,
|
|
95
|
-
} = WebhookApplicationModel.ClickEventResponse().validate(responseData, {
|
|
96
|
-
abortEarly: false,
|
|
97
|
-
allowUnknown: true,
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
if (res_error) {
|
|
101
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
102
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
103
|
-
} else {
|
|
104
|
-
Logger({
|
|
105
|
-
level: "WARN",
|
|
106
|
-
message: `Response Validation Warnings for application > Webhook > saveClickEvent \n ${res_error}`,
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
62
|
return response;
|
|
112
63
|
}
|
|
113
64
|
}
|
|
@@ -1,20 +1,2 @@
|
|
|
1
1
|
export const ApplicationConfig: typeof import("./ApplicationConfig");
|
|
2
2
|
export const ApplicationClient: typeof import("./ApplicationClient");
|
|
3
|
-
export namespace ApplicationModel {
|
|
4
|
-
const CartApplicationModel: typeof import("./Cart/CartApplicationModel");
|
|
5
|
-
const CatalogApplicationModel: typeof import("./Catalog/CatalogApplicationModel");
|
|
6
|
-
const CommonApplicationModel: typeof import("./Common/CommonApplicationModel");
|
|
7
|
-
const CommunicationApplicationModel: typeof import("./Communication/CommunicationApplicationModel");
|
|
8
|
-
const ConfigurationApplicationModel: typeof import("./Configuration/ConfigurationApplicationModel");
|
|
9
|
-
const ContentApplicationModel: typeof import("./Content/ContentApplicationModel");
|
|
10
|
-
const FileStorageApplicationModel: typeof import("./FileStorage/FileStorageApplicationModel");
|
|
11
|
-
const LeadApplicationModel: typeof import("./Lead/LeadApplicationModel");
|
|
12
|
-
const LogisticApplicationModel: typeof import("./Logistic/LogisticApplicationModel");
|
|
13
|
-
const OrderApplicationModel: typeof import("./Order/OrderApplicationModel");
|
|
14
|
-
const PaymentApplicationModel: typeof import("./Payment/PaymentApplicationModel");
|
|
15
|
-
const RewardsApplicationModel: typeof import("./Rewards/RewardsApplicationModel");
|
|
16
|
-
const ShareApplicationModel: typeof import("./Share/ShareApplicationModel");
|
|
17
|
-
const ThemeApplicationModel: typeof import("./Theme/ThemeApplicationModel");
|
|
18
|
-
const UserApplicationModel: typeof import("./User/UserApplicationModel");
|
|
19
|
-
const WebhookApplicationModel: typeof import("./Webhook/WebhookApplicationModel");
|
|
20
|
-
}
|
package/sdk/application/index.js
CHANGED
|
@@ -1,37 +1,4 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
ApplicationConfig: require("./ApplicationConfig"),
|
|
3
3
|
ApplicationClient: require("./ApplicationClient"),
|
|
4
|
-
ApplicationModel: {
|
|
5
|
-
CartApplicationModel: require("./Cart/CartApplicationModel"),
|
|
6
|
-
|
|
7
|
-
CatalogApplicationModel: require("./Catalog/CatalogApplicationModel"),
|
|
8
|
-
|
|
9
|
-
CommonApplicationModel: require("./Common/CommonApplicationModel"),
|
|
10
|
-
|
|
11
|
-
CommunicationApplicationModel: require("./Communication/CommunicationApplicationModel"),
|
|
12
|
-
|
|
13
|
-
ConfigurationApplicationModel: require("./Configuration/ConfigurationApplicationModel"),
|
|
14
|
-
|
|
15
|
-
ContentApplicationModel: require("./Content/ContentApplicationModel"),
|
|
16
|
-
|
|
17
|
-
FileStorageApplicationModel: require("./FileStorage/FileStorageApplicationModel"),
|
|
18
|
-
|
|
19
|
-
LeadApplicationModel: require("./Lead/LeadApplicationModel"),
|
|
20
|
-
|
|
21
|
-
LogisticApplicationModel: require("./Logistic/LogisticApplicationModel"),
|
|
22
|
-
|
|
23
|
-
OrderApplicationModel: require("./Order/OrderApplicationModel"),
|
|
24
|
-
|
|
25
|
-
PaymentApplicationModel: require("./Payment/PaymentApplicationModel"),
|
|
26
|
-
|
|
27
|
-
RewardsApplicationModel: require("./Rewards/RewardsApplicationModel"),
|
|
28
|
-
|
|
29
|
-
ShareApplicationModel: require("./Share/ShareApplicationModel"),
|
|
30
|
-
|
|
31
|
-
ThemeApplicationModel: require("./Theme/ThemeApplicationModel"),
|
|
32
|
-
|
|
33
|
-
UserApplicationModel: require("./User/UserApplicationModel"),
|
|
34
|
-
|
|
35
|
-
WebhookApplicationModel: require("./Webhook/WebhookApplicationModel"),
|
|
36
|
-
},
|
|
37
4
|
};
|
|
@@ -6,6 +6,7 @@ const querystring = require("query-string");
|
|
|
6
6
|
const { sign } = require("@gofynd/fp-signature");
|
|
7
7
|
const { convertStringToBase64 } = require("../common/utils");
|
|
8
8
|
|
|
9
|
+
const refreshTokenRequestCache = {};
|
|
9
10
|
class OAuthClient extends BaseOAuthClient {
|
|
10
11
|
constructor(config) {
|
|
11
12
|
super(config);
|
|
@@ -781,6 +781,8 @@ export = CartPlatformModel;
|
|
|
781
781
|
* @property {BuyRules[]} [buy_rules] - Buy rules for promotions
|
|
782
782
|
* @property {string} [offer_text] - Offer text of current promotion
|
|
783
783
|
* @property {number} [amount] - Per unit discount amount applied with current promotion
|
|
784
|
+
* @property {string} [float_amount] - Per unit discount amount with decimal
|
|
785
|
+
* values applied with current promotion.
|
|
784
786
|
* @property {string} [promotion_type] - Promotion type of current promotion
|
|
785
787
|
* @property {boolean} [mrp_promotion] - If applied promotion is applied on
|
|
786
788
|
* product MRP or ESP
|
|
@@ -2927,6 +2929,11 @@ type AppliedPromotion = {
|
|
|
2927
2929
|
* - Per unit discount amount applied with current promotion
|
|
2928
2930
|
*/
|
|
2929
2931
|
amount?: number;
|
|
2932
|
+
/**
|
|
2933
|
+
* - Per unit discount amount with decimal
|
|
2934
|
+
* values applied with current promotion.
|
|
2935
|
+
*/
|
|
2936
|
+
float_amount?: string;
|
|
2930
2937
|
/**
|
|
2931
2938
|
* - Promotion type of current promotion
|
|
2932
2939
|
*/
|
|
@@ -868,6 +868,8 @@ const Joi = require("joi");
|
|
|
868
868
|
* @property {BuyRules[]} [buy_rules] - Buy rules for promotions
|
|
869
869
|
* @property {string} [offer_text] - Offer text of current promotion
|
|
870
870
|
* @property {number} [amount] - Per unit discount amount applied with current promotion
|
|
871
|
+
* @property {string} [float_amount] - Per unit discount amount with decimal
|
|
872
|
+
* values applied with current promotion.
|
|
871
873
|
* @property {string} [promotion_type] - Promotion type of current promotion
|
|
872
874
|
* @property {boolean} [mrp_promotion] - If applied promotion is applied on
|
|
873
875
|
* product MRP or ESP
|
|
@@ -2968,6 +2970,7 @@ class CartPlatformModel {
|
|
|
2968
2970
|
buy_rules: Joi.array().items(CartPlatformModel.BuyRules()),
|
|
2969
2971
|
offer_text: Joi.string().allow(""),
|
|
2970
2972
|
amount: Joi.number(),
|
|
2973
|
+
float_amount: Joi.string().allow(""),
|
|
2971
2974
|
promotion_type: Joi.string().allow(""),
|
|
2972
2975
|
mrp_promotion: Joi.boolean(),
|
|
2973
2976
|
promotion_group: Joi.string().allow(""),
|
|
@@ -371,8 +371,6 @@ export = CatalogPlatformModel;
|
|
|
371
371
|
* @property {boolean} [is_active] - Indicates if the brand is active.
|
|
372
372
|
* @property {number[]} [departments] - List of department IDs associated with the brand.
|
|
373
373
|
* @property {string} [modified_on] - Timestamp when the brand was last modified.
|
|
374
|
-
* @property {boolean} [active] - Boolean indicating whether the brand is
|
|
375
|
-
* currently active or not.
|
|
376
374
|
*/
|
|
377
375
|
/**
|
|
378
376
|
* @typedef ApplicationBrandListingSchema
|
|
@@ -4021,11 +4019,6 @@ type ApplicationBrandListingItemSchema = {
|
|
|
4021
4019
|
* - Timestamp when the brand was last modified.
|
|
4022
4020
|
*/
|
|
4023
4021
|
modified_on?: string;
|
|
4024
|
-
/**
|
|
4025
|
-
* - Boolean indicating whether the brand is
|
|
4026
|
-
* currently active or not.
|
|
4027
|
-
*/
|
|
4028
|
-
active?: boolean;
|
|
4029
4022
|
};
|
|
4030
4023
|
/** @returns {ApplicationBrandListingSchema} */
|
|
4031
4024
|
declare function ApplicationBrandListingSchema(): ApplicationBrandListingSchema;
|
|
@@ -417,8 +417,6 @@ const Joi = require("joi");
|
|
|
417
417
|
* @property {boolean} [is_active] - Indicates if the brand is active.
|
|
418
418
|
* @property {number[]} [departments] - List of department IDs associated with the brand.
|
|
419
419
|
* @property {string} [modified_on] - Timestamp when the brand was last modified.
|
|
420
|
-
* @property {boolean} [active] - Boolean indicating whether the brand is
|
|
421
|
-
* currently active or not.
|
|
422
420
|
*/
|
|
423
421
|
|
|
424
422
|
/**
|
|
@@ -4301,7 +4299,6 @@ class CatalogPlatformModel {
|
|
|
4301
4299
|
is_active: Joi.boolean(),
|
|
4302
4300
|
departments: Joi.array().items(Joi.number()),
|
|
4303
4301
|
modified_on: Joi.string().allow(""),
|
|
4304
|
-
active: Joi.boolean(),
|
|
4305
4302
|
});
|
|
4306
4303
|
}
|
|
4307
4304
|
|
|
@@ -51,6 +51,8 @@ export = ConfigurationPlatformModel;
|
|
|
51
51
|
* @property {Object[]} [company_store] - List of selling locations whose
|
|
52
52
|
* inventory is available to the sales channel for displaying on the website
|
|
53
53
|
* @property {number} [company_id]
|
|
54
|
+
* @property {boolean} [enable_zone_overlapping] - Power product listing with
|
|
55
|
+
* overlapping zones
|
|
54
56
|
*/
|
|
55
57
|
/**
|
|
56
58
|
* @typedef InventoryBrand
|
|
@@ -1434,6 +1436,11 @@ type AppInventoryConfig = {
|
|
|
1434
1436
|
*/
|
|
1435
1437
|
company_store?: any[];
|
|
1436
1438
|
company_id?: number;
|
|
1439
|
+
/**
|
|
1440
|
+
* - Power product listing with
|
|
1441
|
+
* overlapping zones
|
|
1442
|
+
*/
|
|
1443
|
+
enable_zone_overlapping?: boolean;
|
|
1437
1444
|
};
|
|
1438
1445
|
/** @returns {InventoryBrand} */
|
|
1439
1446
|
declare function InventoryBrand(): InventoryBrand;
|
|
@@ -54,6 +54,8 @@ const Joi = require("joi");
|
|
|
54
54
|
* @property {Object[]} [company_store] - List of selling locations whose
|
|
55
55
|
* inventory is available to the sales channel for displaying on the website
|
|
56
56
|
* @property {number} [company_id]
|
|
57
|
+
* @property {boolean} [enable_zone_overlapping] - Power product listing with
|
|
58
|
+
* overlapping zones
|
|
57
59
|
*/
|
|
58
60
|
|
|
59
61
|
/**
|
|
@@ -1557,6 +1559,7 @@ class ConfigurationPlatformModel {
|
|
|
1557
1559
|
image: Joi.array().items(Joi.string().allow("")),
|
|
1558
1560
|
company_store: Joi.array().items(Joi.any()),
|
|
1559
1561
|
company_id: Joi.number(),
|
|
1562
|
+
enable_zone_overlapping: Joi.boolean(),
|
|
1560
1563
|
});
|
|
1561
1564
|
}
|
|
1562
1565
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
const PublicAPIClient = require("../PublicAPIClient");
|
|
2
1
|
const {
|
|
3
2
|
FDKClientValidationError,
|
|
4
3
|
FDKResponseValidationError,
|
|
5
4
|
} = require("../../common/FDKError");
|
|
5
|
+
|
|
6
|
+
const PublicAPIClient = require("../PublicAPIClient");
|
|
6
7
|
const constructUrl = require("../constructUrl");
|
|
7
8
|
const Paginator = require("../../common/Paginator");
|
|
9
|
+
|
|
8
10
|
const ConfigurationPublicValidator = require("./ConfigurationPublicValidator");
|
|
9
11
|
const ConfigurationPublicModel = require("./ConfigurationPublicModel");
|
|
10
|
-
const { Logger } = require("./../../common/Logger");
|
|
11
12
|
const Joi = require("joi");
|
|
13
|
+
const { Logger } = require("./../../common/Logger");
|
|
12
14
|
|
|
13
15
|
class Configuration {
|
|
14
16
|
constructor(_conf) {
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
const PublicAPIClient = require("../PublicAPIClient");
|
|
2
1
|
const {
|
|
3
2
|
FDKClientValidationError,
|
|
4
3
|
FDKResponseValidationError,
|
|
5
4
|
} = require("../../common/FDKError");
|
|
5
|
+
|
|
6
|
+
const PublicAPIClient = require("../PublicAPIClient");
|
|
6
7
|
const constructUrl = require("../constructUrl");
|
|
7
8
|
const Paginator = require("../../common/Paginator");
|
|
9
|
+
|
|
8
10
|
const ContentPublicValidator = require("./ContentPublicValidator");
|
|
9
11
|
const ContentPublicModel = require("./ContentPublicModel");
|
|
10
|
-
const { Logger } = require("./../../common/Logger");
|
|
11
12
|
const Joi = require("joi");
|
|
13
|
+
const { Logger } = require("./../../common/Logger");
|
|
12
14
|
|
|
13
15
|
class Content {
|
|
14
16
|
constructor(_conf) {
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
const PublicAPIClient = require("../PublicAPIClient");
|
|
2
1
|
const {
|
|
3
2
|
FDKClientValidationError,
|
|
4
3
|
FDKResponseValidationError,
|
|
5
4
|
} = require("../../common/FDKError");
|
|
5
|
+
|
|
6
|
+
const PublicAPIClient = require("../PublicAPIClient");
|
|
6
7
|
const constructUrl = require("../constructUrl");
|
|
7
8
|
const Paginator = require("../../common/Paginator");
|
|
9
|
+
|
|
8
10
|
const PartnerPublicValidator = require("./PartnerPublicValidator");
|
|
9
11
|
const PartnerPublicModel = require("./PartnerPublicModel");
|
|
10
|
-
const { Logger } = require("./../../common/Logger");
|
|
11
12
|
const Joi = require("joi");
|
|
13
|
+
const { Logger } = require("./../../common/Logger");
|
|
12
14
|
|
|
13
15
|
class Partner {
|
|
14
16
|
constructor(_conf) {
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
const PublicAPIClient = require("../PublicAPIClient");
|
|
2
1
|
const {
|
|
3
2
|
FDKClientValidationError,
|
|
4
3
|
FDKResponseValidationError,
|
|
5
4
|
} = require("../../common/FDKError");
|
|
5
|
+
|
|
6
|
+
const PublicAPIClient = require("../PublicAPIClient");
|
|
6
7
|
const constructUrl = require("../constructUrl");
|
|
7
8
|
const Paginator = require("../../common/Paginator");
|
|
9
|
+
|
|
8
10
|
const WebhookPublicValidator = require("./WebhookPublicValidator");
|
|
9
11
|
const WebhookPublicModel = require("./WebhookPublicModel");
|
|
10
|
-
const { Logger } = require("./../../common/Logger");
|
|
11
12
|
const Joi = require("joi");
|
|
13
|
+
const { Logger } = require("./../../common/Logger");
|
|
12
14
|
|
|
13
15
|
class Webhook {
|
|
14
16
|
constructor(_conf) {
|