@gofynd/fdk-client-javascript 1.4.15 → 1.4.16-beta.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.
Files changed (75) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +11 -11
  4. package/sdk/application/Cart/CartApplicationClient.js +343 -48
  5. package/sdk/application/Catalog/CatalogApplicationClient.js +408 -0
  6. package/sdk/application/Common/CommonApplicationClient.js +21 -0
  7. package/sdk/application/Communication/CommunicationApplicationClient.js +29 -0
  8. package/sdk/application/Configuration/ConfigurationApplicationClient.js +147 -0
  9. package/sdk/application/Content/ContentApplicationClient.d.ts +20 -0
  10. package/sdk/application/Content/ContentApplicationClient.js +327 -0
  11. package/sdk/application/FileStorage/FileStorageApplicationClient.js +43 -0
  12. package/sdk/application/Finance/FinanceApplicationClient.js +21 -0
  13. package/sdk/application/Lead/LeadApplicationClient.js +73 -0
  14. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +1 -1
  15. package/sdk/application/Logistic/LogisticApplicationClient.js +182 -2
  16. package/sdk/application/Order/OrderApplicationClient.js +202 -0
  17. package/sdk/application/Payment/PaymentApplicationClient.d.ts +0 -10
  18. package/sdk/application/Payment/PaymentApplicationClient.js +445 -38
  19. package/sdk/application/Rewards/RewardsApplicationClient.js +68 -0
  20. package/sdk/application/Share/ShareApplicationClient.js +96 -0
  21. package/sdk/application/Theme/ThemeApplicationClient.js +64 -0
  22. package/sdk/application/User/UserApplicationClient.js +412 -0
  23. package/sdk/application/Webhook/WebhookApplicationClient.js +13 -0
  24. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +12 -33
  25. package/sdk/partner/Logistics/LogisticsPartnerClient.js +38 -209
  26. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +19 -399
  27. package/sdk/partner/Logistics/LogisticsPartnerModel.js +11 -212
  28. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -3
  29. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -22
  30. package/sdk/partner/OAuthClient.js +1 -0
  31. package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -40
  32. package/sdk/partner/Theme/ThemePartnerModel.js +2 -24
  33. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +1 -1
  34. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
  35. package/sdk/platform/Cart/CartPlatformApplicationClient.js +12 -3
  36. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -1
  37. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -1
  38. package/sdk/platform/Cart/CartPlatformModel.d.ts +14 -28
  39. package/sdk/platform/Cart/CartPlatformModel.js +7 -13
  40. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +0 -24
  41. package/sdk/platform/Catalog/CatalogPlatformClient.js +0 -176
  42. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +29 -80
  43. package/sdk/platform/Catalog/CatalogPlatformModel.js +32 -72
  44. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1 -45
  45. package/sdk/platform/Catalog/CatalogPlatformValidator.js +0 -35
  46. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +7 -0
  47. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +3 -0
  48. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +52 -0
  49. package/sdk/platform/Content/ContentPlatformApplicationClient.js +411 -0
  50. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +85 -1
  51. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +73 -0
  52. package/sdk/platform/Content/ContentPlatformModel.d.ts +90 -1
  53. package/sdk/platform/Content/ContentPlatformModel.js +104 -0
  54. package/sdk/platform/Order/OrderPlatformClient.d.ts +2 -2
  55. package/sdk/platform/Order/OrderPlatformClient.js +0 -8
  56. package/sdk/platform/Order/OrderPlatformModel.d.ts +3 -75
  57. package/sdk/platform/Order/OrderPlatformModel.js +2 -43
  58. package/sdk/platform/Order/OrderPlatformValidator.d.ts +0 -22
  59. package/sdk/platform/Order/OrderPlatformValidator.js +0 -10
  60. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +10 -0
  61. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +118 -0
  62. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +53 -1
  63. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +29 -0
  64. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +0 -104
  65. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +74 -816
  66. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +23 -598
  67. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +20 -382
  68. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +1 -191
  69. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +0 -138
  70. package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -40
  71. package/sdk/platform/Theme/ThemePlatformModel.js +2 -24
  72. package/sdk/public/Configuration/ConfigurationPublicClient.js +16 -0
  73. package/sdk/public/Content/ContentPublicClient.js +116 -0
  74. package/sdk/public/Partner/PartnerPublicClient.js +15 -0
  75. package/sdk/public/Webhook/WebhookPublicClient.js +40 -0
@@ -270,91 +270,6 @@ class Serviceability {
270
270
  return response;
271
271
  }
272
272
 
273
- /**
274
- * @param {ServiceabilityPlatformValidator.CreateCourierPartnerSchemeParam} arg
275
- * - Arg object
276
- *
277
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
278
- * @param {import("../PlatformAPIClient").Options} - Options
279
- * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerV2SchemeModel>}
280
- * - Success response
281
- *
282
- * @name createCourierPartnerScheme
283
- * @summary: Create Scheme for courier partner extension
284
- * @description: Create Scheme for courier partner extension - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createCourierPartnerScheme/).
285
- */
286
- async createCourierPartnerScheme(
287
- { body, requestHeaders } = { requestHeaders: {} },
288
- { responseHeaders } = { responseHeaders: false }
289
- ) {
290
- const {
291
- error,
292
- } = ServiceabilityPlatformValidator.createCourierPartnerScheme().validate(
293
- {
294
- body,
295
- },
296
- { abortEarly: false, allowUnknown: true }
297
- );
298
- if (error) {
299
- return Promise.reject(new FDKClientValidationError(error));
300
- }
301
-
302
- // Showing warrnings if extra unknown parameters are found
303
- const {
304
- error: warrning,
305
- } = ServiceabilityPlatformValidator.createCourierPartnerScheme().validate(
306
- {
307
- body,
308
- },
309
- { abortEarly: false, allowUnknown: false }
310
- );
311
- if (warrning) {
312
- Logger({
313
- level: "WARN",
314
- message: `Parameter Validation warrnings for platform > Serviceability > createCourierPartnerScheme \n ${warrning}`,
315
- });
316
- }
317
-
318
- const query_params = {};
319
-
320
- const xHeaders = {};
321
-
322
- const response = await PlatformAPIClient.execute(
323
- this.config,
324
- "post",
325
- `/service/platform/logistics/v2.0/company/${this.config.companyId}/courier-partner/scheme`,
326
- query_params,
327
- body,
328
- { ...xHeaders, ...requestHeaders },
329
- { responseHeaders }
330
- );
331
-
332
- let responseData = response;
333
- if (responseHeaders) {
334
- responseData = response[0];
335
- }
336
-
337
- const {
338
- error: res_error,
339
- } = ServiceabilityPlatformModel.CourierPartnerV2SchemeModel().validate(
340
- responseData,
341
- { abortEarly: false, allowUnknown: true }
342
- );
343
-
344
- if (res_error) {
345
- if (this.config.options.strictResponseCheck === true) {
346
- return Promise.reject(new FDKResponseValidationError(res_error));
347
- } else {
348
- Logger({
349
- level: "WARN",
350
- message: `Response Validation Warnings for platform > Serviceability > createCourierPartnerScheme \n ${res_error}`,
351
- });
352
- }
353
- }
354
-
355
- return response;
356
- }
357
-
358
273
  /**
359
274
  * @param {ServiceabilityPlatformValidator.CreatePackageMaterialParam} arg
360
275
  * - Arg object
@@ -1003,100 +918,6 @@ class Serviceability {
1003
918
  return response;
1004
919
  }
1005
920
 
1006
- /**
1007
- * @param {ServiceabilityPlatformValidator.GetCountriesParam} arg - Arg object
1008
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1009
- * @param {import("../PlatformAPIClient").Options} - Options
1010
- * @returns {Promise<ServiceabilityPlatformModel.GetCountries>} - Success response
1011
- * @name getCountries
1012
- * @summary: Get countries
1013
- * @description: Retrieve a list of countries for logistical purposes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCountries/).
1014
- */
1015
- async getCountries(
1016
- { onboarding, pageNo, pageSize, q, hierarchy, requestHeaders } = {
1017
- requestHeaders: {},
1018
- },
1019
- { responseHeaders } = { responseHeaders: false }
1020
- ) {
1021
- const { error } = ServiceabilityPlatformValidator.getCountries().validate(
1022
- {
1023
- onboarding,
1024
- pageNo,
1025
- pageSize,
1026
- q,
1027
- hierarchy,
1028
- },
1029
- { abortEarly: false, allowUnknown: true }
1030
- );
1031
- if (error) {
1032
- return Promise.reject(new FDKClientValidationError(error));
1033
- }
1034
-
1035
- // Showing warrnings if extra unknown parameters are found
1036
- const {
1037
- error: warrning,
1038
- } = ServiceabilityPlatformValidator.getCountries().validate(
1039
- {
1040
- onboarding,
1041
- pageNo,
1042
- pageSize,
1043
- q,
1044
- hierarchy,
1045
- },
1046
- { abortEarly: false, allowUnknown: false }
1047
- );
1048
- if (warrning) {
1049
- Logger({
1050
- level: "WARN",
1051
- message: `Parameter Validation warrnings for platform > Serviceability > getCountries \n ${warrning}`,
1052
- });
1053
- }
1054
-
1055
- const query_params = {};
1056
- query_params["onboarding"] = onboarding;
1057
- query_params["page_no"] = pageNo;
1058
- query_params["page_size"] = pageSize;
1059
- query_params["q"] = q;
1060
- query_params["hierarchy"] = hierarchy;
1061
-
1062
- const xHeaders = {};
1063
-
1064
- const response = await PlatformAPIClient.execute(
1065
- this.config,
1066
- "get",
1067
- `/service/platform/logistics/v2.0/company/${this.config.companyId}/countries`,
1068
- query_params,
1069
- undefined,
1070
- { ...xHeaders, ...requestHeaders },
1071
- { responseHeaders }
1072
- );
1073
-
1074
- let responseData = response;
1075
- if (responseHeaders) {
1076
- responseData = response[0];
1077
- }
1078
-
1079
- const {
1080
- error: res_error,
1081
- } = ServiceabilityPlatformModel.GetCountries().validate(responseData, {
1082
- abortEarly: false,
1083
- allowUnknown: true,
1084
- });
1085
-
1086
- if (res_error) {
1087
- if (this.config.options.strictResponseCheck === true) {
1088
- return Promise.reject(new FDKResponseValidationError(res_error));
1089
- } else {
1090
- Logger({
1091
- level: "WARN",
1092
- message: `Response Validation Warnings for platform > Serviceability > getCountries \n ${res_error}`,
1093
- });
1094
- }
1095
- }
1096
-
1097
- return response;
1098
- }
1099
-
1100
921
  /**
1101
922
  * @param {ServiceabilityPlatformValidator.GetCourierPartnerAccountParam} arg
1102
923
  * - Arg object
@@ -1282,26 +1103,25 @@ class Serviceability {
1282
1103
  }
1283
1104
 
1284
1105
  /**
1285
- * @param {ServiceabilityPlatformValidator.GetCourierPartnerSchemeParam} arg
1286
- * - Arg object
1287
- *
1106
+ * @param {ServiceabilityPlatformValidator.GetOptimalLocationsParam} arg - Arg object
1288
1107
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1289
1108
  * @param {import("../PlatformAPIClient").Options} - Options
1290
- * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerV2SchemeModel>}
1291
- * - Success response
1292
- *
1293
- * @name getCourierPartnerScheme
1294
- * @summary: Get Scheme for courier partner extension by Id
1295
- * @description: Update Scheme for courier partner extension by Id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerScheme/).
1109
+ * @returns {Promise<ServiceabilityPlatformModel.OptimalLocationsResult>} -
1110
+ * Success response
1111
+ * @name getOptimalLocations
1112
+ * @summary: Get selling locations
1113
+ * @description: Retrieves a list selling locations which are best suited to fullfil an order for a customer. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getOptimalLocations/).
1296
1114
  */
1297
- async getCourierPartnerScheme(
1298
- { schemeId, requestHeaders } = { requestHeaders: {} },
1115
+ async getOptimalLocations(
1116
+ { body, requestHeaders } = { requestHeaders: {} },
1299
1117
  { responseHeaders } = { responseHeaders: false }
1300
1118
  ) {
1301
1119
  const {
1302
1120
  error,
1303
- } = ServiceabilityPlatformValidator.getCourierPartnerScheme().validate(
1304
- { schemeId },
1121
+ } = ServiceabilityPlatformValidator.getOptimalLocations().validate(
1122
+ {
1123
+ body,
1124
+ },
1305
1125
  { abortEarly: false, allowUnknown: true }
1306
1126
  );
1307
1127
  if (error) {
@@ -1311,14 +1131,16 @@ class Serviceability {
1311
1131
  // Showing warrnings if extra unknown parameters are found
1312
1132
  const {
1313
1133
  error: warrning,
1314
- } = ServiceabilityPlatformValidator.getCourierPartnerScheme().validate(
1315
- { schemeId },
1134
+ } = ServiceabilityPlatformValidator.getOptimalLocations().validate(
1135
+ {
1136
+ body,
1137
+ },
1316
1138
  { abortEarly: false, allowUnknown: false }
1317
1139
  );
1318
1140
  if (warrning) {
1319
1141
  Logger({
1320
1142
  level: "WARN",
1321
- message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartnerScheme \n ${warrning}`,
1143
+ message: `Parameter Validation warrnings for platform > Serviceability > getOptimalLocations \n ${warrning}`,
1322
1144
  });
1323
1145
  }
1324
1146
 
@@ -1328,10 +1150,10 @@ class Serviceability {
1328
1150
 
1329
1151
  const response = await PlatformAPIClient.execute(
1330
1152
  this.config,
1331
- "get",
1332
- `/service/platform/logistics/v2.0/company/${this.config.companyId}/courier-partner/scheme/${schemeId}`,
1153
+ "post",
1154
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/optimal-locations`,
1333
1155
  query_params,
1334
- undefined,
1156
+ body,
1335
1157
  { ...xHeaders, ...requestHeaders },
1336
1158
  { responseHeaders }
1337
1159
  );
@@ -1343,7 +1165,7 @@ class Serviceability {
1343
1165
 
1344
1166
  const {
1345
1167
  error: res_error,
1346
- } = ServiceabilityPlatformModel.CourierPartnerV2SchemeModel().validate(
1168
+ } = ServiceabilityPlatformModel.OptimalLocationsResult().validate(
1347
1169
  responseData,
1348
1170
  { abortEarly: false, allowUnknown: true }
1349
1171
  );
@@ -1354,7 +1176,7 @@ class Serviceability {
1354
1176
  } else {
1355
1177
  Logger({
1356
1178
  level: "WARN",
1357
- message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerScheme \n ${res_error}`,
1179
+ message: `Response Validation Warnings for platform > Serviceability > getOptimalLocations \n ${res_error}`,
1358
1180
  });
1359
1181
  }
1360
1182
  }
@@ -1363,32 +1185,32 @@ class Serviceability {
1363
1185
  }
1364
1186
 
1365
1187
  /**
1366
- * @param {ServiceabilityPlatformValidator.GetCourierPartnerSchemesParam} arg
1188
+ * @param {ServiceabilityPlatformValidator.GetPackageMaterialListParam} arg
1367
1189
  * - Arg object
1368
1190
  *
1369
1191
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1370
1192
  * @param {import("../PlatformAPIClient").Options} - Options
1371
- * @returns {Promise<ServiceabilityPlatformModel.courierPartnerSchemeV2List>}
1372
- * - Success response
1373
- *
1374
- * @name getCourierPartnerSchemes
1375
- * @summary: Get created Schemes for courier partner
1376
- * @description: Get created Schemes for courier partner - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerSchemes/).
1193
+ * @returns {Promise<ServiceabilityPlatformModel.PackageMaterialList>} -
1194
+ * Success response
1195
+ * @name getPackageMaterialList
1196
+ * @summary: Get packaging materials
1197
+ * @description: Retrieves a list of packaging materials - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getPackageMaterialList/).
1377
1198
  */
1378
- async getCourierPartnerSchemes(
1379
- { schemeType, paymentMode, capabilities, schemeIds, requestHeaders } = {
1199
+ async getPackageMaterialList(
1200
+ { pageNo, pageSize, q, size, packageType, requestHeaders } = {
1380
1201
  requestHeaders: {},
1381
1202
  },
1382
1203
  { responseHeaders } = { responseHeaders: false }
1383
1204
  ) {
1384
1205
  const {
1385
1206
  error,
1386
- } = ServiceabilityPlatformValidator.getCourierPartnerSchemes().validate(
1207
+ } = ServiceabilityPlatformValidator.getPackageMaterialList().validate(
1387
1208
  {
1388
- schemeType,
1389
- paymentMode,
1390
- capabilities,
1391
- schemeIds,
1209
+ pageNo,
1210
+ pageSize,
1211
+ q,
1212
+ size,
1213
+ packageType,
1392
1214
  },
1393
1215
  { abortEarly: false, allowUnknown: true }
1394
1216
  );
@@ -1399,34 +1221,36 @@ class Serviceability {
1399
1221
  // Showing warrnings if extra unknown parameters are found
1400
1222
  const {
1401
1223
  error: warrning,
1402
- } = ServiceabilityPlatformValidator.getCourierPartnerSchemes().validate(
1224
+ } = ServiceabilityPlatformValidator.getPackageMaterialList().validate(
1403
1225
  {
1404
- schemeType,
1405
- paymentMode,
1406
- capabilities,
1407
- schemeIds,
1226
+ pageNo,
1227
+ pageSize,
1228
+ q,
1229
+ size,
1230
+ packageType,
1408
1231
  },
1409
1232
  { abortEarly: false, allowUnknown: false }
1410
1233
  );
1411
1234
  if (warrning) {
1412
1235
  Logger({
1413
1236
  level: "WARN",
1414
- message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartnerSchemes \n ${warrning}`,
1237
+ message: `Parameter Validation warrnings for platform > Serviceability > getPackageMaterialList \n ${warrning}`,
1415
1238
  });
1416
1239
  }
1417
1240
 
1418
1241
  const query_params = {};
1419
- query_params["scheme_type"] = schemeType;
1420
- query_params["payment_mode"] = paymentMode;
1421
- query_params["capabilities"] = capabilities;
1422
- query_params["scheme_ids"] = schemeIds;
1242
+ query_params["page_no"] = pageNo;
1243
+ query_params["page_size"] = pageSize;
1244
+ query_params["q"] = q;
1245
+ query_params["size"] = size;
1246
+ query_params["package_type"] = packageType;
1423
1247
 
1424
1248
  const xHeaders = {};
1425
1249
 
1426
1250
  const response = await PlatformAPIClient.execute(
1427
1251
  this.config,
1428
1252
  "get",
1429
- `/service/platform/logistics/v2.0/company/${this.config.companyId}/courier-partner/scheme`,
1253
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/packaging-materials`,
1430
1254
  query_params,
1431
1255
  undefined,
1432
1256
  { ...xHeaders, ...requestHeaders },
@@ -1440,7 +1264,7 @@ class Serviceability {
1440
1264
 
1441
1265
  const {
1442
1266
  error: res_error,
1443
- } = ServiceabilityPlatformModel.courierPartnerSchemeV2List().validate(
1267
+ } = ServiceabilityPlatformModel.PackageMaterialList().validate(
1444
1268
  responseData,
1445
1269
  { abortEarly: false, allowUnknown: true }
1446
1270
  );
@@ -1451,7 +1275,7 @@ class Serviceability {
1451
1275
  } else {
1452
1276
  Logger({
1453
1277
  level: "WARN",
1454
- message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerSchemes \n ${res_error}`,
1278
+ message: `Response Validation Warnings for platform > Serviceability > getPackageMaterialList \n ${res_error}`,
1455
1279
  });
1456
1280
  }
1457
1281
  }
@@ -1460,24 +1284,26 @@ class Serviceability {
1460
1284
  }
1461
1285
 
1462
1286
  /**
1463
- * @param {ServiceabilityPlatformValidator.GetOptimalLocationsParam} arg - Arg object
1287
+ * @param {ServiceabilityPlatformValidator.GetPackageMaterialRuleParam} arg
1288
+ * - Arg object
1289
+ *
1464
1290
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1465
1291
  * @param {import("../PlatformAPIClient").Options} - Options
1466
- * @returns {Promise<ServiceabilityPlatformModel.OptimalLocationsResult>} -
1292
+ * @returns {Promise<ServiceabilityPlatformModel.PackageRuleResult>} -
1467
1293
  * Success response
1468
- * @name getOptimalLocations
1469
- * @summary: Get selling locations
1470
- * @description: Retrieves a list selling locations which are best suited to fullfil an order for a customer. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getOptimalLocations/).
1294
+ * @name getPackageMaterialRule
1295
+ * @summary: Get packaging material rule
1296
+ * @description: Retrieve packaging rule details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getPackageMaterialRule/).
1471
1297
  */
1472
- async getOptimalLocations(
1473
- { body, requestHeaders } = { requestHeaders: {} },
1298
+ async getPackageMaterialRule(
1299
+ { ruleId, requestHeaders } = { requestHeaders: {} },
1474
1300
  { responseHeaders } = { responseHeaders: false }
1475
1301
  ) {
1476
1302
  const {
1477
1303
  error,
1478
- } = ServiceabilityPlatformValidator.getOptimalLocations().validate(
1304
+ } = ServiceabilityPlatformValidator.getPackageMaterialRule().validate(
1479
1305
  {
1480
- body,
1306
+ ruleId,
1481
1307
  },
1482
1308
  { abortEarly: false, allowUnknown: true }
1483
1309
  );
@@ -1488,16 +1314,16 @@ class Serviceability {
1488
1314
  // Showing warrnings if extra unknown parameters are found
1489
1315
  const {
1490
1316
  error: warrning,
1491
- } = ServiceabilityPlatformValidator.getOptimalLocations().validate(
1317
+ } = ServiceabilityPlatformValidator.getPackageMaterialRule().validate(
1492
1318
  {
1493
- body,
1319
+ ruleId,
1494
1320
  },
1495
1321
  { abortEarly: false, allowUnknown: false }
1496
1322
  );
1497
1323
  if (warrning) {
1498
1324
  Logger({
1499
1325
  level: "WARN",
1500
- message: `Parameter Validation warrnings for platform > Serviceability > getOptimalLocations \n ${warrning}`,
1326
+ message: `Parameter Validation warrnings for platform > Serviceability > getPackageMaterialRule \n ${warrning}`,
1501
1327
  });
1502
1328
  }
1503
1329
 
@@ -1507,10 +1333,10 @@ class Serviceability {
1507
1333
 
1508
1334
  const response = await PlatformAPIClient.execute(
1509
1335
  this.config,
1510
- "post",
1511
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/optimal-locations`,
1336
+ "get",
1337
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/packaging-material/rules/${ruleId}`,
1512
1338
  query_params,
1513
- body,
1339
+ undefined,
1514
1340
  { ...xHeaders, ...requestHeaders },
1515
1341
  { responseHeaders }
1516
1342
  );
@@ -1522,10 +1348,10 @@ class Serviceability {
1522
1348
 
1523
1349
  const {
1524
1350
  error: res_error,
1525
- } = ServiceabilityPlatformModel.OptimalLocationsResult().validate(
1526
- responseData,
1527
- { abortEarly: false, allowUnknown: true }
1528
- );
1351
+ } = ServiceabilityPlatformModel.PackageRuleResult().validate(responseData, {
1352
+ abortEarly: false,
1353
+ allowUnknown: true,
1354
+ });
1529
1355
 
1530
1356
  if (res_error) {
1531
1357
  if (this.config.options.strictResponseCheck === true) {
@@ -1533,7 +1359,7 @@ class Serviceability {
1533
1359
  } else {
1534
1360
  Logger({
1535
1361
  level: "WARN",
1536
- message: `Response Validation Warnings for platform > Serviceability > getOptimalLocations \n ${res_error}`,
1362
+ message: `Response Validation Warnings for platform > Serviceability > getPackageMaterialRule \n ${res_error}`,
1537
1363
  });
1538
1364
  }
1539
1365
  }
@@ -1542,190 +1368,7 @@ class Serviceability {
1542
1368
  }
1543
1369
 
1544
1370
  /**
1545
- * @param {ServiceabilityPlatformValidator.GetPackageMaterialListParam} arg
1546
- * - Arg object
1547
- *
1548
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1549
- * @param {import("../PlatformAPIClient").Options} - Options
1550
- * @returns {Promise<ServiceabilityPlatformModel.PackageMaterialList>} -
1551
- * Success response
1552
- * @name getPackageMaterialList
1553
- * @summary: Get packaging materials
1554
- * @description: Retrieves a list of packaging materials - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getPackageMaterialList/).
1555
- */
1556
- async getPackageMaterialList(
1557
- { pageNo, pageSize, q, size, packageType, requestHeaders } = {
1558
- requestHeaders: {},
1559
- },
1560
- { responseHeaders } = { responseHeaders: false }
1561
- ) {
1562
- const {
1563
- error,
1564
- } = ServiceabilityPlatformValidator.getPackageMaterialList().validate(
1565
- {
1566
- pageNo,
1567
- pageSize,
1568
- q,
1569
- size,
1570
- packageType,
1571
- },
1572
- { abortEarly: false, allowUnknown: true }
1573
- );
1574
- if (error) {
1575
- return Promise.reject(new FDKClientValidationError(error));
1576
- }
1577
-
1578
- // Showing warrnings if extra unknown parameters are found
1579
- const {
1580
- error: warrning,
1581
- } = ServiceabilityPlatformValidator.getPackageMaterialList().validate(
1582
- {
1583
- pageNo,
1584
- pageSize,
1585
- q,
1586
- size,
1587
- packageType,
1588
- },
1589
- { abortEarly: false, allowUnknown: false }
1590
- );
1591
- if (warrning) {
1592
- Logger({
1593
- level: "WARN",
1594
- message: `Parameter Validation warrnings for platform > Serviceability > getPackageMaterialList \n ${warrning}`,
1595
- });
1596
- }
1597
-
1598
- const query_params = {};
1599
- query_params["page_no"] = pageNo;
1600
- query_params["page_size"] = pageSize;
1601
- query_params["q"] = q;
1602
- query_params["size"] = size;
1603
- query_params["package_type"] = packageType;
1604
-
1605
- const xHeaders = {};
1606
-
1607
- const response = await PlatformAPIClient.execute(
1608
- this.config,
1609
- "get",
1610
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/packaging-materials`,
1611
- query_params,
1612
- undefined,
1613
- { ...xHeaders, ...requestHeaders },
1614
- { responseHeaders }
1615
- );
1616
-
1617
- let responseData = response;
1618
- if (responseHeaders) {
1619
- responseData = response[0];
1620
- }
1621
-
1622
- const {
1623
- error: res_error,
1624
- } = ServiceabilityPlatformModel.PackageMaterialList().validate(
1625
- responseData,
1626
- { abortEarly: false, allowUnknown: true }
1627
- );
1628
-
1629
- if (res_error) {
1630
- if (this.config.options.strictResponseCheck === true) {
1631
- return Promise.reject(new FDKResponseValidationError(res_error));
1632
- } else {
1633
- Logger({
1634
- level: "WARN",
1635
- message: `Response Validation Warnings for platform > Serviceability > getPackageMaterialList \n ${res_error}`,
1636
- });
1637
- }
1638
- }
1639
-
1640
- return response;
1641
- }
1642
-
1643
- /**
1644
- * @param {ServiceabilityPlatformValidator.GetPackageMaterialRuleParam} arg
1645
- * - Arg object
1646
- *
1647
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1648
- * @param {import("../PlatformAPIClient").Options} - Options
1649
- * @returns {Promise<ServiceabilityPlatformModel.PackageRuleResult>} -
1650
- * Success response
1651
- * @name getPackageMaterialRule
1652
- * @summary: Get packaging material rule
1653
- * @description: Retrieve packaging rule details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getPackageMaterialRule/).
1654
- */
1655
- async getPackageMaterialRule(
1656
- { ruleId, requestHeaders } = { requestHeaders: {} },
1657
- { responseHeaders } = { responseHeaders: false }
1658
- ) {
1659
- const {
1660
- error,
1661
- } = ServiceabilityPlatformValidator.getPackageMaterialRule().validate(
1662
- {
1663
- ruleId,
1664
- },
1665
- { abortEarly: false, allowUnknown: true }
1666
- );
1667
- if (error) {
1668
- return Promise.reject(new FDKClientValidationError(error));
1669
- }
1670
-
1671
- // Showing warrnings if extra unknown parameters are found
1672
- const {
1673
- error: warrning,
1674
- } = ServiceabilityPlatformValidator.getPackageMaterialRule().validate(
1675
- {
1676
- ruleId,
1677
- },
1678
- { abortEarly: false, allowUnknown: false }
1679
- );
1680
- if (warrning) {
1681
- Logger({
1682
- level: "WARN",
1683
- message: `Parameter Validation warrnings for platform > Serviceability > getPackageMaterialRule \n ${warrning}`,
1684
- });
1685
- }
1686
-
1687
- const query_params = {};
1688
-
1689
- const xHeaders = {};
1690
-
1691
- const response = await PlatformAPIClient.execute(
1692
- this.config,
1693
- "get",
1694
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/packaging-material/rules/${ruleId}`,
1695
- query_params,
1696
- undefined,
1697
- { ...xHeaders, ...requestHeaders },
1698
- { responseHeaders }
1699
- );
1700
-
1701
- let responseData = response;
1702
- if (responseHeaders) {
1703
- responseData = response[0];
1704
- }
1705
-
1706
- const {
1707
- error: res_error,
1708
- } = ServiceabilityPlatformModel.PackageRuleResult().validate(responseData, {
1709
- abortEarly: false,
1710
- allowUnknown: true,
1711
- });
1712
-
1713
- if (res_error) {
1714
- if (this.config.options.strictResponseCheck === true) {
1715
- return Promise.reject(new FDKResponseValidationError(res_error));
1716
- } else {
1717
- Logger({
1718
- level: "WARN",
1719
- message: `Response Validation Warnings for platform > Serviceability > getPackageMaterialRule \n ${res_error}`,
1720
- });
1721
- }
1722
- }
1723
-
1724
- return response;
1725
- }
1726
-
1727
- /**
1728
- * @param {ServiceabilityPlatformValidator.GetPackageMaterialRulesParam} arg
1371
+ * @param {ServiceabilityPlatformValidator.GetPackageMaterialRulesParam} arg
1729
1372
  * - Arg object
1730
1373
  *
1731
1374
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -1898,98 +1541,6 @@ class Serviceability {
1898
1541
  return response;
1899
1542
  }
1900
1543
 
1901
- /**
1902
- * @param {ServiceabilityPlatformValidator.GetSampleFileServiceabilityStatusParam} arg
1903
- * - Arg object
1904
- *
1905
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1906
- * @param {import("../PlatformAPIClient").Options} - Options
1907
- * @returns {Promise<ServiceabilityPlatformModel.BulkRegionServiceabilityTatResult>}
1908
- * - Success response
1909
- *
1910
- * @name getSampleFileServiceabilityStatus
1911
- * @summary: Get Serviceability TAT sample files generator status
1912
- * @description: Get Serviceability TAT sample file generator status - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getSampleFileServiceabilityStatus/).
1913
- */
1914
- async getSampleFileServiceabilityStatus(
1915
- { pageNo, pageSize, batchId, requestHeaders } = { requestHeaders: {} },
1916
- { responseHeaders } = { responseHeaders: false }
1917
- ) {
1918
- const {
1919
- error,
1920
- } = ServiceabilityPlatformValidator.getSampleFileServiceabilityStatus().validate(
1921
- {
1922
- pageNo,
1923
- pageSize,
1924
- batchId,
1925
- },
1926
- { abortEarly: false, allowUnknown: true }
1927
- );
1928
- if (error) {
1929
- return Promise.reject(new FDKClientValidationError(error));
1930
- }
1931
-
1932
- // Showing warrnings if extra unknown parameters are found
1933
- const {
1934
- error: warrning,
1935
- } = ServiceabilityPlatformValidator.getSampleFileServiceabilityStatus().validate(
1936
- {
1937
- pageNo,
1938
- pageSize,
1939
- batchId,
1940
- },
1941
- { abortEarly: false, allowUnknown: false }
1942
- );
1943
- if (warrning) {
1944
- Logger({
1945
- level: "WARN",
1946
- message: `Parameter Validation warrnings for platform > Serviceability > getSampleFileServiceabilityStatus \n ${warrning}`,
1947
- });
1948
- }
1949
-
1950
- const query_params = {};
1951
- query_params["page_no"] = pageNo;
1952
- query_params["page_size"] = pageSize;
1953
- query_params["batch_id"] = batchId;
1954
-
1955
- const xHeaders = {};
1956
-
1957
- const response = await PlatformAPIClient.execute(
1958
- this.config,
1959
- "get",
1960
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/localities/bulk-sample`,
1961
- query_params,
1962
- undefined,
1963
- { ...xHeaders, ...requestHeaders },
1964
- { responseHeaders }
1965
- );
1966
-
1967
- let responseData = response;
1968
- if (responseHeaders) {
1969
- responseData = response[0];
1970
- }
1971
-
1972
- const {
1973
- error: res_error,
1974
- } = ServiceabilityPlatformModel.BulkRegionServiceabilityTatResult().validate(
1975
- responseData,
1976
- { abortEarly: false, allowUnknown: true }
1977
- );
1978
-
1979
- if (res_error) {
1980
- if (this.config.options.strictResponseCheck === true) {
1981
- return Promise.reject(new FDKResponseValidationError(res_error));
1982
- } else {
1983
- Logger({
1984
- level: "WARN",
1985
- message: `Response Validation Warnings for platform > Serviceability > getSampleFileServiceabilityStatus \n ${res_error}`,
1986
- });
1987
- }
1988
- }
1989
-
1990
- return response;
1991
- }
1992
-
1993
1544
  /**
1994
1545
  * @param {ServiceabilityPlatformValidator.GetServiceabilityParam} arg - Arg object
1995
1546
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -2158,210 +1709,6 @@ class Serviceability {
2158
1709
  return response;
2159
1710
  }
2160
1711
 
2161
- /**
2162
- * @param {ServiceabilityPlatformValidator.GetZonesParam} arg - Arg object
2163
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2164
- * @param {import("../PlatformAPIClient").Options} - Options
2165
- * @returns {Promise<ServiceabilityPlatformModel.ListViewResult>} - Success response
2166
- * @name getZones
2167
- * @summary: Get zones
2168
- * @description: Retrieves a list of delivery zones. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getZones/).
2169
- */
2170
- async getZones(
2171
- {
2172
- pageNo,
2173
- pageSize,
2174
- isActive,
2175
- channelId,
2176
- q,
2177
- countryIsoCode,
2178
- state,
2179
- city,
2180
- pincode,
2181
- sector,
2182
- requestHeaders,
2183
- } = { requestHeaders: {} },
2184
- { responseHeaders } = { responseHeaders: false }
2185
- ) {
2186
- const { error } = ServiceabilityPlatformValidator.getZones().validate(
2187
- {
2188
- pageNo,
2189
- pageSize,
2190
- isActive,
2191
- channelId,
2192
- q,
2193
- countryIsoCode,
2194
- state,
2195
- city,
2196
- pincode,
2197
- sector,
2198
- },
2199
- { abortEarly: false, allowUnknown: true }
2200
- );
2201
- if (error) {
2202
- return Promise.reject(new FDKClientValidationError(error));
2203
- }
2204
-
2205
- // Showing warrnings if extra unknown parameters are found
2206
- const {
2207
- error: warrning,
2208
- } = ServiceabilityPlatformValidator.getZones().validate(
2209
- {
2210
- pageNo,
2211
- pageSize,
2212
- isActive,
2213
- channelId,
2214
- q,
2215
- countryIsoCode,
2216
- state,
2217
- city,
2218
- pincode,
2219
- sector,
2220
- },
2221
- { abortEarly: false, allowUnknown: false }
2222
- );
2223
- if (warrning) {
2224
- Logger({
2225
- level: "WARN",
2226
- message: `Parameter Validation warrnings for platform > Serviceability > getZones \n ${warrning}`,
2227
- });
2228
- }
2229
-
2230
- const query_params = {};
2231
- query_params["page_no"] = pageNo;
2232
- query_params["page_size"] = pageSize;
2233
- query_params["is_active"] = isActive;
2234
- query_params["channel_id"] = channelId;
2235
- query_params["q"] = q;
2236
- query_params["country_iso_code"] = countryIsoCode;
2237
- query_params["state"] = state;
2238
- query_params["city"] = city;
2239
- query_params["pincode"] = pincode;
2240
- query_params["sector"] = sector;
2241
-
2242
- const xHeaders = {};
2243
-
2244
- const response = await PlatformAPIClient.execute(
2245
- this.config,
2246
- "get",
2247
- `/service/platform/logistics/v2.0/company/${this.config.companyId}/zones`,
2248
- query_params,
2249
- undefined,
2250
- { ...xHeaders, ...requestHeaders },
2251
- { responseHeaders }
2252
- );
2253
-
2254
- let responseData = response;
2255
- if (responseHeaders) {
2256
- responseData = response[0];
2257
- }
2258
-
2259
- const {
2260
- error: res_error,
2261
- } = ServiceabilityPlatformModel.ListViewResult().validate(responseData, {
2262
- abortEarly: false,
2263
- allowUnknown: true,
2264
- });
2265
-
2266
- if (res_error) {
2267
- if (this.config.options.strictResponseCheck === true) {
2268
- return Promise.reject(new FDKResponseValidationError(res_error));
2269
- } else {
2270
- Logger({
2271
- level: "WARN",
2272
- message: `Response Validation Warnings for platform > Serviceability > getZones \n ${res_error}`,
2273
- });
2274
- }
2275
- }
2276
-
2277
- return response;
2278
- }
2279
-
2280
- /**
2281
- * @param {ServiceabilityPlatformValidator.SampleFileServiceabilityParam} arg
2282
- * - Arg object
2283
- *
2284
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2285
- * @param {import("../PlatformAPIClient").Options} - Options
2286
- * @returns {Promise<ServiceabilityPlatformModel.BulkRegionServiceabilityTatResultItemData>}
2287
- * - Success response
2288
- *
2289
- * @name sampleFileServiceability
2290
- * @summary: Sample File Download
2291
- * @description: Sample File Download - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/sampleFileServiceability/).
2292
- */
2293
- async sampleFileServiceability(
2294
- { body, requestHeaders } = { requestHeaders: {} },
2295
- { responseHeaders } = { responseHeaders: false }
2296
- ) {
2297
- const {
2298
- error,
2299
- } = ServiceabilityPlatformValidator.sampleFileServiceability().validate(
2300
- {
2301
- body,
2302
- },
2303
- { abortEarly: false, allowUnknown: true }
2304
- );
2305
- if (error) {
2306
- return Promise.reject(new FDKClientValidationError(error));
2307
- }
2308
-
2309
- // Showing warrnings if extra unknown parameters are found
2310
- const {
2311
- error: warrning,
2312
- } = ServiceabilityPlatformValidator.sampleFileServiceability().validate(
2313
- {
2314
- body,
2315
- },
2316
- { abortEarly: false, allowUnknown: false }
2317
- );
2318
- if (warrning) {
2319
- Logger({
2320
- level: "WARN",
2321
- message: `Parameter Validation warrnings for platform > Serviceability > sampleFileServiceability \n ${warrning}`,
2322
- });
2323
- }
2324
-
2325
- const query_params = {};
2326
-
2327
- const xHeaders = {};
2328
-
2329
- const response = await PlatformAPIClient.execute(
2330
- this.config,
2331
- "post",
2332
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/localities/bulk-sample`,
2333
- query_params,
2334
- body,
2335
- { ...xHeaders, ...requestHeaders },
2336
- { responseHeaders }
2337
- );
2338
-
2339
- let responseData = response;
2340
- if (responseHeaders) {
2341
- responseData = response[0];
2342
- }
2343
-
2344
- const {
2345
- error: res_error,
2346
- } = ServiceabilityPlatformModel.BulkRegionServiceabilityTatResultItemData().validate(
2347
- responseData,
2348
- { abortEarly: false, allowUnknown: true }
2349
- );
2350
-
2351
- if (res_error) {
2352
- if (this.config.options.strictResponseCheck === true) {
2353
- return Promise.reject(new FDKResponseValidationError(res_error));
2354
- } else {
2355
- Logger({
2356
- level: "WARN",
2357
- message: `Response Validation Warnings for platform > Serviceability > sampleFileServiceability \n ${res_error}`,
2358
- });
2359
- }
2360
- }
2361
-
2362
- return response;
2363
- }
2364
-
2365
1712
  /**
2366
1713
  * @param {ServiceabilityPlatformValidator.UpdateCompanyConfigurationParam} arg
2367
1714
  * - Arg object
@@ -2531,95 +1878,6 @@ class Serviceability {
2531
1878
  return response;
2532
1879
  }
2533
1880
 
2534
- /**
2535
- * @param {ServiceabilityPlatformValidator.UpdateCourierPartnerSchemeParam} arg
2536
- * - Arg object
2537
- *
2538
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2539
- * @param {import("../PlatformAPIClient").Options} - Options
2540
- * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerV2SchemeModel>}
2541
- * - Success response
2542
- *
2543
- * @name updateCourierPartnerScheme
2544
- * @summary: Update Scheme for courier partner extension
2545
- * @description: Update Scheme for courier partner extension - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateCourierPartnerScheme/).
2546
- */
2547
- async updateCourierPartnerScheme(
2548
- { schemeId, body, requestHeaders } = { requestHeaders: {} },
2549
- { responseHeaders } = { responseHeaders: false }
2550
- ) {
2551
- const {
2552
- error,
2553
- } = ServiceabilityPlatformValidator.updateCourierPartnerScheme().validate(
2554
- {
2555
- schemeId,
2556
-
2557
- body,
2558
- },
2559
- { abortEarly: false, allowUnknown: true }
2560
- );
2561
- if (error) {
2562
- return Promise.reject(new FDKClientValidationError(error));
2563
- }
2564
-
2565
- // Showing warrnings if extra unknown parameters are found
2566
- const {
2567
- error: warrning,
2568
- } = ServiceabilityPlatformValidator.updateCourierPartnerScheme().validate(
2569
- {
2570
- schemeId,
2571
-
2572
- body,
2573
- },
2574
- { abortEarly: false, allowUnknown: false }
2575
- );
2576
- if (warrning) {
2577
- Logger({
2578
- level: "WARN",
2579
- message: `Parameter Validation warrnings for platform > Serviceability > updateCourierPartnerScheme \n ${warrning}`,
2580
- });
2581
- }
2582
-
2583
- const query_params = {};
2584
-
2585
- const xHeaders = {};
2586
-
2587
- const response = await PlatformAPIClient.execute(
2588
- this.config,
2589
- "put",
2590
- `/service/platform/logistics/v2.0/company/${this.config.companyId}/courier-partner/scheme/${schemeId}`,
2591
- query_params,
2592
- body,
2593
- { ...xHeaders, ...requestHeaders },
2594
- { responseHeaders }
2595
- );
2596
-
2597
- let responseData = response;
2598
- if (responseHeaders) {
2599
- responseData = response[0];
2600
- }
2601
-
2602
- const {
2603
- error: res_error,
2604
- } = ServiceabilityPlatformModel.CourierPartnerV2SchemeModel().validate(
2605
- responseData,
2606
- { abortEarly: false, allowUnknown: true }
2607
- );
2608
-
2609
- if (res_error) {
2610
- if (this.config.options.strictResponseCheck === true) {
2611
- return Promise.reject(new FDKResponseValidationError(res_error));
2612
- } else {
2613
- Logger({
2614
- level: "WARN",
2615
- message: `Response Validation Warnings for platform > Serviceability > updateCourierPartnerScheme \n ${res_error}`,
2616
- });
2617
- }
2618
- }
2619
-
2620
- return response;
2621
- }
2622
-
2623
1881
  /**
2624
1882
  * @param {ServiceabilityPlatformValidator.UpdatePackageMaterialRuleParam} arg
2625
1883
  * - Arg object