@gofynd/fdk-client-javascript 3.16.3 → 3.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +40 -0
- package/sdk/application/Cart/CartApplicationClient.js +176 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +18 -4
- package/sdk/application/Catalog/CatalogApplicationClient.js +47 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +21 -1
- package/sdk/application/Content/ContentApplicationClient.js +93 -2
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -21
- package/sdk/application/Logistic/LogisticApplicationClient.js +34 -83
- package/sdk/application/Order/OrderApplicationClient.d.ts +11 -0
- package/sdk/application/Order/OrderApplicationClient.js +50 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationClient.js +5 -4
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +84 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +712 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +237 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +157 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +8 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +70 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +74 -12
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +637 -36
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +225 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +147 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +952 -5
- package/sdk/platform/Cart/CartPlatformModel.js +598 -2
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +125 -5
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +831 -41
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +205 -7
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +154 -3
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +5 -16
- package/sdk/platform/Catalog/CatalogPlatformClient.js +8 -85
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1025 -159
- package/sdk/platform/Catalog/CatalogPlatformModel.js +840 -165
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +8 -10
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +3 -12
- package/sdk/platform/Common/CommonPlatformModel.d.ts +18 -1
- package/sdk/platform/Common/CommonPlatformModel.js +14 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +1 -73
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +4 -462
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +7 -45
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +4 -55
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +10 -2
- package/sdk/platform/Communication/CommunicationPlatformModel.js +3 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +14 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +6 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +92 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +54 -0
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +21 -0
- package/sdk/platform/Discount/DiscountPlatformModel.js +9 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +27 -19
- package/sdk/platform/Order/OrderPlatformClient.js +176 -108
- package/sdk/platform/Order/OrderPlatformModel.d.ts +359 -45
- package/sdk/platform/Order/OrderPlatformModel.js +218 -44
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +40 -43
- package/sdk/platform/Order/OrderPlatformValidator.js +35 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +14 -3
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +88 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +28 -3
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +22 -2
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +376 -11
- package/sdk/platform/Payment/PaymentPlatformModel.js +243 -10
- package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
- package/sdk/platform/PlatformApplicationClient.js +0 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +0 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +0 -82
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +1 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +0 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +212 -28
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +133 -13
- package/sdk/platform/User/UserPlatformModel.d.ts +2 -2
- package/sdk/platform/User/UserPlatformModel.js +4 -4
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +29 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.js +13 -0
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +27 -1
- package/sdk/public/Configuration/ConfigurationPublicModel.js +19 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +29 -0
- package/sdk/public/Webhook/WebhookPublicModel.js +13 -0
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
- package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -387
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -410
|
@@ -7,12 +7,6 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
|
7
7
|
* @property {CommunicationPlatformModel.AudienceReq} body
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/** @typedef CreateBigQueryHeadersParam */
|
|
11
|
-
|
|
12
|
-
/** @typedef CreateBigQueryNCountParam */
|
|
13
|
-
|
|
14
|
-
/** @typedef CreateBigQueryRowCountParam */
|
|
15
|
-
|
|
16
10
|
/**
|
|
17
11
|
* @typedef CreateCampaignParam
|
|
18
12
|
* @property {CommunicationPlatformModel.CampaignReq} body
|
|
@@ -105,16 +99,6 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
|
105
99
|
* @property {Object} [query] - To search based on plain text
|
|
106
100
|
*/
|
|
107
101
|
|
|
108
|
-
/**
|
|
109
|
-
* @typedef GetBigQueryHeadersByIdParam
|
|
110
|
-
* @property {string} id - Audience id
|
|
111
|
-
*/
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* @typedef GetBigQueryRowCountByIdParam
|
|
115
|
-
* @property {string} id - Audience id
|
|
116
|
-
*/
|
|
117
|
-
|
|
118
102
|
/**
|
|
119
103
|
* @typedef GetCampaignByIdParam
|
|
120
104
|
* @property {string} id - Campaign id
|
|
@@ -182,8 +166,9 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
|
182
166
|
* @property {string} [subGroup] - Filter by event subgroup. Here, a subgroup is
|
|
183
167
|
* a subset within a group, containing specific email and SMS templates for
|
|
184
168
|
* more detailed organization.
|
|
185
|
-
* @property {string} [
|
|
186
|
-
*
|
|
169
|
+
* @property {string} [fulfillmentOptionSlug] - Filter by fulfillment option
|
|
170
|
+
* slug. Indicates the delivery choice selected, e.g., standard-delivery or
|
|
171
|
+
* homedelivery.
|
|
187
172
|
*/
|
|
188
173
|
|
|
189
174
|
/**
|
|
@@ -266,8 +251,6 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
|
266
251
|
* @property {Object} [query] - To search based on plain text
|
|
267
252
|
*/
|
|
268
253
|
|
|
269
|
-
/** @typedef GetSystemAudiencesParam */
|
|
270
|
-
|
|
271
254
|
/** @typedef GetSystemEmailTemplatesParam */
|
|
272
255
|
|
|
273
256
|
/** @typedef GetSystemSmsTemplatesParam */
|
|
@@ -353,21 +336,6 @@ class CommunicationPlatformApplicationValidator {
|
|
|
353
336
|
}).required();
|
|
354
337
|
}
|
|
355
338
|
|
|
356
|
-
/** @returns {CreateBigQueryHeadersParam} */
|
|
357
|
-
static createBigQueryHeaders() {
|
|
358
|
-
return Joi.object({}).required();
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
/** @returns {CreateBigQueryNCountParam} */
|
|
362
|
-
static createBigQueryNCount() {
|
|
363
|
-
return Joi.object({}).required();
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/** @returns {CreateBigQueryRowCountParam} */
|
|
367
|
-
static createBigQueryRowCount() {
|
|
368
|
-
return Joi.object({}).required();
|
|
369
|
-
}
|
|
370
|
-
|
|
371
339
|
/** @returns {CreateCampaignParam} */
|
|
372
340
|
static createCampaign() {
|
|
373
341
|
return Joi.object({
|
|
@@ -497,20 +465,6 @@ class CommunicationPlatformApplicationValidator {
|
|
|
497
465
|
}).required();
|
|
498
466
|
}
|
|
499
467
|
|
|
500
|
-
/** @returns {GetBigQueryHeadersByIdParam} */
|
|
501
|
-
static getBigQueryHeadersById() {
|
|
502
|
-
return Joi.object({
|
|
503
|
-
id: Joi.string().allow("").required(),
|
|
504
|
-
}).required();
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
/** @returns {GetBigQueryRowCountByIdParam} */
|
|
508
|
-
static getBigQueryRowCountById() {
|
|
509
|
-
return Joi.object({
|
|
510
|
-
id: Joi.string().allow("").required(),
|
|
511
|
-
}).required();
|
|
512
|
-
}
|
|
513
|
-
|
|
514
468
|
/** @returns {GetCampaignByIdParam} */
|
|
515
469
|
static getCampaignById() {
|
|
516
470
|
return Joi.object({
|
|
@@ -597,7 +551,7 @@ class CommunicationPlatformApplicationValidator {
|
|
|
597
551
|
populate: Joi.string().allow(""),
|
|
598
552
|
group: Joi.string().allow(""),
|
|
599
553
|
subGroup: Joi.string().allow(""),
|
|
600
|
-
|
|
554
|
+
fulfillmentOptionSlug: Joi.string().allow(""),
|
|
601
555
|
}).required();
|
|
602
556
|
}
|
|
603
557
|
|
|
@@ -715,11 +669,6 @@ class CommunicationPlatformApplicationValidator {
|
|
|
715
669
|
}).required();
|
|
716
670
|
}
|
|
717
671
|
|
|
718
|
-
/** @returns {GetSystemAudiencesParam} */
|
|
719
|
-
static getSystemAudiences() {
|
|
720
|
-
return Joi.object({}).required();
|
|
721
|
-
}
|
|
722
|
-
|
|
723
672
|
/** @returns {GetSystemEmailTemplatesParam} */
|
|
724
673
|
static getSystemEmailTemplates() {
|
|
725
674
|
return Joi.object({}).required();
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export = CommunicationPlatformModel;
|
|
2
2
|
/**
|
|
3
3
|
* @typedef GroupMapping
|
|
4
|
-
* @property {EventGroup[]} items
|
|
4
|
+
* @property {EventGroup[]} items - List of event groups configured for the application.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* @typedef EventGroup
|
|
8
8
|
* @property {string} name - Event group identifier
|
|
9
9
|
* @property {string} display - Human-readable group name
|
|
10
|
-
* @property {EventSubgroup[]} subgroups
|
|
10
|
+
* @property {EventSubgroup[]} subgroups - List of sub-groups that belong to
|
|
11
|
+
* this event group.
|
|
11
12
|
*/
|
|
12
13
|
/**
|
|
13
14
|
* @typedef EventSubgroup
|
|
@@ -904,6 +905,9 @@ declare namespace CommunicationPlatformModel {
|
|
|
904
905
|
/** @returns {GroupMapping} */
|
|
905
906
|
declare function GroupMapping(): GroupMapping;
|
|
906
907
|
type GroupMapping = {
|
|
908
|
+
/**
|
|
909
|
+
* - List of event groups configured for the application.
|
|
910
|
+
*/
|
|
907
911
|
items: EventGroup[];
|
|
908
912
|
};
|
|
909
913
|
/** @returns {EventGroup} */
|
|
@@ -917,6 +921,10 @@ type EventGroup = {
|
|
|
917
921
|
* - Human-readable group name
|
|
918
922
|
*/
|
|
919
923
|
display: string;
|
|
924
|
+
/**
|
|
925
|
+
* - List of sub-groups that belong to
|
|
926
|
+
* this event group.
|
|
927
|
+
*/
|
|
920
928
|
subgroups: EventSubgroup[];
|
|
921
929
|
};
|
|
922
930
|
/** @returns {EventSubgroup} */
|
|
@@ -2,14 +2,15 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @typedef GroupMapping
|
|
5
|
-
* @property {EventGroup[]} items
|
|
5
|
+
* @property {EventGroup[]} items - List of event groups configured for the application.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @typedef EventGroup
|
|
10
10
|
* @property {string} name - Event group identifier
|
|
11
11
|
* @property {string} display - Human-readable group name
|
|
12
|
-
* @property {EventSubgroup[]} subgroups
|
|
12
|
+
* @property {EventSubgroup[]} subgroups - List of sub-groups that belong to
|
|
13
|
+
* this event group.
|
|
13
14
|
*/
|
|
14
15
|
|
|
15
16
|
/**
|
|
@@ -374,6 +374,8 @@ export = CompanyProfilePlatformModel;
|
|
|
374
374
|
* @property {LocationDayWiseSchema[]} [order_acceptance_timing]
|
|
375
375
|
* @property {AverageOrderProcessingTime} [avg_order_processing_time]
|
|
376
376
|
* @property {boolean} [bulk_shipment]
|
|
377
|
+
* @property {boolean} [multi_piece_shipment] - Flag indicating if multi-piece
|
|
378
|
+
* shipment is enabled for the location.
|
|
377
379
|
* @property {boolean} [auto_assign_courier_partner]
|
|
378
380
|
* @property {boolean} [qc_based_return_inventory_sync]
|
|
379
381
|
*/
|
|
@@ -430,6 +432,8 @@ export = CompanyProfilePlatformModel;
|
|
|
430
432
|
* acceptance timing of the store
|
|
431
433
|
* @property {AverageOrderProcessingTime} [avg_order_processing_time]
|
|
432
434
|
* @property {boolean} [bulk_shipment]
|
|
435
|
+
* @property {boolean} [multi_piece_shipment] - Flag indicating if multi-piece
|
|
436
|
+
* shipment is enabled for the location.
|
|
433
437
|
* @property {boolean} [auto_assign_courier_partner]
|
|
434
438
|
*/
|
|
435
439
|
/**
|
|
@@ -895,6 +899,11 @@ type GetLocationSchema = {
|
|
|
895
899
|
order_acceptance_timing?: LocationDayWiseSchema[];
|
|
896
900
|
avg_order_processing_time?: AverageOrderProcessingTime;
|
|
897
901
|
bulk_shipment?: boolean;
|
|
902
|
+
/**
|
|
903
|
+
* - Flag indicating if multi-piece
|
|
904
|
+
* shipment is enabled for the location.
|
|
905
|
+
*/
|
|
906
|
+
multi_piece_shipment?: boolean;
|
|
898
907
|
auto_assign_courier_partner?: boolean;
|
|
899
908
|
qc_based_return_inventory_sync?: boolean;
|
|
900
909
|
};
|
|
@@ -969,6 +978,11 @@ type LocationSchema = {
|
|
|
969
978
|
order_acceptance_timing?: LocationDayWiseSchema[];
|
|
970
979
|
avg_order_processing_time?: AverageOrderProcessingTime;
|
|
971
980
|
bulk_shipment?: boolean;
|
|
981
|
+
/**
|
|
982
|
+
* - Flag indicating if multi-piece
|
|
983
|
+
* shipment is enabled for the location.
|
|
984
|
+
*/
|
|
985
|
+
multi_piece_shipment?: boolean;
|
|
972
986
|
auto_assign_courier_partner?: boolean;
|
|
973
987
|
};
|
|
974
988
|
/** @returns {BulkLocationSchema} */
|
|
@@ -413,6 +413,8 @@ const Joi = require("joi");
|
|
|
413
413
|
* @property {LocationDayWiseSchema[]} [order_acceptance_timing]
|
|
414
414
|
* @property {AverageOrderProcessingTime} [avg_order_processing_time]
|
|
415
415
|
* @property {boolean} [bulk_shipment]
|
|
416
|
+
* @property {boolean} [multi_piece_shipment] - Flag indicating if multi-piece
|
|
417
|
+
* shipment is enabled for the location.
|
|
416
418
|
* @property {boolean} [auto_assign_courier_partner]
|
|
417
419
|
* @property {boolean} [qc_based_return_inventory_sync]
|
|
418
420
|
*/
|
|
@@ -472,6 +474,8 @@ const Joi = require("joi");
|
|
|
472
474
|
* acceptance timing of the store
|
|
473
475
|
* @property {AverageOrderProcessingTime} [avg_order_processing_time]
|
|
474
476
|
* @property {boolean} [bulk_shipment]
|
|
477
|
+
* @property {boolean} [multi_piece_shipment] - Flag indicating if multi-piece
|
|
478
|
+
* shipment is enabled for the location.
|
|
475
479
|
* @property {boolean} [auto_assign_courier_partner]
|
|
476
480
|
*/
|
|
477
481
|
|
|
@@ -1005,6 +1009,7 @@ class CompanyProfilePlatformModel {
|
|
|
1005
1009
|
),
|
|
1006
1010
|
avg_order_processing_time: CompanyProfilePlatformModel.AverageOrderProcessingTime(),
|
|
1007
1011
|
bulk_shipment: Joi.boolean(),
|
|
1012
|
+
multi_piece_shipment: Joi.boolean(),
|
|
1008
1013
|
auto_assign_courier_partner: Joi.boolean(),
|
|
1009
1014
|
qc_based_return_inventory_sync: Joi.boolean(),
|
|
1010
1015
|
});
|
|
@@ -1075,6 +1080,7 @@ class CompanyProfilePlatformModel {
|
|
|
1075
1080
|
),
|
|
1076
1081
|
avg_order_processing_time: CompanyProfilePlatformModel.AverageOrderProcessingTime(),
|
|
1077
1082
|
bulk_shipment: Joi.boolean(),
|
|
1083
|
+
multi_piece_shipment: Joi.boolean(),
|
|
1078
1084
|
auto_assign_courier_partner: Joi.boolean(),
|
|
1079
1085
|
});
|
|
1080
1086
|
}
|
|
@@ -86,6 +86,14 @@ export = ConfigurationPlatformModel;
|
|
|
86
86
|
* @property {InventoryCategory} [category]
|
|
87
87
|
* @property {InventoryPrice} [price]
|
|
88
88
|
* @property {InventoryDiscount} [discount]
|
|
89
|
+
* @property {string} [price_strategy] - Indicates whether price strategy
|
|
90
|
+
* enabled or not in an application.
|
|
91
|
+
* @property {boolean} [international] - Indicates whether internation price
|
|
92
|
+
* factory enabled or not in an application.
|
|
93
|
+
* @property {boolean} [strategy_change_pending] - Indicates whether price
|
|
94
|
+
* strategy change is pending or not in an application.
|
|
95
|
+
* @property {string} [strategy_modified_at] - ISO 8601 timestamp of last known
|
|
96
|
+
* modifications to the sales channel feature configuration
|
|
89
97
|
* @property {boolean} [out_of_stock] - Indicates whether out of stock products
|
|
90
98
|
* are allowed to show up on the website
|
|
91
99
|
* @property {boolean} [only_verified_products] - Show only verified products
|
|
@@ -917,8 +925,17 @@ export = ConfigurationPlatformModel;
|
|
|
917
925
|
* @property {QrFeature} [qr]
|
|
918
926
|
* @property {PcrFeature} [pcr]
|
|
919
927
|
* @property {OrderFeature} [order]
|
|
928
|
+
* @property {SecurityFeature} [security]
|
|
920
929
|
* @property {BuyboxFeature} [buybox]
|
|
921
930
|
* @property {DeliveryStrategy} [delivery_strategy]
|
|
931
|
+
* @property {string} [price_strategy] - Indicates whether price strategy
|
|
932
|
+
* enabled or not in an application.
|
|
933
|
+
* @property {boolean} [international] - Indicates whether internation price
|
|
934
|
+
* factory enabled or not in an application.
|
|
935
|
+
* @property {boolean} [strategy_change_pending] - Indicates whether price
|
|
936
|
+
* strategy change is pending or not in an application.
|
|
937
|
+
* @property {string} [strategy_modified_at] - ISO 8601 timestamp of last known
|
|
938
|
+
* modifications to the sales channel feature configuration
|
|
922
939
|
* @property {FulfillmentOption} [fulfillment_option]
|
|
923
940
|
* @property {string} [_id] - The unique identifier for the sales channel features
|
|
924
941
|
* @property {string} [app] - Application ID of the sales channel
|
|
@@ -1022,6 +1039,17 @@ export = ConfigurationPlatformModel;
|
|
|
1022
1039
|
* @property {boolean} [buy_again] - Allow buy again option for order. Default
|
|
1023
1040
|
* value is false.
|
|
1024
1041
|
*/
|
|
1042
|
+
/**
|
|
1043
|
+
* @typedef SecurityFeature
|
|
1044
|
+
* @property {AllowedDomain[]} [domains] - List of allowed domains for security
|
|
1045
|
+
* restrictions.
|
|
1046
|
+
*/
|
|
1047
|
+
/**
|
|
1048
|
+
* @typedef AllowedDomain
|
|
1049
|
+
* @property {string} host - The host URL for the allowed domain.
|
|
1050
|
+
* @property {string} [url_scheme] - The protocol/scheme to use for the domain.
|
|
1051
|
+
* Default is https.
|
|
1052
|
+
*/
|
|
1025
1053
|
/**
|
|
1026
1054
|
* @typedef AppFeatureRequestSchema
|
|
1027
1055
|
* @property {AppFeature} [feature]
|
|
@@ -1415,7 +1443,7 @@ export = ConfigurationPlatformModel;
|
|
|
1415
1443
|
declare class ConfigurationPlatformModel {
|
|
1416
1444
|
}
|
|
1417
1445
|
declare namespace ConfigurationPlatformModel {
|
|
1418
|
-
export { CurrencyExchangeResponseV2, CurrencyExchangeItem, ApplicationInventory, PiiMasking, FstIdentification, SkgIdentification, QuerySuggestions, SearchConfig, AppInventoryConfig, InventoryBrand, InventoryStore, AppStoreRules, InventoryCategory, InventoryPrice, InventoryDiscount, AuthenticationConfig, ArticleAssignmentConfig, ArticleAssignmentRules, StorePriority, AppCartConfig, InternationalDeliveryCharges, DeliveryCharges, Charges, AppPaymentConfig, CallbackUrl, Methods, PaymentModeConfig, PaymentSelectionLock, AppOrderConfig, ProcessingSchedule, StartAfter, AppLogisticsConfig, LoyaltyPointsConfig, AppInventoryPartialUpdate, BrandCompanyInfo, CompanyByBrandsRequestSchema, CompanyByBrandsResponseSchema, StoreByBrandsRequestSchema, StoreByBrandsResponseSchema, BrandStoreInfo, CompanyBrandInfo, BrandsByCompanyResponseSchema, ValidationFailedResponseSchema, NotFound, CommunicationConfig, CommsConfig, PanCardConfig, CreateApplicationRequestSchema, CreateAppResponseSchema, ApplicationsResponseSchema, MobileAppConfiguration, LandingImage, SplashImage, MobileAppConfigRequestSchema, BuildVersionHistory, BuildVersion, AppSupportedCurrency, DefaultCurrency, DomainAdd, DomainAddRequestSchema, Domain, DomainsResponseSchema, UpdateDomain, UpdateDomainTypeRequestSchema, DomainStatusRequestSchema, DomainStatus, DomainStatusResponseSchema, DomainSuggestionsRequestSchema, DomainSuggestion, DomainSuggestionsResponseSchema, SuccessMessageResponseSchema, App, AppDomain, CompaniesResponseSchema, AppInventoryCompanies, StoresResponseSchema, AppInventoryStores, FilterOrderingStoreRequestSchema, DeploymentMeta, OrderingStoreConfig, OrderingStoreSelectRequestSchema, OrderingStoreSelect, OtherSellerCompany, OtherSellerApplication, OtherSellerApplications, OptedApplicationResponseSchema, OptedCompany, OptedInventory, OptType, OptedStore, OptOutInventory, TokenResponseSchema, Tokens, Firebase, Credentials, Ios, Android, Moengage, MoengageCredentials, Segment, SegmentCredentials, Gtm, GtmCredentials, Freshchat, FreshchatCredentials, Safetynet, SafetynetCredentials, FyndRewards, FyndRewardsCredentials, GoogleMap, GoogleMapCredentials, RewardPointsConfig, Credit, Debit, ProductDetailFeature, LaunchPage, LandingPageFeature, ListingPageFeature, RegistrationPageFeature, BuyboxFeature, DeliveryStrategy, FulfillmentOption, AppFeature, HomePageFeature, CommonFeature, InternationalShipping, CommunicationOptinDialogFeature, DeploymentStoreSelectionFeature, ListingPriceFeature, CurrencyFeature, RevenueEngineFeature, FeedbackFeature, CompareProductsFeature, CartFeature, QrFeature, PcrFeature, OrderFeature, AppFeatureRequestSchema, AppFeatureResponseSchema, Currency, ApplicationWebsite, ApplicationCors, ApplicationAuth, ApplicationRedirections, ApplicationMeta, SecureUrl, Application, ApplicationById, TokenSchemaID, TokenSchema, InvalidPayloadRequestSchema, Page, ApplicationInformation, InformationAddress, InformationPhone, InformationLoc, InformationSupport, InformationSupportPhone, InformationSupportEmail, SocialLinks, FacebookLink, InstagramLink, TwitterLink, PinterestLink, GooglePlusLink, YoutubeLink, LinkedInLink, VimeoLink, BlogLink, Links, BusinessHighlights, ApplicationDetail, CurrenciesResponseSchema, AppCurrencyResponseSchema, StoreLatLong, OptedStoreAddress, OrderingStore, OrderingStores, OrderingStoresResponseSchema, ValidationErrors, ValidationError };
|
|
1446
|
+
export { CurrencyExchangeResponseV2, CurrencyExchangeItem, ApplicationInventory, PiiMasking, FstIdentification, SkgIdentification, QuerySuggestions, SearchConfig, AppInventoryConfig, InventoryBrand, InventoryStore, AppStoreRules, InventoryCategory, InventoryPrice, InventoryDiscount, AuthenticationConfig, ArticleAssignmentConfig, ArticleAssignmentRules, StorePriority, AppCartConfig, InternationalDeliveryCharges, DeliveryCharges, Charges, AppPaymentConfig, CallbackUrl, Methods, PaymentModeConfig, PaymentSelectionLock, AppOrderConfig, ProcessingSchedule, StartAfter, AppLogisticsConfig, LoyaltyPointsConfig, AppInventoryPartialUpdate, BrandCompanyInfo, CompanyByBrandsRequestSchema, CompanyByBrandsResponseSchema, StoreByBrandsRequestSchema, StoreByBrandsResponseSchema, BrandStoreInfo, CompanyBrandInfo, BrandsByCompanyResponseSchema, ValidationFailedResponseSchema, NotFound, CommunicationConfig, CommsConfig, PanCardConfig, CreateApplicationRequestSchema, CreateAppResponseSchema, ApplicationsResponseSchema, MobileAppConfiguration, LandingImage, SplashImage, MobileAppConfigRequestSchema, BuildVersionHistory, BuildVersion, AppSupportedCurrency, DefaultCurrency, DomainAdd, DomainAddRequestSchema, Domain, DomainsResponseSchema, UpdateDomain, UpdateDomainTypeRequestSchema, DomainStatusRequestSchema, DomainStatus, DomainStatusResponseSchema, DomainSuggestionsRequestSchema, DomainSuggestion, DomainSuggestionsResponseSchema, SuccessMessageResponseSchema, App, AppDomain, CompaniesResponseSchema, AppInventoryCompanies, StoresResponseSchema, AppInventoryStores, FilterOrderingStoreRequestSchema, DeploymentMeta, OrderingStoreConfig, OrderingStoreSelectRequestSchema, OrderingStoreSelect, OtherSellerCompany, OtherSellerApplication, OtherSellerApplications, OptedApplicationResponseSchema, OptedCompany, OptedInventory, OptType, OptedStore, OptOutInventory, TokenResponseSchema, Tokens, Firebase, Credentials, Ios, Android, Moengage, MoengageCredentials, Segment, SegmentCredentials, Gtm, GtmCredentials, Freshchat, FreshchatCredentials, Safetynet, SafetynetCredentials, FyndRewards, FyndRewardsCredentials, GoogleMap, GoogleMapCredentials, RewardPointsConfig, Credit, Debit, ProductDetailFeature, LaunchPage, LandingPageFeature, ListingPageFeature, RegistrationPageFeature, BuyboxFeature, DeliveryStrategy, FulfillmentOption, AppFeature, HomePageFeature, CommonFeature, InternationalShipping, CommunicationOptinDialogFeature, DeploymentStoreSelectionFeature, ListingPriceFeature, CurrencyFeature, RevenueEngineFeature, FeedbackFeature, CompareProductsFeature, CartFeature, QrFeature, PcrFeature, OrderFeature, SecurityFeature, AllowedDomain, AppFeatureRequestSchema, AppFeatureResponseSchema, Currency, ApplicationWebsite, ApplicationCors, ApplicationAuth, ApplicationRedirections, ApplicationMeta, SecureUrl, Application, ApplicationById, TokenSchemaID, TokenSchema, InvalidPayloadRequestSchema, Page, ApplicationInformation, InformationAddress, InformationPhone, InformationLoc, InformationSupport, InformationSupportPhone, InformationSupportEmail, SocialLinks, FacebookLink, InstagramLink, TwitterLink, PinterestLink, GooglePlusLink, YoutubeLink, LinkedInLink, VimeoLink, BlogLink, Links, BusinessHighlights, ApplicationDetail, CurrenciesResponseSchema, AppCurrencyResponseSchema, StoreLatLong, OptedStoreAddress, OrderingStore, OrderingStores, OrderingStoresResponseSchema, ValidationErrors, ValidationError };
|
|
1419
1447
|
}
|
|
1420
1448
|
/** @returns {CurrencyExchangeResponseV2} */
|
|
1421
1449
|
declare function CurrencyExchangeResponseV2(): CurrencyExchangeResponseV2;
|
|
@@ -1585,6 +1613,26 @@ type AppInventoryConfig = {
|
|
|
1585
1613
|
category?: InventoryCategory;
|
|
1586
1614
|
price?: InventoryPrice;
|
|
1587
1615
|
discount?: InventoryDiscount;
|
|
1616
|
+
/**
|
|
1617
|
+
* - Indicates whether price strategy
|
|
1618
|
+
* enabled or not in an application.
|
|
1619
|
+
*/
|
|
1620
|
+
price_strategy?: string;
|
|
1621
|
+
/**
|
|
1622
|
+
* - Indicates whether internation price
|
|
1623
|
+
* factory enabled or not in an application.
|
|
1624
|
+
*/
|
|
1625
|
+
international?: boolean;
|
|
1626
|
+
/**
|
|
1627
|
+
* - Indicates whether price
|
|
1628
|
+
* strategy change is pending or not in an application.
|
|
1629
|
+
*/
|
|
1630
|
+
strategy_change_pending?: boolean;
|
|
1631
|
+
/**
|
|
1632
|
+
* - ISO 8601 timestamp of last known
|
|
1633
|
+
* modifications to the sales channel feature configuration
|
|
1634
|
+
*/
|
|
1635
|
+
strategy_modified_at?: string;
|
|
1588
1636
|
/**
|
|
1589
1637
|
* - Indicates whether out of stock products
|
|
1590
1638
|
* are allowed to show up on the website
|
|
@@ -3253,8 +3301,29 @@ type AppFeature = {
|
|
|
3253
3301
|
qr?: QrFeature;
|
|
3254
3302
|
pcr?: PcrFeature;
|
|
3255
3303
|
order?: OrderFeature;
|
|
3304
|
+
security?: SecurityFeature;
|
|
3256
3305
|
buybox?: BuyboxFeature;
|
|
3257
3306
|
delivery_strategy?: DeliveryStrategy;
|
|
3307
|
+
/**
|
|
3308
|
+
* - Indicates whether price strategy
|
|
3309
|
+
* enabled or not in an application.
|
|
3310
|
+
*/
|
|
3311
|
+
price_strategy?: string;
|
|
3312
|
+
/**
|
|
3313
|
+
* - Indicates whether internation price
|
|
3314
|
+
* factory enabled or not in an application.
|
|
3315
|
+
*/
|
|
3316
|
+
international?: boolean;
|
|
3317
|
+
/**
|
|
3318
|
+
* - Indicates whether price
|
|
3319
|
+
* strategy change is pending or not in an application.
|
|
3320
|
+
*/
|
|
3321
|
+
strategy_change_pending?: boolean;
|
|
3322
|
+
/**
|
|
3323
|
+
* - ISO 8601 timestamp of last known
|
|
3324
|
+
* modifications to the sales channel feature configuration
|
|
3325
|
+
*/
|
|
3326
|
+
strategy_modified_at?: string;
|
|
3258
3327
|
fulfillment_option?: FulfillmentOption;
|
|
3259
3328
|
/**
|
|
3260
3329
|
* - The unique identifier for the sales channel features
|
|
@@ -3456,6 +3525,28 @@ type OrderFeature = {
|
|
|
3456
3525
|
*/
|
|
3457
3526
|
buy_again?: boolean;
|
|
3458
3527
|
};
|
|
3528
|
+
/** @returns {SecurityFeature} */
|
|
3529
|
+
declare function SecurityFeature(): SecurityFeature;
|
|
3530
|
+
type SecurityFeature = {
|
|
3531
|
+
/**
|
|
3532
|
+
* - List of allowed domains for security
|
|
3533
|
+
* restrictions.
|
|
3534
|
+
*/
|
|
3535
|
+
domains?: AllowedDomain[];
|
|
3536
|
+
};
|
|
3537
|
+
/** @returns {AllowedDomain} */
|
|
3538
|
+
declare function AllowedDomain(): AllowedDomain;
|
|
3539
|
+
type AllowedDomain = {
|
|
3540
|
+
/**
|
|
3541
|
+
* - The host URL for the allowed domain.
|
|
3542
|
+
*/
|
|
3543
|
+
host: string;
|
|
3544
|
+
/**
|
|
3545
|
+
* - The protocol/scheme to use for the domain.
|
|
3546
|
+
* Default is https.
|
|
3547
|
+
*/
|
|
3548
|
+
url_scheme?: string;
|
|
3549
|
+
};
|
|
3459
3550
|
/** @returns {AppFeatureRequestSchema} */
|
|
3460
3551
|
declare function AppFeatureRequestSchema(): AppFeatureRequestSchema;
|
|
3461
3552
|
type AppFeatureRequestSchema = {
|
|
@@ -95,6 +95,14 @@ const Joi = require("joi");
|
|
|
95
95
|
* @property {InventoryCategory} [category]
|
|
96
96
|
* @property {InventoryPrice} [price]
|
|
97
97
|
* @property {InventoryDiscount} [discount]
|
|
98
|
+
* @property {string} [price_strategy] - Indicates whether price strategy
|
|
99
|
+
* enabled or not in an application.
|
|
100
|
+
* @property {boolean} [international] - Indicates whether internation price
|
|
101
|
+
* factory enabled or not in an application.
|
|
102
|
+
* @property {boolean} [strategy_change_pending] - Indicates whether price
|
|
103
|
+
* strategy change is pending or not in an application.
|
|
104
|
+
* @property {string} [strategy_modified_at] - ISO 8601 timestamp of last known
|
|
105
|
+
* modifications to the sales channel feature configuration
|
|
98
106
|
* @property {boolean} [out_of_stock] - Indicates whether out of stock products
|
|
99
107
|
* are allowed to show up on the website
|
|
100
108
|
* @property {boolean} [only_verified_products] - Show only verified products
|
|
@@ -1040,8 +1048,17 @@ const Joi = require("joi");
|
|
|
1040
1048
|
* @property {QrFeature} [qr]
|
|
1041
1049
|
* @property {PcrFeature} [pcr]
|
|
1042
1050
|
* @property {OrderFeature} [order]
|
|
1051
|
+
* @property {SecurityFeature} [security]
|
|
1043
1052
|
* @property {BuyboxFeature} [buybox]
|
|
1044
1053
|
* @property {DeliveryStrategy} [delivery_strategy]
|
|
1054
|
+
* @property {string} [price_strategy] - Indicates whether price strategy
|
|
1055
|
+
* enabled or not in an application.
|
|
1056
|
+
* @property {boolean} [international] - Indicates whether internation price
|
|
1057
|
+
* factory enabled or not in an application.
|
|
1058
|
+
* @property {boolean} [strategy_change_pending] - Indicates whether price
|
|
1059
|
+
* strategy change is pending or not in an application.
|
|
1060
|
+
* @property {string} [strategy_modified_at] - ISO 8601 timestamp of last known
|
|
1061
|
+
* modifications to the sales channel feature configuration
|
|
1045
1062
|
* @property {FulfillmentOption} [fulfillment_option]
|
|
1046
1063
|
* @property {string} [_id] - The unique identifier for the sales channel features
|
|
1047
1064
|
* @property {string} [app] - Application ID of the sales channel
|
|
@@ -1160,6 +1177,19 @@ const Joi = require("joi");
|
|
|
1160
1177
|
* value is false.
|
|
1161
1178
|
*/
|
|
1162
1179
|
|
|
1180
|
+
/**
|
|
1181
|
+
* @typedef SecurityFeature
|
|
1182
|
+
* @property {AllowedDomain[]} [domains] - List of allowed domains for security
|
|
1183
|
+
* restrictions.
|
|
1184
|
+
*/
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* @typedef AllowedDomain
|
|
1188
|
+
* @property {string} host - The host URL for the allowed domain.
|
|
1189
|
+
* @property {string} [url_scheme] - The protocol/scheme to use for the domain.
|
|
1190
|
+
* Default is https.
|
|
1191
|
+
*/
|
|
1192
|
+
|
|
1163
1193
|
/**
|
|
1164
1194
|
* @typedef AppFeatureRequestSchema
|
|
1165
1195
|
* @property {AppFeature} [feature]
|
|
@@ -1697,6 +1727,10 @@ class ConfigurationPlatformModel {
|
|
|
1697
1727
|
category: ConfigurationPlatformModel.InventoryCategory(),
|
|
1698
1728
|
price: ConfigurationPlatformModel.InventoryPrice(),
|
|
1699
1729
|
discount: ConfigurationPlatformModel.InventoryDiscount(),
|
|
1730
|
+
price_strategy: Joi.string().allow(""),
|
|
1731
|
+
international: Joi.boolean(),
|
|
1732
|
+
strategy_change_pending: Joi.boolean(),
|
|
1733
|
+
strategy_modified_at: Joi.string().allow(""),
|
|
1700
1734
|
out_of_stock: Joi.boolean(),
|
|
1701
1735
|
only_verified_products: Joi.boolean(),
|
|
1702
1736
|
franchise_enabled: Joi.boolean(),
|
|
@@ -2755,8 +2789,13 @@ class ConfigurationPlatformModel {
|
|
|
2755
2789
|
qr: ConfigurationPlatformModel.QrFeature(),
|
|
2756
2790
|
pcr: ConfigurationPlatformModel.PcrFeature(),
|
|
2757
2791
|
order: ConfigurationPlatformModel.OrderFeature(),
|
|
2792
|
+
security: ConfigurationPlatformModel.SecurityFeature(),
|
|
2758
2793
|
buybox: ConfigurationPlatformModel.BuyboxFeature(),
|
|
2759
2794
|
delivery_strategy: ConfigurationPlatformModel.DeliveryStrategy(),
|
|
2795
|
+
price_strategy: Joi.string().allow(""),
|
|
2796
|
+
international: Joi.boolean(),
|
|
2797
|
+
strategy_change_pending: Joi.boolean(),
|
|
2798
|
+
strategy_modified_at: Joi.string().allow(""),
|
|
2760
2799
|
fulfillment_option: ConfigurationPlatformModel.FulfillmentOption(),
|
|
2761
2800
|
_id: Joi.string().allow(""),
|
|
2762
2801
|
app: Joi.string().allow(""),
|
|
@@ -2883,6 +2922,21 @@ class ConfigurationPlatformModel {
|
|
|
2883
2922
|
});
|
|
2884
2923
|
}
|
|
2885
2924
|
|
|
2925
|
+
/** @returns {SecurityFeature} */
|
|
2926
|
+
static SecurityFeature() {
|
|
2927
|
+
return Joi.object({
|
|
2928
|
+
domains: Joi.array().items(ConfigurationPlatformModel.AllowedDomain()),
|
|
2929
|
+
});
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
/** @returns {AllowedDomain} */
|
|
2933
|
+
static AllowedDomain() {
|
|
2934
|
+
return Joi.object({
|
|
2935
|
+
host: Joi.string().allow("").required(),
|
|
2936
|
+
url_scheme: Joi.string().allow(""),
|
|
2937
|
+
});
|
|
2938
|
+
}
|
|
2939
|
+
|
|
2886
2940
|
/** @returns {AppFeatureRequestSchema} */
|
|
2887
2941
|
static AppFeatureRequestSchema() {
|
|
2888
2942
|
return Joi.object({
|
|
@@ -20,6 +20,8 @@ export = DiscountPlatformModel;
|
|
|
20
20
|
* @property {number[]} [brand_ids] - List of brand IDs associated with the discount.
|
|
21
21
|
* @property {number[]} [store_ids] - List of store IDs associated with the discount.
|
|
22
22
|
* @property {string[]} [zone_ids] - List of zone IDs associated with the discount.
|
|
23
|
+
* @property {string[]} [price_factory_ids] - List of price_factory IDs
|
|
24
|
+
* associated with the discount.
|
|
23
25
|
* @property {ValidityObject} validity
|
|
24
26
|
* @property {DiscountMeta} [discount_meta]
|
|
25
27
|
*/
|
|
@@ -48,6 +50,8 @@ export = DiscountPlatformModel;
|
|
|
48
50
|
* @property {number[]} [brand_ids] - List of brand IDs associated with the discount job.
|
|
49
51
|
* @property {number[]} [store_ids] - List of store IDs associated with the discount job.
|
|
50
52
|
* @property {string[]} [zone_ids] - List of zone IDs associated with the discount job.
|
|
53
|
+
* @property {string[]} [price_factory_ids] - List of price_factory IDs
|
|
54
|
+
* associated with the discount.
|
|
51
55
|
* @property {DiscountMeta} [discount_meta]
|
|
52
56
|
* @property {ValidityObject} validity
|
|
53
57
|
* @property {string} created_on - The date and time when the discount job was created.
|
|
@@ -129,6 +133,8 @@ export = DiscountPlatformModel;
|
|
|
129
133
|
* @property {string} [file_path] - Path to the disocunt file.
|
|
130
134
|
* @property {number[]} [brand_ids] - List of brand identifiers.
|
|
131
135
|
* @property {number[]} [store_ids] - List of store identifiers.
|
|
136
|
+
* @property {string[]} [price_factory_ids] - List of price_factory IDs
|
|
137
|
+
* associated with the discount.
|
|
132
138
|
* @property {ValidityObject} validity
|
|
133
139
|
* @property {Object} [meta] - Additional metadata for the disocunt.
|
|
134
140
|
*/
|
|
@@ -244,6 +250,11 @@ type CreateUpdateDiscount = {
|
|
|
244
250
|
* - List of zone IDs associated with the discount.
|
|
245
251
|
*/
|
|
246
252
|
zone_ids?: string[];
|
|
253
|
+
/**
|
|
254
|
+
* - List of price_factory IDs
|
|
255
|
+
* associated with the discount.
|
|
256
|
+
*/
|
|
257
|
+
price_factory_ids?: string[];
|
|
247
258
|
validity: ValidityObject;
|
|
248
259
|
discount_meta?: DiscountMeta;
|
|
249
260
|
};
|
|
@@ -322,6 +333,11 @@ type DiscountJob = {
|
|
|
322
333
|
* - List of zone IDs associated with the discount job.
|
|
323
334
|
*/
|
|
324
335
|
zone_ids?: string[];
|
|
336
|
+
/**
|
|
337
|
+
* - List of price_factory IDs
|
|
338
|
+
* associated with the discount.
|
|
339
|
+
*/
|
|
340
|
+
price_factory_ids?: string[];
|
|
325
341
|
discount_meta?: DiscountMeta;
|
|
326
342
|
validity: ValidityObject;
|
|
327
343
|
/**
|
|
@@ -559,6 +575,11 @@ type FileJobRequestSchema = {
|
|
|
559
575
|
* - List of store identifiers.
|
|
560
576
|
*/
|
|
561
577
|
store_ids?: number[];
|
|
578
|
+
/**
|
|
579
|
+
* - List of price_factory IDs
|
|
580
|
+
* associated with the discount.
|
|
581
|
+
*/
|
|
582
|
+
price_factory_ids?: string[];
|
|
562
583
|
validity: ValidityObject;
|
|
563
584
|
/**
|
|
564
585
|
* - Additional metadata for the disocunt.
|
|
@@ -22,6 +22,8 @@ const Joi = require("joi");
|
|
|
22
22
|
* @property {number[]} [brand_ids] - List of brand IDs associated with the discount.
|
|
23
23
|
* @property {number[]} [store_ids] - List of store IDs associated with the discount.
|
|
24
24
|
* @property {string[]} [zone_ids] - List of zone IDs associated with the discount.
|
|
25
|
+
* @property {string[]} [price_factory_ids] - List of price_factory IDs
|
|
26
|
+
* associated with the discount.
|
|
25
27
|
* @property {ValidityObject} validity
|
|
26
28
|
* @property {DiscountMeta} [discount_meta]
|
|
27
29
|
*/
|
|
@@ -52,6 +54,8 @@ const Joi = require("joi");
|
|
|
52
54
|
* @property {number[]} [brand_ids] - List of brand IDs associated with the discount job.
|
|
53
55
|
* @property {number[]} [store_ids] - List of store IDs associated with the discount job.
|
|
54
56
|
* @property {string[]} [zone_ids] - List of zone IDs associated with the discount job.
|
|
57
|
+
* @property {string[]} [price_factory_ids] - List of price_factory IDs
|
|
58
|
+
* associated with the discount.
|
|
55
59
|
* @property {DiscountMeta} [discount_meta]
|
|
56
60
|
* @property {ValidityObject} validity
|
|
57
61
|
* @property {string} created_on - The date and time when the discount job was created.
|
|
@@ -139,6 +143,8 @@ const Joi = require("joi");
|
|
|
139
143
|
* @property {string} [file_path] - Path to the disocunt file.
|
|
140
144
|
* @property {number[]} [brand_ids] - List of brand identifiers.
|
|
141
145
|
* @property {number[]} [store_ids] - List of store identifiers.
|
|
146
|
+
* @property {string[]} [price_factory_ids] - List of price_factory IDs
|
|
147
|
+
* associated with the discount.
|
|
142
148
|
* @property {ValidityObject} validity
|
|
143
149
|
* @property {Object} [meta] - Additional metadata for the disocunt.
|
|
144
150
|
*/
|
|
@@ -214,6 +220,7 @@ class DiscountPlatformModel {
|
|
|
214
220
|
brand_ids: Joi.array().items(Joi.number()),
|
|
215
221
|
store_ids: Joi.array().items(Joi.number()),
|
|
216
222
|
zone_ids: Joi.array().items(Joi.string().allow("")),
|
|
223
|
+
price_factory_ids: Joi.array().items(Joi.string().allow("")),
|
|
217
224
|
validity: DiscountPlatformModel.ValidityObject().required(),
|
|
218
225
|
discount_meta: DiscountPlatformModel.DiscountMeta(),
|
|
219
226
|
});
|
|
@@ -244,6 +251,7 @@ class DiscountPlatformModel {
|
|
|
244
251
|
brand_ids: Joi.array().items(Joi.number()),
|
|
245
252
|
store_ids: Joi.array().items(Joi.number()),
|
|
246
253
|
zone_ids: Joi.array().items(Joi.string().allow("")),
|
|
254
|
+
price_factory_ids: Joi.array().items(Joi.string().allow("")),
|
|
247
255
|
discount_meta: DiscountPlatformModel.DiscountMeta(),
|
|
248
256
|
validity: DiscountPlatformModel.ValidityObject().required(),
|
|
249
257
|
created_on: Joi.string().allow("").required(),
|
|
@@ -344,6 +352,7 @@ class DiscountPlatformModel {
|
|
|
344
352
|
file_path: Joi.string().allow(""),
|
|
345
353
|
brand_ids: Joi.array().items(Joi.number()),
|
|
346
354
|
store_ids: Joi.array().items(Joi.number()),
|
|
355
|
+
price_factory_ids: Joi.array().items(Joi.string().allow("")),
|
|
347
356
|
validity: DiscountPlatformModel.ValidityObject().required(),
|
|
348
357
|
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
349
358
|
});
|