@gofynd/fdk-client-javascript 1.4.15-beta.1 → 1.4.15-beta.2

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 CHANGED
@@ -237,7 +237,7 @@ console.log("Active Theme: ", response.information.name);
237
237
  The above code will log the curl command in the console
238
238
 
239
239
  ```bash
240
- curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: v1.4.15-beta.1' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
240
+ curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.15-beta.2' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
241
241
  Active Theme: Emerge
242
242
  ```
243
243
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gofynd/fdk-client-javascript",
3
- "version": "v1.4.15-beta.1",
3
+ "version": "1.4.15-beta.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -533,6 +533,8 @@ export = CartPlatformModel;
533
533
  * @property {boolean} is_authenticated - Flag indicating whether the user is
534
534
  * authenticated
535
535
  * @property {Article[]} article_ids - The list of article object in the price adjustment
536
+ * @property {boolean} [auto_remove] - This field if set true will remove mop
537
+ * type price adjustment.
536
538
  * @property {Object} [meta]
537
539
  * @property {string} cart_id - The ID of the cart
538
540
  */
@@ -554,6 +556,8 @@ export = CartPlatformModel;
554
556
  * @property {boolean} is_authenticated - Flag indicating whether the user is
555
557
  * authenticated
556
558
  * @property {Article[]} article_ids - The list of article object in the price adjustment
559
+ * @property {boolean} [auto_remove] - This field if set true will remove mop
560
+ * type price adjustment.
557
561
  * @property {Object} [meta]
558
562
  * @property {string} cart_id - The ID of the cart
559
563
  */
@@ -585,6 +589,8 @@ export = CartPlatformModel;
585
589
  * @property {Article[]} article_ids - The list of article object in the price adjustment
586
590
  * @property {Object} [meta]
587
591
  * @property {string} cart_id - The ID of the cart
592
+ * @property {boolean} [auto_remove] - This field if set true will remove mop
593
+ * type price adjustment.
588
594
  */
589
595
  /**
590
596
  * @typedef CartItem
@@ -2505,6 +2511,11 @@ type PriceAdjustmentUpdate = {
2505
2511
  * - The list of article object in the price adjustment
2506
2512
  */
2507
2513
  article_ids: Article[];
2514
+ /**
2515
+ * - This field if set true will remove mop
2516
+ * type price adjustment.
2517
+ */
2518
+ auto_remove?: boolean;
2508
2519
  meta?: any;
2509
2520
  /**
2510
2521
  * - The ID of the cart
@@ -2554,6 +2565,11 @@ type PriceAdjustment = {
2554
2565
  * - The list of article object in the price adjustment
2555
2566
  */
2556
2567
  article_ids: Article[];
2568
+ /**
2569
+ * - This field if set true will remove mop
2570
+ * type price adjustment.
2571
+ */
2572
+ auto_remove?: boolean;
2557
2573
  meta?: any;
2558
2574
  /**
2559
2575
  * - The ID of the cart
@@ -2621,6 +2637,11 @@ type PriceAdjustmentAdd = {
2621
2637
  * - The ID of the cart
2622
2638
  */
2623
2639
  cart_id: string;
2640
+ /**
2641
+ * - This field if set true will remove mop
2642
+ * type price adjustment.
2643
+ */
2644
+ auto_remove?: boolean;
2624
2645
  };
2625
2646
  /** @returns {CartItem} */
2626
2647
  declare function CartItem(): CartItem;
@@ -593,6 +593,8 @@ const Joi = require("joi");
593
593
  * @property {boolean} is_authenticated - Flag indicating whether the user is
594
594
  * authenticated
595
595
  * @property {Article[]} article_ids - The list of article object in the price adjustment
596
+ * @property {boolean} [auto_remove] - This field if set true will remove mop
597
+ * type price adjustment.
596
598
  * @property {Object} [meta]
597
599
  * @property {string} cart_id - The ID of the cart
598
600
  */
@@ -615,6 +617,8 @@ const Joi = require("joi");
615
617
  * @property {boolean} is_authenticated - Flag indicating whether the user is
616
618
  * authenticated
617
619
  * @property {Article[]} article_ids - The list of article object in the price adjustment
620
+ * @property {boolean} [auto_remove] - This field if set true will remove mop
621
+ * type price adjustment.
618
622
  * @property {Object} [meta]
619
623
  * @property {string} cart_id - The ID of the cart
620
624
  */
@@ -649,6 +653,8 @@ const Joi = require("joi");
649
653
  * @property {Article[]} article_ids - The list of article object in the price adjustment
650
654
  * @property {Object} [meta]
651
655
  * @property {string} cart_id - The ID of the cart
656
+ * @property {boolean} [auto_remove] - This field if set true will remove mop
657
+ * type price adjustment.
652
658
  */
653
659
 
654
660
  /**
@@ -2647,6 +2653,7 @@ class CartPlatformModel {
2647
2653
  allowed_refund: Joi.boolean(),
2648
2654
  is_authenticated: Joi.boolean().required(),
2649
2655
  article_ids: Joi.array().items(CartPlatformModel.Article()).required(),
2656
+ auto_remove: Joi.boolean(),
2650
2657
  meta: Joi.any(),
2651
2658
  cart_id: Joi.string().allow("").required(),
2652
2659
  });
@@ -2666,6 +2673,7 @@ class CartPlatformModel {
2666
2673
  allowed_refund: Joi.boolean(),
2667
2674
  is_authenticated: Joi.boolean().required(),
2668
2675
  article_ids: Joi.array().items(CartPlatformModel.Article()).required(),
2676
+ auto_remove: Joi.boolean(),
2669
2677
  meta: Joi.any(),
2670
2678
  cart_id: Joi.string().allow("").required(),
2671
2679
  });
@@ -2701,6 +2709,7 @@ class CartPlatformModel {
2701
2709
  article_ids: Joi.array().items(CartPlatformModel.Article()).required(),
2702
2710
  meta: Joi.any(),
2703
2711
  cart_id: Joi.string().allow("").required(),
2712
+ auto_remove: Joi.boolean(),
2704
2713
  });
2705
2714
  }
2706
2715
 
@@ -133,11 +133,23 @@ export = ServiceabilityPlatformModel;
133
133
  * @property {string} type
134
134
  * @property {string[]} tags
135
135
  */
136
+ /**
137
+ * @typedef ZoneMappingDetailType
138
+ * @property {string} country - Uid for the country.
139
+ * @property {ZoneMappingRegions[]} [regions] - List of regions with its details.
140
+ */
136
141
  /**
137
142
  * @typedef ZoneMappingType
138
143
  * @property {string} country
139
- * @property {string[]} [pincode]
140
- * @property {string[]} [state]
144
+ * @property {string[]} regions
145
+ */
146
+ /**
147
+ * @typedef ZoneMappingRegions
148
+ * @property {string} [display_name] - Name of the region that is in proper casing.
149
+ * @property {string[]} [parent_id]
150
+ * @property {string} [parent_uid] - Unique identifier for that regions parent.
151
+ * @property {string} [sub_type] - What type does the region belong to.
152
+ * @property {string} [uid] - Unique identifier for that region.
141
153
  */
142
154
  /**
143
155
  * @typedef UpdateZoneData
@@ -151,7 +163,6 @@ export = ServiceabilityPlatformModel;
151
163
  * @property {number[]} store_ids
152
164
  * @property {string} region_type
153
165
  * @property {ZoneMappingType[]} mapping
154
- * @property {string} [assignment_preference]
155
166
  */
156
167
  /**
157
168
  * @typedef ZoneUpdateRequest
@@ -175,7 +186,6 @@ export = ServiceabilityPlatformModel;
175
186
  * @property {number[]} store_ids
176
187
  * @property {string} [region_type]
177
188
  * @property {ZoneMappingType[]} mapping
178
- * @property {string} [assignment_preference]
179
189
  * @property {number} stores_count
180
190
  */
181
191
  /**
@@ -193,9 +203,7 @@ export = ServiceabilityPlatformModel;
193
203
  * @property {ZoneProductTypes} product
194
204
  * @property {number[]} store_ids
195
205
  * @property {string} region_type
196
- * @property {ZoneMappingType[]} mapping
197
- * @property {string} [assignment_preference]
198
- * @property {number} stores_count
206
+ * @property {ZoneMappingDetailType[]} mapping - Country to region mapping for the zone.
199
207
  */
200
208
  /**
201
209
  * @typedef CreateZoneData
@@ -205,9 +213,9 @@ export = ServiceabilityPlatformModel;
205
213
  * @property {boolean} is_active
206
214
  * @property {GetZoneDataViewChannels[]} channels
207
215
  * @property {number[]} store_ids
216
+ * @property {ZoneProductTypes} product
208
217
  * @property {string} region_type
209
218
  * @property {ZoneMappingType[]} mapping
210
- * @property {string} [assignment_preference]
211
219
  */
212
220
  /**
213
221
  * @typedef ZoneResponse
@@ -229,7 +237,6 @@ export = ServiceabilityPlatformModel;
229
237
  * @property {string} slug
230
238
  * @property {boolean} is_active
231
239
  * @property {number[]} store_ids
232
- * @property {string} assignment_preference
233
240
  */
234
241
  /**
235
242
  * @typedef GetZoneFromPincodeViewResponse
@@ -1027,7 +1034,7 @@ export = ServiceabilityPlatformModel;
1027
1034
  declare class ServiceabilityPlatformModel {
1028
1035
  }
1029
1036
  declare namespace ServiceabilityPlatformModel {
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 };
1037
+ 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, ZoneMappingDetailType, ZoneMappingType, ZoneMappingRegions, 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 };
1031
1038
  }
1032
1039
  /** @returns {UpdateZoneConfigRequest} */
1033
1040
  declare function UpdateZoneConfigRequest(): UpdateZoneConfigRequest;
@@ -1211,12 +1218,44 @@ type ZoneProductTypes = {
1211
1218
  type: string;
1212
1219
  tags: string[];
1213
1220
  };
1221
+ /** @returns {ZoneMappingDetailType} */
1222
+ declare function ZoneMappingDetailType(): ZoneMappingDetailType;
1223
+ type ZoneMappingDetailType = {
1224
+ /**
1225
+ * - Uid for the country.
1226
+ */
1227
+ country: string;
1228
+ /**
1229
+ * - List of regions with its details.
1230
+ */
1231
+ regions?: ZoneMappingRegions[];
1232
+ };
1214
1233
  /** @returns {ZoneMappingType} */
1215
1234
  declare function ZoneMappingType(): ZoneMappingType;
1216
1235
  type ZoneMappingType = {
1217
1236
  country: string;
1218
- pincode?: string[];
1219
- state?: string[];
1237
+ regions: string[];
1238
+ };
1239
+ /** @returns {ZoneMappingRegions} */
1240
+ declare function ZoneMappingRegions(): ZoneMappingRegions;
1241
+ type ZoneMappingRegions = {
1242
+ /**
1243
+ * - Name of the region that is in proper casing.
1244
+ */
1245
+ display_name?: string;
1246
+ parent_id?: string[];
1247
+ /**
1248
+ * - Unique identifier for that regions parent.
1249
+ */
1250
+ parent_uid?: string;
1251
+ /**
1252
+ * - What type does the region belong to.
1253
+ */
1254
+ sub_type?: string;
1255
+ /**
1256
+ * - Unique identifier for that region.
1257
+ */
1258
+ uid?: string;
1220
1259
  };
1221
1260
  /** @returns {UpdateZoneData} */
1222
1261
  declare function UpdateZoneData(): UpdateZoneData;
@@ -1231,7 +1270,6 @@ type UpdateZoneData = {
1231
1270
  store_ids: number[];
1232
1271
  region_type: string;
1233
1272
  mapping: ZoneMappingType[];
1234
- assignment_preference?: string;
1235
1273
  };
1236
1274
  /** @returns {ZoneUpdateRequest} */
1237
1275
  declare function ZoneUpdateRequest(): ZoneUpdateRequest;
@@ -1258,7 +1296,6 @@ type GetZoneDataViewItems = {
1258
1296
  store_ids: number[];
1259
1297
  region_type?: string;
1260
1298
  mapping: ZoneMappingType[];
1261
- assignment_preference?: string;
1262
1299
  stores_count: number;
1263
1300
  };
1264
1301
  /** @returns {GetSingleZoneDataViewResponse} */
@@ -1278,9 +1315,10 @@ type GetZoneByIdSchema = {
1278
1315
  product: ZoneProductTypes;
1279
1316
  store_ids: number[];
1280
1317
  region_type: string;
1281
- mapping: ZoneMappingType[];
1282
- assignment_preference?: string;
1283
- stores_count: number;
1318
+ /**
1319
+ * - Country to region mapping for the zone.
1320
+ */
1321
+ mapping: ZoneMappingDetailType[];
1284
1322
  };
1285
1323
  /** @returns {CreateZoneData} */
1286
1324
  declare function CreateZoneData(): CreateZoneData;
@@ -1291,9 +1329,9 @@ type CreateZoneData = {
1291
1329
  is_active: boolean;
1292
1330
  channels: GetZoneDataViewChannels[];
1293
1331
  store_ids: number[];
1332
+ product: ZoneProductTypes;
1294
1333
  region_type: string;
1295
1334
  mapping: ZoneMappingType[];
1296
- assignment_preference?: string;
1297
1335
  };
1298
1336
  /** @returns {ZoneResponse} */
1299
1337
  declare function ZoneResponse(): ZoneResponse;
@@ -1318,7 +1356,6 @@ type Zone = {
1318
1356
  slug: string;
1319
1357
  is_active: boolean;
1320
1358
  store_ids: number[];
1321
- assignment_preference: string;
1322
1359
  };
1323
1360
  /** @returns {GetZoneFromPincodeViewResponse} */
1324
1361
  declare function GetZoneFromPincodeViewResponse(): GetZoneFromPincodeViewResponse;
@@ -155,11 +155,25 @@ const Joi = require("joi");
155
155
  * @property {string[]} tags
156
156
  */
157
157
 
158
+ /**
159
+ * @typedef ZoneMappingDetailType
160
+ * @property {string} country - Uid for the country.
161
+ * @property {ZoneMappingRegions[]} [regions] - List of regions with its details.
162
+ */
163
+
158
164
  /**
159
165
  * @typedef ZoneMappingType
160
166
  * @property {string} country
161
- * @property {string[]} [pincode]
162
- * @property {string[]} [state]
167
+ * @property {string[]} regions
168
+ */
169
+
170
+ /**
171
+ * @typedef ZoneMappingRegions
172
+ * @property {string} [display_name] - Name of the region that is in proper casing.
173
+ * @property {string[]} [parent_id]
174
+ * @property {string} [parent_uid] - Unique identifier for that regions parent.
175
+ * @property {string} [sub_type] - What type does the region belong to.
176
+ * @property {string} [uid] - Unique identifier for that region.
163
177
  */
164
178
 
165
179
  /**
@@ -174,7 +188,6 @@ const Joi = require("joi");
174
188
  * @property {number[]} store_ids
175
189
  * @property {string} region_type
176
190
  * @property {ZoneMappingType[]} mapping
177
- * @property {string} [assignment_preference]
178
191
  */
179
192
 
180
193
  /**
@@ -201,7 +214,6 @@ const Joi = require("joi");
201
214
  * @property {number[]} store_ids
202
215
  * @property {string} [region_type]
203
216
  * @property {ZoneMappingType[]} mapping
204
- * @property {string} [assignment_preference]
205
217
  * @property {number} stores_count
206
218
  */
207
219
 
@@ -221,9 +233,7 @@ const Joi = require("joi");
221
233
  * @property {ZoneProductTypes} product
222
234
  * @property {number[]} store_ids
223
235
  * @property {string} region_type
224
- * @property {ZoneMappingType[]} mapping
225
- * @property {string} [assignment_preference]
226
- * @property {number} stores_count
236
+ * @property {ZoneMappingDetailType[]} mapping - Country to region mapping for the zone.
227
237
  */
228
238
 
229
239
  /**
@@ -234,9 +244,9 @@ const Joi = require("joi");
234
244
  * @property {boolean} is_active
235
245
  * @property {GetZoneDataViewChannels[]} channels
236
246
  * @property {number[]} store_ids
247
+ * @property {ZoneProductTypes} product
237
248
  * @property {string} region_type
238
249
  * @property {ZoneMappingType[]} mapping
239
- * @property {string} [assignment_preference]
240
250
  */
241
251
 
242
252
  /**
@@ -261,7 +271,6 @@ const Joi = require("joi");
261
271
  * @property {string} slug
262
272
  * @property {boolean} is_active
263
273
  * @property {number[]} store_ids
264
- * @property {string} assignment_preference
265
274
  */
266
275
 
267
276
  /**
@@ -1365,12 +1374,32 @@ class ServiceabilityPlatformModel {
1365
1374
  });
1366
1375
  }
1367
1376
 
1377
+ /** @returns {ZoneMappingDetailType} */
1378
+ static ZoneMappingDetailType() {
1379
+ return Joi.object({
1380
+ country: Joi.string().allow("").required(),
1381
+ regions: Joi.array().items(
1382
+ ServiceabilityPlatformModel.ZoneMappingRegions()
1383
+ ),
1384
+ });
1385
+ }
1386
+
1368
1387
  /** @returns {ZoneMappingType} */
1369
1388
  static ZoneMappingType() {
1370
1389
  return Joi.object({
1371
1390
  country: Joi.string().allow("").required(),
1372
- pincode: Joi.array().items(Joi.string().allow("")),
1373
- state: Joi.array().items(Joi.string().allow("")),
1391
+ regions: Joi.array().items(Joi.string().allow("")).required(),
1392
+ });
1393
+ }
1394
+
1395
+ /** @returns {ZoneMappingRegions} */
1396
+ static ZoneMappingRegions() {
1397
+ return Joi.object({
1398
+ display_name: Joi.string().allow(""),
1399
+ parent_id: Joi.array().items(Joi.string().allow("")),
1400
+ parent_uid: Joi.string().allow(""),
1401
+ sub_type: Joi.string().allow(""),
1402
+ uid: Joi.string().allow(""),
1374
1403
  });
1375
1404
  }
1376
1405
 
@@ -1391,7 +1420,6 @@ class ServiceabilityPlatformModel {
1391
1420
  mapping: Joi.array()
1392
1421
  .items(ServiceabilityPlatformModel.ZoneMappingType())
1393
1422
  .required(),
1394
- assignment_preference: Joi.string().allow(""),
1395
1423
  });
1396
1424
  }
1397
1425
 
@@ -1428,7 +1456,6 @@ class ServiceabilityPlatformModel {
1428
1456
  mapping: Joi.array()
1429
1457
  .items(ServiceabilityPlatformModel.ZoneMappingType())
1430
1458
  .required(),
1431
- assignment_preference: Joi.string().allow(""),
1432
1459
  stores_count: Joi.number().required(),
1433
1460
  });
1434
1461
  }
@@ -1455,10 +1482,8 @@ class ServiceabilityPlatformModel {
1455
1482
  store_ids: Joi.array().items(Joi.number()).required(),
1456
1483
  region_type: Joi.string().allow("").required(),
1457
1484
  mapping: Joi.array()
1458
- .items(ServiceabilityPlatformModel.ZoneMappingType())
1485
+ .items(ServiceabilityPlatformModel.ZoneMappingDetailType())
1459
1486
  .required(),
1460
- assignment_preference: Joi.string().allow(""),
1461
- stores_count: Joi.number().required(),
1462
1487
  });
1463
1488
  }
1464
1489
 
@@ -1473,11 +1498,11 @@ class ServiceabilityPlatformModel {
1473
1498
  .items(ServiceabilityPlatformModel.GetZoneDataViewChannels())
1474
1499
  .required(),
1475
1500
  store_ids: Joi.array().items(Joi.number()).required(),
1501
+ product: ServiceabilityPlatformModel.ZoneProductTypes().required(),
1476
1502
  region_type: Joi.string().allow("").required(),
1477
1503
  mapping: Joi.array()
1478
1504
  .items(ServiceabilityPlatformModel.ZoneMappingType())
1479
1505
  .required(),
1480
- assignment_preference: Joi.string().allow(""),
1481
1506
  });
1482
1507
  }
1483
1508
 
@@ -1508,7 +1533,6 @@ class ServiceabilityPlatformModel {
1508
1533
  slug: Joi.string().allow("").required(),
1509
1534
  is_active: Joi.boolean().required(),
1510
1535
  store_ids: Joi.array().items(Joi.number()).required(),
1511
- assignment_preference: Joi.string().allow("").required(),
1512
1536
  });
1513
1537
  }
1514
1538