From 4fcb749cc15320fecb14410dec95f8ebef2ab32e Mon Sep 17 00:00:00 2001 From: Jigar Dafda Date: Mon, 9 Oct 2023 12:35:17 +0000 Subject: [PATCH] [Auto Generated] 1.3.4 --- CHANGELOG.md | 2726 ++--------------- README.md | 2 +- dist/application.js | 2 +- documentation/application/CATALOG.md | 22 + documentation/application/FILESTORAGE.md | 111 +- documentation/application/USER.md | 426 +++ documentation/partner/FILESTORAGE.md | 541 ++++ documentation/partner/README.md | 2 + documentation/platform/CONTENT.md | 89 +- documentation/platform/FILESTORAGE.md | 1967 +++++++----- documentation/platform/ORDER.md | 10 +- documentation/platform/PAYMENT.md | 317 ++ documentation/platform/USER.md | 96 + package-lock.json | 16 +- package.json | 2 +- .../Catalog/CatalogApplicationModel.d.ts | 19 +- .../Catalog/CatalogApplicationModel.js | 20 + .../FileStorageApplicationClient.js | 6 +- .../FileStorageApplicationModel.d.ts | 32 +- .../FileStorageApplicationModel.js | 28 +- .../User/UserApplicationClient.d.ts | 56 + sdk/application/User/UserApplicationClient.js | 385 +++ .../User/UserApplicationModel.d.ts | 94 +- sdk/application/User/UserApplicationModel.js | 110 + .../User/UserApplicationValidator.d.ts | 67 +- .../User/UserApplicationValidator.js | 68 + .../FileStorage/FileStoragePartnerClient.d.ts | 96 + .../FileStorage/FileStoragePartnerClient.js | 177 ++ .../FileStorage/FileStoragePartnerModel.d.ts | 139 + .../FileStorage/FileStoragePartnerModel.js | 158 + .../FileStoragePartnerValidator.d.ts | 6 + .../FileStoragePartnerValidator.js | 33 + sdk/partner/PartnerClient.d.ts | 2 + sdk/partner/PartnerClient.js | 3 + sdk/partner/index.d.ts | 1 + sdk/partner/index.js | 2 + .../ContentPlatformApplicationClient.d.ts | 20 +- .../ContentPlatformApplicationClient.js | 90 +- .../ContentPlatformApplicationValidator.d.ts | 20 +- .../ContentPlatformApplicationValidator.js | 16 +- .../FileStoragePlatformApplicationClient.d.ts | 64 +- .../FileStoragePlatformApplicationClient.js | 201 +- ...leStoragePlatformApplicationValidator.d.ts | 33 +- ...FileStoragePlatformApplicationValidator.js | 34 +- .../FileStoragePlatformClient.d.ts | 8 +- .../FileStorage/FileStoragePlatformClient.js | 12 +- .../FileStorage/FileStoragePlatformModel.d.ts | 982 +++++- .../FileStorage/FileStoragePlatformModel.js | 1078 ++++++- sdk/platform/Order/OrderPlatformClient.d.ts | 4 +- sdk/platform/Order/OrderPlatformClient.js | 2 +- sdk/platform/Order/OrderPlatformModel.d.ts | 12 +- sdk/platform/Order/OrderPlatformModel.js | 12 +- .../Order/OrderPlatformValidator.d.ts | 8 +- sdk/platform/Order/OrderPlatformValidator.js | 8 +- .../PaymentPlatformApplicationClient.d.ts | 42 + .../PaymentPlatformApplicationClient.js | 241 ++ .../PaymentPlatformApplicationValidator.d.ts | 42 +- .../PaymentPlatformApplicationValidator.js | 40 + .../Payment/PaymentPlatformModel.d.ts | 73 +- sdk/platform/Payment/PaymentPlatformModel.js | 54 + .../User/UserPlatformApplicationClient.d.ts | 12 + .../User/UserPlatformApplicationClient.js | 79 + .../UserPlatformApplicationValidator.d.ts | 16 +- .../User/UserPlatformApplicationValidator.js | 14 + sdk/platform/User/UserPlatformModel.d.ts | 64 +- sdk/platform/User/UserPlatformModel.js | 44 + tests/common/schema/url-action.json | 7 +- 67 files changed, 7336 insertions(+), 3827 deletions(-) create mode 100644 documentation/partner/FILESTORAGE.md create mode 100644 sdk/partner/FileStorage/FileStoragePartnerClient.d.ts create mode 100644 sdk/partner/FileStorage/FileStoragePartnerClient.js create mode 100644 sdk/partner/FileStorage/FileStoragePartnerModel.d.ts create mode 100644 sdk/partner/FileStorage/FileStoragePartnerModel.js create mode 100644 sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts create mode 100644 sdk/partner/FileStorage/FileStoragePartnerValidator.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 9160674bf..2dcd83dd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2675 +1,467 @@ -# CHANGE LOG (1.3.3) - fp-v1.8.2 +# CHANGE LOG (1.3.4) - fp-v1.8.3 ## Application Client -### Cart +### Catalog -#### checkoutCart +#### getProductDetailBySlug - ##### What's New - - [Added] property `payment_extra_identifiers` of schema `CartCheckoutDetailRequest` in request body + - [Added] property `department` of schema `ProductDetail` in response with status code 200 -#### checkoutCartV2 +#### getProductComparisonBySlugs - ##### What's New - - [Added] property `payment_methods[].payment_extra_identifiers` of schema `PaymentMethod` in request body + - [Added] property `items[].department` of schema `ProductDetail` in response with status code 200 -### Theme +#### getSimilarComparisonProductBySlug +- ##### What's New + - [Added] property `items[].department` of schema `ProductDetail` in response with status code 200 -#### getAppliedTheme +#### getComparedFrequentlyProductBySlug -- ##### What's Deprecated - - [Breaking] [Deleted] property `config.list[].global_config.statics` of schema `GlobalConfig` in response with status code 200 - - [Breaking] [Deleted] property `config.list[].global_config.auth` of schema `GlobalConfig` in response with status code 200 - - [Breaking] [Deleted] property `config.list[].global_config.palette` of schema `GlobalConfig` in response with status code 200 - - [Breaking] [Deleted] property `config.list[].custom` of schema `ThemeConfiguration` in response with status code 200 +- ##### What's New + - [Added] property `similars.items[].department` of schema `ProductDetail` in response with status code 200 -#### getThemeForPreview +### FileStorage -- ##### What's Deprecated - - [Breaking] [Deleted] property `config.list[].global_config.statics` of schema `GlobalConfig` in response with status code 200 - - [Breaking] [Deleted] property `config.list[].global_config.auth` of schema `GlobalConfig` in response with status code 200 - - [Breaking] [Deleted] property `config.list[].global_config.palette` of schema `GlobalConfig` in response with status code 200 - - [Breaking] [Deleted] property `config.list[].custom` of schema `ThemeConfiguration` in response with status code 200 -## Platform Client +#### startUpload +- ##### What's New + - [Breaking] [Added] properties `params.subpath` in request body + - [Added] property `status` of schema `` in response with status code 400 + - [Added] property `valid_namespaces` of schema `` in response with status code 400 +- ##### What's Changed + - [Changed] Path From `/service/application/assets/v1.0/namespaces/{namespace}/upload/start/` To `/service/application/assets/v1.0/namespaces/{namespace}/upload/start` -### Cart +#### completeUpload +- ##### What's New + - [Added] property `created_by` of schema `CompleteResponse` in response with status code 200 + - [Added] property `_message` of schema `` in response with status code 400 + - [Added] property `name` of schema `` in response with status code 400 + - [Added] property `errors` of schema `` in response with status code 400 -#### getCoupons +- ##### What's Changed + - [Changed] Path From `/service/application/assets/v1.0/namespaces/{namespace}/upload/complete/` To `/service/application/assets/v1.0/namespaces/{namespace}/upload/complete` -- ##### What's New - - [Added] property `items[]` of schema `CouponsResponse` in response with status code 200 + +#### signUrls - ##### What's Deprecated - - [Deleted] properties `items.date_meta`, `items.ownership`, `items.author`, `items.state`, `items.restrictions`, `items.validation`, `items.action`, `items.tags`, `items._schedule`, `items.rule`, `items.display_meta`, `items.code`, `items.type_slug`, `items.identifiers`, `items.validity`, `items.rule_definition` in response with status code 200 - - [Deleted] Required status from properties `items.code`, `items.display_meta`, `items.identifiers`, `items.ownership`, `items.rule`, `items.rule_definition`, `items.type_slug`, `items.validity` in response with status code 200 + - [Breaking] [Deleted] Response with status 400 - ##### What's Changed - - [Breaking] [Changed] Type from `object` to `array` of property `items` of schema `CouponAdd` in response with status code 200 + - [Changed] Path From `/service/application/assets/v1.0/sign-urls/` To `/service/application/assets/v1.0/sign-urls` -#### createCoupon +### User -- ##### What's New - - [Added] property `_id` of schema `CouponAdd` in request body -#### platformCheckoutCart +#### resetForgotPassword - ##### What's New - - [Added] property `payment_extra_identifiers` of schema `PlatformCartCheckoutDetailRequest` in request body + - [Added] method `resetForgotPassword` -#### platformCheckoutCartV2 + +#### sendForgotOTPOnMobile - ##### What's New - - [Added] property `payment_methods[].payment_extra_identifiers` of schema `PaymentMethod` in request body + - [Added] method `sendForgotOTPOnMobile` -#### selectPaymentModeV2 + +#### verifyMobileForgotOTP - ##### What's New - - [Added] property `payment_methods[].payment_extra_identifiers` of schema `PaymentMethod` in request body + - [Added] method `verifyMobileForgotOTP` -### Catalog + +#### sendForgotOTPOnEmail + +- ##### What's New + - [Added] method `sendForgotOTPOnEmail` -#### updateAppProduct +#### verifyEmailForgotOTP - ##### What's New - - [Breaking] [Added] Type `string` to property `_custom_meta[].key` of schema `MetaFields` in request body - - [Breaking] [Added] Type `string` to property `_custom_meta[].value` of schema `MetaFields` in request body + - [Added] method `verifyEmailForgotOTP` -#### updateDepartment -- ##### What's New - - [Breaking] [Added] Type `string` to property `synonyms[]` of schema `DepartmentModel` in response with status code 200 - - [Breaking] [Added] Type `string` to property `_cls` of schema `DepartmentModel` in response with status code 200 - - [Breaking] [Added] Type `string` to property `logo` of schema `DepartmentModel` in response with status code 200 - - [Breaking] [Added] Type `string` to property `slug` of schema `DepartmentModel` in response with status code 200 - - [Breaking] [Added] Type `string` to property `_id` of schema `DepartmentModel` in response with status code 200 - - [Breaking] [Added] Type `string` to property `name` of schema `DepartmentModel` in response with status code 200 +## Partner Client +- [Added] FileStorage class in partner client -#### allSizes -- ##### What's New - - [Breaking] [Added] Type `string` to property `all_sizes[].size` of schema `AllSizes` in response with status code 200 - - [Breaking] [Added] Type `string` to property `all_sizes[].item_weight_unit_of_measure` of schema `AllSizes` in response with status code 200 +## Platform Client -#### createBulkProductUploadJob -- ##### What's New - - [Breaking] [Added] Type `string` to property `modified_by` of schema `BulkJob` in request body +### Content -- ##### What's Changed - - [Breaking] [Changed] Default value from `2023-07-11T00:42:55.835166` to `2023-08-16T12:07:13.817348` of property `modified_on` of schema `BulkJob` in request body - - [Breaking] [Changed] Default value from `2023-07-11T00:42:55.835166` to `2023-08-16T12:07:13.817348` of property `modified_on` of schema `BulkResponse` in response with status code 200 -#### uploadBulkProducts +#### deleteAllInjectableTags -- ##### What's New - - [Breaking] [Added] Type `string` to property `modified_by` of schema `BulkJob` in request body +- ##### What's Deprecated + - [Breaking] [Deleted] method `deleteAllInjectableTags` -- ##### What's Changed - - [Breaking] [Changed] Default value from `2023-07-11T00:42:55.835166` to `2023-08-16T12:07:13.817348` of property `modified_on` of schema `BulkJob` in request body - - [Breaking] [Changed] Default value from `2023-07-11T00:42:55.835166` to `2023-08-16T12:07:13.817348` of property `modified_on` of schema `BulkResponse` in response with status code 200 -#### addInventory +#### getInjectableTags - ##### What's New - - [Breaking] [Added] Type `string` to property `sizes[].size` of schema `InvSize` in request body - - [Breaking] [Added] Type `string` to property `sizes[].identifiers[].gtin_value` of schema `GTIN` in request body + - [Added] `query` parameter `all` (type: `boolean`) + + + +### FileStorage -#### createBulkInventoryJob + +#### startUpload - ##### What's New - - [Breaking] [Added] Type `string` to property `modified_by` of schema `BulkJob` in request body + - [Breaking] [Added] properties `params.subpath` in request body + - [Added] property `status` of schema `` in response with status code 400 + - [Added] property `valid_namespaces` of schema `` in response with status code 400 -- ##### What's Changed - - [Breaking] [Changed] Default value from `2023-07-11T00:42:55.835166` to `2023-08-16T12:07:13.817348` of property `modified_on` of schema `BulkJob` in request body - - [Breaking] [Changed] Default value from `2023-07-11T00:42:55.835166` to `2023-08-16T12:07:13.817348` of property `modified_on` of schema `BulkResponse` in response with status code 200 + +#### completeUpload + +- ##### What's New + - [Breaking] [Added] Required status to property `company_id` in response with status code 200 + - [Added] property `company_id` of schema `CompleteResponse` in response with status code 200 + - [Added] property `created_by` of schema `CompleteResponse` in response with status code 200 + - [Added] property `_message` of schema `` in response with status code 400 + - [Added] property `name` of schema `` in response with status code 400 + - [Added] property `errors` of schema `` in response with status code 400 -#### updateHsnCode +#### appStartUpload - ##### What's New - - [Added] Possible values `0.25` to property `tax2` of schema `HsnUpsert` in request body - - [Added] Possible values `1.5` to property `tax2` of schema `HsnUpsert` in request body - - [Added] Possible values `2.5` to property `tax2` of schema `HsnUpsert` in request body - - [Added] Possible values `0.25` to property `tax1` of schema `HsnUpsert` in request body - - [Added] Possible values `1.5` to property `tax1` of schema `HsnUpsert` in request body - - [Added] Possible values `2.5` to property `tax1` of schema `HsnUpsert` in request body + - [Breaking] [Added] properties `params.subpath` in request body + - [Added] property `status` of schema `` in response with status code 400 + - [Added] property `valid_namespaces` of schema `` in response with status code 400 -#### bulkHsnCode +#### appCompleteUpload - ##### What's New - - [Added] Possible values `0.25` to property `data[].tax2` of schema `HsnUpsert` in request body - - [Added] Possible values `1.5` to property `data[].tax2` of schema `HsnUpsert` in request body - - [Added] Possible values `2.5` to property `data[].tax2` of schema `HsnUpsert` in request body - - [Added] Possible values `0.25` to property `data[].tax1` of schema `HsnUpsert` in request body - - [Added] Possible values `1.5` to property `data[].tax1` of schema `HsnUpsert` in request body - - [Added] Possible values `2.5` to property `data[].tax1` of schema `HsnUpsert` in request body + - [Breaking] [Added] Required status to property `company_id` in response with status code 200 + - [Added] property `company_id` of schema `CompleteResponse` in response with status code 200 + - [Added] property `created_by` of schema `CompleteResponse` in response with status code 200 + - [Added] property `_message` of schema `` in response with status code 400 + - [Added] property `name` of schema `` in response with status code 400 + - [Added] property `errors` of schema `` in response with status code 400 -#### getAppProducts +#### getSignUrls - ##### What's Deprecated - - [Deleted] properties `items[].images[].aspect_ratio`, `items[].images[].secure_url`, `items[].images[].url`, `items[].images[].aspect_ratio_f` in response with status code 200 - -- ##### What's Changed - - [Breaking] [Changed] Type from `object` to `string` of property `items[].images[]` of schema `Image` in response with status code 200 + - [Breaking] [Deleted] Response with status 500 -#### deleteSearchConfiguration +#### copyFiles - ##### What's New - - [Added] method `deleteSearchConfiguration` + - [Added] property `tracking_url` of schema `` in response with status code 200 + - [Added] property `task` of schema `` in response with status code 200 + - [Added] property `message` of schema `` in response with status code 400 +- ##### What's Deprecated + - [Deleted] Required status from property `urls` in request body + - [Deleted] Required status from property `status` in response with status code 200 + - [Breaking] [Deleted] property `status` of schema `BulkUploadSyncMode` in response with status code 200 + - [Breaking] [Deleted] property `files` of schema `BulkUploadSyncMode` in response with status code 200 + - [Deleted] Required status from property `status` in response with status code 400 + - [Breaking] [Deleted] property `status` of schema `BulkUploadFailResponse` in response with status code 400 -#### getSearchConfiguration +#### appCopyFiles - ##### What's New - - [Added] method `getSearchConfiguration` + - [Added] property `tracking_url` of schema `` in response with status code 200 + - [Added] property `task` of schema `` in response with status code 200 + - [Added] property `message` of schema `` in response with status code 400 +- ##### What's Deprecated + - [Deleted] Required status from property `urls` in request body + - [Deleted] Required status from property `status` in response with status code 200 + - [Breaking] [Deleted] property `status` of schema `BulkUploadSyncMode` in response with status code 200 + - [Breaking] [Deleted] property `files` of schema `BulkUploadSyncMode` in response with status code 200 + - [Deleted] Required status from property `status` in response with status code 400 + - [Breaking] [Deleted] property `status` of schema `BulkUploadFailResponse` in response with status code 400 -#### createSearchConfiguration +#### browse - ##### What's New - - [Added] method `createSearchConfiguration` + - [Added] property `items[].size` of schema `` in response with status code 200 + - [Added] property `items[].created_by` of schema `` in response with status code 200 + - [Added] property `items[].company_id` of schema `` in response with status code 200 + - [Added] property `items[].bucket_key` of schema `` in response with status code 200 + - [Added] property `items[].createdAt` of schema `` in response with status code 200 + - [Added] property `items[].updatedAt` of schema `` in response with status code 200 + - [Added] property `items[].__v` of schema `` in response with status code 200 +- ##### What's Deprecated + - [Deleted] Required status from properties `items[].success`, `items[].tags`, `items[]._id`, `items[].file_name`, `items[].namespace`, `items[].content_type`, `items[].file_path`, `items[].upload`, `items[].cdn`, `items[].created_on`, `items[].modified_on` in response with status code 200 + - [Deleted] Required status from properties `items[].upload.expiry`, `items[].upload.url` in response with status code 200 + - [Deleted] Required status from properties `items[].cdn.url`, `items[].cdn.absolute_url`, `items[].cdn.relative_url` in response with status code 200 + - [Breaking] [Deleted] property `items[].cdn.absolute_url` of schema `CDN` in response with status code 200 + - [Breaking] [Deleted] property `items[].cdn.relative_url` of schema `CDN` in response with status code 200 + - [Breaking] [Deleted] property `items[].created_on` of schema `DbRecord` in response with status code 200 + - [Breaking] [Deleted] property `items[].modified_on` of schema `DbRecord` in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from `integer` to `number` of property `items[].upload.expiry` of schema `Upload` in response with status code 200 -#### updateSearchConfiguration +#### appbrowse - ##### What's New - - [Added] method `updateSearchConfiguration` + - [Added] property `items[].size` of schema `` in response with status code 200 + - [Added] property `items[].created_by` of schema `` in response with status code 200 + - [Added] property `items[].company_id` of schema `` in response with status code 200 + - [Added] property `items[].bucket_key` of schema `` in response with status code 200 + - [Added] property `items[].createdAt` of schema `` in response with status code 200 + - [Added] property `items[].updatedAt` of schema `` in response with status code 200 + - [Added] property `items[].__v` of schema `` in response with status code 200 +- ##### What's Deprecated + - [Deleted] Required status from properties `items[].success`, `items[].tags`, `items[]._id`, `items[].file_name`, `items[].namespace`, `items[].content_type`, `items[].file_path`, `items[].upload`, `items[].cdn`, `items[].created_on`, `items[].modified_on` in response with status code 200 + - [Deleted] Required status from properties `items[].upload.expiry`, `items[].upload.url` in response with status code 200 + - [Deleted] Required status from properties `items[].cdn.url`, `items[].cdn.absolute_url`, `items[].cdn.relative_url` in response with status code 200 + - [Breaking] [Deleted] property `items[].cdn.absolute_url` of schema `CDN` in response with status code 200 + - [Breaking] [Deleted] property `items[].cdn.relative_url` of schema `CDN` in response with status code 200 + - [Breaking] [Deleted] property `items[].created_on` of schema `DbRecord` in response with status code 200 + - [Breaking] [Deleted] property `items[].modified_on` of schema `DbRecord` in response with status code 200 +- ##### What's Changed + - [Breaking] [Changed] Type from `integer` to `number` of property `items[].upload.expiry` of schema `Upload` in response with status code 200 -### Configuration +#### proxy +- ##### What's New + - [Added] Content (application/json) in Response 200 -#### getOrderingStoreCookie +- ##### What's Deprecated + - [Breaking] [Deleted] Content (application/octet-stream) in Response 200 + + +#### getPdfTypes - ##### What's New - - [Added] method `getOrderingStoreCookie` + - [Breaking] [Added] Required status to properties `data`, `success` in response with status code 200 + - [Breaking] [Added] properties `data`, `success` in response with status code 200 +- ##### What's Deprecated + - [Breaking] [Deleted] property `[]` of schema `` in response with status code 200 + - [Breaking] [Deleted] Response with status 500 +- ##### What's Changed + - [Breaking] [Changed] Type from `array` to `object` of property `` of schema `` in response with status code 200 -#### removeOrderingStoreCookie + +#### getDefaultPdfData - ##### What's New - - [Added] method `removeOrderingStoreCookie` + - [Breaking] [Added] Required status to properties `data`, `success` in response with status code 200 + - [Breaking] [Added] properties `data`, `success` in response with status code 200 +- ##### What's Deprecated + - [Breaking] [Deleted] property `[]` of schema `` in response with status code 200 + - [Breaking] [Deleted] Response with status 500 +- ##### What's Changed + - [Breaking] [Changed] Type from `array` to `object` of property `` of schema `` in response with status code 200 -### Order +#### getDefaultHtmlTemplate +- ##### What's New + - [Breaking] [Added] properties `data`, `success` in response with status code 200 -#### invalidateShipmentCache +- ##### What's Deprecated + - [Breaking] [Deleted] property `[]` of schema `` in response with status code 200 + - [Breaking] [Deleted] Response with status 500 -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 5XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 5XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 5XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 5XX +- ##### What's Changed + - [Breaking] [Changed] Type from `array` to `object` of property `` of schema `` in response with status code 200 -#### reassignLocation +#### saveHtmlTemplate - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX + - [Added] Response with status 201 + - [Added] property `success` of schema `` in response with status code 500 +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 200 + - [Deleted] Required status from property `message` in response with status code 500 -#### updateShipmentLock +- ##### What's Changed + - [Changed] http method type from `put` To `post` -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX +#### previewTemplate -#### getAnnouncements +- ##### What's Deprecated + - [Breaking] [Deleted] method `previewTemplate` -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX -#### updateAddress +#### getDefaultPdfTemplate - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX + - [Breaking] [Added] properties `data`, `success` in response with status code 200 +- ##### What's Deprecated + - [Breaking] [Deleted] property `[]` of schema `` in response with status code 200 + - [Breaking] [Deleted] Response with status 500 + +- ##### What's Changed + - [Breaking] [Changed] Type from `array` to `object` of property `` of schema `` in response with status code 200 -#### updateShipmentStatus + +#### updateHtmlTemplate - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `statuses[].shipments[].status` of schema `ShipmentsResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `statuses[].shipments[].final_state` of schema `ShipmentsResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `statuses[].shipments[].identifier` of schema `ShipmentsResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `statuses[].shipments[].stack_trace` of schema `ShipmentsResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `statuses[].shipments[].code` of schema `ShipmentsResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `statuses[].shipments[].meta` of schema `ShipmentsResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `statuses[].shipments[].message` of schema `ShipmentsResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `statuses[].shipments[].exception` of schema `ShipmentsResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX + - [Added] method `updateHtmlTemplate` -#### processManifest + +#### generatePaymentReceipt - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `order_info.shipment.shipment_data.location_details.articles[].status` of schema `ArticleDetails` in request body - - [Breaking] [Added] Possible nullable value `true` to property `order_info.shipment.shipment_data.shipment[].articles[].status` of schema `ArticleDetails` in request body - - [Breaking] [Added] Possible nullable value `true` to property `order_info.shipment.shipment_data.shipment[].lock_status` of schema `ShipmentDetails` in request body - - [Breaking] [Added] Possible nullable value `true` to property `order_info.shipment.shipment_data.shipment[].lock_message` of schema `ShipmentDetails` in request body - - [Breaking] [Added] Possible nullable value `true` to property `order_info.shipment.shipment_data.shipment[].action_to_status` of schema `ShipmentDetails` in request body - - [Added] property `order_config.affiliate.config.app_company_id` of schema `AffiliateConfig` in request body - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX + - [Added] method `generatePaymentReceipt` -#### dispatchManifest -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX +### Order -#### getRoleBasedActions + +#### getShipments - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 5XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 5XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 5XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 5XX + - [Added] property `items[].meta.is_self_ship` of schema `ShipmentItemMeta` in response with status code 200 -#### getShipmentHistory +#### getShipmentById - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 5XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 5XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 5XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 5XX + - [Added] property `shipments[].affiliate_details.shipment_meta.tracking_url` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `shipments[].affiliate_details.shipment_meta.estimated_delivery_date` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `shipments[].affiliate_details.shipment_meta.is_self_ship` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `shipments[].meta.tracking_url` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `shipments[].meta.estimated_delivery_date` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `shipments[].meta.is_self_ship` of schema `ShipmentMeta` in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Required status from property `shipments[].bags[].brand.company` in response with status code 200 -#### updatePackagingDimensions +#### getOrderById - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX + - [Added] property `shipments[].affiliate_details.shipment_meta.tracking_url` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `shipments[].affiliate_details.shipment_meta.estimated_delivery_date` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `shipments[].affiliate_details.shipment_meta.is_self_ship` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `shipments[].meta.tracking_url` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `shipments[].meta.estimated_delivery_date` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `shipments[].meta.is_self_ship` of schema `ShipmentMeta` in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Required status from property `shipments[].bags[].brand.company` in response with status code 200 -#### uploadConsent +#### getOrders - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX + - [Added] property `items[].shipments[].affiliate_details.shipment_meta.tracking_url` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `items[].shipments[].affiliate_details.shipment_meta.estimated_delivery_date` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `items[].shipments[].affiliate_details.shipment_meta.is_self_ship` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `items[].shipments[].meta.tracking_url` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `items[].shipments[].meta.estimated_delivery_date` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `items[].shipments[].meta.is_self_ship` of schema `ShipmentMeta` in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Required status from property `items[].shipments[].bags[].brand.company` in response with status code 200 -#### fetchCreditBalanceDetail +#### getBagById - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX + - [Added] property `affiliate_details.shipment_meta.tracking_url` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `affiliate_details.shipment_meta.estimated_delivery_date` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `affiliate_details.shipment_meta.is_self_ship` of schema `ShipmentMeta` in response with status code 200 -#### fetchRefundModeConfig +#### getBags - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX + - [Added] property `items[].affiliate_details.shipment_meta.tracking_url` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `items[].affiliate_details.shipment_meta.estimated_delivery_date` of schema `ShipmentMeta` in response with status code 200 + - [Added] property `items[].affiliate_details.shipment_meta.is_self_ship` of schema `ShipmentMeta` in response with status code 200 -#### attachOrderUser +### Payment -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX -#### sendUserMobileOTP +#### getMerchantRefundPriority - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX - - -#### verifyMobileOTP + - [Added] method `getMerchantRefundPriority` -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX -#### eInvoiceRetry +#### createMerchantRefundPriority - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX + - [Added] method `createMerchantRefundPriority` -#### trackShipment + +#### updateMerchantRefundPriority - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX + - [Added] method `updateMerchantRefundPriority` -#### updateShipmentTracking -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX +### User -#### getShipments + +#### updateUserGroupPartially - ##### What's New - - [Added] `query` parameter `orderType` (type: `string`) + - [Added] method `updateUserGroupPartially` - - [Breaking] [Added] Possible nullable value `true` to property `total_count` of schema `ShipmentInternalPlatformViewResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ShipmentInternalPlatformViewResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ShipmentInternalPlatformViewResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].order_date` of schema `ShipmentItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipment_status.current_shipment_status` of schema `ShipmentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipment_status.shipment_status_id` of schema `ShipmentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipment_status.bag_list` of schema `ShipmentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipment_status.created_at` of schema `ShipmentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipment_status.shipment_id` of schema `ShipmentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipment_status.status_created_at` of schema `ShipmentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].user.uid` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].user.first_name` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].user.last_name` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].user.is_anonymous_user` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].user.avis_user_id` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].user.name` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.phone` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.address2` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.longitude` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.pincode` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.area` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.address_type` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.country` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.address_category` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.email` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.created_at` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.address1` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.landmark` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.updated_at` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.version` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.latitude` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.contact_person` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.state` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].delivery_address.city` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].channel.channel_shipment_id` of schema `ShipmentListingChannel` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].channel.is_affiliate` of schema `ShipmentListingChannel` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].channel.logo` of schema `ShipmentListingChannel` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].channel.name` of schema `ShipmentListingChannel` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].lock_status` of schema `ShipmentItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].payment_methods` of schema `ShipmentItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].display_name` of schema `ShipmentItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_type` of schema `BagUnit` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].gst.cgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].gst.igst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].gst.gst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].gst.hsn_code_id` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].gst.igst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].gst.is_default_hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].gst.sgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].gst.cgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].gst.gst_tag` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].gst.sgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].gst.hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].financial_breakup[].amount_paid_roundoff` of schema `FinancialBreakup` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].financial_breakup[].tax_collected_at_source` of schema `FinancialBreakup` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].financial_breakup[].identifiers.alu` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].financial_breakup[].identifiers.ean` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].financial_breakup[].identifiers.sku_code` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].financial_breakup[].identifiers.upc` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].financial_breakup[].identifiers.isbn` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_status[].store_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_status[].kafka_sync` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_status[].app_display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_status[].state_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_status[].state_type` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_status[].bsh_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_status[].created_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_status[].shipment_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_status[].updated_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_status[].bag_state_mapper.is_active` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_status[].bag_state_mapper.app_display_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_status[].bag_state_mapper.app_state_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_status[].bag_state_mapper.app_facing` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_status[].bag_state_mapper.notify_customer` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_status[].bag_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_status[].reasons` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].bag_status[].display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_operational_status.store_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_operational_status.kafka_sync` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_operational_status.app_display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_operational_status.state_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_operational_status.state_type` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_operational_status.bsh_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_operational_status.created_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_operational_status.shipment_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_operational_status.updated_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_operational_status.bag_state_mapper.is_active` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_operational_status.bag_state_mapper.app_display_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_operational_status.bag_state_mapper.app_state_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_operational_status.bag_state_mapper.app_facing` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_operational_status.bag_state_mapper.notify_customer` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_operational_status.bag_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_operational_status.reasons` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_operational_status.display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].article.dimensions.height` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].article.dimensions.width` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].article.dimensions.is_default` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].article.dimensions.unit` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].article.dimensions.length` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].article.code` of schema `Article` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].article.weight.is_default` of schema `Weight` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].article.weight.shipping` of schema `Weight` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].article.weight.unit` of schema `Weight` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].article.is_set` of schema `Article` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].brand.logo` of schema `ShipmentListingBrand` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].brand.created_on` of schema `ShipmentListingBrand` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].brand.name` of schema `ShipmentListingBrand` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].brand.logo_base64` of schema `ShipmentListingBrand` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].affiliate_bag_details.affiliate_meta.order_item_id` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].affiliate_bag_details.affiliate_meta.employee_discount` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].affiliate_bag_details.affiliate_meta.quantity` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].affiliate_bag_details.affiliate_meta.loyalty_discount` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].affiliate_bag_details.affiliate_meta.is_priority` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].affiliate_bag_details.employee_discount` of schema `AffiliateBagDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].affiliate_bag_details.loyalty_discount` of schema `AffiliateBagDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.id` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.attributes.currency` of schema `PlatformArticleAttributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.brand_id` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.slug_key` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.l3_category` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.l3_category_name` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.last_updated_at` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.name` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.l2_category` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.brand` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.image` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.code` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.l1_category` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.size` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.can_cancel` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.can_return` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.meta` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.department_id` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].item.images` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].reasons` of schema `BagUnit` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].can_return` of schema `BagUnit` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].display_name` of schema `BagUnit` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].can_cancel` of schema `BagUnit` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].size` of schema `BagUnit` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].line_number` of schema `BagUnit` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].meta` of schema `BagUnit` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.refund_credit` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.amount_paid_roundoff` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.price_effective` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.promotion_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.pm_price_split` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.refund_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.transfer_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.coupon_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.tax_collected_at_source` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.brand_calculated_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.delivery_charge` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.cashback` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.value_of_good` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.cashback_applied` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.cod_charges` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.price_marked` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.amount_paid` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.coupon_value` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.fynd_credits` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].prices.gift_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].dates.order_created` of schema `Dates` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_status.store_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_status.kafka_sync` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_status.app_display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_status.state_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_status.state_type` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_status.bsh_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_status.created_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_status.shipment_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_status.updated_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_status.bag_state_mapper.is_active` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_status.bag_state_mapper.app_display_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_status.bag_state_mapper.app_state_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_status.bag_state_mapper.app_facing` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_status.bag_state_mapper.notify_customer` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_status.bag_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_status.reasons` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].current_status.display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bags[].entity_type` of schema `BagUnit` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].fulfilling_store.phone` of schema `ShipmentItemFulFillingStore` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].fulfilling_store.pincode` of schema `ShipmentItemFulFillingStore` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].fulfilling_store.location_type` of schema `ShipmentItemFulFillingStore` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].fulfilling_store.store_email` of schema `ShipmentItemFulFillingStore` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].fulfilling_store.name` of schema `ShipmentItemFulFillingStore` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].fulfilling_store.state` of schema `ShipmentItemFulFillingStore` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].fulfilling_store.city` of schema `ShipmentItemFulFillingStore` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.same_store_available` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.is_international` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.formatted.max` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.formatted.min` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.debug_info` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.sla` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.shipment_chargeable_weight` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.pdf_media` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.tags` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.existing_dp_list` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.parent_dp_id` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.shipment_weight` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.dp_options` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.assign_dp_from_sb` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.shipping_zone` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.store_invoice_updated_date` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.activity_comment` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.shipment_tags[].slug` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.shipment_tags[].entity_type` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.shipment_tags[].display_text` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.external` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.ewaybill_info` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.lock_data.locked` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.lock_data.mto` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.lock_data.lock_message` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.shipment_volumetric_weight` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.packaging_name` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.timestamp.max` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.timestamp.min` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.weight` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.bag_weight` of schema `ShipmentItemMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].payment_mode` of schema `ShipmentItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].can_process` of schema `ShipmentItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.refund_credit` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.amount_paid_roundoff` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.price_effective` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.promotion_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.pm_price_split` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.refund_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.transfer_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.coupon_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.tax_collected_at_source` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.brand_calculated_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.delivery_charge` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.cashback` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.value_of_good` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.cashback_applied` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.cod_charges` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.price_marked` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.amount_paid` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.coupon_value` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.fynd_credits` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.gift_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_channnel` of schema `ShipmentItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipment_id` of schema `ShipmentItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].customer_note` of schema `ShipmentItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].total_bags` of schema `ShipmentItem` in response with status code 200 - - [Added] property `items[].mode_of_payment` of schema `ShipmentItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `lane` of schema `ShipmentInternalPlatformViewResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `page.type` of schema `Page` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `page.has_previous` of schema `Page` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `page.has_next` of schema `Page` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `page.total` of schema `Page` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `page.size` of schema `Page` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `page.current` of schema `Page` in response with status code 200 - - -#### getShipmentById - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ShipmentInfoResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].picked_date` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].tracking_list[].is_passed` of schema `TrackingList` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].tracking_list[].is_current` of schema `TrackingList` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].tracking_list[].time` of schema `TrackingList` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].invoice.invoice_url` of schema `InvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].invoice.updated_date` of schema `InvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].invoice.external_invoice_id` of schema `InvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].invoice.label_url` of schema `InvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].shipment_status` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.cgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.igst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.gst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.hsn_code_id` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.igst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.is_default_hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.sgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.cgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.gst_tag` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.sgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].delivery_slot` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].order.order_date` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].order.tax_details` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].order.cod_charges` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].order.source` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].order.affiliate_id` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].order.ordering_channel_logo` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].order.order_value` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].order.ordering_channel` of schema `OrderDetailsData` in response with status code 200 - - [Added] property `shipments[].order.meta` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].user.uid` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].user.first_name` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].user.last_name` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].user.is_anonymous_user` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].user.avis_user_id` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].user.name` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].enable_dp_tracking` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].custom_message` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].estimated_sla_time` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].can_update_dimension` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].shipment_images` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].delivery_details.area` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].delivery_details.address_type` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].delivery_details.email` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].delivery_details.address1` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].delivery_details.landmark` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].billing_details.area` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].billing_details.address_type` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].billing_details.email` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].billing_details.address1` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].billing_details.landmark` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].fulfilment_priority` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].shipment_details.articles[].status` of schema `ArticleDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].shipment_details.lock_status` of schema `ShipmentDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].shipment_details.lock_message` of schema `ShipmentDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].shipment_details.action_to_status` of schema `ShipmentDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].custom_meta` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].shipment_quantity` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].company_details.company_name` of schema `CompanyDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].company_details.address` of schema `CompanyDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].company_details.company_id` of schema `CompanyDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].company_details.company_gst` of schema `CompanyDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].company_details.company_contact.phone[].country_code` of schema `PhoneDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].company_details.company_contact.phone[].number` of schema `PhoneDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].company_details.company_contact.phone` of schema `ContactDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].company_details.company_contact.emails` of schema `ContactDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.phone` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.pincode` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.meta` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.address` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.id` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.code` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.store_name` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.country` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.contact_person` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.state` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.city` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].lock_status` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].platform_logo` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].user_agent` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].dp_details.pincode` of schema `DPDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].dp_details.country` of schema `DPDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].dp_details.gst_tag` of schema `DPDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].invoice_id` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].payment_methods` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].coupon` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.b2b_buyer_details.ajio_site_id` of schema `BuyerDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.formatted.max` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.formatted.min` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.debug_info.stormbreaker_uuid` of schema `DebugInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.return_awb_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.einvoice_info.credit_note` of schema `EinvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.einvoice_info.invoice` of schema `EinvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.return_affiliate_shipment_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.shipment_weight` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.dimension.height` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.dimension.width` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.dimension.is_default` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.dimension.unit` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.dimension.length` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.dp_options` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.assign_dp_from_sb` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.due_date` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.store_invoice_updated_date` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.forward_affiliate_shipment_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.return_store_node` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.shipment_tags[].slug` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.shipment_tags[].entity_type` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.shipment_tags[].display_text` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.external` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.awb_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.lock_data.locked` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.lock_data.mto` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.lock_data.lock_message` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.shipment_volumetric_weight` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.marketplace_store_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.return_details` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.dp_sort_key` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.packaging_name` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.timestamp.max` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.timestamp.min` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.auto_trigger_dp_assignment_acf` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.dp_name` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.po_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.forward_affiliate_order_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.return_affiliate_order_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.bag_weight` of schema `ShipmentMeta` in response with status code 200 - - [Added] property `shipments[].affiliate_details.shipment_meta.refund_to` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.affiliate_meta.order_item_id` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.affiliate_meta.employee_discount` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.affiliate_meta.quantity` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.affiliate_meta.loyalty_discount` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.affiliate_meta.is_priority` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.company_affiliate_tag` of schema `AffiliateDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.label_a6` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.invoice` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.label_pos` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.invoice_a6` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.b2b` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.label` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.label_a4` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.invoice_export` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.credit_note_url` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.delivery_challan_a4` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.label_export` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.invoice_a4` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.invoice_pos` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.po_invoice` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.affiliate_id` of schema `AffiliateDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.ad_id` of schema `AffiliateDetails` in response with status code 200 - - [Added] property `shipments[].affiliate_details.config` of schema `AffiliateDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].store_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].kafka_sync` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].app_display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].state_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].state_type` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].bsh_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].created_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].shipment_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].updated_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].bag_state_mapper.is_active` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].bag_state_mapper.app_display_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].bag_state_mapper.app_state_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].bag_state_mapper.app_facing` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].bag_state_mapper.notify_customer` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].bag_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].reasons` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].is_dp_assign_enabled` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.cgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.cgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.gstin_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.igst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.gst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.hsn_code_id` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.igst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.sgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.is_default_hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.gst_tag` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.sgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Required status to properties `shipments[].bags[].gst_details.brand_calculated_amount`, `shipments[].bags[].gst_details.gst_fee`, `shipments[].bags[].gst_details.tax_collected_at_source`, `shipments[].bags[].gst_details.value_of_good` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].parent_promo_bags` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].financial_breakup.amount_paid_roundoff` of schema `FinancialBreakup` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].financial_breakup.tax_collected_at_source` of schema `FinancialBreakup` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].financial_breakup.identifiers.alu` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].financial_breakup.identifiers.ean` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].financial_breakup.identifiers.sku_code` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].financial_breakup.identifiers.upc` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].financial_breakup.identifiers.isbn` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].seller_identifier` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.phone` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.address2` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.longitude` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.pincode` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.area` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.address_type` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.country` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.address_category` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.email` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.created_at` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.address1` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.landmark` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.updated_at` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.version` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.latitude` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.contact_person` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.state` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.city` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].article.identifiers` of schema `OrderBagArticle` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].article.return_config.returnable` of schema `ReturnConfig1` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].article.return_config.time` of schema `ReturnConfig1` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].article.return_config.unit` of schema `ReturnConfig1` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].article.uid` of schema `OrderBagArticle` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].article.size` of schema `OrderBagArticle` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].brand.logo` of schema `OrderBrandName` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].brand.created_on` of schema `OrderBrandName` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].brand.brand_name` of schema `OrderBrandName` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].brand.modified_on` of schema `OrderBrandName` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].group_id` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].affiliate_bag_details.affiliate_bag_id` of schema `AffiliateBagsDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.id` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.attributes.currency` of schema `PlatformArticleAttributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.brand_id` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.slug_key` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.l3_category` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.l3_category_name` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.last_updated_at` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.name` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.l2_category` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.brand` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.image` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.code` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.l1_category` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.size` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.can_cancel` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.can_return` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.meta` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.department_id` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.images` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].payment_methods[].mode` of schema `BagPaymentMethods` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].payment_methods[].amount` of schema `BagPaymentMethods` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].quantity` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].identifier` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].can_return` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].can_cancel` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].display_name` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].line_number` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.gift_card.gift_message` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.gift_card.gift_price` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.gift_card.display_text` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.gift_card.is_gift_applied` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.custom_message` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.docket_number` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.group_id` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.partial_can_ret` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.extra_meta` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.b2b_po_details.docker_number` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.b2b_po_details.po_line_amount` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.b2b_po_details.total_gst_percentage` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.b2b_po_details.partial_can_ret` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.b2b_po_details.po_tax_amount` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.b2b_po_details.item_base_price` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.custom_json` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].promotion_type` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].promotion_name` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].discount_rules[].value` of schema `DiscountRules` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].discount_rules[].type` of schema `DiscountRules` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].amount` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].article_quantity` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].buy_rules[].item_criteria.item_brand` of schema `ItemCriterias` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].buy_rules[].cart_conditions` of schema `BuyRules` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].promo_id` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].mrp_promotion` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.refund_credit` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.amount_paid_roundoff` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.price_effective` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.promotion_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.pm_price_split` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.refund_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.transfer_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.coupon_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.tax_collected_at_source` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.brand_calculated_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.delivery_charge` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.cashback` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.value_of_good` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.cashback_applied` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.cod_charges` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.price_marked` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.amount_paid` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.coupon_value` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.fynd_credits` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.gift_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.store_id` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.kafka_sync` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.state_type` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.state_id` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.shipment_id` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.updated_at` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Value format `date-time` to property `shipments[].bags[].current_status.updated_at` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.bag_state_mapper.is_active` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.bag_state_mapper.app_display_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.bag_state_mapper.app_state_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.bag_state_mapper.app_facing` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.bag_state_mapper.notify_customer` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.bag_id` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.status` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].entity_type` of schema `OrderBags` in response with status code 200 - - [Added] property `shipments[].bags[].is_parent` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].dp_assignment` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].total_items` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.b2b_buyer_details.ajio_site_id` of schema `BuyerDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.formatted.max` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.formatted.min` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.debug_info.stormbreaker_uuid` of schema `DebugInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.return_awb_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.einvoice_info.credit_note` of schema `EinvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.einvoice_info.invoice` of schema `EinvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.return_affiliate_shipment_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.shipment_weight` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.dimension.height` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.dimension.width` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.dimension.is_default` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.dimension.unit` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.dimension.length` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.dp_options` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.assign_dp_from_sb` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.due_date` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.store_invoice_updated_date` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.forward_affiliate_shipment_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.return_store_node` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.shipment_tags[].slug` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.shipment_tags[].entity_type` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.shipment_tags[].display_text` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.external` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.awb_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.lock_data.locked` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.lock_data.mto` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.lock_data.lock_message` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.shipment_volumetric_weight` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.marketplace_store_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.return_details` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.dp_sort_key` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.packaging_name` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.timestamp.max` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.timestamp.min` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.auto_trigger_dp_assignment_acf` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.dp_name` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.po_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.forward_affiliate_order_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.return_affiliate_order_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.bag_weight` of schema `ShipmentMeta` in response with status code 200 - - [Added] property `shipments[].meta.refund_to` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].payment_mode` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].packaging_type` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].journey_type` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.refund_credit` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.amount_paid_roundoff` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.price_effective` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.promotion_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.pm_price_split` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.refund_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.transfer_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.coupon_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.tax_collected_at_source` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.brand_calculated_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.delivery_charge` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.cashback` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.value_of_good` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.cashback_applied` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.cod_charges` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.price_marked` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.amount_paid` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.coupon_value` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.fynd_credits` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.gift_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].payments.mode` of schema `ShipmentPayments` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].payments.logo` of schema `ShipmentPayments` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].payments.source` of schema `ShipmentPayments` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].operational_status` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].status.meta` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].status.bag_list` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].status.id` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].status.shipment_id` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].status.status` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].status.display_name` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].total_bags` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].shipment_created_at` of schema `PlatformShipment` in response with status code 200 - - [Added] property `shipments[].previous_shipment_id` of schema `PlatformShipment` in response with status code 200 - - [Added] property `shipments[].shipment_update_time` of schema `PlatformShipment` in response with status code 200 - - [Added] property `shipments[].rto_address` of schema `PlatformShipment` in response with status code 200 - - [Added] property `shipments[].credit_note_id` of schema `PlatformShipment` in response with status code 200 - - [Added] property `shipments[].is_self_ship` of schema `PlatformShipment` in response with status code 200 - - [Added] property `shipments[].mode_of_payment` of schema `PlatformShipment` in response with status code 200 - -- ##### What's Changed - - [Breaking] [Changed] Type from `string` to `number` of property `shipments[].bags[].gst_details.cgst_gst_fee` of schema `BagGST` in response with status code 200 - - [Breaking] [Changed] Type from `integer` to `number` of property `shipments[].bags[].gst_details.gst_tax_percentage` of schema `BagGST` in response with status code 200 - - [Breaking] [Changed] Type from `string` to `number` of property `shipments[].bags[].gst_details.igst_gst_fee` of schema `BagGST` in response with status code 200 - - [Breaking] [Changed] Type from `string` to `number` of property `shipments[].bags[].gst_details.sgst_gst_fee` of schema `BagGST` in response with status code 200 - - [Breaking] [Changed] Type from `integer` to `string` of property `shipments[].bags[].current_status.updated_at` of schema `CurrentStatus` in response with status code 200 - - -#### getOrderById - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.platform_user_details.platform_user_first_name` of schema `PlatformUserDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.platform_user_details.platform_user_last_name` of schema `PlatformUserDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.company_logo` of schema `OrderMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.currency_symbol` of schema `OrderMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.comment` of schema `OrderMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.extra_meta` of schema `OrderMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.files` of schema `OrderMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.transaction_data.currency` of schema `TransactionData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.transaction_data.amount_paid` of schema `TransactionData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.transaction_data.payment_id` of schema `TransactionData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.transaction_data.unique_reference_number` of schema `TransactionData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.transaction_data.terminal_id` of schema `TransactionData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.transaction_data.entity` of schema `TransactionData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.transaction_data.transaction_id` of schema `TransactionData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.transaction_data.status` of schema `TransactionData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.ordering_store` of schema `OrderMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.payment_type` of schema `OrderMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.mongo_cart_id` of schema `OrderMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.order_child_entities` of schema `OrderMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.order_type` of schema `OrderMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.order_platform` of schema `OrderMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.customer_note` of schema `OrderMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.staff` of schema `OrderMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.meta.cart_id` of schema `OrderMeta` in response with status code 200 - - [Added] property `order.meta.cart_object_id` of schema `OrderMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.refund_credit` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.amount_paid_roundoff` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.price_effective` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.promotion_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.pm_price_split` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.refund_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.transfer_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.coupon_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.tax_collected_at_source` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.brand_calculated_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.delivery_charge` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.cashback` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.value_of_good` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.cashback_applied` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.cod_charges` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.price_marked` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.amount_paid` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.coupon_value` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.fynd_credits` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.prices.gift_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `order.payment_methods` of schema `OrderData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].picked_date` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].tracking_list[].is_passed` of schema `TrackingList` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].tracking_list[].is_current` of schema `TrackingList` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].tracking_list[].time` of schema `TrackingList` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].invoice.invoice_url` of schema `InvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].invoice.updated_date` of schema `InvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].invoice.external_invoice_id` of schema `InvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].invoice.label_url` of schema `InvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].shipment_status` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.cgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.igst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.gst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.hsn_code_id` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.igst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.is_default_hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.sgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.cgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.gst_tag` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.sgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].gst_details.hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].delivery_slot` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].order.order_date` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].order.tax_details` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].order.cod_charges` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].order.source` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].order.affiliate_id` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].order.ordering_channel_logo` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].order.order_value` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].order.ordering_channel` of schema `OrderDetailsData` in response with status code 200 - - [Added] property `shipments[].order.meta` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].user.uid` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].user.first_name` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].user.last_name` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].user.is_anonymous_user` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].user.avis_user_id` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].user.name` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].enable_dp_tracking` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].custom_message` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].estimated_sla_time` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].can_update_dimension` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].shipment_images` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].delivery_details.area` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].delivery_details.address_type` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].delivery_details.email` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].delivery_details.address1` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].delivery_details.landmark` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].billing_details.area` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].billing_details.address_type` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].billing_details.email` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].billing_details.address1` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].billing_details.landmark` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].fulfilment_priority` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].shipment_details.articles[].status` of schema `ArticleDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].shipment_details.lock_status` of schema `ShipmentDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].shipment_details.lock_message` of schema `ShipmentDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].shipment_details.action_to_status` of schema `ShipmentDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].custom_meta` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].shipment_quantity` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].company_details.company_name` of schema `CompanyDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].company_details.address` of schema `CompanyDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].company_details.company_id` of schema `CompanyDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].company_details.company_gst` of schema `CompanyDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].company_details.company_contact.phone[].country_code` of schema `PhoneDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].company_details.company_contact.phone[].number` of schema `PhoneDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].company_details.company_contact.phone` of schema `ContactDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].company_details.company_contact.emails` of schema `ContactDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.phone` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.pincode` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.meta` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.address` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.id` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.code` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.store_name` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.country` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.contact_person` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.state` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].ordering_store.city` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].lock_status` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].platform_logo` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].user_agent` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].dp_details.pincode` of schema `DPDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].dp_details.country` of schema `DPDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].dp_details.gst_tag` of schema `DPDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].invoice_id` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].payment_methods` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].coupon` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.b2b_buyer_details.ajio_site_id` of schema `BuyerDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.formatted.max` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.formatted.min` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.debug_info.stormbreaker_uuid` of schema `DebugInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.return_awb_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.einvoice_info.credit_note` of schema `EinvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.einvoice_info.invoice` of schema `EinvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.return_affiliate_shipment_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.shipment_weight` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.dimension.height` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.dimension.width` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.dimension.is_default` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.dimension.unit` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.dimension.length` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.dp_options` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.assign_dp_from_sb` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.due_date` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.store_invoice_updated_date` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.forward_affiliate_shipment_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.return_store_node` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.shipment_tags[].slug` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.shipment_tags[].entity_type` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.shipment_tags[].display_text` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.external` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.awb_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.lock_data.locked` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.lock_data.mto` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.lock_data.lock_message` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.shipment_volumetric_weight` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.marketplace_store_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.return_details` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.dp_sort_key` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.packaging_name` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.timestamp.max` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.timestamp.min` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.auto_trigger_dp_assignment_acf` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.dp_name` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.po_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.forward_affiliate_order_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.return_affiliate_order_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.shipment_meta.bag_weight` of schema `ShipmentMeta` in response with status code 200 - - [Added] property `shipments[].affiliate_details.shipment_meta.refund_to` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.affiliate_meta.order_item_id` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.affiliate_meta.employee_discount` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.affiliate_meta.quantity` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.affiliate_meta.loyalty_discount` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.affiliate_meta.is_priority` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.company_affiliate_tag` of schema `AffiliateDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.label_a6` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.invoice` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.label_pos` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.invoice_a6` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.b2b` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.label` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.label_a4` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.invoice_export` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.credit_note_url` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.delivery_challan_a4` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.label_export` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.invoice_a4` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.invoice_pos` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.pdf_links.po_invoice` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.affiliate_id` of schema `AffiliateDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].affiliate_details.ad_id` of schema `AffiliateDetails` in response with status code 200 - - [Added] property `shipments[].affiliate_details.config` of schema `AffiliateDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].store_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].kafka_sync` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].app_display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].state_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].state_type` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].bsh_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].created_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].shipment_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].updated_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].bag_state_mapper.is_active` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].bag_state_mapper.app_display_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].bag_state_mapper.app_state_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].bag_state_mapper.app_facing` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].bag_state_mapper.notify_customer` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].bag_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].reasons` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bag_status_history[].display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].is_dp_assign_enabled` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.cgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.cgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.gstin_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.igst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.gst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.hsn_code_id` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.igst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.sgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.is_default_hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.gst_tag` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.sgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].gst_details.hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Required status to properties `shipments[].bags[].gst_details.brand_calculated_amount`, `shipments[].bags[].gst_details.gst_fee`, `shipments[].bags[].gst_details.tax_collected_at_source`, `shipments[].bags[].gst_details.value_of_good` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].parent_promo_bags` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].financial_breakup.amount_paid_roundoff` of schema `FinancialBreakup` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].financial_breakup.tax_collected_at_source` of schema `FinancialBreakup` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].financial_breakup.identifiers.alu` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].financial_breakup.identifiers.ean` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].financial_breakup.identifiers.sku_code` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].financial_breakup.identifiers.upc` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].financial_breakup.identifiers.isbn` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].seller_identifier` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.phone` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.address2` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.longitude` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.pincode` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.area` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.address_type` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.country` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.address_category` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.email` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.created_at` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.address1` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.landmark` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.updated_at` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.version` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.latitude` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.contact_person` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.state` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].delivery_address.city` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].article.identifiers` of schema `OrderBagArticle` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].article.return_config.returnable` of schema `ReturnConfig1` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].article.return_config.time` of schema `ReturnConfig1` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].article.return_config.unit` of schema `ReturnConfig1` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].article.uid` of schema `OrderBagArticle` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].article.size` of schema `OrderBagArticle` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].brand.logo` of schema `OrderBrandName` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].brand.created_on` of schema `OrderBrandName` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].brand.brand_name` of schema `OrderBrandName` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].brand.modified_on` of schema `OrderBrandName` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].group_id` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].affiliate_bag_details.affiliate_bag_id` of schema `AffiliateBagsDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.id` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.attributes.currency` of schema `PlatformArticleAttributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.brand_id` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.slug_key` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.l3_category` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.l3_category_name` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.last_updated_at` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.name` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.l2_category` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.brand` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.image` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.code` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.l1_category` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.size` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.can_cancel` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.can_return` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.meta` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.department_id` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].item.images` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].payment_methods[].mode` of schema `BagPaymentMethods` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].payment_methods[].amount` of schema `BagPaymentMethods` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].quantity` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].identifier` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].can_return` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].can_cancel` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].display_name` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].line_number` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.gift_card.gift_message` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.gift_card.gift_price` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.gift_card.display_text` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.gift_card.is_gift_applied` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.custom_message` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.docket_number` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.group_id` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.partial_can_ret` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.extra_meta` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.b2b_po_details.docker_number` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.b2b_po_details.po_line_amount` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.b2b_po_details.total_gst_percentage` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.b2b_po_details.partial_can_ret` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.b2b_po_details.po_tax_amount` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.b2b_po_details.item_base_price` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].meta.custom_json` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].promotion_type` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].promotion_name` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].discount_rules[].value` of schema `DiscountRules` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].discount_rules[].type` of schema `DiscountRules` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].amount` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].article_quantity` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].buy_rules[].item_criteria.item_brand` of schema `ItemCriterias` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].buy_rules[].cart_conditions` of schema `BuyRules` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].promo_id` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].applied_promos[].mrp_promotion` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.refund_credit` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.amount_paid_roundoff` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.price_effective` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.promotion_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.pm_price_split` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.refund_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.transfer_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.coupon_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.tax_collected_at_source` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.brand_calculated_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.delivery_charge` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.cashback` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.value_of_good` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.cashback_applied` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.cod_charges` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.price_marked` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.amount_paid` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.coupon_value` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.fynd_credits` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].prices.gift_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.store_id` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.kafka_sync` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.state_type` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.state_id` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.shipment_id` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.updated_at` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Value format `date-time` to property `shipments[].bags[].current_status.updated_at` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.bag_state_mapper.is_active` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.bag_state_mapper.app_display_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.bag_state_mapper.app_state_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.bag_state_mapper.app_facing` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.bag_state_mapper.notify_customer` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.bag_id` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].current_status.status` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].bags[].entity_type` of schema `OrderBags` in response with status code 200 - - [Added] property `shipments[].bags[].is_parent` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].dp_assignment` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].total_items` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.b2b_buyer_details.ajio_site_id` of schema `BuyerDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.formatted.max` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.formatted.min` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.debug_info.stormbreaker_uuid` of schema `DebugInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.return_awb_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.einvoice_info.credit_note` of schema `EinvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.einvoice_info.invoice` of schema `EinvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.return_affiliate_shipment_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.shipment_weight` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.dimension.height` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.dimension.width` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.dimension.is_default` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.dimension.unit` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.dimension.length` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.dp_options` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.assign_dp_from_sb` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.due_date` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.store_invoice_updated_date` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.forward_affiliate_shipment_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.return_store_node` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.shipment_tags[].slug` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.shipment_tags[].entity_type` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.shipment_tags[].display_text` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.external` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.awb_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.lock_data.locked` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.lock_data.mto` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.lock_data.lock_message` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.shipment_volumetric_weight` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.marketplace_store_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.return_details` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.dp_sort_key` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.packaging_name` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.timestamp.max` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.timestamp.min` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.auto_trigger_dp_assignment_acf` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.dp_name` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.po_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.forward_affiliate_order_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.return_affiliate_order_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].meta.bag_weight` of schema `ShipmentMeta` in response with status code 200 - - [Added] property `shipments[].meta.refund_to` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].payment_mode` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].packaging_type` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].journey_type` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.refund_credit` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.amount_paid_roundoff` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.price_effective` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.promotion_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.pm_price_split` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.refund_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.transfer_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.coupon_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.tax_collected_at_source` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.brand_calculated_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.delivery_charge` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.cashback` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.value_of_good` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.cashback_applied` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.cod_charges` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.price_marked` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.amount_paid` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.coupon_value` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.fynd_credits` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].prices.gift_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].payments.mode` of schema `ShipmentPayments` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].payments.logo` of schema `ShipmentPayments` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].payments.source` of schema `ShipmentPayments` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].operational_status` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].status.meta` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].status.bag_list` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].status.id` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].status.shipment_id` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].status.status` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].status.display_name` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].total_bags` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipments[].shipment_created_at` of schema `PlatformShipment` in response with status code 200 - - [Added] property `shipments[].previous_shipment_id` of schema `PlatformShipment` in response with status code 200 - - [Added] property `shipments[].shipment_update_time` of schema `PlatformShipment` in response with status code 200 - - [Added] property `shipments[].rto_address` of schema `PlatformShipment` in response with status code 200 - - [Added] property `shipments[].credit_note_id` of schema `PlatformShipment` in response with status code 200 - - [Added] property `shipments[].is_self_ship` of schema `PlatformShipment` in response with status code 200 - - [Added] property `shipments[].mode_of_payment` of schema `PlatformShipment` in response with status code 200 - -- ##### What's Changed - - [Breaking] [Changed] Type from `string` to `number` of property `shipments[].bags[].gst_details.cgst_gst_fee` of schema `BagGST` in response with status code 200 - - [Breaking] [Changed] Type from `integer` to `number` of property `shipments[].bags[].gst_details.gst_tax_percentage` of schema `BagGST` in response with status code 200 - - [Breaking] [Changed] Type from `string` to `number` of property `shipments[].bags[].gst_details.igst_gst_fee` of schema `BagGST` in response with status code 200 - - [Breaking] [Changed] Type from `string` to `number` of property `shipments[].bags[].gst_details.sgst_gst_fee` of schema `BagGST` in response with status code 200 - - [Breaking] [Changed] Type from `integer` to `string` of property `shipments[].bags[].current_status.updated_at` of schema `CurrentStatus` in response with status code 200 - - -#### getLaneConfig - -- ##### What's New - - [Added] `query` parameter `orderType` (type: `string`) - - - -#### getOrders - -- ##### What's New - - [Added] `query` parameter `orderType` (type: `string`) - - - [Breaking] [Added] Possible nullable value `true` to property `total_count` of schema `OrderListingResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `OrderListingResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `OrderListingResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].breakup_values[].value` of schema `PlatformBreakupValues` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].breakup_values[].name` of schema `PlatformBreakupValues` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].breakup_values[].display` of schema `PlatformBreakupValues` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].total_order_value` of schema `PlatformOrderItems` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta` of schema `PlatformOrderItems` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].order_created_time` of schema `PlatformOrderItems` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].payment_mode` of schema `PlatformOrderItems` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].picked_date` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].tracking_list[].is_passed` of schema `TrackingList` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].tracking_list[].is_current` of schema `TrackingList` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].tracking_list[].time` of schema `TrackingList` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].invoice.invoice_url` of schema `InvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].invoice.updated_date` of schema `InvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].invoice.external_invoice_id` of schema `InvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].invoice.label_url` of schema `InvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].shipment_status` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].gst_details.cgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].gst_details.igst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].gst_details.gst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].gst_details.hsn_code_id` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].gst_details.igst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].gst_details.is_default_hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].gst_details.sgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].gst_details.cgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].gst_details.gst_tag` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].gst_details.sgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].gst_details.hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].delivery_slot` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].order.order_date` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].order.tax_details` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].order.cod_charges` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].order.source` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].order.affiliate_id` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].order.ordering_channel_logo` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].order.order_value` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].order.ordering_channel` of schema `OrderDetailsData` in response with status code 200 - - [Added] property `items[].shipments[].order.meta` of schema `OrderDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].user.uid` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].user.first_name` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].user.last_name` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].user.is_anonymous_user` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].user.avis_user_id` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].user.name` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].enable_dp_tracking` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].custom_message` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].estimated_sla_time` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].can_update_dimension` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].shipment_images` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].delivery_details.area` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].delivery_details.address_type` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].delivery_details.email` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].delivery_details.address1` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].delivery_details.landmark` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].billing_details.area` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].billing_details.address_type` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].billing_details.email` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].billing_details.address1` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].billing_details.landmark` of schema `UserDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].fulfilment_priority` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].shipment_details.articles[].status` of schema `ArticleDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].shipment_details.lock_status` of schema `ShipmentDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].shipment_details.lock_message` of schema `ShipmentDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].shipment_details.action_to_status` of schema `ShipmentDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].custom_meta` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].shipment_quantity` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].company_details.company_name` of schema `CompanyDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].company_details.address` of schema `CompanyDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].company_details.company_id` of schema `CompanyDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].company_details.company_gst` of schema `CompanyDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].company_details.company_contact.phone[].country_code` of schema `PhoneDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].company_details.company_contact.phone[].number` of schema `PhoneDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].company_details.company_contact.phone` of schema `ContactDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].company_details.company_contact.emails` of schema `ContactDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].ordering_store.phone` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].ordering_store.pincode` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].ordering_store.meta` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].ordering_store.address` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].ordering_store.id` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].ordering_store.code` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].ordering_store.store_name` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].ordering_store.country` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].ordering_store.contact_person` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].ordering_store.state` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].ordering_store.city` of schema `OrderingStoreDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].lock_status` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].platform_logo` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].user_agent` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].dp_details.pincode` of schema `DPDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].dp_details.country` of schema `DPDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].dp_details.gst_tag` of schema `DPDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].invoice_id` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].payment_methods` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].coupon` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.b2b_buyer_details.ajio_site_id` of schema `BuyerDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.formatted.max` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.formatted.min` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.debug_info.stormbreaker_uuid` of schema `DebugInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.return_awb_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.einvoice_info.credit_note` of schema `EinvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.einvoice_info.invoice` of schema `EinvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.return_affiliate_shipment_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.shipment_weight` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.dimension.height` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.dimension.width` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.dimension.is_default` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.dimension.unit` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.dimension.length` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.dp_options` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.assign_dp_from_sb` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.due_date` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.store_invoice_updated_date` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.forward_affiliate_shipment_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.return_store_node` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.shipment_tags[].slug` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.shipment_tags[].entity_type` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.shipment_tags[].display_text` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.external` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.awb_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.lock_data.locked` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.lock_data.mto` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.lock_data.lock_message` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.shipment_volumetric_weight` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.marketplace_store_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.return_details` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.dp_sort_key` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.packaging_name` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.timestamp.max` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.timestamp.min` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.auto_trigger_dp_assignment_acf` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.dp_name` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.po_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.forward_affiliate_order_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.return_affiliate_order_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.shipment_meta.bag_weight` of schema `ShipmentMeta` in response with status code 200 - - [Added] property `items[].shipments[].affiliate_details.shipment_meta.refund_to` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.affiliate_meta.order_item_id` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.affiliate_meta.employee_discount` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.affiliate_meta.quantity` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.affiliate_meta.loyalty_discount` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.affiliate_meta.is_priority` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.company_affiliate_tag` of schema `AffiliateDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.pdf_links.label_a6` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.pdf_links.invoice` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.pdf_links.label_pos` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.pdf_links.invoice_a6` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.pdf_links.b2b` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.pdf_links.label` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.pdf_links.label_a4` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.pdf_links.invoice_export` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.pdf_links.credit_note_url` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.pdf_links.delivery_challan_a4` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.pdf_links.label_export` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.pdf_links.invoice_a4` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.pdf_links.invoice_pos` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.pdf_links.po_invoice` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.affiliate_id` of schema `AffiliateDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].affiliate_details.ad_id` of schema `AffiliateDetails` in response with status code 200 - - [Added] property `items[].shipments[].affiliate_details.config` of schema `AffiliateDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bag_status_history[].store_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bag_status_history[].kafka_sync` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bag_status_history[].app_display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bag_status_history[].state_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bag_status_history[].state_type` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bag_status_history[].bsh_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bag_status_history[].created_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bag_status_history[].shipment_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bag_status_history[].updated_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bag_status_history[].bag_state_mapper.is_active` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bag_status_history[].bag_state_mapper.app_display_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bag_status_history[].bag_state_mapper.app_state_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bag_status_history[].bag_state_mapper.app_facing` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bag_status_history[].bag_state_mapper.notify_customer` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bag_status_history[].bag_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bag_status_history[].reasons` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bag_status_history[].display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].is_dp_assign_enabled` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].gst_details.cgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].gst_details.cgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].gst_details.gstin_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].gst_details.igst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].gst_details.gst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].gst_details.hsn_code_id` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].gst_details.igst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].gst_details.sgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].gst_details.is_default_hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].gst_details.gst_tag` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].gst_details.sgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].gst_details.hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Required status to properties `items[].shipments[].bags[].gst_details.brand_calculated_amount`, `items[].shipments[].bags[].gst_details.gst_fee`, `items[].shipments[].bags[].gst_details.tax_collected_at_source`, `items[].shipments[].bags[].gst_details.value_of_good` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].parent_promo_bags` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].financial_breakup.amount_paid_roundoff` of schema `FinancialBreakup` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].financial_breakup.tax_collected_at_source` of schema `FinancialBreakup` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].financial_breakup.identifiers.alu` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].financial_breakup.identifiers.ean` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].financial_breakup.identifiers.sku_code` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].financial_breakup.identifiers.upc` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].financial_breakup.identifiers.isbn` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].seller_identifier` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.phone` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.address2` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.longitude` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.pincode` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.area` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.address_type` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.country` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.address_category` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.email` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.created_at` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.address1` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.landmark` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.updated_at` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.version` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.latitude` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.contact_person` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.state` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].delivery_address.city` of schema `PlatformDeliveryAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].article.identifiers` of schema `OrderBagArticle` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].article.return_config.returnable` of schema `ReturnConfig1` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].article.return_config.time` of schema `ReturnConfig1` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].article.return_config.unit` of schema `ReturnConfig1` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].article.uid` of schema `OrderBagArticle` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].article.size` of schema `OrderBagArticle` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].brand.logo` of schema `OrderBrandName` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].brand.created_on` of schema `OrderBrandName` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].brand.brand_name` of schema `OrderBrandName` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].brand.modified_on` of schema `OrderBrandName` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].group_id` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].affiliate_bag_details.affiliate_bag_id` of schema `AffiliateBagsDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.id` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.attributes.currency` of schema `PlatformArticleAttributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.brand_id` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.slug_key` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.l3_category` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.l3_category_name` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.last_updated_at` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.name` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.l2_category` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.brand` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.image` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.code` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.l1_category` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.size` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.can_cancel` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.can_return` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.meta` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.department_id` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].item.images` of schema `PlatformItem` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].payment_methods[].mode` of schema `BagPaymentMethods` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].payment_methods[].amount` of schema `BagPaymentMethods` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].quantity` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].identifier` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].can_return` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].can_cancel` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].display_name` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].line_number` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].meta.gift_card.gift_message` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].meta.gift_card.gift_price` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].meta.gift_card.display_text` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].meta.gift_card.is_gift_applied` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].meta.custom_message` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].meta.docket_number` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].meta.group_id` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].meta.partial_can_ret` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].meta.extra_meta` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].meta.b2b_po_details.docker_number` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].meta.b2b_po_details.po_line_amount` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].meta.b2b_po_details.total_gst_percentage` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].meta.b2b_po_details.partial_can_ret` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].meta.b2b_po_details.po_tax_amount` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].meta.b2b_po_details.item_base_price` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].meta.custom_json` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].applied_promos[].promotion_type` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].applied_promos[].promotion_name` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].applied_promos[].discount_rules[].value` of schema `DiscountRules` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].applied_promos[].discount_rules[].type` of schema `DiscountRules` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].applied_promos[].amount` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].applied_promos[].article_quantity` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].applied_promos[].buy_rules[].item_criteria.item_brand` of schema `ItemCriterias` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].applied_promos[].buy_rules[].cart_conditions` of schema `BuyRules` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].applied_promos[].promo_id` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].applied_promos[].mrp_promotion` of schema `AppliedPromos` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.refund_credit` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.amount_paid_roundoff` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.price_effective` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.promotion_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.pm_price_split` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.refund_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.transfer_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.coupon_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.tax_collected_at_source` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.brand_calculated_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.delivery_charge` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.cashback` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.value_of_good` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.cashback_applied` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.cod_charges` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.price_marked` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.amount_paid` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.coupon_value` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.fynd_credits` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].prices.gift_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].current_status.store_id` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].current_status.kafka_sync` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].current_status.state_type` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].current_status.state_id` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].current_status.shipment_id` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].current_status.updated_at` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Value format `date-time` to property `items[].shipments[].bags[].current_status.updated_at` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].current_status.bag_state_mapper.is_active` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].current_status.bag_state_mapper.app_display_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].current_status.bag_state_mapper.app_state_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].current_status.bag_state_mapper.app_facing` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].current_status.bag_state_mapper.notify_customer` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].current_status.bag_id` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].current_status.status` of schema `CurrentStatus` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].bags[].entity_type` of schema `OrderBags` in response with status code 200 - - [Added] property `items[].shipments[].bags[].is_parent` of schema `OrderBags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].dp_assignment` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].total_items` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.b2b_buyer_details.ajio_site_id` of schema `BuyerDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.formatted.max` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.formatted.min` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.debug_info.stormbreaker_uuid` of schema `DebugInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.return_awb_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.einvoice_info.credit_note` of schema `EinvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.einvoice_info.invoice` of schema `EinvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.return_affiliate_shipment_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.shipment_weight` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.dimension.height` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.dimension.width` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.dimension.is_default` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.dimension.unit` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.dimension.length` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.dp_options` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.assign_dp_from_sb` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.due_date` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.store_invoice_updated_date` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.forward_affiliate_shipment_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.return_store_node` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.shipment_tags[].slug` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.shipment_tags[].entity_type` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.shipment_tags[].display_text` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.external` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.awb_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.lock_data.locked` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.lock_data.mto` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.lock_data.lock_message` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.shipment_volumetric_weight` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.marketplace_store_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.return_details` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.dp_sort_key` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.packaging_name` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.timestamp.max` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.timestamp.min` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.auto_trigger_dp_assignment_acf` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.dp_name` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.po_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.forward_affiliate_order_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.return_affiliate_order_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].meta.bag_weight` of schema `ShipmentMeta` in response with status code 200 - - [Added] property `items[].shipments[].meta.refund_to` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].payment_mode` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].packaging_type` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].journey_type` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.refund_credit` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.amount_paid_roundoff` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.price_effective` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.promotion_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.pm_price_split` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.refund_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.transfer_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.coupon_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.tax_collected_at_source` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.brand_calculated_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.delivery_charge` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.cashback` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.value_of_good` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.cashback_applied` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.cod_charges` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.price_marked` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.amount_paid` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.coupon_value` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.fynd_credits` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].prices.gift_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].payments.mode` of schema `ShipmentPayments` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].payments.logo` of schema `ShipmentPayments` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].payments.source` of schema `ShipmentPayments` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].operational_status` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].status.meta` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].status.bag_list` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].status.id` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].status.shipment_id` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].status.status` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].status.display_name` of schema `ShipmentStatusData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].total_bags` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipments[].shipment_created_at` of schema `PlatformShipment` in response with status code 200 - - [Added] property `items[].shipments[].previous_shipment_id` of schema `PlatformShipment` in response with status code 200 - - [Added] property `items[].shipments[].shipment_update_time` of schema `PlatformShipment` in response with status code 200 - - [Added] property `items[].shipments[].rto_address` of schema `PlatformShipment` in response with status code 200 - - [Added] property `items[].shipments[].credit_note_id` of schema `PlatformShipment` in response with status code 200 - - [Added] property `items[].shipments[].is_self_ship` of schema `PlatformShipment` in response with status code 200 - - [Added] property `items[].shipments[].mode_of_payment` of schema `PlatformShipment` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].order_id` of schema `PlatformOrderItems` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].channel.logo` of schema `PlatformChannel` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].channel.name` of schema `PlatformChannel` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].user_info.uid` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].user_info.first_name` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].user_info.last_name` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].user_info.is_anonymous_user` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].user_info.avis_user_id` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].user_info.name` of schema `UserDataInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].order_value` of schema `PlatformOrderItems` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `lane` of schema `OrderListingResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `page.type` of schema `Page` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `page.has_previous` of schema `Page` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `page.has_next` of schema `Page` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `page.total` of schema `Page` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `page.size` of schema `Page` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `page.current` of schema `Page` in response with status code 200 - -- ##### What's Changed - - [Breaking] [Changed] Type from `string` to `number` of property `items[].shipments[].bags[].gst_details.cgst_gst_fee` of schema `BagGST` in response with status code 200 - - [Breaking] [Changed] Type from `integer` to `number` of property `items[].shipments[].bags[].gst_details.gst_tax_percentage` of schema `BagGST` in response with status code 200 - - [Breaking] [Changed] Type from `string` to `number` of property `items[].shipments[].bags[].gst_details.igst_gst_fee` of schema `BagGST` in response with status code 200 - - [Breaking] [Changed] Type from `string` to `number` of property `items[].shipments[].bags[].gst_details.sgst_gst_fee` of schema `BagGST` in response with status code 200 - - [Breaking] [Changed] Type from `integer` to `string` of property `items[].shipments[].bags[].current_status.updated_at` of schema `CurrentStatus` in response with status code 200 - - -#### getfilters - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.returned[].options[].show_ui` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.returned[].options[].placeholder_text` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.returned[].options[].min_search_size` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.returned[].placeholder_text` of schema `FiltersInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.returned[].required` of schema `FiltersInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.returned` of schema `AdvanceFilterInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.action_centre[].options[].show_ui` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.action_centre[].options[].placeholder_text` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.action_centre[].options[].min_search_size` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.action_centre[].placeholder_text` of schema `FiltersInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.action_centre[].required` of schema `FiltersInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.action_centre` of schema `AdvanceFilterInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.unfulfilled[].options[].show_ui` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.unfulfilled[].options[].placeholder_text` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.unfulfilled[].options[].min_search_size` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.unfulfilled[].placeholder_text` of schema `FiltersInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.unfulfilled[].required` of schema `FiltersInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.unfulfilled` of schema `AdvanceFilterInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.filters[].options[].show_ui` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.filters[].options[].placeholder_text` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.filters[].options[].min_search_size` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.filters[].placeholder_text` of schema `FiltersInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.filters[].required` of schema `FiltersInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.filters` of schema `AdvanceFilterInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.processed[].options[].show_ui` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.processed[].options[].placeholder_text` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.processed[].options[].min_search_size` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.processed[].placeholder_text` of schema `FiltersInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.processed[].required` of schema `FiltersInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.processed` of schema `AdvanceFilterInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.applied_filters` of schema `AdvanceFilterInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `advance_filter.page` of schema `AdvanceFilterInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `global_filter[].options[].show_ui` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `global_filter[].options[].placeholder_text` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `global_filter[].options[].min_search_size` of schema `FilterInfoOption` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `global_filter[].placeholder_text` of schema `FiltersInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `global_filter[].required` of schema `FiltersInfo` in response with status code 200 - - -#### getBagById - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `bag_update_time` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `id` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `gst_details.cgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `gst_details.cgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `gst_details.igst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `gst_details.gst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `gst_details.hsn_code_id` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `gst_details.igst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `gst_details.sgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `gst_details.is_default_hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `gst_details.gst_tag` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `gst_details.sgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `gst_details.hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `parent_promo_bags` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `tags` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `financial_breakup[].amount_paid_roundoff` of schema `FinancialBreakup` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `financial_breakup[].tax_collected_at_source` of schema `FinancialBreakup` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `financial_breakup[].identifiers.alu` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `financial_breakup[].identifiers.ean` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `financial_breakup[].identifiers.sku_code` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `financial_breakup[].identifiers.upc` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `financial_breakup[].identifiers.isbn` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status[].store_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status[].kafka_sync` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status[].app_display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status[].state_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status[].state_type` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status[].bsh_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status[].created_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status[].shipment_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status[].updated_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status[].bag_state_mapper.is_active` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status[].bag_state_mapper.app_display_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status[].bag_state_mapper.app_state_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status[].bag_state_mapper.app_facing` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status[].bag_state_mapper.notify_customer` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status[].bag_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status[].reasons` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status[].display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `seller_identifier` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `original_bag_list` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `article_details.status` of schema `ArticleDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_operational_status.store_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_operational_status.kafka_sync` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_operational_status.app_display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_operational_status.state_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_operational_status.state_type` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_operational_status.bsh_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_operational_status.created_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_operational_status.shipment_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_operational_status.updated_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_operational_status.bag_state_mapper.is_active` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_operational_status.bag_state_mapper.app_display_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_operational_status.bag_state_mapper.app_state_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_operational_status.bag_state_mapper.app_facing` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_operational_status.bag_state_mapper.notify_customer` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_operational_status.bag_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_operational_status.reasons` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_operational_status.display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.is_active` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.alohomora_user_id` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.is_enabled_for_recon` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.brand_store_tags` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.order_integration_id` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.parent_store_id` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.code` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.store_address_json.version` of schema `StoreAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.store_address_json.area` of schema `StoreAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.store_address_json.email` of schema `StoreAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.meta.additional_contact_details` of schema `StoreMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.meta.timing` of schema `StoreMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.meta.notification_emails` of schema `StoreMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.meta.gst_number` of schema `StoreMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.meta.ewaybill_portal_details` of schema `StoreMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.meta.einvoice_portal_details.username` of schema `EInvoicePortalDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.meta.einvoice_portal_details.user` of schema `EInvoicePortalDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.meta.einvoice_portal_details.password` of schema `EInvoicePortalDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.meta.gst_credentials.e_invoice.username` of schema `StoreEinvoice` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.meta.gst_credentials.e_invoice.user` of schema `StoreEinvoice` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.meta.gst_credentials.e_invoice.password` of schema `StoreEinvoice` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.meta.gst_credentials.e_waybill.enabled` of schema `StoreEwaybill` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.meta.product_return_config` of schema `StoreMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.meta.documents.gst.url` of schema `Document` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.packaging_material_count` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.is_archived` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `ordering_store.address2` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `article.dimensions.height` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `article.dimensions.width` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `article.dimensions.is_default` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `article.dimensions.unit` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `article.dimensions.length` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `article.code` of schema `Article` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `article.weight.is_default` of schema `Weight` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `article.weight.shipping` of schema `Weight` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `article.weight.unit` of schema `Weight` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `article.is_set` of schema `Article` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `brand.logo` of schema `Brand` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `brand.credit_note_allowed` of schema `Brand` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `brand.created_on` of schema `Brand` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `brand.modified_on` of schema `Brand` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_bag_details.affiliate_meta.order_item_id` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_bag_details.affiliate_meta.employee_discount` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_bag_details.affiliate_meta.quantity` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_bag_details.affiliate_meta.loyalty_discount` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_bag_details.affiliate_meta.is_priority` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_bag_details.employee_discount` of schema `AffiliateBagDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_bag_details.loyalty_discount` of schema `AffiliateBagDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.attributes.primary_material` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.attributes.essential` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.attributes.marketer_name` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.attributes.primary_color` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.attributes.marketer_address` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.attributes.primary_color_hex` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.attributes.brand_name` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.attributes.name` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.attributes.gender` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.l3_category` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.l3_category_name` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.last_updated_at` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.l2_category` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.code` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.l1_category_id` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.l1_category` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.can_cancel` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.can_return` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.meta` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.department_id` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `item.l2_category_id` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `identifier` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `quantity` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `restore_promos` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.b2b_buyer_details.ajio_site_id` of schema `BuyerDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.formatted.max` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.formatted.min` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.debug_info.stormbreaker_uuid` of schema `DebugInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.return_awb_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.einvoice_info.credit_note` of schema `EinvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.einvoice_info.invoice` of schema `EinvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.return_affiliate_shipment_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.shipment_weight` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.dimension.height` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.dimension.width` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.dimension.is_default` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.dimension.unit` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.dimension.length` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.dp_options` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.assign_dp_from_sb` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.due_date` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.store_invoice_updated_date` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.forward_affiliate_shipment_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.return_store_node` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.shipment_tags[].slug` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.shipment_tags[].entity_type` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.shipment_tags[].display_text` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.external` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.awb_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.lock_data.locked` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.lock_data.mto` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.lock_data.lock_message` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.shipment_volumetric_weight` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.marketplace_store_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.return_details` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.dp_sort_key` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.packaging_name` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.timestamp.max` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.timestamp.min` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.auto_trigger_dp_assignment_acf` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.dp_name` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.po_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.forward_affiliate_order_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.return_affiliate_order_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.shipment_meta.bag_weight` of schema `ShipmentMeta` in response with status code 200 - - [Added] property `affiliate_details.shipment_meta.refund_to` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.affiliate_meta.order_item_id` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.affiliate_meta.employee_discount` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.affiliate_meta.quantity` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.affiliate_meta.loyalty_discount` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.affiliate_meta.is_priority` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.company_affiliate_tag` of schema `AffiliateDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.pdf_links.label_a6` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.pdf_links.invoice` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.pdf_links.label_pos` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.pdf_links.invoice_a6` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.pdf_links.b2b` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.pdf_links.label` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.pdf_links.label_a4` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.pdf_links.invoice_export` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.pdf_links.credit_note_url` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.pdf_links.delivery_challan_a4` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.pdf_links.label_export` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.pdf_links.invoice_a4` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.pdf_links.invoice_pos` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.pdf_links.po_invoice` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.affiliate_id` of schema `AffiliateDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `affiliate_details.ad_id` of schema `AffiliateDetails` in response with status code 200 - - [Added] property `affiliate_details.config` of schema `AffiliateDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `reasons` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status_history.store_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status_history.kafka_sync` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status_history.app_display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status_history.state_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status_history.state_type` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status_history.bsh_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status_history.created_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status_history.shipment_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status_history.updated_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status_history.bag_state_mapper.is_active` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status_history.bag_state_mapper.app_display_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status_history.bag_state_mapper.app_state_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status_history.bag_state_mapper.app_facing` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status_history.bag_state_mapper.notify_customer` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status_history.bag_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status_history.reasons` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `bag_status_history.display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `display_name` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `type` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `line_number` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `restore_coupon` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `meta.gift_card.gift_message` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `meta.gift_card.gift_price` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `meta.gift_card.display_text` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `meta.gift_card.is_gift_applied` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `meta.custom_message` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `meta.docket_number` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `meta.group_id` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `meta.partial_can_ret` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `meta.extra_meta` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `meta.b2b_po_details.docker_number` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `meta.b2b_po_details.po_line_amount` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `meta.b2b_po_details.total_gst_percentage` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `meta.b2b_po_details.partial_can_ret` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `meta.b2b_po_details.po_tax_amount` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `meta.b2b_po_details.item_base_price` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `meta.custom_json` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `no_of_bags_order` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `applied_promos` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `journey_type` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.refund_credit` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.amount_paid_roundoff` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.price_effective` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.promotion_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.pm_price_split` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.refund_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.transfer_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.coupon_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.tax_collected_at_source` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.brand_calculated_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.delivery_charge` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.cashback` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.value_of_good` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.cashback_applied` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.cod_charges` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.price_marked` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.amount_paid` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.coupon_value` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.fynd_credits` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `prices.gift_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `dates.order_created` of schema `Dates` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `shipment_id` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_status.store_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_status.kafka_sync` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_status.app_display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_status.state_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_status.state_type` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_status.bsh_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_status.created_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_status.shipment_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_status.updated_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_status.bag_state_mapper.is_active` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_status.bag_state_mapper.app_display_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_status.bag_state_mapper.app_state_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_status.bag_state_mapper.app_facing` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_status.bag_state_mapper.notify_customer` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_status.bag_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_status.reasons` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `current_status.display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `operational_status` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `entity_type` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 5XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 5XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 5XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 5XX - -- ##### What's Deprecated - - [Deleted] Required status from property `gst_details.cgst_gst_fee` in response with status code 200 - - [Deleted] Required status from property `gst_details.cgst_tax_percentage` in response with status code 200 - - [Deleted] Required status from property `gst_details.gst_tag` in response with status code 200 - - [Deleted] Required status from property `gst_details.gst_tax_percentage` in response with status code 200 - - [Deleted] Required status from property `gst_details.hsn_code` in response with status code 200 - - [Deleted] Required status from property `gst_details.hsn_code_id` in response with status code 200 - - [Deleted] Required status from property `gst_details.igst_gst_fee` in response with status code 200 - - [Deleted] Required status from property `gst_details.igst_tax_percentage` in response with status code 200 - - [Deleted] Required status from property `gst_details.sgst_gst_fee` in response with status code 200 - - [Deleted] Required status from property `gst_details.sgst_tax_percentage` in response with status code 200 - -- ##### What's Changed - - [Breaking] [Changed] Type from `string` to `number` of property `gst_details.cgst_gst_fee` of schema `BagGSTDetails` in response with status code 200 - - [Breaking] [Changed] Type from `string` to `number` of property `gst_details.igst_gst_fee` of schema `BagGSTDetails` in response with status code 200 - - [Breaking] [Changed] Type from `string` to `number` of property `gst_details.sgst_gst_fee` of schema `BagGSTDetails` in response with status code 200 - - -#### getBags - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_update_time` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].id` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].gst_details.cgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].gst_details.cgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].gst_details.igst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].gst_details.gst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].gst_details.hsn_code_id` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].gst_details.igst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].gst_details.sgst_gst_fee` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].gst_details.is_default_hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].gst_details.gst_tag` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].gst_details.sgst_tax_percentage` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].gst_details.hsn_code` of schema `GSTDetailsData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].parent_promo_bags` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].tags` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].financial_breakup[].amount_paid_roundoff` of schema `FinancialBreakup` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].financial_breakup[].tax_collected_at_source` of schema `FinancialBreakup` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].financial_breakup[].identifiers.alu` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].financial_breakup[].identifiers.ean` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].financial_breakup[].identifiers.sku_code` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].financial_breakup[].identifiers.upc` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].financial_breakup[].identifiers.isbn` of schema `Identifier` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status[].store_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status[].kafka_sync` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status[].app_display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status[].state_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status[].state_type` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status[].bsh_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status[].created_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status[].shipment_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status[].updated_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status[].bag_state_mapper.is_active` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status[].bag_state_mapper.app_display_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status[].bag_state_mapper.app_state_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status[].bag_state_mapper.app_facing` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status[].bag_state_mapper.notify_customer` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status[].bag_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status[].reasons` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status[].display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].seller_identifier` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].original_bag_list` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].article_details.status` of schema `ArticleDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_operational_status.store_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_operational_status.kafka_sync` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_operational_status.app_display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_operational_status.state_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_operational_status.state_type` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_operational_status.bsh_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_operational_status.created_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_operational_status.shipment_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_operational_status.updated_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_operational_status.bag_state_mapper.is_active` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_operational_status.bag_state_mapper.app_display_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_operational_status.bag_state_mapper.app_state_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_operational_status.bag_state_mapper.app_facing` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_operational_status.bag_state_mapper.notify_customer` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_operational_status.bag_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_operational_status.reasons` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_operational_status.display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.is_active` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.alohomora_user_id` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.is_enabled_for_recon` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.brand_store_tags` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.order_integration_id` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.parent_store_id` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.code` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.store_address_json.version` of schema `StoreAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.store_address_json.area` of schema `StoreAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.store_address_json.email` of schema `StoreAddress` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.meta.additional_contact_details` of schema `StoreMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.meta.timing` of schema `StoreMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.meta.notification_emails` of schema `StoreMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.meta.gst_number` of schema `StoreMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.meta.ewaybill_portal_details` of schema `StoreMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.meta.einvoice_portal_details.username` of schema `EInvoicePortalDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.meta.einvoice_portal_details.user` of schema `EInvoicePortalDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.meta.einvoice_portal_details.password` of schema `EInvoicePortalDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.meta.gst_credentials.e_invoice.username` of schema `StoreEinvoice` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.meta.gst_credentials.e_invoice.user` of schema `StoreEinvoice` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.meta.gst_credentials.e_invoice.password` of schema `StoreEinvoice` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.meta.gst_credentials.e_waybill.enabled` of schema `StoreEwaybill` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.meta.product_return_config` of schema `StoreMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.meta.documents.gst.url` of schema `Document` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.packaging_material_count` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.is_archived` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].ordering_store.address2` of schema `Store` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].article.dimensions.height` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].article.dimensions.width` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].article.dimensions.is_default` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].article.dimensions.unit` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].article.dimensions.length` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].article.code` of schema `Article` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].article.weight.is_default` of schema `Weight` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].article.weight.shipping` of schema `Weight` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].article.weight.unit` of schema `Weight` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].article.is_set` of schema `Article` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].brand.logo` of schema `Brand` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].brand.credit_note_allowed` of schema `Brand` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].brand.created_on` of schema `Brand` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].brand.modified_on` of schema `Brand` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_bag_details.affiliate_meta.order_item_id` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_bag_details.affiliate_meta.employee_discount` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_bag_details.affiliate_meta.quantity` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_bag_details.affiliate_meta.loyalty_discount` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_bag_details.affiliate_meta.is_priority` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_bag_details.employee_discount` of schema `AffiliateBagDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_bag_details.loyalty_discount` of schema `AffiliateBagDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.attributes.primary_material` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.attributes.essential` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.attributes.marketer_name` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.attributes.primary_color` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.attributes.marketer_address` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.attributes.primary_color_hex` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.attributes.brand_name` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.attributes.name` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.attributes.gender` of schema `Attributes` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.l3_category` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.l3_category_name` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.last_updated_at` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.l2_category` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.code` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.l1_category_id` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.l1_category` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.can_cancel` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.can_return` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.meta` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.department_id` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].item.l2_category_id` of schema `Item` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].identifier` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].quantity` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].restore_promos` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.b2b_buyer_details.ajio_site_id` of schema `BuyerDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.formatted.max` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.formatted.min` of schema `Formatted` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.debug_info.stormbreaker_uuid` of schema `DebugInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.return_awb_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.einvoice_info.credit_note` of schema `EinvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.einvoice_info.invoice` of schema `EinvoiceInfo` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.return_affiliate_shipment_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.shipment_weight` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.dimension.height` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.dimension.width` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.dimension.is_default` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.dimension.unit` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.dimension.length` of schema `Dimensions` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.dp_options` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.assign_dp_from_sb` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.due_date` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.store_invoice_updated_date` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.forward_affiliate_shipment_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.return_store_node` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.shipment_tags[].slug` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.shipment_tags[].entity_type` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.shipment_tags[].display_text` of schema `ShipmentTags` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.external` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.awb_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.lock_data.locked` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.lock_data.mto` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.lock_data.lock_message` of schema `LockData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.shipment_volumetric_weight` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.marketplace_store_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.return_details` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.dp_sort_key` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.packaging_name` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.timestamp.max` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.timestamp.min` of schema `ShipmentTimeStamp` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.auto_trigger_dp_assignment_acf` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.dp_name` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.po_number` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.forward_affiliate_order_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.return_affiliate_order_id` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.shipment_meta.bag_weight` of schema `ShipmentMeta` in response with status code 200 - - [Added] property `items[].affiliate_details.shipment_meta.refund_to` of schema `ShipmentMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.affiliate_meta.order_item_id` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.affiliate_meta.employee_discount` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.affiliate_meta.quantity` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.affiliate_meta.loyalty_discount` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.affiliate_meta.is_priority` of schema `AffiliateMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.company_affiliate_tag` of schema `AffiliateDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.pdf_links.label_a6` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.pdf_links.invoice` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.pdf_links.label_pos` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.pdf_links.invoice_a6` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.pdf_links.b2b` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.pdf_links.label` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.pdf_links.label_a4` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.pdf_links.invoice_export` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.pdf_links.credit_note_url` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.pdf_links.delivery_challan_a4` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.pdf_links.label_export` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.pdf_links.invoice_a4` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.pdf_links.invoice_pos` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.pdf_links.po_invoice` of schema `PDFLinks` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.affiliate_id` of schema `AffiliateDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].affiliate_details.ad_id` of schema `AffiliateDetails` in response with status code 200 - - [Added] property `items[].affiliate_details.config` of schema `AffiliateDetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].reasons` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status_history.store_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status_history.kafka_sync` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status_history.app_display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status_history.state_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status_history.state_type` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status_history.bsh_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status_history.created_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status_history.shipment_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status_history.updated_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status_history.bag_state_mapper.is_active` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status_history.bag_state_mapper.app_display_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status_history.bag_state_mapper.app_state_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status_history.bag_state_mapper.app_facing` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status_history.bag_state_mapper.notify_customer` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status_history.bag_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status_history.reasons` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].bag_status_history.display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].display_name` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].type` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].line_number` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].restore_coupon` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.gift_card.gift_message` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.gift_card.gift_price` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.gift_card.display_text` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.gift_card.is_gift_applied` of schema `GiftCard` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.custom_message` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.docket_number` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.group_id` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.partial_can_ret` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.extra_meta` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.b2b_po_details.docker_number` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.b2b_po_details.po_line_amount` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.b2b_po_details.total_gst_percentage` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.b2b_po_details.partial_can_ret` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.b2b_po_details.po_tax_amount` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.b2b_po_details.item_base_price` of schema `B2BPODetails` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].meta.custom_json` of schema `BagMeta` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].no_of_bags_order` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].applied_promos` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].journey_type` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.refund_credit` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.amount_paid_roundoff` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.price_effective` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.promotion_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.pm_price_split` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.refund_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.transfer_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.coupon_effective_discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.tax_collected_at_source` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.brand_calculated_amount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.delivery_charge` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.cashback` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.value_of_good` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.cashback_applied` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.cod_charges` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.price_marked` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.amount_paid` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.coupon_value` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.discount` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.fynd_credits` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].prices.gift_price` of schema `Prices` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].dates.order_created` of schema `Dates` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].shipment_id` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_status.store_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_status.kafka_sync` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_status.app_display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_status.state_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_status.state_type` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_status.bsh_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_status.created_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_status.shipment_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_status.updated_at` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_status.bag_state_mapper.is_active` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_status.bag_state_mapper.app_display_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_status.bag_state_mapper.app_state_name` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_status.bag_state_mapper.app_facing` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_status.bag_state_mapper.notify_customer` of schema `BagStateMapper` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_status.bag_id` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_status.reasons` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].current_status.display_name` of schema `BagStatusHistory` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].operational_status` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `items[].entity_type` of schema `BagDetailsPlatformResponse` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 4XX - - [Breaking] [Added] Possible nullable value `true` to property `status` of schema `ErrorResponse` in response with status code 5XX - - [Breaking] [Added] Possible nullable value `true` to property `success` of schema `ErrorResponse` in response with status code 5XX - - [Breaking] [Added] Possible nullable value `true` to property `message` of schema `ErrorResponse` in response with status code 5XX - - [Breaking] [Added] Possible nullable value `true` to property `error_trace` of schema `ErrorResponse` in response with status code 5XX - -- ##### What's Deprecated - - [Deleted] Required status from property `items[].gst_details.cgst_gst_fee` in response with status code 200 - - [Deleted] Required status from property `items[].gst_details.cgst_tax_percentage` in response with status code 200 - - [Deleted] Required status from property `items[].gst_details.gst_tag` in response with status code 200 - - [Deleted] Required status from property `items[].gst_details.gst_tax_percentage` in response with status code 200 - - [Deleted] Required status from property `items[].gst_details.hsn_code` in response with status code 200 - - [Deleted] Required status from property `items[].gst_details.hsn_code_id` in response with status code 200 - - [Deleted] Required status from property `items[].gst_details.igst_gst_fee` in response with status code 200 - - [Deleted] Required status from property `items[].gst_details.igst_tax_percentage` in response with status code 200 - - [Deleted] Required status from property `items[].gst_details.sgst_gst_fee` in response with status code 200 - - [Deleted] Required status from property `items[].gst_details.sgst_tax_percentage` in response with status code 200 - -- ##### What's Changed - - [Breaking] [Changed] Type from `string` to `number` of property `items[].gst_details.cgst_gst_fee` of schema `BagGSTDetails` in response with status code 200 - - [Breaking] [Changed] Type from `string` to `number` of property `items[].gst_details.igst_gst_fee` of schema `BagGSTDetails` in response with status code 200 - - [Breaking] [Changed] Type from `string` to `number` of property `items[].gst_details.sgst_gst_fee` of schema `BagGSTDetails` in response with status code 200 # CHANGE LOG (1.3.3) - fp-v1.8.2 diff --git a/README.md b/README.md index 8209ce8f4..95e183557 100644 --- a/README.md +++ b/README.md @@ -214,7 +214,7 @@ console.log("Active Theme: ", response.information.name); The above code will log the curl command in the console ```bash -curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer ' --header 'x-fp-sdk-version: 1.3.3' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8' +curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer ' --header 'x-fp-sdk-version: 1.3.4' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8' Active Theme: Emerge ``` diff --git a/dist/application.js b/dist/application.js index 9e549a935..a6cdf8a96 100644 --- a/dist/application.js +++ b/dist/application.js @@ -1 +1 @@ -(()=>{var e={469:(e,t,r)=>{const{ApplicationConfig:a,ApplicationClient:n,ApplicationModel:o}=r(911);e.exports={ApplicationConfig:a,ApplicationClient:n,ApplicationModel:o}},5113:e=>{var t;self,t=()=>(()=>{var e={249:function(e,t,r){var a;e.exports=(a=a||function(e,t){var a;if("undefined"!=typeof window&&window.crypto&&(a=window.crypto),"undefined"!=typeof self&&self.crypto&&(a=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(a=globalThis.crypto),!a&&"undefined"!=typeof window&&window.msCrypto&&(a=window.msCrypto),!a&&void 0!==r.g&&r.g.crypto&&(a=r.g.crypto),!a)try{a=r(480)}catch(e){}var n=function(){if(a){if("function"==typeof a.getRandomValues)try{return a.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof a.randomBytes)try{return a.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},i=s.lib={},l=i.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=i.WordArray=l.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,a=this.sigBytes,n=e.sigBytes;if(this.clamp(),a%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[a+o>>>2]|=s<<24-(a+o)%4*8}else for(var i=0;i>>2]=r[i>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-n%4*8&255;a.push((o>>>4).toString(16)),a.push((15&o).toString(16))}return a.join("")},parse:function(e){for(var t=e.length,r=[],a=0;a>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new c.init(r,t/2)}},p=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,a=[],n=0;n>>2]>>>24-n%4*8&255;a.push(String.fromCharCode(o))}return a.join("")},parse:function(e){for(var t=e.length,r=[],a=0;a>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new c.init(r,t)}},g=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},m=i.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=g.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,a=this._data,n=a.words,o=a.sigBytes,s=this.blockSize,i=o/(4*s),l=(i=t?e.ceil(i):e.max((0|i)-this._minBufferSize,0))*s,u=e.min(4*l,o);if(l){for(var d=0;da&&(t=e.finalize(t)),t.clamp();for(var n=this._oKey=t.clone(),s=this._iKey=t.clone(),i=n.words,l=s.words,c=0;c>>7)^(m<<14|m>>>18)^m>>>3,y=c[g-2],f=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;c[g]=w+c[g-7]+f+c[g-16]}var b=a&n^a&o^n&o,h=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),_=p+((i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25))+(i&u^~i&d)+l[g]+c[g];p=d,d=u,u=i,i=s+_|0,s=o,o=n,n=a,a=_+(h+b)|0}r[0]=r[0]+a|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+i|0,r[5]=r[5]+u|0,r[6]=r[6]+d|0,r[7]=r[7]+p|0},_doFinalize:function(){var t=this._data,r=t.words,a=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(a/4294967296),r[15+(n+64>>>9<<4)]=a,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),a.SHA256)},335:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,a,n,o){a=a||"&",n=n||"=";var s={};if("string"!=typeof e||0===e.length)return s;var i=/\+/g;e=e.split(a);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u=0?(d=w.substr(0,y),p=w.substr(y+1)):(d=w,p=""),g=decodeURIComponent(d),m=decodeURIComponent(p),t(s,g)?r(s[g])?s[g].push(m):s[g]=[s[g],m]:s[g]=m}return s};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},795:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,s,i){return o=o||"&",s=s||"=",null===e&&(e=void 0),"object"==typeof e?a(n(e),(function(n){var i=encodeURIComponent(t(n))+s;return r(e[n])?a(e[n],(function(e){return i+encodeURIComponent(t(e))})).join(o):i+encodeURIComponent(t(e[n]))})).join(o):i?encodeURIComponent(t(i))+s+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var r=[],a=0;a{"use strict";t.decode=t.parse=r(335),t.encode=t.stringify=r(795)},832:function(e,t,r){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(735)),o=r(601),s=r(593),i=function(){function e(e,t){if(!t)throw new Error("Signature secrete cannot be null, pass secret parameter in constructor.");this.secret=t;var r=e.headers=e.headers||{};this.request=e,!e.method&&e.body&&(e.method="POST"),r.Host||r.host||(r.Host=e.hostname||e.host,e.port&&(r.Host+=":"+e.port)),e.hostname||e.host||(e.hostname=r.Host||r.host)}return e.prototype.prepareRequest=function(){this.parsePath();var e,t=this.request,r=t.headers;t.signQuery?(this.parsedPath.query=e=this.parsedPath.query||{},e["x-fp-date"]?this.datetime=e["x-fp-date"]:e["x-fp-date"]=this.getDateTime()):(t.doNotModifyHeaders||(r["x-fp-date"]?this.datetime=r["x-fp-date"]||r["x-fp-date"]:r["x-fp-date"]=this.getDateTime()),delete r["x-fp-signature"],delete r["X-Fp-Signature"])},e.prototype.sign=function(){return this.parsedPath||this.prepareRequest(),this.request.signQuery?this.parsedPath.query["x-fp-signature"]=this.signature():this.request.headers["x-fp-signature"]=this.signature(),this.request.path=this.formatPath(),this.request},e.prototype.getDateTime=function(){if(!this.datetime){var e=this.request.headers,t=new Date(e.Date||e.date||new Date);this.datetime=t.toISOString().replace(/[:\-]|\.\d{3}/g,"")}return this.datetime},e.prototype.getDate=function(){return this.getDateTime().substr(0,8)},e.prototype.signature=function(){var e=this.stringToSign();return"v1.1:".concat((0,s.hmac)(this.secret,e,"hex"))},e.prototype.stringToSign=function(){return[this.getDateTime(),(0,s.hash)(this.canonicalString(),"hex")].join("\n")},e.prototype.canonicalString=function(){this.parsedPath||this.prepareRequest();var e=this.parsedPath.path,t=this.parsedPath.query,r=(this.request.headers,""),a=this.request.doNotEncodePath,n=(0,s.hash)(this.request.body||"","hex");if(t){var o=Object.keys(t).reduce((function(e,r){return r?(e[(0,s.encodeRfc3986Full)(r)]=(Array.isArray(t[r]),t[r]),e):e}),{}),i=[];Object.keys(o).sort().forEach((function(e){Array.isArray(o[e])?o[e].map(s.encodeRfc3986Full).sort().forEach((function(t){i.push(e+"="+t)})):i.push(e+"="+(0,s.encodeRfc3986Full)(o[e]))})),r=i.join("&")}return"/"!==e&&"/"!==(e=(e=e.replace(/\/{2,}/g,"/")).split("/").reduce((function(e,t){return".."===t?e.pop():"."!==t&&(a&&(t=decodeURIComponent(t.replace(/\+/g," "))),e.push((0,s.encodeRfc3986Full)(t))),e}),[]).join("/"))[0]&&(e="/"+e),[this.request.method||"GET",e,r,this.canonicalHeaders()+"\n",this.signedHeaders(),n].join("\n")},e.prototype.canonicalHeaders=function(){var e=this.request.headers;return Object.keys(e).filter((function(e){if(null==o.HEADERS_TO_IGNORE[e.toLowerCase()]){var t=!1;for(var r in o.HEADERS_TO_INCLUDE)t=t||new RegExp(o.HEADERS_TO_INCLUDE[r],"ig").test(e);return t}return!1})).sort((function(e,t){return e.toLowerCase()=0&&(r=n.default.parse(e.slice(t+1)),e=e.slice(0,t)),e=e.split("/").map((function(e){return encodeURIComponent(decodeURIComponent(e))})).join("/"),this.parsedPath={path:e,query:r}},e.prototype.formatPath=function(){var e=this.parsedPath.path,t=this.parsedPath.query;return t?(null!=t[""]&&delete t[""],e+"?"+(0,s.encodeRfc3986)(n.default.stringify(t))):e},e}();t.default=i},601:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HEADERS_TO_INCLUDE=t.HEADERS_TO_IGNORE=void 0,t.HEADERS_TO_IGNORE={authorization:!0,connection:!0,"x-amzn-trace-id":!0,"user-agent":!0,expect:!0,"presigned-expires":!0,range:!0},t.HEADERS_TO_INCLUDE=["x-fp-.*","host"]},607:function(e,t,r){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sign=void 0;var n=a(r(832));t.sign=function(e,t){return new n.default(e,t).sign()}},593:function(e,t,r){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.encodeRfc3986Full=t.encodeRfc3986=t.hash=t.hmac=void 0;var n=a(r(153)),o=a(r(10));t.hmac=function(e,t,r){return(0,o.default)(t,e).toString()},t.hash=function(e,t){return(0,n.default)(e).toString()},t.encodeRfc3986=function(e){return e.replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))},t.encodeRfc3986Full=function(e){return e}},480:()=>{}},t={};function r(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a].call(o.exports,o,o.exports,r),o.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r(607)})(),e.exports=t()},9669:(e,t,r)=>{e.exports=r(1609)},5448:(e,t,r)=>{"use strict";var a=r(4867),n=r(6026),o=r(4372),s=r(5327),i=r(4097),l=r(4109),c=r(7985),u=r(7874),d=r(2648),p=r(644),g=r(205);e.exports=function(e){return new Promise((function(t,r){var m,w=e.data,y=e.headers,f=e.responseType;function b(){e.cancelToken&&e.cancelToken.unsubscribe(m),e.signal&&e.signal.removeEventListener("abort",m)}a.isFormData(w)&&a.isStandardBrowserEnv()&&delete y["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(_+":"+v)}var k=i(e.baseURL,e.url);function R(){if(h){var a="getAllResponseHeaders"in h?l(h.getAllResponseHeaders()):null,o={data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:a,config:e,request:h};n((function(e){t(e),b()}),(function(e){r(e),b()}),o),h=null}}if(h.open(e.method.toUpperCase(),s(k,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=R:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(R)},h.onabort=function(){h&&(r(new d("Request aborted",d.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new d("Network Error",d.ERR_NETWORK,e,h,h)),h=null},h.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",a=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new d(t,a.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,h)),h=null},a.isStandardBrowserEnv()){var P=(e.withCredentials||c(k))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;P&&(y[e.xsrfHeaderName]=P)}"setRequestHeader"in h&&a.forEach(y,(function(e,t){void 0===w&&"content-type"===t.toLowerCase()?delete y[t]:h.setRequestHeader(t,e)})),a.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),f&&"json"!==f&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(m=function(e){h&&(r(!e||e&&e.type?new p:e),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(m),e.signal&&(e.signal.aborted?m():e.signal.addEventListener("abort",m))),w||(w=null);var C=g(k);C&&-1===["http","https","file"].indexOf(C)?r(new d("Unsupported protocol "+C+":",d.ERR_BAD_REQUEST,e)):h.send(w)}))}},1609:(e,t,r)=>{"use strict";var a=r(4867),n=r(1849),o=r(321),s=r(7185),i=function e(t){var r=new o(t),i=n(o.prototype.request,r);return a.extend(i,o.prototype,r),a.extend(i,r),i.create=function(r){return e(s(t,r))},i}(r(5546));i.Axios=o,i.CanceledError=r(644),i.CancelToken=r(4972),i.isCancel=r(6502),i.VERSION=r(7288).version,i.toFormData=r(7675),i.AxiosError=r(2648),i.Cancel=i.CanceledError,i.all=function(e){return Promise.all(e)},i.spread=r(8713),i.isAxiosError=r(6268),e.exports=i,e.exports.default=i},4972:(e,t,r)=>{"use strict";var a=r(644);function n(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,a=r._listeners.length;for(t=0;t{"use strict";var a=r(2648);function n(e){a.call(this,null==e?"canceled":e,a.ERR_CANCELED),this.name="CanceledError"}r(4867).inherits(n,a,{__CANCEL__:!0}),e.exports=n},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,r)=>{"use strict";var a=r(4867),n=r(5327),o=r(782),s=r(3572),i=r(7185),l=r(4097),c=r(4875),u=c.validators;function d(e){this.defaults=e,this.interceptors={request:new o,response:new o}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=i(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var a=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!n){var d=[s,void 0];for(Array.prototype.unshift.apply(d,a),d=d.concat(l),o=Promise.resolve(t);d.length;)o=o.then(d.shift(),d.shift());return o}for(var p=t;a.length;){var g=a.shift(),m=a.shift();try{p=g(p)}catch(e){m(e);break}}try{o=s(p)}catch(e){return Promise.reject(e)}for(;l.length;)o=o.then(l.shift(),l.shift());return o},d.prototype.getUri=function(e){e=i(this.defaults,e);var t=l(e.baseURL,e.url);return n(t,e.params,e.paramsSerializer)},a.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,r){return this.request(i(r||{},{method:e,url:t,data:(r||{}).data}))}})),a.forEach(["post","put","patch"],(function(e){function t(t){return function(r,a,n){return this.request(i(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:a}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},2648:(e,t,r)=>{"use strict";var a=r(4867);function n(e,t,r,a,n){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),a&&(this.request=a),n&&(this.response=n)}a.inherits(n,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=n.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(n,s),Object.defineProperty(o,"isAxiosError",{value:!0}),n.from=function(e,t,r,s,i,l){var c=Object.create(o);return a.toFlatObject(e,c,(function(e){return e!==Error.prototype})),n.call(c,e.message,t,r,s,i),c.name=e.name,l&&Object.assign(c,l),c},e.exports=n},782:(e,t,r)=>{"use strict";var a=r(4867);function n(){this.handlers=[]}n.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},n.prototype.forEach=function(e){a.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=n},4097:(e,t,r)=>{"use strict";var a=r(1793),n=r(7303);e.exports=function(e,t){return e&&!a(t)?n(e,t):t}},3572:(e,t,r)=>{"use strict";var a=r(4867),n=r(8527),o=r(6502),s=r(5546),i=r(644);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new i}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=n.call(e,e.data,e.headers,e.transformRequest),e.headers=a.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),a.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return l(e),t.data=n.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=n.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},7185:(e,t,r)=>{"use strict";var a=r(4867);e.exports=function(e,t){t=t||{};var r={};function n(e,t){return a.isPlainObject(e)&&a.isPlainObject(t)?a.merge(e,t):a.isPlainObject(t)?a.merge({},t):a.isArray(t)?t.slice():t}function o(r){return a.isUndefined(t[r])?a.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function s(e){if(!a.isUndefined(t[e]))return n(void 0,t[e])}function i(r){return a.isUndefined(t[r])?a.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function l(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l};return a.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,n=t(e);a.isUndefined(n)&&t!==l||(r[e]=n)})),r}},6026:(e,t,r)=>{"use strict";var a=r(2648);e.exports=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new a("Request failed with status code "+r.status,[a.ERR_BAD_REQUEST,a.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},8527:(e,t,r)=>{"use strict";var a=r(4867),n=r(5546);e.exports=function(e,t,r){var o=this||n;return a.forEach(r,(function(r){e=r.call(o,e,t)})),e}},5546:(e,t,r)=>{"use strict";var a=r(4867),n=r(6016),o=r(2648),s=r(7874),i=r(7675),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!a.isUndefined(e)&&a.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,d={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=r(5448)),u),transformRequest:[function(e,t){if(n(t,"Accept"),n(t,"Content-Type"),a.isFormData(e)||a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e))return e;if(a.isArrayBufferView(e))return e.buffer;if(a.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,o=a.isObject(e),s=t&&t["Content-Type"];if((r=a.isFileList(e))||o&&"multipart/form-data"===s){var l=this.env&&this.env.FormData;return i(r?{"files[]":e}:e,l&&new l)}return o||"application/json"===s?(c(t,"application/json"),function(e,t,r){if(a.isString(e))try{return(0,JSON.parse)(e),a.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,s=!r&&"json"===this.responseType;if(s||n&&a.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(1623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){d.headers[e]=a.merge(l)})),e.exports=d},7874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.27.2"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),a=0;a{"use strict";var a=r(4867);function n(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(a.isURLSearchParams(t))o=t.toString();else{var s=[];a.forEach(t,(function(e,t){null!=e&&(a.isArray(e)?t+="[]":e=[e],a.forEach(e,(function(e){a.isDate(e)?e=e.toISOString():a.isObject(e)&&(e=JSON.stringify(e)),s.push(n(t)+"="+n(e))})))})),o=s.join("&")}if(o){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,r)=>{"use strict";var a=r(4867);e.exports=a.isStandardBrowserEnv()?{write:function(e,t,r,n,o,s){var i=[];i.push(e+"="+encodeURIComponent(t)),a.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),a.isString(n)&&i.push("path="+n),a.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,r)=>{"use strict";var a=r(4867);e.exports=function(e){return a.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,r)=>{"use strict";var a=r(4867);e.exports=a.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var a=e;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=a.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},6016:(e,t,r)=>{"use strict";var a=r(4867);e.exports=function(e,t){a.forEach(e,(function(r,a){a!==t&&a.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[a])}))}},1623:e=>{e.exports=null},4109:(e,t,r)=>{"use strict";var a=r(4867),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,s={};return e?(a.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=a.trim(e.substr(0,o)).toLowerCase(),r=a.trim(e.substr(o+1)),t){if(s[t]&&n.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([r]):s[t]?s[t]+", "+r:r}})),s):s}},205:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7675:(e,t,r)=>{"use strict";var a=r(4867);e.exports=function(e,t){t=t||new FormData;var r=[];function n(e){return null===e?"":a.isDate(e)?e.toISOString():a.isArrayBuffer(e)||a.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,s){if(a.isPlainObject(o)||a.isArray(o)){if(-1!==r.indexOf(o))throw Error("Circular reference detected in "+s);r.push(o),a.forEach(o,(function(r,o){if(!a.isUndefined(r)){var i,l=s?s+"."+o:o;if(r&&!s&&"object"==typeof r)if(a.endsWith(o,"{}"))r=JSON.stringify(r);else if(a.endsWith(o,"[]")&&(i=a.toArray(r)))return void i.forEach((function(e){!a.isUndefined(e)&&t.append(l,n(e))}));e(r,l)}})),r.pop()}else t.append(s,n(o))}(e),t}},4875:(e,t,r)=>{"use strict";var a=r(7288).version,n=r(2648),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var s={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+a+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,a,i){if(!1===e)throw new n(o(a," has been removed"+(t?" in "+t:"")),n.ERR_DEPRECATED);return t&&!s[a]&&(s[a]=!0,console.warn(o(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,a,i)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new n("options must be an object",n.ERR_BAD_OPTION_VALUE);for(var a=Object.keys(e),o=a.length;o-- >0;){var s=a[o],i=t[s];if(i){var l=e[s],c=void 0===l||i(l,s,e);if(!0!==c)throw new n("option "+s+" must be "+c,n.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new n("Unknown option "+s,n.ERR_BAD_OPTION)}},validators:o}},4867:(e,t,r)=>{"use strict";var a,n=r(1849),o=Object.prototype.toString,s=(a=Object.create(null),function(e){var t=o.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())});function i(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=i("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var g=i("Date"),m=i("File"),w=i("Blob"),y=i("FileList");function f(e){return"[object Function]"===o.call(e)}var b=i("URLSearchParams");function h(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var r=0,a=e.length;r0;)s[o=a[n]]||(t[o]=e[o],s[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:i,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var a=e.indexOf(t,r);return-1!==a&&a===r},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:v,isFileList:y}},3204:e=>{"use strict";const t=/[\p{Lu}]/u,r=/[\p{Ll}]/u,a=/^[\p{Lu}](?![\p{Lu}])/gu,n=/([\p{Alpha}\p{N}_]|$)/u,o=/[_.\- ]+/,s=new RegExp("^"+o.source),i=new RegExp(o.source+n.source,"gu"),l=new RegExp("\\d+"+n.source,"gu"),c=(e,n)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");if(n={pascalCase:!1,preserveConsecutiveUppercase:!1,...n},0===(e=Array.isArray(e)?e.map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim()).length)return"";const o=!1===n.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(n.locale),c=!1===n.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(n.locale);return 1===e.length?n.pascalCase?c(e):o(e):(e!==o(e)&&(e=((e,a,n)=>{let o=!1,s=!1,i=!1;for(let l=0;l(a.lastIndex=0,e.replace(a,(e=>t(e)))))(e,o):o(e),n.pascalCase&&(e=c(e.charAt(0))+e.slice(1)),((e,t)=>(i.lastIndex=0,l.lastIndex=0,e.replace(i,((e,r)=>t(r))).replace(l,(e=>t(e)))))(e,c))};e.exports=c,e.exports.default=c},4020:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),a=new RegExp("("+t+")+","gi");function n(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),a=e.slice(t);return Array.prototype.concat.call([],n(r),n(a))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r)||[],a=1;a{"use strict";e.exports=function(e,t){for(var r={},a=Object.keys(e),n=Array.isArray(t),o=0;o{var t;self,t=()=>{return e={7629:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(9474),s=r(1687),i=r(8652),l=r(8160),c=r(3292),u=r(6354),d=r(8901),p=r(9708),g=r(6914),m=r(2294),w=r(6133),y=r(1152),f=r(8863),b=r(2036),h={Base:class{constructor(e){this.type=e,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new m.Ids,this._preferences=null,this._refs=new w.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return a("function"==typeof p.describe,"Manifest functionality disabled"),p.describe(this)}allow(){for(var e=arguments.length,t=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return a(void 0!==e,"Missing example"),l.assertOptions(t,["override"]),this._inner("examples",e,{single:!0,override:t.override})}external(e,t){return"object"==typeof e&&(a(!t,"Cannot combine options with description"),t=e.description,e=e.method),a("function"==typeof e,"Method must be a function"),a(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this._inner("externals",{method:e,description:t},{single:!0})}failover(e,t){return this._default("failover",e,t)}forbidden(){return this.presence("forbidden")}id(e){return e?(a("string"==typeof e,"id must be a non-empty string"),a(/^[^\.]+$/.test(e),"id cannot contain period character"),this.$_setFlag("id",e)):this.$_setFlag("id",void 0)}invalid(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0])||arguments[0];return a("boolean"==typeof e,"Invalid mode:",e),this.$_setFlag("only",e)}optional(){return this.presence("optional")}prefs(e){a(e,"Missing preferences"),a(void 0===e.context,"Cannot override context"),a(void 0===e.externals,"Cannot override externals"),a(void 0===e.warnings,"Cannot override warnings"),a(void 0===e.debug,"Cannot override debug"),l.checkPreferences(e);const t=this.clone();return t._preferences=l.preferences(t._preferences,e),t}presence(e){return a(["optional","required","forbidden"].includes(e),"Unknown presence mode",e),this.$_setFlag("presence",e)}raw(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("result",e?"raw":void 0)}result(e){return a(["raw","strip"].includes(e),"Unknown result mode",e),this.$_setFlag("result",e)}required(){return this.presence("required")}strict(e){const t=this.clone(),r=void 0!==e&&!e;return t._preferences=l.preferences(t._preferences,{convert:r}),t}strip(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("result",e?"strip":void 0)}tag(){for(var e=arguments.length,t=new Array(e),r=0;re.keep||e.name!==r)),t._singleRules.delete(r));for(const r of e._rules)e._definition.rules[r.method].multi||t._singleRules.set(r.name,r),t._rules.push(r);if(t._flags.empty&&e._flags.empty){t._flags.empty=t._flags.empty.concat(e._flags.empty);const r=Object.assign({},e._flags);delete r.empty,s(t._flags,r)}else if(e._flags.empty){t._flags.empty=e._flags.empty;const r=Object.assign({},e._flags);delete r.empty,s(t._flags,r)}else s(t._flags,e._flags);for(const r in e.$_terms){const a=e.$_terms[r];a?t.$_terms[r]?t.$_terms[r]=t.$_terms[r].concat(a):t.$_terms[r]=a.slice():t.$_terms[r]||(t.$_terms[r]=a)}return this.$_root._tracer&&this.$_root._tracer._combine(t,[this,e]),t.$_mutateRebuild()}extend(e){return a(!e.base,"Cannot extend type with another base"),d.type(this,e)}extract(e){return e=Array.isArray(e)?e:e.split("."),this._ids.reach(e)}fork(e,t){a(!this._inRuleset(),"Cannot fork inside a ruleset");let r=this;for(let a of[].concat(e))a=Array.isArray(a)?a:a.split("."),r=r._ids.fork(a,t,r);return r.$_temp.ruleset=!1,r}rule(e){const t=this._definition;l.assertOptions(e,Object.keys(t.modifiers)),a(!1!==this.$_temp.ruleset,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");const r=null===this.$_temp.ruleset?this._rules.length-1:this.$_temp.ruleset;a(r>=0&&rt.tailor(e),ref:!1}),t.$_temp.ruleset=!1,t.$_mutateRebuild()}tracer(){return y.location?y.location(this):this}validate(e,t){return f.entry(e,this,t)}validateAsync(e,t){return f.entryAsync(e,this,t)}$_addRule(e){"string"==typeof e&&(e={name:e}),a(e&&"object"==typeof e,"Invalid options"),a(e.name&&"string"==typeof e.name,"Invalid rule name");for(const t in e)a("_"!==t[0],"Cannot set private rule properties");const t=Object.assign({},e);t._resolve=[],t.method=t.method||t.name;const r=this._definition.rules[t.method],n=t.args;a(r,"Unknown rule",t.method);const o=this.clone();if(n){a(1===Object.keys(n).length||Object.keys(n).length===this._definition.rules[t.name].args.length,"Invalid rule definition for",this.type,t.name);for(const e in n){let s=n[e];if(r.argsByName){const i=r.argsByName.get(e);if(i.ref&&l.isResolvable(s))t._resolve.push(e),o.$_mutateRegister(s);else if(i.normalize&&(s=i.normalize(s),n[e]=s),i.assert){const t=l.validateArg(s,e,i);a(!t,t,"or reference")}}void 0!==s?n[e]=s:delete n[e]}}return r.multi||(o._ruleRemove(t.name,{clone:!1}),o._singleRules.set(t.name,t)),!1===o.$_temp.ruleset&&(o.$_temp.ruleset=null),r.priority?o._rules.unshift(t):o._rules.push(t),o}$_compile(e,t){return c.schema(this.$_root,e,t)}$_createError(e,t,r,a,n){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const s=!1!==o.flags?this._flags:{},i=o.messages?g.merge(this._definition.messages,o.messages):this._definition.messages;return new u.Report(e,t,r,s,i,a,n)}$_getFlag(e){return this._flags[e]}$_getRule(e){return this._singleRules.get(e)}$_mapLabels(e){return e=Array.isArray(e)?e:e.split("."),this._ids.labels(e)}$_match(e,t,r,a){(r=Object.assign({},r)).abortEarly=!0,r._externals=!1,t.snapshot();const n=!f.validate(e,this,t,r,a).errors;return t.restore(),n}$_modify(e){return l.assertOptions(e,["each","once","ref","schema"]),m.schema(this,e)||this}$_mutateRebuild(){return a(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(e,t)=>{let{source:r,name:a,path:n,key:o}=t;const s=this._definition[r][a]&&this._definition[r][a].register;!1!==s&&this.$_mutateRegister(e,{family:s,key:o})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(e){let{family:t,key:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._refs.register(e,t),this._ids.register(e,{key:r})}$_property(e){return this._definition.properties[e]}$_reach(e){return this._ids.reach(e)}$_rootReferences(){return this._refs.roots()}$_setFlag(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a("_"===e[0]||!this._inRuleset(),"Cannot set flag inside a ruleset");const n=this._definition.flags[e]||{};if(o(t,n.default)&&(t=void 0),o(t,this._flags[e]))return this;const s=!1!==r.clone?this.clone():this;return void 0!==t?(s._flags[e]=t,s.$_mutateRegister(t)):delete s._flags[e],"_"!==e[0]&&(s.$_temp.ruleset=!1),s}$_parent(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:{};return l.assertOptions(r,"literal"),a(void 0!==t,"Missing",e,"value"),a("function"==typeof t||!r.literal,"Only function value supports literal option"),"function"==typeof t&&r.literal&&(t={[l.symbols.literal]:!0,literal:t}),this.$_setFlag(e,t)}_generate(e,t,r){if(!this.$_terms.whens)return{schema:this};const a=[],n=[];for(let o=0;oc)break}const o=n.join(", ");if(t.mainstay.tracer.debug(t,"rule","when",o),!o)return{schema:this};if(!t.mainstay.tracer.active&&this.$_temp.whens[o])return{schema:this.$_temp.whens[o],id:o};let s=this;this._definition.generate&&(s=this._definition.generate(this,e,t,r));for(const e of a)s=s.concat(e);return this.$_root._tracer&&this.$_root._tracer._combine(s,[this,...a]),this.$_temp.whens[o]=s,{schema:s,id:o}}_inner(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(!this._inRuleset(),`Cannot set ${e} inside a ruleset`);const n=this.clone();return n.$_terms[e]&&!r.override||(n.$_terms[e]=[]),r.single?n.$_terms[e].push(t):n.$_terms[e].push(...t),n.$_temp.ruleset=!1,n}_inRuleset(){return null!==this.$_temp.ruleset&&!1!==this.$_temp.ruleset}_ruleRemove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._singleRules.has(e))return this;const r=!1!==t.clone?this.clone():this;r._singleRules.delete(e);const a=[];for(let t=0;t{"use strict";const a=r(375),n=r(8571),o=r(8160),s={max:1e3,supported:new Set(["undefined","boolean","number","string"])};t.provider={provision:e=>new s.Cache(e)},s.Cache=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o.assertOptions(e,["max"]),a(void 0===e.max||e.max&&e.max>0&&isFinite(e.max),"Invalid max cache size"),this._max=e.max||s.max,this._map=new Map,this._list=new s.List}get length(){return this._map.size}set(e,t){if(null!==e&&!s.supported.has(typeof e))return;let r=this._map.get(e);if(r)return r.value=t,void this._list.first(r);r=this._list.unshift({key:e,value:t}),this._map.set(e,r),this._compact()}get(e){const t=this._map.get(e);if(t)return this._list.first(t),n(t.value)}_compact(){if(this._map.size>this._max){const e=this._list.pop();this._map.delete(e.key)}}},s.List=class{constructor(){this.tail=null,this.head=null}unshift(e){return e.next=null,e.prev=this.head,this.head&&(this.head.next=e),this.head=e,this.tail||(this.tail=e),e}first(e){e!==this.head&&(this._remove(e),this.unshift(e))}pop(){return this._remove(this.tail)}_remove(e){const{next:t,prev:r}=e;return t.prev=r,r&&(r.next=t),e===this.tail&&(this.tail=t),e.prev=null,e.next=null,e}}},8160:(e,t,r)=>{"use strict";const a=r(375),n=r(7916),o=r(5934);let s,i;const l={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};t.version=o.version,t.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},t.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},t.assertOptions=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Options";a(e&&"object"==typeof e&&!Array.isArray(e),"Options must be of type object");const n=Object.keys(e).filter((e=>!t.includes(e)));a(0===n.length,`${r} contain unknown keys: ${n}`)},t.checkPreferences=function(e){i=i||r(3378);const t=i.preferences.validate(e);if(t.error)throw new n([t.error.details[0].message])},t.compare=function(e,t,r){switch(r){case"=":return e===t;case">":return e>t;case"<":return e=":return e>=t;case"<=":return e<=t}},t.default=function(e,t){return void 0===e?t:e},t.isIsoDate=function(e){return l.isoDate.test(e)},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isResolvable=function(e){return!!e&&(e[t.symbols.ref]||e[t.symbols.template])},t.isSchema=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e&&e[t.symbols.any];return!!n&&(a(r.legacy||n.version===t.version,"Cannot mix different versions of joi schemas"),!0)},t.isValues=function(e){return e[t.symbols.values]},t.limit=function(e){return Number.isSafeInteger(e)&&e>=0},t.preferences=function(e,a){s=s||r(6914),e=e||{},a=a||{};const n=Object.assign({},e,a);return a.errors&&e.errors&&(n.errors=Object.assign({},e.errors,a.errors),n.errors.wrap=Object.assign({},e.errors.wrap,a.errors.wrap)),a.messages&&(n.messages=s.compile(a.messages,e.messages)),delete n[t.symbols.prefs],n},t.tryWithPath=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return e()}catch(e){throw void 0!==e.path?e.path=t+"."+e.path:e.path=t,r.append&&(e.message=`${e.message} (${e.path})`),e}},t.validateArg=function(e,r,a){let{assert:n,message:o}=a;if(t.isSchema(n)){const t=n.validate(e);if(!t.error)return;return t.error.message}if(!n(e))return r?`${r} ${o}`:o},t.verifyFlat=function(e,t){for(const r of e)a(!Array.isArray(r),"Method no longer accepts array arguments:",t)}},3292:(e,t,r)=>{"use strict";const a=r(375),n=r(8160),o=r(6133),s={};t.schema=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.assertOptions(r,["appendPath","override"]);try{return s.schema(e,t,r)}catch(e){throw r.appendPath&&void 0!==e.path&&(e.message=`${e.message} (${e.path})`),e}},s.schema=function(e,t,r){a(void 0!==t,"Invalid undefined schema"),Array.isArray(t)&&(a(t.length,"Invalid empty array schema"),1===t.length&&(t=t[0]));const o=function(t){for(var a=arguments.length,n=new Array(a>1?a-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:{};n.assertOptions(o,["legacy"]);const i=r&&r[n.symbols.any];if(i)return a(o.legacy||i.version===n.version,"Cannot mix different versions of joi schemas:",i.version,n.version),r;if("object"!=typeof r||!o.legacy)return t.schema(e,r,{appendPath:!0});const l=s.walk(r);return l?l.compile(l.root,r):t.schema(e,r,{appendPath:!0})},s.walk=function(e){if("object"!=typeof e)return null;if(Array.isArray(e)){for(const t of e){const e=s.walk(t);if(e)return e}return null}const t=e[n.symbols.any];if(t)return{root:e[t.root],compile:t.compile};a(Object.getPrototypeOf(e)===Object.getPrototypeOf({}),"Schema can only contain plain objects");for(const t in e){const r=s.walk(e[t]);if(r)return r}return null},s.simple=function(e){return null===e||["boolean","string","number"].includes(typeof e)},t.when=function(e,r,i){if(void 0===i&&(a(r&&"object"==typeof r,"Missing options"),i=r,r=o.create(".")),Array.isArray(i)&&(i={switch:i}),n.assertOptions(i,["is","not","then","otherwise","switch","break"]),n.isSchema(r))return a(void 0===i.is,'"is" can not be used with a schema condition'),a(void 0===i.not,'"not" can not be used with a schema condition'),a(void 0===i.switch,'"switch" can not be used with a schema condition'),s.condition(e,{is:r,then:i.then,otherwise:i.otherwise,break:i.break});if(a(o.isRef(r)||"string"==typeof r,"Invalid condition:",r),a(void 0===i.not||void 0===i.is,'Cannot combine "is" with "not"'),void 0===i.switch){let l=i;void 0!==i.not&&(l={is:i.not,then:i.otherwise,otherwise:i.then,break:i.break});let c=void 0!==l.is?e.$_compile(l.is):e.$_root.invalid(null,!1,0,"").required();return a(void 0!==l.then||void 0!==l.otherwise,'options must have at least one of "then", "otherwise", or "switch"'),a(void 0===l.break||void 0===l.then||void 0===l.otherwise,"Cannot specify then, otherwise, and break all together"),void 0===i.is||o.isRef(i.is)||n.isSchema(i.is)||(c=c.required()),s.condition(e,{ref:t.ref(r),is:c,then:l.then,otherwise:l.otherwise,break:l.break})}a(Array.isArray(i.switch),'"switch" must be an array'),a(void 0===i.is,'Cannot combine "switch" with "is"'),a(void 0===i.not,'Cannot combine "switch" with "not"'),a(void 0===i.then,'Cannot combine "switch" with "then"');const l={ref:t.ref(r),switch:[],break:i.break};for(let t=0;t{"use strict";const a=r(5688),n=r(8160),o=r(3328);t.Report=class{constructor(e,r,a,n,o,s,i){if(this.code=e,this.flags=n,this.messages=o,this.path=s.path,this.prefs=i,this.state=s,this.value=r,this.message=null,this.template=null,this.local=a||{},this.local.label=t.label(this.flags,this.state,this.prefs,this.messages),void 0===this.value||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){const e=this.path[this.path.length-1];"object"!=typeof e&&(this.local.key=e)}}_setTemplate(e){if(this.template=e,!this.flags.label&&0===this.path.length){const e=this._template(this.template,"root");e&&(this.local.label=e)}}toString(){if(this.message)return this.message;const e=this.code;if(!this.prefs.errors.render)return this.code;const t=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return void 0===t?`Error code "${e}" is not defined, your custom type is missing the correct messages definition`:(this.message=t.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(e,r){return t.template(this.value,e,r||this.code,this.state,this.prefs)}},t.path=function(e){let t="";for(const r of e)"object"!=typeof r&&("string"==typeof r?(t&&(t+="."),t+=r):t+=`[${r}]`);return t},t.template=function(e,t,r,a,s){if(!t)return;if(o.isTemplate(t))return"root"!==r?t:null;let i=s.errors.language;if(n.isResolvable(i)&&(i=i.resolve(e,a,s)),i&&t[i]){if(void 0!==t[i][r])return t[i][r];if(void 0!==t[i]["*"])return t[i]["*"]}return t[r]?t[r]:t["*"]},t.label=function(e,r,a,n){if(e.label)return e.label;if(!a.errors.label)return"";let o=r.path;return"key"===a.errors.label&&r.path.length>1&&(o=r.path.slice(-1)),t.path(o)||t.template(null,a.messages,"root",r,a)||n&&t.template(null,n,"root",r,a)||"value"},t.process=function(e,r,a){if(!e)return null;const{override:n,message:o,details:s}=t.details(e);if(n)return n;if(a.errors.stack)return new t.ValidationError(o,s,r);const i=Error.stackTraceLimit;Error.stackTraceLimit=0;const l=new t.ValidationError(o,s,r);return Error.stackTraceLimit=i,l},t.details=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];const a=[];for(const n of e){if(n instanceof Error){if(!1!==t.override)return{override:n};const e=n.toString();r.push(e),a.push({message:e,type:"override",context:{error:n}});continue}const e=n.toString();r.push(e),a.push({message:e,path:n.path.filter((e=>"object"!=typeof e)),type:n.code,context:n.local})}return r.length>1&&(r=[...new Set(r)]),{message:r.join(". "),details:a}},t.ValidationError=class extends Error{constructor(e,t,r){super(e),this._original=r,this.details=t}static isError(e){return e instanceof t.ValidationError}},t.ValidationError.prototype.isJoi=!0,t.ValidationError.prototype.name="ValidationError",t.ValidationError.prototype.annotate=a.error},8901:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(8160),s=r(6914),i={};t.type=function(e,t){const r=Object.getPrototypeOf(e),l=n(r),c=e._assign(Object.create(l)),u=Object.assign({},t);delete u.base,l._definition=u;const d=r._definition||{};u.messages=s.merge(d.messages,u.messages),u.properties=Object.assign({},d.properties,u.properties),c.type=u.type,u.flags=Object.assign({},d.flags,u.flags);const p=Object.assign({},d.terms);if(u.terms)for(const e in u.terms){const t=u.terms[e];a(void 0===c.$_terms[e],"Invalid term override for",u.type,e),c.$_terms[e]=t.init,p[e]=t}u.terms=p,u.args||(u.args=d.args),u.prepare=i.prepare(u.prepare,d.prepare),u.coerce&&("function"==typeof u.coerce&&(u.coerce={method:u.coerce}),u.coerce.from&&!Array.isArray(u.coerce.from)&&(u.coerce={method:u.coerce.method,from:[].concat(u.coerce.from)})),u.coerce=i.coerce(u.coerce,d.coerce),u.validate=i.validate(u.validate,d.validate);const g=Object.assign({},d.rules);if(u.rules)for(const e in u.rules){const t=u.rules[e];a("object"==typeof t,"Invalid rule definition for",u.type,e);let r=t.method;if(void 0===r&&(r=function(){return this.$_addRule(e)}),r&&(a(!l[e],"Rule conflict in",u.type,e),l[e]=r),a(!g[e],"Rule conflict in",u.type,e),g[e]=t,t.alias){const e=[].concat(t.alias);for(const r of e)l[r]=t.method}t.args&&(t.argsByName=new Map,t.args=t.args.map((e=>("string"==typeof e&&(e={name:e}),a(!t.argsByName.has(e.name),"Duplicated argument name",e.name),o.isSchema(e.assert)&&(e.assert=e.assert.strict().label(e.name)),t.argsByName.set(e.name,e),e))))}u.rules=g;const m=Object.assign({},d.modifiers);if(u.modifiers)for(const e in u.modifiers){a(!l[e],"Rule conflict in",u.type,e);const t=u.modifiers[e];a("function"==typeof t,"Invalid modifier definition for",u.type,e);const r=function(t){return this.rule({[e]:t})};l[e]=r,m[e]=t}if(u.modifiers=m,u.overrides){l._super=r,c.$_super={};for(const e in u.overrides)a(r[e],"Cannot override missing",e),u.overrides[e][o.symbols.parent]=r[e],c.$_super[e]=r[e].bind(c);Object.assign(l,u.overrides)}u.cast=Object.assign({},d.cast,u.cast);const w=Object.assign({},d.manifest,u.manifest);return w.build=i.build(u.manifest&&u.manifest.build,d.manifest&&d.manifest.build),u.manifest=w,u.rebuild=i.rebuild(u.rebuild,d.rebuild),c},i.build=function(e,t){return e&&t?function(r,a){return t(e(r,a),a)}:e||t},i.coerce=function(e,t){return e&&t?{from:e.from&&t.from?[...new Set([...e.from,...t.from])]:null,method(r,a){let n;if((!t.from||t.from.includes(typeof r))&&(n=t.method(r,a),n)){if(n.errors||void 0===n.value)return n;r=n.value}if(!e.from||e.from.includes(typeof r)){const t=e.method(r,a);if(t)return t}return n}}:e||t},i.prepare=function(e,t){return e&&t?function(r,a){const n=e(r,a);if(n){if(n.errors||void 0===n.value)return n;r=n.value}return t(r,a)||n}:e||t},i.rebuild=function(e,t){return e&&t?function(r){t(r),e(r)}:e||t},i.validate=function(e,t){return e&&t?function(r,a){const n=t(r,a);if(n){if(n.errors&&(!Array.isArray(n.errors)||n.errors.length))return n;r=n.value}return e(r,a)||n}:e||t}},5107:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(8652),s=r(8160),i=r(3292),l=r(6354),c=r(8901),u=r(9708),d=r(6133),p=r(3328),g=r(1152);let m;const w={types:{alternatives:r(4946),any:r(8068),array:r(546),boolean:r(4937),date:r(7500),function:r(390),link:r(8785),number:r(3832),object:r(8966),string:r(7417),symbol:r(8826)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){const e={_types:new Set(Object.keys(w.types))};for(const t of e._types)e[t]=function(){for(var e=arguments.length,r=new Array(e),n=0;n2?r-2:0),n=2;n2?r-2:0),n=2;n{"use strict";const a=r(375),n=r(8571),o=r(3328);t.compile=function(e,t){if("string"==typeof e)return a(!t,"Cannot set single message string"),new o(e);if(o.isTemplate(e))return a(!t,"Cannot set single message template"),e;a("object"==typeof e&&!Array.isArray(e),"Invalid message options"),t=t?n(t):{};for(let r in e){const n=e[r];if("root"===r||o.isTemplate(n)){t[r]=n;continue}if("string"==typeof n){t[r]=new o(n);continue}a("object"==typeof n&&!Array.isArray(n),"Invalid message for",r);const s=r;for(r in t[s]=t[s]||{},n){const e=n[r];"root"===r||o.isTemplate(e)?t[s][r]=e:(a("string"==typeof e,"Invalid message for",r,"in",s),t[s][r]=new o(e))}}return t},t.decompile=function(e){const t={};for(let r in e){const a=e[r];if("root"===r){t.root=a;continue}if(o.isTemplate(a)){t[r]=a.describe({compact:!0});continue}const n=r;for(r in t[n]={},a){const e=a[r];"root"!==r?t[n][r]=e.describe({compact:!0}):t[n].root=e}}return t},t.merge=function(e,r){if(!e)return t.compile(r);if(!r)return e;if("string"==typeof r)return new o(r);if(o.isTemplate(r))return r;const s=n(e);for(let e in r){const t=r[e];if("root"===e||o.isTemplate(t)){s[e]=t;continue}if("string"==typeof t){s[e]=new o(t);continue}a("object"==typeof t&&!Array.isArray(t),"Invalid message for",e);const n=e;for(e in s[n]=s[n]||{},t){const r=t[e];"root"===e||o.isTemplate(r)?s[n][e]=r:(a("string"==typeof r,"Invalid message for",e,"in",n),s[n][e]=new o(r))}}return s}},2294:(e,t,r)=>{"use strict";const a=r(375),n=r(8160),o=r(6133),s={};t.Ids=s.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){const e=new s.Ids;return e._byId=new Map(this._byId),e._byKey=new Map(this._byKey),e._schemaChain=this._schemaChain,e}concat(e){e._schemaChain&&(this._schemaChain=!0);for(const[t,r]of e._byId.entries())a(!this._byKey.has(t),"Schema id conflicts with existing key:",t),this._byId.set(t,r);for(const[t,r]of e._byKey.entries())a(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,r)}fork(e,t,r){const o=this._collect(e);o.push({schema:r});const i=o.shift();let l={id:i.id,schema:t(i.schema)};a(n.isSchema(l.schema),"adjuster function failed to return a joi schema type");for(const e of o)l={id:e.id,schema:s.fork(e.schema,l.id,l.schema)};return l.schema}labels(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=e[0],a=this._get(r);if(!a)return[...t,...e].join(".");const n=e.slice(1);return t=[...t,a.schema._flags.label||r],n.length?a.schema._ids.labels(n,t):t.join(".")}reach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=e[0],n=this._get(r);a(n,"Schema does not contain path",[...t,...e].join("."));const o=e.slice(1);return o.length?n.schema._ids.reach(o,[...t,r]):n.schema}register(e){let{key:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!n.isSchema(e))return;(e.$_property("schemaChain")||e._ids._schemaChain)&&(this._schemaChain=!0);const r=e._flags.id;if(r){const t=this._byId.get(r);a(!t||t.schema===e,"Cannot add different schemas with the same id:",r),a(!this._byKey.has(r),"Schema id conflicts with existing key:",r),this._byId.set(r,{schema:e,id:r})}t&&(a(!this._byKey.has(t),"Schema already contains key:",t),a(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,{schema:e,id:t}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const n=e[0],o=this._get(n);a(o,"Schema does not contain path",[...t,...e].join(".")),r=[o,...r];const s=e.slice(1);return s.length?o.schema._ids._collect(s,[...t,n],r):r}_get(e){return this._byId.get(e)||this._byKey.get(e)}},s.fork=function(e,r,a){const n=t.schema(e,{each:(e,t)=>{let{key:n}=t;if(r===(e._flags.id||n))return a},ref:!1});return n?n.$_mutateRebuild():e},t.schema=function(e,t){let r;for(const a in e._flags){if("_"===a[0])continue;const n=s.scan(e._flags[a],{source:"flags",name:a},t);void 0!==n&&(r=r||e.clone(),r._flags[a]=n)}for(let a=0;a{"use strict";const a=r(375),n=r(8571),o=r(9621),s=r(8160);let i;const l={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};t.create=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a("string"==typeof e,"Invalid reference key:",e),s.assertOptions(t,["adjust","ancestor","in","iterables","map","prefix","render","separator"]),a(!t.prefix||"object"==typeof t.prefix,"options.prefix must be of type object");const r=Object.assign({},l.defaults,t);delete r.prefix;const n=r.separator,o=l.context(e,n,t.prefix);if(r.type=o.type,e=o.key,"value"===r.type)if(o.root&&(a(!n||e[0]!==n,"Cannot specify relative path with root prefix"),r.ancestor="root",e||(e=null)),n&&n===e)e=null,r.ancestor=0;else if(void 0!==r.ancestor)a(!n||!e||e[0]!==n,"Cannot combine prefix with ancestor option");else{const[t,a]=l.ancestor(e,n);a&&""===(e=e.slice(a))&&(e=null),r.ancestor=t}return r.path=n?null===e?[]:e.split(n):[e],new l.Ref(r)},t.in=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.create(e,{...r,in:!0})},t.isRef=function(e){return!!e&&!!e[s.symbols.ref]},l.Ref=class{constructor(e){a("object"==typeof e,"Invalid reference construction"),s.assertOptions(e,["adjust","ancestor","in","iterables","map","path","render","separator","type","depth","key","root","display"]),a([!1,void 0].includes(e.separator)||"string"==typeof e.separator&&1===e.separator.length,"Invalid separator"),a(!e.adjust||"function"==typeof e.adjust,"options.adjust must be a function"),a(!e.map||Array.isArray(e.map),"options.map must be an array"),a(!e.map||!e.adjust,"Cannot set both map and adjust options"),Object.assign(this,l.defaults,e),a("value"===this.type||void 0===this.ancestor,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return a(!this.in||o.in,"Invalid in() reference usage"),"global"===this.type?this._resolve(r.context,t,o):"local"===this.type?this._resolve(n,t,o):this.ancestor?"root"===this.ancestor?this._resolve(t.ancestors[t.ancestors.length-1],t,o):(a(this.ancestor<=t.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(t.ancestors[this.ancestor-1],t,o)):this._resolve(e,t,o)}_resolve(e,t,r){let a;if("value"===this.type&&t.mainstay.shadow&&!1!==r.shadow&&(a=t.mainstay.shadow.get(this.absolute(t))),void 0===a&&(a=o(e,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(a=this.adjust(a)),this.map){const e=this.map.get(a);void 0!==e&&(a=e)}return t.mainstay&&t.mainstay.tracer.resolve(t,this,a),a}toString(){return this.display}absolute(e){return[...e.path.slice(0,-this.ancestor),...this.path]}clone(){return new l.Ref(this)}describe(){const e={path:this.path};"value"!==this.type&&(e.type=this.type),"."!==this.separator&&(e.separator=this.separator),"value"===this.type&&1!==this.ancestor&&(e.ancestor=this.ancestor),this.map&&(e.map=[...this.map]);for(const t of["adjust","iterables","render"])null!==this[t]&&void 0!==this[t]&&(e[t]=this[t]);return!1!==this.in&&(e.in=!0),{ref:e}}updateDisplay(){const e=null!==this.key?this.key:"";if("value"!==this.type)return void(this.display=`ref:${this.type}:${e}`);if(!this.separator)return void(this.display=`ref:${e}`);if(!this.ancestor)return void(this.display=`ref:${this.separator}${e}`);if("root"===this.ancestor)return void(this.display=`ref:root:${e}`);if(1===this.ancestor)return void(this.display=`ref:${e||".."}`);const t=new Array(this.ancestor+1).fill(this.separator).join("");this.display=`ref:${t}${e||""}`}},l.Ref.prototype[s.symbols.ref]=!0,t.build=function(e){return"value"===(e=Object.assign({},l.defaults,e)).type&&void 0===e.ancestor&&(e.ancestor=1),new l.Ref(e)},l.context=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e=e.trim(),r){const a=void 0===r.global?"$":r.global;if(a!==t&&e.startsWith(a))return{key:e.slice(a.length),type:"global"};const n=void 0===r.local?"#":r.local;if(n!==t&&e.startsWith(n))return{key:e.slice(n.length),type:"local"};const o=void 0===r.root?"/":r.root;if(o!==t&&e.startsWith(o))return{key:e.slice(o.length),type:"value",root:!0}}return{key:e,type:"value"}},l.ancestor=function(e,t){if(!t)return[1,0];if(e[0]!==t)return[1,0];if(e[1]!==t)return[0,1];let r=2;for(;e[r]===t;)++r;return[r-1,r]},t.toSibling=0,t.toParent=1,t.Manager=class{constructor(){this.refs=[]}register(e,a){if(e)if(a=void 0===a?t.toParent:a,Array.isArray(e))for(const t of e)this.register(t,a);else if(s.isSchema(e))for(const t of e._refs.refs)t.ancestor-a>=0&&this.refs.push({ancestor:t.ancestor-a,root:t.root});else t.isRef(e)&&"value"===e.type&&e.ancestor-a>=0&&this.refs.push({ancestor:e.ancestor-a,root:e.root}),i=i||r(3328),i.isTemplate(e)&&this.register(e.refs(),a)}get length(){return this.refs.length}clone(){const e=new t.Manager;return e.refs=n(this.refs),e}reset(){this.refs=[]}roots(){return this.refs.filter((e=>!e.ancestor)).map((e=>e.root))}}},3378:(e,t,r)=>{"use strict";const a=r(5107),n={};n.wrap=a.string().min(1).max(2).allow(!1),t.preferences=a.object({allowUnknown:a.boolean(),abortEarly:a.boolean(),artifacts:a.boolean(),cache:a.boolean(),context:a.object(),convert:a.boolean(),dateFormat:a.valid("date","iso","string","time","utc"),debug:a.boolean(),errors:{escapeHtml:a.boolean(),label:a.valid("path","key",!1),language:[a.string(),a.object().ref()],render:a.boolean(),stack:a.boolean(),wrap:{label:n.wrap,array:n.wrap,string:n.wrap}},externals:a.boolean(),messages:a.object(),noDefaults:a.boolean(),nonEnumerables:a.boolean(),presence:a.valid("required","optional","forbidden"),skipFunctions:a.boolean(),stripUnknown:a.object({arrays:a.boolean(),objects:a.boolean()}).or("arrays","objects").allow(!0,!1),warnings:a.boolean()}).strict(),n.nameRx=/^[a-zA-Z0-9]\w*$/,n.rule=a.object({alias:a.array().items(a.string().pattern(n.nameRx)).single(),args:a.array().items(a.string(),a.object({name:a.string().pattern(n.nameRx).required(),ref:a.boolean(),assert:a.alternatives([a.function(),a.object().schema()]).conditional("ref",{is:!0,then:a.required()}),normalize:a.function(),message:a.string().when("assert",{is:a.function(),then:a.required()})})),convert:a.boolean(),manifest:a.boolean(),method:a.function().allow(!1),multi:a.boolean(),validate:a.function()}),t.extension=a.object({type:a.alternatives([a.string(),a.object().regex()]).required(),args:a.function(),cast:a.object().pattern(n.nameRx,a.object({from:a.function().maxArity(1).required(),to:a.function().minArity(1).maxArity(2).required()})),base:a.object().schema().when("type",{is:a.object().regex(),then:a.forbidden()}),coerce:[a.function().maxArity(3),a.object({method:a.function().maxArity(3).required(),from:a.array().items(a.string()).single()})],flags:a.object().pattern(n.nameRx,a.object({setter:a.string(),default:a.any()})),manifest:{build:a.function().arity(2)},messages:[a.object(),a.string()],modifiers:a.object().pattern(n.nameRx,a.function().minArity(1).maxArity(2)),overrides:a.object().pattern(n.nameRx,a.function()),prepare:a.function().maxArity(3),rebuild:a.function().arity(1),rules:a.object().pattern(n.nameRx,n.rule),terms:a.object().pattern(n.nameRx,a.object({init:a.array().allow(null).required(),manifest:a.object().pattern(/.+/,[a.valid("schema","single"),a.object({mapped:a.object({from:a.string().required(),to:a.string().required()}).required()})])})),validate:a.function().maxArity(3)}).strict(),t.extensions=a.array().items(a.object(),a.function().arity(1)).strict(),n.desc={buffer:a.object({buffer:a.string()}),func:a.object({function:a.function().required(),options:{literal:!0}}),override:a.object({override:!0}),ref:a.object({ref:a.object({type:a.valid("value","global","local"),path:a.array().required(),separator:a.string().length(1).allow(!1),ancestor:a.number().min(0).integer().allow("root"),map:a.array().items(a.array().length(2)).min(1),adjust:a.function(),iterables:a.boolean(),in:a.boolean(),render:a.boolean()}).required()}),regex:a.object({regex:a.string().min(3)}),special:a.object({special:a.valid("deep").required()}),template:a.object({template:a.string().required(),options:a.object()}),value:a.object({value:a.alternatives([a.object(),a.array()]).required()})},n.desc.entity=a.alternatives([a.array().items(a.link("...")),a.boolean(),a.function(),a.number(),a.string(),n.desc.buffer,n.desc.func,n.desc.ref,n.desc.regex,n.desc.special,n.desc.template,n.desc.value,a.link("/")]),n.desc.values=a.array().items(null,a.boolean(),a.function(),a.number().allow(1/0,-1/0),a.string().allow(""),a.symbol(),n.desc.buffer,n.desc.func,n.desc.override,n.desc.ref,n.desc.regex,n.desc.template,n.desc.value),n.desc.messages=a.object().pattern(/.+/,[a.string(),n.desc.template,a.object().pattern(/.+/,[a.string(),n.desc.template])]),t.description=a.object({type:a.string().required(),flags:a.object({cast:a.string(),default:a.any(),description:a.string(),empty:a.link("/"),failover:n.desc.entity,id:a.string(),label:a.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:a.boolean(),unit:a.string()}).unknown(),preferences:{allowUnknown:a.boolean(),abortEarly:a.boolean(),artifacts:a.boolean(),cache:a.boolean(),convert:a.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:a.boolean(),label:["path","key"],language:[a.string(),n.desc.ref],wrap:{label:n.wrap,array:n.wrap}},externals:a.boolean(),messages:n.desc.messages,noDefaults:a.boolean(),nonEnumerables:a.boolean(),presence:["required","optional","forbidden"],skipFunctions:a.boolean(),stripUnknown:a.object({arrays:a.boolean(),objects:a.boolean()}).or("arrays","objects").allow(!0,!1),warnings:a.boolean()},allow:n.desc.values,invalid:n.desc.values,rules:a.array().min(1).items({name:a.string().required(),args:a.object().min(1),keep:a.boolean(),message:[a.string(),n.desc.messages],warn:a.boolean()}),keys:a.object().pattern(/.*/,a.link("/")),link:n.desc.ref}).pattern(/^[a-z]\w*$/,a.any())},493:(e,t,r)=>{"use strict";const a=r(8571),n=r(9621),o=r(8160),s={value:Symbol("value")};e.exports=s.State=class{constructor(e,t,r){this.path=e,this.ancestors=t,this.mainstay=r.mainstay,this.schemas=r.schemas,this.debug=null}localize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const a=new s.State(e,t,this);return r&&a.schemas&&(a.schemas=[s.schemas(r),...a.schemas]),a}nest(e,t){const r=new s.State(this.path,this.ancestors,this);return r.schemas=r.schemas&&[s.schemas(e),...r.schemas],r.debug=t,r}shadow(e,t){this.mainstay.shadow=this.mainstay.shadow||new s.Shadow,this.mainstay.shadow.set(this.path,e,t)}snapshot(){this.mainstay.shadow&&(this._snapshot=a(this.mainstay.shadow.node(this.path))),this.mainstay.snapshot()}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.restore()}commit(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.commit()}},s.schemas=function(e){return o.isSchema(e)?{schema:e}:e},s.Shadow=class{constructor(){this._values=null}set(e,t,r){if(!e.length)return;if("strip"===r&&"number"==typeof e[e.length-1])return;this._values=this._values||new Map;let a=this._values;for(let t=0;t{"use strict";const a=r(375),n=r(8571),o=r(5277),s=r(1447),i=r(8160),l=r(6354),c=r(6133),u={symbol:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join(""),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};e.exports=u.Template=class{constructor(e,t){if(a("string"==typeof e,"Template source must be a string"),a(!e.includes("\0")&&!e.includes(""),"Template source cannot contain reserved control characters"),this.source=e,this.rendered=e,this._template=null,t){const{functions:e,...r}=t;this._settings=Object.keys(r).length?n(r):void 0,this._functions=e,this._functions&&(a(Object.keys(this._functions).every((e=>"string"==typeof e)),"Functions keys must be strings"),a(Object.values(this._functions).every((e=>"function"==typeof e)),"Functions values must be functions"))}else this._settings=void 0,this._functions=void 0;this._parse()}_parse(){if(!this.source.includes("{"))return;const e=u.encode(this.source),t=u.split(e);let r=!1;const a=[],n=t.shift();n&&a.push(n);for(const e of t){const t="{"!==e[0],n=t?"}":"}}",o=e.indexOf(n);if(-1===o||"{"===e[1]){a.push(`{${u.decode(e)}`);continue}let s=e.slice(t?0:1,o);const i=":"===s[0];i&&(s=s.slice(1));const l=this._ref(u.decode(s),{raw:t,wrapped:i});a.push(l),"string"!=typeof l&&(r=!0);const c=e.slice(o+n.length);c&&a.push(u.decode(c))}r?this._template=a:this.rendered=a.join("")}static date(e,t){return u.dateFormat[t.dateFormat].call(e)}describe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._settings&&e.compact)return this.source;const t={template:this.source};return this._settings&&(t.options=this._settings),this._functions&&(t.functions=this._functions),t}static build(e){return new u.Template(e.template,e.options||e.functions?{...e.options,functions:e.functions}:void 0)}isDynamic(){return!!this._template}static isTemplate(e){return!!e&&!!e[i.symbols.template]}refs(){if(!this._template)return;const e=[];for(const t of this._template)"string"!=typeof t&&e.push(...t.refs);return e}resolve(e,t,r,a){return this._template&&1===this._template.length?this._part(this._template[0],e,t,r,a,{}):this.render(e,t,r,a)}_part(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a4&&void 0!==arguments[4]?arguments[4]:{};if(!this.isDynamic())return this.rendered;const s=[];for(const i of this._template)if("string"==typeof i)s.push(i);else{const l=this._part(i,e,t,r,a,n),c=u.stringify(l,e,t,r,a,n);if(void 0!==c){const e=i.raw||!1===(n.errors&&n.errors.escapeHtml)?c:o(c);s.push(u.wrap(e,i.wrapped&&r.errors.wrap.label))}}return s.join("")}_ref(e,t){let{raw:r,wrapped:a}=t;const n=[],o=e=>{const t=c.create(e,this._settings);return n.push(t),e=>{const r=t.resolve(...e);return void 0!==r?r:null}};try{const t=this._functions?{...u.functions,...this._functions}:u.functions;var i=new s.Parser(e,{reference:o,functions:t,constants:u.constants})}catch(t){throw t.message=`Invalid template variable "${e}" fails due to: ${t.message}`,t}if(i.single){if("reference"===i.single.type){const e=n[0];return{ref:e,raw:r,refs:n,wrapped:a||"local"===e.type&&"label"===e.key}}return u.stringify(i.single.value)}return{formula:i,raw:r,refs:n}}toString(){return this.source}},u.Template.prototype[i.symbols.template]=!0,u.Template.prototype.isImmutable=!0,u.encode=function(e){return e.replace(/\\(\{+)/g,((e,t)=>u.opens.slice(0,t.length))).replace(/\\(\}+)/g,((e,t)=>u.closes.slice(0,t.length)))},u.decode=function(e){return e.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},u.split=function(e){const t=[];let r="";for(let a=0;a5&&void 0!==arguments[5]?arguments[5]:{};const s=typeof e,i=a&&a.errors&&a.errors.wrap||{};let l=!1;if(c.isRef(e)&&e.render&&(l=e.in,e=e.resolve(t,r,a,n,{in:e.in,...o})),null===e)return"null";if("string"===s)return u.wrap(e,o.arrayItems&&i.string);if("number"===s||"function"===s||"symbol"===s)return e.toString();if("object"!==s)return JSON.stringify(e);if(e instanceof Date)return u.Template.date(e,a);if(e instanceof Map){const t=[];for(const[r,a]of e.entries())t.push(`${r.toString()} -> ${a.toString()}`);e=t}if(!Array.isArray(e))return e.toString();const d=[];for(const s of e)d.push(u.stringify(s,t,r,a,n,{arrayItems:!0,...o}));return u.wrap(d.join(", "),!l&&i.array)},u.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},u.functions={if:(e,t,r)=>e?t:r,length:e=>"string"==typeof e?e.length:e&&"object"==typeof e?Array.isArray(e)?e.length:Object.keys(e).length:null,msg(e){const[t,r,a,n,o]=this,s=o.messages;if(!s)return"";const i=l.template(t,s[0],e,r,a)||l.template(t,s[1],e,r,a);return i?i.render(t,r,a,n,o):""},number:e=>"number"==typeof e?e:"string"==typeof e?parseFloat(e):"boolean"==typeof e?e?1:0:e instanceof Date?e.getTime():null}},4946:(e,t,r)=>{"use strict";const a=r(375),n=r(1687),o=r(8068),s=r(8160),i=r(3292),l=r(6354),c=r(6133),u={};e.exports=o.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:c.toSibling}},args(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;al.details(e,{override:!1})))})};if("one"===r._flags.match)return 1===t.length?{value:t[0]}:{errors:a("alternatives.one")};if(t.length!==r.$_terms.matches.length)return{errors:a("alternatives.all",{details:i.map((e=>l.details(e,{override:!1})))})};const c=e=>e.$_terms.matches.some((e=>"object"===e.schema.type||"alternatives"===e.schema.type&&c(e.schema)));return c(r)?{value:t.reduce(((e,t)=>n(e,t,{mergeArrays:!1})))}:{value:t[t.length-1]}}const i=[];for(let t=0;t"is"!==r.path[0]?t.label(e):void 0,ref:!1})}},rebuild(e){e.$_modify({each:t=>{s.isSchema(t)&&"array"===t.type&&e.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(e,t){if(t.matches)for(const r of t.matches){const{schema:t,ref:a,is:n,not:o,then:s,otherwise:i}=r;e=t?e.try(t):a?e.conditional(a,{is:n,then:s,not:o,otherwise:i,switch:r.switch}):e.conditional(n,{then:s,otherwise:i})}return e}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),u.errors=function(e,t){let{error:r,state:a}=t;if(!e.length)return{errors:r("alternatives.any")};if(1===e.length)return{errors:e[0].reports};const n=new Set,o=[];for(const{reports:t,schema:s}of e){if(t.length>1)return u.unmatched(e,r);const i=t[0];if(i instanceof l.Report==0)return u.unmatched(e,r);if(i.state.path.length!==a.path.length){o.push({type:s.type,report:i});continue}if("any.only"===i.code){for(const e of i.local.valids)n.add(e);continue}const[c,d]=i.code.split(".");"base"===d?n.add(c):o.push({type:s.type,report:i})}return o.length?1===o.length?{errors:o[0].report}:u.unmatched(e,r):{errors:r("alternatives.types",{types:[...n]})}},u.unmatched=function(e,t){const r=[];for(const t of e)r.push(...t.reports);return{errors:t("alternatives.match",l.details(r,{override:!1}))}}},8068:(e,t,r)=>{"use strict";const a=r(375),n=r(7629),o=r(8160),s=r(6914);e.exports=n.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(e,t){return a("function"==typeof e,"Method must be a function"),a(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:e,description:t}})},validate(e,t,r){let{method:a}=r;try{return a(e,t)}catch(e){return t.error("any.custom",{error:e})}},args:["method","description"],multi:!0},messages:{method(e){return this.prefs({messages:e})}},shared:{method(e){a(o.isSchema(e)&&e._flags.id,"Schema must be a schema with an id");const t=this.clone();return t.$_terms.shared=t.$_terms.shared||[],t.$_terms.shared.push(e),t.$_mutateRegister(e),t}},warning:{method(e,t){return a(e&&"string"==typeof e,"Invalid warning code"),this.$_addRule({name:"warning",args:{code:e,local:t},warn:!0})},validate(e,t,r){let{code:a,local:n}=r;return t.error(a,n)},args:["code","local"],multi:!0}},modifiers:{keep(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.keep=t},message(e,t){e.message=s.compile(t)},warn(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.warn=t}},manifest:{build(e,t){for(const r in t){const a=t[r];if(["examples","externals","metas","notes","tags"].includes(r))for(const t of a)e=e[r.slice(0,-1)](t);else if("alterations"!==r)if("whens"!==r){if("shared"===r)for(const t of a)e=e.shared(t)}else for(const t of a){const{ref:r,is:a,not:n,then:o,otherwise:s,concat:i}=t;e=i?e.concat(i):r?e.when(r,{is:a,not:n,then:o,otherwise:s,switch:t.switch,break:t.break}):e.when(a,{then:o,otherwise:s,break:t.break})}else{const t={};for(const{target:e,adjuster:r}of a)t[e]=r;e=e.alter(t)}}return e}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},546:(e,t,r)=>{"use strict";const a=r(375),n=r(9474),o=r(9621),s=r(8068),i=r(8160),l=r(3292),c={};e.exports=s.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(e,t){let{schema:r,state:a,prefs:n}=t;if(!Array.isArray(e))return;const o=r.$_getRule("sort");return o?c.sort(r,e,o.args.options,a,n):void 0}},validate(e,t){let{schema:r,error:a}=t;if(!Array.isArray(e)){if(r._flags.single){const t=[e];return t[i.symbols.arraySingle]=!0,{value:t}}return{errors:a("array.base")}}if(r.$_getRule("items")||r.$_terms.externals)return{value:e.slice()}},rules:{has:{method(e){e=this.$_compile(e,{appendPath:!0});const t=this.$_addRule({name:"has",args:{schema:e}});return t.$_mutateRegister(e),t},validate(e,t,r){let{state:a,prefs:n,error:o}=t,{schema:s}=r;const i=[e,...a.ancestors];for(let t=0;tthis.$_compile(t[e])),e,{append:!0});a.$_terms.items.push(r)}return a.$_mutateRebuild()},validate(e,t){let{schema:r,error:a,state:n,prefs:o,errorsArray:s}=t;const l=r.$_terms._requireds.slice(),u=r.$_terms.ordered.slice(),d=[...r.$_terms._inclusions,...l],p=!e[i.symbols.arraySingle];delete e[i.symbols.arraySingle];const g=s();let m=e.length;for(let t=0;t="})}},ordered:{method(){for(var e=arguments.length,t=new Array(e),r=0;rthis.$_compile(t[e])),e,{append:!0});c.validateSingle(r,a),a.$_mutateRegister(r),a.$_terms.ordered.push(r)}return a.$_mutateRebuild()}},single:{method(e){const t=void 0===e||!!e;return a(!t||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",t)}},sort:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i.assertOptions(e,["by","order"]);const t={order:e.order||"ascending"};return e.by&&(t.by=l.ref(e.by,{ancestor:0}),a(!t.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:t}})},validate(e,t,r){let{error:a,state:n,prefs:o,schema:s}=t,{options:i}=r;const{value:l,errors:u}=c.sort(s,e,i,n,o);if(u)return u;for(let t=0;t1&&void 0!==arguments[1]?arguments[1]:{};a(!e||"function"==typeof e||"string"==typeof e,"comparator must be a function or a string"),i.assertOptions(t,["ignoreUndefined","separator"]);const r={name:"unique",args:{options:t,comparator:e}};if(e)if("string"==typeof e){const a=i.default(t.separator,".");r.path=a?e.split(a):[e]}else r.comparator=e;return this.$_addRule(r)},validate(e,t,r,s){let{state:i,error:l,schema:c}=t,{comparator:u,options:d}=r,{comparator:p,path:g}=s;const m={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),object:new Map,function:new Map,custom:new Map},w=p||n,y=d.ignoreUndefined;for(let t=0;tnew Set(e)}},rebuild(e){e.$_terms._inclusions=[],e.$_terms._exclusions=[],e.$_terms._requireds=[];for(const t of e.$_terms.items)c.validateSingle(t,e),"required"===t._flags.presence?e.$_terms._requireds.push(t):"forbidden"===t._flags.presence?e.$_terms._exclusions.push(t):e.$_terms._inclusions.push(t);for(const t of e.$_terms.ordered)c.validateSingle(t,e)},manifest:{build:(e,t)=>(t.items&&(e=e.items(...t.items)),t.ordered&&(e=e.ordered(...t.ordered)),e)},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),c.fillMissedErrors=function(e,t,r,a,n,o){const s=[];let i=0;for(const e of r){const t=e._flags.label;t?s.push(t):++i}s.length?i?t.push(e.$_createError("array.includesRequiredBoth",a,{knownMisses:s,unknownMisses:i},n,o)):t.push(e.$_createError("array.includesRequiredKnowns",a,{knownMisses:s},n,o)):t.push(e.$_createError("array.includesRequiredUnknowns",a,{unknownMisses:i},n,o))},c.fillOrderedErrors=function(e,t,r,a,n,o){const s=[];for(const e of r)"required"===e._flags.presence&&s.push(e);s.length&&c.fillMissedErrors(e,t,s,a,n,o)},c.fillDefault=function(e,t,r,a){const n=[];let o=!0;for(let s=e.length-1;s>=0;--s){const i=e[s],l=[t,...r.ancestors],c=i.$_validate(void 0,r.localize(r.path,l,i),a).value;if(o){if(void 0===c)continue;o=!1}n.unshift(c)}n.length&&t.push(...n)},c.fastSplice=function(e,t){let r=t;for(;r{let d=c.compare(l,u,s,i);if(null!==d)return d;if(r.by&&(l=r.by.resolve(l,a,n),u=r.by.resolve(u,a,n)),d=c.compare(l,u,s,i),null!==d)return d;const p=typeof l;if(p!==typeof u)throw e.$_createError("array.sort.mismatching",t,null,a,n);if("number"!==p&&"string"!==p)throw e.$_createError("array.sort.unsupported",t,{type:p},a,n);return"number"===p?(l-u)*o:l{"use strict";const a=r(375),n=r(8068),o=r(8160),s=r(2036),i={isBool:function(e){return"boolean"==typeof e}};e.exports=n.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(e,t){let{schema:r}=t;if("boolean"!=typeof e){if("string"==typeof e){const t=r._flags.sensitive?e:e.toLowerCase();e="true"===t||"false"!==t&&e}return"boolean"!=typeof e&&(e=r.$_terms.truthy&&r.$_terms.truthy.has(e,null,null,!r._flags.sensitive)||(!r.$_terms.falsy||!r.$_terms.falsy.has(e,null,null,!r._flags.sensitive))&&e),{value:e}}},validate(e,t){let{error:r}=t;if("boolean"!=typeof e)return{value:e,errors:r("boolean.base")}},rules:{truthy:{method(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("sensitive",e)}}},cast:{number:{from:i.isBool,to:(e,t)=>e?1:0},string:{from:i.isBool,to:(e,t)=>e?"true":"false"}},manifest:{build:(e,t)=>(t.truthy&&(e=e.truthy(...t.truthy)),t.falsy&&(e=e.falsy(...t.falsy)),e)},messages:{"boolean.base":"{{#label}} must be a boolean"}})},7500:(e,t,r)=>{"use strict";const a=r(375),n=r(8068),o=r(8160),s=r(3328),i={isDate:function(e){return e instanceof Date}};e.exports=n.extend({type:"date",coerce:{from:["number","string"],method(e,t){let{schema:r}=t;return{value:i.parse(e,r._flags.format)||e}}},validate(e,t){let{schema:r,error:a,prefs:n}=t;if(e instanceof Date&&!isNaN(e.getTime()))return;const o=r._flags.format;return n.convert&&o&&"string"==typeof e?{value:e,errors:a("date.format",{format:o})}:{value:e,errors:a("date.base")}},rules:{compare:{method:!1,validate(e,t,r,a){let{date:n}=r,{name:s,operator:i,args:l}=a;const c="now"===n?Date.now():n.getTime();return o.compare(e.getTime(),c,i)?e:t.error("date."+s,{limit:l.date,value:e})},args:[{name:"date",ref:!0,normalize:e=>"now"===e?e:i.parse(e),assert:e=>null!==e,message:"must have a valid date format"}]},format:{method(e){return a(["iso","javascript","unix"].includes(e),"Unknown date format",e),this.$_setFlag("format",e)}},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{date:e},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{date:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{date:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{date:e},operator:">="})}},timestamp:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"javascript";return a(["javascript","unix"].includes(e),'"type" must be one of "javascript, unix"'),this.format(e)}}},cast:{number:{from:i.isDate,to:(e,t)=>e.getTime()},string:{from:i.isDate,to(e,t){let{prefs:r}=t;return s.date(e,r)}}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),i.parse=function(e,t){if(e instanceof Date)return e;if("string"!=typeof e&&(isNaN(e)||!isFinite(e)))return null;if(/^\s*$/.test(e))return null;if("iso"===t)return o.isIsoDate(e)?i.date(e.toString()):null;const r=e;if("string"==typeof e&&/^[+-]?\d+(\.\d+)?$/.test(e)&&(e=parseFloat(e)),t){if("javascript"===t)return i.date(1*e);if("unix"===t)return i.date(1e3*e);if("string"==typeof r)return null}return i.date(e)},i.date=function(e){const t=new Date(e);return isNaN(t.getTime())?null:t}},390:(e,t,r)=>{"use strict";const a=r(375),n=r(7824);e.exports=n.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(e){return a(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:e}})},validate(e,t,r){let{n:a}=r;return e.length===a?e:t.error("function.arity",{n:a})}},class:{method(){return this.$_addRule("class")},validate:(e,t)=>/^\s*class\s/.test(e.toString())?e:t.error("function.class",{value:e})},minArity:{method(e){return a(Number.isSafeInteger(e)&&e>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:e}})},validate(e,t,r){let{n:a}=r;return e.length>=a?e:t.error("function.minArity",{n:a})}},maxArity:{method(e){return a(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:e}})},validate(e,t,r){let{n:a}=r;return e.length<=a?e:t.error("function.maxArity",{n:a})}}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},7824:(e,t,r)=>{"use strict";const a=r(978),n=r(375),o=r(8571),s=r(3652),i=r(8068),l=r(8160),c=r(3292),u=r(6354),d=r(6133),p=r(3328),g={renameDefaults:{alias:!1,multiple:!1,override:!1}};e.exports=i.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:!1}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(e,t)=>e.keys(t),validate(e,t){let{schema:r,error:a,state:n,prefs:o}=t;if(!e||typeof e!==r.$_property("typeof")||Array.isArray(e))return{value:e,errors:a("object.base",{type:r.$_property("typeof")})};if(!(r.$_terms.renames||r.$_terms.dependencies||r.$_terms.keys||r.$_terms.patterns||r.$_terms.externals))return;e=g.clone(e,o);const s=[];if(r.$_terms.renames&&!g.rename(r,e,n,o,s))return{value:e,errors:s};if(!r.$_terms.keys&&!r.$_terms.patterns&&!r.$_terms.dependencies)return{value:e,errors:s};const i=new Set(Object.keys(e));if(r.$_terms.keys){const t=[e,...n.ancestors];for(const a of r.$_terms.keys){const r=a.key,l=e[r];i.delete(r);const c=n.localize([...n.path,r],t,a),u=a.schema.$_validate(l,c,o);if(u.errors){if(o.abortEarly)return{value:e,errors:u.errors};void 0!==u.value&&(e[r]=u.value),s.push(...u.errors)}else"strip"===a.schema._flags.result||void 0===u.value&&void 0!==l?delete e[r]:void 0!==u.value&&(e[r]=u.value)}}if(i.size||r._flags._hasPatternMatch){const t=g.unknown(r,e,i,s,n,o);if(t)return t}if(r.$_terms.dependencies)for(const t of r.$_terms.dependencies){if(null!==t.key&&!1===g.isPresent(t.options)(t.key.resolve(e,n,o,null,{shadow:!1})))continue;const a=g.dependencies[t.rel](r,t,e,n,o);if(a){const t=r.$_createError(a.code,e,a.context,n,o);if(o.abortEarly)return{value:e,errors:t};s.push(t)}}return{value:e,errors:s}},rules:{and:{method(){for(var e=arguments.length,t=new Array(e),r=0;r!e.hasOwnProperty(t.key))):new g.Keys;for(const r in e)l.tryWithPath((()=>t.$_terms.keys.push({key:r,schema:this.$_compile(e[r])})),r)}else t.$_terms.keys=new g.Keys;else t.$_terms.keys=null;return t.$_mutateRebuild()}},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate(e,t,r,a){let{limit:n}=r,{name:o,operator:s,args:i}=a;return l.compare(Object.keys(e).length,n,s)?e:t.error("object."+o,{limit:i.limit,value:e})},args:[{name:"limit",ref:!0,assert:l.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},nand:{method(){for(var e=arguments.length,t=new Array(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};const a=e instanceof RegExp;a||(e=this.$_compile(e,{appendPath:!0})),n(void 0!==t,"Invalid rule"),l.assertOptions(r,["fallthrough","matches"]),a&&n(!e.flags.includes("g")&&!e.flags.includes("y"),"pattern should not use global or sticky mode"),t=this.$_compile(t,{appendPath:!0});const o=this.clone();o.$_terms.patterns=o.$_terms.patterns||[];const s={[a?"regex":"schema"]:e,rule:t};return r.matches&&(s.matches=this.$_compile(r.matches),"array"!==s.matches.type&&(s.matches=s.matches.$_root.array().items(s.matches)),o.$_mutateRegister(s.matches),o.$_setFlag("_hasPatternMatch",!0,{clone:!1})),r.fallthrough&&(s.fallthrough=!0),o.$_terms.patterns.push(s),o.$_mutateRegister(t),o}},ref:{method(){return this.$_addRule("ref")},validate:(e,t)=>d.isRef(e)?e:t.error("object.refType",{value:e})},regex:{method(){return this.$_addRule("regex")},validate:(e,t)=>e instanceof RegExp?e:t.error("object.regex",{value:e})},rename:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n("string"==typeof e||e instanceof RegExp,"Rename missing the from argument"),n("string"==typeof t||t instanceof p,"Invalid rename to argument"),n(t!==e,"Cannot rename key to same name:",e),l.assertOptions(r,["alias","ignoreUndefined","override","multiple"]);const o=this.clone();o.$_terms.renames=o.$_terms.renames||[];for(const t of o.$_terms.renames)n(t.from!==e,"Cannot rename the same key multiple times");return t instanceof p&&o.$_mutateRegister(t),o.$_terms.renames.push({from:e,to:t,options:a(g.renameDefaults,r)}),o}},schema:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return this.$_addRule({name:"schema",args:{type:e}})},validate(e,t,r){let{type:a}=r;return!l.isSchema(e)||"any"!==a&&e.type!==a?t.error("object.schema",{type:a}):e}},unknown:{method(e){return this.$_setFlag("unknown",!1!==e)}},with:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return g.dependency(this,"with",e,t,r)}},without:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return g.dependency(this,"without",e,t,r)}},xor:{method(){for(var e=arguments.length,t=new Array(e),r=0;rt.add(r,{after:r.schema.$_rootReferences(),group:r.key})),r.key);e.$_terms.keys=new g.Keys(...t.nodes)}},manifest:{build(e,t){if(t.keys&&(e=e.keys(t.keys)),t.dependencies)for(const{rel:r,key:a=null,peers:n,options:o}of t.dependencies)e=g.dependency(e,r,a,n,o);if(t.patterns)for(const{regex:r,schema:a,rule:n,fallthrough:o,matches:s}of t.patterns)e=e.pattern(r||a,n,{fallthrough:o,matches:s});if(t.renames)for(const{from:r,to:a,options:n}of t.renames)e=e.rename(r,a,n);return e}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),g.clone=function(e,t){if("object"==typeof e){if(t.nonEnumerables)return o(e,{shallow:!0});const r=Object.create(Object.getPrototypeOf(e));return Object.assign(r,e),r}const r=function(){for(var t=arguments.length,r=new Array(t),a=0;a1&&"object"==typeof a[a.length-1]?a.pop():{}),l.assertOptions(o,["separator","isPresent"]),a=[].concat(a);const s=l.default(o.separator,"."),i=[];for(const e of a)n("string"==typeof e,t,"peers must be strings"),i.push(c.ref(e,{separator:s,ancestor:0,prefix:!1}));null!==r&&(r=c.ref(r,{separator:s,ancestor:0,prefix:!1}));const u=e.clone();return u.$_terms.dependencies=u.$_terms.dependencies||[],u.$_terms.dependencies.push(new g.Dependency(t,r,i,a,o)),u},g.dependencies={and(e,t,r,a,n){const o=[],s=[],i=t.peers.length,l=g.isPresent(t.options);for(const e of t.peers)!1===l(e.resolve(r,a,n,null,{shadow:!1}))?o.push(e.key):s.push(e.key);if(o.length!==i&&s.length!==i)return{code:"object.and",context:{present:s,presentWithLabels:g.keysToLabels(e,s),missing:o,missingWithLabels:g.keysToLabels(e,o)}}},nand(e,t,r,a,n){const o=[],s=g.isPresent(t.options);for(const e of t.peers)s(e.resolve(r,a,n,null,{shadow:!1}))&&o.push(e.key);if(o.length!==t.peers.length)return;const i=t.paths[0],l=t.paths.slice(1);return{code:"object.nand",context:{main:i,mainWithLabel:g.keysToLabels(e,i),peers:l,peersWithLabels:g.keysToLabels(e,l)}}},or(e,t,r,a,n){const o=g.isPresent(t.options);for(const e of t.peers)if(o(e.resolve(r,a,n,null,{shadow:!1})))return;return{code:"object.missing",context:{peers:t.paths,peersWithLabels:g.keysToLabels(e,t.paths)}}},oxor(e,t,r,a,n){const o=[],s=g.isPresent(t.options);for(const e of t.peers)s(e.resolve(r,a,n,null,{shadow:!1}))&&o.push(e.key);if(!o.length||1===o.length)return;const i={peers:t.paths,peersWithLabels:g.keysToLabels(e,t.paths)};return i.present=o,i.presentWithLabels=g.keysToLabels(e,o),{code:"object.oxor",context:i}},with(e,t,r,a,n){const o=g.isPresent(t.options);for(const s of t.peers)if(!1===o(s.resolve(r,a,n,null,{shadow:!1})))return{code:"object.with",context:{main:t.key.key,mainWithLabel:g.keysToLabels(e,t.key.key),peer:s.key,peerWithLabel:g.keysToLabels(e,s.key)}}},without(e,t,r,a,n){const o=g.isPresent(t.options);for(const s of t.peers)if(o(s.resolve(r,a,n,null,{shadow:!1})))return{code:"object.without",context:{main:t.key.key,mainWithLabel:g.keysToLabels(e,t.key.key),peer:s.key,peerWithLabel:g.keysToLabels(e,s.key)}}},xor(e,t,r,a,n){const o=[],s=g.isPresent(t.options);for(const e of t.peers)s(e.resolve(r,a,n,null,{shadow:!1}))&&o.push(e.key);if(1===o.length)return;const i={peers:t.paths,peersWithLabels:g.keysToLabels(e,t.paths)};return 0===o.length?{code:"object.missing",context:i}:(i.present=o,i.presentWithLabels=g.keysToLabels(e,o),{code:"object.xor",context:i})}},g.keysToLabels=function(e,t){return Array.isArray(t)?t.map((t=>e.$_mapLabels(t))):e.$_mapLabels(t)},g.isPresent=function(e){return"function"==typeof e.isPresent?e.isPresent:e=>void 0!==e},g.rename=function(e,t,r,a,n){const o={};for(const s of e.$_terms.renames){const i=[],l="string"!=typeof s.from;if(l)for(const e in t){if(void 0===t[e]&&s.options.ignoreUndefined)continue;if(e===s.to)continue;const r=s.from.exec(e);r&&i.push({from:e,to:s.to,match:r})}else!Object.prototype.hasOwnProperty.call(t,s.from)||void 0===t[s.from]&&s.options.ignoreUndefined||i.push(s);for(const c of i){const i=c.from;let u=c.to;if(u instanceof p&&(u=u.render(t,r,a,c.match)),i!==u){if(!s.options.multiple&&o[u]&&(n.push(e.$_createError("object.rename.multiple",t,{from:i,to:u,pattern:l},r,a)),a.abortEarly))return!1;if(Object.prototype.hasOwnProperty.call(t,u)&&!s.options.override&&!o[u]&&(n.push(e.$_createError("object.rename.override",t,{from:i,to:u,pattern:l},r,a)),a.abortEarly))return!1;void 0===t[i]?delete t[u]:t[u]=t[i],o[u]=!0,s.options.alias||delete t[i]}}}return!0},g.unknown=function(e,t,r,a,n,o){if(e.$_terms.patterns){let s=!1;const i=e.$_terms.patterns.map((e=>{if(e.matches)return s=!0,[]})),l=[t,...n.ancestors];for(const s of r){const c=t[s],u=[...n.path,s];for(let d=0;d{"use strict";const a=r(375),n=r(8068),o=r(8160),s=r(3292),i=r(6354),l={};e.exports=n.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(e,t)=>e.ref(t),validate(e,t){let{schema:r,state:n,prefs:o}=t;a(r.$_terms.link,"Uninitialized link schema");const s=l.generate(r,e,n,o),i=r.$_terms.link[0].ref;return s.$_validate(e,n.nest(s,`link:${i.display}:${s.type}`),o)},generate:(e,t,r,a)=>l.generate(e,t,r,a),rules:{ref:{method(e){a(!this.$_terms.link,"Cannot reinitialize schema"),e=s.ref(e),a("value"===e.type||"local"===e.type,"Invalid reference type:",e.type),a("local"===e.type||"root"===e.ancestor||e.ancestor>0,"Link cannot reference itself");const t=this.clone();return t.$_terms.link=[{ref:e}],t}},relative:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("relative",e)}}},overrides:{concat(e){a(this.$_terms.link,"Uninitialized link schema"),a(o.isSchema(e),"Invalid schema object"),a("link"!==e.type,"Cannot merge type link with another link");const t=this.clone();return t.$_terms.whens||(t.$_terms.whens=[]),t.$_terms.whens.push({concat:e}),t.$_mutateRebuild()}},manifest:{build:(e,t)=>(a(t.link,"Invalid link description missing link"),e.ref(t.link))}}),l.generate=function(e,t,r,a){let n=r.mainstay.links.get(e);if(n)return n._generate(t,r,a).schema;const o=e.$_terms.link[0].ref,{perspective:s,path:i}=l.perspective(o,r);l.assert(s,"which is outside of schema boundaries",o,e,r,a);try{n=i.length?s.$_reach(i):s}catch(t){l.assert(!1,"to non-existing schema",o,e,r,a)}return l.assert("link"!==n.type,"which is another link",o,e,r,a),e._flags.relative||r.mainstay.links.set(e,n),n._generate(t,r,a).schema},l.perspective=function(e,t){if("local"===e.type){for(const{schema:r,key:a}of t.schemas){if((r._flags.id||a)===e.path[0])return{perspective:r,path:e.path.slice(1)};if(r.$_terms.shared)for(const t of r.$_terms.shared)if(t._flags.id===e.path[0])return{perspective:t,path:e.path.slice(1)}}return{perspective:null,path:null}}return"root"===e.ancestor?{perspective:t.schemas[t.schemas.length-1].schema,path:e.path}:{perspective:t.schemas[e.ancestor]&&t.schemas[e.ancestor].schema,path:e.path}},l.assert=function(e,t,r,n,o,s){e||a(!1,`"${i.label(n._flags,o,s)}" contains link reference "${r.display}" ${t}`)}},3832:(e,t,r)=>{"use strict";const a=r(375),n=r(8068),o=r(8160),s={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,exponentialPartRegex:/[eE][+-]?\d+$/,leadingSignAndZerosRegex:/^[+-]?(0*)?/,dotRegex:/\./,trailingZerosRegex:/0+$/};e.exports=n.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(e,t){let{schema:r,error:a}=t;if(!e.match(s.numberRx))return;e=e.trim();const n={value:parseFloat(e)};if(0===n.value&&(n.value=0),!r._flags.unsafe)if(e.match(/e/i)){if(s.extractSignificantDigits(e)!==s.extractSignificantDigits(String(n.value)))return n.errors=a("number.unsafe"),n}else{const t=n.value.toString();if(t.match(/e/i))return n;if(t!==s.normalizeDecimal(e))return n.errors=a("number.unsafe"),n}return n}},validate(e,t){let{schema:r,error:a,prefs:n}=t;if(e===1/0||e===-1/0)return{value:e,errors:a("number.infinity")};if(!o.isNumber(e))return{value:e,errors:a("number.base")};const s={value:e};if(n.convert){const e=r.$_getRule("precision");if(e){const t=Math.pow(10,e.args.limit);s.value=Math.round(s.value*t)/t}}return 0===s.value&&(s.value=0),!r._flags.unsafe&&(e>Number.MAX_SAFE_INTEGER||e"})}},integer:{method(){return this.$_addRule("integer")},validate:(e,t)=>Math.trunc(e)-e==0?e:t.error("number.integer")},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{limit:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{limit:e},operator:">="})}},multiple:{method(e){return this.$_addRule({name:"multiple",args:{base:e}})},validate(e,t,r,a){let{base:n}=r;return e*(1/n)%1==0?e:t.error("number.multiple",{multiple:a.args.base,value:e})},args:[{name:"base",ref:!0,assert:e=>"number"==typeof e&&isFinite(e)&&e>0,message:"must be a positive number"}],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(e,t)=>Number.isSafeInteger(e)&&e>=0&&e<=65535?e:t.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(e){return a(Number.isSafeInteger(e),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:e}})},validate(e,t,r){let{limit:a}=r;const n=e.toString().match(s.precisionRx);return Math.max((n[1]?n[1].length:0)-(n[2]?parseInt(n[2],10):0),0)<=a?e:t.error("number.precision",{limit:a,value:e})},convert:!0},sign:{method(e){return a(["negative","positive"].includes(e),"Invalid sign",e),this.$_addRule({name:"sign",args:{sign:e}})},validate(e,t,r){let{sign:a}=r;return"negative"===a&&e<0||"positive"===a&&e>0?e:t.error(`number.${a}`)}},unsafe:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return a("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("unsafe",e)}}},cast:{string:{from:e=>"number"==typeof e,to:(e,t)=>e.toString()}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),s.extractSignificantDigits=function(e){return e.replace(s.exponentialPartRegex,"").replace(s.dotRegex,"").replace(s.trailingZerosRegex,"").replace(s.leadingSignAndZerosRegex,"")},s.normalizeDecimal=function(e){return(e=e.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&e.endsWith("0")&&(e=e.replace(/0+$/,"")),"-0"===e?"0":e}},8966:(e,t,r)=>{"use strict";const a=r(7824);e.exports=a.extend({type:"object",cast:{map:{from:e=>e&&"object"==typeof e,to:(e,t)=>new Map(Object.entries(e))}}})},7417:(e,t,r)=>{"use strict";const a=r(375),n=r(5380),o=r(1745),s=r(9959),i=r(6064),l=r(9926),c=r(5752),u=r(8068),d=r(8160),p={tlds:l instanceof Set&&{tlds:{allow:l,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:/^[a-f0-9]+$/i,ipRegex:s.regex({cidr:"forbidden"}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5",uuidv6:"6",uuidv7:"7",uuidv8:"8"},guidSeparators:new Set([void 0,!0,!1,"-",":"]),normalizationForms:["NFC","NFD","NFKC","NFKD"]};e.exports=u.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method(e,t){let{schema:r,state:a,prefs:n}=t;const o=r.$_getRule("normalize");o&&(e=e.normalize(o.args.form));const s=r.$_getRule("case");s&&(e="upper"===s.args.direction?e.toLocaleUpperCase():e.toLocaleLowerCase());const i=r.$_getRule("trim");if(i&&i.args.enabled&&(e=e.trim()),r.$_terms.replacements)for(const t of r.$_terms.replacements)e=e.replace(t.pattern,t.replacement);const l=r.$_getRule("hex");if(l&&l.args.options.byteAligned&&e.length%2!=0&&(e=`0${e}`),r.$_getRule("isoDate")){const t=p.isoDate(e);t&&(e=t)}if(r._flags.truncate){const t=r.$_getRule("max");if(t){let o=t.args.limit;if(d.isResolvable(o)&&(o=o.resolve(e,a,n),!d.limit(o)))return{value:e,errors:r.$_createError("any.ref",o,{ref:t.args.limit,arg:"limit",reason:"must be a positive integer"},a,n)};e=e.slice(0,o)}}return{value:e}}},validate(e,t){let{schema:r,error:a}=t;if("string"!=typeof e)return{value:e,errors:a("string.base")};if(""===e){const t=r.$_getRule("min");if(t&&0===t.args.limit)return;return{value:e,errors:a("string.empty")}}},rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(e,t)=>/^[a-zA-Z0-9]+$/.test(e)?e:t.error("string.alphanum")},base64:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.assertOptions(e,["paddingRequired","urlSafe"]),e={urlSafe:!1,paddingRequired:!0,...e},a("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),a("boolean"==typeof e.urlSafe,"urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:e}})},validate(e,t,r){let{options:a}=r;return p.base64Regex[a.paddingRequired][a.urlSafe].test(e)?e:t.error("string.base64")}},case:{method(e){return a(["lower","upper"].includes(e),"Invalid case:",e),this.$_addRule({name:"case",args:{direction:e}})},validate(e,t,r){let{direction:a}=r;return"lower"===a&&e===e.toLocaleLowerCase()||"upper"===a&&e===e.toLocaleUpperCase()?e:t.error(`string.${a}case`)},convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(e,t){let r=e.length,a=0,n=1;for(;r--;){const t=e.charAt(r)*n;a+=t-9*(t>9),n^=3}return a>0&&a%10==0?e:t.error("string.creditCard")}},dataUri:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.assertOptions(e,["paddingRequired"]),e={paddingRequired:!0,...e},a("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:e}})},validate(e,t,r){let{options:a}=r;const n=e.match(p.dataUriRegex);if(n){if(!n[2])return e;if("base64"!==n[2])return e;if(p.base64Regex[a.paddingRequired].false.test(n[3]))return e}return t.error("string.dataUri")}},domain:{method(e){e&&d.assertOptions(e,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const t=p.addressOptions(e);return this.$_addRule({name:"domain",args:{options:e},address:t})},validate(e,t,r,a){let{address:o}=a;return n.isValid(e,o)?e:t.error("string.domain")}},email:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.assertOptions(e,["allowFullyQualified","allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),a(void 0===e.multiple||"boolean"==typeof e.multiple,"multiple option must be an boolean");const t=p.addressOptions(e),r=new RegExp(`\\s*[${e.separator?i(e.separator):","}]\\s*`);return this.$_addRule({name:"email",args:{options:e},regex:r,address:t})},validate(e,t,r,a){let{options:n}=r,{regex:s,address:i}=a;const l=n.multiple?e.split(s):[e],c=[];for(const e of l)o.isValid(e,i)||c.push(e);return c.length?t.error("string.email",{value:e,invalids:c}):e}},guid:{alias:"uuid",method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.assertOptions(e,["version","separator"]);let t="";if(e.version){const r=[].concat(e.version);a(r.length>=1,"version must have at least 1 valid version specified");const n=new Set;for(let e=0;e0&&void 0!==arguments[0]?arguments[0]:{};return d.assertOptions(e,["byteAligned"]),e={byteAligned:!1,...e},a("boolean"==typeof e.byteAligned,"byteAligned must be boolean"),this.$_addRule({name:"hex",args:{options:e}})},validate(e,t,r){let{options:a}=r;return p.hexRegex.test(e)?a.byteAligned&&e.length%2!=0?t.error("string.hexAlign"):e:t.error("string.hex")}},hostname:{method(){return this.$_addRule("hostname")},validate:(e,t)=>n.isValid(e,{minDomainSegments:1})||p.ipRegex.test(e)?e:t.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.assertOptions(e,["cidr","version"]);const{cidr:t,versions:r,regex:a}=s.regex(e),n=e.version?r:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:t,version:n}},regex:a})},validate(e,t,r,a){let{options:n}=r,{regex:o}=a;return o.test(e)?e:n.version?t.error("string.ipVersion",{value:e,cidr:n.cidr,version:n.version}):t.error("string.ip",{value:e,cidr:n.cidr})}},isoDate:{method(){return this.$_addRule("isoDate")},validate(e,t){let{error:r}=t;return p.isoDate(e)?e:r("string.isoDate")}},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(e,t)=>p.isoDurationRegex.test(e)?e:t.error("string.isoDuration")},length:{method(e,t){return p.length(this,"length",e,"=",t)},validate(e,t,r,a){let{limit:n,encoding:o}=r,{name:s,operator:i,args:l}=a;const c=!o&&e.length;return d.compare(c,n,i)?e:t.error("string."+s,{limit:l.limit,value:e,encoding:o})},args:[{name:"limit",ref:!0,assert:d.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(e,t){return p.length(this,"max",e,"<=",t)},args:["limit","encoding"]},min:{method(e,t){return p.length(this,"min",e,">=",t)},args:["limit","encoding"]},normalize:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"NFC";return a(p.normalizationForms.includes(e),"normalization form must be one of "+p.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:e}})},validate(e,t,r){let{error:a}=t,{form:n}=r;return e===e.normalize(n)?e:a("string.normalize",{value:e,form:n})},convert:!0},pattern:{alias:"regex",method(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(e instanceof RegExp,"regex must be a RegExp"),a(!e.flags.includes("g")&&!e.flags.includes("y"),"regex should not use global or sticky mode"),"string"==typeof t&&(t={name:t}),d.assertOptions(t,["invert","name"]);const r=["string.pattern",t.invert?".invert":"",t.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:e,options:t},errorCode:r})},validate(e,t,r,a){let{regex:n,options:o}=r,{errorCode:s}=a;return n.test(e)^o.invert?e:t.error(s,{name:o.name,regex:n,value:e})},args:["regex","options"],multi:!0},replace:{method(e,t){"string"==typeof e&&(e=new RegExp(i(e),"g")),a(e instanceof RegExp,"pattern must be a RegExp"),a("string"==typeof t,"replacement must be a String");const r=this.clone();return r.$_terms.replacements||(r.$_terms.replacements=[]),r.$_terms.replacements.push({pattern:e,replacement:t}),r}},token:{method(){return this.$_addRule("token")},validate:(e,t)=>/^\w+$/.test(e)?e:t.error("string.token")},trim:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return a("boolean"==typeof e,"enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:e}})},validate(e,t,r){let{enabled:a}=r;return a&&e!==e.trim()?t.error("string.trim"):e},convert:!0},truncate:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return a("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("truncate",e)}},uppercase:{method(){return this.case("upper")}},uri:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.assertOptions(e,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme"]),e.domain&&d.assertOptions(e.domain,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const{regex:t,scheme:r}=c.regex(e),a=e.domain?p.addressOptions(e.domain):null;return this.$_addRule({name:"uri",args:{options:e},regex:t,domain:a,scheme:r})},validate(e,t,r,a){let{options:o}=r,{regex:s,domain:i,scheme:l}=a;if(["http:/","https:/"].includes(e))return t.error("string.uri");const c=s.exec(e);if(c){const r=c[1]||c[2];return!i||o.allowRelative&&!r||n.isValid(r,i)?e:t.error("string.domain",{value:r})}return o.relativeOnly?t.error("string.uriRelativeOnly"):o.scheme?t.error("string.uriCustomScheme",{scheme:l,value:e}):t.error("string.uri")}}},manifest:{build(e,t){if(t.replacements)for(const{pattern:r,replacement:a}of t.replacements)e=e.replace(r,a);return e}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),p.addressOptions=function(e){if(!e)return e;if(a(void 0===e.minDomainSegments||Number.isSafeInteger(e.minDomainSegments)&&e.minDomainSegments>0,"minDomainSegments must be a positive integer"),a(void 0===e.maxDomainSegments||Number.isSafeInteger(e.maxDomainSegments)&&e.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),!1===e.tlds)return e;if(!0===e.tlds||void 0===e.tlds)return a(p.tlds,"Built-in TLD list disabled"),Object.assign({},e,p.tlds);a("object"==typeof e.tlds,"tlds must be true, false, or an object");const t=e.tlds.deny;if(t)return Array.isArray(t)&&(e=Object.assign({},e,{tlds:{deny:new Set(t)}})),a(e.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),a(!e.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),p.validateTlds(e.tlds.deny,"tlds.deny"),e;const r=e.tlds.allow;return r?!0===r?(a(p.tlds,"Built-in TLD list disabled"),Object.assign({},e,p.tlds)):(Array.isArray(r)&&(e=Object.assign({},e,{tlds:{allow:new Set(r)}})),a(e.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),p.validateTlds(e.tlds.allow,"tlds.allow"),e):e},p.validateTlds=function(e,t){for(const r of e)a(n.isValid(r,{minDomainSegments:1,maxDomainSegments:1}),`${t} must contain valid top level domain names`)},p.isoDate=function(e){if(!d.isIsoDate(e))return null;/.*T.*[+-]\d\d$/.test(e)&&(e+="00");const t=new Date(e);return isNaN(t.getTime())?null:t.toISOString()},p.length=function(e,t,r,n,o){return a(!o||!1,"Invalid encoding:",o),e.$_addRule({name:t,method:"length",args:{limit:r,encoding:o},operator:n})}},8826:(e,t,r)=>{"use strict";const a=r(375),n=r(8068),o={};o.Map=class extends Map{slice(){return new o.Map(this)}},e.exports=n.extend({type:"symbol",terms:{map:{init:new o.Map}},coerce:{method(e,t){let{schema:r,error:a}=t;const n=r.$_terms.map.get(e);return n&&(e=n),r._flags.only&&"symbol"!=typeof e?{value:e,errors:a("symbol.map",{map:r.$_terms.map})}:{value:e}}},validate(e,t){let{error:r}=t;if("symbol"!=typeof e)return{value:e,errors:r("symbol.base")}},rules:{map:{method(e){e&&!e[Symbol.iterator]&&"object"==typeof e&&(e=Object.entries(e)),a(e&&e[Symbol.iterator],"Iterable must be an iterable or object");const t=this.clone(),r=[];for(const n of e){a(n&&n[Symbol.iterator],"Entry must be an iterable");const[e,o]=n;a("object"!=typeof e&&"function"!=typeof e&&"symbol"!=typeof e,"Key must not be of type object, function, or Symbol"),a("symbol"==typeof o,"Value must be a Symbol"),t.$_terms.map.set(e,o),r.push(o)}return t.valid(...r)}}},manifest:{build:(e,t)=>(t.map&&(e=e.map(t.map)),e)},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})},8863:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(738),s=r(9621),i=r(8160),l=r(6354),c=r(493),u={result:Symbol("result")};t.entry=function(e,t,r){let n=i.defaults;r&&(a(void 0===r.warnings,"Cannot override warnings preference in synchronous validation"),a(void 0===r.artifacts,"Cannot override artifacts preference in synchronous validation"),n=i.preferences(i.defaults,r));const o=u.entry(e,t,n);a(!o.mainstay.externals.length,"Schema with external rules must use validateAsync()");const s={value:o.value};return o.error&&(s.error=o.error),o.mainstay.warnings.length&&(s.warning=l.details(o.mainstay.warnings)),o.mainstay.debug&&(s.debug=o.mainstay.debug),o.mainstay.artifacts&&(s.artifacts=o.mainstay.artifacts),s},t.entryAsync=async function(e,t,r){let a=i.defaults;r&&(a=i.preferences(i.defaults,r));const n=u.entry(e,t,a),o=n.mainstay;if(n.error)throw o.debug&&(n.error.debug=o.debug),n.error;if(o.externals.length){let t=n.value;const c=[];for(const n of o.externals){const d=n.state.path,p="link"===n.schema.type?o.links.get(n.schema):null;let g,m,w=t;const y=d.length?[t]:[],f=d.length?s(e,d):e;if(d.length){g=d[d.length-1];let e=t;for(const t of d.slice(0,-1))e=e[t],y.unshift(e);m=y[0],w=m[g]}try{const e=(e,t)=>(p||n.schema).$_createError(e,w,t,n.state,a),s=await n.method(w,{schema:n.schema,linked:p,state:n.state,prefs:r,original:f,error:e,errorsArray:u.errorsArray,warn:(e,t)=>o.warnings.push((p||n.schema).$_createError(e,w,t,n.state,a)),message:(e,t)=>(p||n.schema).$_createError("external",w,t,n.state,a,{messages:e})});if(void 0===s||s===w)continue;if(s instanceof l.Report){if(o.tracer.log(n.schema,n.state,"rule","external","error"),c.push(s),a.abortEarly)break;continue}if(Array.isArray(s)&&s[i.symbols.errors]){if(o.tracer.log(n.schema,n.state,"rule","external","error"),c.push(...s),a.abortEarly)break;continue}m?(o.tracer.value(n.state,"rule",w,s,"external"),m[g]=s):(o.tracer.value(n.state,"rule",t,s,"external"),t=s)}catch(e){throw a.errors.label&&(e.message+=` (${n.label})`),e}}if(n.value=t,c.length)throw n.error=l.process(c,e,a),o.debug&&(n.error.debug=o.debug),n.error}if(!a.warnings&&!a.debug&&!a.artifacts)return n.value;const c={value:n.value};return o.warnings.length&&(c.warning=l.details(o.warnings)),o.debug&&(c.debug=o.debug),o.artifacts&&(c.artifacts=o.artifacts),c},u.Mainstay=class{constructor(e,t,r){this.externals=[],this.warnings=[],this.tracer=e,this.debug=t,this.links=r,this.shadow=null,this.artifacts=null,this._snapshots=[]}snapshot(){this._snapshots.push({externals:this.externals.slice(),warnings:this.warnings.slice()})}restore(){const e=this._snapshots.pop();this.externals=e.externals,this.warnings=e.warnings}commit(){this._snapshots.pop()}},u.entry=function(e,r,a){const{tracer:n,cleanup:o}=u.tracer(r,a),s=a.debug?[]:null,i=r._ids._schemaChain?new Map:null,d=new u.Mainstay(n,s,i),p=r._ids._schemaChain?[{schema:r}]:null,g=new c([],[],{mainstay:d,schemas:p}),m=t.validate(e,r,g,a);o&&r.$_root.untrace();const w=l.process(m.errors,e,a);return{value:m.value,error:w,mainstay:d}},u.tracer=function(e,t){return e.$_root._tracer?{tracer:e.$_root._tracer._register(e)}:t.debug?(a(e.$_root.trace,"Debug mode not supported"),{tracer:e.$_root.trace()._register(e),cleanup:!0}):{tracer:u.ignore}},t.validate=function(e,t,r,a){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(t.$_terms.whens&&(t=t._generate(e,r,a).schema),t._preferences&&(a=u.prefs(t,a)),t._cache&&a.cache){const a=t._cache.get(e);if(r.mainstay.tracer.debug(r,"validate","cached",!!a),a)return a}const o=(n,o,s)=>t.$_createError(n,e,o,s||r,a),s={original:e,prefs:a,schema:t,state:r,error:o,errorsArray:u.errorsArray,warn:(e,t,a)=>r.mainstay.warnings.push(o(e,t,a)),message:(n,o)=>t.$_createError("custom",e,o,r,a,{messages:n})};r.mainstay.tracer.entry(t,r);const l=t._definition;if(l.prepare&&void 0!==e&&a.convert){const t=l.prepare(e,s);if(t){if(r.mainstay.tracer.value(r,"prepare",e,t.value),t.errors)return u.finalize(t.value,[].concat(t.errors),s);e=t.value}}if(l.coerce&&void 0!==e&&a.convert&&(!l.coerce.from||l.coerce.from.includes(typeof e))){const t=l.coerce.method(e,s);if(t){if(r.mainstay.tracer.value(r,"coerced",e,t.value),t.errors)return u.finalize(t.value,[].concat(t.errors),s);e=t.value}}const c=t._flags.empty;c&&c.$_match(u.trim(e,t),r.nest(c),i.defaults)&&(r.mainstay.tracer.value(r,"empty",e,void 0),e=void 0);const d=n.presence||t._flags.presence||(t._flags._endedSwitch?null:a.presence);if(void 0===e){if("forbidden"===d)return u.finalize(e,null,s);if("required"===d)return u.finalize(e,[t.$_createError("any.required",e,null,r,a)],s);if("optional"===d){if(t._flags.default!==i.symbols.deepDefault)return u.finalize(e,null,s);r.mainstay.tracer.value(r,"default",e,{}),e={}}}else if("forbidden"===d)return u.finalize(e,[t.$_createError("any.unknown",e,null,r,a)],s);const p=[];if(t._valids){const n=t._valids.get(e,r,a,t._flags.insensitive);if(n)return a.convert&&(r.mainstay.tracer.value(r,"valids",e,n.value),e=n.value),r.mainstay.tracer.filter(t,r,"valid",n),u.finalize(e,null,s);if(t._flags.only){const n=t.$_createError("any.only",e,{valids:t._valids.values({display:!0})},r,a);if(a.abortEarly)return u.finalize(e,[n],s);p.push(n)}}if(t._invalids){const n=t._invalids.get(e,r,a,t._flags.insensitive);if(n){r.mainstay.tracer.filter(t,r,"invalid",n);const o=t.$_createError("any.invalid",e,{invalids:t._invalids.values({display:!0})},r,a);if(a.abortEarly)return u.finalize(e,[o],s);p.push(o)}}if(l.validate){const t=l.validate(e,s);if(t&&(r.mainstay.tracer.value(r,"base",e,t.value),e=t.value,t.errors)){if(!Array.isArray(t.errors))return p.push(t.errors),u.finalize(e,p,s);if(t.errors.length)return p.push(...t.errors),u.finalize(e,p,s)}}return t._rules.length?u.rules(e,p,s):u.finalize(e,p,s)},u.rules=function(e,t,r){const{schema:a,state:n,prefs:o}=r;for(const s of a._rules){const l=a._definition.rules[s.method];if(l.convert&&o.convert){n.mainstay.tracer.log(a,n,"rule",s.name,"full");continue}let c,d=s.args;if(s._resolve.length){d=Object.assign({},d);for(const t of s._resolve){const r=l.argsByName.get(t),s=d[t].resolve(e,n,o),u=r.normalize?r.normalize(s):s,p=i.validateArg(u,null,r);if(p){c=a.$_createError("any.ref",s,{arg:t,ref:d[t],reason:p},n,o);break}d[t]=u}}c=c||l.validate(e,r,d,s);const p=u.rule(c,s);if(p.errors){if(n.mainstay.tracer.log(a,n,"rule",s.name,"error"),s.warn){n.mainstay.warnings.push(...p.errors);continue}if(o.abortEarly)return u.finalize(e,p.errors,r);t.push(...p.errors)}else n.mainstay.tracer.log(a,n,"rule",s.name,"pass"),n.mainstay.tracer.value(n,"rule",e,p.value,s.name),e=p.value}return u.finalize(e,t,r)},u.rule=function(e,t){return e instanceof l.Report?(u.error(e,t),{errors:[e],value:null}):Array.isArray(e)&&e[i.symbols.errors]?(e.forEach((e=>u.error(e,t))),{errors:e,value:null}):{errors:null,value:e}},u.error=function(e,t){return t.message&&e._setTemplate(t.message),e},u.finalize=function(e,t,r){t=t||[];const{schema:n,state:o,prefs:s}=r;if(t.length){const a=u.default("failover",void 0,t,r);void 0!==a&&(o.mainstay.tracer.value(o,"failover",e,a),e=a,t=[])}if(t.length&&n._flags.error)if("function"==typeof n._flags.error){t=n._flags.error(t),Array.isArray(t)||(t=[t]);for(const e of t)a(e instanceof Error||e instanceof l.Report,"error() must return an Error object")}else t=[n._flags.error];if(void 0===e){const a=u.default("default",e,t,r);o.mainstay.tracer.value(o,"default",e,a),e=a}if(n._flags.cast&&void 0!==e){const t=n._definition.cast[n._flags.cast];if(t.from(e)){const a=t.to(e,r);o.mainstay.tracer.value(o,"cast",e,a,n._flags.cast),e=a}}if(n.$_terms.externals&&s.externals&&!1!==s._externals)for(const{method:e}of n.$_terms.externals)o.mainstay.externals.push({method:e,schema:n,state:o,label:l.label(n._flags,o,s)});const i={value:e,errors:t.length?t:null};return n._flags.result&&(i.value="strip"===n._flags.result?void 0:r.original,o.mainstay.tracer.value(o,n._flags.result,e,i.value),o.shadow(e,n._flags.result)),n._cache&&!1!==s.cache&&!n._refs.length&&n._cache.set(r.original,i),void 0===e||i.errors||void 0===n._flags.artifact||(o.mainstay.artifacts=o.mainstay.artifacts||new Map,o.mainstay.artifacts.has(n._flags.artifact)||o.mainstay.artifacts.set(n._flags.artifact,[]),o.mainstay.artifacts.get(n._flags.artifact).push(o.path)),i},u.prefs=function(e,t){const r=t===i.defaults;return r&&e._preferences[i.symbols.prefs]?e._preferences[i.symbols.prefs]:(t=i.preferences(t,e._preferences),r&&(e._preferences[i.symbols.prefs]=t),t)},u.default=function(e,t,r,a){const{schema:o,state:s,prefs:l}=a,c=o._flags[e];if(l.noDefaults||void 0===c)return t;if(s.mainstay.tracer.log(o,s,"rule",e,"full"),!c)return c;if("function"==typeof c){const i=c.length?[n(s.ancestors[0]),a]:[];try{return c(...i)}catch(t){return void r.push(o.$_createError(`any.${e}`,null,{error:t},s,l))}}return"object"!=typeof c?c:c[i.symbols.literal]?c.literal:i.isResolvable(c)?c.resolve(t,s,l):n(c)},u.trim=function(e,t){if("string"!=typeof e)return e;const r=t.$_getRule("trim");return r&&r.args.enabled?e.trim():e},u.ignore={active:!1,debug:o,entry:o,filter:o,log:o,resolve:o,value:o},u.errorsArray=function(){const e=[];return e[i.symbols.errors]=!0,e}},2036:(e,t,r)=>{"use strict";const a=r(375),n=r(9474),o=r(8160),s={};e.exports=s.Values=class{constructor(e,t){this._values=new Set(e),this._refs=new Set(t),this._lowercase=s.lowercases(e),this._override=!1}get length(){return this._values.size+this._refs.size}add(e,t){o.isResolvable(e)?this._refs.has(e)||(this._refs.add(e),t&&t.register(e)):this.has(e,null,null,!1)||(this._values.add(e),"string"==typeof e&&this._lowercase.set(e.toLowerCase(),e))}static merge(e,t,r){if(e=e||new s.Values,t){if(t._override)return t.clone();for(const r of[...t._values,...t._refs])e.add(r)}if(r)for(const t of[...r._values,...r._refs])e.remove(t);return e.length?e:null}remove(e){o.isResolvable(e)?this._refs.delete(e):(this._values.delete(e),"string"==typeof e&&this._lowercase.delete(e.toLowerCase()))}has(e,t,r,a){return!!this.get(e,t,r,a)}get(e,t,r,a){if(!this.length)return!1;if(this._values.has(e))return{value:e};if("string"==typeof e&&e&&a){const t=this._lowercase.get(e.toLowerCase());if(t)return{value:t}}if(!this._refs.size&&"object"!=typeof e)return!1;if("object"==typeof e)for(const t of this._values)if(n(t,e))return{value:t};if(t)for(const o of this._refs){const s=o.resolve(e,t,r,null,{in:!0});if(void 0===s)continue;const i=o.in&&"object"==typeof s?Array.isArray(s)?s:Object.keys(s):[s];for(const t of i)if(typeof t==typeof e)if(a&&e&&"string"==typeof e){if(t.toLowerCase()===e.toLowerCase())return{value:t,ref:o}}else if(n(t,e))return{value:t,ref:o}}return!1}override(){this._override=!0}values(e){if(e&&e.display){const e=[];for(const t of[...this._values,...this._refs])void 0!==t&&e.push(t);return e}return Array.from([...this._values,...this._refs])}clone(){const e=new s.Values(this._values,this._refs);return e._override=this._override,e}concat(e){a(!e._override,"Cannot concat override set of values");const t=new s.Values([...this._values,...e._values],[...this._refs,...e._refs]);return t._override=this._override,t}describe(){const e=[];this._override&&e.push({override:!0});for(const t of this._values.values())e.push(t&&"object"==typeof t?{value:t}:t);for(const t of this._refs.values())e.push(t.describe());return e}},s.Values.prototype[o.symbols.values]=!0,s.Values.prototype.slice=s.Values.prototype.clone,s.lowercases=function(e){const t=new Map;if(e)for(const r of e)"string"==typeof r&&t.set(r.toLowerCase(),r);return t}},978:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(1687),s=r(9621),i={};e.exports=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(a(e&&"object"==typeof e,"Invalid defaults value: must be an object"),a(!t||!0===t||"object"==typeof t,"Invalid source value: must be true, falsy or an object"),a("object"==typeof r,"Invalid options: must be an object"),!t)return null;if(r.shallow)return i.applyToDefaultsWithShallow(e,t,r);const s=n(e);if(!0===t)return s;const l=void 0!==r.nullOverride&&r.nullOverride;return o(s,t,{nullOverride:l,mergeArrays:!1})},i.applyToDefaultsWithShallow=function(e,t,r){const l=r.shallow;a(Array.isArray(l),"Invalid keys");const c=new Map,u=!0===t?null:new Set;for(let r of l){r=Array.isArray(r)?r:r.split(".");const a=s(e,r);a&&"object"==typeof a?c.set(a,u&&s(t,r)||a):u&&u.add(r)}const d=n(e,{},c);if(!u)return d;for(const e of u)i.reachCopy(d,t,e);const p=void 0!==r.nullOverride&&r.nullOverride;return o(d,t,{nullOverride:p,mergeArrays:!1})},i.reachCopy=function(e,t,r){for(const e of r){if(!(e in t))return;const r=t[e];if("object"!=typeof r||null===r)return;t=r}const a=t;let n=e;for(let e=0;e{"use strict";const a=r(7916);e.exports=function(e){if(!e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n{"use strict";const a=r(9621),n=r(4277),o=r(7043),s={needsProtoHack:new Set([n.set,n.map,n.weakSet,n.weakMap])};e.exports=s.clone=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("object"!=typeof e||null===e)return e;let a=s.clone,i=r;if(t.shallow){if(!0!==t.shallow)return s.cloneWithShallow(e,t);a=e=>e}else if(i){const t=i.get(e);if(t)return t}else i=new Map;const l=n.getInternalProto(e);if(l===n.buffer)return!1;if(l===n.date)return new Date(e.getTime());if(l===n.regex)return new RegExp(e);const c=s.base(e,l,t);if(c===e)return e;if(i&&i.set(e,c),l===n.set)for(const r of e)c.add(a(r,t,i));else if(l===n.map)for(const[r,n]of e)c.set(r,a(n,t,i));const u=o.keys(e,t);for(const r of u){if("__proto__"===r)continue;if(l===n.array&&"length"===r){c.length=e.length;continue}const o=Object.getOwnPropertyDescriptor(e,r);o?o.get||o.set?Object.defineProperty(c,r,o):o.enumerable?c[r]=a(e[r],t,i):Object.defineProperty(c,r,{enumerable:!1,writable:!0,configurable:!0,value:a(e[r],t,i)}):Object.defineProperty(c,r,{enumerable:!0,writable:!0,configurable:!0,value:a(e[r],t,i)})}return c},s.cloneWithShallow=function(e,t){const r=t.shallow;(t=Object.assign({},t)).shallow=!1;const n=new Map;for(const t of r){const r=a(e,t);"object"!=typeof r&&"function"!=typeof r||n.set(r,r)}return s.clone(e,t,n)},s.base=function(e,t,r){if(!1===r.prototype)return s.needsProtoHack.has(t)?new t.constructor:t===n.array?[]:{};const a=Object.getPrototypeOf(e);if(a&&a.isImmutable)return e;if(t===n.array){const e=[];return a!==t&&Object.setPrototypeOf(e,a),e}if(s.needsProtoHack.has(t)){const e=new a.constructor;return a!==t&&Object.setPrototypeOf(e,a),e}return Object.create(a)}},9474:(e,t,r)=>{"use strict";const a=r(4277),n={mismatched:null};e.exports=function(e,t,r){return r=Object.assign({prototype:!0},r),!!n.isDeepEqual(e,t,r,[])},n.isDeepEqual=function(e,t,r,o){if(e===t)return 0!==e||1/e==1/t;const s=typeof e;if(s!==typeof t)return!1;if(null===e||null===t)return!1;if("function"===s){if(!r.deepFunction||e.toString()!==t.toString())return!1}else if("object"!==s)return e!=e&&t!=t;const i=n.getSharedType(e,t,!!r.prototype);switch(i){case a.buffer:return!1;case a.promise:return e===t;case a.regex:return e.toString()===t.toString();case n.mismatched:return!1}for(let r=o.length-1;r>=0;--r)if(o[r].isSame(e,t))return!0;o.push(new n.SeenEntry(e,t));try{return!!n.isDeepEqualObj(i,e,t,r,o)}finally{o.pop()}},n.getSharedType=function(e,t,r){if(r)return Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?n.mismatched:a.getInternalProto(e);const o=a.getInternalProto(e);return o!==a.getInternalProto(t)?n.mismatched:o},n.valueOf=function(e){const t=e.valueOf;if(void 0===t)return e;try{return t.call(e)}catch(e){return e}},n.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)},n.isSetSimpleEqual=function(e,t){for(const r of Set.prototype.values.call(e))if(!Set.prototype.has.call(t,r))return!1;return!0},n.isDeepEqualObj=function(e,t,r,o,s){const{isDeepEqual:i,valueOf:l,hasOwnEnumerableProperty:c}=n,{keys:u,getOwnPropertySymbols:d}=Object;if(e===a.array){if(!o.part){if(t.length!==r.length)return!1;for(let e=0;e{"use strict";const a=r(8761);e.exports=class extends Error{constructor(e){super(e.filter((e=>""!==e)).map((e=>"string"==typeof e?e:e instanceof Error?e.message:a(e))).join(" ")||"Unknown error"),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t.assert)}}},5277:e=>{"use strict";const t={};e.exports=function(e){if(!e)return"";let r="";for(let a=0;a=256?"&#"+e+";":`&#x${e.toString(16).padStart(2,"0")};`)},t.isSafe=function(e){return t.safeCharCodes.has(e)},t.namedHtml=new Map([[38,"&"],[60,"<"],[62,">"],[34,"""],[160," "],[162,"¢"],[163,"£"],[164,"¤"],[169,"©"],[174,"®"]]),t.safeCharCodes=function(){const e=new Set;for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||32===t||46===t||44===t||45===t||58===t||95===t)&&e.add(t);return e}()},6064:e=>{"use strict";e.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},738:e=>{"use strict";e.exports=function(){}},1687:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(7043),s={};e.exports=s.merge=function(e,t,r){if(a(e&&"object"==typeof e,"Invalid target value: must be an object"),a(null==t||"object"==typeof t,"Invalid source value: must be null, undefined, or an object"),!t)return e;if(r=Object.assign({nullOverride:!0,mergeArrays:!0},r),Array.isArray(t)){a(Array.isArray(e),"Cannot merge array onto an object"),r.mergeArrays||(e.length=0);for(let a=0;a{"use strict";const a=r(375),n={};e.exports=function(e,t,r){if(!1===t||null==t)return e;"string"==typeof(r=r||{})&&(r={separator:r});const o=Array.isArray(t);a(!o||!r.separator,"Separator option is not valid for array-based chain");const s=o?t:t.split(r.separator||".");let i=e;for(let e=0;e{"use strict";e.exports=function(){try{return JSON.stringify(...arguments)}catch(e){return"[Cannot display object: "+e.message+"]"}}},4277:(e,t)=>{"use strict";const r={};t=e.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},r.typeMap=new Map([["[object Error]",t.error],["[object Map]",t.map],["[object Promise]",t.promise],["[object Set]",t.set],["[object WeakMap]",t.weakMap],["[object WeakSet]",t.weakSet]]),t.getInternalProto=function(e){if(Array.isArray(e))return t.array;if(e instanceof Date)return t.date;if(e instanceof RegExp)return t.regex;if(e instanceof Error)return t.error;const a=Object.prototype.toString.call(e);return r.typeMap.get(a)||t.generic}},7043:(e,t)=>{"use strict";t.keys=function(e){return!1!==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).symbols?Reflect.ownKeys(e):Object.getOwnPropertyNames(e)}},3652:(e,t,r)=>{"use strict";const a=r(375),n={};t.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(e,t){const r=[].concat((t=t||{}).before||[]),n=[].concat(t.after||[]),o=t.group||"?",s=t.sort||0;a(!r.includes(o),`Item cannot come before itself: ${o}`),a(!r.includes("?"),"Item cannot come before unassociated items"),a(!n.includes(o),`Item cannot come after itself: ${o}`),a(!n.includes("?"),"Item cannot come after unassociated items"),Array.isArray(e)||(e=[e]);for(const t of e){const e={seq:this._items.length,sort:s,before:r,after:n,group:o,node:t};this._items.push(e)}if(!t.manual){const e=this._sort();a(e,"item","?"!==o?`added into group ${o}`:"","created a dependencies error")}return this.nodes}merge(e){Array.isArray(e)||(e=[e]);for(const t of e)if(t)for(const e of t._items)this._items.push(Object.assign({},e));this._items.sort(n.mergeSort);for(let e=0;ee.sort===t.sort?0:e.sort{"use strict";const a=r(443),n=r(2178),o={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:a.URL||URL};t.analyze=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return n.code("DOMAIN_NON_EMPTY_STRING");if("string"!=typeof e)throw new Error("Invalid input: domain must be a string");if(e.length>256)return n.code("DOMAIN_TOO_LONG");if(o.nonAsciiRx.test(e)){if(!1===t.allowUnicode)return n.code("DOMAIN_INVALID_UNICODE_CHARS");e=e.normalize("NFC")}if(o.domainControlRx.test(e))return n.code("DOMAIN_INVALID_CHARS");e=o.punycode(e),t.allowFullyQualified&&"."===e[e.length-1]&&(e=e.slice(0,-1));const r=t.minDomainSegments||o.minDomainSegments,a=e.split(".");if(a.lengtht.maxDomainSegments)return n.code("DOMAIN_SEGMENTS_COUNT_MAX");const s=t.tlds;if(s){const e=a[a.length-1].toLowerCase();if(s.deny&&s.deny.has(e)||s.allow&&!s.allow.has(e))return n.code("DOMAIN_FORBIDDEN_TLDS")}for(let e=0;e63)return n.code("DOMAIN_LONG_SEGMENT");if(e{"use strict";const a=r(9848),n=r(5380),o=r(2178),s={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(a.TextEncoder||TextEncoder)};t.analyze=function(e,t){return s.email(e,t)},t.isValid=function(e,t){return!s.email(e,t)},s.email=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw new Error("Invalid input: email must be a string");if(!e)return o.code("EMPTY_STRING");const r=!s.nonAsciiRx.test(e);if(!r){if(!1===t.allowUnicode)return o.code("FORBIDDEN_UNICODE");e=e.normalize("NFC")}const a=e.split("@");if(2!==a.length)return a.length>2?o.code("MULTIPLE_AT_CHAR"):o.code("MISSING_AT_CHAR");const[i,l]=a;if(!i)return o.code("EMPTY_LOCAL");if(!t.ignoreLength){if(e.length>254)return o.code("ADDRESS_TOO_LONG");if(s.encoder.encode(i).length>64)return o.code("LOCAL_TOO_LONG")}return s.local(i,r)||n.analyze(l,t)},s.local=function(e,t){const r=e.split(".");for(const e of r){if(!e.length)return o.code("EMPTY_LOCAL_SEGMENT");if(t){if(!s.atextRx.test(e))return o.code("INVALID_LOCAL_CHARS")}else for(const t of e){if(s.atextRx.test(t))continue;const e=s.binary(t);if(!s.atomRx.test(e))return o.code("INVALID_LOCAL_CHARS")}}},s.binary=function(e){return Array.from(s.encoder.encode(e)).map((e=>String.fromCharCode(e))).join("")},s.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,s.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},2178:(e,t)=>{"use strict";t.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},t.code=function(e){return{code:e,error:t.codes[e]}}},9959:(e,t,r)=>{"use strict";const a=r(375),n=r(5752);t.regex=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(void 0===e.cidr||"string"==typeof e.cidr,"options.cidr must be a string");const t=e.cidr?e.cidr.toLowerCase():"optional";a(["required","optional","forbidden"].includes(t),"options.cidr must be one of required, optional, forbidden"),a(void 0===e.version||"string"==typeof e.version||Array.isArray(e.version),"options.version must be a string or an array of string");let r=e.version||["ipv4","ipv6","ipvfuture"];Array.isArray(r)||(r=[r]),a(r.length>=1,"options.version must have at least 1 version specified");for(let e=0;e{if("forbidden"===t)return n.ip[e];const r=`\\/${"ipv4"===e?n.ip.v4Cidr:n.ip.v6Cidr}`;return"required"===t?`${n.ip[e]}${r}`:`${n.ip[e]}(?:${r})?`})).join("|")})`,s=new RegExp(`^${o}$`);return{cidr:t,versions:r,regex:s,raw:o}}},5752:(e,t,r)=>{"use strict";const a=r(375),n=r(6064),o={generate:function(){const e={},t="\\dA-Fa-f",r="["+t+"]",a="\\w-\\.~",n="!\\$&'\\(\\)\\*\\+,;=",o="%"+t,s=a+o+n+":@",i="["+s+"]",l="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";e.ipv4address="(?:"+l+"\\.){3}"+l;const c=r+"{1,4}",u="(?:"+c+":"+c+"|"+e.ipv4address+")",d="(?:"+c+":){6}"+u,p="::(?:"+c+":){5}"+u,g="(?:"+c+")?::(?:"+c+":){4}"+u,m="(?:(?:"+c+":){0,1}"+c+")?::(?:"+c+":){3}"+u,w="(?:(?:"+c+":){0,2}"+c+")?::(?:"+c+":){2}"+u,y="(?:(?:"+c+":){0,3}"+c+")?::"+c+":"+u,f="(?:(?:"+c+":){0,4}"+c+")?::"+u,b="(?:(?:"+c+":){0,5}"+c+")?::"+c,h="(?:(?:"+c+":){0,6}"+c+")?::";e.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",e.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",e.ipv6address="(?:"+d+"|"+p+"|"+g+"|"+m+"|"+w+"|"+y+"|"+f+"|"+b+"|"+h+")",e.ipvFuture="v"+r+"+\\.["+a+n+":]+",e.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",e.schemeRegex=new RegExp(e.scheme);const _="["+a+o+n+":]*",v="["+a+o+n+"]{1,255}",k="(?:\\[(?:"+e.ipv6address+"|"+e.ipvFuture+")\\]|"+e.ipv4address+"|"+v+")",R="(?:"+_+"@)?"+k+"(?::\\d*)?",P="(?:"+_+"@)?("+k+")(?::\\d*)?",C=i+"*",q=i+"+",j="(?:\\/"+C+")*",S="\\/(?:"+q+j+")?",A=q+j,H="["+a+o+n+"@]+"+j,E="(?:\\/\\/\\/"+C+j+")";return e.hierPart="(?:(?:\\/\\/"+R+j+")|"+S+"|"+A+"|"+E+")",e.hierPartCapture="(?:(?:\\/\\/"+P+j+")|"+S+"|"+A+")",e.relativeRef="(?:(?:\\/\\/"+R+j+")|"+S+"|"+H+"|)",e.relativeRefCapture="(?:(?:\\/\\/"+P+j+")|"+S+"|"+H+"|)",e.query="["+s+"\\/\\?]*(?=#|$)",e.queryWithSquareBrackets="["+s+"\\[\\]\\/\\?]*(?=#|$)",e.fragment="["+s+"\\/\\?]*",e}};o.rfc3986=o.generate(),t.ip={v4Cidr:o.rfc3986.ipv4Cidr,v6Cidr:o.rfc3986.ipv6Cidr,ipv4:o.rfc3986.ipv4address,ipv6:o.rfc3986.ipv6address,ipvfuture:o.rfc3986.ipvFuture},o.createRegex=function(e){const t=o.rfc3986,r="(?:\\?"+(e.allowQuerySquareBrackets?t.queryWithSquareBrackets:t.query)+")?(?:#"+t.fragment+")?",s=e.domain?t.relativeRefCapture:t.relativeRef;if(e.relativeOnly)return o.wrap(s+r);let i="";if(e.scheme){a(e.scheme instanceof RegExp||"string"==typeof e.scheme||Array.isArray(e.scheme),"scheme must be a RegExp, String, or Array");const r=[].concat(e.scheme);a(r.length>=1,"scheme must have at least 1 scheme specified");const o=[];for(let e=0;e0&&void 0!==arguments[0]?arguments[0]:{};return e.scheme||e.allowRelative||e.relativeOnly||e.allowQuerySquareBrackets||e.domain?o.createRegex(e):o.uriRegex}},1447:(e,t)=>{"use strict";const r={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};t.Parser=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t[r.settings]&&t.constants)for(const e in t.constants){const r=t.constants[e];if(null!==r&&!["boolean","number","string"].includes(typeof r))throw new Error(`Formula constant ${e} contains invalid ${typeof r} value type`)}this.settings=t[r.settings]?t:Object.assign({[r.settings]:!0,constants:{},functions:{}},t),this.single=null,this._parts=null,this._parse(e)}_parse(e){let a=[],n="",o=0,s=!1;const i=e=>{if(o)throw new Error("Formula missing closing parenthesis");const i=a.length?a[a.length-1]:null;if(s||n||e){if(i&&"reference"===i.type&&")"===e)return i.type="function",i.value=this._subFormula(n,i.value),void(n="");if(")"===e){const e=new t.Parser(n,this.settings);a.push({type:"segment",value:e})}else if(s){if("]"===s)return a.push({type:"reference",value:n}),void(n="");a.push({type:"literal",value:n})}else if(r.operatorCharacters.includes(n))i&&"operator"===i.type&&r.operators.includes(i.value+n)?i.value+=n:a.push({type:"operator",value:n});else if(n.match(r.numberRx))a.push({type:"constant",value:parseFloat(n)});else if(void 0!==this.settings.constants[n])a.push({type:"constant",value:this.settings.constants[n]});else{if(!n.match(r.tokenRx))throw new Error(`Formula contains invalid token: ${n}`);a.push({type:"reference",value:n})}n=""}};for(const t of e)s?t===s?(i(),s=!1):n+=t:o?"("===t?(n+=t,++o):")"===t?(--o,o?n+=t:i(t)):n+=t:t in r.literals?s=r.literals[t]:"("===t?(i(),++o):r.operatorCharacters.includes(t)?(i(),n=t,i()):" "!==t?n+=t:i();i(),a=a.map(((e,t)=>"operator"!==e.type||"-"!==e.value||t&&"operator"!==a[t-1].type?e:{type:"operator",value:"n"}));let l=!1;for(const e of a){if("operator"===e.type){if(r.operatorsPrefix.includes(e.value))continue;if(!l)throw new Error("Formula contains an operator in invalid position");if(!r.operators.includes(e.value))throw new Error(`Formula contains an unknown operator ${e.value}`)}else if(l)throw new Error("Formula missing expected operator");l=!l}if(!l)throw new Error("Formula contains invalid trailing operator");1===a.length&&["reference","literal","constant"].includes(a[0].type)&&(this.single={type:"reference"===a[0].type?"reference":"value",value:a[0].value}),this._parts=a.map((e=>{if("operator"===e.type)return r.operatorsPrefix.includes(e.value)?e:e.value;if("reference"!==e.type)return e.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(e.value))throw new Error(`Formula contains invalid reference ${e.value}`);return this.settings.reference?this.settings.reference(e.value):r.reference(e.value)}))}_subFormula(e,a){const n=this.settings.functions[a];if("function"!=typeof n)throw new Error(`Formula contains unknown function ${a}`);let o=[];if(e){let t="",n=0,s=!1;const i=()=>{if(!t)throw new Error(`Formula contains function ${a} with invalid arguments ${e}`);o.push(t),t=""};for(let a=0;anew t.Parser(e,this.settings))),function(e){const t=[];for(const r of o)t.push(r.evaluate(e));return n.call(e,...t)}}evaluate(e){const t=this._parts.slice();for(let a=t.length-2;a>=0;--a){const n=t[a];if(n&&"operator"===n.type){const o=t[a+1];t.splice(a+1,1);const s=r.evaluate(o,e);t[a]=r.single(n.value,s)}}return r.operatorsOrder.forEach((a=>{for(let n=1;n":return t>a;case">=":return t>=a;case"==":return t===a;case"!=":return t!==a;case"&&":return t&&a;case"||":return t||a}return null},r.exists=function(e){return null!=e}},9926:()=>{},5688:()=>{},9708:()=>{},1152:()=>{},443:()=>{},9848:()=>{},5934:e=>{"use strict";e.exports=JSON.parse('{"version":"17.11.0"}')}},t={},function r(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,r),o.exports}(5107);var e,t},e.exports=t()},2043:function(e,t,r){var a,n;!function(o,s){"use strict";a=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"];function n(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(t,r){for(var n=0;n=0&&r<=i.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(o=r,!1!==n&&function(e){var r=(a[e]||"silent").toUpperCase();if(typeof window!==t&&c){try{return void(window.localStorage[c]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"="+r+";"}catch(e){}}}(r),s.call(i,r,e),typeof console===t&&r{"use strict";const a=r(610),n=r(4020),o=r(500),s=r(2806),i=Symbol("encodeFragmentIdentifier");function l(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?a(e):encodeURIComponent(e):e}function u(e,t){return t.decode?n(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function p(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function g(e){const t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function w(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,a)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===a[e]&&(a[e]={}),a[e][t[1]]=r):a[e]=r};case"bracket":return(e,r,a)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==a[e]?a[e]=[].concat(a[e],r):a[e]=[r]:a[e]=r};case"colon-list-separator":return(e,r,a)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==a[e]?a[e]=[].concat(a[e],r):a[e]=[r]:a[e]=r};case"comma":case"separator":return(t,r,a)=>{const n="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!n&&u(r,e).includes(e.arrayFormatSeparator);r=o?u(r,e):r;const s=n||o?r.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===r?r:u(r,e);a[t]=s};case"bracket-separator":return(t,r,a)=>{const n=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!n)return void(a[t]=r?u(r,e):r);const o=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==a[t]?a[t]=[].concat(a[t],o):a[t]=o};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),a=Object.create(null);if("string"!=typeof e)return a;if(!(e=e.trim().replace(/^[?#&]/,"")))return a;for(const n of e.split("&")){if(""===n)continue;let[e,s]=o(t.decode?n.replace(/\+/g," "):n,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:u(s,t),r(u(e,t),s,a)}for(const e of Object.keys(a)){const r=a[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=m(r[e],t);else a[e]=m(r,t)}return!1===t.sort?a:(!0===t.sort?Object.keys(a).sort():Object.keys(a).sort(t.sort)).reduce(((e,t)=>{const r=a[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=d(r):e[t]=r,e}),Object.create(null))}t.extract=g,t.parse=w,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],a=function(e){switch(e.arrayFormat){case"index":return t=>(r,a)=>{const n=r.length;return void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,[c(t,e),"[",n,"]"].join("")]:[...r,[c(t,e),"[",c(n,e),"]=",c(a,e)].join("")]};case"bracket":return t=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,[c(t,e),"[]"].join("")]:[...r,[c(t,e),"[]=",c(a,e)].join("")];case"colon-list-separator":return t=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,[c(t,e),":list="].join("")]:[...r,[c(t,e),":list=",c(a,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(a,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?a:(n=null===n?"":n,0===a.length?[[c(r,e),t,c(n,e)].join("")]:[[a,c(n,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,c(t,e)]:[...r,[c(t,e),"=",c(a,e)].join("")]}}(t),n={};for(const t of Object.keys(e))r(t)||(n[t]=e[t]);const o=Object.keys(n);return!1!==t.sort&&o.sort(t.sort),o.map((r=>{const n=e[r];return void 0===n?"":null===n?c(r,t):Array.isArray(n)?0===n.length&&"bracket-separator"===t.arrayFormat?c(r,t)+"[]":n.reduce(a(r),[]).join("&"):c(r,t)+"="+c(n,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,a]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:w(g(e),t)},t&&t.parseFragmentIdentifier&&a?{fragmentIdentifier:u(a,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[i]:!0},r);const a=p(e.url).split("?")[0]||"",n=t.extract(e.url),o=t.parse(n,{sort:!1}),s=Object.assign(o,e.query);let l=t.stringify(s,r);l&&(l=`?${l}`);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u=`#${r[i]?c(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${a}${l}${u}`},t.pick=(e,r,a)=>{a=Object.assign({parseFragmentIdentifier:!0,[i]:!1},a);const{url:n,query:o,fragmentIdentifier:l}=t.parseUrl(e,a);return t.stringifyUrl({url:n,query:s(o,r),fragmentIdentifier:l},a)},t.exclude=(e,r,a)=>{const n=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,n,a)}},500:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},7886:(e,t,r)=>{const{fdkAxios:a}=r(2638),{convertStringToBase64:n}=r(5860);e.exports=class{static execute(e,t,r,o,s,i,l){let c={Authorization:"Bearer "+n(`${e.applicationID}:${e.applicationToken}`)};e.cookie&&(c={...c,cookie:e.cookie}),e.locationDetails&&(c={...c,"x-location-detail":JSON.stringify(e.locationDetails)}),e.currencyCode&&(c={...c,"x-currency-code":e.currencyCode});const u=e.extraHeaders.reduce(((e,t)=>({...e,...t})),{});let d={method:t,url:r,params:o,data:s,headers:{...c,...u,...i},responseHeaders:l.responseHeaders};return d=JSON.parse(JSON.stringify(d)),a.request(d)}}},9007:(e,t,r)=>{const a=r(2403),n=r(4196),o=r(737),s=r(4113),i=r(5970),l=r(4976),c=r(8568),u=r(562),d=r(4203),p=r(9171),g=r(3242),m=r(4823),w=r(4107),y=r(3740),f=r(4683),b=r(9792),{FDKClientValidationError:h}=r(7208);e.exports=class{constructor(e){this.config=e,this.cart=new a(e),this.catalog=new n(e),this.common=new o(e),this.communication=new s(e),this.configuration=new i(e),this.content=new l(e),this.fileStorage=new c(e),this.lead=new u(e),this.logistic=new d(e),this.order=new p(e),this.payment=new g(e),this.posCart=new m(e),this.rewards=new w(e),this.share=new y(e),this.theme=new f(e),this.user=new b(e)}setCookie(e){this.config.cookie=e}setLocationDetails(e){this.config.locationDetails={...this.config.locationDetails,...e}}setCurrencyCode(e){if("string"!=typeof e)throw new h("Currency code should be string only");this.config.currencyCode=e}setExtraHeaders(e){if("object"!=typeof e)throw new h("Context value should be an object");this.config.extraHeaders.push(e)}}},6894:(e,t,r)=>{const{FDKInvalidCredentialError:a}=r(7208),{Logger:n,setLoggerLevel:o}=r(7378);e.exports=class{constructor(e,t){this.applicationID=e.applicationID||"",this.applicationToken=e.applicationToken||"",this.opts=t||{},this.domain=e.domain||"https://api.fynd.com",this.logLevel=e.logLevel||"ERROR",this.setLogLevel(this.logLevel),this.extraHeaders=[],this.locationDetails=e.locationDetails,this.currencyCode=e.currencyCode||"INR",this.validate()}setLogLevel(e){o(e.toUpperCase()),this.logLevel=e.toUpperCase()}setCookie(e){this.cookie=e}validate(){if(!this.applicationID)throw n({level:"ERROR",message:"No Application ID Present"}),new a("No Application ID Present");if(!this.applicationToken)throw n({level:"ERROR",message:"No Application Token Present"}),new a("No Application Token Present");if(this.applicationToken.length<5)throw n({level:"ERROR",message:"Invalid Application Token"}),new a("Invalid Application Token")}}},2403:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(6206)),i=r(7350),{Logger:l}=r(7378),c=r(2705);e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addAddress:"/service/application/cart/v1.0/address",addItems:"/service/application/cart/v1.0/detail",applyCoupon:"/service/application/cart/v1.0/coupon",applyRewardPoints:"/service/application/cart/v1.0/redeem/points/",checkoutCart:"/service/application/cart/v1.0/checkout",checkoutCartV2:"/service/application/cart/v2.0/checkout",deleteCart:"/service/application/cart/v1.0/cart_archive",getAddressById:"/service/application/cart/v1.0/address/{id}",getAddresses:"/service/application/cart/v1.0/address",getBulkDiscountOffers:"/service/application/cart/v1.0/bulk-price",getCart:"/service/application/cart/v1.0/detail",getCartLastModified:"/service/application/cart/v1.0/detail",getCartShareLink:"/service/application/cart/v1.0/share-cart",getCartSharedItems:"/service/application/cart/v1.0/share-cart/{token}",getCoupons:"/service/application/cart/v1.0/coupon",getItemCount:"/service/application/cart/v1.0/basic",getLadderOffers:"/service/application/cart/v1.0/available-ladder-prices",getPromotionOffers:"/service/application/cart/v1.0/available-promotions",getShipments:"/service/application/cart/v1.0/shipment",removeAddress:"/service/application/cart/v1.0/address/{id}",removeCoupon:"/service/application/cart/v1.0/coupon",selectAddress:"/service/application/cart/v1.0/select-address",selectPaymentMode:"/service/application/cart/v1.0/payment",updateAddress:"/service/application/cart/v1.0/address/{id}",updateCart:"/service/application/cart/v1.0/detail",updateCartMeta:"/service/application/cart/v1.0/meta",updateCartWithSharedItems:"/service/application/cart/v1.0/share-cart/{token}/{action}",validateCouponForPayment:"/service/application/cart/v1.0/payment/validate/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addAddress({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.addAddress().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.addAddress().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > addAddress \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.addAddress,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.SaveAddressResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > addAddress \n ${g}`}),d}async addItems({body:e,i:t,b:r,areaCode:c,buyNow:u,id:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.addItems().validate({body:e,i:t,b:r,areaCode:c,buyNow:u,id:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.addItems().validate({body:e,i:t,b:r,areaCode:c,buyNow:u,id:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > addItems \n ${w}`});const y={};y.i=t,y.b=r,y.area_code=c,y.buy_now=u,y.id=d;const f=await a.execute(this._conf,"post",o({url:this._urls.addItems,params:{}}),y,e,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.AddCartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > addItems \n ${h}`}),f}async applyCoupon({body:e,i:t,b:r,p:c,id:u,buyNow:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.applyCoupon().validate({body:e,i:t,b:r,p:c,id:u,buyNow:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.applyCoupon().validate({body:e,i:t,b:r,p:c,id:u,buyNow:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > applyCoupon \n ${w}`});const y={};y.i=t,y.b=r,y.p=c,y.id=u,y.buy_now=d;const f=await a.execute(this._conf,"post",o({url:this._urls.applyCoupon,params:{}}),y,e,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.CartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > applyCoupon \n ${h}`}),f}async applyRewardPoints({body:e,id:t,i:r,b:c,buyNow:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=s.applyRewardPoints().validate({body:e,id:t,i:r,b:c,buyNow:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=s.applyRewardPoints().validate({body:e,id:t,i:r,b:c,buyNow:u},{abortEarly:!1,allowUnknown:!1});m&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > applyRewardPoints \n ${m}`});const w={};w.id=t,w.i=r,w.b=c,w.buy_now=u;const y=await a.execute(this._conf,"post",o({url:this._urls.applyRewardPoints,params:{}}),w,e,{...d},{responseHeaders:p});let f=y;p&&(f=y[0]);const{error:b}=i.CartDetailResponse().validate(f,{abortEarly:!1,allowUnknown:!1});return b&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > applyRewardPoints \n ${b}`}),y}async checkoutCart({body:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.checkoutCart().validate({body:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.checkoutCart().validate({body:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > checkoutCart \n ${d}`});const p={};p.buy_now=t;const g=await a.execute(this._conf,"post",o({url:this._urls.checkoutCart,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CartCheckoutResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > checkoutCart \n ${w}`}),g}async checkoutCartV2({body:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.checkoutCartV2().validate({body:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.checkoutCartV2().validate({body:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > checkoutCartV2 \n ${d}`});const p={};p.buy_now=t;const g=await a.execute(this._conf,"post",o({url:this._urls.checkoutCartV2,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CartCheckoutResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > checkoutCartV2 \n ${w}`}),g}async deleteCart({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.deleteCart().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.deleteCart().validate({id:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > deleteCart \n ${u}`});const d={};d.id=e;const p=await a.execute(this._conf,"put",o({url:this._urls.deleteCart,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.DeleteCartDetailResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > deleteCart \n ${m}`}),p}async getAddressById({id:e,cartId:t,buyNow:r,mobileNo:c,checkoutMode:u,tags:d,isDefault:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=s.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:c,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:y}=s.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:c,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!1});y&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getAddressById \n ${y}`});const f={};f.cart_id=t,f.buy_now=r,f.mobile_no=c,f.checkout_mode=u,f.tags=d,f.is_default=p;const b=await a.execute(this._conf,"get",o({url:this._urls.getAddressById,params:{id:e}}),f,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=i.Address().validate(h,{abortEarly:!1,allowUnknown:!1});return _&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getAddressById \n ${_}`}),b}async getAddresses({cartId:e,buyNow:t,mobileNo:r,checkoutMode:c,tags:u,isDefault:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:c,tags:u,isDefault:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:c,tags:u,isDefault:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getAddresses \n ${w}`});const y={};y.cart_id=e,y.buy_now=t,y.mobile_no=r,y.checkout_mode=c,y.tags=u,y.is_default=d;const f=await a.execute(this._conf,"get",o({url:this._urls.getAddresses,params:{}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.GetAddressesResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getAddresses \n ${h}`}),f}async getBulkDiscountOffers({itemId:e,articleId:t,uid:r,slug:c,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=s.getBulkDiscountOffers().validate({itemId:e,articleId:t,uid:r,slug:c},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=s.getBulkDiscountOffers().validate({itemId:e,articleId:t,uid:r,slug:c},{abortEarly:!1,allowUnknown:!1});g&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getBulkDiscountOffers \n ${g}`});const m={};m.item_id=e,m.article_id=t,m.uid=r,m.slug=c;const w=await a.execute(this._conf,"get",o({url:this._urls.getBulkDiscountOffers,params:{}}),m,void 0,{...u},{responseHeaders:d});let y=w;d&&(y=w[0]);const{error:f}=i.BulkPriceResponse().validate(y,{abortEarly:!1,allowUnknown:!1});return f&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getBulkDiscountOffers \n ${f}`}),w}async getCart({id:e,i:t,b:r,assignCardId:c,areaCode:u,buyNow:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.getCart().validate({id:e,i:t,b:r,assignCardId:c,areaCode:u,buyNow:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.getCart().validate({id:e,i:t,b:r,assignCardId:c,areaCode:u,buyNow:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCart \n ${w}`});const y={};y.id=e,y.i=t,y.b=r,y.assign_card_id=c,y.area_code=u,y.buy_now=d;const f=await a.execute(this._conf,"get",o({url:this._urls.getCart,params:{}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.CartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getCart \n ${h}`}),f}async getCartLastModified({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=s.getCartLastModified().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:u}=s.getCartLastModified().validate({id:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCartLastModified \n ${u}`});const d={};d.id=e;const p=await a.execute(this._conf,"head",o({url:this._urls.getCartLastModified,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.string().allow("").validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getCartLastModified \n ${m}`}),p}async getCartShareLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getCartShareLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getCartShareLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCartShareLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getCartShareLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.GetShareCartLinkResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getCartShareLink \n ${g}`}),d}async getCartSharedItems({token:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getCartSharedItems().validate({token:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getCartSharedItems().validate({token:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCartSharedItems \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getCartSharedItems,params:{token:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.SharedCartResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getCartSharedItems \n ${g}`}),d}async getCoupons({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getCoupons().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getCoupons().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCoupons \n ${d}`});const p={};p.id=e,p.buy_now=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getCoupons,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.GetCouponResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getCoupons \n ${w}`}),g}async getItemCount({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getItemCount().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getItemCount().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getItemCount \n ${d}`});const p={};p.id=e,p.buy_now=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getItemCount,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CartItemCountResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getItemCount \n ${w}`}),g}async getLadderOffers({slug:e,storeId:t,promotionId:r,pageSize:c,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=s.getLadderOffers().validate({slug:e,storeId:t,promotionId:r,pageSize:c},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=s.getLadderOffers().validate({slug:e,storeId:t,promotionId:r,pageSize:c},{abortEarly:!1,allowUnknown:!1});g&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getLadderOffers \n ${g}`});const m={};m.slug=e,m.store_id=t,m.promotion_id=r,m.page_size=c;const w=await a.execute(this._conf,"get",o({url:this._urls.getLadderOffers,params:{}}),m,void 0,{...u},{responseHeaders:d});let y=w;d&&(y=w[0]);const{error:f}=i.LadderPriceOffers().validate(y,{abortEarly:!1,allowUnknown:!1});return f&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getLadderOffers \n ${f}`}),w}async getPromotionOffers({slug:e,pageSize:t,promotionGroup:r,storeId:c,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=s.getPromotionOffers().validate({slug:e,pageSize:t,promotionGroup:r,storeId:c},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=s.getPromotionOffers().validate({slug:e,pageSize:t,promotionGroup:r,storeId:c},{abortEarly:!1,allowUnknown:!1});g&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getPromotionOffers \n ${g}`});const m={};m.slug=e,m.page_size=t,m.promotion_group=r,m.store_id=c;const w=await a.execute(this._conf,"get",o({url:this._urls.getPromotionOffers,params:{}}),m,void 0,{...u},{responseHeaders:d});let y=w;d&&(y=w[0]);const{error:f}=i.PromotionOffersResponse().validate(y,{abortEarly:!1,allowUnknown:!1});return f&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getPromotionOffers \n ${f}`}),w}async getShipments({p:e,id:t,buyNow:r,addressId:c,areaCode:u,orderType:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.getShipments().validate({p:e,id:t,buyNow:r,addressId:c,areaCode:u,orderType:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.getShipments().validate({p:e,id:t,buyNow:r,addressId:c,areaCode:u,orderType:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getShipments \n ${w}`});const y={};y.p=e,y.id=t,y.buy_now=r,y.address_id=c,y.area_code=u,y.order_type=d;const f=await a.execute(this._conf,"get",o({url:this._urls.getShipments,params:{}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.CartShipmentsResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getShipments \n ${h}`}),f}async removeAddress({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.removeAddress().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.removeAddress().validate({id:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > removeAddress \n ${u}`});const d=await a.execute(this._conf,"delete",o({url:this._urls.removeAddress,params:{id:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.DeleteAddressResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > removeAddress \n ${g}`}),d}async removeCoupon({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.removeCoupon().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.removeCoupon().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > removeCoupon \n ${d}`});const p={};p.id=e,p.buy_now=t;const g=await a.execute(this._conf,"delete",o({url:this._urls.removeCoupon,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CartDetailResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > removeCoupon \n ${w}`}),g}async selectAddress({body:e,cartId:t,buyNow:r,i:c,b:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=s.selectAddress().validate({body:e,cartId:t,buyNow:r,i:c,b:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=s.selectAddress().validate({body:e,cartId:t,buyNow:r,i:c,b:u},{abortEarly:!1,allowUnknown:!1});m&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > selectAddress \n ${m}`});const w={};w.cart_id=t,w.buy_now=r,w.i=c,w.b=u;const y=await a.execute(this._conf,"post",o({url:this._urls.selectAddress,params:{}}),w,e,{...d},{responseHeaders:p});let f=y;p&&(f=y[0]);const{error:b}=i.CartDetailResponse().validate(f,{abortEarly:!1,allowUnknown:!1});return b&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > selectAddress \n ${b}`}),y}async selectPaymentMode({body:e,id:t,buyNow:r,requestHeaders:c}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=s.selectPaymentMode().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=s.selectPaymentMode().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!1});p&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > selectPaymentMode \n ${p}`});const g={};g.id=t,g.buy_now=r;const m=await a.execute(this._conf,"put",o({url:this._urls.selectPaymentMode,params:{}}),g,e,{...c},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=i.CartDetailResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > selectPaymentMode \n ${y}`}),m}async updateAddress({id:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.updateAddress().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.updateAddress().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateAddress \n ${d}`});const p=await a.execute(this._conf,"put",o({url:this._urls.updateAddress,params:{id:e}}),{},t,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.UpdateAddressResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > updateAddress \n ${m}`}),p}async updateCart({body:e,id:t,i:r,b:c,areaCode:u,buyNow:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.updateCart().validate({body:e,id:t,i:r,b:c,areaCode:u,buyNow:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.updateCart().validate({body:e,id:t,i:r,b:c,areaCode:u,buyNow:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateCart \n ${w}`});const y={};y.id=t,y.i=r,y.b=c,y.area_code=u,y.buy_now=d;const f=await a.execute(this._conf,"put",o({url:this._urls.updateCart,params:{}}),y,e,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.UpdateCartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > updateCart \n ${h}`}),f}async updateCartMeta({body:e,id:t,buyNow:r,requestHeaders:c}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=s.updateCartMeta().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=s.updateCartMeta().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!1});p&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateCartMeta \n ${p}`});const g={};g.id=t,g.buy_now=r;const m=await a.execute(this._conf,"put",o({url:this._urls.updateCartMeta,params:{}}),g,e,{...c},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=i.CartMetaResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > updateCartMeta \n ${y}`}),m}async updateCartWithSharedItems({token:e,action:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.updateCartWithSharedItems().validate({token:e,action:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.updateCartWithSharedItems().validate({token:e,action:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateCartWithSharedItems \n ${d}`});const p=await a.execute(this._conf,"post",o({url:this._urls.updateCartWithSharedItems,params:{token:e,action:t}}),{},void 0,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.SharedCartResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > updateCartWithSharedItems \n ${m}`}),p}async validateCouponForPayment({id:e,buyNow:t,addressId:r,paymentMode:c,paymentIdentifier:u,aggregatorName:d,merchantCode:p,iin:g,network:m,type:w,cardId:y,requestHeaders:f}={requestHeaders:{}},{responseHeaders:b}={responseHeaders:!1}){const{error:h}=s.validateCouponForPayment().validate({id:e,buyNow:t,addressId:r,paymentMode:c,paymentIdentifier:u,aggregatorName:d,merchantCode:p,iin:g,network:m,type:w,cardId:y},{abortEarly:!1,allowUnknown:!0});if(h)return Promise.reject(new n(h));const{error:_}=s.validateCouponForPayment().validate({id:e,buyNow:t,addressId:r,paymentMode:c,paymentIdentifier:u,aggregatorName:d,merchantCode:p,iin:g,network:m,type:w,cardId:y},{abortEarly:!1,allowUnknown:!1});_&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > validateCouponForPayment \n ${_}`});const v={};v.id=e,v.buy_now=t,v.address_id=r,v.payment_mode=c,v.payment_identifier=u,v.aggregator_name=d,v.merchant_code=p,v.iin=g,v.network=m,v.type=w,v.card_id=y;const k=await a.execute(this._conf,"get",o({url:this._urls.validateCouponForPayment,params:{}}),v,void 0,{...f},{responseHeaders:b});let R=k;b&&(R=k[0]);const{error:P}=i.PaymentCouponValidate().validate(R,{abortEarly:!1,allowUnknown:!1});return P&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > validateCouponForPayment \n ${P}`}),k}}},7350:(e,t,r)=>{const a=r(2705);class n{static ActionQuery(){return a.object({product_slug:a.array().items(a.string().allow(""))})}static AddCartDetailResponse(){return a.object({cart:n.CartDetailResponse(),message:a.string().allow(""),partial:a.boolean(),success:a.boolean()})}static AddCartRequest(){return a.object({items:a.array().items(n.AddProductCart()),new_cart:a.boolean()})}static AddProductCart(){return a.object({_custom_json:a.any(),article_assignment:a.any(),article_id:a.string().allow(""),display:a.string().allow(""),extra_meta:a.any(),item_id:a.number(),item_size:a.string().allow(""),meta:a.any(),parent_item_identifiers:a.array().items(a.object().pattern(/\S/,a.string().allow(""))),pos:a.boolean(),product_group_tags:a.array().items(a.string().allow("").allow(null)),quantity:a.number(),seller_id:a.number(),store_id:a.number()})}static Address(){return a.object({_custom_json:a.any(),address:a.string().allow(""),address_type:a.string().allow(""),area:a.string().allow(""),area_code:a.string().allow(""),area_code_slug:a.string().allow(""),checkout_mode:a.string().allow(""),city:a.string().allow(""),country:a.string().allow(""),country_code:a.string().allow(""),country_iso_code:a.string().allow(""),country_phone_code:a.string().allow(""),created_by_user_id:a.string().allow(""),email:a.string().allow(""),geo_location:n.GeoLocation(),google_map_point:a.any(),id:a.string().allow(""),is_active:a.boolean(),is_default_address:a.boolean(),landmark:a.string().allow(""),meta:a.any(),name:a.string().allow(""),phone:a.string().allow(""),state:a.string().allow(""),tags:a.array().items(a.string().allow("")),user_id:a.string().allow("")})}static AppliedFreeArticles(){return a.object({article_id:a.string().allow(""),free_gift_item_details:n.FreeGiftItem(),parent_item_identifier:a.string().allow(""),quantity:a.number()})}static AppliedPromotion(){return a.object({amount:a.number(),applied_free_articles:a.array().items(n.AppliedFreeArticles()),article_quantity:a.number(),buy_rules:a.array().items(n.BuyRules()),discount_rules:a.array().items(n.DiscountRulesApp()),mrp_promotion:a.boolean(),offer_text:a.string().allow(""),ownership:n.Ownership(),promo_id:a.string().allow(""),promotion_group:a.string().allow(""),promotion_name:a.string().allow(""),promotion_type:a.string().allow("")})}static ApplyCouponRequest(){return a.object({coupon_code:a.string().allow("").required()})}static ArticleGiftDetail(){return a.object({article_id:n.GiftDetail()})}static ArticlePriceInfo(){return a.object({base:n.BasePrice(),converted:n.BasePrice()})}static BaseInfo(){return a.object({name:a.string().allow(""),uid:a.number()})}static BasePrice(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),effective:a.number(),marked:a.number()})}static BulkPriceOffer(){return a.object({offers:a.array().items(n.OfferItem()),seller:n.OfferSeller()})}static BulkPriceResponse(){return a.object({data:a.array().items(n.BulkPriceOffer())})}static BuyRules(){return a.object({cart_conditions:a.any(),item_criteria:a.any()})}static CartBreakup(){return a.object({coupon:n.CouponBreakup(),display:a.array().items(n.DisplayBreakup()),loyalty_points:n.LoyaltyPoints(),raw:n.RawBreakup()})}static CartCheckoutCustomMeta(){return a.object({key:a.string().allow("").required(),value:a.string().allow("").required()})}static CartCheckoutDetailRequest(){return a.object({address_id:a.string().allow(""),aggregator:a.string().allow(""),billing_address:a.any(),billing_address_id:a.string().allow(""),callback_url:a.string().allow("").allow(null),custom_meta:a.array().items(n.CartCheckoutCustomMeta()),customer_details:a.any().allow(null),delivery_address:a.any(),extra_meta:a.any(),id:a.string().allow("").allow(null),merchant_code:a.string().allow(""),meta:a.any(),order_type:a.string().allow(""),ordering_store:a.number().allow(null),payment_auto_confirm:a.boolean(),payment_extra_identifiers:a.any(),payment_identifier:a.string().allow("").allow(null),payment_mode:a.string().allow("").required(),payment_params:a.any().allow(null),staff:n.StaffCheckout()})}static CartCheckoutDetailV2Request(){return a.object({address_id:a.string().allow(""),aggregator:a.string().allow(""),billing_address:a.any(),billing_address_id:a.string().allow(""),callback_url:a.string().allow("").allow(null),cart_id:a.string().allow(""),custom_meta:a.any(),customer_details:a.any().allow(null),delivery_address:a.any(),extra_meta:a.any(),id:a.string().allow("").allow(null),merchant_code:a.string().allow(""),meta:a.any(),order_type:a.string().allow(""),ordering_store:a.number().allow(null),payment_auto_confirm:a.boolean(),payment_identifier:a.string().allow("").allow(null),payment_methods:a.array().items(n.PaymentMethod()).required(),payment_mode:a.string().allow("").required(),payment_params:a.any().allow(null),staff:n.StaffCheckout()})}static CartCheckoutResponse(){return a.object({app_intercept_url:a.string().allow(""),callback_url:a.string().allow(""),cart:n.CheckCart(),data:a.any(),message:a.string().allow(""),order_id:a.string().allow(""),payment_confirm_url:a.string().allow(""),success:a.boolean()})}static CartCurrency(){return a.object({code:a.string().allow(""),symbol:a.string().allow("")})}static CartDetailResponse(){return a.object({applied_promo_details:a.array().items(n.AppliedPromotion()),breakup_values:n.CartBreakup(),buy_now:a.boolean(),checkout_mode:a.string().allow(""),comment:a.string().allow(""),coupon_text:a.string().allow(""),currency:n.CartCurrency(),delivery_charge_info:a.string().allow(""),delivery_promise:n.ShipmentPromise(),gstin:a.string().allow(""),id:a.string().allow(""),is_valid:a.boolean(),items:a.array().items(n.CartProductInfo()),last_modified:a.string().allow(""),message:a.string().allow(""),pan_config:a.any(),pan_no:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),restrict_checkout:a.boolean()})}static CartItemCountResponse(){return a.object({user_cart_items_count:a.number()})}static CartMetaMissingResponse(){return a.object({errors:a.array().items(a.string().allow(""))})}static CartMetaRequest(){return a.object({checkout_mode:a.string().allow(""),comment:a.string().allow(""),delivery_slots:a.any(),gift_details:n.ArticleGiftDetail(),gstin:a.string().allow(""),pick_up_customer_details:a.any()})}static CartMetaResponse(){return a.object({is_valid:a.boolean(),message:a.string().allow("")})}static CartProduct(){return a.object({_custom_json:a.any(),action:n.ProductAction(),brand:n.BaseInfo(),categories:a.array().items(n.CategoryInfo()),images:a.array().items(n.ProductImage()),item_code:a.string().allow("").allow(null),name:a.string().allow(""),slug:a.string().allow(""),tags:a.array().items(a.string().allow("")),teaser_tag:n.Tags(),type:a.string().allow(""),uid:a.number()})}static CartProductIdentifer(){return a.object({identifier:a.string().allow("")})}static CartProductInfo(){return a.object({article:n.ProductArticle(),availability:n.ProductAvailability(),bulk_offer:a.any(),coupon:n.CouponDetails(),coupon_message:a.string().allow(""),custom_order:a.any(),delivery_promise:n.ShipmentPromise(),discount:a.string().allow(""),identifiers:n.CartProductIdentifer().required(),is_set:a.boolean(),key:a.string().allow(""),message:a.string().allow(""),moq:a.any(),parent_item_identifiers:a.any(),price:n.ProductPriceInfo(),price_per_unit:n.ProductPriceInfo(),product:n.CartProduct(),promo_meta:n.PromoMeta(),promotions_applied:a.array().items(n.AppliedPromotion()),quantity:a.number()})}static CartShipmentsResponse(){return a.object({breakup_values:n.CartBreakup(),buy_now:a.boolean(),cart_id:a.number(),checkout_mode:a.string().allow(""),comment:a.string().allow(""),coupon_text:a.string().allow(""),currency:n.CartCurrency(),delivery_charge_info:a.string().allow(""),delivery_promise:n.ShipmentPromise(),error:a.boolean(),gstin:a.string().allow(""),id:a.string().allow(""),is_valid:a.boolean(),last_modified:a.string().allow(""),message:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),restrict_checkout:a.boolean(),shipments:a.array().items(n.ShipmentResponse()),uid:a.string().allow("")})}static CategoryInfo(){return a.object({name:a.string().allow(""),uid:a.number()})}static CheckCart(){return a.object({breakup_values:n.CartBreakup(),buy_now:a.boolean(),cart_id:a.number(),checkout_mode:a.string().allow(""),cod_available:a.boolean(),cod_charges:a.number(),cod_message:a.string().allow(""),comment:a.string().allow(""),coupon_text:a.string().allow(""),currency:n.CartCurrency(),delivery_charge_info:a.string().allow(""),delivery_charge_order_value:a.number(),delivery_charges:a.number(),delivery_promise:n.ShipmentPromise(),error_message:a.string().allow(""),gstin:a.string().allow(""),id:a.string().allow(""),is_valid:a.boolean(),items:a.array().items(n.CartProductInfo()),last_modified:a.string().allow(""),message:a.string().allow(""),order_id:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),restrict_checkout:a.boolean(),store_code:a.string().allow(""),store_emps:a.array().items(a.any()),success:a.boolean(),uid:a.string().allow(""),user_type:a.string().allow("")})}static Coupon(){return a.object({coupon_code:a.string().allow(""),coupon_type:a.string().allow("").allow(null),coupon_value:a.number(),description:a.string().allow("").allow(null),expires_on:a.string().allow(""),is_applicable:a.boolean(),is_applied:a.boolean(),max_discount_value:a.number(),message:a.string().allow(""),minimum_cart_value:a.number(),sub_title:a.string().allow(""),title:a.string().allow("")})}static CouponBreakup(){return a.object({code:a.string().allow(""),coupon_type:a.string().allow("").allow(null),coupon_value:a.number(),description:a.string().allow("").allow(null),is_applied:a.boolean(),max_discount_value:a.number(),message:a.string().allow(""),minimum_cart_value:a.number(),sub_title:a.string().allow("").allow(null),title:a.string().allow("").allow(null),type:a.string().allow(""),uid:a.string().allow(""),value:a.number()})}static CouponDetails(){return a.object({code:a.string().allow(""),discount_single_quantity:a.number(),discount_total_quantity:a.number()})}static CouponValidity(){return a.object({code:a.string().allow("").allow(null),discount:a.number(),display_message_en:a.string().allow("").allow(null),next_validation_required:a.boolean().allow(null),title:a.string().allow(""),valid:a.boolean()})}static CurrencyInfo(){return a.object({code:a.string().allow(""),symbol:a.string().allow("")})}static CustomerDetails(){return a.object({email:a.string().allow("").allow(null),mobile:a.string().allow("").required(),name:a.string().allow("")})}static DeleteAddressResponse(){return a.object({id:a.string().allow(""),is_deleted:a.boolean()})}static DeleteCartDetailResponse(){return a.object({message:a.string().allow(""),success:a.boolean()})}static DiscountRulesApp(){return a.object({item_criteria:a.any(),matched_buy_rules:a.array().items(a.string().allow("")),offer:a.any(),raw_offer:a.any()})}static DisplayBreakup(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),display:a.string().allow(""),key:a.string().allow(""),message:a.array().items(a.string().allow("")),value:a.number()})}static FreeGiftItem(){return a.object({item_brand_name:a.string().allow(""),item_id:a.number(),item_images_url:a.array().items(a.string().allow("")),item_name:a.string().allow(""),item_price_details:a.any(),item_slug:a.string().allow("")})}static FreeGiftItems(){return a.object({item_brand_name:a.string().allow(""),item_id:a.number(),item_images_url:a.array().items(a.string().allow("")),item_name:a.string().allow(""),item_price_details:a.any(),item_slug:a.string().allow("")})}static GeoLocation(){return a.object({latitude:a.number(),longitude:a.number()})}static GetAddressesResponse(){return a.object({address:a.array().items(n.Address()),pii_masking:a.boolean()})}static GetCouponResponse(){return a.object({available_coupon_list:a.array().items(n.Coupon()),page:n.PageCoupon()})}static GetShareCartLinkRequest(){return a.object({id:a.string().allow(""),meta:a.any()})}static GetShareCartLinkResponse(){return a.object({share_url:a.string().allow(""),token:a.string().allow("")})}static GiftDetail(){return a.object({gift_message:a.string().allow(""),is_gift_applied:a.boolean()})}static LadderOfferItem(){return a.object({margin:a.number(),max_quantity:a.number(),min_quantity:a.number(),price:n.LadderPrice(),type:a.string().allow("")})}static LadderPrice(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),effective:a.number(),marked:a.number(),offer_price:a.number()})}static LadderPriceOffer(){return a.object({buy_rules:a.any(),calculate_on:a.string().allow(""),description:a.string().allow(""),discount_rules:a.array().items(a.any()),free_gift_items:a.array().items(n.FreeGiftItems()),id:a.string().allow(""),offer_prices:a.array().items(n.LadderOfferItem()),offer_text:a.string().allow(""),promotion_group:a.string().allow(""),valid_till:a.string().allow("")})}static LadderPriceOffers(){return a.object({available_offers:a.array().items(n.LadderPriceOffer()),currency:n.CurrencyInfo()})}static LoyaltyPoints(){return a.object({applicable:a.number(),description:a.string().allow(""),is_applied:a.boolean(),total:a.number()})}static OfferItem(){return a.object({auto_applied:a.boolean(),best:a.boolean(),margin:a.number(),price:n.OfferPrice(),quantity:a.number(),total:a.number(),type:a.string().allow("")})}static OfferPrice(){return a.object({bulk_effective:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),effective:a.number(),marked:a.number()})}static OfferSeller(){return a.object({name:a.string().allow(""),uid:a.number()})}static OperationErrorResponse(){return a.object({message:a.string().allow(""),success:a.boolean()})}static Ownership(){return a.object({payable_by:a.string().allow(""),payable_category:a.string().allow("")})}static PageCoupon(){return a.object({current:a.number(),has_next:a.boolean(),has_previous:a.boolean(),total:a.number(),total_item_count:a.number()})}static PaymentCouponValidate(){return a.object({coupon_validity:n.CouponValidity(),message:a.string().allow(""),success:a.boolean().required()})}static PaymentMeta(){return a.object({merchant_code:a.string().allow(""),payment_gateway:a.string().allow(""),payment_identifier:a.string().allow("").allow(null),type:a.string().allow("")})}static PaymentMethod(){return a.object({amount:a.number().allow(null),mode:a.string().allow("").required(),name:a.string().allow(""),payment:a.string().allow(""),payment_extra_identifiers:a.any(),payment_meta:n.PaymentMeta().required()})}static PaymentSelectionLock(){return a.object({default_options:a.string().allow(""),enabled:a.boolean(),payment_identifier:a.string().allow("")})}static ProductAction(){return a.object({query:n.ActionQuery(),type:a.string().allow(""),url:a.string().allow("")})}static ProductArticle(){return a.object({_custom_json:a.any(),cart_item_meta:a.any(),extra_meta:a.any(),gift_card:a.any(),identifier:a.any(),is_gift_visible:a.boolean(),meta:a.any(),mto_quantity:a.number(),parent_item_identifiers:a.any(),price:n.ArticlePriceInfo(),product_group_tags:a.array().items(a.string().allow("")),quantity:a.number(),seller:n.BaseInfo(),seller_identifier:a.string().allow(""),size:a.string().allow(""),store:n.StoreInfo(),type:a.string().allow(""),uid:a.string().allow("")})}static ProductAvailability(){return a.object({available_sizes:a.array().items(n.ProductAvailabilitySize()),deliverable:a.boolean(),is_valid:a.boolean(),other_store_quantity:a.number(),out_of_stock:a.boolean(),sizes:a.array().items(a.string().allow(""))})}static ProductAvailabilitySize(){return a.object({display:a.string().allow(""),is_available:a.boolean(),value:a.string().allow("")})}static ProductImage(){return a.object({aspect_ratio:a.string().allow(""),secure_url:a.string().allow(""),url:a.string().allow("")})}static ProductPrice(){return a.object({add_on:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),effective:a.number(),marked:a.number(),selling:a.number()})}static ProductPriceInfo(){return a.object({base:n.ProductPrice(),converted:n.ProductPrice()})}static PromiseFormatted(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static PromiseTimestamp(){return a.object({max:a.number(),min:a.number()})}static PromoMeta(){return a.object({message:a.string().allow("")})}static PromotionOffer(){return a.object({buy_rules:a.any(),description:a.string().allow(""),discount_rules:a.array().items(a.any()),free_gift_items:a.array().items(n.FreeGiftItems()),id:a.string().allow(""),offer_text:a.string().allow(""),promotion_group:a.string().allow(""),valid_till:a.string().allow("")})}static PromotionOffersResponse(){return a.object({available_promotions:a.array().items(n.PromotionOffer())})}static RawBreakup(){return a.object({cod_charge:a.number(),convenience_fee:a.number(),coupon:a.number(),delivery_charge:a.number(),discount:a.number(),fynd_cash:a.number(),gift_card:a.number(),gst_charges:a.number(),mop_total:a.number(),mrp_total:a.number(),subtotal:a.number(),total:a.number(),vog:a.number(),you_saved:a.number()})}static RewardPointRequest(){return a.object({points:a.boolean().required()})}static SaveAddressResponse(){return a.object({id:a.string().allow(""),is_default_address:a.boolean(),success:a.boolean()})}static SelectCartAddressRequest(){return a.object({billing_address_id:a.string().allow(""),cart_id:a.string().allow(""),id:a.string().allow("")})}static SharedCart(){return a.object({breakup_values:n.CartBreakup(),buy_now:a.boolean(),cart_id:a.number(),checkout_mode:a.string().allow(""),comment:a.string().allow(""),coupon_text:a.string().allow(""),currency:n.CartCurrency(),delivery_charge_info:a.string().allow(""),delivery_promise:n.ShipmentPromise(),gstin:a.string().allow(""),id:a.string().allow(""),is_valid:a.boolean(),items:a.array().items(n.CartProductInfo()),last_modified:a.string().allow(""),message:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),restrict_checkout:a.boolean(),shared_cart_details:n.SharedCartDetails(),uid:a.string().allow("")})}static SharedCartDetails(){return a.object({created_on:a.string().allow(""),meta:a.any(),source:a.any(),token:a.string().allow(""),user:a.any()})}static SharedCartResponse(){return a.object({cart:n.SharedCart(),error:a.string().allow("")})}static ShipmentPromise(){return a.object({formatted:n.PromiseFormatted(),timestamp:n.PromiseTimestamp()})}static ShipmentResponse(){return a.object({box_type:a.string().allow("").allow(null),dp_id:a.string().allow("").allow(null),dp_options:a.any().allow(null),fulfillment_id:a.number(),fulfillment_type:a.string().allow(""),items:a.array().items(n.CartProductInfo()),order_type:a.string().allow(""),promise:n.ShipmentPromise(),shipment_type:a.string().allow(""),shipments:a.number()})}static StaffCheckout(){return a.object({_id:a.string().allow("").required(),employee_code:a.string().allow(""),first_name:a.string().allow("").required(),last_name:a.string().allow("").required(),user:a.string().allow("").required()})}static StoreInfo(){return a.object({name:a.string().allow(""),store_code:a.string().allow(""),uid:a.number()})}static Tags(){return a.object({tags:a.any()})}static UpdateAddressResponse(){return a.object({id:a.string().allow(""),is_default_address:a.boolean(),is_updated:a.boolean(),success:a.boolean()})}static UpdateCartDetailResponse(){return a.object({cart:n.CartDetailResponse(),message:a.string().allow(""),success:a.boolean()})}static UpdateCartPaymentRequest(){return a.object({address_id:a.string().allow(""),aggregator_name:a.string().allow(""),id:a.string().allow(""),merchant_code:a.string().allow(""),payment_identifier:a.string().allow("").allow(null),payment_mode:a.string().allow("")})}static UpdateCartRequest(){return a.object({items:a.array().items(n.UpdateProductCart()),operation:a.string().allow("").required()})}static UpdateProductCart(){return a.object({_custom_json:a.any(),article_id:a.string().allow(""),extra_meta:a.any(),identifiers:n.CartProductIdentifer().required(),item_id:a.number(),item_index:a.number(),item_size:a.string().allow(""),meta:a.any(),parent_item_identifiers:a.any(),quantity:a.number()})}}e.exports=n},6206:(e,t,r)=>{const a=r(2705),n=r(7350);e.exports=class{static addAddress(){return a.object({body:n.Address().required()}).required()}static addItems(){return a.object({i:a.boolean(),b:a.boolean(),areaCode:a.string().allow(""),buyNow:a.boolean(),id:a.string().allow(""),body:n.AddCartRequest().required()}).required()}static applyCoupon(){return a.object({i:a.boolean(),b:a.boolean(),p:a.boolean(),id:a.string().allow(""),buyNow:a.boolean(),body:n.ApplyCouponRequest().required()}).required()}static applyRewardPoints(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),buyNow:a.boolean(),body:n.RewardPointRequest().required()}).required()}static checkoutCart(){return a.object({buyNow:a.boolean(),body:n.CartCheckoutDetailRequest().required()}).required()}static checkoutCartV2(){return a.object({buyNow:a.boolean(),body:n.CartCheckoutDetailV2Request().required()}).required()}static deleteCart(){return a.object({id:a.string().allow("")})}static getAddressById(){return a.object({id:a.string().allow("").required(),cartId:a.string().allow(""),buyNow:a.boolean(),mobileNo:a.string().allow(""),checkoutMode:a.string().allow(""),tags:a.string().allow(""),isDefault:a.boolean()}).required()}static getAddresses(){return a.object({cartId:a.string().allow(""),buyNow:a.boolean(),mobileNo:a.string().allow(""),checkoutMode:a.string().allow(""),tags:a.string().allow(""),isDefault:a.boolean()})}static getBulkDiscountOffers(){return a.object({itemId:a.number(),articleId:a.string().allow(""),uid:a.number(),slug:a.string().allow("")})}static getCart(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),assignCardId:a.number(),areaCode:a.string().allow(""),buyNow:a.boolean()})}static getCartLastModified(){return a.object({id:a.string().allow("")})}static getCartShareLink(){return a.object({body:n.GetShareCartLinkRequest().required()}).required()}static getCartSharedItems(){return a.object({token:a.string().allow("").required()}).required()}static getCoupons(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static getItemCount(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static getLadderOffers(){return a.object({slug:a.string().allow("").required(),storeId:a.string().allow(""),promotionId:a.string().allow(""),pageSize:a.number()}).required()}static getPromotionOffers(){return a.object({slug:a.string().allow(""),pageSize:a.number(),promotionGroup:a.string().allow(""),storeId:a.number()})}static getShipments(){return a.object({p:a.boolean(),id:a.string().allow(""),buyNow:a.boolean(),addressId:a.string().allow(""),areaCode:a.string().allow(""),orderType:a.string().allow("")})}static removeAddress(){return a.object({id:a.string().allow("").required()}).required()}static removeCoupon(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static selectAddress(){return a.object({cartId:a.string().allow(""),buyNow:a.boolean(),i:a.boolean(),b:a.boolean(),body:n.SelectCartAddressRequest().required()}).required()}static selectPaymentMode(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),body:n.UpdateCartPaymentRequest().required()}).required()}static updateAddress(){return a.object({id:a.string().allow("").required(),body:n.Address().required()}).required()}static updateCart(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),areaCode:a.string().allow(""),buyNow:a.boolean(),body:n.UpdateCartRequest().required()}).required()}static updateCartMeta(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),body:n.CartMetaRequest().required()}).required()}static updateCartWithSharedItems(){return a.object({token:a.string().allow("").required(),action:a.string().allow("").required()}).required()}static validateCouponForPayment(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),addressId:a.string().allow(""),paymentMode:a.string().allow(""),paymentIdentifier:a.string().allow(""),aggregatorName:a.string().allow(""),merchantCode:a.string().allow(""),iin:a.string().allow(""),network:a.string().allow(""),type:a.string().allow(""),cardId:a.string().allow("")})}}},4196:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=r(3589),i=r(3853),l=r(5761),{Logger:c}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={followById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/",getBrandDetailBySlug:"/service/application/catalog/v1.0/brands/{slug}/",getBrands:"/service/application/catalog/v1.0/brands/",getCategories:"/service/application/catalog/v1.0/categories/",getCategoryDetailBySlug:"/service/application/catalog/v1.0/categories/{slug}/",getCollectionDetailBySlug:"/service/application/catalog/v1.0/collections/{slug}/",getCollectionItemsBySlug:"/service/application/catalog/v1.0/collections/{slug}/items/",getCollections:"/service/application/catalog/v1.0/collections/",getComparedFrequentlyProductBySlug:"/service/application/catalog/v1.0/products/{slug}/similar/compared-frequently/",getDepartments:"/service/application/catalog/v1.0/departments/",getFollowIds:"/service/application/catalog/v1.0/follow/ids/",getFollowedListing:"/service/application/catalog/v1.0/follow/{collection_type}/",getFollowerCountById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/count/",getHomeProducts:"/service/application/catalog/v1.0/home/listing/",getInStockLocations:"/service/application/catalog/v1.0/in-stock/locations/",getLocationDetailsById:"/service/application/catalog/v1.0/locations/{location_id}/",getProductBundlesBySlug:"/service/application/catalog/v1.0/product-grouping/",getProductComparisonBySlugs:"/service/application/catalog/v1.0/products/compare/",getProductDetailBySlug:"/service/application/catalog/v1.0/products/{slug}/",getProductPriceBySlug:"/service/application/catalog/v3.0/products/{slug}/sizes/{size}/price/",getProductSellersBySlug:"/service/application/catalog/v3.0/products/{slug}/sizes/{size}/sellers/",getProductSizesBySlug:"/service/application/catalog/v1.0/products/{slug}/sizes/",getProductStockByIds:"/service/application/catalog/v1.0/products/stock-status/",getProductStockForTimeByIds:"/service/application/catalog/v1.0/products/stock-status/poll/",getProductVariantsBySlug:"/service/application/catalog/v1.0/products/{slug}/variants/",getProducts:"/service/application/catalog/v1.0/products/",getSearchResults:"/service/application/catalog/v1.0/auto-complete/",getSimilarComparisonProductBySlug:"/service/application/catalog/v1.0/products/{slug}/similar/compare/",getStores:"/service/application/catalog/v1.0/locations/",unfollowById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async followById({collectionType:e,collectionId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.followById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.followById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > followById \n ${d}`});const p=await a.execute(this._conf,"post",o({url:this._urls.followById,params:{collectionType:e,collectionId:t}}),{},void 0,{...r},{responseHeaders:s});let g=p;s&&(g=p[0]);const{error:m}=l.FollowPostResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > followById \n ${m}`}),p}async getBrandDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getBrandDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getBrandDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getBrandDetailBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getBrandDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.BrandDetailResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getBrandDetailBySlug \n ${g}`}),d}async getBrands({department:e,pageNo:t,pageSize:r,requestHeaders:s}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getBrands().validate({department:e,pageNo:t,pageSize:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getBrands().validate({department:e,pageNo:t,pageSize:r},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getBrands \n ${p}`});const g={};g.department=e,g.page_no=t,g.page_size=r;const m=await a.execute(this._conf,"get",o({url:this._urls.getBrands,params:{}}),g,void 0,{...s},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=l.BrandListingResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getBrands \n ${y}`}),m}getBrandsPaginator({department:e,pageSize:t}={}){const r=new s;return r.setCallback((async()=>{r.nextId;const a=r.pageNo,n=await this.getBrands({department:e,pageNo:a,pageSize:t});return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getCategories({department:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getCategories().validate({department:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getCategories().validate({department:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCategories \n ${u}`});const d={};d.department=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getCategories,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.CategoryListingResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getCategories \n ${m}`}),p}async getCategoryDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getCategoryDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getCategoryDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCategoryDetailBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getCategoryDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.CategoryMetaResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getCategoryDetailBySlug \n ${g}`}),d}async getCollectionDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getCollectionDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getCollectionDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCollectionDetailBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getCollectionDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.CollectionDetailResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getCollectionDetailBySlug \n ${g}`}),d}async getCollectionItemsBySlug({slug:e,f:t,q:r,filters:s,sortOn:u,pageId:d,pageSize:p,pageNo:g,pageType:m,requestHeaders:w}={requestHeaders:{}},{responseHeaders:y}={responseHeaders:!1}){const{error:f}=i.getCollectionItemsBySlug().validate({slug:e,f:t,q:r,filters:s,sortOn:u,pageId:d,pageSize:p,pageNo:g,pageType:m},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:b}=i.getCollectionItemsBySlug().validate({slug:e,f:t,q:r,filters:s,sortOn:u,pageId:d,pageSize:p,pageNo:g,pageType:m},{abortEarly:!1,allowUnknown:!1});b&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCollectionItemsBySlug \n ${b}`});const h={};h.f=t,h.q=r,h.filters=s,h.sort_on=u,h.page_id=d,h.page_size=p,h.page_no=g,h.page_type=m;const _=await a.execute(this._conf,"get",o({url:this._urls.getCollectionItemsBySlug,params:{slug:e}}),h,void 0,{...w},{responseHeaders:y});let v=_;y&&(v=_[0]);const{error:k}=l.ProductListingResponse().validate(v,{abortEarly:!1,allowUnknown:!1});return k&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getCollectionItemsBySlug \n ${k}`}),_}getCollectionItemsBySlugPaginator({slug:e,f:t,q:r,filters:a,sortOn:n,pageSize:o}={}){const i=new s;return i.setCallback((async()=>{const s=i.nextId,l=i.pageNo,c=await this.getCollectionItemsBySlug({slug:e,f:t,q:r,filters:a,sortOn:n,pageId:s,pageSize:o,pageNo:l,pageType:"cursor"});return i.setPaginator({hasNext:!!c.page.has_next,nextId:c.page.next_id}),c}).bind(this)),i}async getCollections({pageNo:e,pageSize:t,tag:r,q:s,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.getCollections().validate({pageNo:e,pageSize:t,tag:r,q:s},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.getCollections().validate({pageNo:e,pageSize:t,tag:r,q:s},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCollections \n ${g}`});const m={};m.page_no=e,m.page_size=t,m.tag=r,m.q=s;const w=await a.execute(this._conf,"get",o({url:this._urls.getCollections,params:{}}),m,void 0,{...u},{responseHeaders:d});let y=w;d&&(y=w[0]);const{error:f}=l.GetCollectionListingResponse().validate(y,{abortEarly:!1,allowUnknown:!1});return f&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getCollections \n ${f}`}),w}getCollectionsPaginator({pageSize:e,tag:t,q:r}={}){const a=new s;return a.setCallback((async()=>{a.nextId;const n=a.pageNo,o=await this.getCollections({pageNo:n,pageSize:e,tag:t,q:r});return a.setPaginator({hasNext:!!o.page.has_next,nextId:o.page.next_id}),o}).bind(this)),a}async getComparedFrequentlyProductBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getComparedFrequentlyProductBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getComparedFrequentlyProductBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getComparedFrequentlyProductBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getComparedFrequentlyProductBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.ProductFrequentlyComparedSimilarResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getComparedFrequentlyProductBySlug \n ${g}`}),d}async getDepartments({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getDepartments().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getDepartments().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getDepartments \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getDepartments,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.DepartmentResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getDepartments \n ${p}`}),u}async getFollowIds({collectionType:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getFollowIds().validate({collectionType:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getFollowIds().validate({collectionType:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getFollowIds \n ${u}`});const d={};d.collection_type=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getFollowIds,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.FollowIdsResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getFollowIds \n ${m}`}),p}async getFollowedListing({collectionType:e,pageId:t,pageSize:r,requestHeaders:s}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getFollowedListing().validate({collectionType:e,pageId:t,pageSize:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getFollowedListing().validate({collectionType:e,pageId:t,pageSize:r},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getFollowedListing \n ${p}`});const g={};g.page_id=t,g.page_size=r;const m=await a.execute(this._conf,"get",o({url:this._urls.getFollowedListing,params:{collectionType:e}}),g,void 0,{...s},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=l.GetFollowListingResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getFollowedListing \n ${y}`}),m}getFollowedListingPaginator({collectionType:e,pageSize:t}={}){const r=new s;return r.setCallback((async()=>{const a=r.nextId,n=(r.pageNo,await this.getFollowedListing({collectionType:e,pageId:a,pageSize:t}));return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getFollowerCountById({collectionType:e,collectionId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getFollowerCountById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getFollowerCountById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getFollowerCountById \n ${d}`});const p=await a.execute(this._conf,"get",o({url:this._urls.getFollowerCountById,params:{collectionType:e,collectionId:t}}),{},void 0,{...r},{responseHeaders:s});let g=p;s&&(g=p[0]);const{error:m}=l.FollowerCountResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getFollowerCountById \n ${m}`}),p}async getHomeProducts({sortOn:e,pageId:t,pageSize:r,requestHeaders:s}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getHomeProducts().validate({sortOn:e,pageId:t,pageSize:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getHomeProducts().validate({sortOn:e,pageId:t,pageSize:r},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getHomeProducts \n ${p}`});const g={};g.sort_on=e,g.page_id=t,g.page_size=r;const m=await a.execute(this._conf,"get",o({url:this._urls.getHomeProducts,params:{}}),g,void 0,{...s},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=l.HomeListingResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getHomeProducts \n ${y}`}),m}getHomeProductsPaginator({sortOn:e,pageSize:t}={}){const r=new s;return r.setCallback((async()=>{const a=r.nextId,n=(r.pageNo,await this.getHomeProducts({sortOn:e,pageId:a,pageSize:t}));return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getInStockLocations({pageNo:e,pageSize:t,q:r,city:s,range:u,latitude:d,longitude:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.getInStockLocations().validate({pageNo:e,pageSize:t,q:r,city:s,range:u,latitude:d,longitude:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:y}=i.getInStockLocations().validate({pageNo:e,pageSize:t,q:r,city:s,range:u,latitude:d,longitude:p},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getInStockLocations \n ${y}`});const f={};f.page_no=e,f.page_size=t,f.q=r,f.city=s,f.range=u,f.latitude=d,f.longitude=p;const b=await a.execute(this._conf,"get",o({url:this._urls.getInStockLocations,params:{}}),f,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.ApplicationStoreListing().validate(h,{abortEarly:!1,allowUnknown:!1});return _&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getInStockLocations \n ${_}`}),b}getInStockLocationsPaginator({pageSize:e,q:t,city:r,range:a,latitude:n,longitude:o}={}){const i=new s;return i.setCallback((async()=>{i.nextId;const s=i.pageNo,l=await this.getInStockLocations({pageNo:s,pageSize:e,q:t,city:r,range:a,latitude:n,longitude:o});return i.setPaginator({hasNext:!!l.page.has_next,nextId:l.page.next_id}),l}).bind(this)),i}async getLocationDetailsById({locationId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getLocationDetailsById().validate({locationId:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getLocationDetailsById().validate({locationId:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getLocationDetailsById \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getLocationDetailsById,params:{locationId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.StoreDetails().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getLocationDetailsById \n ${g}`}),d}async getProductBundlesBySlug({slug:e,id:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getProductBundlesBySlug().validate({slug:e,id:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getProductBundlesBySlug().validate({slug:e,id:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductBundlesBySlug \n ${d}`});const p={};p.slug=e,p.id=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getProductBundlesBySlug,params:{}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.ProductBundle().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductBundlesBySlug \n ${w}`}),g}async getProductComparisonBySlugs({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getProductComparisonBySlugs().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getProductComparisonBySlugs().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductComparisonBySlugs \n ${u}`});const d={};d.slug=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getProductComparisonBySlugs,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ProductsComparisonResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductComparisonBySlugs \n ${m}`}),p}async getProductDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getProductDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getProductDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductDetailBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getProductDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.ProductDetail().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductDetailBySlug \n ${g}`}),d}async getProductPriceBySlug({slug:e,size:t,storeId:r,pincode:s,moq:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=i.getProductPriceBySlug().validate({slug:e,size:t,storeId:r,pincode:s,moq:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=i.getProductPriceBySlug().validate({slug:e,size:t,storeId:r,pincode:s,moq:u},{abortEarly:!1,allowUnknown:!1});m&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductPriceBySlug \n ${m}`});const w={};w.store_id=r,w.pincode=s,w.moq=u;const y=await a.execute(this._conf,"get",o({url:this._urls.getProductPriceBySlug,params:{slug:e,size:t}}),w,void 0,{...d},{responseHeaders:p});let f=y;p&&(f=y[0]);const{error:b}=l.ProductSizePriceResponseV3().validate(f,{abortEarly:!1,allowUnknown:!1});return b&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductPriceBySlug \n ${b}`}),y}async getProductSellersBySlug({slug:e,size:t,pincode:r,strategy:s,pageNo:u,pageSize:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.getProductSellersBySlug().validate({slug:e,size:t,pincode:r,strategy:s,pageNo:u,pageSize:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=i.getProductSellersBySlug().validate({slug:e,size:t,pincode:r,strategy:s,pageNo:u,pageSize:d},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductSellersBySlug \n ${w}`});const y={};y.pincode=r,y.strategy=s,y.page_no=u,y.page_size=d;const f=await a.execute(this._conf,"get",o({url:this._urls.getProductSellersBySlug,params:{slug:e,size:t}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=l.ProductSizeSellersResponseV3().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductSellersBySlug \n ${h}`}),f}getProductSellersBySlugPaginator({slug:e,size:t,pincode:r,strategy:a,pageSize:n}={}){const o=new s;return o.setCallback((async()=>{o.nextId;const s=o.pageNo,i=await this.getProductSellersBySlug({slug:e,size:t,pincode:r,strategy:a,pageNo:s,pageSize:n});return o.setPaginator({hasNext:!!i.page.has_next,nextId:i.page.next_id}),i}).bind(this)),o}async getProductSizesBySlug({slug:e,storeId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getProductSizesBySlug().validate({slug:e,storeId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getProductSizesBySlug().validate({slug:e,storeId:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductSizesBySlug \n ${d}`});const p={};p.store_id=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getProductSizesBySlug,params:{slug:e}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.ProductSizes().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductSizesBySlug \n ${w}`}),g}async getProductStockByIds({itemId:e,alu:t,skuCode:r,ean:s,upc:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=i.getProductStockByIds().validate({itemId:e,alu:t,skuCode:r,ean:s,upc:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=i.getProductStockByIds().validate({itemId:e,alu:t,skuCode:r,ean:s,upc:u},{abortEarly:!1,allowUnknown:!1});m&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductStockByIds \n ${m}`});const w={};w.item_id=e,w.alu=t,w.sku_code=r,w.ean=s,w.upc=u;const y=await a.execute(this._conf,"get",o({url:this._urls.getProductStockByIds,params:{}}),w,void 0,{...d},{responseHeaders:p});let f=y;p&&(f=y[0]);const{error:b}=l.ProductStockStatusResponse().validate(f,{abortEarly:!1,allowUnknown:!1});return b&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductStockByIds \n ${b}`}),y}async getProductStockForTimeByIds({timestamp:e,pageSize:t,pageId:r,requestHeaders:s}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getProductStockForTimeByIds().validate({timestamp:e,pageSize:t,pageId:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getProductStockForTimeByIds().validate({timestamp:e,pageSize:t,pageId:r},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductStockForTimeByIds \n ${p}`});const g={};g.timestamp=e,g.page_size=t,g.page_id=r;const m=await a.execute(this._conf,"get",o({url:this._urls.getProductStockForTimeByIds,params:{}}),g,void 0,{...s},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=l.ProductStockPolling().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductStockForTimeByIds \n ${y}`}),m}getProductStockForTimeByIdsPaginator({timestamp:e,pageSize:t}={}){const r=new s;return r.setCallback((async()=>{const a=r.nextId,n=(r.pageNo,await this.getProductStockForTimeByIds({timestamp:e,pageSize:t,pageId:a}));return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getProductVariantsBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getProductVariantsBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getProductVariantsBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductVariantsBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getProductVariantsBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.ProductVariantsResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductVariantsBySlug \n ${g}`}),d}async getProducts({q:e,f:t,filters:r,sortOn:s,pageId:u,pageSize:d,pageNo:p,pageType:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:y}=i.getProducts().validate({q:e,f:t,filters:r,sortOn:s,pageId:u,pageSize:d,pageNo:p,pageType:g},{abortEarly:!1,allowUnknown:!0});if(y)return Promise.reject(new n(y));const{error:f}=i.getProducts().validate({q:e,f:t,filters:r,sortOn:s,pageId:u,pageSize:d,pageNo:p,pageType:g},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProducts \n ${f}`});const b={};b.q=e,b.f=t,b.filters=r,b.sort_on=s,b.page_id=u,b.page_size=d,b.page_no=p,b.page_type=g;const h=await a.execute(this._conf,"get",o({url:this._urls.getProducts,params:{}}),b,void 0,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.ProductListingResponse().validate(_,{abortEarly:!1,allowUnknown:!1});return v&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProducts \n ${v}`}),h}getProductsPaginator({q:e,f:t,filters:r,sortOn:a,pageSize:n}={}){const o=new s;return o.setCallback((async()=>{const s=o.nextId,i=o.pageNo,l=await this.getProducts({q:e,f:t,filters:r,sortOn:a,pageId:s,pageSize:n,pageNo:i,pageType:"cursor"});return o.setPaginator({hasNext:!!l.page.has_next,nextId:l.page.next_id}),l}).bind(this)),o}async getSearchResults({q:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getSearchResults().validate({q:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getSearchResults().validate({q:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getSearchResults \n ${u}`});const d={};d.q=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getSearchResults,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.AutoCompleteResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getSearchResults \n ${m}`}),p}async getSimilarComparisonProductBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getSimilarComparisonProductBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getSimilarComparisonProductBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getSimilarComparisonProductBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getSimilarComparisonProductBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.ProductCompareResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getSimilarComparisonProductBySlug \n ${g}`}),d}async getStores({pageNo:e,pageSize:t,q:r,city:s,range:u,latitude:d,longitude:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.getStores().validate({pageNo:e,pageSize:t,q:r,city:s,range:u,latitude:d,longitude:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:y}=i.getStores().validate({pageNo:e,pageSize:t,q:r,city:s,range:u,latitude:d,longitude:p},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getStores \n ${y}`});const f={};f.page_no=e,f.page_size=t,f.q=r,f.city=s,f.range=u,f.latitude=d,f.longitude=p;const b=await a.execute(this._conf,"get",o({url:this._urls.getStores,params:{}}),f,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.StoreListingResponse().validate(h,{abortEarly:!1,allowUnknown:!1});return _&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getStores \n ${_}`}),b}getStoresPaginator({pageSize:e,q:t,city:r,range:a,latitude:n,longitude:o}={}){const i=new s;return i.setCallback((async()=>{i.nextId;const s=i.pageNo,l=await this.getStores({pageNo:s,pageSize:e,q:t,city:r,range:a,latitude:n,longitude:o});return i.setPaginator({hasNext:!!l.page.has_next,nextId:l.page.next_id}),l}).bind(this)),i}async unfollowById({collectionType:e,collectionId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.unfollowById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.unfollowById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > unfollowById \n ${d}`});const p=await a.execute(this._conf,"delete",o({url:this._urls.unfollowById,params:{collectionType:e,collectionId:t}}),{},void 0,{...r},{responseHeaders:s});let g=p;s&&(g=p[0]);const{error:m}=l.FollowPostResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > unfollowById \n ${m}`}),p}}},5761:(e,t,r)=>{const a=r(2705);class n{static ApplicationItemMOQ(){return a.object({increment_unit:a.number(),maximum:a.number(),minimum:a.number()})}static ApplicationItemSEO(){return a.object({description:a.any(),title:a.any()})}static ApplicationStoreListing(){return a.object({filters:a.array().items(a.any()),items:a.array().items(n.AppStore()),page:n.Page()})}static AppStore(){return a.object({address:n.StoreAddressSerializer(),company:n.CompanyStore(),contact_numbers:a.array().items(n.SellerPhoneNumber()),departments:a.array().items(n.StoreDepartments()),manager:n.StoreManagerSerializer(),name:a.string().allow(""),store_code:a.string().allow(""),uid:a.number()})}static ArticleAssignmentV3(){return a.object({level:a.string().allow(""),strategy:a.string().allow("")})}static AttributeDetail(){return a.object({description:a.string().allow(""),display:a.string().allow(""),key:a.string().allow(""),logo:a.string().allow("")})}static AttributeMetadata(){return a.object({details:a.array().items(n.AttributeDetail()),title:a.string().allow("")})}static AutocompleteItem(){return a.object({_custom_json:a.any(),action:n.ProductListingAction(),display:a.string().allow(""),logo:n.Media(),type:a.string().allow("")})}static AutoCompleteResponse(){return a.object({items:a.array().items(n.AutocompleteItem())})}static BrandDetailResponse(){return a.object({_custom_json:a.any(),banners:n.ImageUrls(),description:a.string().allow(""),logo:n.Media(),name:a.string().allow(""),uid:a.number()})}static BrandItem(){return a.object({action:n.ProductListingAction(),banners:n.ImageUrls(),departments:a.array().items(a.string().allow("")),description:a.string().allow(""),discount:a.string().allow(""),logo:n.Media(),name:a.string().allow(""),slug:a.string().allow(""),uid:a.number()})}static BrandListingResponse(){return a.object({items:a.array().items(n.BrandItem()),page:n.Page().required()})}static CategoryBanner(){return a.object({landscape:n.Media().required(),portrait:n.Media().required()})}static CategoryItems(){return a.object({action:n.ProductListingAction().required(),banners:n.CategoryBanner().required(),childs:a.array().items(n.Child()),name:a.string().allow("").required(),slug:a.string().allow("").required(),uid:a.number().required()})}static CategoryListingResponse(){return a.object({data:a.array().items(n.DepartmentCategoryTree()),departments:a.array().items(n.DepartmentIdentifier())})}static CategoryMetaResponse(){return a.object({_custom_json:a.any(),banners:n.ImageUrls(),logo:n.Media(),name:a.string().allow(""),uid:a.number()})}static Child(){return a.object({_custom_json:a.any(),action:n.ProductListingAction(),banners:n.ImageUrls(),childs:a.array().items(n.SecondLevelChild()),name:a.string().allow(""),slug:a.string().allow(""),uid:a.number()})}static CollectionDetailResponse(){return a.object({_custom_json:a.any(),_schedule:a.any(),allow_facets:a.boolean(),allow_sort:a.boolean(),app_id:a.string().allow(""),badge:a.any(),banners:n.ImageUrls(),cron:a.any(),description:a.string().allow(""),is_active:a.boolean(),logo:n.Media(),meta:a.any(),name:a.string().allow(""),priority:a.number(),query:a.array().items(n.CollectionQuery()),slug:a.string().allow(""),sort_on:a.string().allow(""),tag:a.array().items(a.string().allow("")),type:a.string().allow(""),visible_facets_keys:a.array().items(a.string().allow(""))})}static CollectionListingFilter(){return a.object({tags:a.array().items(n.CollectionListingFilterTag()),type:a.array().items(n.CollectionListingFilterType())})}static CollectionListingFilterTag(){return a.object({display:a.string().allow(""),is_selected:a.boolean(),name:a.string().allow("")})}static CollectionListingFilterType(){return a.object({display:a.string().allow(""),is_selected:a.boolean(),name:a.string().allow("")})}static CollectionQuery(){return a.object({attribute:a.string().allow("").required(),op:a.string().allow("").required(),value:a.array().items(a.any()).required()})}static ColumnHeader(){return a.object({convertable:a.boolean(),value:a.string().allow("")})}static ColumnHeaders(){return a.object({col_1:n.ColumnHeader(),col_2:n.ColumnHeader(),col_3:n.ColumnHeader(),col_4:n.ColumnHeader(),col_5:n.ColumnHeader(),col_6:n.ColumnHeader()})}static CompanyDetail(){return a.object({id:a.number(),name:a.string().allow("")})}static CompanyStore(){return a.object({business_type:a.string().allow(""),company_type:a.string().allow(""),name:a.string().allow(""),uid:a.number()})}static CustomMetaFields(){return a.object({key:a.string().allow("").required(),value:a.string().allow("").required()})}static Department(){return a.object({logo:n.Media(),name:a.string().allow(""),priority_order:a.number(),slug:a.string().allow(""),uid:a.number()})}static DepartmentCategoryTree(){return a.object({department:a.string().allow("").required(),items:a.array().items(n.CategoryItems())})}static DepartmentIdentifier(){return a.object({slug:a.string().allow(""),uid:a.number()})}static DepartmentResponse(){return a.object({items:a.array().items(n.Department())})}static DetailsSchemaV3(){return a.object({key:a.string().allow(""),type:a.string().allow(""),value:a.string().allow("")})}static Dimension(){return a.object({height:a.number().required(),is_default:a.boolean().required(),length:a.number().required(),unit:a.string().allow("").required(),width:a.number().required()})}static DiscountMeta(){return a.object({end:a.string().allow(""),start:a.string().allow(""),start_timer_in_minutes:a.number(),timer:a.boolean().required()})}static ErrorResponse(){return a.object({error:a.string().allow("")})}static FollowerCountResponse(){return a.object({count:a.number()})}static FollowIdsData(){return a.object({brands:a.array().items(a.number()),collections:a.array().items(a.number()),products:a.array().items(a.number())})}static FollowIdsResponse(){return a.object({data:n.FollowIdsData()})}static FollowPostResponse(){return a.object({id:a.string().allow("").required(),message:a.string().allow("").required()})}static GetCollectionDetailNest(){return a.object({_custom_json:a.any(),_schedule:a.any(),action:n.ProductListingAction(),allow_facets:a.boolean(),allow_sort:a.boolean(),app_id:a.string().allow(""),badge:a.any(),banners:n.ImageUrls(),cron:a.any(),description:a.string().allow(""),is_active:a.boolean(),logo:n.Media(),meta:a.any(),name:a.string().allow(""),priority:a.number(),query:a.array().items(n.CollectionQuery()),slug:a.string().allow(""),sort_on:a.string().allow(""),tag:a.array().items(a.string().allow("")),type:a.string().allow(""),uid:a.string().allow(""),visible_facets_keys:a.array().items(a.string().allow(""))})}static GetCollectionListingResponse(){return a.object({filters:n.CollectionListingFilter(),items:a.array().items(n.GetCollectionDetailNest()),page:n.Page().required()})}static GetFollowListingResponse(){return a.object({items:a.array().items(n.ProductListingDetail()).required(),page:n.Page().required()})}static HomeListingResponse(){return a.object({items:a.array().items(n.ProductListingDetail()),message:a.string().allow(""),page:n.Page().required()})}static ImageUrls(){return a.object({landscape:n.Media(),portrait:n.Media()})}static LatLong(){return a.object({coordinates:a.array().items(a.number()),type:a.string().allow("")})}static MarketPlaceSttributesSchemaV3(){return a.object({details:a.array().items(n.DetailsSchemaV3()),title:a.string().allow("")})}static Media(){return a.object({alt:a.string().allow(""),meta:n.Meta(),type:a.string().allow(""),url:a.string().allow("")})}static Meta(){return a.object({source:a.string().allow("")})}static NetQuantity(){return a.object({unit:a.any(),value:a.number()})}static Page(){return a.object({current:a.number(),has_next:a.boolean(),has_previous:a.boolean(),item_total:a.number(),next_id:a.string().allow(""),size:a.number(),type:a.string().allow("").required()})}static Price(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),max:a.number(),min:a.number()})}static ProductBrand(){return a.object({action:n.ProductListingAction(),description:a.string().allow(""),logo:n.Media(),name:a.string().allow(""),uid:a.number()})}static ProductBundle(){return a.object({items:a.array().items(n.ProductGroupingModel())})}static ProductCategoryMap(){return a.object({l1:n.ProductBrand(),l2:n.ProductBrand(),l3:n.ProductBrand()})}static ProductCompareResponse(){return a.object({attributes_metadata:a.array().items(n.AttributeMetadata()),items:a.array().items(n.ProductDetail()),subtitle:a.string().allow(""),title:a.string().allow("")})}static ProductDetail(){return a.object({_custom_json:a.any(),_custom_meta:a.array().items(n.CustomMetaFields()),action:n.ProductListingAction(),attributes:a.any(),brand:n.ProductBrand(),categories:a.array().items(n.ProductBrand()),category_map:n.ProductCategoryMap(),color:a.string().allow(""),custom_order:n.ProductDetailCustomOrder(),description:a.string().allow(""),discount:a.string().allow(""),grouped_attributes:a.array().items(n.ProductDetailGroupedAttribute()),has_variant:a.boolean(),highlights:a.array().items(a.string().allow("")),image_nature:a.string().allow(""),is_dependent:a.boolean(),item_code:a.string().allow(""),item_type:a.string().allow(""),medias:a.array().items(n.Media()),moq:n.ApplicationItemMOQ(),name:a.string().allow(""),net_quantity:n.NetQuantity(),price:n.ProductListingPrice(),product_group_tag:a.array().items(a.string().allow("")),product_online_date:a.string().allow(""),rating:a.number(),rating_count:a.number(),seo:n.ApplicationItemSEO(),short_description:a.string().allow(""),similars:a.array().items(a.string().allow("")),slug:a.string().allow("").required(),tags:a.array().items(a.string().allow("")),teaser_tag:a.string().allow(""),tryouts:a.array().items(a.string().allow("")),type:a.string().allow(""),uid:a.number()})}static ProductDetailAttribute(){return a.object({key:a.string().allow(""),type:a.string().allow(""),value:a.string().allow("")})}static ProductDetailCustomOrder(){return a.object({is_custom_order:a.boolean(),manufacturing_time:a.number(),manufacturing_time_unit:a.string().allow("")})}static ProductDetailGroupedAttribute(){return a.object({details:a.array().items(n.ProductDetailAttribute()),title:a.string().allow("")})}static ProductDetails(){return a.object({attributes:a.any(),brand_uid:a.number(),country_of_origin:a.any(),description:a.any(),grouped_attributes:a.any(),has_variant:a.boolean(),highlights:a.array().items(a.any()),hsn_code:a.number(),identifier:a.any(),image_nature:a.any(),images:a.array().items(a.any()),is_set:a.boolean(),item_code:a.any(),media:a.array().items(a.any()),name:a.any(),out_of_stock:a.boolean(),rating:a.number(),rating_count:a.number(),short_description:a.any(),slug:a.any(),template_tag:a.any()})}static ProductFilters(){return a.object({key:n.ProductFiltersKey().required(),values:a.array().items(n.ProductFiltersValue()).required()})}static ProductFiltersKey(){return a.object({display:a.string().allow("").required(),kind:a.string().allow(""),logo:a.string().allow(""),name:a.string().allow("").required()})}static ProductFiltersValue(){return a.object({count:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),display:a.string().allow("").required(),display_format:a.string().allow(""),is_selected:a.boolean().required(),max:a.number(),min:a.number(),query_format:a.string().allow(""),selected_max:a.number(),selected_min:a.number(),value:a.string().allow("")})}static ProductFrequentlyComparedSimilarResponse(){return a.object({similars:n.ProductCompareResponse()})}static ProductGroupingModel(){return a.object({_id:a.any(),choice:a.any(),company_id:a.number(),created_by:n.UserDetail(),created_on:a.string().allow("").required(),is_active:a.boolean(),logo:a.string().allow("").allow(null),meta:a.any(),modified_by:n.UserDetail(),modified_on:a.string().allow("").required(),name:a.any().required(),page_visibility:a.array().items(a.any()),products:a.array().items(n.ProductInGroup()).required(),same_store_assignment:a.boolean(),slug:a.any(),verified_by:n.UserDetail(),verified_on:a.string().allow("")})}static ProductGroupPrice(){return a.object({currency:a.any(),max_effective:a.number(),max_marked:a.number(),min_effective:a.number(),min_marked:a.number()})}static ProductInGroup(){return a.object({allow_remove:a.boolean(),auto_add_to_cart:a.boolean(),auto_select:a.boolean(),max_quantity:a.number().required(),min_quantity:a.number(),price:n.ProductGroupPrice(),product_details:n.ProductDetails(),product_uid:a.number().required(),sizes:a.array().items(n.Size())})}static ProductListingAction(){return a.object({page:n.ProductListingActionPage(),type:a.string().allow("")})}static ProductListingActionPage(){return a.object({params:a.any(),query:a.any(),type:a.string().allow("")})}static ProductListingDetail(){return a.object({_custom_json:a.any(),_custom_meta:a.array().items(n.CustomMetaFields()),action:n.ProductListingAction(),attributes:a.any(),brand:n.ProductBrand(),categories:a.array().items(n.ProductBrand()),category_map:n.ProductCategoryMap(),color:a.string().allow(""),custom_order:n.ProductDetailCustomOrder(),description:a.string().allow(""),discount:a.string().allow(""),grouped_attributes:a.array().items(n.ProductDetailGroupedAttribute()),has_variant:a.boolean(),highlights:a.array().items(a.string().allow("")),identifiers:a.array().items(a.string().allow("")),image_nature:a.string().allow(""),is_dependent:a.boolean(),item_code:a.string().allow(""),item_type:a.string().allow(""),medias:a.array().items(n.Media()),moq:n.ApplicationItemMOQ(),name:a.string().allow(""),net_quantity:n.NetQuantity(),price:n.ProductListingPrice(),product_group_tag:a.array().items(a.string().allow("")),product_online_date:a.string().allow(""),rating:a.number(),rating_count:a.number(),sellable:a.boolean(),seo:n.ApplicationItemSEO(),short_description:a.string().allow(""),similars:a.array().items(a.string().allow("")),sizes:a.array().items(a.string().allow("")),slug:a.string().allow("").required(),tags:a.array().items(a.string().allow("")),teaser_tag:a.string().allow(""),tryouts:a.array().items(a.string().allow("")),type:a.string().allow(""),uid:a.number(),variants:a.array().items(n.ProductVariantListingResponse())})}static ProductListingPrice(){return a.object({effective:n.Price(),marked:n.Price()})}static ProductListingResponse(){return a.object({filters:a.array().items(n.ProductFilters()),items:a.array().items(n.ProductListingDetail()),page:n.Page().required(),sort_on:a.array().items(n.ProductSortOn())})}static ProductsComparisonResponse(){return a.object({attributes_metadata:a.array().items(n.AttributeMetadata()),items:a.array().items(n.ProductDetail())})}static ProductSetDistributionSizeV3(){return a.object({pieces:a.number(),size:a.string().allow("")})}static ProductSetDistributionV3(){return a.object({sizes:a.array().items(n.ProductSetDistributionSizeV3())})}static ProductSetV3(){return a.object({quantity:a.number(),size_distribution:n.ProductSetDistributionV3()})}static ProductSize(){return a.object({dimension:n.Dimension(),display:a.string().allow(""),is_available:a.boolean(),quantity:a.number(),seller_identifiers:a.array().items(a.string().allow("")),value:a.string().allow(""),weight:n.Weight()})}static ProductSizePriceResponseV3(){return a.object({article_assignment:n.ArticleAssignmentV3(),article_id:a.string().allow(""),delivery_promise:n.PromiseSchema(),discount:a.string().allow(""),discount_meta:n.DiscountMeta(),grouped_attributes:a.array().items(n.SellerGroupAttributes()),is_cod:a.boolean(),is_gift:a.boolean(),item_type:a.string().allow(""),long_lat:a.array().items(a.number()),marketplace_attributes:a.array().items(n.MarketPlaceSttributesSchemaV3()),pincode:a.number(),price:n.ProductStockPriceV3(),price_per_piece:n.ProductStockPriceV3(),price_per_unit:n.ProductStockUnitPriceV3(),quantity:a.number(),return_config:n.ReturnConfigSchemaV3(),seller:n.SellerV3(),seller_count:a.number(),set:n.ProductSetV3(),special_badge:a.string().allow(""),store:n.StoreV3(),strategy_wise_listing:a.array().items(n.StrategyWiseListingSchemaV3())})}static ProductSizes(){return a.object({discount:a.string().allow(""),discount_meta:n.DiscountMeta(),multi_size:a.boolean(),price:n.ProductSizesPrice(),sellable:a.boolean(),size_chart:n.SizeChart(),sizes:a.array().items(n.ProductSize()),stores:n.ProductSizeStores()})}static ProductSizeSellerFilterSchemaV3(){return a.object({is_selected:a.boolean(),name:a.string().allow(""),value:a.string().allow("")})}static ProductSizeSellersResponseV3(){return a.object({items:a.array().items(n.ProductSizePriceResponseV3()),page:n.Page().required(),sort_on:a.array().items(n.ProductSizeSellerFilterSchemaV3())})}static ProductSizesPrice(){return a.object({effective:n.Price(),marked:n.Price(),selling:n.Price()})}static ProductSizeStores(){return a.object({count:a.number()})}static ProductSortOn(){return a.object({display:a.string().allow(""),is_selected:a.boolean(),logo:a.string().allow(""),name:a.string().allow(""),value:a.string().allow("")})}static ProductStockPolling(){return a.object({items:a.array().items(n.ProductStockStatusItem()),page:n.Page().required()})}static ProductStockPrice(){return a.object({currency:a.string().allow(""),effective:a.number(),marked:a.number()})}static ProductStockPriceV3(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),effective:a.number(),marked:a.number(),selling:a.number()})}static ProductStockStatusItem(){return a.object({company:n.CompanyDetail(),identifier:a.any(),item_id:a.number(),price:n.ProductStockPrice(),quantity:a.number(),seller:n.Seller(),size:a.string().allow(""),store:n.StoreDetail(),uid:a.string().allow("")})}static ProductStockStatusResponse(){return a.object({items:a.array().items(n.ProductStockStatusItem())})}static ProductStockUnitPriceV3(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),price:a.number(),unit:a.string().allow("")})}static ProductVariantItemResponse(){return a.object({_custom_meta:a.array().items(n.CustomMetaFields()),action:n.ProductListingAction(),color:a.string().allow(""),color_name:a.string().allow(""),is_available:a.boolean(),medias:a.array().items(n.Media()),name:a.string().allow(""),slug:a.string().allow(""),uid:a.number(),value:a.string().allow("")})}static ProductVariantListingResponse(){return a.object({display_type:a.string().allow(""),header:a.string().allow(""),items:a.array().items(n.ProductVariantItemResponse()),key:a.string().allow(""),total:a.number()})}static ProductVariantResponse(){return a.object({display_type:a.string().allow(""),header:a.string().allow(""),items:a.array().items(n.ProductVariantItemResponse()),key:a.string().allow("")})}static ProductVariantsResponse(){return a.object({variants:a.array().items(n.ProductVariantResponse())})}static PromiseSchema(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static ReturnConfigSchemaV3(){return a.object({returnable:a.boolean(),time:a.number(),unit:a.string().allow("")})}static SecondLevelChild(){return a.object({_custom_json:a.any(),action:n.ProductListingAction(),banners:n.ImageUrls(),childs:a.array().items(n.ThirdLevelChild()),name:a.string().allow(""),slug:a.string().allow(""),uid:a.number()})}static Seller(){return a.object({count:a.number(),name:a.string().allow(""),uid:a.number()})}static SellerGroupAttributes(){return a.object({details:a.array().items(n.DetailsSchemaV3()),title:a.string().allow("")})}static SellerPhoneNumber(){return a.object({country_code:a.number().required(),number:a.string().allow("").required()})}static SellerV3(){return a.object({count:a.number(),name:a.string().allow(""),uid:a.number()})}static Size(){return a.object({display:a.any(),is_available:a.boolean(),quantity:a.number(),value:a.any()})}static SizeChart(){return a.object({description:a.string().allow(""),headers:n.ColumnHeaders(),image:a.string().allow(""),size_tip:a.string().allow(""),sizes:a.array().items(n.SizeChartValues()),title:a.string().allow(""),unit:a.string().allow("")})}static SizeChartValues(){return a.object({col_1:a.string().allow(""),col_2:a.string().allow(""),col_3:a.string().allow(""),col_4:a.string().allow(""),col_5:a.string().allow(""),col_6:a.string().allow("")})}static Store(){return a.object({address:a.string().allow(""),city:a.string().allow(""),country:a.string().allow(""),lat_long:n.LatLong(),name:a.string().allow(""),pincode:a.number(),state:a.string().allow(""),store_code:a.string().allow(""),store_email:a.string().allow(""),uid:a.number()})}static StoreAddressSerializer(){return a.object({address1:a.string().allow(""),address2:a.string().allow(""),city:a.string().allow(""),country:a.string().allow(""),landmark:a.string().allow(""),latitude:a.number(),longitude:a.number(),pincode:a.number(),state:a.string().allow("")})}static StoreDepartments(){return a.object({logo:a.any(),name:a.string().allow(""),priority_order:a.number(),slug:a.string().allow(""),uid:a.number()})}static StoreDetail(){return a.object({city:a.string().allow(""),code:a.string().allow(""),id:a.number(),name:a.string().allow("")})}static StoreDetails(){return a.object({_custom_json:a.any(),address:n.StoreAddressSerializer(),company:n.CompanyStore(),contact_numbers:a.array().items(n.SellerPhoneNumber()),departments:a.array().items(n.StoreDepartments()),manager:n.StoreManagerSerializer(),name:a.string().allow(""),store_code:a.string().allow(""),timing:a.array().items(n.StoreTiming()),uid:a.number()})}static StoreListingResponse(){return a.object({items:a.array().items(n.Store()).required(),page:n.Page().required()})}static StoreManagerSerializer(){return a.object({email:a.string().allow(""),mobile_no:n.SellerPhoneNumber(),name:a.string().allow("")})}static StoreTiming(){return a.object({closing:n.Time(),open:a.boolean(),opening:n.Time(),weekday:a.string().allow("")})}static StoreV3(){return a.object({count:a.number(),name:a.string().allow(""),uid:a.number()})}static StrategyWiseListingSchemaV3(){return a.object({distance:a.number(),pincode:a.number(),quantity:a.number(),tat:a.number()})}static ThirdLevelChild(){return a.object({_custom_json:a.any(),action:n.ProductListingAction(),banners:n.ImageUrls(),childs:a.array().items(a.any()),name:a.string().allow(""),slug:a.string().allow(""),uid:a.number()})}static Time(){return a.object({hour:a.number(),minute:a.number()})}static UserDetail(){return a.object({contact:a.string().allow(""),super_user:a.boolean(),user_id:a.string().allow("").required(),username:a.string().allow("").required()})}static Weight(){return a.object({is_default:a.boolean().required(),shipping:a.number().required(),unit:a.string().allow("").required()})}}e.exports=n},3853:(e,t,r)=>{const a=r(2705);r(5761),e.exports=class{static followById(){return a.object({collectionType:a.string().allow("").required(),collectionId:a.string().allow("").required()}).required()}static getBrandDetailBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getBrands(){return a.object({department:a.string().allow(""),pageNo:a.number(),pageSize:a.number()})}static getCategories(){return a.object({department:a.string().allow("")})}static getCategoryDetailBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getCollectionDetailBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getCollectionItemsBySlug(){return a.object({slug:a.string().allow("").required(),f:a.string().allow(""),q:a.string().allow(""),filters:a.boolean(),sortOn:a.string().allow(""),pageId:a.string().allow(""),pageSize:a.number(),pageNo:a.number(),pageType:a.string().allow("")}).required()}static getCollections(){return a.object({pageNo:a.number(),pageSize:a.number(),tag:a.array().items(a.string().allow("")),q:a.string().allow("")})}static getComparedFrequentlyProductBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getDepartments(){return a.object({})}static getFollowIds(){return a.object({collectionType:a.string().allow("")})}static getFollowedListing(){return a.object({collectionType:a.string().allow("").required(),pageId:a.string().allow(""),pageSize:a.number()}).required()}static getFollowerCountById(){return a.object({collectionType:a.string().allow("").required(),collectionId:a.string().allow("").required()}).required()}static getHomeProducts(){return a.object({sortOn:a.string().allow(""),pageId:a.string().allow(""),pageSize:a.number()})}static getInStockLocations(){return a.object({pageNo:a.number(),pageSize:a.number(),q:a.string().allow(""),city:a.string().allow(""),range:a.number(),latitude:a.number(),longitude:a.number()})}static getLocationDetailsById(){return a.object({locationId:a.number().required()}).required()}static getProductBundlesBySlug(){return a.object({slug:a.string().allow(""),id:a.string().allow("")})}static getProductComparisonBySlugs(){return a.object({slug:a.array().items(a.string().allow("")).required()}).required()}static getProductDetailBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getProductPriceBySlug(){return a.object({slug:a.string().allow("").required(),size:a.string().allow("").required(),storeId:a.number(),pincode:a.string().allow(""),moq:a.number()}).required()}static getProductSellersBySlug(){return a.object({slug:a.string().allow("").required(),size:a.string().allow("").required(),pincode:a.string().allow(""),strategy:a.string().allow(""),pageNo:a.number(),pageSize:a.number()}).required()}static getProductSizesBySlug(){return a.object({slug:a.string().allow("").required(),storeId:a.number()}).required()}static getProductStockByIds(){return a.object({itemId:a.string().allow(""),alu:a.string().allow(""),skuCode:a.string().allow(""),ean:a.string().allow(""),upc:a.string().allow("")})}static getProductStockForTimeByIds(){return a.object({timestamp:a.string().allow("").required(),pageSize:a.number(),pageId:a.string().allow("")}).required()}static getProductVariantsBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getProducts(){return a.object({q:a.string().allow(""),f:a.string().allow(""),filters:a.boolean(),sortOn:a.string().allow(""),pageId:a.string().allow(""),pageSize:a.number(),pageNo:a.number(),pageType:a.string().allow("")})}static getSearchResults(){return a.object({q:a.string().allow("").required()}).required()}static getSimilarComparisonProductBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getStores(){return a.object({pageNo:a.number(),pageSize:a.number(),q:a.string().allow(""),city:a.string().allow(""),range:a.number(),latitude:a.number(),longitude:a.number()})}static unfollowById(){return a.object({collectionType:a.string().allow("").required(),collectionId:a.string().allow("").required()}).required()}}},737:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(9692)),i=r(1844),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getLocations:"/service/common/configuration/v1.0/location",searchApplication:"/service/common/configuration/v1.0/application/search-application"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getLocations({locationType:e,id:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getLocations().validate({locationType:e,id:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getLocations().validate({locationType:e,id:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Common > getLocations \n ${d}`});const p={};p.location_type=e,p.id=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getLocations,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.Locations().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Common > getLocations \n ${w}`}),g}async searchApplication({authorization:e,query:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.searchApplication().validate({authorization:e,query:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.searchApplication().validate({authorization:e,query:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Common > searchApplication \n ${d}`});const p={};p.query=t;const g={};g.authorization=e;const m=await a.execute(this._conf,"get",o({url:this._urls.searchApplication,params:{}}),p,void 0,{...g,...r},{responseHeaders:c});let w=m;c&&(w=m[0]);const{error:y}=i.ApplicationResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&l({level:"WARN",message:`Response Validation Warnnings for application > Common > searchApplication \n ${y}`}),m}}},1844:(e,t,r)=>{const a=r(2705);class n{static Application(){return a.object({__v:a.number(),_id:a.string().allow(""),app_type:a.string().allow(""),auth:n.ApplicationAuth(),banner:n.SecureUrl(),cache_ttl:a.number(),channel_type:a.string().allow(""),company_id:a.number(),cors:n.ApplicationCors(),created_at:a.string().allow(""),description:a.string().allow(""),domain:n.Domain(),domains:a.array().items(n.Domain()),favicon:n.SecureUrl(),is_active:a.boolean(),is_internal:a.boolean(),logo:n.SecureUrl(),meta:a.array().items(n.ApplicationMeta()),mobile_logo:n.SecureUrl(),name:a.string().allow(""),owner:a.string().allow(""),redirections:a.array().items(n.ApplicationRedirections()),token:a.string().allow(""),updated_at:a.string().allow(""),website:n.ApplicationWebsite()})}static ApplicationAuth(){return a.object({enabled:a.boolean()})}static ApplicationCors(){return a.object({domains:a.array().items(a.string().allow(""))})}static ApplicationMeta(){return a.object({name:a.string().allow(""),value:a.string().allow("")})}static ApplicationRedirections(){return a.object({redirect_from:a.string().allow(""),redirect_to:a.string().allow(""),type:a.string().allow("")})}static ApplicationResponse(){return a.object({application:n.Application()})}static ApplicationWebsite(){return a.object({basepath:a.string().allow(""),enabled:a.boolean()})}static BadRequest(){return a.object({message:a.string().allow("")})}static Domain(){return a.object({_id:a.string().allow(""),is_predefined:a.boolean(),is_primary:a.boolean(),is_shortlink:a.boolean(),name:a.string().allow(""),verified:a.boolean()})}static LocationCountry(){return a.object({__v:a.number(),_id:a.string().allow(""),capital:a.string().allow(""),country_code:a.string().allow(""),currency:a.string().allow(""),default_currency:n.LocationDefaultCurrency(),default_language:n.LocationDefaultLanguage(),iso2:a.string().allow(""),iso3:a.string().allow(""),latitude:a.string().allow(""),longitude:a.string().allow(""),name:a.string().allow(""),parent:a.string().allow(""),phone_code:a.string().allow(""),state_code:a.string().allow(""),type:a.string().allow(""),uid:a.number()})}static LocationDefaultCurrency(){return a.object({code:a.string().allow(""),name:a.string().allow(""),symbol:a.string().allow("")})}static LocationDefaultLanguage(){return a.object({code:a.string().allow(""),name:a.string().allow("")})}static Locations(){return a.object({items:a.array().items(n.LocationCountry())})}static NotFound(){return a.object({message:a.string().allow("")})}static SecureUrl(){return a.object({secure_url:a.string().allow("")})}}e.exports=n},9692:(e,t,r)=>{const a=r(2705);r(1844),e.exports=class{static getLocations(){return a.object({locationType:a.string().allow(""),id:a.string().allow("")})}static searchApplication(){return a.object({authorization:a.string().allow(""),query:a.string().allow("")})}}},4113:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(5471)),i=r(4752),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getCommunicationConsent:"/service/application/communication/v1.0/consent",upsertAppPushtoken:"/service/application/communication/v1.0/pn-token",upsertCommunicationConsent:"/service/application/communication/v1.0/consent"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getCommunicationConsent({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getCommunicationConsent().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getCommunicationConsent().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > Communication > getCommunicationConsent \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getCommunicationConsent,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.CommunicationConsent().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > Communication > getCommunicationConsent \n ${p}`}),u}async upsertAppPushtoken({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.upsertAppPushtoken().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.upsertAppPushtoken().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Communication > upsertAppPushtoken \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.upsertAppPushtoken,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.PushtokenRes().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Communication > upsertAppPushtoken \n ${g}`}),d}async upsertCommunicationConsent({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.upsertCommunicationConsent().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.upsertCommunicationConsent().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Communication > upsertCommunicationConsent \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.upsertCommunicationConsent,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.CommunicationConsentRes().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Communication > upsertCommunicationConsent \n ${g}`}),d}}},4752:(e,t,r)=>{const a=r(2705);class n{static BadRequestSchema(){return a.object({message:a.string().allow(""),status:a.string().allow("")})}static CommunicationConsent(){return a.object({app_id:a.string().allow(""),channels:n.CommunicationConsentChannels(),user_id:a.string().allow("")})}static CommunicationConsentChannels(){return a.object({email:n.CommunicationConsentChannelsEmail(),sms:n.CommunicationConsentChannelsSms(),whatsapp:n.CommunicationConsentChannelsWhatsapp()})}static CommunicationConsentChannelsEmail(){return a.object({display_name:a.string().allow(""),response:a.string().allow("")})}static CommunicationConsentChannelsSms(){return a.object({display_name:a.string().allow(""),response:a.string().allow("")})}static CommunicationConsentChannelsWhatsapp(){return a.object({country_code:a.string().allow(""),display_name:a.string().allow(""),phone_number:a.string().allow(""),response:a.string().allow("")})}static CommunicationConsentReq(){return a.object({action:a.string().allow(""),channel:a.string().allow(""),response:a.string().allow("")})}static CommunicationConsentRes(){return a.object({app_id:a.string().allow(""),channels:n.CommunicationConsentChannels(),user_id:a.string().allow("")})}static PushtokenReq(){return a.object({action:a.string().allow(""),bundle_identifier:a.string().allow(""),push_token:a.string().allow(""),type:a.string().allow(""),unique_device_id:a.string().allow("")})}static PushtokenRes(){return a.object({_id:a.string().allow(""),application_id:a.string().allow(""),bundle_identifier:a.string().allow(""),created_at:a.string().allow(""),expired_at:a.string().allow(""),platform:a.string().allow(""),push_token:a.string().allow(""),type:a.string().allow(""),unique_device_id:a.string().allow(""),updated_at:a.string().allow(""),user_id:a.string().allow("")})}}e.exports=n},5471:(e,t,r)=>{const a=r(2705),n=r(4752);e.exports=class{static getCommunicationConsent(){return a.object({})}static upsertAppPushtoken(){return a.object({body:n.PushtokenReq().required()}).required()}static upsertCommunicationConsent(){return a.object({body:n.CommunicationConsentReq().required()}).required()}}},5970:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=r(3589),i=r(473),l=r(4328),{Logger:c}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAppCurrencies:"/service/application/configuration/v1.0/currency",getAppStaffList:"/service/application/configuration/v1.0/staff/list",getAppStaffs:"/service/application/configuration/v1.0/staff",getApplication:"/service/application/configuration/v1.0/application",getBasicDetails:"/service/application/configuration/v1.0/detail",getContactInfo:"/service/application/configuration/v1.0/information",getCurrencies:"/service/application/configuration/v1.0/currencies",getCurrencyById:"/service/application/configuration/v1.0/currency/{id}",getFeatures:"/service/application/configuration/v1.0/feature",getIntegrationTokens:"/service/application/configuration/v1.0/token",getLanguages:"/service/application/configuration/v1.0/languages",getOrderingStoreCookie:"/service/application/configuration/v1.0/ordering-store/select",getOrderingStores:"/service/application/configuration/v1.0/ordering-store/stores",getOwnerInfo:"/service/application/configuration/v1.0/about",getStoreDetailById:"/service/application/configuration/v1.0/ordering-store/stores/{store_id}",removeOrderingStoreCookie:"/service/application/configuration/v1.0/ordering-store/select"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAppCurrencies({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getAppCurrencies().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getAppCurrencies().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getAppCurrencies \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getAppCurrencies,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.AppCurrencyResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getAppCurrencies \n ${p}`}),u}async getAppStaffList({pageNo:e,pageSize:t,orderIncent:r,orderingStore:s,user:u,userName:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.getAppStaffList().validate({pageNo:e,pageSize:t,orderIncent:r,orderingStore:s,user:u,userName:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=i.getAppStaffList().validate({pageNo:e,pageSize:t,orderIncent:r,orderingStore:s,user:u,userName:d},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getAppStaffList \n ${w}`});const y={};y.page_no=e,y.page_size=t,y.order_incent=r,y.ordering_store=s,y.user=u,y.user_name=d;const f=await a.execute(this._conf,"get",o({url:this._urls.getAppStaffList,params:{}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=l.AppStaffListResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getAppStaffList \n ${h}`}),f}getAppStaffListPaginator({pageSize:e,orderIncent:t,orderingStore:r,user:a,userName:n}={}){const o=new s;return o.setCallback((async()=>{o.nextId;const s=o.pageNo,i=await this.getAppStaffList({pageNo:s,pageSize:e,orderIncent:t,orderingStore:r,user:a,userName:n});return o.setPaginator({hasNext:!!i.page.has_next,nextId:i.page.next_id}),i}).bind(this)),o}async getAppStaffs({orderIncent:e,orderingStore:t,user:r,requestHeaders:s}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getAppStaffs().validate({orderIncent:e,orderingStore:t,user:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getAppStaffs().validate({orderIncent:e,orderingStore:t,user:r},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getAppStaffs \n ${p}`});const g={};g.order_incent=e,g.ordering_store=t,g.user=r;const m=await a.execute(this._conf,"get",o({url:this._urls.getAppStaffs,params:{}}),g,void 0,{...s},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=l.AppStaffResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getAppStaffs \n ${y}`}),m}async getApplication({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getApplication().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getApplication().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getApplication \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getApplication,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.Application().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getApplication \n ${p}`}),u}async getBasicDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getBasicDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getBasicDetails().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getBasicDetails \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getBasicDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.ApplicationDetail().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getBasicDetails \n ${p}`}),u}async getContactInfo({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getContactInfo().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getContactInfo().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getContactInfo \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getContactInfo,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.ApplicationInformation().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getContactInfo \n ${p}`}),u}async getCurrencies({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getCurrencies().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getCurrencies().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getCurrencies \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getCurrencies,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.CurrenciesResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getCurrencies \n ${p}`}),u}async getCurrencyById({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getCurrencyById().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getCurrencyById().validate({id:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getCurrencyById \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getCurrencyById,params:{id:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.Currency().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getCurrencyById \n ${g}`}),d}async getFeatures({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getFeatures().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getFeatures().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getFeatures \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getFeatures,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.AppFeatureResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getFeatures \n ${p}`}),u}async getIntegrationTokens({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getIntegrationTokens().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getIntegrationTokens().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getIntegrationTokens \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getIntegrationTokens,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.AppTokenResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getIntegrationTokens \n ${p}`}),u}async getLanguages({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getLanguages().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getLanguages().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getLanguages \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getLanguages,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.LanguageResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getLanguages \n ${p}`}),u}async getOrderingStoreCookie({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getOrderingStoreCookie().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getOrderingStoreCookie().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getOrderingStoreCookie \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getOrderingStoreCookie,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.SuccessMessageResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getOrderingStoreCookie \n ${g}`}),d}async getOrderingStores({pageNo:e,pageSize:t,q:r,requestHeaders:s}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getOrderingStores().validate({pageNo:e,pageSize:t,q:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getOrderingStores().validate({pageNo:e,pageSize:t,q:r},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getOrderingStores \n ${p}`});const g={};g.page_no=e,g.page_size=t,g.q=r;const m=await a.execute(this._conf,"get",o({url:this._urls.getOrderingStores,params:{}}),g,void 0,{...s},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=l.OrderingStores().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getOrderingStores \n ${y}`}),m}getOrderingStoresPaginator({pageSize:e,q:t}={}){const r=new s;return r.setCallback((async()=>{r.nextId;const a=r.pageNo,n=await this.getOrderingStores({pageNo:a,pageSize:e,q:t});return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getOwnerInfo({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getOwnerInfo().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getOwnerInfo().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getOwnerInfo \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getOwnerInfo,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.ApplicationAboutResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getOwnerInfo \n ${p}`}),u}async getStoreDetailById({storeId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getStoreDetailById().validate({storeId:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getStoreDetailById().validate({storeId:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getStoreDetailById \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getStoreDetailById,params:{storeId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.OrderingStore().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getStoreDetailById \n ${g}`}),d}async removeOrderingStoreCookie({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.removeOrderingStoreCookie().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.removeOrderingStoreCookie().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > removeOrderingStoreCookie \n ${s}`});const u=await a.execute(this._conf,"delete",o({url:this._urls.removeOrderingStoreCookie,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.SuccessMessageResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > removeOrderingStoreCookie \n ${p}`}),u}}},4328:(e,t,r)=>{const a=r(2705);class n{static Android(){return a.object({api_key:a.string().allow(""),application_id:a.string().allow("")})}static AppCurrencyResponse(){return a.object({application:a.string().allow(""),default_currency:n.DefaultCurrency(),supported_currency:a.array().items(n.Currency())})}static AppFeature(){return a.object({__v:a.number(),_id:a.string().allow(""),app:a.string().allow(""),cart:n.CartFeature(),common:n.CommonFeature(),created_at:a.string().allow(""),home_page:n.HomePageFeature(),landing_page:n.LandingPageFeature(),order:n.OrderFeature(),pcr:n.PcrFeature(),product_detail:n.ProductDetailFeature(),qr:n.QrFeature(),registration_page:n.RegistrationPageFeature(),updated_at:a.string().allow("")})}static AppFeatureResponse(){return a.object({feature:n.AppFeature()})}static Application(){return a.object({__v:a.number(),_id:a.string().allow(""),app_type:a.string().allow(""),auth:n.ApplicationAuth(),banner:n.SecureUrl(),cache_ttl:a.number(),channel_type:a.string().allow(""),company_id:a.number(),cors:n.ApplicationCors(),created_at:a.string().allow(""),description:a.string().allow(""),domain:n.Domain(),domains:a.array().items(n.Domain()),favicon:n.SecureUrl(),is_active:a.boolean(),is_internal:a.boolean(),logo:n.SecureUrl(),meta:a.array().items(n.ApplicationMeta()),mobile_logo:n.SecureUrl(),name:a.string().allow(""),owner:a.string().allow(""),redirections:a.array().items(n.ApplicationRedirections()),token:a.string().allow(""),updated_at:a.string().allow(""),website:n.ApplicationWebsite()})}static ApplicationAboutResponse(){return a.object({application_info:n.ApplicationInfo(),company_info:n.CompanyInfo(),owner_info:n.OwnerInfo()})}static ApplicationAuth(){return a.object({enabled:a.boolean()})}static ApplicationCors(){return a.object({domains:a.array().items(a.string().allow(""))})}static ApplicationDetail(){return a.object({_id:a.string().allow(""),banner:n.SecureUrl(),description:a.string().allow(""),domain:n.Domain(),domains:a.array().items(n.Domain()),favicon:n.SecureUrl(),logo:n.SecureUrl(),mobile_logo:n.SecureUrl(),name:a.string().allow("").required()})}static ApplicationInfo(){return a.object({_id:a.string().allow(""),banner:n.SecureUrl(),cors:n.ApplicationCors(),created_at:a.string().allow(""),description:a.string().allow(""),domain:n.Domain(),is_active:a.boolean(),logo:n.SecureUrl(),meta:n.ApplicationMeta(),name:a.string().allow(""),secret:a.string().allow(""),token:a.string().allow(""),website:n.ApplicationWebsite()})}static ApplicationInformation(){return a.object({__v:a.number(),_id:a.string().allow(""),address:n.InformationAddress(),application:a.string().allow(""),business_highlights:n.BusinessHighlights(),copyright_text:a.string().allow(""),created_at:a.string().allow(""),links:n.Links(),social_links:n.SocialLinks(),support:n.InformationSupport(),updated_at:a.string().allow("")})}static ApplicationMeta(){return a.object({name:a.string().allow(""),value:a.string().allow("")})}static ApplicationRedirections(){return a.object({redirect_from:a.string().allow(""),redirect_to:a.string().allow(""),type:a.string().allow("")})}static ApplicationWebsite(){return a.object({basepath:a.string().allow(""),enabled:a.boolean()})}static AppStaff(){return a.object({_id:a.string().allow(""),application:a.string().allow(""),employee_code:a.string().allow(""),first_name:a.string().allow(""),last_name:a.string().allow(""),order_incent:a.boolean(),profile_pic_url:a.string().allow(""),stores:a.array().items(a.number()),title:a.string().allow(""),user:a.string().allow("")})}static AppStaffListResponse(){return a.object({items:a.array().items(n.AppStaff()),page:n.Page()})}static AppStaffResponse(){return a.object({staff_users:a.array().items(n.AppStaff())})}static AppTokenResponse(){return a.object({__v:a.number(),_id:a.string().allow(""),application:a.string().allow(""),created_at:a.string().allow(""),tokens:n.Tokens(),updated_at:a.string().allow("")})}static BlogLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}static BusinessHighlights(){return a.object({_id:a.string().allow(""),icon:a.string().allow(""),sub_title:a.string().allow(""),title:a.string().allow("")})}static CartFeature(){return a.object({google_map:a.boolean(),gst_input:a.boolean(),placing_for_customer:a.boolean(),revenue_engine_coupon:a.boolean(),staff_selection:a.boolean()})}static CommonFeature(){return a.object({communication_optin_dialog:n.CommunicationOptinDialogFeature(),compare_products:n.CompareProductsFeature(),currency:n.CurrencyFeature(),deployment_store_selection:n.DeploymentStoreSelectionFeature(),feedback:n.FeedbackFeature(),listing_price:n.ListingPriceFeature(),revenue_engine:n.RevenueEngineFeature(),reward_points:n.RewardPointsConfig()})}static CommunicationOptinDialogFeature(){return a.object({visibility:a.boolean()})}static CompanyAboutAddress(){return a.object({address_type:a.string().allow(""),address1:a.string().allow(""),address2:a.string().allow(""),city:a.string().allow(""),country:a.string().allow(""),pincode:a.number(),state:a.string().allow("")})}static CompanyInfo(){return a.object({_id:a.string().allow(""),addresses:a.array().items(n.CompanyAboutAddress()),created_on:a.string().allow(""),is_active:a.boolean(),name:a.string().allow(""),notification_emails:a.array().items(a.string().allow("")),uid:a.number()})}static CompareProductsFeature(){return a.object({enabled:a.boolean()})}static Credentials(){return a.object({android:n.Android(),api_key:a.string().allow(""),application_id:a.string().allow(""),gcm_sender_id:a.string().allow(""),ios:n.Ios(),project_id:a.string().allow("")})}static Credit(){return a.object({enabled:a.boolean()})}static CurrenciesResponse(){return a.object({items:a.array().items(n.Currency())})}static Currency(){return a.object({_id:a.string().allow(""),code:a.string().allow(""),created_at:a.string().allow(""),decimal_digits:a.number(),is_active:a.boolean(),name:a.string().allow(""),symbol:a.string().allow(""),updated_at:a.string().allow("")})}static CurrencyFeature(){return a.object({default_currency:a.string().allow(""),type:a.string().allow(""),value:a.array().items(a.string().allow(""))})}static Debit(){return a.object({auto_apply:a.boolean(),enabled:a.boolean(),strategy_channel:a.string().allow("")})}static DefaultCurrency(){return a.object({code:a.string().allow(""),ref:a.string().allow("")})}static DeploymentStoreSelectionFeature(){return a.object({enabled:a.boolean(),type:a.string().allow("")})}static Domain(){return a.object({_id:a.string().allow(""),is_predefined:a.boolean(),is_primary:a.boolean(),is_shortlink:a.boolean(),name:a.string().allow(""),verified:a.boolean()})}static FacebookLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}static FeedbackFeature(){return a.object({enabled:a.boolean()})}static Firebase(){return a.object({credentials:n.Credentials(),enabled:a.boolean()})}static Freshchat(){return a.object({credentials:n.FreshchatCredentials(),enabled:a.boolean()})}static FreshchatCredentials(){return a.object({app_id:a.string().allow(""),app_key:a.string().allow(""),web_token:a.string().allow("")})}static FyndRewards(){return a.object({credentials:n.FyndRewardsCredentials()})}static FyndRewardsCredentials(){return a.object({public_key:a.string().allow("")})}static GoogleMap(){return a.object({credentials:n.GoogleMapCredentials()})}static GoogleMapCredentials(){return a.object({api_key:a.string().allow("")})}static GooglePlusLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}static Gtm(){return a.object({credentials:n.GtmCredentials(),enabled:a.boolean()})}static GtmCredentials(){return a.object({api_key:a.string().allow("")})}static HomePageFeature(){return a.object({order_processing:a.boolean()})}static InformationAddress(){return a.object({address_line:a.array().items(a.string().allow("")),city:a.string().allow(""),country:a.string().allow(""),loc:a.string().allow(""),phone:n.InformationPhone(),pincode:a.number()})}static InformationPhone(){return a.object({code:a.string().allow(""),number:a.string().allow("")})}static InformationSupport(){return a.object({email:a.array().items(a.string().allow("")),phone:a.array().items(a.string().allow("")),timing:a.string().allow("")})}static InstagramLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}static Ios(){return a.object({api_key:a.string().allow(""),application_id:a.string().allow("")})}static LandingPageFeature(){return a.object({continue_as_guest:a.boolean(),launch_page:n.LaunchPage(),login_btn_text:a.string().allow(""),show_domain_textbox:a.boolean(),show_register_btn:a.boolean()})}static LanguageResponse(){return a.object({items:a.array().items(n.SupportedLanguage())})}static LaunchPage(){return a.object({page_type:a.string().allow(""),params:a.any(),query:a.any()})}static LinkedInLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}static Links(){return a.object({link:a.string().allow(""),title:a.string().allow("")})}static ListingPriceFeature(){return a.object({sort:a.string().allow(""),value:a.string().allow("")})}static Moengage(){return a.object({credentials:n.MoengageCredentials(),enabled:a.boolean()})}static MoengageCredentials(){return a.object({app_id:a.string().allow("")})}static NotFound(){return a.object({message:a.string().allow("")})}static OptedStoreAddress(){return a.object({address1:a.string().allow(""),address2:a.string().allow(""),city:a.string().allow(""),country:a.string().allow(""),lat_long:n.StoreLatLong(),pincode:a.number(),state:a.string().allow("")})}static OrderFeature(){return a.object({buy_again:a.boolean()})}static OrderingStore(){return a.object({_id:a.string().allow(""),address:n.OptedStoreAddress(),code:a.string().allow(""),display_name:a.string().allow(""),name:a.string().allow(""),pincode:a.number(),store_code:a.string().allow(""),store_type:a.string().allow(""),uid:a.number()})}static OrderingStores(){return a.object({__v:a.number(),_id:a.string().allow(""),all_stores:a.boolean(),app:a.string().allow(""),deployed_stores:a.array().items(a.number()),enabled:a.boolean(),items:a.array().items(n.OrderingStore()),page:n.Page(),type:a.string().allow("")})}static OrderingStoreSelect(){return a.object({uid:a.number().required()})}static OrderingStoreSelectRequest(){return a.object({ordering_store:n.OrderingStoreSelect().required()})}static OwnerInfo(){return a.object({_id:a.string().allow(""),emails:a.array().items(n.UserEmail()),first_name:a.string().allow(""),last_name:a.string().allow(""),phone_numbers:a.array().items(n.UserPhoneNumber()),profile_pic:a.string().allow("")})}static Page(){return a.object({current:a.number(),has_next:a.boolean(),has_previous:a.boolean(),item_total:a.number(),next_id:a.string().allow(""),size:a.number(),type:a.string().allow("").required()})}static PcrFeature(){return a.object({staff_selection:a.boolean()})}static PinterestLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}static ProductDetailFeature(){return a.object({request_product:a.boolean(),seller_selection:a.boolean(),similar:a.array().items(a.string().allow("")),update_product_meta:a.boolean()})}static QrFeature(){return a.object({application:a.boolean(),collections:a.boolean(),products:a.boolean()})}static RegistrationPageFeature(){return a.object({ask_store_address:a.boolean()})}static RevenueEngineFeature(){return a.object({enabled:a.boolean()})}static RewardPointsConfig(){return a.object({credit:n.Credit(),debit:n.Debit()})}static Safetynet(){return a.object({credentials:n.SafetynetCredentials(),enabled:a.boolean()})}static SafetynetCredentials(){return a.object({api_key:a.string().allow("")})}static SecureUrl(){return a.object({secure_url:a.string().allow("")})}static Segment(){return a.object({credentials:n.SegmentCredentials(),enabled:a.boolean()})}static SegmentCredentials(){return a.object({write_key:a.string().allow("")})}static SocialLinks(){return a.object({blog_link:n.BlogLink(),facebook:n.FacebookLink(),google_plus:n.GooglePlusLink(),instagram:n.InstagramLink(),linked_in:n.LinkedInLink(),pinterest:n.PinterestLink(),twitter:n.TwitterLink(),vimeo:n.VimeoLink(),youtube:n.YoutubeLink()})}static StoreLatLong(){return a.object({coordinates:a.array().items(a.number()),type:a.string().allow("")})}static SuccessMessageResponse(){return a.object({message:a.string().allow("")})}static SupportedLanguage(){return a.object({code:a.string().allow(""),name:a.string().allow("")})}static Tokens(){return a.object({firebase:n.Firebase(),freshchat:n.Freshchat(),fynd_rewards:n.FyndRewards(),google_map:n.GoogleMap(),gtm:n.Gtm(),moengage:n.Moengage(),safetynet:n.Safetynet(),segment:n.Segment()})}static TwitterLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}static UnhandledError(){return a.object({message:a.string().allow("")})}static UserEmail(){return a.object({active:a.boolean(),email:a.string().allow(""),primary:a.boolean(),verified:a.boolean()})}static UserPhoneNumber(){return a.object({active:a.boolean(),country_code:a.number(),phone:a.string().allow(""),primary:a.boolean(),verified:a.boolean()})}static VimeoLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}static YoutubeLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}}e.exports=n},473:(e,t,r)=>{const a=r(2705),n=r(4328);e.exports=class{static getAppCurrencies(){return a.object({})}static getAppStaffList(){return a.object({pageNo:a.number(),pageSize:a.number(),orderIncent:a.boolean(),orderingStore:a.number(),user:a.string().allow(""),userName:a.string().allow("")})}static getAppStaffs(){return a.object({orderIncent:a.boolean(),orderingStore:a.number(),user:a.string().allow("")})}static getApplication(){return a.object({})}static getBasicDetails(){return a.object({})}static getContactInfo(){return a.object({})}static getCurrencies(){return a.object({})}static getCurrencyById(){return a.object({id:a.string().allow("").required()}).required()}static getFeatures(){return a.object({})}static getIntegrationTokens(){return a.object({})}static getLanguages(){return a.object({})}static getOrderingStoreCookie(){return a.object({body:n.OrderingStoreSelectRequest().required()}).required()}static getOrderingStores(){return a.object({pageNo:a.number(),pageSize:a.number(),q:a.string().allow("")})}static getOwnerInfo(){return a.object({})}static getStoreDetailById(){return a.object({storeId:a.number().required()}).required()}static removeOrderingStoreCookie(){return a.object({})}}},4976:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=r(3589),i=r(8207),l=r(3377),{Logger:c}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAnnouncements:"/service/application/content/v1.0/announcements",getBlog:"/service/application/content/v1.0/blogs/{slug}",getBlogs:"/service/application/content/v1.0/blogs/",getDataLoaders:"/service/application/content/v1.0/data-loader",getFaqBySlug:"/service/application/content/v1.0/faq/{slug}",getFaqCategories:"/service/application/content/v1.0/faq/categories",getFaqCategoryBySlug:"/service/application/content/v1.0/faq/category/{slug}",getFaqs:"/service/application/content/v1.0/faq",getFaqsByCategorySlug:"/service/application/content/v1.0/faq/category/{slug}/faqs",getLandingPage:"/service/application/content/v1.0/landing-page",getLegalInformation:"/service/application/content/v1.0/legal",getNavigations:"/service/application/content/v1.0/navigations/",getPage:"/service/application/content/v2.0/pages/{slug}",getPages:"/service/application/content/v2.0/pages/",getSEOConfiguration:"/service/application/content/v1.0/seo",getSlideshow:"/service/application/content/v1.0/slideshow/{slug}",getSlideshows:"/service/application/content/v1.0/slideshow/",getSupportInformation:"/service/application/content/v1.0/support",getTags:"/service/application/content/v1.0/tags"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAnnouncements({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getAnnouncements().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getAnnouncements().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getAnnouncements \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getAnnouncements,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.AnnouncementsResponseSchema().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getAnnouncements \n ${p}`}),u}async getBlog({slug:e,rootId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getBlog().validate({slug:e,rootId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getBlog().validate({slug:e,rootId:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getBlog \n ${d}`});const p={};p.root_id=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getBlog,params:{slug:e}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.BlogSchema().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getBlog \n ${w}`}),g}async getBlogs({pageNo:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getBlogs().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getBlogs().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getBlogs \n ${d}`});const p={};p.page_no=e,p.page_size=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getBlogs,params:{}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.BlogGetResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getBlogs \n ${w}`}),g}getBlogsPaginator({pageSize:e}={}){const t=new s;return t.setCallback((async()=>{t.nextId;const r=t.pageNo,a=await this.getBlogs({pageNo:r,pageSize:e});return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getDataLoaders({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getDataLoaders().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getDataLoaders().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getDataLoaders \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getDataLoaders,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.DataLoadersSchema().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getDataLoaders \n ${p}`}),u}async getFaqBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getFaqBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getFaqBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getFaqBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.FaqSchema().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getFaqBySlug \n ${g}`}),d}async getFaqCategories({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getFaqCategories().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getFaqCategories().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqCategories \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getFaqCategories,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.GetFaqCategoriesSchema().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getFaqCategories \n ${p}`}),u}async getFaqCategoryBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getFaqCategoryBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getFaqCategoryBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqCategoryBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getFaqCategoryBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.GetFaqCategoryBySlugSchema().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getFaqCategoryBySlug \n ${g}`}),d}async getFaqs({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getFaqs().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getFaqs().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqs \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getFaqs,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.FaqResponseSchema().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getFaqs \n ${p}`}),u}async getFaqsByCategorySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getFaqsByCategorySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getFaqsByCategorySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqsByCategorySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getFaqsByCategorySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.GetFaqSchema().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getFaqsByCategorySlug \n ${g}`}),d}async getLandingPage({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getLandingPage().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getLandingPage().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getLandingPage \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getLandingPage,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.LandingPageSchema().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getLandingPage \n ${p}`}),u}async getLegalInformation({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getLegalInformation().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getLegalInformation().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getLegalInformation \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getLegalInformation,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.ApplicationLegal().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getLegalInformation \n ${p}`}),u}async getNavigations({pageNo:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getNavigations().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getNavigations().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getNavigations \n ${d}`});const p={};p.page_no=e,p.page_size=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getNavigations,params:{}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.NavigationGetResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getNavigations \n ${w}`}),g}getNavigationsPaginator({pageSize:e}={}){const t=new s;return t.setCallback((async()=>{t.nextId;const r=t.pageNo,a=await this.getNavigations({pageNo:r,pageSize:e});return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getPage({slug:e,rootId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getPage().validate({slug:e,rootId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getPage().validate({slug:e,rootId:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getPage \n ${d}`});const p={};p.root_id=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getPage,params:{slug:e}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.PageSchema().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getPage \n ${w}`}),g}async getPages({pageNo:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getPages().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getPages().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getPages \n ${d}`});const p={};p.page_no=e,p.page_size=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getPages,params:{}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.PageGetResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getPages \n ${w}`}),g}getPagesPaginator({pageSize:e}={}){const t=new s;return t.setCallback((async()=>{t.nextId;const r=t.pageNo,a=await this.getPages({pageNo:r,pageSize:e});return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getSEOConfiguration({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getSEOConfiguration().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getSEOConfiguration().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSEOConfiguration \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getSEOConfiguration,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.SeoComponent().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getSEOConfiguration \n ${p}`}),u}async getSlideshow({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getSlideshow().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getSlideshow().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSlideshow \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getSlideshow,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.SlideshowSchema().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getSlideshow \n ${g}`}),d}async getSlideshows({pageNo:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getSlideshows().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getSlideshows().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSlideshows \n ${d}`});const p={};p.page_no=e,p.page_size=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getSlideshows,params:{}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.SlideshowGetResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getSlideshows \n ${w}`}),g}getSlideshowsPaginator({pageSize:e}={}){const t=new s;return t.setCallback((async()=>{t.nextId;const r=t.pageNo,a=await this.getSlideshows({pageNo:r,pageSize:e});return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getSupportInformation({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getSupportInformation().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getSupportInformation().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSupportInformation \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getSupportInformation,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.Support().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getSupportInformation \n ${p}`}),u}async getTags({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getTags().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getTags().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getTags \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getTags,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.TagsSchema().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getTags \n ${p}`}),u}}},3377:(e,t,r)=>{const a=r(2705);class n{static Action(){return a.object({page:n.ActionPage(),popup:n.ActionPage(),type:a.string().allow("")})}static ActionPage(){return a.object({params:a.object().pattern(/\S/,a.array().items(a.string().allow(""))),query:a.object().pattern(/\S/,a.array().items(a.string().allow(""))),type:n.PageType().required(),url:a.string().allow("")})}static AnnouncementSchema(){return a.object({announcement:a.string().allow(""),schedule:n.ScheduleStartSchema()})}static AnnouncementsResponseSchema(){return a.object({announcements:a.object().pattern(/\S/,a.array().items(n.AnnouncementSchema())),refresh_pages:a.array().items(a.string().allow("")),refresh_rate:a.number()})}static ApplicationLegal(){return a.object({_id:a.string().allow(""),application:a.string().allow(""),created_at:a.string().allow(""),faq:a.array().items(n.ApplicationLegalFAQ()),policy:a.string().allow(""),returns:a.string().allow(""),shipping:a.string().allow(""),tnc:a.string().allow(""),updated_at:a.string().allow("")})}static ApplicationLegalFAQ(){return a.object({answer:a.string().allow(""),question:a.string().allow("")})}static Asset(){return a.object({aspect_ratio:a.string().allow(""),id:a.string().allow(""),secure_url:a.string().allow("")})}static Author(){return a.object({designation:a.string().allow(""),id:a.string().allow(""),name:a.string().allow("")})}static BlogGetResponse(){return a.object({items:a.array().items(n.BlogSchema()),page:n.Page()})}static BlogSchema(){return a.object({_custom_json:a.any(),_id:a.string().allow(""),_schedule:n.CronSchedule(),application:a.string().allow(""),archived:a.boolean(),author:n.Author(),content:a.array().items(n.ResourceContent()),date_meta:n.DateMeta(),feature_image:n.Asset(),published:a.boolean(),reading_time:a.string().allow(""),seo:n.SEO(),slug:a.string().allow(""),tags:a.array().items(a.string().allow("")),title:a.string().allow("")})}static CategorySchema(){return a.object({_custom_json:a.any(),_id:a.string().allow(""),application:a.string().allow(""),children:a.array().items(a.string().allow("")),description:a.string().allow(""),icon_url:a.string().allow(""),index:a.number(),slug:a.string().allow(""),title:a.string().allow("")})}static ChildrenSchema(){return a.object({_id:a.string().allow(""),answer:a.string().allow(""),application:a.string().allow(""),question:a.string().allow(""),slug:a.string().allow("")})}static CommonError(){return a.object({message:a.string().allow("")})}static ConfigurationSchema(){return a.object({duration:a.number(),sleep_time:a.number(),slide_direction:a.string().allow(""),start_on_launch:a.boolean()})}static ContactSchema(){return a.object({email:n.EmailSchema(),phone:n.PhoneSchema()})}static ContentAPIError(){return a.object({code:a.string().allow(""),exception:a.string().allow(""),info:a.string().allow(""),message:a.string().allow(""),meta:a.any(),request_id:a.string().allow(""),stack_trace:a.string().allow(""),status:a.number()})}static CreatedBySchema(){return a.object({id:a.string().allow("")})}static CronSchedule(){return a.object({cron:a.string().allow(""),duration:a.number(),end:a.string().allow(""),start:a.string().allow("")})}static CustomMetaTag(){return a.object({_id:a.string().allow(""),content:a.string().allow(""),name:a.string().allow("")})}static DataLoaderSchema(){return a.object({__source:n.DataLoaderSourceSchema(),_id:a.string().allow(""),content:a.string().allow(""),name:a.string().allow(""),operation_id:a.string().allow(""),service:a.string().allow(""),type:a.string().allow(""),url:a.string().allow("")})}static DataLoaderSourceSchema(){return a.object({id:a.string().allow(""),type:a.string().allow("")})}static DataLoadersSchema(){return a.object({items:a.array().items(n.DataLoaderSchema())})}static DateMeta(){return a.object({created_on:a.string().allow(""),modified_on:a.string().allow("")})}static Detail(){return a.object({description:a.string().allow(""),image_url:a.string().allow(""),title:a.string().allow("")})}static EmailProperties(){return a.object({key:a.string().allow(""),value:a.string().allow("")})}static EmailSchema(){return a.object({active:a.boolean(),email:a.array().items(n.EmailProperties())})}static FAQCategorySchema(){return a.object({_custom_json:a.any(),_id:a.string().allow(""),application:a.string().allow(""),children:a.array().items(n.ChildrenSchema()),description:a.string().allow(""),icon_url:a.string().allow(""),index:a.number(),slug:a.string().allow(""),title:a.string().allow("")})}static FaqResponseSchema(){return a.object({faqs:a.array().items(n.FaqSchema())})}static FaqSchema(){return a.object({_id:a.string().allow(""),answer:a.string().allow(""),application:a.string().allow(""),question:a.string().allow(""),slug:a.string().allow(""),tags:a.array().items(a.string().allow(""))})}static GetFaqCategoriesSchema(){return a.object({categories:a.array().items(n.CategorySchema())})}static GetFaqCategoryBySlugSchema(){return a.object({category:n.FAQCategorySchema()})}static GetFaqSchema(){return a.object({faqs:a.array().items(n.FaqSchema())})}static LandingPageSchema(){return a.object({_custom_json:a.any(),_id:a.string().allow(""),action:n.Action(),application:a.string().allow(""),archived:a.boolean(),created_by:n.CreatedBySchema(),date_meta:n.DateMeta(),platform:a.array().items(a.string().allow("")),slug:a.string().allow("")})}static Language(){return a.object({display:a.string().allow("")})}static LocaleLanguage(){return a.object({ar:n.Language(),en_us:n.Language(),hi:n.Language()})}static NavigationGetResponse(){return a.object({items:a.array().items(n.NavigationSchema()),page:n.Page()})}static NavigationReference(){return a.object({_locale_language:n.LocaleLanguage(),acl:a.array().items(a.string().allow("")),action:n.Action(),active:a.boolean(),display:a.string().allow(""),image:a.string().allow(""),sort_order:a.number(),sub_navigation:a.array().items(a.link("#NavigationReference")),tags:a.array().items(a.string().allow("")),type:a.string().allow("")}).id("NavigationReference")}static NavigationSchema(){return a.object({_id:a.string().allow(""),application:a.string().allow(""),archived:a.boolean(),created_by:n.CreatedBySchema(),date_meta:n.DateMeta(),name:a.string().allow(""),navigation:a.array().items(n.NavigationReference()),orientation:n.Orientation(),platform:a.array().items(a.string().allow("")),slug:a.string().allow(""),version:a.number()})}static NextSchedule(){return a.object({end:a.string().allow(""),start:a.string().allow("")})}static Orientation(){return a.object({landscape:a.array().items(a.string().allow("")),portrait:a.array().items(a.string().allow(""))})}static Page(){return a.object({current:a.number(),has_next:a.boolean(),has_previous:a.boolean(),item_total:a.number(),next_id:a.string().allow(""),size:a.number(),type:a.string().allow("").required()})}static PageGetResponse(){return a.object({items:a.array().items(n.PageSchema()),page:n.Page()})}static PageSchema(){return a.object({_custom_json:a.any(),_id:a.string().allow(""),_schedule:n.ScheduleSchema(),application:a.string().allow(""),archived:a.boolean(),component_ids:a.array().items(a.string().allow("")),content:a.array().items(a.any()),content_path:a.string().allow(""),created_by:n.CreatedBySchema(),date_meta:n.DateMeta(),description:a.string().allow(""),feature_image:n.Asset(),orientation:a.string().allow(""),page_meta:a.array().items(a.any()),platform:a.string().allow(""),published:a.boolean(),seo:n.SEO(),slug:a.string().allow(""),tags:a.array().items(a.string().allow("")),title:a.string().allow(""),type:a.string().allow(""),visibility:a.any()})}static PhoneProperties(){return a.object({code:a.string().allow(""),key:a.string().allow(""),number:a.string().allow("")})}static PhoneSchema(){return a.object({active:a.boolean(),phone:a.array().items(n.PhoneProperties())})}static ResourceContent(){return a.object({type:a.string().allow(""),value:a.string().allow("")})}static ScheduleSchema(){return a.object({cron:a.string().allow(""),duration:a.number(),end:a.string().allow(""),next_schedule:a.array().items(n.NextSchedule()),start:a.string().allow("")})}static ScheduleStartSchema(){return a.object({end:a.string().allow(""),start:a.string().allow("")})}static SEO(){return a.object({description:a.string().allow(""),image:n.SEOImage(),title:a.string().allow("")})}static SeoComponent(){return a.object({seo:n.SeoSchema()})}static SEOImage(){return a.object({url:a.string().allow("")})}static SeoSchema(){return a.object({_id:a.string().allow(""),app:a.string().allow(""),cannonical_enabled:a.boolean(),created_at:a.string().allow(""),custom_meta_tags:a.array().items(n.CustomMetaTag()),details:n.Detail(),robots_txt:a.string().allow(""),sitemap_enabled:a.boolean(),updated_at:a.string().allow("")})}static SlideshowGetResponse(){return a.object({items:a.array().items(n.SlideshowSchema()),page:n.Page()})}static SlideshowMedia(){return a.object({action:n.Action(),auto_decide_duration:a.boolean(),bg_color:a.string().allow(""),duration:a.number(),type:a.string().allow(""),url:a.string().allow("")})}static SlideshowSchema(){return a.object({_custom_json:a.any(),_id:a.string().allow(""),active:a.boolean(),application:a.string().allow(""),archived:a.boolean(),configuration:n.ConfigurationSchema(),date_meta:n.DateMeta(),media:a.array().items(n.SlideshowMedia()),platform:a.string().allow(""),slug:a.string().allow("")})}static Support(){return a.object({_id:a.string().allow(""),application:a.string().allow(""),config_type:a.string().allow(""),contact:n.ContactSchema(),created:a.boolean(),created_at:a.string().allow(""),updated_at:a.string().allow("")})}static TagSchema(){return a.object({__source:n.TagSourceSchema(),_id:a.string().allow(""),attributes:a.any(),content:a.string().allow(""),name:a.string().allow(""),pages:a.array().items(a.any()),position:a.string().allow(""),sub_type:a.string().allow(""),type:a.string().allow(""),url:a.string().allow("")})}static TagSourceSchema(){return a.object({id:a.string().allow(""),type:a.string().allow("")})}static TagsSchema(){return a.object({_id:a.string().allow(""),application:a.string().allow(""),tags:a.array().items(n.TagSchema())})}static PageType(){return a.string().valid("about-us","addresses","blog","brands","cards","cart","categories","brand","category","collection","collections","contact-us","external","faq","freshchat","home","notification-settings","orders","page","policy","product","product-request","products","profile","profile-order-shipment","profile-basic","profile-company","profile-emails","profile-phones","rate-us","refer-earn","settings","shared-cart","tnc","track-order","wishlist","sections","form","cart-delivery","cart-payment","cart-review","login","register","shipping-policy","return-policy","order-status")}}e.exports=n},8207:(e,t,r)=>{const a=r(2705);r(3377),e.exports=class{static getAnnouncements(){return a.object({})}static getBlog(){return a.object({slug:a.string().allow("").required(),rootId:a.string().allow("")}).required()}static getBlogs(){return a.object({pageNo:a.number(),pageSize:a.number()})}static getDataLoaders(){return a.object({})}static getFaqBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getFaqCategories(){return a.object({})}static getFaqCategoryBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getFaqs(){return a.object({})}static getFaqsByCategorySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getLandingPage(){return a.object({})}static getLegalInformation(){return a.object({})}static getNavigations(){return a.object({pageNo:a.number(),pageSize:a.number()})}static getPage(){return a.object({slug:a.string().allow("").required(),rootId:a.string().allow("")}).required()}static getPages(){return a.object({pageNo:a.number(),pageSize:a.number()})}static getSEOConfiguration(){return a.object({})}static getSlideshow(){return a.object({slug:a.string().allow("").required()}).required()}static getSlideshows(){return a.object({pageNo:a.number(),pageSize:a.number()})}static getSupportInformation(){return a.object({})}static getTags(){return a.object({})}}},8568:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(2601)),i=r(5108),{Logger:l}=r(7378),c=(r(2705),r(9669));class u{constructor(e){this._conf=e,this._relativeUrls={completeUpload:"/service/application/assets/v1.0/namespaces/{namespace}/upload/complete/",signUrls:"/service/application/assets/v1.0/sign-urls/",startUpload:"/service/application/assets/v1.0/namespaces/{namespace}/upload/start/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async completeUpload({namespace:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.completeUpload().validate({namespace:e,body:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.completeUpload().validate({namespace:e,body:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > FileStorage > completeUpload \n ${d}`});const p=await a.execute(this._conf,"post",o({url:this._urls.completeUpload,params:{namespace:e}}),{},t,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.CompleteResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > FileStorage > completeUpload \n ${m}`}),p}async signUrls({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.signUrls().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.signUrls().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > FileStorage > signUrls \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.signUrls,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.SignUrlResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > FileStorage > signUrls \n ${g}`}),d}async startUpload({namespace:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.startUpload().validate({namespace:e,body:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.startUpload().validate({namespace:e,body:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > FileStorage > startUpload \n ${d}`});const p=await a.execute(this._conf,"post",o({url:this._urls.startUpload,params:{namespace:e}}),{},t,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.StartResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > FileStorage > startUpload \n ${m}`}),p}}u.prototype.upload=function({data:e,file_name:t,content_type:r,namespace:a,size:n,tags:o}={}){return new Promise((async(s,i)=>{try{const l=await this.startUpload({namespace:a,body:{file_name:t,content_type:r,size:n,tags:o}});l.upload&&l.upload.url?await c.put(l.upload.url,e,{withCredentials:!1,headers:{"Content-Type":r}}):i({message:"Failed to upload file"}),delete l.tags,s(await this.completeUpload({namespace:a,body:l}))}catch(e){i(e)}}))},e.exports=u},5108:(e,t,r)=>{const a=r(2705);class n{static CDN(){return a.object({absolute_url:a.string().allow("").required(),relative_url:a.string().allow("").required(),url:a.string().allow("").required()})}static CompleteResponse(){return a.object({_id:a.string().allow("").required(),cdn:n.CDN().required(),content_type:a.string().allow("").required(),created_on:a.string().allow("").required(),file_name:a.string().allow("").required(),file_path:a.string().allow("").required(),modified_on:a.string().allow("").required(),namespace:a.string().allow("").required(),operation:a.string().allow("").required(),size:a.number().required(),success:a.boolean().required(),tags:a.array().items(a.string().allow("")),upload:n.Upload().required()})}static FailedResponse(){return a.object({message:a.string().allow("").required()})}static SignUrlRequest(){return a.object({expiry:a.number().required(),urls:a.array().items(a.string().allow("")).required()})}static SignUrlResponse(){return a.object({urls:a.array().items(n.Urls()).required()})}static StartRequest(){return a.object({content_type:a.string().allow("").required(),file_name:a.string().allow("").required(),params:a.any(),size:a.number().required(),tags:a.array().items(a.string().allow(""))})}static StartResponse(){return a.object({cdn:n.CDN().required(),content_type:a.string().allow("").required(),file_name:a.string().allow("").required(),file_path:a.string().allow("").required(),method:a.string().allow(""),namespace:a.string().allow("").required(),operation:a.string().allow("").required(),size:a.number().required(),tags:a.array().items(a.string().allow("")),upload:n.Upload().required()})}static Upload(){return a.object({expiry:a.number().required(),url:a.string().allow("").required()})}static Urls(){return a.object({expiry:a.number().required(),signed_url:a.string().allow("").required(),url:a.string().allow("").required()})}}e.exports=n},2601:(e,t,r)=>{const a=r(2705),n=r(5108);e.exports=class{static completeUpload(){return a.object({namespace:a.string().allow("").required(),body:n.StartResponse().required()}).required()}static signUrls(){return a.object({body:n.SignUrlRequest().required()}).required()}static startUpload(){return a.object({namespace:a.string().allow("").required(),body:n.StartRequest().required()}).required()}}},562:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(2821)),i=r(4535),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={createHistory:"/service/application/lead/v1.0/ticket/{id}/history",createTicket:"/service/application/lead/v1.0/ticket/",getCustomForm:"/service/application/lead/v1.0/form/{slug}",getParticipantsInsideVideoRoom:"/service/application/lead/v1.0/video/room/{unique_name}/participants",getTicket:"/service/application/lead/v1.0/ticket/{id}",getTokenForVideoRoom:"/service/application/lead/v1.0/video/room/{unique_name}/token",submitCustomForm:"/service/application/lead/v1.0/form/{slug}/submit"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async createHistory({id:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.createHistory().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.createHistory().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Lead > createHistory \n ${d}`});const p=await a.execute(this._conf,"post",o({url:this._urls.createHistory,params:{id:e}}),{},t,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.TicketHistory().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Lead > createHistory \n ${m}`}),p}async createTicket({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.createTicket().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.createTicket().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Lead > createTicket \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.createTicket,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.Ticket().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Lead > createTicket \n ${g}`}),d}async getCustomForm({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getCustomForm().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getCustomForm().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Lead > getCustomForm \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getCustomForm,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.CustomForm().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Lead > getCustomForm \n ${g}`}),d}async getParticipantsInsideVideoRoom({uniqueName:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getParticipantsInsideVideoRoom().validate({uniqueName:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getParticipantsInsideVideoRoom().validate({uniqueName:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Lead > getParticipantsInsideVideoRoom \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getParticipantsInsideVideoRoom,params:{uniqueName:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.GetParticipantsInsideVideoRoomResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Lead > getParticipantsInsideVideoRoom \n ${g}`}),d}async getTicket({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getTicket().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getTicket().validate({id:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Lead > getTicket \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getTicket,params:{id:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.Ticket().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Lead > getTicket \n ${g}`}),d}async getTokenForVideoRoom({uniqueName:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getTokenForVideoRoom().validate({uniqueName:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getTokenForVideoRoom().validate({uniqueName:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Lead > getTokenForVideoRoom \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getTokenForVideoRoom,params:{uniqueName:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.GetTokenForVideoRoomResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Lead > getTokenForVideoRoom \n ${g}`}),d}async submitCustomForm({slug:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.submitCustomForm().validate({slug:e,body:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.submitCustomForm().validate({slug:e,body:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Lead > submitCustomForm \n ${d}`});const p=await a.execute(this._conf,"post",o({url:this._urls.submitCustomForm,params:{slug:e}}),{},t,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.SubmitCustomFormResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Lead > submitCustomForm \n ${m}`}),p}}},4535:(e,t,r)=>{const a=r(2705);class n{static AddTicketPayload(){return a.object({_custom_json:a.any(),category:a.string().allow("").required(),content:n.TicketContent().required(),created_by:a.any(),priority:n.PriorityEnum(),status:a.string().allow(""),subscribers:a.array().items(a.string().allow(""))})}static CreatedOn(){return a.object({user_agent:a.string().allow("").required()})}static CustomForm(){return a.object({_id:a.string().allow("").required(),application_id:a.string().allow("").required(),created_on:n.CreatedOn(),description:a.string().allow(""),header_image:a.string().allow(""),inputs:a.array().items(a.any()).required(),login_required:a.boolean().required(),poll_for_assignment:n.PollForAssignment(),priority:n.Priority().required(),should_notify:a.boolean().required(),slug:a.string().allow("").required(),submit_button:n.SubmitButton(),success_message:a.string().allow(""),title:a.string().allow("").required()})}static CustomFormSubmissionPayload(){return a.object({attachments:a.array().items(n.TicketAsset()),response:a.array().items(a.any()).required()})}static Debug(){return a.object({platform:a.string().allow(""),source:a.string().allow("")})}static Email(){return a.object({active:a.boolean(),email:a.string().allow(""),primary:a.boolean(),verified:a.boolean()})}static FeedbackForm(){return a.object({inputs:a.any(),timestamps:a.any(),title:a.string().allow("")})}static GetParticipantsInsideVideoRoomResponse(){return a.object({participants:a.array().items(n.Participant()).required()})}static GetTokenForVideoRoomResponse(){return a.object({access_token:a.string().allow("").required()})}static Participant(){return a.object({identity:a.string().allow(""),status:a.string().allow(""),user:n.UserSchema()})}static PhoneNumber(){return a.object({active:a.boolean(),country_code:a.number(),phone:a.string().allow(""),primary:a.boolean(),verified:a.boolean()})}static PollForAssignment(){return a.object({duration:a.number().required(),failure_message:a.string().allow("").required(),message:a.string().allow("").required(),success_message:a.string().allow("").required()})}static Priority(){return a.object({color:a.string().allow("").required(),display:a.string().allow("").required(),key:n.PriorityEnum().required()})}static Status(){return a.object({color:a.string().allow("").required(),display:a.string().allow("").required(),key:a.string().allow("").required()})}static SubmitButton(){return a.object({background_color:a.string().allow("").required(),title:a.string().allow("").required(),title_color:a.string().allow("").required()})}static SubmitCustomFormResponse(){return a.object({message:a.string().allow("").required(),ticket:n.Ticket()})}static Ticket(){return a.object({_custom_json:a.any(),_id:a.string().allow("").required(),assigned_to:a.any(),category:n.TicketCategory().required(),content:n.TicketContent(),context:n.TicketContext(),created_at:a.string().allow(""),created_by:a.any(),created_on:n.CreatedOn(),integration:a.any(),is_feedback_pending:a.boolean(),priority:n.Priority().required(),response_id:a.string().allow(""),source:n.TicketSourceEnum().required(),status:n.Status().required(),sub_category:a.string().allow(""),tags:a.array().items(a.string().allow("")),updated_at:a.string().allow("")})}static TicketAsset(){return a.object({display:a.string().allow(""),type:n.TicketAssetTypeEnum().required(),value:a.string().allow("").required()})}static TicketCategory(){return a.object({display:a.string().allow("").required(),feedback_form:n.FeedbackForm(),group_id:a.number(),key:a.string().allow("").required(),sub_categories:a.link("#TicketCategory")}).id("TicketCategory")}static TicketContent(){return a.object({attachments:a.array().items(n.TicketAsset()),description:a.string().allow(""),title:a.string().allow("").required()})}static TicketContext(){return a.object({application_id:a.string().allow(""),company_id:a.string().allow("").required()})}static TicketHistory(){return a.object({_id:a.string().allow("").required(),created_at:a.string().allow(""),created_by:a.any(),created_on:n.CreatedOn(),ticket_id:a.string().allow("").required(),type:a.string().allow("").required(),updated_at:a.string().allow(""),value:a.any().required()})}static TicketHistoryPayload(){return a.object({type:n.HistoryTypeEnum().required(),value:a.any().required()})}static UserSchema(){return a.object({_id:a.string().allow(""),account_type:a.string().allow(""),active:a.boolean(),application_id:a.string().allow(""),created_at:a.string().allow(""),dob:a.string().allow(""),emails:a.array().items(n.Email()),first_name:a.string().allow(""),gender:a.string().allow(""),last_name:a.string().allow(""),meta:a.any(),phone_numbers:a.array().items(n.PhoneNumber()),profile_pic_url:a.string().allow(""),updated_at:a.string().allow(""),user_id:a.string().allow(""),username:a.string().allow("")})}static HistoryTypeEnum(){return a.string().valid("rating","log","comment","thread")}static PriorityEnum(){return a.string().valid("low","medium","high","urgent")}static TicketAssetTypeEnum(){return a.string().valid("image","video","file","youtube","product","collection","brand","shipment","order")}static TicketSourceEnum(){return a.string().valid("platform_panel","sales_channel")}}e.exports=n},2821:(e,t,r)=>{const a=r(2705),n=r(4535);e.exports=class{static createHistory(){return a.object({id:a.string().allow("").required(),body:n.TicketHistoryPayload().required()}).required()}static createTicket(){return a.object({body:n.AddTicketPayload().required()}).required()}static getCustomForm(){return a.object({slug:a.string().allow("").required()}).required()}static getParticipantsInsideVideoRoom(){return a.object({uniqueName:a.string().allow("").required()}).required()}static getTicket(){return a.object({id:a.string().allow("").required()}).required()}static getTokenForVideoRoom(){return a.object({uniqueName:a.string().allow("").required()}).required()}static submitCustomForm(){return a.object({slug:a.string().allow("").required(),body:n.CustomFormSubmissionPayload().required()}).required()}}},4203:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(8745)),i=r(9541),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAllCountries:"/service/application/logistics/v1.0/country-list",getOptimalLocations:"/service/application/logistics/v1.0/reassign_stores",getPincodeCity:"/service/application/logistics/v1.0/pincode/{pincode}",getPincodeZones:"/service/application/logistics/v1.0/pincode/zones",getTatProduct:"/service/application/logistics/v1.0/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAllCountries({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getAllCountries().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getAllCountries().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getAllCountries \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getAllCountries,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.CountryListResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > Logistic > getAllCountries \n ${p}`}),u}async getOptimalLocations({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getOptimalLocations().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getOptimalLocations().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getOptimalLocations \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getOptimalLocations,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ReAssignStoreResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Logistic > getOptimalLocations \n ${g}`}),d}async getPincodeCity({pincode:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getPincodeCity().validate({pincode:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getPincodeCity().validate({pincode:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getPincodeCity \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getPincodeCity,params:{pincode:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.PincodeApiResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Logistic > getPincodeCity \n ${g}`}),d}async getPincodeZones({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getPincodeZones().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getPincodeZones().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getPincodeZones \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getPincodeZones,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.GetZoneFromPincodeViewResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Logistic > getPincodeZones \n ${g}`}),d}async getTatProduct({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getTatProduct().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getTatProduct().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getTatProduct \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getTatProduct,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.TATViewResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Logistic > getTatProduct \n ${g}`}),d}}},9541:(e,t,r)=>{const a=r(2705);class n{static CountryEntityResponse(){return a.object({display_name:a.string().allow(""),is_active:a.boolean(),logistics:n.LogisticsResponse(),meta:n.CountryMetaResponse(),name:a.string().allow(""),parent_id:a.string().allow(""),sub_type:a.string().allow(""),type:a.string().allow(""),uid:a.string().allow("")})}static CountryListResponse(){return a.object({results:a.array().items(n.CountryEntityResponse())})}static CountryMetaResponse(){return a.object({country_code:a.string().allow(""),isd_code:a.string().allow("")})}static DP(){return a.object({area_code:a.string().allow("").allow(null),assign_dp_from_sb:a.boolean(),external_account_id:a.string().allow("").allow(null),fm_priority:a.number().required(),internal_account_id:a.string().allow(""),lm_priority:a.number().required(),operations:a.array().items(a.string().allow("")).required(),payment_mode:a.string().allow("").required(),rvp_priority:a.number().required(),transport_mode:a.string().allow("")})}static GetZoneFromPincodeViewRequest(){return a.object({country:a.string().allow("").required(),pincode:a.string().allow("").required()})}static GetZoneFromPincodeViewResponse(){return a.object({serviceability_type:a.string().allow("").required(),zones:a.array().items(a.string().allow("")).required()})}static LogisticsResponse(){return a.object({dp:a.object().pattern(/\S/,n.DP())})}static PincodeApiResponse(){return a.object({data:a.array().items(n.PincodeDataResponse()),error:n.PincodeErrorSchemaResponse().required(),success:a.boolean().required()})}static PincodeDataResponse(){return a.object({display_name:a.string().allow(""),error:n.PincodeErrorSchemaResponse().required(),lat_long:n.PincodeLatLongData(),meta:n.PincodeMetaResponse(),meta_code:n.CountryMetaResponse(),name:a.string().allow(""),parents:a.array().items(n.PincodeParentsResponse()),sub_type:a.string().allow(""),uid:a.string().allow("")})}static PincodeErrorSchemaResponse(){return a.object({message:a.string().allow("").allow(null),type:a.string().allow("").allow(null),value:a.string().allow("").allow(null)})}static PincodeLatLongData(){return a.object({coordinates:a.array().items(a.string().allow("")),type:a.string().allow("")})}static PincodeMetaResponse(){return a.object({internal_zone_id:a.number(),zone:a.string().allow("")})}static PincodeParentsResponse(){return a.object({display_name:a.string().allow(""),name:a.string().allow(""),sub_type:a.string().allow(""),uid:a.string().allow("")})}static ReAssignStoreRequest(){return a.object({articles:a.array().items(a.any()).required(),configuration:a.any().required(),identifier:a.string().allow("").required(),ignored_locations:a.array().items(a.number()).required(),to_pincode:a.string().allow("").required()})}static ReAssignStoreResponse(){return a.object({assigned_stores:a.array().items(a.any()),error:a.any().required(),pystormbreaker_uuid:a.string().allow("").required(),success:a.boolean().required(),to_pincode:a.string().allow("").required()})}static TATArticlesRequest(){return a.object({category:n.TATCategoryRequest(),manufacturing_time:a.number(),manufacturing_time_unit:a.string().allow("")})}static TATArticlesResponse(){return a.object({_manufacturing_time_seconds:a.number(),category:n.TATCategoryRequest(),error:n.TATErrorSchemaResponse(),is_cod_available:a.boolean(),manufacturing_time:a.number(),manufacturing_time_unit:a.string().allow(""),promise:n.TATPromiseResponse()})}static TATCategoryRequest(){return a.object({id:a.number(),level:a.string().allow("")})}static TATErrorSchemaResponse(){return a.object({message:a.string().allow("").allow(null),type:a.string().allow("").allow(null),value:a.string().allow("").allow(null)})}static TATFormattedResponse(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static TATLocationDetailsRequest(){return a.object({articles:a.array().items(n.TATArticlesRequest()),from_pincode:a.string().allow(""),fulfillment_id:a.number()})}static TATLocationDetailsResponse(){return a.object({articles:a.array().items(n.TATArticlesResponse()),from_pincode:a.string().allow(""),fulfillment_id:a.number()})}static TATPromiseResponse(){return a.object({formatted:n.TATFormattedResponse(),timestamp:n.TATTimestampResponse()})}static TATTimestampResponse(){return a.object({max:a.number(),min:a.number()})}static TATViewRequest(){return a.object({action:a.string().allow(""),identifier:a.string().allow(""),journey:a.string().allow(""),location_details:a.array().items(n.TATLocationDetailsRequest()),source:a.string().allow(""),to_pincode:a.string().allow("")})}static TATViewResponse(){return a.object({action:a.string().allow(""),error:n.TATErrorSchemaResponse(),identifier:a.string().allow(""),is_cod_available:a.boolean(),journey:a.string().allow(""),location_details:a.array().items(n.TATLocationDetailsResponse()),payment_mode:a.string().allow(""),request_uuid:a.string().allow(""),source:a.string().allow(""),stormbreaker_uuid:a.string().allow(""),success:a.boolean(),to_city:a.string().allow(""),to_pincode:a.string().allow("")})}}e.exports=n},8745:(e,t,r)=>{const a=r(2705),n=r(9541);e.exports=class{static getAllCountries(){return a.object({})}static getOptimalLocations(){return a.object({body:n.ReAssignStoreRequest().required()}).required()}static getPincodeCity(){return a.object({pincode:a.string().allow("").required()}).required()}static getPincodeZones(){return a.object({body:n.GetZoneFromPincodeViewRequest().required()}).required()}static getTatProduct(){return a.object({body:n.TATViewRequest().required()}).required()}}},9171:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(8174)),i=r(2453),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getCustomerDetailsByShipmentId:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/customer-details",getInvoiceByShipmentId:"/service/application/order/v1.0/orders/shipments/{shipment_id}/invoice",getOrderById:"/service/application/order/v1.0/orders/{order_id}",getOrders:"/service/application/order/v1.0/orders",getPosOrderById:"/service/application/order/v1.0/orders/pos-order/{order_id}",getShipmentBagReasons:"/service/application/order/v1.0/orders/shipments/{shipment_id}/bags/{bag_id}/reasons",getShipmentById:"/service/application/order/v1.0/orders/shipments/{shipment_id}",getShipmentReasons:"/service/application/order/v1.0/orders/shipments/{shipment_id}/reasons",sendOtpToShipmentCustomer:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/otp/send/",trackShipment:"/service/application/order/v1.0/orders/shipments/{shipment_id}/track",updateShipmentStatus:"/service/application/order/v1.0/orders/shipments/{shipment_id}/status",verifyOtpShipmentCustomer:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/otp/verify/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getCustomerDetailsByShipmentId({orderId:e,shipmentId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getCustomerDetailsByShipmentId().validate({orderId:e,shipmentId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getCustomerDetailsByShipmentId().validate({orderId:e,shipmentId:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > getCustomerDetailsByShipmentId \n ${d}`});const p=await a.execute(this._conf,"get",o({url:this._urls.getCustomerDetailsByShipmentId,params:{orderId:e,shipmentId:t}}),{},void 0,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.CustomerDetailsResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > getCustomerDetailsByShipmentId \n ${m}`}),p}async getInvoiceByShipmentId({shipmentId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getInvoiceByShipmentId().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getInvoiceByShipmentId().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > getInvoiceByShipmentId \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getInvoiceByShipmentId,params:{shipmentId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ResponseGetInvoiceShipment().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > getInvoiceByShipmentId \n ${g}`}),d}async getOrderById({orderId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getOrderById().validate({orderId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getOrderById().validate({orderId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > getOrderById \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getOrderById,params:{orderId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.OrderById().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > getOrderById \n ${g}`}),d}async getOrders({status:e,pageNo:t,pageSize:r,fromDate:c,toDate:u,customMeta:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.getOrders().validate({status:e,pageNo:t,pageSize:r,fromDate:c,toDate:u,customMeta:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.getOrders().validate({status:e,pageNo:t,pageSize:r,fromDate:c,toDate:u,customMeta:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > getOrders \n ${w}`});const y={};y.status=e,y.page_no=t,y.page_size=r,y.from_date=c,y.to_date=u,y.custom_meta=d;const f=await a.execute(this._conf,"get",o({url:this._urls.getOrders,params:{}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.OrderList().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > getOrders \n ${h}`}),f}async getPosOrderById({orderId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getPosOrderById().validate({orderId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getPosOrderById().validate({orderId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > getPosOrderById \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getPosOrderById,params:{orderId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.OrderById().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > getPosOrderById \n ${g}`}),d}async getShipmentBagReasons({shipmentId:e,bagId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getShipmentBagReasons().validate({shipmentId:e,bagId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getShipmentBagReasons().validate({shipmentId:e,bagId:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > getShipmentBagReasons \n ${d}`});const p=await a.execute(this._conf,"get",o({url:this._urls.getShipmentBagReasons,params:{shipmentId:e,bagId:t}}),{},void 0,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.ShipmentBagReasons().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > getShipmentBagReasons \n ${m}`}),p}async getShipmentById({shipmentId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getShipmentById().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getShipmentById().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > getShipmentById \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getShipmentById,params:{shipmentId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ShipmentById().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > getShipmentById \n ${g}`}),d}async getShipmentReasons({shipmentId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getShipmentReasons().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getShipmentReasons().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > getShipmentReasons \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getShipmentReasons,params:{shipmentId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ShipmentReasons().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > getShipmentReasons \n ${g}`}),d}async sendOtpToShipmentCustomer({orderId:e,shipmentId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.sendOtpToShipmentCustomer().validate({orderId:e,shipmentId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.sendOtpToShipmentCustomer().validate({orderId:e,shipmentId:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > sendOtpToShipmentCustomer \n ${d}`});const p=await a.execute(this._conf,"post",o({url:this._urls.sendOtpToShipmentCustomer,params:{orderId:e,shipmentId:t}}),{},void 0,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.SendOtpToCustomerResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > sendOtpToShipmentCustomer \n ${m}`}),p}async trackShipment({shipmentId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.trackShipment().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.trackShipment().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > trackShipment \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.trackShipment,params:{shipmentId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ShipmentTrack().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > trackShipment \n ${g}`}),d}async updateShipmentStatus({shipmentId:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.updateShipmentStatus().validate({shipmentId:e,body:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.updateShipmentStatus().validate({shipmentId:e,body:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > updateShipmentStatus \n ${d}`});const p=await a.execute(this._conf,"put",o({url:this._urls.updateShipmentStatus,params:{shipmentId:e}}),{},t,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.ShipmentApplicationStatusResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > updateShipmentStatus \n ${m}`}),p}async verifyOtpShipmentCustomer({orderId:e,shipmentId:t,body:r,requestHeaders:c}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=s.verifyOtpShipmentCustomer().validate({orderId:e,shipmentId:t,body:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=s.verifyOtpShipmentCustomer().validate({orderId:e,shipmentId:t,body:r},{abortEarly:!1,allowUnknown:!1});p&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > verifyOtpShipmentCustomer \n ${p}`});const g=await a.execute(this._conf,"post",o({url:this._urls.verifyOtpShipmentCustomer,params:{orderId:e,shipmentId:t}}),{},r,{...c},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=i.VerifyOtpResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > verifyOtpShipmentCustomer \n ${w}`}),g}}},2453:(e,t,r)=>{const a=r(2705);class n{static ApefaceApiError(){return a.object({message:a.string().allow(""),success:a.boolean()})}static AppliedFreeArticles(){return a.object({article_id:a.string().allow(""),free_gift_item_details:a.any(),parent_item_identifier:a.string().allow(""),quantity:a.number()})}static AppliedPromos(){return a.object({amount:a.number(),applied_free_articles:a.array().items(n.AppliedFreeArticles()),article_quantity:a.number(),mrp_promotion:a.boolean(),promo_id:a.string().allow(""),promotion_name:a.string().allow(""),promotion_type:a.string().allow("")})}static BagReasonMeta(){return a.object({show_text_area:a.boolean()})}static BagReasons(){return a.object({display_name:a.string().allow(""),id:a.number(),meta:n.BagReasonMeta(),qc_type:a.array().items(a.string().allow("")),question_set:a.array().items(n.QuestionSet()),reasons:a.array().items(a.link("#BagReasons"))}).id("BagReasons")}static Bags(){return a.object({applied_promos:a.array().items(n.AppliedPromos()),can_cancel:a.boolean(),can_return:a.boolean(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),current_status:n.CurrentStatus(),delivery_date:a.string().allow("").allow(null),financial_breakup:a.array().items(n.FinancialBreakup()),id:a.number(),item:n.Item(),line_number:a.number(),meta:a.any(),parent_promo_bags:a.any(),prices:n.Prices(),quantity:a.number(),returnable_date:a.string().allow("").allow(null),seller_identifier:a.string().allow("")})}static BagsForReorder(){return a.object({article_assignment:n.BagsForReorderArticleAssignment(),item_id:a.number(),item_size:a.string().allow(""),quantity:a.number(),seller_id:a.number(),store_id:a.number()})}static BagsForReorderArticleAssignment(){return a.object({level:a.string().allow(""),strategy:a.string().allow("")})}static BreakupValues(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),display:a.string().allow(""),name:a.string().allow(""),value:a.number()})}static CurrentStatus(){return a.object({journey_type:a.string().allow("").allow(null),name:a.string().allow(""),status:a.string().allow(""),updated_at:a.string().allow("")})}static CustomerDetailsResponse(){return a.object({country:a.string().allow(""),name:a.string().allow(""),order_id:a.string().allow(""),phone:a.string().allow(""),shipment_id:a.string().allow("")})}static DataUpdates(){return a.object({entities:a.array().items(n.EntitiesDataUpdates()),products:a.array().items(n.ProductsDataUpdates())})}static DeliveryAddress(){return a.object({address:a.string().allow(""),address_category:a.string().allow(""),address_type:a.string().allow(""),address1:a.string().allow(""),address2:a.string().allow(""),area:a.string().allow(""),city:a.string().allow(""),contact_person:a.string().allow(""),country:a.string().allow(""),country_iso_code:a.string().allow(""),country_phone_code:a.string().allow(""),created_at:a.string().allow(""),email:a.string().allow(""),landmark:a.string().allow(""),latitude:a.number().allow(null),longitude:a.number().allow(null),name:a.string().allow(""),phone:a.string().allow(""),pincode:a.string().allow(""),state:a.string().allow(""),updated_at:a.string().allow(""),version:a.string().allow("")})}static EntitiesDataUpdates(){return a.object({data:a.any(),filters:a.array().items(a.any())})}static EntitiesReasons(){return a.object({data:n.EntityReasonData(),filters:a.array().items(a.any())})}static EntityReasonData(){return a.object({reason_id:a.number(),reason_text:a.string().allow("")})}static ErrorResponse(){return a.object({code:a.string().allow("").allow(null),exception:a.string().allow("").allow(null),message:a.string().allow("").allow(null),stack_trace:a.string().allow("").allow(null),status:a.number()})}static FinancialBreakup(){return a.object({added_to_fynd_cash:a.boolean(),amount_paid:a.number(),amount_paid_roundoff:a.number(),brand_calculated_amount:a.number(),cashback:a.number(),cashback_applied:a.number(),cod_charges:a.number(),coupon_effective_discount:a.number(),coupon_value:a.number(),delivery_charge:a.number(),discount:a.number(),fynd_credits:a.number(),gst_fee:a.number(),gst_tag:a.string().allow(""),gst_tax_percentage:a.number(),hsn_code:a.string().allow(""),identifiers:n.Identifiers(),item_name:a.string().allow(""),price_effective:a.number(),price_marked:a.number(),promotion_effective_discount:a.number(),refund_amount:a.number(),refund_credit:a.number(),size:a.string().allow(""),total_units:a.number(),transfer_price:a.number(),value_of_good:a.number()})}static FulfillingCompany(){return a.object({id:a.number(),name:a.string().allow("")})}static FulfillingStore(){return a.object({code:a.string().allow(""),company_id:a.number(),company_name:a.string().allow(""),id:a.number(),name:a.string().allow("")})}static Identifiers(){return a.object({ean:a.string().allow(""),sku_code:a.string().allow("")})}static Invoice(){return a.object({invoice_url:a.string().allow(""),label_url:a.string().allow(""),updated_date:a.string().allow("")})}static Item(){return a.object({brand:n.ItemBrand(),code:a.string().allow(""),id:a.number(),image:a.array().items(a.string().allow("")),l1_categories:a.array().items(a.string().allow("")),l2_categories:a.array().items(a.string().allow("")),l3_category_name:a.string().allow(""),name:a.string().allow(""),seller_identifier:a.string().allow(""),size:a.string().allow(""),slug_key:a.string().allow("")})}static ItemBrand(){return a.object({logo:a.string().allow(""),name:a.string().allow("")})}static NestedTrackingDetails(){return a.object({is_current:a.boolean(),is_passed:a.boolean(),status:a.string().allow(""),time:a.string().allow("")})}static OrderById(){return a.object({order:n.OrderSchema()})}static OrderFilters(){return a.object({statuses:a.array().items(n.OrderStatuses())})}static OrderList(){return a.object({filters:n.OrderFilters(),items:a.array().items(n.OrderSchema()),page:n.OrderPage()})}static OrderPage(){return a.object({current:a.number(),has_next:a.boolean(),item_total:a.number(),size:a.number(),type:a.string().allow("")})}static OrderSchema(){return a.object({bags_for_reorder:a.array().items(n.BagsForReorder()),breakup_values:a.array().items(n.BreakupValues()),order_created_time:a.string().allow(""),order_id:a.string().allow(""),shipments:a.array().items(n.Shipments()),total_shipments_in_order:a.number(),user_info:n.UserInfo()})}static OrderStatuses(){return a.object({display:a.string().allow(""),is_selected:a.boolean(),value:a.number()})}static Prices(){return a.object({added_to_fynd_cash:a.boolean(),amount_paid:a.number(),amount_paid_roundoff:a.number(),brand_calculated_amount:a.number(),cashback:a.number(),cashback_applied:a.number(),cod_charges:a.number(),coupon_effective_discount:a.number(),coupon_value:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),delivery_charge:a.number(),discount:a.number(),fynd_credits:a.number(),gst_tax_percentage:a.number(),price_effective:a.number(),price_marked:a.number(),promotion_effective_discount:a.number(),refund_amount:a.number(),refund_credit:a.number(),transfer_price:a.number(),value_of_good:a.number()})}static Products(){return a.object({identifier:a.string().allow(""),line_number:a.number(),quantity:a.number()})}static ProductsDataUpdates(){return a.object({data:a.any(),filters:a.array().items(n.ProductsDataUpdatesFilters())})}static ProductsDataUpdatesFilters(){return a.object({identifier:a.string().allow(""),line_number:a.number()})}static ProductsReasons(){return a.object({data:n.ProductsReasonsData(),filters:a.array().items(n.ProductsReasonsFilters())})}static ProductsReasonsData(){return a.object({reason_id:a.number(),reason_text:a.string().allow("")})}static ProductsReasonsFilters(){return a.object({identifier:a.string().allow(""),line_number:a.number(),quantity:a.number()})}static Promise(){return a.object({show_promise:a.boolean(),timestamp:n.TimeStampData()})}static QuestionSet(){return a.object({display_name:a.string().allow(""),id:a.number()})}static ReasonsData(){return a.object({entities:a.array().items(n.EntitiesReasons()),products:a.array().items(n.ProductsReasons())})}static ResponseGetInvoiceShipment(){return a.object({presigned_type:a.string().allow("").required(),presigned_url:a.string().allow("").required(),shipment_id:a.string().allow("").required(),success:a.boolean().required()})}static SendOtpToCustomerResponse(){return a.object({message:a.string().allow(""),request_id:a.string().allow(""),resend_timer:a.number(),success:a.boolean()})}static ShipmentApplicationStatusResponse(){return a.object({statuses:a.array().items(n.StatusesBodyResponse())})}static ShipmentBagReasons(){return a.object({reasons:a.array().items(n.BagReasons()),success:a.boolean()})}static ShipmentById(){return a.object({shipment:n.Shipments()})}static ShipmentPayment(){return a.object({display_name:a.string().allow(""),logo:a.string().allow(""),mode:a.string().allow(""),mop:a.string().allow(""),payment_mode:a.string().allow(""),status:a.string().allow("")})}static ShipmentReason(){return a.object({feedback_type:a.string().allow(""),flow:a.string().allow(""),priority:a.number(),reason_id:a.number(),reason_text:a.string().allow(""),show_text_area:a.boolean()})}static ShipmentReasons(){return a.object({reasons:a.array().items(n.ShipmentReason())})}static Shipments(){return a.object({awb_no:a.string().allow(""),bags:a.array().items(n.Bags()),beneficiary_details:a.boolean(),breakup_values:a.array().items(n.BreakupValues()),can_break:a.any(),can_cancel:a.boolean(),can_return:a.boolean(),comment:a.string().allow(""),custom_meta:a.array().items(a.any()),delivery_address:n.DeliveryAddress(),delivery_date:a.string().allow("").allow(null),dp_name:a.string().allow(""),fulfilling_company:n.FulfillingCompany(),fulfilling_store:n.FulfillingStore(),invoice:n.Invoice(),need_help_url:a.string().allow(""),order_id:a.string().allow(""),order_type:a.string().allow("").allow(null),payment:n.ShipmentPayment(),prices:n.Prices(),promise:n.Promise(),refund_details:a.any(),return_meta:a.any(),returnable_date:a.string().allow("").allow(null),shipment_created_at:a.string().allow(""),shipment_id:a.string().allow(""),shipment_status:n.ShipmentStatus(),show_download_invoice:a.boolean(),show_track_link:a.boolean(),size_info:a.any(),total_bags:a.number(),total_details:n.ShipmentTotalDetails(),track_url:a.string().allow(""),tracking_details:a.array().items(n.TrackingDetails()),traking_no:a.string().allow(""),user_info:n.ShipmentUserInfo()})}static ShipmentsRequest(){return a.object({data_updates:n.DataUpdates(),identifier:a.string().allow("").required(),products:a.array().items(n.Products()),reasons:n.ReasonsData()})}static ShipmentStatus(){return a.object({hex_code:a.string().allow(""),title:a.string().allow(""),value:a.string().allow("").allow(null)})}static ShipmentTotalDetails(){return a.object({pieces:a.number(),sizes:a.number(),total_price:a.number()})}static ShipmentTrack(){return a.object({results:a.array().items(n.Track())})}static ShipmentUserInfo(){return a.object({email:a.string().allow(""),first_name:a.string().allow(""),gender:a.string().allow(""),last_name:a.string().allow(""),mobile:a.string().allow(""),name:a.string().allow("")})}static StatuesRequest(){return a.object({exclude_bags_next_state:a.string().allow(""),shipments:a.array().items(n.ShipmentsRequest()),status:a.string().allow("")})}static StatusesBodyResponse(){return a.object({shipments:a.array().items(a.any())})}static TimeStampData(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static Track(){return a.object({account_name:a.string().allow(""),awb:a.string().allow(""),last_location_recieved_at:a.string().allow(""),reason:a.string().allow(""),shipment_type:a.string().allow(""),status:a.string().allow(""),updated_at:a.string().allow(""),updated_time:a.string().allow("")})}static TrackingDetails(){return a.object({is_current:a.boolean(),is_passed:a.boolean(),status:a.string().allow(""),time:a.string().allow(""),tracking_details:a.array().items(n.NestedTrackingDetails()),value:a.string().allow("").allow(null)})}static UpdateShipmentStatusRequest(){return a.object({force_transition:a.boolean(),lock_after_transition:a.boolean(),statuses:a.array().items(n.StatuesRequest()),task:a.boolean(),unlock_before_transition:a.boolean()})}static UserInfo(){return a.object({email:a.string().allow(""),first_name:a.string().allow(""),gender:a.string().allow(""),last_name:a.string().allow(""),mobile:a.string().allow(""),name:a.string().allow("")})}static VerifyOtp(){return a.object({otp_code:a.string().allow(""),request_id:a.string().allow("")})}static VerifyOtpResponse(){return a.object({success:a.boolean()})}}e.exports=n},8174:(e,t,r)=>{const a=r(2705),n=r(2453);e.exports=class{static getCustomerDetailsByShipmentId(){return a.object({orderId:a.string().allow("").required(),shipmentId:a.string().allow("").required()}).required()}static getInvoiceByShipmentId(){return a.object({shipmentId:a.string().allow("").required()}).required()}static getOrderById(){return a.object({orderId:a.string().allow("").required()}).required()}static getOrders(){return a.object({status:a.number(),pageNo:a.number(),pageSize:a.number(),fromDate:a.string().allow(""),toDate:a.string().allow(""),customMeta:a.string().allow("")})}static getPosOrderById(){return a.object({orderId:a.string().allow("").required()}).required()}static getShipmentBagReasons(){return a.object({shipmentId:a.string().allow("").required(),bagId:a.string().allow("").required()}).required()}static getShipmentById(){return a.object({shipmentId:a.string().allow("").required()}).required()}static getShipmentReasons(){return a.object({shipmentId:a.string().allow("").required()}).required()}static sendOtpToShipmentCustomer(){return a.object({orderId:a.string().allow("").required(),shipmentId:a.string().allow("").required()}).required()}static trackShipment(){return a.object({shipmentId:a.string().allow("").required()}).required()}static updateShipmentStatus(){return a.object({shipmentId:a.string().allow("").required(),body:n.UpdateShipmentStatusRequest().required()}).required()}static verifyOtpShipmentCustomer(){return a.object({orderId:a.string().allow("").required(),shipmentId:a.string().allow("").required(),body:n.VerifyOtp().required()}).required()}}},3242:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(174)),i=r(8487),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addBeneficiaryDetails:"/service/application/payment/v1.0/refund/account",addRefundBankAccountUsingOTP:"/service/application/payment/v1.0/refund/account/otp",attachCardToCustomer:"/service/application/payment/v1.0/card/attach",cancelPaymentLink:"/service/application/payment/v1.0/cancel-payment-link/",cardDetails:"/service/application/payment/v1.0/cards/info/{card_info}",checkAndUpdatePaymentStatus:"/service/application/payment/v1.0/payment/confirm/polling",checkAndUpdatePaymentStatusPaymentLink:"/service/application/payment/v1.0/payment/confirm/polling/link/",checkCredit:"/service/application/payment/v1.0/check-credits/",createOrderHandlerPaymentLink:"/service/application/payment/v1.0/create-order/link/",createPaymentLink:"/service/application/payment/v1.0/create-payment-link/",customerCreditSummary:"/service/application/payment/v1.0/payment/credit-summary/",customerOnboard:"/service/application/payment/v1.0/credit-onboard/",deleteUserCard:"/service/application/payment/v1.0/card/remove",enableOrDisableRefundTransferMode:"/service/application/payment/v1.0/refund/transfer-mode",getActiveCardAggregator:"/service/application/payment/v1.0/card/aggregator",getActiveRefundTransferModes:"/service/application/payment/v1.0/refund/transfer-mode",getActiveUserCards:"/service/application/payment/v1.0/cards",getAggregatorsConfig:"/service/application/payment/v1.0/config/aggregators/key",getEpaylaterBannerDetails:"/service/application/payment/v1.0/epaylater/banner",getOrderBeneficiariesDetail:"/service/application/payment/v1.0/refund/order/beneficiaries",getPaymentLink:"/service/application/payment/v1.0/create-payment-link/",getPaymentModeRoutes:"/service/application/payment/v1.0/payment/options",getPaymentModeRoutesPaymentLink:"/service/application/payment/v1.0/payment/options/link/",getPosPaymentModeRoutes:"/service/application/payment/v1.0/payment/options/pos",getRupifiBannerDetails:"/service/application/payment/v1.0/rupifi/banner",getUserBeneficiariesDetail:"/service/application/payment/v1.0/refund/user/beneficiary",initialisePayment:"/service/application/payment/v1.0/payment/request",initialisePaymentPaymentLink:"/service/application/payment/v1.0/payment/request/link/",outstandingOrderDetails:"/service/application/payment/v1.0/payment/outstanding-orders/",paidOrderDetails:"/service/application/payment/v1.0/payment/paid-orders/",pollingPaymentLink:"/service/application/payment/v1.0/polling-payment-link/",redirectToAggregator:"/service/application/payment/v1.0/payment/redirect-to-aggregator/",renderHTML:"/service/application/payment/v1.0/payment/html/render/",resendOrCancelPayment:"/service/application/payment/v1.0/payment/resend_or_cancel",resendPaymentLink:"/service/application/payment/v1.0/resend-payment-link/",updateDefaultBeneficiary:"/service/application/payment/v1.0/refund/beneficiary/default",validateVPA:"/service/application/payment/v1.0/validate-vpa",verifyAndChargePayment:"/service/application/payment/v1.0/payment/confirm/charge",verifyCustomerForPayment:"/service/application/payment/v1.0/payment/customer/validation",verifyIfscCode:"/service/application/payment/v1.0/ifsc-code/verify",verifyOtpAndAddBeneficiaryForBank:"/service/application/payment/v1.0/refund/verification/bank",verifyOtpAndAddBeneficiaryForWallet:"/service/application/payment/v1.0/refund/verification/wallet"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addBeneficiaryDetails({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.addBeneficiaryDetails().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.addBeneficiaryDetails().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > addBeneficiaryDetails \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.addBeneficiaryDetails,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.RefundAccountResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > addBeneficiaryDetails \n ${g}`}),d}async addRefundBankAccountUsingOTP({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.addRefundBankAccountUsingOTP().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.addRefundBankAccountUsingOTP().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > addRefundBankAccountUsingOTP \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.addRefundBankAccountUsingOTP,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.RefundAccountResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > addRefundBankAccountUsingOTP \n ${g}`}),d}async attachCardToCustomer({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.attachCardToCustomer().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.attachCardToCustomer().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > attachCardToCustomer \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.attachCardToCustomer,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.AttachCardsResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > attachCardToCustomer \n ${g}`}),d}async cancelPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.cancelPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.cancelPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > cancelPaymentLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.cancelPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.CancelPaymentLinkResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > cancelPaymentLink \n ${g}`}),d}async cardDetails({cardInfo:e,aggregator:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.cardDetails().validate({cardInfo:e,aggregator:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.cardDetails().validate({cardInfo:e,aggregator:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > cardDetails \n ${d}`});const p={};p.aggregator=t;const g=await a.execute(this._conf,"get",o({url:this._urls.cardDetails,params:{cardInfo:e}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CardDetailsResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > cardDetails \n ${w}`}),g}async checkAndUpdatePaymentStatus({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.checkAndUpdatePaymentStatus().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.checkAndUpdatePaymentStatus().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > checkAndUpdatePaymentStatus \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.checkAndUpdatePaymentStatus,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.PaymentStatusUpdateResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > checkAndUpdatePaymentStatus \n ${g}`}),d}async checkAndUpdatePaymentStatusPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.checkAndUpdatePaymentStatusPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.checkAndUpdatePaymentStatusPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > checkAndUpdatePaymentStatusPaymentLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.checkAndUpdatePaymentStatusPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.PaymentStatusUpdateResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > checkAndUpdatePaymentStatusPaymentLink \n ${g}`}),d}async checkCredit({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.checkCredit().validate({aggregator:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.checkCredit().validate({aggregator:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > checkCredit \n ${u}`});const d={};d.aggregator=e;const p=await a.execute(this._conf,"get",o({url:this._urls.checkCredit,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.CheckCreditResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > checkCredit \n ${m}`}),p}async createOrderHandlerPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.createOrderHandlerPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.createOrderHandlerPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > createOrderHandlerPaymentLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.createOrderHandlerPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.CreateOrderUserResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > createOrderHandlerPaymentLink \n ${g}`}),d}async createPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.createPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.createPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > createPaymentLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.createPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.CreatePaymentLinkResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > createPaymentLink \n ${g}`}),d}async customerCreditSummary({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.customerCreditSummary().validate({aggregator:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.customerCreditSummary().validate({aggregator:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > customerCreditSummary \n ${u}`});const d={};d.aggregator=e;const p=await a.execute(this._conf,"get",o({url:this._urls.customerCreditSummary,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.CustomerCreditSummaryResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > customerCreditSummary \n ${m}`}),p}async customerOnboard({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.customerOnboard().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.customerOnboard().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > customerOnboard \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.customerOnboard,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.CustomerOnboardingResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > customerOnboard \n ${g}`}),d}async deleteUserCard({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.deleteUserCard().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.deleteUserCard().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > deleteUserCard \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.deleteUserCard,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.DeleteCardsResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > deleteUserCard \n ${g}`}),d}async enableOrDisableRefundTransferMode({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.enableOrDisableRefundTransferMode().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.enableOrDisableRefundTransferMode().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > enableOrDisableRefundTransferMode \n ${u}`});const d=await a.execute(this._conf,"put",o({url:this._urls.enableOrDisableRefundTransferMode,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.UpdateRefundTransferModeResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > enableOrDisableRefundTransferMode \n ${g}`}),d}async getActiveCardAggregator({refresh:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getActiveCardAggregator().validate({refresh:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getActiveCardAggregator().validate({refresh:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getActiveCardAggregator \n ${u}`});const d={};d.refresh=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getActiveCardAggregator,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.ActiveCardPaymentGatewayResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getActiveCardAggregator \n ${m}`}),p}async getActiveRefundTransferModes({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getActiveRefundTransferModes().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getActiveRefundTransferModes().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getActiveRefundTransferModes \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getActiveRefundTransferModes,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.TransferModeResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getActiveRefundTransferModes \n ${p}`}),u}async getActiveUserCards({forceRefresh:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getActiveUserCards().validate({forceRefresh:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getActiveUserCards().validate({forceRefresh:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getActiveUserCards \n ${u}`});const d={};d.force_refresh=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getActiveUserCards,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.ListCardsResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getActiveUserCards \n ${m}`}),p}async getAggregatorsConfig({xApiToken:e,refresh:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getAggregatorsConfig().validate({xApiToken:e,refresh:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getAggregatorsConfig().validate({xApiToken:e,refresh:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getAggregatorsConfig \n ${d}`});const p={};p.refresh=t;const g={};g["x-api-token"]=e;const m=await a.execute(this._conf,"get",o({url:this._urls.getAggregatorsConfig,params:{}}),p,void 0,{...g,...r},{responseHeaders:c});let w=m;c&&(w=m[0]);const{error:y}=i.AggregatorsConfigDetailResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getAggregatorsConfig \n ${y}`}),m}async getEpaylaterBannerDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getEpaylaterBannerDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getEpaylaterBannerDetails().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getEpaylaterBannerDetails \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getEpaylaterBannerDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.EpaylaterBannerResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getEpaylaterBannerDetails \n ${p}`}),u}async getOrderBeneficiariesDetail({orderId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getOrderBeneficiariesDetail().validate({orderId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getOrderBeneficiariesDetail().validate({orderId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getOrderBeneficiariesDetail \n ${u}`});const d={};d.order_id=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getOrderBeneficiariesDetail,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.OrderBeneficiaryResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getOrderBeneficiariesDetail \n ${m}`}),p}async getPaymentLink({paymentLinkId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getPaymentLink \n ${u}`});const d={};d.payment_link_id=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getPaymentLink,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.GetPaymentLinkResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getPaymentLink \n ${m}`}),p}async getPaymentModeRoutes({amount:e,cartId:t,pincode:r,checkoutMode:c,refresh:u,cardReference:d,userDetails:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=s.getPaymentModeRoutes().validate({amount:e,cartId:t,pincode:r,checkoutMode:c,refresh:u,cardReference:d,userDetails:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:y}=s.getPaymentModeRoutes().validate({amount:e,cartId:t,pincode:r,checkoutMode:c,refresh:u,cardReference:d,userDetails:p},{abortEarly:!1,allowUnknown:!1});y&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getPaymentModeRoutes \n ${y}`});const f={};f.amount=e,f.cart_id=t,f.pincode=r,f.checkout_mode=c,f.refresh=u,f.card_reference=d,f.user_details=p;const b=await a.execute(this._conf,"get",o({url:this._urls.getPaymentModeRoutes,params:{}}),f,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=i.PaymentModeRouteResponse().validate(h,{abortEarly:!1,allowUnknown:!1});return _&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getPaymentModeRoutes \n ${_}`}),b}async getPaymentModeRoutesPaymentLink({paymentLinkId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getPaymentModeRoutesPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getPaymentModeRoutesPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getPaymentModeRoutesPaymentLink \n ${u}`});const d={};d.payment_link_id=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getPaymentModeRoutesPaymentLink,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.PaymentModeRouteResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getPaymentModeRoutesPaymentLink \n ${m}`}),p}async getPosPaymentModeRoutes({amount:e,cartId:t,pincode:r,checkoutMode:c,orderType:u,refresh:d,cardReference:p,userDetails:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:y}=s.getPosPaymentModeRoutes().validate({amount:e,cartId:t,pincode:r,checkoutMode:c,orderType:u,refresh:d,cardReference:p,userDetails:g},{abortEarly:!1,allowUnknown:!0});if(y)return Promise.reject(new n(y));const{error:f}=s.getPosPaymentModeRoutes().validate({amount:e,cartId:t,pincode:r,checkoutMode:c,orderType:u,refresh:d,cardReference:p,userDetails:g},{abortEarly:!1,allowUnknown:!1});f&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getPosPaymentModeRoutes \n ${f}`});const b={};b.amount=e,b.cart_id=t,b.pincode=r,b.checkout_mode=c,b.refresh=d,b.card_reference=p,b.order_type=u,b.user_details=g;const h=await a.execute(this._conf,"get",o({url:this._urls.getPosPaymentModeRoutes,params:{}}),b,void 0,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=i.PaymentModeRouteResponse().validate(_,{abortEarly:!1,allowUnknown:!1});return v&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getPosPaymentModeRoutes \n ${v}`}),h}async getRupifiBannerDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getRupifiBannerDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getRupifiBannerDetails().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getRupifiBannerDetails \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getRupifiBannerDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.RupifiBannerResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getRupifiBannerDetails \n ${p}`}),u}async getUserBeneficiariesDetail({orderId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getUserBeneficiariesDetail().validate({orderId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getUserBeneficiariesDetail().validate({orderId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getUserBeneficiariesDetail \n ${u}`});const d={};d.order_id=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getUserBeneficiariesDetail,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.OrderBeneficiaryResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getUserBeneficiariesDetail \n ${m}`}),p}async initialisePayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.initialisePayment().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.initialisePayment().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > initialisePayment \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.initialisePayment,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.PaymentInitializationResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > initialisePayment \n ${g}`}),d}async initialisePaymentPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.initialisePaymentPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.initialisePaymentPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > initialisePaymentPaymentLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.initialisePaymentPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.PaymentInitializationResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > initialisePaymentPaymentLink \n ${g}`}),d}async outstandingOrderDetails({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.outstandingOrderDetails().validate({aggregator:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.outstandingOrderDetails().validate({aggregator:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > outstandingOrderDetails \n ${u}`});const d={};d.aggregator=e;const p=await a.execute(this._conf,"get",o({url:this._urls.outstandingOrderDetails,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.OutstandingOrderDetailsResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > outstandingOrderDetails \n ${m}`}),p}async paidOrderDetails({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.paidOrderDetails().validate({aggregator:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.paidOrderDetails().validate({aggregator:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > paidOrderDetails \n ${u}`});const d={};d.aggregator=e;const p=await a.execute(this._conf,"get",o({url:this._urls.paidOrderDetails,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.PaidOrderDetailsResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > paidOrderDetails \n ${m}`}),p}async pollingPaymentLink({paymentLinkId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.pollingPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.pollingPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > pollingPaymentLink \n ${u}`});const d={};d.payment_link_id=e;const p=await a.execute(this._conf,"get",o({url:this._urls.pollingPaymentLink,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.PollingPaymentLinkResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > pollingPaymentLink \n ${m}`}),p}async redirectToAggregator({source:e,aggregator:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.redirectToAggregator().validate({source:e,aggregator:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.redirectToAggregator().validate({source:e,aggregator:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > redirectToAggregator \n ${d}`});const p={};p.source=e,p.aggregator=t;const g=await a.execute(this._conf,"get",o({url:this._urls.redirectToAggregator,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.RedirectToAggregatorResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > redirectToAggregator \n ${w}`}),g}async renderHTML({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.renderHTML().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.renderHTML().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > renderHTML \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.renderHTML,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.renderHTMLResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > renderHTML \n ${g}`}),d}async resendOrCancelPayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.resendOrCancelPayment().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.resendOrCancelPayment().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > resendOrCancelPayment \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.resendOrCancelPayment,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ResendOrCancelPaymentResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > resendOrCancelPayment \n ${g}`}),d}async resendPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.resendPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.resendPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > resendPaymentLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.resendPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ResendPaymentLinkResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > resendPaymentLink \n ${g}`}),d}async updateDefaultBeneficiary({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.updateDefaultBeneficiary().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.updateDefaultBeneficiary().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > updateDefaultBeneficiary \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.updateDefaultBeneficiary,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.SetDefaultBeneficiaryResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > updateDefaultBeneficiary \n ${g}`}),d}async validateVPA({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.validateVPA().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.validateVPA().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > validateVPA \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.validateVPA,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ValidateVPAResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > validateVPA \n ${g}`}),d}async verifyAndChargePayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.verifyAndChargePayment().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.verifyAndChargePayment().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyAndChargePayment \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.verifyAndChargePayment,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ChargeCustomerResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > verifyAndChargePayment \n ${g}`}),d}async verifyCustomerForPayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.verifyCustomerForPayment().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.verifyCustomerForPayment().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyCustomerForPayment \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.verifyCustomerForPayment,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ValidateCustomerResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > verifyCustomerForPayment \n ${g}`}),d}async verifyIfscCode({ifscCode:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.verifyIfscCode().validate({ifscCode:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.verifyIfscCode().validate({ifscCode:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyIfscCode \n ${u}`});const d={};d.ifsc_code=e;const p=await a.execute(this._conf,"get",o({url:this._urls.verifyIfscCode,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.IfscCodeResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > verifyIfscCode \n ${m}`}),p}async verifyOtpAndAddBeneficiaryForBank({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.verifyOtpAndAddBeneficiaryForBank().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.verifyOtpAndAddBeneficiaryForBank().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyOtpAndAddBeneficiaryForBank \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.verifyOtpAndAddBeneficiaryForBank,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.AddBeneficiaryViaOtpVerificationResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > verifyOtpAndAddBeneficiaryForBank \n ${g}`}),d}async verifyOtpAndAddBeneficiaryForWallet({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.verifyOtpAndAddBeneficiaryForWallet().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.verifyOtpAndAddBeneficiaryForWallet().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyOtpAndAddBeneficiaryForWallet \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.verifyOtpAndAddBeneficiaryForWallet,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.WalletOtpResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > verifyOtpAndAddBeneficiaryForWallet \n ${g}`}),d}}},8487:(e,t,r)=>{const a=r(2705);class n{static ActiveCardPaymentGatewayResponse(){return a.object({cards:n.CardPaymentGateway().required(),message:a.string().allow("").required(),success:a.boolean().required()})}static AddBeneficiaryDetailsOTPRequest(){return a.object({details:n.BankDetailsForOTP().required(),order_id:a.string().allow("").required()})}static AddBeneficiaryDetailsRequest(){return a.object({delights:a.boolean().required(),details:n.BeneficiaryModeDetails().required(),order_id:a.string().allow("").required(),otp:a.string().allow(""),request_id:a.string().allow(""),shipment_id:a.string().allow("").required(),transfer_mode:a.string().allow("").required()})}static AddBeneficiaryViaOtpVerificationRequest(){return a.object({hash_key:a.string().allow("").required(),otp:a.string().allow("").required(),request_id:a.string().allow("").required()})}static AddBeneficiaryViaOtpVerificationResponse(){return a.object({message:a.string().allow("").required(),success:a.boolean()})}static AggregatorConfigDetail(){return a.object({api:a.string().allow("").allow(null),config_type:a.string().allow("").required(),key:a.string().allow("").required(),merchant_id:a.string().allow("").allow(null),merchant_key:a.string().allow("").allow(null),pin:a.string().allow("").allow(null),sdk:a.boolean().allow(null),secret:a.string().allow("").required(),user_id:a.string().allow("").allow(null),verify_api:a.string().allow("").allow(null)})}static AggregatorRoute(){return a.object({api_link:a.string().allow("").allow(null),data:a.any().allow(null),payment_flow:a.string().allow("").allow(null),payment_flow_data:a.string().allow("").allow(null)})}static AggregatorsConfigDetailResponse(){return a.object({ccavenue:n.AggregatorConfigDetail(),env:a.string().allow("").required(),juspay:n.AggregatorConfigDetail(),mswipe:n.AggregatorConfigDetail(),payumoney:n.AggregatorConfigDetail(),razorpay:n.AggregatorConfigDetail(),rupifi:n.AggregatorConfigDetail(),simpl:n.AggregatorConfigDetail(),stripe:n.AggregatorConfigDetail(),success:a.boolean().required()})}static AttachCardRequest(){return a.object({card_id:a.string().allow("").allow(null).required(),name_on_card:a.string().allow(""),nickname:a.string().allow(""),refresh:a.boolean().allow(null)})}static AttachCardsResponse(){return a.object({data:a.any().required(),message:a.string().allow(""),success:a.boolean().required()})}static BalanceDetails(){return a.object({currency:a.string().allow("").allow(null),formatted_value:a.string().allow("").allow(null),value:a.number().allow(null)})}static BankDetailsForOTP(){return a.object({account_holder:a.string().allow("").required(),account_no:a.string().allow("").required(),bank_name:a.string().allow("").required(),branch_name:a.string().allow("").required(),ifsc_code:a.string().allow("").required()})}static BeneficiaryModeDetails(){return a.object({account_holder:a.string().allow("").required(),account_no:a.string().allow("").required(),address:a.string().allow(""),bank_name:a.string().allow("").required(),branch_name:a.string().allow("").required(),comment:a.string().allow(""),email:a.string().allow("").required(),ifsc_code:a.string().allow("").required(),mobile:a.string().allow("").required(),vpa:a.string().allow("").allow(null),wallet:a.string().allow("").allow(null)})}static BusinessDetails(){return a.object({address:n.KYCAddress(),business_ownership_type:a.string().allow("").allow(null),business_type:a.string().allow("").allow(null),entity_type:a.string().allow("").allow(null),fda:a.string().allow("").allow(null),fssai:a.string().allow("").allow(null),gstin:a.string().allow("").allow(null),name:a.string().allow("").allow(null),pan:a.string().allow("").allow(null),shop_and_establishment:a.any(),vintage:a.string().allow("").allow(null)})}static CancelOrResendPaymentLinkRequest(){return a.object({payment_link_id:a.string().allow("").required()})}static CancelPaymentLinkResponse(){return a.object({message:a.string().allow("").required(),status_code:a.number().required(),success:a.boolean().required()})}static Card(){return a.object({aggregator_name:a.string().allow("").required(),card_brand:a.string().allow("").allow(null),card_brand_image:a.string().allow("").allow(null),card_fingerprint:a.string().allow("").allow(null),card_id:a.string().allow("").allow(null),card_isin:a.string().allow("").allow(null),card_issuer:a.string().allow("").allow(null),card_name:a.string().allow("").allow(null),card_number:a.string().allow("").allow(null),card_reference:a.string().allow("").allow(null),card_token:a.string().allow("").allow(null),card_type:a.string().allow("").allow(null),compliant_with_tokenisation_guidelines:a.boolean().allow(null),exp_month:a.number().allow(null),exp_year:a.number().allow(null),expired:a.boolean().allow(null),nickname:a.string().allow("").allow(null)})}static CardDetails(){return a.object({bank:a.string().allow("").required(),bank_code:a.string().allow("").allow(null).required(),card_brand:a.string().allow("").required(),card_exp_month:a.string().allow(""),card_exp_year:a.string().allow(""),card_object:a.string().allow("").required(),card_sub_type:a.string().allow("").allow(null).required(),card_token:a.string().allow(""),country:a.string().allow("").required(),extended_card_type:a.string().allow("").required(),id:a.string().allow("").required(),is_domestic_card:a.boolean().required(),name_on_card:a.string().allow(""),status:a.boolean().required(),type:a.string().allow("").required(),user:a.string().allow("")})}static CardDetailsResponse(){return a.object({data:n.CardDetails().required(),success:a.boolean().required()})}static CardPaymentGateway(){return a.object({aggregator:a.string().allow("").required(),api:a.string().allow("").allow(null),customer_id:a.string().allow("").allow(null)})}static ChargeCustomerRequest(){return a.object({aggregator:a.string().allow("").required(),amount:a.number().allow(null).required(),order_id:a.string().allow("").required(),transaction_token:a.string().allow("").allow(null),verified:a.boolean().allow(null)})}static ChargeCustomerResponse(){return a.object({aggregator:a.string().allow("").required(),cart_id:a.string().allow("").allow(null),delivery_address_id:a.string().allow("").allow(null),message:a.string().allow("").required(),order_id:a.string().allow("").required(),status:a.string().allow("").required(),success:a.boolean().required()})}static CheckCreditResponse(){return a.object({data:n.CreditDetail().required(),success:a.boolean().required()})}static CreateOrderUserData(){return a.object({aggregator:a.string().allow("").allow(null),amount:a.number().allow(null),callback_url:a.string().allow("").allow(null),contact:a.string().allow("").allow(null),currency:a.string().allow("").allow(null),customer_id:a.string().allow("").allow(null),email:a.string().allow("").allow(null),merchant_order_id:a.string().allow("").allow(null),method:a.string().allow("").allow(null),order_id:a.string().allow("").allow(null)})}static CreateOrderUserPaymentMethods(){return a.object({meta:n.PaymentMethodsMeta().required(),mode:a.string().allow("").required(),name:a.string().allow("").required()})}static CreateOrderUserRequest(){return a.object({currency:a.string().allow("").required(),failure_callback_url:a.string().allow("").required(),meta:a.any().allow(null),payment_link_id:a.string().allow("").required(),payment_methods:n.CreateOrderUserPaymentMethods().required(),success_callback_url:a.string().allow("").required()})}static CreateOrderUserResponse(){return a.object({callback_url:a.string().allow("").allow(null),data:n.CreateOrderUserData(),message:a.string().allow("").required(),order_id:a.string().allow("").allow(null),payment_confirm_url:a.string().allow("").allow(null),status_code:a.number().required(),success:a.boolean().required()})}static CreatePaymentLinkMeta(){return a.object({amount:a.string().allow("").required(),assign_card_id:a.string().allow("").allow(null),cart_id:a.string().allow("").required(),checkout_mode:a.string().allow("").required(),pincode:a.string().allow("").required()})}static CreatePaymentLinkRequest(){return a.object({amount:a.number().required(),description:a.string().allow("").allow(null),email:a.string().allow("").required(),external_order_id:a.string().allow("").required(),meta:n.CreatePaymentLinkMeta().required(),mobile_number:a.string().allow("").required()})}static CreatePaymentLinkResponse(){return a.object({message:a.string().allow("").required(),payment_link_id:a.string().allow("").allow(null),payment_link_url:a.string().allow("").allow(null),polling_timeout:a.number().allow(null),status_code:a.number().required(),success:a.boolean().required()})}static CreditDetail(){return a.object({is_registered:a.boolean().required(),signup_url:a.string().allow("").required(),status:a.boolean().required()})}static CreditSummary(){return a.object({amount_available:n.BalanceDetails(),balance:n.BalanceDetails(),buyer_status:a.string().allow("").allow(null),credit_line_id:a.string().allow("").allow(null),merchant_customer_ref_id:a.string().allow("").allow(null),status:a.string().allow("").allow(null),status_message:a.string().allow("").allow(null)})}static CustomerCreditSummaryResponse(){return a.object({data:n.CreditSummary(),success:a.boolean().required()})}static CustomerOnboardingRequest(){return a.object({aggregator:a.string().allow("").required(),business_info:n.BusinessDetails(),device:n.DeviceDetails(),marketplace_info:n.MarketplaceInfo(),mcc:a.string().allow("").allow(null),personal_info:n.UserPersonalInfoInDetails().required(),source:a.string().allow("").required()})}static CustomerOnboardingResponse(){return a.object({data:n.OnboardSummary().required(),success:a.boolean().required()})}static DeleteCardsResponse(){return a.object({message:a.string().allow("").allow(null),success:a.boolean().required()})}static DeletehCardRequest(){return a.object({card_id:a.string().allow("").allow(null).required()})}static DeviceDetails(){return a.object({device_make:a.string().allow("").allow(null),device_model:a.string().allow("").allow(null),device_type:a.string().allow("").allow(null),identification_number:a.string().allow("").allow(null),identifier_type:a.string().allow("").allow(null),os:a.string().allow("").allow(null),os_version:a.string().allow("").allow(null)})}static EpaylaterBannerData(){return a.object({display:a.boolean().required(),message:a.string().allow(""),status:a.string().allow("")})}static EpaylaterBannerResponse(){return a.object({data:n.EpaylaterBannerData().required(),success:a.boolean().required()})}static ErrorCodeAndDescription(){return a.object({code:a.string().allow("").required(),description:a.string().allow("").required()})}static ErrorCodeDescription(){return a.object({code:a.string().allow("").required(),description:a.string().allow("").required(),success:a.boolean().required()})}static ErrorDescription(){return a.object({amount:a.number().allow(null),cancelled:a.boolean().allow(null),expired:a.boolean().allow(null),invalid_id:a.boolean().allow(null),merchant_name:a.string().allow("").allow(null),merchant_order_id:a.string().allow("").allow(null),msg:a.string().allow("").allow(null),payment_transaction_id:a.string().allow("").allow(null)})}static ErrorResponse(){return a.object({error:a.any().allow(null),message:a.string().allow("").required(),status_code:a.number().required(),success:a.boolean().required()})}static GetPaymentLinkResponse(){return a.object({amount:a.number().allow(null),external_order_id:a.string().allow("").allow(null),merchant_name:a.string().allow("").allow(null),message:a.string().allow("").required(),payment_link_current_status:a.string().allow("").allow(null),payment_link_url:a.string().allow("").allow(null),polling_timeout:a.number().allow(null),status_code:a.number().required(),success:a.boolean().required()})}static HttpErrorCodeAndResponse(){return a.object({error:n.ErrorCodeAndDescription(),success:a.boolean().required()})}static IfscCodeResponse(){return a.object({bank_name:a.string().allow("").required(),branch_name:a.string().allow("").required(),success:a.boolean()})}static IntentApp(){return a.object({code:a.string().allow("").allow(null),display_name:a.string().allow("").allow(null),logos:a.any().allow(null),package_name:a.string().allow("").allow(null)})}static IntentAppErrorList(){return a.object({code:a.string().allow("").allow(null),package_name:a.string().allow("").allow(null)})}static KYCAddress(){return a.object({addressline1:a.string().allow("").required(),addressline2:a.string().allow("").allow(null),city:a.string().allow("").required(),land_mark:a.string().allow("").allow(null),ownership_type:a.string().allow("").allow(null),pincode:a.string().allow("").required(),state:a.string().allow("").required()})}static LinkStatus(){return a.object({message:a.string().allow("").required(),status:a.boolean().required()})}static ListCardsResponse(){return a.object({data:a.array().items(n.Card()),message:a.string().allow("").required(),success:a.boolean().required()})}static MarketplaceInfo(){return a.object({date_of_joining:a.string().allow("").allow(null),membership_id:a.string().allow("").required(),name:a.string().allow("").required()})}static NotFoundResourceError(){return a.object({code:a.string().allow("").required(),description:a.string().allow("").required(),success:a.boolean().required()})}static OnboardSummary(){return a.object({redirect_url:a.string().allow("").required(),session:a.any().required(),status:a.boolean().required()})}static OrderBeneficiaryDetails(){return a.object({account_holder:a.string().allow("").required(),account_no:a.string().allow("").required(),address:a.string().allow("").required(),bank_name:a.string().allow("").required(),beneficiary_id:a.string().allow("").required(),branch_name:a.string().allow(""),comment:a.string().allow(""),created_on:a.string().allow("").required(),delights_user_name:a.string().allow("").allow(null),display_name:a.string().allow("").required(),email:a.string().allow("").required(),id:a.number().required(),ifsc_code:a.string().allow("").required(),is_active:a.boolean().required(),mobile:a.string().allow(""),modified_on:a.string().allow("").required(),subtitle:a.string().allow("").required(),title:a.string().allow("").required(),transfer_mode:a.string().allow("").required()})}static OrderBeneficiaryResponse(){return a.object({beneficiaries:a.array().items(n.OrderBeneficiaryDetails()),show_beneficiary_details:a.boolean()})}static OutstandingOrderDetailsResponse(){return a.object({data:a.array().items(a.any()),message:a.string().allow("").allow(null),status_code:a.number().required(),success:a.boolean().required()})}static PaidOrderDetailsResponse(){return a.object({data:a.array().items(a.any()),message:a.string().allow("").allow(null),status_code:a.number().required(),success:a.boolean().required()})}static PaymentFlow(){return a.object({ajiodhan:a.any().allow(null),bqr_razorpay:a.any().allow(null),ccavenue:a.any().allow(null),epaylater:a.any().allow(null),fynd:a.any().allow(null),jiopay:a.any().allow(null),juspay:a.any().allow(null),mswipe:a.any().allow(null),payubiz:a.any().allow(null),razorpay:a.any().allow(null),rupifi:a.any().allow(null),simpl:a.any().allow(null),stripe:a.any().allow(null),upi_razorpay:a.any().allow(null)})}static PaymentInitializationRequest(){return a.object({aggregator:a.string().allow("").required(),amount:a.number().allow(null).required(),contact:a.string().allow("").required(),currency:a.string().allow("").required(),customer_id:a.string().allow("").required(),device_id:a.string().allow("").allow(null),email:a.string().allow("").required(),merchant_order_id:a.string().allow("").required(),method:a.string().allow("").required(),order_id:a.string().allow("").required(),razorpay_payment_id:a.string().allow("").allow(null),timeout:a.number().allow(null),vpa:a.string().allow("").allow(null)})}static PaymentInitializationResponse(){return a.object({aggregator:a.string().allow("").required(),aggregator_order_id:a.string().allow(""),amount:a.number().allow(null),bqr_image:a.string().allow("").allow(null),currency:a.string().allow("").allow(null),customer_id:a.string().allow("").allow(null),device_id:a.string().allow("").allow(null),merchant_order_id:a.string().allow("").required(),method:a.string().allow("").required(),polling_url:a.string().allow("").required(),razorpay_payment_id:a.string().allow("").allow(null),status:a.string().allow(""),success:a.boolean().required(),timeout:a.number().allow(null),upi_poll_url:a.string().allow("").allow(null),virtual_id:a.string().allow("").allow(null),vpa:a.string().allow("").allow(null)})}static PaymentMethodsMeta(){return a.object({merchant_code:a.string().allow("").required(),payment_gateway:a.string().allow("").required(),payment_identifier:a.string().allow("").required()})}static PaymentModeList(){return a.object({aggregator_name:a.string().allow("").required(),card_brand:a.string().allow("").allow(null),card_brand_image:a.string().allow("").allow(null),card_fingerprint:a.string().allow("").allow(null),card_id:a.string().allow("").allow(null),card_isin:a.string().allow("").allow(null),card_issuer:a.string().allow("").allow(null),card_name:a.string().allow("").allow(null),card_number:a.string().allow("").allow(null),card_reference:a.string().allow("").allow(null),card_token:a.string().allow("").allow(null),card_type:a.string().allow("").allow(null),cod_limit:a.number().allow(null),cod_limit_per_order:a.number().allow(null),code:a.string().allow("").allow(null),compliant_with_tokenisation_guidelines:a.boolean().allow(null),display_name:a.string().allow("").allow(null),display_priority:a.number().allow(null),exp_month:a.number().allow(null),exp_year:a.number().allow(null),expired:a.boolean().allow(null),fynd_vpa:a.string().allow("").allow(null),intent_app:a.array().items(n.IntentApp()),intent_app_error_dict_list:a.array().items(n.IntentAppErrorList()),intent_app_error_list:a.array().items(a.string().allow("")),intent_flow:a.boolean().allow(null),logo_url:a.any().allow(null),merchant_code:a.string().allow("").allow(null),name:a.string().allow("").allow(null),nickname:a.string().allow("").allow(null),remaining_limit:a.number().allow(null),retry_count:a.number().allow(null),timeout:a.number().allow(null)})}static PaymentModeLogo(){return a.object({large:a.string().allow("").required(),small:a.string().allow("").required()})}static PaymentModeRouteResponse(){return a.object({payment_options:n.PaymentOptionAndFlow().required(),success:a.boolean().required()})}static PaymentOptionAndFlow(){return a.object({payment_flows:n.PaymentFlow().required(),payment_option:a.array().items(n.RootPaymentMode()).required()})}static PaymentStatusUpdateRequest(){return a.object({aggregator:a.string().allow("").required(),amount:a.number().allow(null).required(),contact:a.string().allow("").required(),currency:a.string().allow("").required(),customer_id:a.string().allow("").required(),device_id:a.string().allow("").allow(null),email:a.string().allow("").required(),merchant_order_id:a.string().allow("").required(),merchant_transaction_id:a.string().allow("").required(),method:a.string().allow("").required(),order_id:a.string().allow("").required(),status:a.string().allow("").required(),vpa:a.string().allow("")})}static PaymentStatusUpdateResponse(){return a.object({aggregator_name:a.string().allow("").required(),redirect_url:a.string().allow("").allow(null),retry:a.boolean().required(),status:a.string().allow("").required(),success:a.boolean().allow(null)})}static PollingPaymentLinkResponse(){return a.object({aggregator_name:a.string().allow("").allow(null),amount:a.number().allow(null),http_status:a.number().allow(null),message:a.string().allow("").allow(null),order_id:a.string().allow("").allow(null),payment_link_id:a.string().allow("").allow(null),redirect_url:a.string().allow("").allow(null),status:a.string().allow("").allow(null),status_code:a.number().allow(null),success:a.boolean().allow(null)})}static RedirectToAggregatorResponse(){return a.object({data:n.RedirectURL().required(),success:a.boolean().required()})}static RedirectURL(){return a.object({signup_url:a.string().allow("").required(),status:a.boolean().required()})}static RefundAccountResponse(){return a.object({data:a.any(),is_verified_flag:a.boolean(),message:a.string().allow("").required(),success:a.boolean().required()})}static renderHTMLRequest(){return a.object({base64_html:a.string().allow("").required(),returntype:a.string().allow("").allow(null)})}static renderHTMLResponse(){return a.object({html:a.string().allow("").required()})}static ResendOrCancelPaymentRequest(){return a.object({device_id:a.string().allow("").allow(null),order_id:a.string().allow("").required(),request_type:a.string().allow("").required()})}static ResendOrCancelPaymentResponse(){return a.object({data:n.LinkStatus().required(),success:a.boolean().required()})}static ResendPaymentLinkResponse(){return a.object({message:a.string().allow("").required(),polling_timeout:a.number().allow(null),status_code:a.number().required(),success:a.boolean().required()})}static RootPaymentMode(){return a.object({add_card_enabled:a.boolean().allow(null),aggregator_name:a.string().allow("").allow(null),anonymous_enable:a.boolean().allow(null),display_name:a.string().allow("").required(),display_priority:a.number().required(),is_pay_by_card_pl:a.boolean().allow(null),list:a.array().items(n.PaymentModeList()),name:a.string().allow("").required(),save_card:a.boolean().allow(null)})}static RupifiBannerData(){return a.object({kyc_url:a.string().allow(""),status:a.string().allow("")})}static RupifiBannerResponse(){return a.object({data:n.RupifiBannerData().required(),success:a.boolean().required()})}static SetDefaultBeneficiaryRequest(){return a.object({beneficiary_id:a.string().allow("").required(),order_id:a.string().allow("").required()})}static SetDefaultBeneficiaryResponse(){return a.object({is_beneficiary_set:a.boolean().required(),success:a.boolean()})}static TransferItemsDetails(){return a.object({display_name:a.string().allow(""),id:a.number().required(),logo_large:a.string().allow("").required(),logo_small:a.string().allow("").required(),name:a.string().allow("").required()})}static TransferModeDetails(){return a.object({display_name:a.string().allow("").required(),items:a.array().items(n.TransferItemsDetails())})}static TransferModeResponse(){return a.object({data:a.array().items(n.TransferModeDetails()).required()})}static UpdateRefundTransferModeRequest(){return a.object({enable:a.boolean().required(),transfer_mode:a.string().allow("").required()})}static UpdateRefundTransferModeResponse(){return a.object({success:a.boolean()})}static UserPersonalInfoInDetails(){return a.object({address_as_per_id:n.KYCAddress().required(),dob:a.string().allow("").allow(null).required(),driving_license:a.string().allow("").allow(null),email:a.string().allow("").allow(null),email_verified:a.boolean().required(),fathers_name:a.string().allow("").allow(null),first_name:a.string().allow("").required(),gender:a.string().allow("").allow(null),last_name:a.string().allow("").allow(null),middle_name:a.string().allow("").allow(null),mobile_verified:a.boolean().required(),mothers_name:a.string().allow("").allow(null),pan:a.string().allow("").allow(null),passport:a.string().allow("").allow(null),phone:a.string().allow("").required(),voter_id:a.string().allow("").allow(null)})}static ValidateCustomerRequest(){return a.object({aggregator:a.string().allow("").required(),billing_address:a.any(),delivery_address:a.any(),merchant_params:a.any(),order_items:a.array().items(a.any()),payload:a.string().allow("").allow(null),phone_number:a.string().allow("").required(),transaction_amount_in_paise:a.number().required()})}static ValidateCustomerResponse(){return a.object({data:a.any().required(),message:a.string().allow("").required(),success:a.boolean().required()})}static ValidateUPI(){return a.object({customer_name:a.string().allow("").required(),is_valid:a.boolean().required(),status:a.string().allow("").required(),upi_vpa:a.string().allow("").required()})}static ValidateVPARequest(){return a.object({upi_vpa:a.string().allow("").required()})}static ValidateVPAResponse(){return a.object({data:n.ValidateUPI().required(),success:a.boolean().required()})}static WalletOtpRequest(){return a.object({country_code:a.string().allow("").required(),mobile:a.string().allow("").required()})}static WalletOtpResponse(){return a.object({is_verified_flag:a.string().allow("").required(),request_id:a.string().allow("").required(),success:a.boolean()})}static WrongOtpError(){return a.object({description:a.string().allow("").required(),is_verified_flag:a.boolean().required(),success:a.string().allow("").required()})}}e.exports=n},174:(e,t,r)=>{const a=r(2705),n=r(8487);e.exports=class{static addBeneficiaryDetails(){return a.object({body:n.AddBeneficiaryDetailsRequest().required()}).required()}static addRefundBankAccountUsingOTP(){return a.object({body:n.AddBeneficiaryDetailsOTPRequest().required()}).required()}static attachCardToCustomer(){return a.object({body:n.AttachCardRequest().required()}).required()}static cancelPaymentLink(){return a.object({body:n.CancelOrResendPaymentLinkRequest().required()}).required()}static cardDetails(){return a.object({cardInfo:a.string().allow("").required(),aggregator:a.string().allow("")}).required()}static checkAndUpdatePaymentStatus(){return a.object({body:n.PaymentStatusUpdateRequest().required()}).required()}static checkAndUpdatePaymentStatusPaymentLink(){return a.object({body:n.PaymentStatusUpdateRequest().required()}).required()}static checkCredit(){return a.object({aggregator:a.string().allow("")})}static createOrderHandlerPaymentLink(){return a.object({body:n.CreateOrderUserRequest().required()}).required()}static createPaymentLink(){return a.object({body:n.CreatePaymentLinkRequest().required()}).required()}static customerCreditSummary(){return a.object({aggregator:a.string().allow("")})}static customerOnboard(){return a.object({body:n.CustomerOnboardingRequest().required()}).required()}static deleteUserCard(){return a.object({body:n.DeletehCardRequest().required()}).required()}static enableOrDisableRefundTransferMode(){return a.object({body:n.UpdateRefundTransferModeRequest().required()}).required()}static getActiveCardAggregator(){return a.object({refresh:a.boolean()})}static getActiveRefundTransferModes(){return a.object({})}static getActiveUserCards(){return a.object({forceRefresh:a.boolean()})}static getAggregatorsConfig(){return a.object({xApiToken:a.string().allow(""),refresh:a.boolean()})}static getEpaylaterBannerDetails(){return a.object({})}static getOrderBeneficiariesDetail(){return a.object({orderId:a.string().allow("").required()}).required()}static getPaymentLink(){return a.object({paymentLinkId:a.string().allow("")})}static getPaymentModeRoutes(){return a.object({amount:a.number().required(),cartId:a.string().allow("").required(),pincode:a.string().allow("").required(),checkoutMode:a.string().allow("").required(),refresh:a.boolean(),cardReference:a.string().allow(""),userDetails:a.string().allow("")}).required()}static getPaymentModeRoutesPaymentLink(){return a.object({paymentLinkId:a.string().allow("").required()}).required()}static getPosPaymentModeRoutes(){return a.object({amount:a.number().required(),cartId:a.string().allow("").required(),pincode:a.string().allow("").required(),checkoutMode:a.string().allow("").required(),refresh:a.boolean(),cardReference:a.string().allow(""),orderType:a.string().allow("").required(),userDetails:a.string().allow("")}).required()}static getRupifiBannerDetails(){return a.object({})}static getUserBeneficiariesDetail(){return a.object({orderId:a.string().allow("").required()}).required()}static initialisePayment(){return a.object({body:n.PaymentInitializationRequest().required()}).required()}static initialisePaymentPaymentLink(){return a.object({body:n.PaymentInitializationRequest().required()}).required()}static outstandingOrderDetails(){return a.object({aggregator:a.string().allow("")})}static paidOrderDetails(){return a.object({aggregator:a.string().allow("")})}static pollingPaymentLink(){return a.object({paymentLinkId:a.string().allow("")})}static redirectToAggregator(){return a.object({source:a.string().allow(""),aggregator:a.string().allow("")})}static renderHTML(){return a.object({body:n.renderHTMLRequest().required()}).required()}static resendOrCancelPayment(){return a.object({body:n.ResendOrCancelPaymentRequest().required()}).required()}static resendPaymentLink(){return a.object({body:n.CancelOrResendPaymentLinkRequest().required()}).required()}static updateDefaultBeneficiary(){return a.object({body:n.SetDefaultBeneficiaryRequest().required()}).required()}static validateVPA(){return a.object({body:n.ValidateVPARequest().required()}).required()}static verifyAndChargePayment(){return a.object({body:n.ChargeCustomerRequest().required()}).required()}static verifyCustomerForPayment(){return a.object({body:n.ValidateCustomerRequest().required()}).required()}static verifyIfscCode(){return a.object({ifscCode:a.string().allow("")})}static verifyOtpAndAddBeneficiaryForBank(){return a.object({body:n.AddBeneficiaryViaOtpVerificationRequest().required()}).required()}static verifyOtpAndAddBeneficiaryForWallet(){return a.object({body:n.WalletOtpRequest().required()}).required()}}},4823:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(2857)),i=r(6962),{Logger:l}=r(7378),c=r(2705);e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addAddress:"/service/application/pos/cart/v1.0/address",addItems:"/service/application/pos/cart/v1.0/detail",applyCoupon:"/service/application/pos/cart/v1.0/coupon",applyRewardPoints:"/service/application/pos/cart/v1.0/redeem/points/",checkoutCart:"/service/application/pos/cart/v1.0/checkout",getAddressById:"/service/application/pos/cart/v1.0/address/{id}",getAddresses:"/service/application/pos/cart/v1.0/address",getAvailableDeliveryModes:"/service/application/pos/cart/v1.0/available-delivery-mode",getBulkDiscountOffers:"/service/application/pos/cart/v1.0/bulk-price",getCart:"/service/application/pos/cart/v1.0/detail",getCartLastModified:"/service/application/pos/cart/v1.0/detail",getCartShareLink:"/service/application/pos/cart/v1.0/share-cart",getCartSharedItems:"/service/application/pos/cart/v1.0/share-cart/{token}",getCoupons:"/service/application/pos/cart/v1.0/coupon",getItemCount:"/service/application/pos/cart/v1.0/basic",getShipments:"/service/application/pos/cart/v1.0/shipment",getStoreAddressByUid:"/service/application/pos/cart/v1.0/store-address",removeAddress:"/service/application/pos/cart/v1.0/address/{id}",removeCoupon:"/service/application/pos/cart/v1.0/coupon",selectAddress:"/service/application/pos/cart/v1.0/select-address",selectPaymentMode:"/service/application/pos/cart/v1.0/payment",updateAddress:"/service/application/pos/cart/v1.0/address/{id}",updateCart:"/service/application/pos/cart/v1.0/detail",updateCartMeta:"/service/application/pos/cart/v1.0/meta",updateCartWithSharedItems:"/service/application/pos/cart/v1.0/share-cart/{token}/{action}",updateShipments:"/service/application/pos/cart/v1.0/shipment",validateCouponForPayment:"/service/application/pos/cart/v1.0/payment/validate/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addAddress({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.addAddress().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.addAddress().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > addAddress \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.addAddress,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.SaveAddressResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > addAddress \n ${g}`}),d}async addItems({body:e,i:t,b:r,areaCode:c,buyNow:u,id:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.addItems().validate({body:e,i:t,b:r,areaCode:c,buyNow:u,id:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.addItems().validate({body:e,i:t,b:r,areaCode:c,buyNow:u,id:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > addItems \n ${w}`});const y={};y.i=t,y.b=r,y.area_code=c,y.buy_now=u,y.id=d;const f=await a.execute(this._conf,"post",o({url:this._urls.addItems,params:{}}),y,e,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.AddCartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > addItems \n ${h}`}),f}async applyCoupon({body:e,i:t,b:r,p:c,id:u,buyNow:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.applyCoupon().validate({body:e,i:t,b:r,p:c,id:u,buyNow:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.applyCoupon().validate({body:e,i:t,b:r,p:c,id:u,buyNow:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > applyCoupon \n ${w}`});const y={};y.i=t,y.b=r,y.p=c,y.id=u,y.buy_now=d;const f=await a.execute(this._conf,"post",o({url:this._urls.applyCoupon,params:{}}),y,e,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.CartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > applyCoupon \n ${h}`}),f}async applyRewardPoints({body:e,id:t,i:r,b:c,buyNow:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=s.applyRewardPoints().validate({body:e,id:t,i:r,b:c,buyNow:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=s.applyRewardPoints().validate({body:e,id:t,i:r,b:c,buyNow:u},{abortEarly:!1,allowUnknown:!1});m&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > applyRewardPoints \n ${m}`});const w={};w.id=t,w.i=r,w.b=c,w.buy_now=u;const y=await a.execute(this._conf,"post",o({url:this._urls.applyRewardPoints,params:{}}),w,e,{...d},{responseHeaders:p});let f=y;p&&(f=y[0]);const{error:b}=i.CartDetailResponse().validate(f,{abortEarly:!1,allowUnknown:!1});return b&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > applyRewardPoints \n ${b}`}),y}async checkoutCart({body:e,id:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.checkoutCart().validate({body:e,id:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.checkoutCart().validate({body:e,id:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > checkoutCart \n ${d}`});const p={};p.id=t;const g=await a.execute(this._conf,"post",o({url:this._urls.checkoutCart,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CartCheckoutResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > checkoutCart \n ${w}`}),g}async getAddressById({id:e,cartId:t,buyNow:r,mobileNo:c,checkoutMode:u,tags:d,isDefault:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=s.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:c,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:y}=s.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:c,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!1});y&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getAddressById \n ${y}`});const f={};f.cart_id=t,f.buy_now=r,f.mobile_no=c,f.checkout_mode=u,f.tags=d,f.is_default=p;const b=await a.execute(this._conf,"get",o({url:this._urls.getAddressById,params:{id:e}}),f,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=i.Address().validate(h,{abortEarly:!1,allowUnknown:!1});return _&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getAddressById \n ${_}`}),b}async getAddresses({cartId:e,buyNow:t,mobileNo:r,checkoutMode:c,tags:u,isDefault:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:c,tags:u,isDefault:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:c,tags:u,isDefault:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getAddresses \n ${w}`});const y={};y.cart_id=e,y.buy_now=t,y.mobile_no=r,y.checkout_mode=c,y.tags=u,y.is_default=d;const f=await a.execute(this._conf,"get",o({url:this._urls.getAddresses,params:{}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.GetAddressesResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getAddresses \n ${h}`}),f}async getAvailableDeliveryModes({areaCode:e,id:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getAvailableDeliveryModes().validate({areaCode:e,id:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getAvailableDeliveryModes().validate({areaCode:e,id:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getAvailableDeliveryModes \n ${d}`});const p={};p.area_code=e,p.id=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getAvailableDeliveryModes,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CartDeliveryModesResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getAvailableDeliveryModes \n ${w}`}),g}async getBulkDiscountOffers({itemId:e,articleId:t,uid:r,slug:c,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=s.getBulkDiscountOffers().validate({itemId:e,articleId:t,uid:r,slug:c},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=s.getBulkDiscountOffers().validate({itemId:e,articleId:t,uid:r,slug:c},{abortEarly:!1,allowUnknown:!1});g&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getBulkDiscountOffers \n ${g}`});const m={};m.item_id=e,m.article_id=t,m.uid=r,m.slug=c;const w=await a.execute(this._conf,"get",o({url:this._urls.getBulkDiscountOffers,params:{}}),m,void 0,{...u},{responseHeaders:d});let y=w;d&&(y=w[0]);const{error:f}=i.BulkPriceResponse().validate(y,{abortEarly:!1,allowUnknown:!1});return f&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getBulkDiscountOffers \n ${f}`}),w}async getCart({id:e,i:t,b:r,assignCardId:c,areaCode:u,buyNow:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.getCart().validate({id:e,i:t,b:r,assignCardId:c,areaCode:u,buyNow:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.getCart().validate({id:e,i:t,b:r,assignCardId:c,areaCode:u,buyNow:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCart \n ${w}`});const y={};y.id=e,y.i=t,y.b=r,y.assign_card_id=c,y.area_code=u,y.buy_now=d;const f=await a.execute(this._conf,"get",o({url:this._urls.getCart,params:{}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.CartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getCart \n ${h}`}),f}async getCartLastModified({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=s.getCartLastModified().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:u}=s.getCartLastModified().validate({id:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCartLastModified \n ${u}`});const d={};d.id=e;const p=await a.execute(this._conf,"head",o({url:this._urls.getCartLastModified,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.string().allow("").validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getCartLastModified \n ${m}`}),p}async getCartShareLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getCartShareLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getCartShareLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCartShareLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getCartShareLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.GetShareCartLinkResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getCartShareLink \n ${g}`}),d}async getCartSharedItems({token:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getCartSharedItems().validate({token:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getCartSharedItems().validate({token:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCartSharedItems \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getCartSharedItems,params:{token:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.SharedCartResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getCartSharedItems \n ${g}`}),d}async getCoupons({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getCoupons().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getCoupons().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCoupons \n ${d}`});const p={};p.id=e,p.buy_now=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getCoupons,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.GetCouponResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getCoupons \n ${w}`}),g}async getItemCount({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getItemCount().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getItemCount().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getItemCount \n ${d}`});const p={};p.id=e,p.buy_now=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getItemCount,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CartItemCountResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getItemCount \n ${w}`}),g}async getShipments({pickAtStoreUid:e,orderingStoreId:t,p:r,id:c,addressId:u,areaCode:d,orderType:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=s.getShipments().validate({pickAtStoreUid:e,orderingStoreId:t,p:r,id:c,addressId:u,areaCode:d,orderType:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:y}=s.getShipments().validate({pickAtStoreUid:e,orderingStoreId:t,p:r,id:c,addressId:u,areaCode:d,orderType:p},{abortEarly:!1,allowUnknown:!1});y&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getShipments \n ${y}`});const f={};f.pick_at_store_uid=e,f.ordering_store_id=t,f.p=r,f.id=c,f.address_id=u,f.area_code=d,f.order_type=p;const b=await a.execute(this._conf,"get",o({url:this._urls.getShipments,params:{}}),f,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=i.CartShipmentsResponse().validate(h,{abortEarly:!1,allowUnknown:!1});return _&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getShipments \n ${_}`}),b}async getStoreAddressByUid({storeUid:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getStoreAddressByUid().validate({storeUid:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getStoreAddressByUid().validate({storeUid:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getStoreAddressByUid \n ${u}`});const d={};d.store_uid=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getStoreAddressByUid,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.StoreDetailsResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getStoreAddressByUid \n ${m}`}),p}async removeAddress({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.removeAddress().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.removeAddress().validate({id:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > removeAddress \n ${u}`});const d=await a.execute(this._conf,"delete",o({url:this._urls.removeAddress,params:{id:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.DeleteAddressResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > removeAddress \n ${g}`}),d}async removeCoupon({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.removeCoupon().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.removeCoupon().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > removeCoupon \n ${d}`});const p={};p.id=e,p.buy_now=t;const g=await a.execute(this._conf,"delete",o({url:this._urls.removeCoupon,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CartDetailResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > removeCoupon \n ${w}`}),g}async selectAddress({body:e,cartId:t,buyNow:r,i:c,b:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=s.selectAddress().validate({body:e,cartId:t,buyNow:r,i:c,b:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=s.selectAddress().validate({body:e,cartId:t,buyNow:r,i:c,b:u},{abortEarly:!1,allowUnknown:!1});m&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > selectAddress \n ${m}`});const w={};w.cart_id=t,w.buy_now=r,w.i=c,w.b=u;const y=await a.execute(this._conf,"post",o({url:this._urls.selectAddress,params:{}}),w,e,{...d},{responseHeaders:p});let f=y;p&&(f=y[0]);const{error:b}=i.CartDetailResponse().validate(f,{abortEarly:!1,allowUnknown:!1});return b&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > selectAddress \n ${b}`}),y}async selectPaymentMode({body:e,id:t,buyNow:r,requestHeaders:c}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=s.selectPaymentMode().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=s.selectPaymentMode().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!1});p&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > selectPaymentMode \n ${p}`});const g={};g.id=t,g.buy_now=r;const m=await a.execute(this._conf,"put",o({url:this._urls.selectPaymentMode,params:{}}),g,e,{...c},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=i.CartDetailResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > selectPaymentMode \n ${y}`}),m}async updateAddress({id:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.updateAddress().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.updateAddress().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateAddress \n ${d}`});const p=await a.execute(this._conf,"put",o({url:this._urls.updateAddress,params:{id:e}}),{},t,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.UpdateAddressResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > updateAddress \n ${m}`}),p}async updateCart({body:e,id:t,i:r,b:c,areaCode:u,buyNow:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.updateCart().validate({body:e,id:t,i:r,b:c,areaCode:u,buyNow:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.updateCart().validate({body:e,id:t,i:r,b:c,areaCode:u,buyNow:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateCart \n ${w}`});const y={};y.id=t,y.i=r,y.b=c,y.area_code=u,y.buy_now=d;const f=await a.execute(this._conf,"put",o({url:this._urls.updateCart,params:{}}),y,e,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.UpdateCartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > updateCart \n ${h}`}),f}async updateCartMeta({body:e,id:t,buyNow:r,requestHeaders:c}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=s.updateCartMeta().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=s.updateCartMeta().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!1});p&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateCartMeta \n ${p}`});const g={};g.id=t,g.buy_now=r;const m=await a.execute(this._conf,"put",o({url:this._urls.updateCartMeta,params:{}}),g,e,{...c},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=i.CartMetaResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > updateCartMeta \n ${y}`}),m}async updateCartWithSharedItems({token:e,action:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.updateCartWithSharedItems().validate({token:e,action:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.updateCartWithSharedItems().validate({token:e,action:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateCartWithSharedItems \n ${d}`});const p=await a.execute(this._conf,"post",o({url:this._urls.updateCartWithSharedItems,params:{token:e,action:t}}),{},void 0,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.SharedCartResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > updateCartWithSharedItems \n ${m}`}),p}async updateShipments({body:e,i:t,p:r,id:c,addressId:u,areaCode:d,orderType:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=s.updateShipments().validate({body:e,i:t,p:r,id:c,addressId:u,areaCode:d,orderType:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:y}=s.updateShipments().validate({body:e,i:t,p:r,id:c,addressId:u,areaCode:d,orderType:p},{abortEarly:!1,allowUnknown:!1});y&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateShipments \n ${y}`});const f={};f.i=t,f.p=r,f.id=c,f.address_id=u,f.area_code=d,f.order_type=p;const b=await a.execute(this._conf,"put",o({url:this._urls.updateShipments,params:{}}),f,e,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=i.CartShipmentsResponse().validate(h,{abortEarly:!1,allowUnknown:!1});return _&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > updateShipments \n ${_}`}),b}async validateCouponForPayment({id:e,buyNow:t,addressId:r,paymentMode:c,paymentIdentifier:u,aggregatorName:d,merchantCode:p,iin:g,network:m,type:w,cardId:y,requestHeaders:f}={requestHeaders:{}},{responseHeaders:b}={responseHeaders:!1}){const{error:h}=s.validateCouponForPayment().validate({id:e,buyNow:t,addressId:r,paymentMode:c,paymentIdentifier:u,aggregatorName:d,merchantCode:p,iin:g,network:m,type:w,cardId:y},{abortEarly:!1,allowUnknown:!0});if(h)return Promise.reject(new n(h));const{error:_}=s.validateCouponForPayment().validate({id:e,buyNow:t,addressId:r,paymentMode:c,paymentIdentifier:u,aggregatorName:d,merchantCode:p,iin:g,network:m,type:w,cardId:y},{abortEarly:!1,allowUnknown:!1});_&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > validateCouponForPayment \n ${_}`});const v={};v.id=e,v.buy_now=t,v.address_id=r,v.payment_mode=c,v.payment_identifier=u,v.aggregator_name=d,v.merchant_code=p,v.iin=g,v.network=m,v.type=w,v.card_id=y;const k=await a.execute(this._conf,"get",o({url:this._urls.validateCouponForPayment,params:{}}),v,void 0,{...f},{responseHeaders:b});let R=k;b&&(R=k[0]);const{error:P}=i.PaymentCouponValidate().validate(R,{abortEarly:!1,allowUnknown:!1});return P&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > validateCouponForPayment \n ${P}`}),k}}},6962:(e,t,r)=>{const a=r(2705);class n{static ActionQuery(){return a.object({product_slug:a.array().items(a.string().allow(""))})}static AddCartDetailResponse(){return a.object({cart:n.CartDetailResponse(),message:a.string().allow(""),partial:a.boolean(),success:a.boolean()})}static AddCartRequest(){return a.object({items:a.array().items(n.AddProductCart()),new_cart:a.boolean()})}static AddProductCart(){return a.object({_custom_json:a.any(),article_assignment:a.any(),article_id:a.string().allow(""),display:a.string().allow(""),extra_meta:a.any(),item_id:a.number(),item_size:a.string().allow(""),meta:a.any(),parent_item_identifiers:a.array().items(a.object().pattern(/\S/,a.string().allow(""))),pos:a.boolean(),product_group_tags:a.array().items(a.string().allow("").allow(null)),quantity:a.number(),seller_id:a.number(),store_id:a.number()})}static Address(){return a.object({_custom_json:a.any(),address:a.string().allow(""),address_type:a.string().allow(""),area:a.string().allow(""),area_code:a.string().allow(""),area_code_slug:a.string().allow(""),checkout_mode:a.string().allow(""),city:a.string().allow(""),country:a.string().allow(""),country_code:a.string().allow(""),country_iso_code:a.string().allow(""),country_phone_code:a.string().allow(""),created_by_user_id:a.string().allow(""),email:a.string().allow(""),geo_location:n.GeoLocation(),google_map_point:a.any(),id:a.string().allow(""),is_active:a.boolean(),is_default_address:a.boolean(),landmark:a.string().allow(""),meta:a.any(),name:a.string().allow(""),phone:a.string().allow(""),state:a.string().allow(""),tags:a.array().items(a.string().allow("")),user_id:a.string().allow("")})}static AppliedFreeArticles(){return a.object({article_id:a.string().allow(""),free_gift_item_details:n.FreeGiftItem(),parent_item_identifier:a.string().allow(""),quantity:a.number()})}static AppliedPromotion(){return a.object({amount:a.number(),applied_free_articles:a.array().items(n.AppliedFreeArticles()),article_quantity:a.number(),buy_rules:a.array().items(n.BuyRules()),discount_rules:a.array().items(n.DiscountRulesApp()),mrp_promotion:a.boolean(),offer_text:a.string().allow(""),ownership:n.Ownership(),promo_id:a.string().allow(""),promotion_group:a.string().allow(""),promotion_name:a.string().allow(""),promotion_type:a.string().allow("")})}static ApplyCouponRequest(){return a.object({coupon_code:a.string().allow("").required()})}static ArticleGiftDetail(){return a.object({article_id:n.GiftDetail()})}static ArticlePriceInfo(){return a.object({base:n.BasePrice(),converted:n.BasePrice()})}static BaseInfo(){return a.object({name:a.string().allow(""),uid:a.number()})}static BasePrice(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),effective:a.number(),marked:a.number()})}static BulkPriceOffer(){return a.object({offers:a.array().items(n.OfferItem()),seller:n.OfferSeller()})}static BulkPriceResponse(){return a.object({data:a.array().items(n.BulkPriceOffer())})}static BuyRules(){return a.object({cart_conditions:a.any(),item_criteria:a.any()})}static CartBreakup(){return a.object({coupon:n.CouponBreakup(),display:a.array().items(n.DisplayBreakup()),loyalty_points:n.LoyaltyPoints(),raw:n.RawBreakup()})}static CartCheckoutCustomMeta(){return a.object({key:a.string().allow("").required(),value:a.string().allow("").required()})}static CartCheckoutResponse(){return a.object({app_intercept_url:a.string().allow(""),callback_url:a.string().allow(""),cart:n.CheckCart(),data:a.any(),message:a.string().allow(""),order_id:a.string().allow(""),payment_confirm_url:a.string().allow(""),success:a.boolean()})}static CartCurrency(){return a.object({code:a.string().allow(""),symbol:a.string().allow("")})}static CartDeliveryModesResponse(){return a.object({available_modes:a.array().items(a.string().allow("")),pickup_stores:a.array().items(a.number())})}static CartDetailResponse(){return a.object({applied_promo_details:a.array().items(n.AppliedPromotion()),breakup_values:n.CartBreakup(),buy_now:a.boolean(),checkout_mode:a.string().allow(""),comment:a.string().allow(""),coupon_text:a.string().allow(""),currency:n.CartCurrency(),delivery_charge_info:a.string().allow(""),delivery_promise:n.ShipmentPromise(),gstin:a.string().allow(""),id:a.string().allow(""),is_valid:a.boolean(),items:a.array().items(n.CartProductInfo()),last_modified:a.string().allow(""),message:a.string().allow(""),pan_config:a.any(),pan_no:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),restrict_checkout:a.boolean()})}static CartItemCountResponse(){return a.object({user_cart_items_count:a.number()})}static CartMetaMissingResponse(){return a.object({errors:a.array().items(a.string().allow(""))})}static CartMetaRequest(){return a.object({checkout_mode:a.string().allow(""),comment:a.string().allow(""),delivery_slots:a.any(),gift_details:n.ArticleGiftDetail(),gstin:a.string().allow(""),pick_up_customer_details:a.any()})}static CartMetaResponse(){return a.object({is_valid:a.boolean(),message:a.string().allow("")})}static CartPosCheckoutDetailRequest(){return a.object({address_id:a.string().allow(""),aggregator:a.string().allow(""),billing_address:a.any(),billing_address_id:a.string().allow(""),callback_url:a.string().allow("").allow(null),custom_meta:a.array().items(n.CartCheckoutCustomMeta()),customer_details:a.any().allow(null),delivery_address:a.any(),extra_meta:a.any(),files:a.array().items(n.Files()),id:a.string().allow("").allow(null),merchant_code:a.string().allow(""),meta:a.any(),order_type:a.string().allow("").required(),ordering_store:a.number().allow(null),payment_auto_confirm:a.boolean(),payment_identifier:a.string().allow("").allow(null),payment_mode:a.string().allow("").required(),payment_params:a.any().allow(null),pick_at_store_uid:a.number().allow(null),pos:a.boolean(),staff:n.StaffCheckout()})}static CartProduct(){return a.object({_custom_json:a.any(),action:n.ProductAction(),brand:n.BaseInfo(),categories:a.array().items(n.CategoryInfo()),images:a.array().items(n.ProductImage()),item_code:a.string().allow("").allow(null),name:a.string().allow(""),slug:a.string().allow(""),tags:a.array().items(a.string().allow("")),teaser_tag:n.Tags(),type:a.string().allow(""),uid:a.number()})}static CartProductIdentifer(){return a.object({identifier:a.string().allow("")})}static CartProductInfo(){return a.object({article:n.ProductArticle(),availability:n.ProductAvailability(),bulk_offer:a.any(),coupon:n.CouponDetails(),coupon_message:a.string().allow(""),custom_order:a.any(),delivery_promise:n.ShipmentPromise(),discount:a.string().allow(""),identifiers:n.CartProductIdentifer().required(),is_set:a.boolean(),key:a.string().allow(""),message:a.string().allow(""),moq:a.any(),parent_item_identifiers:a.any(),price:n.ProductPriceInfo(),price_per_unit:n.ProductPriceInfo(),product:n.CartProduct(),promo_meta:n.PromoMeta(),promotions_applied:a.array().items(n.AppliedPromotion()),quantity:a.number()})}static CartShipmentsResponse(){return a.object({breakup_values:n.CartBreakup(),buy_now:a.boolean(),cart_id:a.number(),checkout_mode:a.string().allow(""),comment:a.string().allow(""),coupon_text:a.string().allow(""),currency:n.CartCurrency(),delivery_charge_info:a.string().allow(""),delivery_promise:n.ShipmentPromise(),error:a.boolean(),gstin:a.string().allow(""),id:a.string().allow(""),is_valid:a.boolean(),last_modified:a.string().allow(""),message:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),restrict_checkout:a.boolean(),shipments:a.array().items(n.ShipmentResponse()),uid:a.string().allow("")})}static CategoryInfo(){return a.object({name:a.string().allow(""),uid:a.number()})}static CheckCart(){return a.object({breakup_values:n.CartBreakup(),buy_now:a.boolean(),cart_id:a.number(),checkout_mode:a.string().allow(""),cod_available:a.boolean(),cod_charges:a.number(),cod_message:a.string().allow(""),comment:a.string().allow(""),coupon_text:a.string().allow(""),currency:n.CartCurrency(),delivery_charge_info:a.string().allow(""),delivery_charge_order_value:a.number(),delivery_charges:a.number(),delivery_promise:n.ShipmentPromise(),error_message:a.string().allow(""),gstin:a.string().allow(""),id:a.string().allow(""),is_valid:a.boolean(),items:a.array().items(n.CartProductInfo()),last_modified:a.string().allow(""),message:a.string().allow(""),order_id:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),restrict_checkout:a.boolean(),store_code:a.string().allow(""),store_emps:a.array().items(a.any()),success:a.boolean(),uid:a.string().allow(""),user_type:a.string().allow("")})}static Coupon(){return a.object({coupon_code:a.string().allow(""),coupon_type:a.string().allow("").allow(null),coupon_value:a.number(),description:a.string().allow("").allow(null),expires_on:a.string().allow(""),is_applicable:a.boolean(),is_applied:a.boolean(),max_discount_value:a.number(),message:a.string().allow(""),minimum_cart_value:a.number(),sub_title:a.string().allow(""),title:a.string().allow("")})}static CouponBreakup(){return a.object({code:a.string().allow(""),coupon_type:a.string().allow("").allow(null),coupon_value:a.number(),description:a.string().allow("").allow(null),is_applied:a.boolean(),max_discount_value:a.number(),message:a.string().allow(""),minimum_cart_value:a.number(),sub_title:a.string().allow("").allow(null),title:a.string().allow("").allow(null),type:a.string().allow(""),uid:a.string().allow(""),value:a.number()})}static CouponDetails(){return a.object({code:a.string().allow(""),discount_single_quantity:a.number(),discount_total_quantity:a.number()})}static CouponValidity(){return a.object({code:a.string().allow("").allow(null),discount:a.number(),display_message_en:a.string().allow("").allow(null),next_validation_required:a.boolean().allow(null),title:a.string().allow(""),valid:a.boolean()})}static CustomerDetails(){return a.object({email:a.string().allow("").allow(null),mobile:a.string().allow("").required(),name:a.string().allow("")})}static DeleteAddressResponse(){return a.object({id:a.string().allow(""),is_deleted:a.boolean()})}static DiscountRulesApp(){return a.object({item_criteria:a.any(),matched_buy_rules:a.array().items(a.string().allow("")),offer:a.any(),raw_offer:a.any()})}static DisplayBreakup(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),display:a.string().allow(""),key:a.string().allow(""),message:a.array().items(a.string().allow("")),value:a.number()})}static Files(){return a.object({key:a.string().allow("").required(),values:a.array().items(a.string().allow("")).required()})}static FreeGiftItem(){return a.object({item_brand_name:a.string().allow(""),item_id:a.number(),item_images_url:a.array().items(a.string().allow("")),item_name:a.string().allow(""),item_price_details:a.any(),item_slug:a.string().allow("")})}static GeoLocation(){return a.object({latitude:a.number(),longitude:a.number()})}static GetAddressesResponse(){return a.object({address:a.array().items(n.Address()),pii_masking:a.boolean()})}static GetCouponResponse(){return a.object({available_coupon_list:a.array().items(n.Coupon()),page:n.PageCoupon()})}static GetShareCartLinkRequest(){return a.object({id:a.string().allow(""),meta:a.any()})}static GetShareCartLinkResponse(){return a.object({share_url:a.string().allow(""),token:a.string().allow("")})}static GiftDetail(){return a.object({gift_message:a.string().allow(""),is_gift_applied:a.boolean()})}static LoyaltyPoints(){return a.object({applicable:a.number(),description:a.string().allow(""),is_applied:a.boolean(),total:a.number()})}static OfferItem(){return a.object({auto_applied:a.boolean(),best:a.boolean(),margin:a.number(),price:n.OfferPrice(),quantity:a.number(),total:a.number(),type:a.string().allow("")})}static OfferPrice(){return a.object({bulk_effective:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),effective:a.number(),marked:a.number()})}static OfferSeller(){return a.object({name:a.string().allow(""),uid:a.number()})}static Ownership(){return a.object({payable_by:a.string().allow(""),payable_category:a.string().allow("")})}static PageCoupon(){return a.object({current:a.number(),has_next:a.boolean(),has_previous:a.boolean(),total:a.number(),total_item_count:a.number()})}static PaymentCouponValidate(){return a.object({coupon_validity:n.CouponValidity(),message:a.string().allow(""),success:a.boolean().required()})}static PaymentSelectionLock(){return a.object({default_options:a.string().allow(""),enabled:a.boolean(),payment_identifier:a.string().allow("")})}static PickupStoreDetail(){return a.object({address:a.string().allow(""),address_type:a.string().allow(""),area:a.string().allow(""),area_code:a.string().allow(""),area_code_slug:a.string().allow(""),city:a.string().allow(""),country:a.string().allow(""),email:a.string().allow(""),id:a.number(),landmark:a.string().allow(""),name:a.string().allow(""),phone:a.string().allow(""),pincode:a.number(),state:a.string().allow(""),store_code:a.string().allow(""),uid:a.number()})}static ProductAction(){return a.object({query:n.ActionQuery(),type:a.string().allow(""),url:a.string().allow("")})}static ProductArticle(){return a.object({_custom_json:a.any(),cart_item_meta:a.any(),extra_meta:a.any(),gift_card:a.any(),identifier:a.any(),is_gift_visible:a.boolean(),meta:a.any(),mto_quantity:a.number(),parent_item_identifiers:a.any(),price:n.ArticlePriceInfo(),product_group_tags:a.array().items(a.string().allow("")),quantity:a.number(),seller:n.BaseInfo(),seller_identifier:a.string().allow(""),size:a.string().allow(""),store:n.StoreInfo(),type:a.string().allow(""),uid:a.string().allow("")})}static ProductAvailability(){return a.object({available_sizes:a.array().items(n.ProductAvailabilitySize()),deliverable:a.boolean(),is_valid:a.boolean(),other_store_quantity:a.number(),out_of_stock:a.boolean(),sizes:a.array().items(a.string().allow(""))})}static ProductAvailabilitySize(){return a.object({display:a.string().allow(""),is_available:a.boolean(),value:a.string().allow("")})}static ProductImage(){return a.object({aspect_ratio:a.string().allow(""),secure_url:a.string().allow(""),url:a.string().allow("")})}static ProductPrice(){return a.object({add_on:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),effective:a.number(),marked:a.number(),selling:a.number()})}static ProductPriceInfo(){return a.object({base:n.ProductPrice(),converted:n.ProductPrice()})}static PromiseFormatted(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static PromiseTimestamp(){return a.object({max:a.number(),min:a.number()})}static PromoMeta(){return a.object({message:a.string().allow("")})}static RawBreakup(){return a.object({cod_charge:a.number(),convenience_fee:a.number(),coupon:a.number(),delivery_charge:a.number(),discount:a.number(),fynd_cash:a.number(),gift_card:a.number(),gst_charges:a.number(),mrp_total:a.number(),subtotal:a.number(),total:a.number(),vog:a.number(),you_saved:a.number()})}static RewardPointRequest(){return a.object({points:a.boolean().required()})}static SaveAddressResponse(){return a.object({id:a.string().allow(""),is_default_address:a.boolean(),success:a.boolean()})}static SelectCartAddressRequest(){return a.object({billing_address_id:a.string().allow(""),cart_id:a.string().allow(""),id:a.string().allow("")})}static SharedCart(){return a.object({breakup_values:n.CartBreakup(),buy_now:a.boolean(),cart_id:a.number(),checkout_mode:a.string().allow(""),comment:a.string().allow(""),coupon_text:a.string().allow(""),currency:n.CartCurrency(),delivery_charge_info:a.string().allow(""),delivery_promise:n.ShipmentPromise(),gstin:a.string().allow(""),id:a.string().allow(""),is_valid:a.boolean(),items:a.array().items(n.CartProductInfo()),last_modified:a.string().allow(""),message:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),restrict_checkout:a.boolean(),shared_cart_details:n.SharedCartDetails(),uid:a.string().allow("")})}static SharedCartDetails(){return a.object({created_on:a.string().allow(""),meta:a.any(),source:a.any(),token:a.string().allow(""),user:a.any()})}static SharedCartResponse(){return a.object({cart:n.SharedCart(),error:a.string().allow("")})}static ShipmentPromise(){return a.object({formatted:n.PromiseFormatted(),timestamp:n.PromiseTimestamp()})}static ShipmentResponse(){return a.object({box_type:a.string().allow("").allow(null),dp_id:a.string().allow("").allow(null),dp_options:a.any().allow(null),fulfillment_id:a.number(),fulfillment_type:a.string().allow(""),items:a.array().items(n.CartProductInfo()),order_type:a.string().allow(""),promise:n.ShipmentPromise(),shipment_type:a.string().allow(""),shipments:a.number()})}static StaffCheckout(){return a.object({_id:a.string().allow("").required(),employee_code:a.string().allow(""),first_name:a.string().allow("").required(),last_name:a.string().allow("").required(),user:a.string().allow("").required()})}static StoreDetailsResponse(){return a.object({items:a.array().items(n.PickupStoreDetail())})}static StoreInfo(){return a.object({name:a.string().allow(""),store_code:a.string().allow(""),uid:a.number()})}static Tags(){return a.object({tags:a.any()})}static UpdateAddressResponse(){return a.object({id:a.string().allow(""),is_default_address:a.boolean(),is_updated:a.boolean(),success:a.boolean()})}static UpdateCartDetailResponse(){return a.object({cart:n.CartDetailResponse(),message:a.string().allow(""),success:a.boolean()})}static UpdateCartPaymentRequest(){return a.object({address_id:a.string().allow(""),aggregator_name:a.string().allow(""),id:a.string().allow(""),merchant_code:a.string().allow(""),payment_identifier:a.string().allow("").allow(null),payment_mode:a.string().allow("")})}static UpdateCartRequest(){return a.object({items:a.array().items(n.UpdateProductCart()),operation:a.string().allow("").required()})}static UpdateCartShipmentItem(){return a.object({article_uid:a.string().allow("").required(),quantity:a.number(),shipment_type:a.string().allow("").required()})}static UpdateCartShipmentRequest(){return a.object({shipments:a.array().items(n.UpdateCartShipmentItem()).required()})}static UpdateProductCart(){return a.object({_custom_json:a.any(),article_id:a.string().allow(""),extra_meta:a.any(),identifiers:n.CartProductIdentifer().required(),item_id:a.number(),item_index:a.number(),item_size:a.string().allow(""),meta:a.any(),parent_item_identifiers:a.any(),quantity:a.number()})}}e.exports=n},2857:(e,t,r)=>{const a=r(2705),n=r(6962);e.exports=class{static addAddress(){return a.object({body:n.Address().required()}).required()}static addItems(){return a.object({i:a.boolean(),b:a.boolean(),areaCode:a.string().allow(""),buyNow:a.boolean(),id:a.string().allow(""),body:n.AddCartRequest().required()}).required()}static applyCoupon(){return a.object({i:a.boolean(),b:a.boolean(),p:a.boolean(),id:a.string().allow(""),buyNow:a.boolean(),body:n.ApplyCouponRequest().required()}).required()}static applyRewardPoints(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),buyNow:a.boolean(),body:n.RewardPointRequest().required()}).required()}static checkoutCart(){return a.object({id:a.string().allow(""),body:n.CartPosCheckoutDetailRequest().required()}).required()}static getAddressById(){return a.object({id:a.string().allow("").required(),cartId:a.string().allow(""),buyNow:a.boolean(),mobileNo:a.string().allow(""),checkoutMode:a.string().allow(""),tags:a.string().allow(""),isDefault:a.boolean()}).required()}static getAddresses(){return a.object({cartId:a.string().allow(""),buyNow:a.boolean(),mobileNo:a.string().allow(""),checkoutMode:a.string().allow(""),tags:a.string().allow(""),isDefault:a.boolean()})}static getAvailableDeliveryModes(){return a.object({areaCode:a.string().allow("").required(),id:a.string().allow("")}).required()}static getBulkDiscountOffers(){return a.object({itemId:a.number(),articleId:a.string().allow(""),uid:a.number(),slug:a.string().allow("")})}static getCart(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),assignCardId:a.number(),areaCode:a.string().allow(""),buyNow:a.boolean()})}static getCartLastModified(){return a.object({id:a.string().allow("")})}static getCartShareLink(){return a.object({body:n.GetShareCartLinkRequest().required()}).required()}static getCartSharedItems(){return a.object({token:a.string().allow("").required()}).required()}static getCoupons(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static getItemCount(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static getShipments(){return a.object({pickAtStoreUid:a.number(),orderingStoreId:a.number(),p:a.boolean(),id:a.string().allow(""),addressId:a.string().allow(""),areaCode:a.string().allow(""),orderType:a.string().allow("")})}static getStoreAddressByUid(){return a.object({storeUid:a.number().required()}).required()}static removeAddress(){return a.object({id:a.string().allow("").required()}).required()}static removeCoupon(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static selectAddress(){return a.object({cartId:a.string().allow(""),buyNow:a.boolean(),i:a.boolean(),b:a.boolean(),body:n.SelectCartAddressRequest().required()}).required()}static selectPaymentMode(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),body:n.UpdateCartPaymentRequest().required()}).required()}static updateAddress(){return a.object({id:a.string().allow("").required(),body:n.Address().required()}).required()}static updateCart(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),areaCode:a.string().allow(""),buyNow:a.boolean(),body:n.UpdateCartRequest().required()}).required()}static updateCartMeta(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),body:n.CartMetaRequest().required()}).required()}static updateCartWithSharedItems(){return a.object({token:a.string().allow("").required(),action:a.string().allow("").required()}).required()}static updateShipments(){return a.object({i:a.boolean(),p:a.boolean(),id:a.string().allow(""),addressId:a.string().allow(""),areaCode:a.string().allow(""),orderType:a.string().allow(""),body:n.UpdateCartShipmentRequest().required()}).required()}static validateCouponForPayment(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),addressId:a.string().allow(""),paymentMode:a.string().allow(""),paymentIdentifier:a.string().allow(""),aggregatorName:a.string().allow(""),merchantCode:a.string().allow(""),iin:a.string().allow(""),network:a.string().allow(""),type:a.string().allow(""),cardId:a.string().allow("")})}}},4107:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=r(3589),i=r(3253),l=r(2743),{Logger:c}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={catalogueOrder:"/service/application/rewards/v1.0/catalogue/offer/order/",getOfferByName:"/service/application/rewards/v1.0/offers/{name}/",getOrderDiscount:"/service/application/rewards/v1.0/user/offer/order-discount/",getUserPoints:"/service/application/rewards/v1.0/user/points/",getUserPointsHistory:"/service/application/rewards/v1.0/user/points/history/",getUserReferralDetails:"/service/application/rewards/v1.0/user/referral/",redeemReferralCode:"/service/application/rewards/v1.0/user/referral/redeem/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async catalogueOrder({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.catalogueOrder().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.catalogueOrder().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > catalogueOrder \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.catalogueOrder,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.CatalogueOrderResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Rewards > catalogueOrder \n ${g}`}),d}async getOfferByName({name:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getOfferByName().validate({name:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getOfferByName().validate({name:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getOfferByName \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getOfferByName,params:{name:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.Offer().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Rewards > getOfferByName \n ${g}`}),d}async getOrderDiscount({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getOrderDiscount().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getOrderDiscount().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getOrderDiscount \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getOrderDiscount,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.OrderDiscountResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Rewards > getOrderDiscount \n ${g}`}),d}async getUserPoints({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getUserPoints().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getUserPoints().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getUserPoints \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getUserPoints,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.PointsResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Rewards > getUserPoints \n ${p}`}),u}async getUserPointsHistory({pageId:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getUserPointsHistory().validate({pageId:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getUserPointsHistory().validate({pageId:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getUserPointsHistory \n ${d}`});const p={};p.page_id=e,p.page_size=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getUserPointsHistory,params:{}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.PointsHistoryResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Rewards > getUserPointsHistory \n ${w}`}),g}getUserPointsHistoryPaginator({pageSize:e}={}){const t=new s;return t.setCallback((async()=>{const r=t.nextId,a=(t.pageNo,await this.getUserPointsHistory({pageId:r,pageSize:e}));return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getUserReferralDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getUserReferralDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getUserReferralDetails().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getUserReferralDetails \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getUserReferralDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.ReferralDetailsResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Rewards > getUserReferralDetails \n ${p}`}),u}async redeemReferralCode({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.redeemReferralCode().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.redeemReferralCode().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > redeemReferralCode \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.redeemReferralCode,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.RedeemReferralCodeResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Rewards > redeemReferralCode \n ${g}`}),d}}},2743:(e,t,r)=>{const a=r(2705);class n{static Asset(){return a.object({aspect_ratio:a.string().allow(""),id:a.string().allow(""),secure_url:a.string().allow("")})}static CatalogueOrderRequest(){return a.object({articles:a.array().items(n.RewardsArticle())})}static CatalogueOrderResponse(){return a.object({articles:a.array().items(n.RewardsArticle())})}static DiscountProperties(){return a.object({absolute:a.number(),currency:a.string().allow(""),display_absolute:a.string().allow(""),display_percent:a.string().allow(""),percent:a.number()})}static Error(){return a.object({code:a.number(),exception:a.string().allow(""),info:a.string().allow(""),message:a.string().allow("")})}static Offer(){return a.object({_schedule:n.Schedule(),active:a.boolean(),application_id:a.string().allow(""),banner_image:n.Asset(),created_at:a.string().allow(""),name:a.string().allow(""),rule:a.any(),share:n.ShareMessages(),sub_text:a.string().allow(""),text:a.string().allow(""),type:a.string().allow(""),updated_at:a.string().allow(""),updated_by:a.string().allow(""),url:a.string().allow("")})}static OrderDiscountRequest(){return a.object({currency:a.string().allow(""),order_amount:a.number().required()})}static OrderDiscountResponse(){return a.object({applied_rule_bucket:n.OrderDiscountRuleBucket(),base_discount:n.DiscountProperties(),discount:n.DiscountProperties(),order_amount:a.number(),points:a.number()})}static OrderDiscountRuleBucket(){return a.object({high:a.number(),low:a.number(),max:a.number(),value:a.number(),value_type:a.string().allow("")})}static Page(){return a.object({current:a.number(),has_next:a.boolean(),has_previous:a.boolean(),item_total:a.number(),next_id:a.string().allow(""),size:a.number(),type:a.string().allow("").required()})}static PointsHistory(){return a.object({_id:a.string().allow(""),application_id:a.string().allow(""),claimed:a.boolean(),created_at:a.string().allow(""),expires_on:a.string().allow(""),meta:a.any(),points:a.number(),remaining_points:a.number(),text_1:a.string().allow(""),text_2:a.string().allow(""),text_3:a.string().allow(""),txn_name:a.string().allow(""),updated_at:a.string().allow(""),user_id:a.string().allow("")})}static PointsHistoryResponse(){return a.object({items:a.array().items(n.PointsHistory()),page:n.Page()})}static PointsResponse(){return a.object({points:a.number()})}static RedeemReferralCodeRequest(){return a.object({device_id:a.string().allow(""),referral_code:a.string().allow("")})}static RedeemReferralCodeResponse(){return a.object({message:a.string().allow(""),points:a.number(),redeemed:a.boolean(),referrer_id:a.string().allow(""),referrer_info:a.string().allow("")})}static ReferralDetailsResponse(){return a.object({referral:n.Offer(),referrer_info:a.string().allow(""),share:n.ShareMessages(),terms_conditions_link:a.string().allow(""),user:n.ReferralDetailsUser()})}static ReferralDetailsUser(){return a.object({blocked:a.boolean(),points:a.number(),redeemed:a.boolean(),referral_code:a.string().allow("")})}static RewardsArticle(){return a.object({id:a.string().allow(""),points:a.number(),price:a.number()})}static Schedule(){return a.object({cron:a.string().allow(""),duration:a.number(),end:a.string().allow(""),start:a.string().allow("")})}static ShareMessages(){return a.object({email:a.number(),facebook:a.string().allow(""),fallback:a.string().allow(""),message:a.string().allow(""),messenger:a.string().allow(""),sms:a.string().allow(""),text:a.string().allow(""),twitter:a.string().allow(""),whatsapp:a.string().allow("")})}}e.exports=n},3253:(e,t,r)=>{const a=r(2705),n=r(2743);e.exports=class{static catalogueOrder(){return a.object({body:n.CatalogueOrderRequest().required()}).required()}static getOfferByName(){return a.object({name:a.string().allow("").required()}).required()}static getOrderDiscount(){return a.object({body:n.OrderDiscountRequest().required()}).required()}static getUserPoints(){return a.object({})}static getUserPointsHistory(){return a.object({pageId:a.string().allow(""),pageSize:a.number()})}static getUserReferralDetails(){return a.object({})}static redeemReferralCode(){return a.object({body:n.RedeemReferralCodeRequest().required()}).required()}}},3740:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(9421)),i=r(6734),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={createShortLink:"/service/application/share/v1.0/links/short-link/",getApplicationQRCode:"/service/application/share/v1.0/qr/",getCollectionQRCodeBySlug:"/service/application/share/v1.0/qr/collection/{slug}/",getOriginalShortLinkByHash:"/service/application/share/v1.0/links/short-link/{hash}/original/",getProductQRCodeBySlug:"/service/application/share/v1.0/qr/products/{slug}/",getShortLinkByHash:"/service/application/share/v1.0/links/short-link/{hash}/",getUrlQRCode:"/service/application/share/v1.0/qr/url/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async createShortLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.createShortLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.createShortLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Share > createShortLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.createShortLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ShortLinkRes().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Share > createShortLink \n ${g}`}),d}async getApplicationQRCode({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getApplicationQRCode().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getApplicationQRCode().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > Share > getApplicationQRCode \n ${c}`});const u=await a.execute(this._conf,"post",o({url:this._urls.getApplicationQRCode,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.QRCodeResp().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > Share > getApplicationQRCode \n ${p}`}),u}async getCollectionQRCodeBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getCollectionQRCodeBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getCollectionQRCodeBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Share > getCollectionQRCodeBySlug \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getCollectionQRCodeBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.QRCodeResp().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Share > getCollectionQRCodeBySlug \n ${g}`}),d}async getOriginalShortLinkByHash({hash:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getOriginalShortLinkByHash().validate({hash:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getOriginalShortLinkByHash().validate({hash:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Share > getOriginalShortLinkByHash \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getOriginalShortLinkByHash,params:{hash:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ShortLinkRes().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Share > getOriginalShortLinkByHash \n ${g}`}),d}async getProductQRCodeBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getProductQRCodeBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getProductQRCodeBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Share > getProductQRCodeBySlug \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getProductQRCodeBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.QRCodeResp().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Share > getProductQRCodeBySlug \n ${g}`}),d}async getShortLinkByHash({hash:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getShortLinkByHash().validate({hash:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getShortLinkByHash().validate({hash:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Share > getShortLinkByHash \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getShortLinkByHash,params:{hash:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ShortLinkRes().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Share > getShortLinkByHash \n ${g}`}),d}async getUrlQRCode({url:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getUrlQRCode().validate({url:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getUrlQRCode().validate({url:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Share > getUrlQRCode \n ${u}`});const d={};d.url=e;const p=await a.execute(this._conf,"post",o({url:this._urls.getUrlQRCode,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.QRCodeResp().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Share > getUrlQRCode \n ${m}`}),p}}},6734:(e,t,r)=>{const a=r(2705);class n{static Attribution(){return a.object({campaign_cookie_expiry:a.string().allow("")})}static CampaignShortLink(){return a.object({medium:a.string().allow(""),source:a.string().allow("")})}static ErrorRes(){return a.object({message:a.string().allow("")})}static QRCodeResp(){return a.object({link:a.string().allow(""),svg:a.string().allow("")})}static RedirectDevice(){return a.object({link:a.string().allow(""),type:a.string().allow("")})}static Redirects(){return a.object({android:n.RedirectDevice(),force_web:a.boolean(),ios:n.RedirectDevice(),web:n.WebRedirect()})}static ShortLinkReq(){return a.object({active:a.boolean(),attribution:n.Attribution(),campaign:n.CampaignShortLink(),count:a.number(),enable_tracking:a.boolean(),expire_at:a.string().allow(""),hash:a.string().allow(""),personalized:a.boolean(),redirects:n.Redirects(),social_media_tags:n.SocialMediaTags(),title:a.string().allow("").required(),url:a.string().allow("").required()})}static ShortLinkRes(){return a.object({_id:a.string().allow(""),active:a.boolean(),app_redirect:a.boolean(),application:a.string().allow(""),attribution:n.Attribution(),campaign:n.CampaignShortLink(),count:a.number(),created_at:a.string().allow(""),created_by:a.string().allow(""),enable_tracking:a.boolean(),expire_at:a.string().allow(""),fallback:a.string().allow(""),meta:a.any(),personalized:a.boolean(),redirects:n.Redirects(),social_media_tags:n.SocialMediaTags(),title:a.string().allow(""),updated_at:a.string().allow(""),url:n.UrlInfo(),user_id:a.string().allow("")})}static SocialMediaTags(){return a.object({description:a.string().allow(""),image:a.string().allow(""),title:a.string().allow("")})}static UrlInfo(){return a.object({hash:a.string().allow(""),original:a.string().allow(""),short:a.string().allow("")})}static WebRedirect(){return a.object({link:a.string().allow(""),type:a.string().allow("")})}}e.exports=n},9421:(e,t,r)=>{const a=r(2705),n=r(6734);e.exports=class{static createShortLink(){return a.object({body:n.ShortLinkReq().required()}).required()}static getApplicationQRCode(){return a.object({})}static getCollectionQRCodeBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getOriginalShortLinkByHash(){return a.object({hash:a.string().allow("").required()}).required()}static getProductQRCodeBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getShortLinkByHash(){return a.object({hash:a.string().allow("").required()}).required()}static getUrlQRCode(){return a.object({url:a.string().allow("").required()}).required()}}},4683:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(1088)),i=r(6377),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAllPages:"/service/application/theme/v1.0/{theme_id}/page",getAppliedTheme:"/service/application/theme/v2.0/applied-theme",getPage:"/service/application/theme/v1.0/{theme_id}/{page_value}",getThemeForPreview:"/service/application/theme/v2.0/{theme_id}/preview"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAllPages({themeId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getAllPages().validate({themeId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getAllPages().validate({themeId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getAllPages \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getAllPages,params:{themeId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.AllAvailablePageSchema().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Theme > getAllPages \n ${g}`}),d}async getAppliedTheme({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getAppliedTheme().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getAppliedTheme().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getAppliedTheme \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getAppliedTheme,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.ThemesSchema().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > Theme > getAppliedTheme \n ${p}`}),u}async getPage({themeId:e,pageValue:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getPage().validate({themeId:e,pageValue:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getPage().validate({themeId:e,pageValue:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getPage \n ${d}`});const p=await a.execute(this._conf,"get",o({url:this._urls.getPage,params:{themeId:e,pageValue:t}}),{},void 0,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.AvailablePageSchema().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Theme > getPage \n ${m}`}),p}async getThemeForPreview({themeId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getThemeForPreview().validate({themeId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getThemeForPreview().validate({themeId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getThemeForPreview \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getThemeForPreview,params:{themeId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ThemesSchema().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Theme > getThemeForPreview \n ${g}`}),d}}},6377:(e,t,r)=>{const a=r(2705);class n{static AdvanceSetting(){return a.object({divider_stroke_highlight:n.DividerStrokeHighlightSetting(),overlay_popup:n.OverlayPopupSetting(),user_alerts:n.UserAlertsSetting()})}static AllAvailablePageSchema(){return a.object({pages:a.array().items(n.AvailablePageSchema())})}static Assets(){return a.object({common_js:n.CommonJS(),css:n.CSS(),umd_js:n.UMDJs()})}static AuthConfig(){return a.object({show_footer_auth:a.boolean(),show_header_auth:a.boolean()})}static AvailablePagePredicate(){return a.object({route:n.AvailablePageRoutePredicate(),screen:n.AvailablePageScreenPredicate(),user:n.AvailablePageUserPredicate()})}static AvailablePageRoutePredicate(){return a.object({exact_url:a.string().allow(""),query:a.any(),selected:a.string().allow("")})}static AvailablePageSchema(){return a.object({_id:a.string().allow(""),path:a.string().allow(""),props:a.array().items(a.any()),sections:a.array().items(n.AvailablePageSchemaSections()),sections_meta:a.array().items(n.AvailablePageSectionMetaAttributes()),seo:n.AvailablePageSeo(),text:a.string().allow(""),theme:a.string().allow(""),type:a.string().allow(""),value:a.string().allow("")})}static AvailablePageSchemaSections(){return a.object({blocks:a.array().items(a.any()),label:a.string().allow(""),name:a.string().allow(""),predicate:n.AvailablePagePredicate(),preset:a.any(),props:a.any()})}static AvailablePageScreenPredicate(){return a.object({desktop:a.boolean(),mobile:a.boolean(),tablet:a.boolean()})}static AvailablePageSectionMetaAttributes(){return a.object({attributes:a.any()})}static AvailablePageSeo(){return a.object({_id:a.string().allow(""),description:a.string().allow(""),title:a.string().allow("")})}static AvailablePageUserPredicate(){return a.object({anonymous:a.boolean(),authenticated:a.boolean()})}static BlitzkriegApiErrorSchema(){return a.object({message:a.string().allow("")})}static BlitzkriegInternalServerErrorSchema(){return a.object({message:a.string().allow("")})}static Block(){return a.object({name:a.string().allow(""),props:n.BlockProps(),type:a.string().allow("")})}static BlockProps(){return a.object({image:n.ImagePickerProp(),slide_link:n.UrlProp()})}static ButtonSetting(){return a.object({button_link:a.string().allow(""),button_primary:a.string().allow(""),button_secondary:a.string().allow("")})}static CheckboxProp(){return a.object({type:a.string().allow(""),value:a.boolean()})}static Colors(){return a.object({accent_color:a.string().allow(""),bg_color:a.string().allow(""),button_secondary_color:a.string().allow(""),link_color:a.string().allow(""),primary_color:a.string().allow(""),secondary_color:a.string().allow("")})}static CommonJS(){return a.object({link:a.string().allow("")})}static Config(){return a.object({current:a.string().allow("").required(),global_schema:n.GlobalSchema(),list:a.array().items(n.ThemeConfiguration()).required(),preset:n.Preset()})}static CSS(){return a.object({links:a.array().items(a.string().allow(""))})}static CustomConfig(){return a.object({props:n.CustomProps()})}static CustomProps(){return a.object({button_add_to_cart_color:a.string().allow(""),button_add_to_cart_label_color:a.string().allow(""),button_primary_color:a.string().allow(""),button_primary_label_color:a.string().allow(""),button_secondary_color:a.string().allow(""),button_secondary_label_color:a.string().allow(""),button_tertiary_color:a.string().allow(""),button_tertiary_hover_color:a.string().allow(""),button_tertiary_hover_text_color:a.string().allow(""),button_tertiary_label_color:a.string().allow(""),disable_cart:a.boolean(),footer_bg_color:a.string().allow(""),footer_border_color:a.string().allow(""),footer_nav_hover_color:a.string().allow(""),footer_text_color:a.string().allow(""),header_bg_color:a.string().allow(""),header_border_color:a.string().allow(""),header_cart_notification_bg_color:a.string().allow(""),header_cart_notification_text_color:a.string().allow(""),header_icon_color:a.string().allow(""),header_nav_hover_color:a.string().allow(""),header_text_color:a.string().allow(""),is_menu_below_logo:a.boolean(),menu_position:a.string().allow(""),text_body_color:a.string().allow(""),text_discount_color:a.string().allow(""),text_heading_link_color:a.string().allow(""),text_price_color:a.string().allow(""),text_sale_price_color:a.string().allow(""),text_strikethrough_price_color:a.string().allow("")})}static DividerStrokeHighlightSetting(){return a.object({divider_strokes:a.string().allow(""),highlight:a.string().allow("")})}static Font(){return a.object({family:a.string().allow("").required(),variants:n.FontVariants().required()})}static FontVariant(){return a.object({file:a.string().allow("").required(),name:a.string().allow("").required()})}static FontVariants(){return a.object({bold:n.FontVariant(),light:n.FontVariant(),medium:n.FontVariant(),regular:n.FontVariant(),semi_bold:n.FontVariant()})}static FooterSetting(){return a.object({footer_background:a.string().allow(""),footer_body_text:a.string().allow(""),footer_bottom_background:a.string().allow(""),footer_heading_text:a.string().allow(""),footer_icon:a.string().allow("")})}static GeneralSetting(){return a.object({button:n.ButtonSetting(),footer:n.FooterSetting(),header:n.HeaderSetting(),sale_discount:n.SaleDiscountSetting(),text:n.TextSetting(),theme:n.ThemeSetting()})}static GlobalConfig(){return a.object({custom:n.CustomConfig(),statics:n.StaticConfig()})}static GlobalSchema(){return a.object({props:a.array().items(n.Prop())})}static HeaderSetting(){return a.object({header_background:a.string().allow(""),header_icon:a.string().allow(""),header_nav:a.string().allow("")})}static ImagePickerProp(){return a.object({type:a.string().allow(""),value:a.string().allow("")})}static Images(){return a.object({desktop:a.string().allow(""),mobile:a.string().allow("")})}static Meta(){return a.object({description:a.string().allow(""),images:n.Images(),industry:a.array().items(a.string().allow("")),name:a.string().allow(""),payment:n.ThemePayment(),release:n.Release(),slug:a.string().allow("")})}static OverlayPopupSetting(){return a.object({dialog_backgroung:a.string().allow(""),overlay:a.string().allow("")})}static Page(){return a.object({current:a.number(),has_next:a.boolean(),has_previous:a.boolean(),item_total:a.number(),next_id:a.string().allow(""),size:a.number(),type:a.string().allow("").required()})}static PaletteConfig(){return a.object({advance_setting:n.AdvanceSetting(),general_setting:n.GeneralSetting()})}static Predicate(){return a.object({route:n.Route(),screen:n.Screen(),user:n.ThemeUserSchema()})}static Preset(){return a.object({pages:a.array().items(n.Page())})}static Prop(){return a.object({category:a.string().allow(""),id:a.string().allow(""),info:a.string().allow(""),label:a.string().allow(""),type:a.string().allow("")})}static RangeProp(){return a.object({type:a.string().allow(""),value:a.number()})}static Release(){return a.object({notes:a.string().allow(""),version:a.string().allow("")})}static Route(){return a.object({exact_url:a.string().allow(""),selected:a.string().allow("")})}static SaleDiscountSetting(){return a.object({sale_badge_background:a.string().allow(""),sale_badge_text:a.string().allow(""),sale_discount_text:a.string().allow(""),sale_timer:a.string().allow("")})}static Screen(){return a.object({desktop:a.boolean(),mobile:a.boolean(),tablet:a.boolean()})}static Section(){return a.object({blocks:a.array().items(n.Block()),name:a.string().allow(""),predicate:n.Predicate(),preset:n.SectionPreset(),props:n.SectionProps()})}static SectionItem(){return a.object({blocks:a.array().items(a.any()),label:a.string().allow(""),name:a.string().allow(""),props:a.array().items(a.any())})}static SectionPreset(){return a.object({blocks:a.array().items(n.Block())})}static SectionProps(){return a.object({autoplay:n.CheckboxProp(),item_margin:n.TextProp(),slide_interval:n.RangeProp(),title:n.TextProp()})}static StaticConfig(){return a.object({props:n.StaticProps()})}static StaticProps(){return a.object({auth:n.AuthConfig(),colors:n.Colors(),palette:n.PaletteConfig()})}static TextProp(){return a.object({type:a.string().allow(""),value:a.string().allow("")})}static TextSetting(){return a.object({text_body:a.string().allow(""),text_heading:a.string().allow(""),text_label:a.string().allow(""),text_secondary:a.string().allow("")})}static ThemeConfiguration(){return a.object({global_config:a.any(),name:a.string().allow(""),page:a.array().items(a.string().allow(""))})}static ThemePayment(){return a.object({amount:a.number(),is_paid:a.boolean()})}static ThemeSetting(){return a.object({page_background:a.string().allow(""),theme_accent:a.string().allow("")})}static ThemesSchema(){return a.object({_id:a.string().allow(""),application_id:a.string().allow(""),applied:a.boolean(),assets:n.Assets(),available_sections:a.array().items(n.SectionItem()),config:n.Config(),created_at:a.string().allow(""),font:n.Font(),is_private:a.boolean(),marketplace_theme_id:a.string().allow(""),meta:n.Meta(),name:a.string().allow(""),styles:a.any(),tags:a.array().items(a.string().allow("")),template_theme_id:a.string().allow(""),updated_at:a.string().allow(""),version:a.string().allow("")})}static ThemeUserSchema(){return a.object({anonymous:a.boolean(),authenticated:a.boolean()})}static UMDJs(){return a.object({links:a.array().items(a.string().allow(""))})}static UrlProp(){return a.object({type:a.string().allow(""),value:a.string().allow("")})}static UserAlertsSetting(){return a.object({error_background:a.string().allow(""),error_text:a.string().allow(""),info_background:a.string().allow(""),info_text:a.string().allow(""),success_background:a.string().allow(""),success_text:a.string().allow("")})}}e.exports=n},1088:(e,t,r)=>{const a=r(2705);r(6377),e.exports=class{static getAllPages(){return a.object({themeId:a.string().allow("").required()}).required()}static getAppliedTheme(){return a.object({})}static getPage(){return a.object({themeId:a.string().allow("").required(),pageValue:a.string().allow("").required()}).required()}static getThemeForPreview(){return a.object({themeId:a.string().allow("").required()}).required()}}},9792:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(7727)),i=r(7022),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addEmail:"/service/application/user/profile/v1.0/email",addMobileNumber:"/service/application/user/profile/v1.0/mobile",deleteEmail:"/service/application/user/profile/v1.0/email",deleteMobileNumber:"/service/application/user/profile/v1.0/mobile",deleteUser:"/service/application/user/authentication/v1.0/delete",forgotPassword:"/service/application/user/authentication/v1.0/login/password/reset/forgot",getListOfActiveSessions:"/service/application/user/authentication/v1.0/sessions",getLoggedInUser:"/service/application/user/authentication/v1.0/session",getPlatformConfig:"/service/application/user/platform/v1.0/config",hasPassword:"/service/application/user/authentication/v1.0/has-password",loginWithAppleIOS:"/service/application/user/authentication/v1.0/login/apple-ios",loginWithEmailAndPassword:"/service/application/user/authentication/v1.0/login/password",loginWithFacebook:"/service/application/user/authentication/v1.0/login/facebook-token",loginWithGoogle:"/service/application/user/authentication/v1.0/login/google-token",loginWithGoogleAndroid:"/service/application/user/authentication/v1.0/login/google-android",loginWithGoogleIOS:"/service/application/user/authentication/v1.0/login/google-ios",loginWithOTP:"/service/application/user/authentication/v1.0/login/otp",loginWithToken:"/service/application/user/authentication/v1.0/login/token",logout:"/service/application/user/authentication/v1.0/logout",registerWithForm:"/service/application/user/authentication/v1.0/register/form",sendOTPOnEmail:"/service/application/user/authentication/v1.0/otp/email/send",sendOTPOnMobile:"/service/application/user/authentication/v1.0/otp/mobile/send",sendResetPasswordEmail:"/service/application/user/authentication/v1.0/login/password/reset",sendResetPasswordMobile:"/service/application/user/authentication/v1.0/login/password/mobile/reset",sendResetToken:"/service/application/user/authentication/v1.0/login/password/reset/token",sendVerificationLinkToEmail:"/service/application/user/profile/v1.0/email/link/send",sendVerificationLinkToMobile:"/service/application/user/profile/v1.0/mobile/link/send",setEmailAsPrimary:"/service/application/user/profile/v1.0/email/primary",setMobileNumberAsPrimary:"/service/application/user/profile/v1.0/mobile/primary",updatePassword:"/service/application/user/authentication/v1.0/password",updateProfile:"/service/application/user/profile/v1.0/detail",verifyEmail:"/service/application/user/authentication/v1.0/verify/email",verifyEmailOTP:"/service/application/user/authentication/v1.0/otp/email/verify",verifyMobile:"/service/application/user/authentication/v1.0/verify/mobile",verifyMobileOTP:"/service/application/user/authentication/v1.0/otp/mobile/verify"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.addEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.addEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > addEmail \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"put",o({url:this._urls.addEmail,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.VerifyEmailOTPSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > addEmail \n ${w}`}),g}async addMobileNumber({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.addMobileNumber().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.addMobileNumber().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > addMobileNumber \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"put",o({url:this._urls.addMobileNumber,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.VerifyMobileOTPSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > addMobileNumber \n ${w}`}),g}async deleteEmail({active:e,primary:t,verified:r,email:c,platform:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=s.deleteEmail().validate({active:e,primary:t,verified:r,email:c,platform:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=s.deleteEmail().validate({active:e,primary:t,verified:r,email:c,platform:u},{abortEarly:!1,allowUnknown:!1});m&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > deleteEmail \n ${m}`});const w={};w.platform=u,w.active=e,w.primary=t,w.verified=r,w.email=c;const y=await a.execute(this._conf,"delete",o({url:this._urls.deleteEmail,params:{}}),w,void 0,{...d},{responseHeaders:p});let f=y;p&&(f=y[0]);const{error:b}=i.LoginSuccess().validate(f,{abortEarly:!1,allowUnknown:!1});return b&&l({level:"WARN",message:`Response Validation Warnnings for application > User > deleteEmail \n ${b}`}),y}async deleteMobileNumber({active:e,primary:t,verified:r,countryCode:c,phone:u,platform:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.deleteMobileNumber().validate({active:e,primary:t,verified:r,countryCode:c,phone:u,platform:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.deleteMobileNumber().validate({active:e,primary:t,verified:r,countryCode:c,phone:u,platform:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > deleteMobileNumber \n ${w}`});const y={};y.platform=d,y.active=e,y.primary=t,y.verified=r,y.country_code=c,y.phone=u;const f=await a.execute(this._conf,"delete",o({url:this._urls.deleteMobileNumber,params:{}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.LoginSuccess().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > User > deleteMobileNumber \n ${h}`}),f}async deleteUser({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.deleteUser().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.deleteUser().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > deleteUser \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.deleteUser,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.DeleteUserSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > deleteUser \n ${g}`}),d}async forgotPassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.forgotPassword().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.forgotPassword().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > forgotPassword \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.forgotPassword,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.LoginSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > forgotPassword \n ${g}`}),d}async getListOfActiveSessions({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getListOfActiveSessions().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getListOfActiveSessions().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > getListOfActiveSessions \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getListOfActiveSessions,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.SessionListSuccess().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > User > getListOfActiveSessions \n ${p}`}),u}async getLoggedInUser({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getLoggedInUser().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getLoggedInUser().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > getLoggedInUser \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getLoggedInUser,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.UserObjectSchema().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > User > getLoggedInUser \n ${p}`}),u}async getPlatformConfig({name:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getPlatformConfig().validate({name:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getPlatformConfig().validate({name:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > getPlatformConfig \n ${u}`});const d={};d.name=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getPlatformConfig,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.PlatformSchema().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > User > getPlatformConfig \n ${m}`}),p}async hasPassword({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.hasPassword().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.hasPassword().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > hasPassword \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.hasPassword,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.HasPasswordSuccess().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > User > hasPassword \n ${p}`}),u}async loginWithAppleIOS({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.loginWithAppleIOS().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.loginWithAppleIOS().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithAppleIOS \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.loginWithAppleIOS,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.AuthSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > loginWithAppleIOS \n ${w}`}),g}async loginWithEmailAndPassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.loginWithEmailAndPassword().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.loginWithEmailAndPassword().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithEmailAndPassword \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.loginWithEmailAndPassword,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.LoginSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > loginWithEmailAndPassword \n ${g}`}),d}async loginWithFacebook({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.loginWithFacebook().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.loginWithFacebook().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithFacebook \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.loginWithFacebook,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.AuthSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > loginWithFacebook \n ${w}`}),g}async loginWithGoogle({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.loginWithGoogle().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.loginWithGoogle().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithGoogle \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.loginWithGoogle,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.AuthSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > loginWithGoogle \n ${w}`}),g}async loginWithGoogleAndroid({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.loginWithGoogleAndroid().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.loginWithGoogleAndroid().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithGoogleAndroid \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.loginWithGoogleAndroid,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.AuthSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > loginWithGoogleAndroid \n ${w}`}),g}async loginWithGoogleIOS({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.loginWithGoogleIOS().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.loginWithGoogleIOS().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithGoogleIOS \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.loginWithGoogleIOS,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.AuthSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > loginWithGoogleIOS \n ${w}`}),g}async loginWithOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.loginWithOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.loginWithOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithOTP \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.loginWithOTP,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.SendOtpResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > loginWithOTP \n ${w}`}),g}async loginWithToken({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.loginWithToken().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.loginWithToken().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithToken \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.loginWithToken,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.LoginSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > loginWithToken \n ${g}`}),d}async logout({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.logout().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.logout().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > logout \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.logout,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.LogoutSuccess().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > User > logout \n ${p}`}),u}async registerWithForm({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.registerWithForm().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.registerWithForm().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > registerWithForm \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.registerWithForm,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.RegisterFormSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > registerWithForm \n ${w}`}),g}async sendOTPOnEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.sendOTPOnEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.sendOTPOnEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > sendOTPOnEmail \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.sendOTPOnEmail,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.EmailOtpSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > sendOTPOnEmail \n ${w}`}),g}async sendOTPOnMobile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.sendOTPOnMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.sendOTPOnMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > sendOTPOnMobile \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.sendOTPOnMobile,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.OtpSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > sendOTPOnMobile \n ${w}`}),g}async sendResetPasswordEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.sendResetPasswordEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.sendResetPasswordEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > sendResetPasswordEmail \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.sendResetPasswordEmail,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.ResetPasswordSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > sendResetPasswordEmail \n ${w}`}),g}async sendResetPasswordMobile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.sendResetPasswordMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.sendResetPasswordMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > sendResetPasswordMobile \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.sendResetPasswordMobile,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.ResetPasswordSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > sendResetPasswordMobile \n ${w}`}),g}async sendResetToken({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.sendResetToken().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.sendResetToken().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > sendResetToken \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.sendResetToken,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ResetPasswordSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > sendResetToken \n ${g}`}),d}async sendVerificationLinkToEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.sendVerificationLinkToEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.sendVerificationLinkToEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > sendVerificationLinkToEmail \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.sendVerificationLinkToEmail,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.SendEmailVerifyLinkSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > sendVerificationLinkToEmail \n ${w}`}),g}async sendVerificationLinkToMobile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.sendVerificationLinkToMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.sendVerificationLinkToMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > sendVerificationLinkToMobile \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.sendVerificationLinkToMobile,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.SendMobileVerifyLinkSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > sendVerificationLinkToMobile \n ${w}`}),g}async setEmailAsPrimary({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.setEmailAsPrimary().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.setEmailAsPrimary().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > setEmailAsPrimary \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.setEmailAsPrimary,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.LoginSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > setEmailAsPrimary \n ${g}`}),d}async setMobileNumberAsPrimary({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.setMobileNumberAsPrimary().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.setMobileNumberAsPrimary().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > setMobileNumberAsPrimary \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.setMobileNumberAsPrimary,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.LoginSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > setMobileNumberAsPrimary \n ${g}`}),d}async updatePassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.updatePassword().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.updatePassword().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > updatePassword \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.updatePassword,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.VerifyEmailSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > updatePassword \n ${g}`}),d}async updateProfile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.updateProfile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.updateProfile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > updateProfile \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.updateProfile,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.ProfileEditSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > updateProfile \n ${w}`}),g}async verifyEmail({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.verifyEmail().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.verifyEmail().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyEmail \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.verifyEmail,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.VerifyEmailSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > verifyEmail \n ${g}`}),d}async verifyEmailOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.verifyEmailOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.verifyEmailOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyEmailOTP \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.verifyEmailOTP,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.VerifyOtpSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > verifyEmailOTP \n ${w}`}),g}async verifyMobile({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.verifyMobile().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.verifyMobile().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyMobile \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.verifyMobile,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.VerifyEmailSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > verifyMobile \n ${g}`}),d}async verifyMobileOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.verifyMobileOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.verifyMobileOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyMobileOTP \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.verifyMobileOTP,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.VerifyOtpSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > verifyMobileOTP \n ${w}`}),g}}},7022:(e,t,r)=>{const a=r(2705);class n{static Accountkit(){return a.object({app_id:a.string().allow("")})}static AuthenticationApiErrorSchema(){return a.object({message:a.string().allow("")})}static AuthenticationInternalServerErrorSchema(){return a.object({message:a.string().allow("")})}static AuthSuccess(){return a.object({register_token:a.string().allow(""),user:n.UserSchema(),user_exists:a.boolean()})}static CodeRequestBodySchema(){return a.object({code:a.string().allow("")})}static DeleteAccountConsent(){return a.object({consent_text:a.string().allow("")})}static DeleteAccountReasons(){return a.object({reason_id:a.string().allow(""),reason_text:a.string().allow(""),show_text_area:a.boolean()})}static DeleteApplicationUserRequestSchema(){return a.object({otp:a.string().allow(""),reason:a.string().allow(""),reason_id:a.string().allow(""),request_id:a.string().allow(""),user_id:a.string().allow("")})}static DeleteUserSuccess(){return a.object({success:a.boolean()})}static EditEmailRequestSchema(){return a.object({email:a.string().allow("")})}static EditMobileRequestSchema(){return a.object({country_code:a.string().allow(""),phone:a.string().allow("")})}static EditProfileMobileSchema(){return a.object({country_code:a.string().allow(""),phone:a.string().allow("")})}static EditProfileRequestSchema(){return a.object({android_hash:a.string().allow(""),country_code:a.string().allow(""),dob:a.string().allow(""),email:a.string().allow(""),first_name:a.string().allow(""),gender:a.string().allow(""),last_name:a.string().allow(""),mobile:n.EditProfileMobileSchema(),profile_pic_url:a.string().allow(""),register_token:a.string().allow(""),sender:a.string().allow("")})}static Email(){return a.object({active:a.boolean(),email:a.string().allow(""),primary:a.boolean(),verified:a.boolean()})}static EmailOtpSuccess(){return a.object({success:a.boolean()})}static Facebook(){return a.object({app_id:a.string().allow("")})}static FlashCard(){return a.object({background_color:a.string().allow(""),text:a.string().allow(""),text_color:a.string().allow("")})}static ForgotPasswordRequestSchema(){return a.object({code:a.string().allow(""),password:a.string().allow("")})}static FormRegisterRequestSchema(){return a.object({email:a.string().allow(""),first_name:a.string().allow(""),gender:a.string().allow(""),last_name:a.string().allow(""),password:a.string().allow(""),phone:n.FormRegisterRequestSchemaPhone(),register_token:a.string().allow("")})}static FormRegisterRequestSchemaPhone(){return a.object({country_code:a.string().allow(""),mobile:a.string().allow("")})}static Google(){return a.object({app_id:a.string().allow("")})}static HasPasswordSuccess(){return a.object({result:a.boolean()})}static Login(){return a.object({otp:a.boolean(),password:a.boolean()})}static LoginSuccess(){return a.object({register_token:a.string().allow(""),request_id:a.string().allow(""),user:n.UserSchema()})}static LogoutSuccess(){return a.object({logout:a.boolean()})}static LookAndFeel(){return a.object({background_color:a.string().allow(""),card_position:a.string().allow("")})}static MetaSchema(){return a.object({fynd_default:a.boolean()})}static OAuthRequestAppleSchema(){return a.object({oauth:n.OAuthRequestAppleSchemaOauth(),profile:n.OAuthRequestAppleSchemaProfile(),user_identifier:a.string().allow("")})}static OAuthRequestAppleSchemaOauth(){return a.object({identity_token:a.string().allow("")})}static OAuthRequestAppleSchemaProfile(){return a.object({first_name:a.string().allow(""),full_name:a.string().allow(""),last_name:a.string().allow("")})}static OAuthRequestSchema(){return a.object({is_signed_in:a.boolean(),oauth2:n.OAuthRequestSchemaOauth2(),profile:n.OAuthRequestSchemaProfile()})}static OAuthRequestSchemaOauth2(){return a.object({access_token:a.string().allow(""),expiry:a.number(),refresh_token:a.string().allow("")})}static OAuthRequestSchemaProfile(){return a.object({email:a.string().allow(""),first_name:a.string().allow(""),full_name:a.string().allow(""),id:a.string().allow(""),image:a.string().allow(""),last_name:a.string().allow("")})}static OtpSuccess(){return a.object({country_code:a.string().allow(""),message:a.string().allow(""),mobile:a.string().allow(""),register_token:a.string().allow(""),request_id:a.string().allow(""),resend_timer:a.number(),resend_token:a.string().allow(""),success:a.boolean()})}static PasswordLoginRequestSchema(){return a.object({captcha_code:a.string().allow(""),password:a.string().allow(""),username:a.string().allow("")})}static PhoneNumber(){return a.object({active:a.boolean(),country_code:a.number(),phone:a.string().allow(""),primary:a.boolean(),verified:a.boolean()})}static PlatformEmail(){return a.object({is_required:a.boolean(),level:a.string().allow("")})}static PlatformMobile(){return a.object({is_required:a.boolean(),level:a.string().allow("")})}static PlatformSchema(){return a.object({_id:a.string().allow(""),active:a.boolean(),created_at:a.string().allow(""),delete_account_consent:a.any(),delete_account_day:a.number(),delete_account_reasons:a.array().items(n.DeleteAccountReasons()),desktop_image:a.string().allow(""),display:a.string().allow(""),flash_card:n.FlashCard(),forgot_password:a.boolean(),login:n.Login(),look_and_feel:n.LookAndFeel(),meta:n.MetaSchema(),mobile_image:a.string().allow(""),name:a.string().allow(""),register:a.boolean(),register_required_fields:n.RegisterRequiredFields(),required_fields:n.RequiredFields(),session_config:a.any(),skip_captcha:a.boolean(),skip_login:a.boolean(),social:n.Social(),social_tokens:n.SocialTokens(),subtext:a.string().allow(""),updated_at:a.string().allow("")})}static ProfileEditSuccess(){return a.object({country_code:a.string().allow(""),email:a.string().allow(""),message:a.string().allow(""),mobile:a.string().allow(""),register_token:a.string().allow(""),request_id:a.string().allow(""),resend_email_token:a.string().allow(""),resend_timer:a.number(),resend_token:a.string().allow(""),success:a.boolean(),user:n.UserSchema(),user_exists:a.boolean(),verify_email_link:a.boolean(),verify_email_otp:a.boolean(),verify_mobile_otp:a.boolean()})}static RegisterFormSuccess(){return a.object({country_code:a.string().allow(""),email:a.string().allow(""),message:a.string().allow(""),mobile:a.string().allow(""),register_token:a.string().allow(""),request_id:a.string().allow(""),resend_email_token:a.string().allow(""),resend_timer:a.number(),resend_token:a.string().allow(""),success:a.boolean(),user_exists:a.boolean(),verify_email_otp:a.boolean(),verify_mobile_otp:a.boolean()})}static RegisterRequiredFields(){return a.object({email:n.RegisterRequiredFieldsEmail(),mobile:n.RegisterRequiredFieldsMobile()})}static RegisterRequiredFieldsEmail(){return a.object({is_required:a.boolean(),level:a.string().allow("")})}static RegisterRequiredFieldsMobile(){return a.object({is_required:a.boolean(),level:a.string().allow("")})}static RequiredFields(){return a.object({email:n.PlatformEmail(),mobile:n.PlatformMobile()})}static ResetPasswordSuccess(){return a.object({status:a.string().allow("")})}static SendEmailOtpRequestSchema(){return a.object({action:a.string().allow(""),captcha_code:a.string().allow(""),email:a.string().allow(""),register_token:a.string().allow(""),token:a.string().allow("")})}static SendEmailVerifyLinkSuccess(){return a.object({verify_email_link:a.boolean()})}static SendMobileOtpRequestSchema(){return a.object({action:a.string().allow(""),android_hash:a.string().allow(""),captcha_code:a.string().allow(""),country_code:a.string().allow(""),force:a.string().allow(""),mobile:a.string().allow(""),token:a.string().allow("")})}static SendMobileVerifyLinkSuccess(){return a.object({verify_mobile_link:a.boolean()})}static SendOtpRequestSchema(){return a.object({android_hash:a.string().allow(""),captcha_code:a.string().allow(""),country_code:a.string().allow(""),mobile:a.string().allow("")})}static SendOtpResponse(){return a.object({country_code:a.string().allow(""),email:a.string().allow(""),message:a.string().allow(""),mobile:a.string().allow(""),register_token:a.string().allow(""),request_id:a.string().allow(""),resend_email_token:a.string().allow(""),resend_timer:a.number(),resend_token:a.string().allow(""),success:a.boolean(),user_exists:a.boolean(),verify_email_otp:a.boolean(),verify_mobile_otp:a.boolean()})}static SendResetPasswordEmailRequestSchema(){return a.object({captcha_code:a.string().allow(""),email:a.string().allow("")})}static SendResetPasswordMobileRequestSchema(){return a.object({captcha_code:a.string().allow(""),country_code:a.string().allow(""),mobile:a.string().allow("")})}static SendVerificationLinkMobileRequestSchema(){return a.object({active:a.boolean(),country_code:a.string().allow(""),phone:a.string().allow(""),primary:a.boolean(),verified:a.boolean()})}static SessionExpiry(){return a.object({duration:a.number(),is_rolling:a.boolean(),type:a.string().allow("")})}static SessionListSuccess(){return a.object({sessions:a.array().items(a.string().allow(""))})}static Social(){return a.object({account_kit:a.boolean(),apple:a.boolean(),facebook:a.boolean(),google:a.boolean()})}static SocialTokens(){return a.object({account_kit:n.Accountkit(),facebook:n.Facebook(),google:n.Google()})}static TokenRequestBodySchema(){return a.object({token:a.string().allow("")})}static UpdatePasswordRequestSchema(){return a.object({new_password:a.string().allow(""),old_password:a.string().allow("")})}static UserObjectSchema(){return a.object({user:n.UserSchema()})}static UserSchema(){return a.object({_id:a.string().allow(""),account_type:a.string().allow(""),active:a.boolean(),application_id:a.string().allow(""),created_at:a.string().allow(""),dob:a.string().allow(""),emails:a.array().items(n.Email()),first_name:a.string().allow(""),gender:a.string().allow(""),last_name:a.string().allow(""),meta:a.any(),phone_numbers:a.array().items(n.PhoneNumber()),profile_pic_url:a.string().allow(""),updated_at:a.string().allow(""),user_id:a.string().allow(""),username:a.string().allow("")})}static VerifyEmailOtpRequestSchema(){return a.object({action:a.string().allow(""),email:a.string().allow(""),otp:a.string().allow(""),register_token:a.string().allow("")})}static VerifyEmailOTPSuccess(){return a.object({user:n.UserSchema(),verify_email_link:a.boolean()})}static VerifyEmailSuccess(){return a.object({message:a.string().allow("")})}static VerifyMobileOTPSuccess(){return a.object({user:n.UserSchema(),verify_mobile_link:a.boolean()})}static VerifyOtpRequestSchema(){return a.object({otp:a.string().allow(""),register_token:a.string().allow(""),request_id:a.string().allow("")})}static VerifyOtpSuccess(){return a.object({register_token:a.string().allow(""),user:n.UserSchema(),user_exists:a.boolean()})}}e.exports=n},7727:(e,t,r)=>{const a=r(2705),n=r(7022);e.exports=class{static addEmail(){return a.object({platform:a.string().allow(""),body:n.EditEmailRequestSchema().required()}).required()}static addMobileNumber(){return a.object({platform:a.string().allow(""),body:n.EditMobileRequestSchema().required()}).required()}static deleteEmail(){return a.object({platform:a.string().allow(""),active:a.boolean().required(),primary:a.boolean().required(),verified:a.boolean().required(),email:a.string().allow("").required()}).required()}static deleteMobileNumber(){return a.object({platform:a.string().allow(""),active:a.boolean().required(),primary:a.boolean().required(),verified:a.boolean().required(),countryCode:a.string().allow("").required(),phone:a.string().allow("").required()}).required()}static deleteUser(){return a.object({body:n.DeleteApplicationUserRequestSchema().required()}).required()}static forgotPassword(){return a.object({body:n.ForgotPasswordRequestSchema().required()}).required()}static getListOfActiveSessions(){return a.object({})}static getLoggedInUser(){return a.object({})}static getPlatformConfig(){return a.object({name:a.string().allow("")})}static hasPassword(){return a.object({})}static loginWithAppleIOS(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestAppleSchema().required()}).required()}static loginWithEmailAndPassword(){return a.object({body:n.PasswordLoginRequestSchema().required()}).required()}static loginWithFacebook(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestSchema().required()}).required()}static loginWithGoogle(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestSchema().required()}).required()}static loginWithGoogleAndroid(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestSchema().required()}).required()}static loginWithGoogleIOS(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestSchema().required()}).required()}static loginWithOTP(){return a.object({platform:a.string().allow(""),body:n.SendOtpRequestSchema().required()}).required()}static loginWithToken(){return a.object({body:n.TokenRequestBodySchema().required()}).required()}static logout(){return a.object({})}static registerWithForm(){return a.object({platform:a.string().allow(""),body:n.FormRegisterRequestSchema().required()}).required()}static sendOTPOnEmail(){return a.object({platform:a.string().allow(""),body:n.SendEmailOtpRequestSchema().required()}).required()}static sendOTPOnMobile(){return a.object({platform:a.string().allow(""),body:n.SendMobileOtpRequestSchema().required()}).required()}static sendResetPasswordEmail(){return a.object({platform:a.string().allow(""),body:n.SendResetPasswordEmailRequestSchema().required()}).required()}static sendResetPasswordMobile(){return a.object({platform:a.string().allow(""),body:n.SendResetPasswordMobileRequestSchema().required()}).required()}static sendResetToken(){return a.object({body:n.CodeRequestBodySchema().required()}).required()}static sendVerificationLinkToEmail(){return a.object({platform:a.string().allow(""),body:n.EditEmailRequestSchema().required()}).required()}static sendVerificationLinkToMobile(){return a.object({platform:a.string().allow(""),body:n.SendVerificationLinkMobileRequestSchema().required()}).required()}static setEmailAsPrimary(){return a.object({body:n.EditEmailRequestSchema().required()}).required()}static setMobileNumberAsPrimary(){return a.object({body:n.SendVerificationLinkMobileRequestSchema().required()}).required()}static updatePassword(){return a.object({body:n.UpdatePasswordRequestSchema().required()}).required()}static updateProfile(){return a.object({platform:a.string().allow(""),body:n.EditProfileRequestSchema().required()}).required()}static verifyEmail(){return a.object({body:n.CodeRequestBodySchema().required()}).required()}static verifyEmailOTP(){return a.object({platform:a.string().allow(""),body:n.VerifyEmailOtpRequestSchema().required()}).required()}static verifyMobile(){return a.object({body:n.CodeRequestBodySchema().required()}).required()}static verifyMobileOTP(){return a.object({platform:a.string().allow(""),body:n.VerifyOtpRequestSchema().required()}).required()}}},7854:(e,t,r)=>{const a=r(3204);e.exports=({url:e,params:t})=>e.split("/").map((e=>("{"===e[0]&&"}"===e[e.length-1]&&(e=t[a(e.slice(1,e.length-1))]),e))).join("/")},911:(e,t,r)=>{e.exports={ApplicationConfig:r(6894),ApplicationClient:r(9007),ApplicationModel:{CartApplicationModel:r(7350),CatalogApplicationModel:r(5761),CommonApplicationModel:r(1844),CommunicationApplicationModel:r(4752),ConfigurationApplicationModel:r(4328),ContentApplicationModel:r(3377),FileStorageApplicationModel:r(5108),LeadApplicationModel:r(4535),LogisticApplicationModel:r(9541),OrderApplicationModel:r(2453),PaymentApplicationModel:r(8487),PosCartApplicationModel:r(6962),RewardsApplicationModel:r(2743),ShareApplicationModel:r(6734),ThemeApplicationModel:r(6377),UserApplicationModel:r(7022)}}},2638:(e,t,r)=>{const a=r(7303),n=r(1793),o=r(9669),s=r(7563),{sign:i}=r(5113),{FDKServerResponseError:l}=r(7208),{log:c,Logger:u,getLoggerLevel:d}=r(7378),p=r(6081),{version:g}=r(4147);o.defaults.withCredentials=!0;const m=o.create({paramsSerializer:e=>s.stringify(e)});m.interceptors.request.use((function(e){try{if(d()<=c.levels.DEBUG){const t=p(e);c.debug(t)}}catch(e){u({level:"ERROR",message:`Error Generating Curl: ${e}`})}finally{return e}}),(function(e){u({level:"ERROR",message:e.data||e.message,stack:e.data.stack||e.stack})})),m.interceptors.request.use((e=>{if(!e.url)throw new Error("No URL present in request config, unable to sign request");let t=e.url;e.baseURL&&!n(e.url)&&(t=a(e.baseURL,e.url));const{host:r,pathname:o,search:l}=new URL(t),{data:c,headers:u,method:d,params:p}=e;u["x-fp-sdk-version"]=g;let m=s.parse(l);m={...m,...p};let w,y="";if(m&&Object.keys(m).length&&""!==s.stringify(m).trim()&&(y=`?${s.stringify(m)}`),"get"!=d){const t=function(e){const{transformRequest:t}=e;if(t){if("function"==typeof t)return t;if(t.length)return t[0]}throw new Error("Could not get default transformRequest function from Axios defaults")}(e);w=t(c,u)}const{common:f,delete:b,get:h,head:_,post:v,put:k,patch:R,...P}=u,C={method:d&&d.toUpperCase(),host:r,path:o+l+y,body:w,headers:P};return i(C,"1234567"),e.headers["x-fp-date"]=C.headers["x-fp-date"],e.headers["x-fp-signature"]=C.headers["x-fp-signature"],e})),m.interceptors.response.use((function(e){return"head"==e.config.method?e.headers:(u({level:"DEBUG",type:"RESPONSE",message:e.data,url:e.config.url}),e.config.responseHeaders?[e.data,e.headers]:e.data)}),(function(e){throw e.response?(u({level:"ERROR",message:e.response.data||e.message,stack:e.response.data.stack||e.stack,request:{method:e.config.method,url:e.config.url,headers:e.config.headers}}),new l(e.response.data.message||e.message,e.response.data.stack||e.stack,e.response.statusText,e.response.status,e.response.data)):e.request?(u({level:"ERROR",message:e.data||e.message,stack:e.data.stack||e.stack,request:{method:e.config.method,url:e.config.url,headers:e.config.headers}}),new l(e.message,e.stack,e.code,e.code)):(u({level:"ERROR",message:e.message}),new l(e.message,e.stack))})),e.exports={fdkAxios:m}},7208:e=>{class t extends Error{constructor(e,t,r=null,a=null,n=null){super(e),this.name="FDKServerResponseError",this.stackTrace=t,this.status=r,this.code=a,this.details=n}}class r extends Error{constructor(e){super(e.message),this.name="FDKClientValidationError",this.details=e.details}}class a extends Error{constructor(e){super(e),this.name="FDKInvalidCredentialError"}}class n extends Error{constructor(e){super(e),this.name="FDKTokenIssueError"}}class o extends Error{constructor(e){super(e),this.name="FDKOAuthCodeError"}}class s extends Error{constructor(e){super(e),this.name="FDKException"}}e.exports={FDKServerResponseError:t,FDKClientValidationError:r,FDKInvalidCredentialError:a,FDKTokenIssueError:n,FDKOAuthCodeError:o,FDKException:s}},7378:(e,t,r)=>{const a=r(2043),n=r(4147).version;function o(){return(new Date).toString()}e.exports={log:a,Logger:function(e){const{level:t,message:r,...s}=e;"TRACE"===t&&a.trace(JSON.stringify({level:t,detail:r,...s,time:o(),version:n})),"DEBUG"===t&&a.debug(JSON.stringify({level:t,detail:r,...s,time:o(),version:n})),"INFO"===t&&a.info(JSON.stringify({level:t,detail:r,...s,time:o(),version:n})),"WARN"===t&&a.warn(JSON.stringify({level:t,detail:r,...s,time:o(),version:n})),"ERROR"===t&&a.error(JSON.stringify({level:t,detail:r,...s,time:o(),version:n}))},setLoggerLevel:function(e){a.setLevel(e)},getLoggerLevel:function(){return a.getLevel()}}},3589:e=>{e.exports=class{constructor(e){this.pageNo=e,this.callback=void 0}setCallback(e){this.callback=e}hasNext(){return this.isNext}setPaginator({hasNext:e,nextId:t,pageNo:r=1}){this.isNext=e,this.nextId=t,this.pageNo=r}next(){return this.callback()}}},6081:(e,t,r)=>{const a=r(7563),n=r(7303),o=r(1793);let s;e.exports=function(e){return s=e,`curl ${`--request ${s.method.toUpperCase()}`.trim()} "${function(){let e=s.url;s.baseURL&&!o(e)&&(e=n(s.baseURL,e).trim());let{search:t}=new URL(e);queryParamObject={...a.parse(t),...s.params};let r="";return queryParamObject&&Object.keys(queryParamObject).length&&""!==a.stringify(queryParamObject).trim()&&(r=`?${a.stringify(queryParamObject).trim()}`),`${e}${t.trim()}${r}`}()}" ${function(){let e=["common","delete","get","head","post","put","patch"],t={};s.headers[s.method]&&(t=s.headers[s.method]),t=Object.keys(t).reduce(((e,r)=>(e[r.toLowerCase()]=t[r],e)),{});for(let r in s.headers)e.includes(r)||(s.headers[r]instanceof Object?t[r.toLowerCase()]=JSON.stringify(s.headers[r]):t[r.toLowerCase()]=s.headers[r]);let r="";for(let e in t)r+=` --header '${e}: ${t[e]}'`;return r.trim()}()} ${"GET"!==s.method.toUpperCase()&&null!==s.data&&""!==s.data&&s.data?`--data-raw '${JSON.stringify(s.data)}'`.trim():""}`.trim()}},5860:(e,t,r)=>{const{FDKException:a}=r(7208),n=":::",o=e=>{let t="";for(const r in e)if("object"!=typeof e[r]&&e[r]){const a=encodeURIComponent(e[r]);t+=`${r}=${a}&`}else Array.isArray(e[r])?e[r].forEach((e=>{const a=encodeURIComponent(e);t+=`${r}=${a}&`})):"object"==typeof e[r]&&e[r]&&(t+=o(e[r]));return t?t.slice(0,-1):t},s=(e="",t="/")=>{for(;e.charAt(0)==t;)e=e.substring(1);for(;e.charAt(e.length-1)==t;)e=e.substring(0,e.length-1);return e},i=()=>"undefined"!=typeof window&&void 0!==window.document,l=()=>"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;e.exports={transformRequestOptions:o,getParamsFromItem:e=>{let t="";for(let r in e)if(Array.isArray(e[r])){for(let a=0;a{let t=e.split("?");if(t.length>1){const e=new URLSearchParams(t[1]);let r={};for(let t of e){let e=t[0],a=t[1];r[e]=r[e]?[...r[e],a]:[a]}return r}return{}},trimChar:s,generateUrlWithParams:(e={},t)=>{if(!e||!e.link)return"";if(!t)return`/${s(e.link.split(":")[0])}`;const r={};for(let e in t)if(Array.isArray(t[e])){let a="";for(let r=0;r{let r={value:"",params:{}};t=s(t);for(let a=0;a{if(l())return Buffer.from(e,"utf-8").toString("base64");if(i())return window.btoa(e);throw a("Base64 conversion error: Unsupported environment")},isBrowser:i,isNode:l,NAV_TYPE:{PAGE:"page",POPUP:"popup"}}},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"@gofynd/fdk-client-javascript","version":"1.3.3","description":"","main":"index.js","scripts":{"test":"jest --coverage","test:standalone":"npm run build && npx cypress run","build":"webpack","prettier":"npx prettier -w ./sdk ./tests && npx tsc"},"author":"Jigar Dafda","license":"ISC","dependencies":{"axios":"^0.27.2","camelcase":"^6.3.0","crypto-js":"^4.1.1","joi":"^17.7.0","loglevel":"^1.8.1","query-string":"^7.1.3","@gofynd/fp-signature":"^0.0.2-alpha.1"},"devDependencies":{"axios-cookiejar-support":"^4.0.6","axios-mock-adapter":"^1.21.2","clean-webpack-plugin":"^4.0.0","coveralls":"^3.1.1","cypress":"^9.2.0","dotenv":"^16.0.3","jest":"^29.5.0","tough-cookie":"^4.1.2","webpack":"^5.81.0","webpack-cli":"^5.0.2"},"files":["sdk/**/*.js","sdk/**/*.d.ts","./*.js","./*.d.ts","!**.config.*","!dist","!cypress"]}')}},t={},r=function r(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a].call(o.exports,o,o.exports,r),o.exports}(469),a=window;for(var n in r)a[n]=r[n];r.__esModule&&Object.defineProperty(a,"__esModule",{value:!0})})(); \ No newline at end of file +(()=>{var e={469:(e,t,r)=>{const{ApplicationConfig:a,ApplicationClient:n,ApplicationModel:o}=r(911);e.exports={ApplicationConfig:a,ApplicationClient:n,ApplicationModel:o}},5113:e=>{var t;self,t=()=>(()=>{var e={249:function(e,t,r){var a;e.exports=(a=a||function(e,t){var a;if("undefined"!=typeof window&&window.crypto&&(a=window.crypto),"undefined"!=typeof self&&self.crypto&&(a=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(a=globalThis.crypto),!a&&"undefined"!=typeof window&&window.msCrypto&&(a=window.msCrypto),!a&&void 0!==r.g&&r.g.crypto&&(a=r.g.crypto),!a)try{a=r(480)}catch(e){}var n=function(){if(a){if("function"==typeof a.getRandomValues)try{return a.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof a.randomBytes)try{return a.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},i=s.lib={},l=i.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=i.WordArray=l.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,a=this.sigBytes,n=e.sigBytes;if(this.clamp(),a%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[a+o>>>2]|=s<<24-(a+o)%4*8}else for(var i=0;i>>2]=r[i>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-n%4*8&255;a.push((o>>>4).toString(16)),a.push((15&o).toString(16))}return a.join("")},parse:function(e){for(var t=e.length,r=[],a=0;a>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new c.init(r,t/2)}},p=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,a=[],n=0;n>>2]>>>24-n%4*8&255;a.push(String.fromCharCode(o))}return a.join("")},parse:function(e){for(var t=e.length,r=[],a=0;a>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new c.init(r,t)}},g=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},m=i.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=g.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,a=this._data,n=a.words,o=a.sigBytes,s=this.blockSize,i=o/(4*s),l=(i=t?e.ceil(i):e.max((0|i)-this._minBufferSize,0))*s,u=e.min(4*l,o);if(l){for(var d=0;da&&(t=e.finalize(t)),t.clamp();for(var n=this._oKey=t.clone(),s=this._iKey=t.clone(),i=n.words,l=s.words,c=0;c>>7)^(m<<14|m>>>18)^m>>>3,y=c[g-2],f=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;c[g]=w+c[g-7]+f+c[g-16]}var b=a&n^a&o^n&o,h=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),_=p+((i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25))+(i&u^~i&d)+l[g]+c[g];p=d,d=u,u=i,i=s+_|0,s=o,o=n,n=a,a=_+(h+b)|0}r[0]=r[0]+a|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+i|0,r[5]=r[5]+u|0,r[6]=r[6]+d|0,r[7]=r[7]+p|0},_doFinalize:function(){var t=this._data,r=t.words,a=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(a/4294967296),r[15+(n+64>>>9<<4)]=a,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),a.SHA256)},335:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,a,n,o){a=a||"&",n=n||"=";var s={};if("string"!=typeof e||0===e.length)return s;var i=/\+/g;e=e.split(a);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u=0?(d=w.substr(0,y),p=w.substr(y+1)):(d=w,p=""),g=decodeURIComponent(d),m=decodeURIComponent(p),t(s,g)?r(s[g])?s[g].push(m):s[g]=[s[g],m]:s[g]=m}return s};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},795:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,s,i){return o=o||"&",s=s||"=",null===e&&(e=void 0),"object"==typeof e?a(n(e),(function(n){var i=encodeURIComponent(t(n))+s;return r(e[n])?a(e[n],(function(e){return i+encodeURIComponent(t(e))})).join(o):i+encodeURIComponent(t(e[n]))})).join(o):i?encodeURIComponent(t(i))+s+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var r=[],a=0;a{"use strict";t.decode=t.parse=r(335),t.encode=t.stringify=r(795)},832:function(e,t,r){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(735)),o=r(601),s=r(593),i=function(){function e(e,t){if(!t)throw new Error("Signature secrete cannot be null, pass secret parameter in constructor.");this.secret=t;var r=e.headers=e.headers||{};this.request=e,!e.method&&e.body&&(e.method="POST"),r.Host||r.host||(r.Host=e.hostname||e.host,e.port&&(r.Host+=":"+e.port)),e.hostname||e.host||(e.hostname=r.Host||r.host)}return e.prototype.prepareRequest=function(){this.parsePath();var e,t=this.request,r=t.headers;t.signQuery?(this.parsedPath.query=e=this.parsedPath.query||{},e["x-fp-date"]?this.datetime=e["x-fp-date"]:e["x-fp-date"]=this.getDateTime()):(t.doNotModifyHeaders||(r["x-fp-date"]?this.datetime=r["x-fp-date"]||r["x-fp-date"]:r["x-fp-date"]=this.getDateTime()),delete r["x-fp-signature"],delete r["X-Fp-Signature"])},e.prototype.sign=function(){return this.parsedPath||this.prepareRequest(),this.request.signQuery?this.parsedPath.query["x-fp-signature"]=this.signature():this.request.headers["x-fp-signature"]=this.signature(),this.request.path=this.formatPath(),this.request},e.prototype.getDateTime=function(){if(!this.datetime){var e=this.request.headers,t=new Date(e.Date||e.date||new Date);this.datetime=t.toISOString().replace(/[:\-]|\.\d{3}/g,"")}return this.datetime},e.prototype.getDate=function(){return this.getDateTime().substr(0,8)},e.prototype.signature=function(){var e=this.stringToSign();return"v1.1:".concat((0,s.hmac)(this.secret,e,"hex"))},e.prototype.stringToSign=function(){return[this.getDateTime(),(0,s.hash)(this.canonicalString(),"hex")].join("\n")},e.prototype.canonicalString=function(){this.parsedPath||this.prepareRequest();var e=this.parsedPath.path,t=this.parsedPath.query,r=(this.request.headers,""),a=this.request.doNotEncodePath,n=(0,s.hash)(this.request.body||"","hex");if(t){var o=Object.keys(t).reduce((function(e,r){return r?(e[(0,s.encodeRfc3986Full)(r)]=(Array.isArray(t[r]),t[r]),e):e}),{}),i=[];Object.keys(o).sort().forEach((function(e){Array.isArray(o[e])?o[e].map(s.encodeRfc3986Full).sort().forEach((function(t){i.push(e+"="+t)})):i.push(e+"="+(0,s.encodeRfc3986Full)(o[e]))})),r=i.join("&")}return"/"!==e&&"/"!==(e=(e=e.replace(/\/{2,}/g,"/")).split("/").reduce((function(e,t){return".."===t?e.pop():"."!==t&&(a&&(t=decodeURIComponent(t.replace(/\+/g," "))),e.push((0,s.encodeRfc3986Full)(t))),e}),[]).join("/"))[0]&&(e="/"+e),[this.request.method||"GET",e,r,this.canonicalHeaders()+"\n",this.signedHeaders(),n].join("\n")},e.prototype.canonicalHeaders=function(){var e=this.request.headers;return Object.keys(e).filter((function(e){if(null==o.HEADERS_TO_IGNORE[e.toLowerCase()]){var t=!1;for(var r in o.HEADERS_TO_INCLUDE)t=t||new RegExp(o.HEADERS_TO_INCLUDE[r],"ig").test(e);return t}return!1})).sort((function(e,t){return e.toLowerCase()=0&&(r=n.default.parse(e.slice(t+1)),e=e.slice(0,t)),e=e.split("/").map((function(e){return encodeURIComponent(decodeURIComponent(e))})).join("/"),this.parsedPath={path:e,query:r}},e.prototype.formatPath=function(){var e=this.parsedPath.path,t=this.parsedPath.query;return t?(null!=t[""]&&delete t[""],e+"?"+(0,s.encodeRfc3986)(n.default.stringify(t))):e},e}();t.default=i},601:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HEADERS_TO_INCLUDE=t.HEADERS_TO_IGNORE=void 0,t.HEADERS_TO_IGNORE={authorization:!0,connection:!0,"x-amzn-trace-id":!0,"user-agent":!0,expect:!0,"presigned-expires":!0,range:!0},t.HEADERS_TO_INCLUDE=["x-fp-.*","host"]},607:function(e,t,r){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sign=void 0;var n=a(r(832));t.sign=function(e,t){return new n.default(e,t).sign()}},593:function(e,t,r){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.encodeRfc3986Full=t.encodeRfc3986=t.hash=t.hmac=void 0;var n=a(r(153)),o=a(r(10));t.hmac=function(e,t,r){return(0,o.default)(t,e).toString()},t.hash=function(e,t){return(0,n.default)(e).toString()},t.encodeRfc3986=function(e){return e.replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))},t.encodeRfc3986Full=function(e){return e}},480:()=>{}},t={};function r(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a].call(o.exports,o,o.exports,r),o.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r(607)})(),e.exports=t()},9669:(e,t,r)=>{e.exports=r(1609)},5448:(e,t,r)=>{"use strict";var a=r(4867),n=r(6026),o=r(4372),s=r(5327),i=r(4097),l=r(4109),c=r(7985),u=r(7874),d=r(2648),p=r(644),g=r(205);e.exports=function(e){return new Promise((function(t,r){var m,w=e.data,y=e.headers,f=e.responseType;function b(){e.cancelToken&&e.cancelToken.unsubscribe(m),e.signal&&e.signal.removeEventListener("abort",m)}a.isFormData(w)&&a.isStandardBrowserEnv()&&delete y["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(_+":"+v)}var k=i(e.baseURL,e.url);function R(){if(h){var a="getAllResponseHeaders"in h?l(h.getAllResponseHeaders()):null,o={data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:a,config:e,request:h};n((function(e){t(e),b()}),(function(e){r(e),b()}),o),h=null}}if(h.open(e.method.toUpperCase(),s(k,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=R:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(R)},h.onabort=function(){h&&(r(new d("Request aborted",d.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new d("Network Error",d.ERR_NETWORK,e,h,h)),h=null},h.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",a=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new d(t,a.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,h)),h=null},a.isStandardBrowserEnv()){var P=(e.withCredentials||c(k))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;P&&(y[e.xsrfHeaderName]=P)}"setRequestHeader"in h&&a.forEach(y,(function(e,t){void 0===w&&"content-type"===t.toLowerCase()?delete y[t]:h.setRequestHeader(t,e)})),a.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),f&&"json"!==f&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(m=function(e){h&&(r(!e||e&&e.type?new p:e),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(m),e.signal&&(e.signal.aborted?m():e.signal.addEventListener("abort",m))),w||(w=null);var q=g(k);q&&-1===["http","https","file"].indexOf(q)?r(new d("Unsupported protocol "+q+":",d.ERR_BAD_REQUEST,e)):h.send(w)}))}},1609:(e,t,r)=>{"use strict";var a=r(4867),n=r(1849),o=r(321),s=r(7185),i=function e(t){var r=new o(t),i=n(o.prototype.request,r);return a.extend(i,o.prototype,r),a.extend(i,r),i.create=function(r){return e(s(t,r))},i}(r(5546));i.Axios=o,i.CanceledError=r(644),i.CancelToken=r(4972),i.isCancel=r(6502),i.VERSION=r(7288).version,i.toFormData=r(7675),i.AxiosError=r(2648),i.Cancel=i.CanceledError,i.all=function(e){return Promise.all(e)},i.spread=r(8713),i.isAxiosError=r(6268),e.exports=i,e.exports.default=i},4972:(e,t,r)=>{"use strict";var a=r(644);function n(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,a=r._listeners.length;for(t=0;t{"use strict";var a=r(2648);function n(e){a.call(this,null==e?"canceled":e,a.ERR_CANCELED),this.name="CanceledError"}r(4867).inherits(n,a,{__CANCEL__:!0}),e.exports=n},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,r)=>{"use strict";var a=r(4867),n=r(5327),o=r(782),s=r(3572),i=r(7185),l=r(4097),c=r(4875),u=c.validators;function d(e){this.defaults=e,this.interceptors={request:new o,response:new o}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=i(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var a=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!n){var d=[s,void 0];for(Array.prototype.unshift.apply(d,a),d=d.concat(l),o=Promise.resolve(t);d.length;)o=o.then(d.shift(),d.shift());return o}for(var p=t;a.length;){var g=a.shift(),m=a.shift();try{p=g(p)}catch(e){m(e);break}}try{o=s(p)}catch(e){return Promise.reject(e)}for(;l.length;)o=o.then(l.shift(),l.shift());return o},d.prototype.getUri=function(e){e=i(this.defaults,e);var t=l(e.baseURL,e.url);return n(t,e.params,e.paramsSerializer)},a.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,r){return this.request(i(r||{},{method:e,url:t,data:(r||{}).data}))}})),a.forEach(["post","put","patch"],(function(e){function t(t){return function(r,a,n){return this.request(i(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:a}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},2648:(e,t,r)=>{"use strict";var a=r(4867);function n(e,t,r,a,n){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),a&&(this.request=a),n&&(this.response=n)}a.inherits(n,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=n.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(n,s),Object.defineProperty(o,"isAxiosError",{value:!0}),n.from=function(e,t,r,s,i,l){var c=Object.create(o);return a.toFlatObject(e,c,(function(e){return e!==Error.prototype})),n.call(c,e.message,t,r,s,i),c.name=e.name,l&&Object.assign(c,l),c},e.exports=n},782:(e,t,r)=>{"use strict";var a=r(4867);function n(){this.handlers=[]}n.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},n.prototype.forEach=function(e){a.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=n},4097:(e,t,r)=>{"use strict";var a=r(1793),n=r(7303);e.exports=function(e,t){return e&&!a(t)?n(e,t):t}},3572:(e,t,r)=>{"use strict";var a=r(4867),n=r(8527),o=r(6502),s=r(5546),i=r(644);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new i}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=n.call(e,e.data,e.headers,e.transformRequest),e.headers=a.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),a.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return l(e),t.data=n.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=n.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},7185:(e,t,r)=>{"use strict";var a=r(4867);e.exports=function(e,t){t=t||{};var r={};function n(e,t){return a.isPlainObject(e)&&a.isPlainObject(t)?a.merge(e,t):a.isPlainObject(t)?a.merge({},t):a.isArray(t)?t.slice():t}function o(r){return a.isUndefined(t[r])?a.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function s(e){if(!a.isUndefined(t[e]))return n(void 0,t[e])}function i(r){return a.isUndefined(t[r])?a.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function l(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l};return a.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,n=t(e);a.isUndefined(n)&&t!==l||(r[e]=n)})),r}},6026:(e,t,r)=>{"use strict";var a=r(2648);e.exports=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new a("Request failed with status code "+r.status,[a.ERR_BAD_REQUEST,a.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},8527:(e,t,r)=>{"use strict";var a=r(4867),n=r(5546);e.exports=function(e,t,r){var o=this||n;return a.forEach(r,(function(r){e=r.call(o,e,t)})),e}},5546:(e,t,r)=>{"use strict";var a=r(4867),n=r(6016),o=r(2648),s=r(7874),i=r(7675),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!a.isUndefined(e)&&a.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,d={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=r(5448)),u),transformRequest:[function(e,t){if(n(t,"Accept"),n(t,"Content-Type"),a.isFormData(e)||a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e))return e;if(a.isArrayBufferView(e))return e.buffer;if(a.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,o=a.isObject(e),s=t&&t["Content-Type"];if((r=a.isFileList(e))||o&&"multipart/form-data"===s){var l=this.env&&this.env.FormData;return i(r?{"files[]":e}:e,l&&new l)}return o||"application/json"===s?(c(t,"application/json"),function(e,t,r){if(a.isString(e))try{return(0,JSON.parse)(e),a.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,s=!r&&"json"===this.responseType;if(s||n&&a.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(1623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){d.headers[e]=a.merge(l)})),e.exports=d},7874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.27.2"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),a=0;a{"use strict";var a=r(4867);function n(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(a.isURLSearchParams(t))o=t.toString();else{var s=[];a.forEach(t,(function(e,t){null!=e&&(a.isArray(e)?t+="[]":e=[e],a.forEach(e,(function(e){a.isDate(e)?e=e.toISOString():a.isObject(e)&&(e=JSON.stringify(e)),s.push(n(t)+"="+n(e))})))})),o=s.join("&")}if(o){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,r)=>{"use strict";var a=r(4867);e.exports=a.isStandardBrowserEnv()?{write:function(e,t,r,n,o,s){var i=[];i.push(e+"="+encodeURIComponent(t)),a.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),a.isString(n)&&i.push("path="+n),a.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,r)=>{"use strict";var a=r(4867);e.exports=function(e){return a.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,r)=>{"use strict";var a=r(4867);e.exports=a.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var a=e;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=a.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},6016:(e,t,r)=>{"use strict";var a=r(4867);e.exports=function(e,t){a.forEach(e,(function(r,a){a!==t&&a.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[a])}))}},1623:e=>{e.exports=null},4109:(e,t,r)=>{"use strict";var a=r(4867),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,s={};return e?(a.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=a.trim(e.substr(0,o)).toLowerCase(),r=a.trim(e.substr(o+1)),t){if(s[t]&&n.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([r]):s[t]?s[t]+", "+r:r}})),s):s}},205:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7675:(e,t,r)=>{"use strict";var a=r(4867);e.exports=function(e,t){t=t||new FormData;var r=[];function n(e){return null===e?"":a.isDate(e)?e.toISOString():a.isArrayBuffer(e)||a.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,s){if(a.isPlainObject(o)||a.isArray(o)){if(-1!==r.indexOf(o))throw Error("Circular reference detected in "+s);r.push(o),a.forEach(o,(function(r,o){if(!a.isUndefined(r)){var i,l=s?s+"."+o:o;if(r&&!s&&"object"==typeof r)if(a.endsWith(o,"{}"))r=JSON.stringify(r);else if(a.endsWith(o,"[]")&&(i=a.toArray(r)))return void i.forEach((function(e){!a.isUndefined(e)&&t.append(l,n(e))}));e(r,l)}})),r.pop()}else t.append(s,n(o))}(e),t}},4875:(e,t,r)=>{"use strict";var a=r(7288).version,n=r(2648),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var s={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+a+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,a,i){if(!1===e)throw new n(o(a," has been removed"+(t?" in "+t:"")),n.ERR_DEPRECATED);return t&&!s[a]&&(s[a]=!0,console.warn(o(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,a,i)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new n("options must be an object",n.ERR_BAD_OPTION_VALUE);for(var a=Object.keys(e),o=a.length;o-- >0;){var s=a[o],i=t[s];if(i){var l=e[s],c=void 0===l||i(l,s,e);if(!0!==c)throw new n("option "+s+" must be "+c,n.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new n("Unknown option "+s,n.ERR_BAD_OPTION)}},validators:o}},4867:(e,t,r)=>{"use strict";var a,n=r(1849),o=Object.prototype.toString,s=(a=Object.create(null),function(e){var t=o.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())});function i(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=i("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var g=i("Date"),m=i("File"),w=i("Blob"),y=i("FileList");function f(e){return"[object Function]"===o.call(e)}var b=i("URLSearchParams");function h(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var r=0,a=e.length;r0;)s[o=a[n]]||(t[o]=e[o],s[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:i,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var a=e.indexOf(t,r);return-1!==a&&a===r},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:v,isFileList:y}},3204:e=>{"use strict";const t=/[\p{Lu}]/u,r=/[\p{Ll}]/u,a=/^[\p{Lu}](?![\p{Lu}])/gu,n=/([\p{Alpha}\p{N}_]|$)/u,o=/[_.\- ]+/,s=new RegExp("^"+o.source),i=new RegExp(o.source+n.source,"gu"),l=new RegExp("\\d+"+n.source,"gu"),c=(e,n)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");if(n={pascalCase:!1,preserveConsecutiveUppercase:!1,...n},0===(e=Array.isArray(e)?e.map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim()).length)return"";const o=!1===n.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(n.locale),c=!1===n.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(n.locale);return 1===e.length?n.pascalCase?c(e):o(e):(e!==o(e)&&(e=((e,a,n)=>{let o=!1,s=!1,i=!1;for(let l=0;l(a.lastIndex=0,e.replace(a,(e=>t(e)))))(e,o):o(e),n.pascalCase&&(e=c(e.charAt(0))+e.slice(1)),((e,t)=>(i.lastIndex=0,l.lastIndex=0,e.replace(i,((e,r)=>t(r))).replace(l,(e=>t(e)))))(e,c))};e.exports=c,e.exports.default=c},4020:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),a=new RegExp("("+t+")+","gi");function n(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),a=e.slice(t);return Array.prototype.concat.call([],n(r),n(a))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r)||[],a=1;a{"use strict";e.exports=function(e,t){for(var r={},a=Object.keys(e),n=Array.isArray(t),o=0;o{var t;self,t=()=>{return e={7629:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(9474),s=r(1687),i=r(8652),l=r(8160),c=r(3292),u=r(6354),d=r(8901),p=r(9708),g=r(6914),m=r(2294),w=r(6133),y=r(1152),f=r(8863),b=r(2036),h={Base:class{constructor(e){this.type=e,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new m.Ids,this._preferences=null,this._refs=new w.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return a("function"==typeof p.describe,"Manifest functionality disabled"),p.describe(this)}allow(){for(var e=arguments.length,t=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return a(void 0!==e,"Missing example"),l.assertOptions(t,["override"]),this._inner("examples",e,{single:!0,override:t.override})}external(e,t){return"object"==typeof e&&(a(!t,"Cannot combine options with description"),t=e.description,e=e.method),a("function"==typeof e,"Method must be a function"),a(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this._inner("externals",{method:e,description:t},{single:!0})}failover(e,t){return this._default("failover",e,t)}forbidden(){return this.presence("forbidden")}id(e){return e?(a("string"==typeof e,"id must be a non-empty string"),a(/^[^\.]+$/.test(e),"id cannot contain period character"),this.$_setFlag("id",e)):this.$_setFlag("id",void 0)}invalid(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0])||arguments[0];return a("boolean"==typeof e,"Invalid mode:",e),this.$_setFlag("only",e)}optional(){return this.presence("optional")}prefs(e){a(e,"Missing preferences"),a(void 0===e.context,"Cannot override context"),a(void 0===e.externals,"Cannot override externals"),a(void 0===e.warnings,"Cannot override warnings"),a(void 0===e.debug,"Cannot override debug"),l.checkPreferences(e);const t=this.clone();return t._preferences=l.preferences(t._preferences,e),t}presence(e){return a(["optional","required","forbidden"].includes(e),"Unknown presence mode",e),this.$_setFlag("presence",e)}raw(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("result",e?"raw":void 0)}result(e){return a(["raw","strip"].includes(e),"Unknown result mode",e),this.$_setFlag("result",e)}required(){return this.presence("required")}strict(e){const t=this.clone(),r=void 0!==e&&!e;return t._preferences=l.preferences(t._preferences,{convert:r}),t}strip(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("result",e?"strip":void 0)}tag(){for(var e=arguments.length,t=new Array(e),r=0;re.keep||e.name!==r)),t._singleRules.delete(r));for(const r of e._rules)e._definition.rules[r.method].multi||t._singleRules.set(r.name,r),t._rules.push(r);if(t._flags.empty&&e._flags.empty){t._flags.empty=t._flags.empty.concat(e._flags.empty);const r=Object.assign({},e._flags);delete r.empty,s(t._flags,r)}else if(e._flags.empty){t._flags.empty=e._flags.empty;const r=Object.assign({},e._flags);delete r.empty,s(t._flags,r)}else s(t._flags,e._flags);for(const r in e.$_terms){const a=e.$_terms[r];a?t.$_terms[r]?t.$_terms[r]=t.$_terms[r].concat(a):t.$_terms[r]=a.slice():t.$_terms[r]||(t.$_terms[r]=a)}return this.$_root._tracer&&this.$_root._tracer._combine(t,[this,e]),t.$_mutateRebuild()}extend(e){return a(!e.base,"Cannot extend type with another base"),d.type(this,e)}extract(e){return e=Array.isArray(e)?e:e.split("."),this._ids.reach(e)}fork(e,t){a(!this._inRuleset(),"Cannot fork inside a ruleset");let r=this;for(let a of[].concat(e))a=Array.isArray(a)?a:a.split("."),r=r._ids.fork(a,t,r);return r.$_temp.ruleset=!1,r}rule(e){const t=this._definition;l.assertOptions(e,Object.keys(t.modifiers)),a(!1!==this.$_temp.ruleset,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");const r=null===this.$_temp.ruleset?this._rules.length-1:this.$_temp.ruleset;a(r>=0&&rt.tailor(e),ref:!1}),t.$_temp.ruleset=!1,t.$_mutateRebuild()}tracer(){return y.location?y.location(this):this}validate(e,t){return f.entry(e,this,t)}validateAsync(e,t){return f.entryAsync(e,this,t)}$_addRule(e){"string"==typeof e&&(e={name:e}),a(e&&"object"==typeof e,"Invalid options"),a(e.name&&"string"==typeof e.name,"Invalid rule name");for(const t in e)a("_"!==t[0],"Cannot set private rule properties");const t=Object.assign({},e);t._resolve=[],t.method=t.method||t.name;const r=this._definition.rules[t.method],n=t.args;a(r,"Unknown rule",t.method);const o=this.clone();if(n){a(1===Object.keys(n).length||Object.keys(n).length===this._definition.rules[t.name].args.length,"Invalid rule definition for",this.type,t.name);for(const e in n){let s=n[e];if(r.argsByName){const i=r.argsByName.get(e);if(i.ref&&l.isResolvable(s))t._resolve.push(e),o.$_mutateRegister(s);else if(i.normalize&&(s=i.normalize(s),n[e]=s),i.assert){const t=l.validateArg(s,e,i);a(!t,t,"or reference")}}void 0!==s?n[e]=s:delete n[e]}}return r.multi||(o._ruleRemove(t.name,{clone:!1}),o._singleRules.set(t.name,t)),!1===o.$_temp.ruleset&&(o.$_temp.ruleset=null),r.priority?o._rules.unshift(t):o._rules.push(t),o}$_compile(e,t){return c.schema(this.$_root,e,t)}$_createError(e,t,r,a,n){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const s=!1!==o.flags?this._flags:{},i=o.messages?g.merge(this._definition.messages,o.messages):this._definition.messages;return new u.Report(e,t,r,s,i,a,n)}$_getFlag(e){return this._flags[e]}$_getRule(e){return this._singleRules.get(e)}$_mapLabels(e){return e=Array.isArray(e)?e:e.split("."),this._ids.labels(e)}$_match(e,t,r,a){(r=Object.assign({},r)).abortEarly=!0,r._externals=!1,t.snapshot();const n=!f.validate(e,this,t,r,a).errors;return t.restore(),n}$_modify(e){return l.assertOptions(e,["each","once","ref","schema"]),m.schema(this,e)||this}$_mutateRebuild(){return a(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(e,t)=>{let{source:r,name:a,path:n,key:o}=t;const s=this._definition[r][a]&&this._definition[r][a].register;!1!==s&&this.$_mutateRegister(e,{family:s,key:o})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(e){let{family:t,key:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._refs.register(e,t),this._ids.register(e,{key:r})}$_property(e){return this._definition.properties[e]}$_reach(e){return this._ids.reach(e)}$_rootReferences(){return this._refs.roots()}$_setFlag(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a("_"===e[0]||!this._inRuleset(),"Cannot set flag inside a ruleset");const n=this._definition.flags[e]||{};if(o(t,n.default)&&(t=void 0),o(t,this._flags[e]))return this;const s=!1!==r.clone?this.clone():this;return void 0!==t?(s._flags[e]=t,s.$_mutateRegister(t)):delete s._flags[e],"_"!==e[0]&&(s.$_temp.ruleset=!1),s}$_parent(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:{};return l.assertOptions(r,"literal"),a(void 0!==t,"Missing",e,"value"),a("function"==typeof t||!r.literal,"Only function value supports literal option"),"function"==typeof t&&r.literal&&(t={[l.symbols.literal]:!0,literal:t}),this.$_setFlag(e,t)}_generate(e,t,r){if(!this.$_terms.whens)return{schema:this};const a=[],n=[];for(let o=0;oc)break}const o=n.join(", ");if(t.mainstay.tracer.debug(t,"rule","when",o),!o)return{schema:this};if(!t.mainstay.tracer.active&&this.$_temp.whens[o])return{schema:this.$_temp.whens[o],id:o};let s=this;this._definition.generate&&(s=this._definition.generate(this,e,t,r));for(const e of a)s=s.concat(e);return this.$_root._tracer&&this.$_root._tracer._combine(s,[this,...a]),this.$_temp.whens[o]=s,{schema:s,id:o}}_inner(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(!this._inRuleset(),`Cannot set ${e} inside a ruleset`);const n=this.clone();return n.$_terms[e]&&!r.override||(n.$_terms[e]=[]),r.single?n.$_terms[e].push(t):n.$_terms[e].push(...t),n.$_temp.ruleset=!1,n}_inRuleset(){return null!==this.$_temp.ruleset&&!1!==this.$_temp.ruleset}_ruleRemove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._singleRules.has(e))return this;const r=!1!==t.clone?this.clone():this;r._singleRules.delete(e);const a=[];for(let t=0;t{"use strict";const a=r(375),n=r(8571),o=r(8160),s={max:1e3,supported:new Set(["undefined","boolean","number","string"])};t.provider={provision:e=>new s.Cache(e)},s.Cache=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o.assertOptions(e,["max"]),a(void 0===e.max||e.max&&e.max>0&&isFinite(e.max),"Invalid max cache size"),this._max=e.max||s.max,this._map=new Map,this._list=new s.List}get length(){return this._map.size}set(e,t){if(null!==e&&!s.supported.has(typeof e))return;let r=this._map.get(e);if(r)return r.value=t,void this._list.first(r);r=this._list.unshift({key:e,value:t}),this._map.set(e,r),this._compact()}get(e){const t=this._map.get(e);if(t)return this._list.first(t),n(t.value)}_compact(){if(this._map.size>this._max){const e=this._list.pop();this._map.delete(e.key)}}},s.List=class{constructor(){this.tail=null,this.head=null}unshift(e){return e.next=null,e.prev=this.head,this.head&&(this.head.next=e),this.head=e,this.tail||(this.tail=e),e}first(e){e!==this.head&&(this._remove(e),this.unshift(e))}pop(){return this._remove(this.tail)}_remove(e){const{next:t,prev:r}=e;return t.prev=r,r&&(r.next=t),e===this.tail&&(this.tail=t),e.prev=null,e.next=null,e}}},8160:(e,t,r)=>{"use strict";const a=r(375),n=r(7916),o=r(5934);let s,i;const l={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};t.version=o.version,t.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},t.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},t.assertOptions=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Options";a(e&&"object"==typeof e&&!Array.isArray(e),"Options must be of type object");const n=Object.keys(e).filter((e=>!t.includes(e)));a(0===n.length,`${r} contain unknown keys: ${n}`)},t.checkPreferences=function(e){i=i||r(3378);const t=i.preferences.validate(e);if(t.error)throw new n([t.error.details[0].message])},t.compare=function(e,t,r){switch(r){case"=":return e===t;case">":return e>t;case"<":return e=":return e>=t;case"<=":return e<=t}},t.default=function(e,t){return void 0===e?t:e},t.isIsoDate=function(e){return l.isoDate.test(e)},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isResolvable=function(e){return!!e&&(e[t.symbols.ref]||e[t.symbols.template])},t.isSchema=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e&&e[t.symbols.any];return!!n&&(a(r.legacy||n.version===t.version,"Cannot mix different versions of joi schemas"),!0)},t.isValues=function(e){return e[t.symbols.values]},t.limit=function(e){return Number.isSafeInteger(e)&&e>=0},t.preferences=function(e,a){s=s||r(6914),e=e||{},a=a||{};const n=Object.assign({},e,a);return a.errors&&e.errors&&(n.errors=Object.assign({},e.errors,a.errors),n.errors.wrap=Object.assign({},e.errors.wrap,a.errors.wrap)),a.messages&&(n.messages=s.compile(a.messages,e.messages)),delete n[t.symbols.prefs],n},t.tryWithPath=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return e()}catch(e){throw void 0!==e.path?e.path=t+"."+e.path:e.path=t,r.append&&(e.message=`${e.message} (${e.path})`),e}},t.validateArg=function(e,r,a){let{assert:n,message:o}=a;if(t.isSchema(n)){const t=n.validate(e);if(!t.error)return;return t.error.message}if(!n(e))return r?`${r} ${o}`:o},t.verifyFlat=function(e,t){for(const r of e)a(!Array.isArray(r),"Method no longer accepts array arguments:",t)}},3292:(e,t,r)=>{"use strict";const a=r(375),n=r(8160),o=r(6133),s={};t.schema=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.assertOptions(r,["appendPath","override"]);try{return s.schema(e,t,r)}catch(e){throw r.appendPath&&void 0!==e.path&&(e.message=`${e.message} (${e.path})`),e}},s.schema=function(e,t,r){a(void 0!==t,"Invalid undefined schema"),Array.isArray(t)&&(a(t.length,"Invalid empty array schema"),1===t.length&&(t=t[0]));const o=function(t){for(var a=arguments.length,n=new Array(a>1?a-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:{};n.assertOptions(o,["legacy"]);const i=r&&r[n.symbols.any];if(i)return a(o.legacy||i.version===n.version,"Cannot mix different versions of joi schemas:",i.version,n.version),r;if("object"!=typeof r||!o.legacy)return t.schema(e,r,{appendPath:!0});const l=s.walk(r);return l?l.compile(l.root,r):t.schema(e,r,{appendPath:!0})},s.walk=function(e){if("object"!=typeof e)return null;if(Array.isArray(e)){for(const t of e){const e=s.walk(t);if(e)return e}return null}const t=e[n.symbols.any];if(t)return{root:e[t.root],compile:t.compile};a(Object.getPrototypeOf(e)===Object.getPrototypeOf({}),"Schema can only contain plain objects");for(const t in e){const r=s.walk(e[t]);if(r)return r}return null},s.simple=function(e){return null===e||["boolean","string","number"].includes(typeof e)},t.when=function(e,r,i){if(void 0===i&&(a(r&&"object"==typeof r,"Missing options"),i=r,r=o.create(".")),Array.isArray(i)&&(i={switch:i}),n.assertOptions(i,["is","not","then","otherwise","switch","break"]),n.isSchema(r))return a(void 0===i.is,'"is" can not be used with a schema condition'),a(void 0===i.not,'"not" can not be used with a schema condition'),a(void 0===i.switch,'"switch" can not be used with a schema condition'),s.condition(e,{is:r,then:i.then,otherwise:i.otherwise,break:i.break});if(a(o.isRef(r)||"string"==typeof r,"Invalid condition:",r),a(void 0===i.not||void 0===i.is,'Cannot combine "is" with "not"'),void 0===i.switch){let l=i;void 0!==i.not&&(l={is:i.not,then:i.otherwise,otherwise:i.then,break:i.break});let c=void 0!==l.is?e.$_compile(l.is):e.$_root.invalid(null,!1,0,"").required();return a(void 0!==l.then||void 0!==l.otherwise,'options must have at least one of "then", "otherwise", or "switch"'),a(void 0===l.break||void 0===l.then||void 0===l.otherwise,"Cannot specify then, otherwise, and break all together"),void 0===i.is||o.isRef(i.is)||n.isSchema(i.is)||(c=c.required()),s.condition(e,{ref:t.ref(r),is:c,then:l.then,otherwise:l.otherwise,break:l.break})}a(Array.isArray(i.switch),'"switch" must be an array'),a(void 0===i.is,'Cannot combine "switch" with "is"'),a(void 0===i.not,'Cannot combine "switch" with "not"'),a(void 0===i.then,'Cannot combine "switch" with "then"');const l={ref:t.ref(r),switch:[],break:i.break};for(let t=0;t{"use strict";const a=r(5688),n=r(8160),o=r(3328);t.Report=class{constructor(e,r,a,n,o,s,i){if(this.code=e,this.flags=n,this.messages=o,this.path=s.path,this.prefs=i,this.state=s,this.value=r,this.message=null,this.template=null,this.local=a||{},this.local.label=t.label(this.flags,this.state,this.prefs,this.messages),void 0===this.value||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){const e=this.path[this.path.length-1];"object"!=typeof e&&(this.local.key=e)}}_setTemplate(e){if(this.template=e,!this.flags.label&&0===this.path.length){const e=this._template(this.template,"root");e&&(this.local.label=e)}}toString(){if(this.message)return this.message;const e=this.code;if(!this.prefs.errors.render)return this.code;const t=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return void 0===t?`Error code "${e}" is not defined, your custom type is missing the correct messages definition`:(this.message=t.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(e,r){return t.template(this.value,e,r||this.code,this.state,this.prefs)}},t.path=function(e){let t="";for(const r of e)"object"!=typeof r&&("string"==typeof r?(t&&(t+="."),t+=r):t+=`[${r}]`);return t},t.template=function(e,t,r,a,s){if(!t)return;if(o.isTemplate(t))return"root"!==r?t:null;let i=s.errors.language;if(n.isResolvable(i)&&(i=i.resolve(e,a,s)),i&&t[i]){if(void 0!==t[i][r])return t[i][r];if(void 0!==t[i]["*"])return t[i]["*"]}return t[r]?t[r]:t["*"]},t.label=function(e,r,a,n){if(e.label)return e.label;if(!a.errors.label)return"";let o=r.path;return"key"===a.errors.label&&r.path.length>1&&(o=r.path.slice(-1)),t.path(o)||t.template(null,a.messages,"root",r,a)||n&&t.template(null,n,"root",r,a)||"value"},t.process=function(e,r,a){if(!e)return null;const{override:n,message:o,details:s}=t.details(e);if(n)return n;if(a.errors.stack)return new t.ValidationError(o,s,r);const i=Error.stackTraceLimit;Error.stackTraceLimit=0;const l=new t.ValidationError(o,s,r);return Error.stackTraceLimit=i,l},t.details=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];const a=[];for(const n of e){if(n instanceof Error){if(!1!==t.override)return{override:n};const e=n.toString();r.push(e),a.push({message:e,type:"override",context:{error:n}});continue}const e=n.toString();r.push(e),a.push({message:e,path:n.path.filter((e=>"object"!=typeof e)),type:n.code,context:n.local})}return r.length>1&&(r=[...new Set(r)]),{message:r.join(". "),details:a}},t.ValidationError=class extends Error{constructor(e,t,r){super(e),this._original=r,this.details=t}static isError(e){return e instanceof t.ValidationError}},t.ValidationError.prototype.isJoi=!0,t.ValidationError.prototype.name="ValidationError",t.ValidationError.prototype.annotate=a.error},8901:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(8160),s=r(6914),i={};t.type=function(e,t){const r=Object.getPrototypeOf(e),l=n(r),c=e._assign(Object.create(l)),u=Object.assign({},t);delete u.base,l._definition=u;const d=r._definition||{};u.messages=s.merge(d.messages,u.messages),u.properties=Object.assign({},d.properties,u.properties),c.type=u.type,u.flags=Object.assign({},d.flags,u.flags);const p=Object.assign({},d.terms);if(u.terms)for(const e in u.terms){const t=u.terms[e];a(void 0===c.$_terms[e],"Invalid term override for",u.type,e),c.$_terms[e]=t.init,p[e]=t}u.terms=p,u.args||(u.args=d.args),u.prepare=i.prepare(u.prepare,d.prepare),u.coerce&&("function"==typeof u.coerce&&(u.coerce={method:u.coerce}),u.coerce.from&&!Array.isArray(u.coerce.from)&&(u.coerce={method:u.coerce.method,from:[].concat(u.coerce.from)})),u.coerce=i.coerce(u.coerce,d.coerce),u.validate=i.validate(u.validate,d.validate);const g=Object.assign({},d.rules);if(u.rules)for(const e in u.rules){const t=u.rules[e];a("object"==typeof t,"Invalid rule definition for",u.type,e);let r=t.method;if(void 0===r&&(r=function(){return this.$_addRule(e)}),r&&(a(!l[e],"Rule conflict in",u.type,e),l[e]=r),a(!g[e],"Rule conflict in",u.type,e),g[e]=t,t.alias){const e=[].concat(t.alias);for(const r of e)l[r]=t.method}t.args&&(t.argsByName=new Map,t.args=t.args.map((e=>("string"==typeof e&&(e={name:e}),a(!t.argsByName.has(e.name),"Duplicated argument name",e.name),o.isSchema(e.assert)&&(e.assert=e.assert.strict().label(e.name)),t.argsByName.set(e.name,e),e))))}u.rules=g;const m=Object.assign({},d.modifiers);if(u.modifiers)for(const e in u.modifiers){a(!l[e],"Rule conflict in",u.type,e);const t=u.modifiers[e];a("function"==typeof t,"Invalid modifier definition for",u.type,e);const r=function(t){return this.rule({[e]:t})};l[e]=r,m[e]=t}if(u.modifiers=m,u.overrides){l._super=r,c.$_super={};for(const e in u.overrides)a(r[e],"Cannot override missing",e),u.overrides[e][o.symbols.parent]=r[e],c.$_super[e]=r[e].bind(c);Object.assign(l,u.overrides)}u.cast=Object.assign({},d.cast,u.cast);const w=Object.assign({},d.manifest,u.manifest);return w.build=i.build(u.manifest&&u.manifest.build,d.manifest&&d.manifest.build),u.manifest=w,u.rebuild=i.rebuild(u.rebuild,d.rebuild),c},i.build=function(e,t){return e&&t?function(r,a){return t(e(r,a),a)}:e||t},i.coerce=function(e,t){return e&&t?{from:e.from&&t.from?[...new Set([...e.from,...t.from])]:null,method(r,a){let n;if((!t.from||t.from.includes(typeof r))&&(n=t.method(r,a),n)){if(n.errors||void 0===n.value)return n;r=n.value}if(!e.from||e.from.includes(typeof r)){const t=e.method(r,a);if(t)return t}return n}}:e||t},i.prepare=function(e,t){return e&&t?function(r,a){const n=e(r,a);if(n){if(n.errors||void 0===n.value)return n;r=n.value}return t(r,a)||n}:e||t},i.rebuild=function(e,t){return e&&t?function(r){t(r),e(r)}:e||t},i.validate=function(e,t){return e&&t?function(r,a){const n=t(r,a);if(n){if(n.errors&&(!Array.isArray(n.errors)||n.errors.length))return n;r=n.value}return e(r,a)||n}:e||t}},5107:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(8652),s=r(8160),i=r(3292),l=r(6354),c=r(8901),u=r(9708),d=r(6133),p=r(3328),g=r(1152);let m;const w={types:{alternatives:r(4946),any:r(8068),array:r(546),boolean:r(4937),date:r(7500),function:r(390),link:r(8785),number:r(3832),object:r(8966),string:r(7417),symbol:r(8826)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){const e={_types:new Set(Object.keys(w.types))};for(const t of e._types)e[t]=function(){for(var e=arguments.length,r=new Array(e),n=0;n2?r-2:0),n=2;n2?r-2:0),n=2;n{"use strict";const a=r(375),n=r(8571),o=r(3328);t.compile=function(e,t){if("string"==typeof e)return a(!t,"Cannot set single message string"),new o(e);if(o.isTemplate(e))return a(!t,"Cannot set single message template"),e;a("object"==typeof e&&!Array.isArray(e),"Invalid message options"),t=t?n(t):{};for(let r in e){const n=e[r];if("root"===r||o.isTemplate(n)){t[r]=n;continue}if("string"==typeof n){t[r]=new o(n);continue}a("object"==typeof n&&!Array.isArray(n),"Invalid message for",r);const s=r;for(r in t[s]=t[s]||{},n){const e=n[r];"root"===r||o.isTemplate(e)?t[s][r]=e:(a("string"==typeof e,"Invalid message for",r,"in",s),t[s][r]=new o(e))}}return t},t.decompile=function(e){const t={};for(let r in e){const a=e[r];if("root"===r){t.root=a;continue}if(o.isTemplate(a)){t[r]=a.describe({compact:!0});continue}const n=r;for(r in t[n]={},a){const e=a[r];"root"!==r?t[n][r]=e.describe({compact:!0}):t[n].root=e}}return t},t.merge=function(e,r){if(!e)return t.compile(r);if(!r)return e;if("string"==typeof r)return new o(r);if(o.isTemplate(r))return r;const s=n(e);for(let e in r){const t=r[e];if("root"===e||o.isTemplate(t)){s[e]=t;continue}if("string"==typeof t){s[e]=new o(t);continue}a("object"==typeof t&&!Array.isArray(t),"Invalid message for",e);const n=e;for(e in s[n]=s[n]||{},t){const r=t[e];"root"===e||o.isTemplate(r)?s[n][e]=r:(a("string"==typeof r,"Invalid message for",e,"in",n),s[n][e]=new o(r))}}return s}},2294:(e,t,r)=>{"use strict";const a=r(375),n=r(8160),o=r(6133),s={};t.Ids=s.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){const e=new s.Ids;return e._byId=new Map(this._byId),e._byKey=new Map(this._byKey),e._schemaChain=this._schemaChain,e}concat(e){e._schemaChain&&(this._schemaChain=!0);for(const[t,r]of e._byId.entries())a(!this._byKey.has(t),"Schema id conflicts with existing key:",t),this._byId.set(t,r);for(const[t,r]of e._byKey.entries())a(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,r)}fork(e,t,r){const o=this._collect(e);o.push({schema:r});const i=o.shift();let l={id:i.id,schema:t(i.schema)};a(n.isSchema(l.schema),"adjuster function failed to return a joi schema type");for(const e of o)l={id:e.id,schema:s.fork(e.schema,l.id,l.schema)};return l.schema}labels(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=e[0],a=this._get(r);if(!a)return[...t,...e].join(".");const n=e.slice(1);return t=[...t,a.schema._flags.label||r],n.length?a.schema._ids.labels(n,t):t.join(".")}reach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=e[0],n=this._get(r);a(n,"Schema does not contain path",[...t,...e].join("."));const o=e.slice(1);return o.length?n.schema._ids.reach(o,[...t,r]):n.schema}register(e){let{key:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!n.isSchema(e))return;(e.$_property("schemaChain")||e._ids._schemaChain)&&(this._schemaChain=!0);const r=e._flags.id;if(r){const t=this._byId.get(r);a(!t||t.schema===e,"Cannot add different schemas with the same id:",r),a(!this._byKey.has(r),"Schema id conflicts with existing key:",r),this._byId.set(r,{schema:e,id:r})}t&&(a(!this._byKey.has(t),"Schema already contains key:",t),a(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,{schema:e,id:t}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const n=e[0],o=this._get(n);a(o,"Schema does not contain path",[...t,...e].join(".")),r=[o,...r];const s=e.slice(1);return s.length?o.schema._ids._collect(s,[...t,n],r):r}_get(e){return this._byId.get(e)||this._byKey.get(e)}},s.fork=function(e,r,a){const n=t.schema(e,{each:(e,t)=>{let{key:n}=t;if(r===(e._flags.id||n))return a},ref:!1});return n?n.$_mutateRebuild():e},t.schema=function(e,t){let r;for(const a in e._flags){if("_"===a[0])continue;const n=s.scan(e._flags[a],{source:"flags",name:a},t);void 0!==n&&(r=r||e.clone(),r._flags[a]=n)}for(let a=0;a{"use strict";const a=r(375),n=r(8571),o=r(9621),s=r(8160);let i;const l={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};t.create=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a("string"==typeof e,"Invalid reference key:",e),s.assertOptions(t,["adjust","ancestor","in","iterables","map","prefix","render","separator"]),a(!t.prefix||"object"==typeof t.prefix,"options.prefix must be of type object");const r=Object.assign({},l.defaults,t);delete r.prefix;const n=r.separator,o=l.context(e,n,t.prefix);if(r.type=o.type,e=o.key,"value"===r.type)if(o.root&&(a(!n||e[0]!==n,"Cannot specify relative path with root prefix"),r.ancestor="root",e||(e=null)),n&&n===e)e=null,r.ancestor=0;else if(void 0!==r.ancestor)a(!n||!e||e[0]!==n,"Cannot combine prefix with ancestor option");else{const[t,a]=l.ancestor(e,n);a&&""===(e=e.slice(a))&&(e=null),r.ancestor=t}return r.path=n?null===e?[]:e.split(n):[e],new l.Ref(r)},t.in=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.create(e,{...r,in:!0})},t.isRef=function(e){return!!e&&!!e[s.symbols.ref]},l.Ref=class{constructor(e){a("object"==typeof e,"Invalid reference construction"),s.assertOptions(e,["adjust","ancestor","in","iterables","map","path","render","separator","type","depth","key","root","display"]),a([!1,void 0].includes(e.separator)||"string"==typeof e.separator&&1===e.separator.length,"Invalid separator"),a(!e.adjust||"function"==typeof e.adjust,"options.adjust must be a function"),a(!e.map||Array.isArray(e.map),"options.map must be an array"),a(!e.map||!e.adjust,"Cannot set both map and adjust options"),Object.assign(this,l.defaults,e),a("value"===this.type||void 0===this.ancestor,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return a(!this.in||o.in,"Invalid in() reference usage"),"global"===this.type?this._resolve(r.context,t,o):"local"===this.type?this._resolve(n,t,o):this.ancestor?"root"===this.ancestor?this._resolve(t.ancestors[t.ancestors.length-1],t,o):(a(this.ancestor<=t.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(t.ancestors[this.ancestor-1],t,o)):this._resolve(e,t,o)}_resolve(e,t,r){let a;if("value"===this.type&&t.mainstay.shadow&&!1!==r.shadow&&(a=t.mainstay.shadow.get(this.absolute(t))),void 0===a&&(a=o(e,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(a=this.adjust(a)),this.map){const e=this.map.get(a);void 0!==e&&(a=e)}return t.mainstay&&t.mainstay.tracer.resolve(t,this,a),a}toString(){return this.display}absolute(e){return[...e.path.slice(0,-this.ancestor),...this.path]}clone(){return new l.Ref(this)}describe(){const e={path:this.path};"value"!==this.type&&(e.type=this.type),"."!==this.separator&&(e.separator=this.separator),"value"===this.type&&1!==this.ancestor&&(e.ancestor=this.ancestor),this.map&&(e.map=[...this.map]);for(const t of["adjust","iterables","render"])null!==this[t]&&void 0!==this[t]&&(e[t]=this[t]);return!1!==this.in&&(e.in=!0),{ref:e}}updateDisplay(){const e=null!==this.key?this.key:"";if("value"!==this.type)return void(this.display=`ref:${this.type}:${e}`);if(!this.separator)return void(this.display=`ref:${e}`);if(!this.ancestor)return void(this.display=`ref:${this.separator}${e}`);if("root"===this.ancestor)return void(this.display=`ref:root:${e}`);if(1===this.ancestor)return void(this.display=`ref:${e||".."}`);const t=new Array(this.ancestor+1).fill(this.separator).join("");this.display=`ref:${t}${e||""}`}},l.Ref.prototype[s.symbols.ref]=!0,t.build=function(e){return"value"===(e=Object.assign({},l.defaults,e)).type&&void 0===e.ancestor&&(e.ancestor=1),new l.Ref(e)},l.context=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e=e.trim(),r){const a=void 0===r.global?"$":r.global;if(a!==t&&e.startsWith(a))return{key:e.slice(a.length),type:"global"};const n=void 0===r.local?"#":r.local;if(n!==t&&e.startsWith(n))return{key:e.slice(n.length),type:"local"};const o=void 0===r.root?"/":r.root;if(o!==t&&e.startsWith(o))return{key:e.slice(o.length),type:"value",root:!0}}return{key:e,type:"value"}},l.ancestor=function(e,t){if(!t)return[1,0];if(e[0]!==t)return[1,0];if(e[1]!==t)return[0,1];let r=2;for(;e[r]===t;)++r;return[r-1,r]},t.toSibling=0,t.toParent=1,t.Manager=class{constructor(){this.refs=[]}register(e,a){if(e)if(a=void 0===a?t.toParent:a,Array.isArray(e))for(const t of e)this.register(t,a);else if(s.isSchema(e))for(const t of e._refs.refs)t.ancestor-a>=0&&this.refs.push({ancestor:t.ancestor-a,root:t.root});else t.isRef(e)&&"value"===e.type&&e.ancestor-a>=0&&this.refs.push({ancestor:e.ancestor-a,root:e.root}),i=i||r(3328),i.isTemplate(e)&&this.register(e.refs(),a)}get length(){return this.refs.length}clone(){const e=new t.Manager;return e.refs=n(this.refs),e}reset(){this.refs=[]}roots(){return this.refs.filter((e=>!e.ancestor)).map((e=>e.root))}}},3378:(e,t,r)=>{"use strict";const a=r(5107),n={};n.wrap=a.string().min(1).max(2).allow(!1),t.preferences=a.object({allowUnknown:a.boolean(),abortEarly:a.boolean(),artifacts:a.boolean(),cache:a.boolean(),context:a.object(),convert:a.boolean(),dateFormat:a.valid("date","iso","string","time","utc"),debug:a.boolean(),errors:{escapeHtml:a.boolean(),label:a.valid("path","key",!1),language:[a.string(),a.object().ref()],render:a.boolean(),stack:a.boolean(),wrap:{label:n.wrap,array:n.wrap,string:n.wrap}},externals:a.boolean(),messages:a.object(),noDefaults:a.boolean(),nonEnumerables:a.boolean(),presence:a.valid("required","optional","forbidden"),skipFunctions:a.boolean(),stripUnknown:a.object({arrays:a.boolean(),objects:a.boolean()}).or("arrays","objects").allow(!0,!1),warnings:a.boolean()}).strict(),n.nameRx=/^[a-zA-Z0-9]\w*$/,n.rule=a.object({alias:a.array().items(a.string().pattern(n.nameRx)).single(),args:a.array().items(a.string(),a.object({name:a.string().pattern(n.nameRx).required(),ref:a.boolean(),assert:a.alternatives([a.function(),a.object().schema()]).conditional("ref",{is:!0,then:a.required()}),normalize:a.function(),message:a.string().when("assert",{is:a.function(),then:a.required()})})),convert:a.boolean(),manifest:a.boolean(),method:a.function().allow(!1),multi:a.boolean(),validate:a.function()}),t.extension=a.object({type:a.alternatives([a.string(),a.object().regex()]).required(),args:a.function(),cast:a.object().pattern(n.nameRx,a.object({from:a.function().maxArity(1).required(),to:a.function().minArity(1).maxArity(2).required()})),base:a.object().schema().when("type",{is:a.object().regex(),then:a.forbidden()}),coerce:[a.function().maxArity(3),a.object({method:a.function().maxArity(3).required(),from:a.array().items(a.string()).single()})],flags:a.object().pattern(n.nameRx,a.object({setter:a.string(),default:a.any()})),manifest:{build:a.function().arity(2)},messages:[a.object(),a.string()],modifiers:a.object().pattern(n.nameRx,a.function().minArity(1).maxArity(2)),overrides:a.object().pattern(n.nameRx,a.function()),prepare:a.function().maxArity(3),rebuild:a.function().arity(1),rules:a.object().pattern(n.nameRx,n.rule),terms:a.object().pattern(n.nameRx,a.object({init:a.array().allow(null).required(),manifest:a.object().pattern(/.+/,[a.valid("schema","single"),a.object({mapped:a.object({from:a.string().required(),to:a.string().required()}).required()})])})),validate:a.function().maxArity(3)}).strict(),t.extensions=a.array().items(a.object(),a.function().arity(1)).strict(),n.desc={buffer:a.object({buffer:a.string()}),func:a.object({function:a.function().required(),options:{literal:!0}}),override:a.object({override:!0}),ref:a.object({ref:a.object({type:a.valid("value","global","local"),path:a.array().required(),separator:a.string().length(1).allow(!1),ancestor:a.number().min(0).integer().allow("root"),map:a.array().items(a.array().length(2)).min(1),adjust:a.function(),iterables:a.boolean(),in:a.boolean(),render:a.boolean()}).required()}),regex:a.object({regex:a.string().min(3)}),special:a.object({special:a.valid("deep").required()}),template:a.object({template:a.string().required(),options:a.object()}),value:a.object({value:a.alternatives([a.object(),a.array()]).required()})},n.desc.entity=a.alternatives([a.array().items(a.link("...")),a.boolean(),a.function(),a.number(),a.string(),n.desc.buffer,n.desc.func,n.desc.ref,n.desc.regex,n.desc.special,n.desc.template,n.desc.value,a.link("/")]),n.desc.values=a.array().items(null,a.boolean(),a.function(),a.number().allow(1/0,-1/0),a.string().allow(""),a.symbol(),n.desc.buffer,n.desc.func,n.desc.override,n.desc.ref,n.desc.regex,n.desc.template,n.desc.value),n.desc.messages=a.object().pattern(/.+/,[a.string(),n.desc.template,a.object().pattern(/.+/,[a.string(),n.desc.template])]),t.description=a.object({type:a.string().required(),flags:a.object({cast:a.string(),default:a.any(),description:a.string(),empty:a.link("/"),failover:n.desc.entity,id:a.string(),label:a.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:a.boolean(),unit:a.string()}).unknown(),preferences:{allowUnknown:a.boolean(),abortEarly:a.boolean(),artifacts:a.boolean(),cache:a.boolean(),convert:a.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:a.boolean(),label:["path","key"],language:[a.string(),n.desc.ref],wrap:{label:n.wrap,array:n.wrap}},externals:a.boolean(),messages:n.desc.messages,noDefaults:a.boolean(),nonEnumerables:a.boolean(),presence:["required","optional","forbidden"],skipFunctions:a.boolean(),stripUnknown:a.object({arrays:a.boolean(),objects:a.boolean()}).or("arrays","objects").allow(!0,!1),warnings:a.boolean()},allow:n.desc.values,invalid:n.desc.values,rules:a.array().min(1).items({name:a.string().required(),args:a.object().min(1),keep:a.boolean(),message:[a.string(),n.desc.messages],warn:a.boolean()}),keys:a.object().pattern(/.*/,a.link("/")),link:n.desc.ref}).pattern(/^[a-z]\w*$/,a.any())},493:(e,t,r)=>{"use strict";const a=r(8571),n=r(9621),o=r(8160),s={value:Symbol("value")};e.exports=s.State=class{constructor(e,t,r){this.path=e,this.ancestors=t,this.mainstay=r.mainstay,this.schemas=r.schemas,this.debug=null}localize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const a=new s.State(e,t,this);return r&&a.schemas&&(a.schemas=[s.schemas(r),...a.schemas]),a}nest(e,t){const r=new s.State(this.path,this.ancestors,this);return r.schemas=r.schemas&&[s.schemas(e),...r.schemas],r.debug=t,r}shadow(e,t){this.mainstay.shadow=this.mainstay.shadow||new s.Shadow,this.mainstay.shadow.set(this.path,e,t)}snapshot(){this.mainstay.shadow&&(this._snapshot=a(this.mainstay.shadow.node(this.path))),this.mainstay.snapshot()}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.restore()}commit(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.commit()}},s.schemas=function(e){return o.isSchema(e)?{schema:e}:e},s.Shadow=class{constructor(){this._values=null}set(e,t,r){if(!e.length)return;if("strip"===r&&"number"==typeof e[e.length-1])return;this._values=this._values||new Map;let a=this._values;for(let t=0;t{"use strict";const a=r(375),n=r(8571),o=r(5277),s=r(1447),i=r(8160),l=r(6354),c=r(6133),u={symbol:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join(""),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};e.exports=u.Template=class{constructor(e,t){if(a("string"==typeof e,"Template source must be a string"),a(!e.includes("\0")&&!e.includes(""),"Template source cannot contain reserved control characters"),this.source=e,this.rendered=e,this._template=null,t){const{functions:e,...r}=t;this._settings=Object.keys(r).length?n(r):void 0,this._functions=e,this._functions&&(a(Object.keys(this._functions).every((e=>"string"==typeof e)),"Functions keys must be strings"),a(Object.values(this._functions).every((e=>"function"==typeof e)),"Functions values must be functions"))}else this._settings=void 0,this._functions=void 0;this._parse()}_parse(){if(!this.source.includes("{"))return;const e=u.encode(this.source),t=u.split(e);let r=!1;const a=[],n=t.shift();n&&a.push(n);for(const e of t){const t="{"!==e[0],n=t?"}":"}}",o=e.indexOf(n);if(-1===o||"{"===e[1]){a.push(`{${u.decode(e)}`);continue}let s=e.slice(t?0:1,o);const i=":"===s[0];i&&(s=s.slice(1));const l=this._ref(u.decode(s),{raw:t,wrapped:i});a.push(l),"string"!=typeof l&&(r=!0);const c=e.slice(o+n.length);c&&a.push(u.decode(c))}r?this._template=a:this.rendered=a.join("")}static date(e,t){return u.dateFormat[t.dateFormat].call(e)}describe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._settings&&e.compact)return this.source;const t={template:this.source};return this._settings&&(t.options=this._settings),this._functions&&(t.functions=this._functions),t}static build(e){return new u.Template(e.template,e.options||e.functions?{...e.options,functions:e.functions}:void 0)}isDynamic(){return!!this._template}static isTemplate(e){return!!e&&!!e[i.symbols.template]}refs(){if(!this._template)return;const e=[];for(const t of this._template)"string"!=typeof t&&e.push(...t.refs);return e}resolve(e,t,r,a){return this._template&&1===this._template.length?this._part(this._template[0],e,t,r,a,{}):this.render(e,t,r,a)}_part(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a4&&void 0!==arguments[4]?arguments[4]:{};if(!this.isDynamic())return this.rendered;const s=[];for(const i of this._template)if("string"==typeof i)s.push(i);else{const l=this._part(i,e,t,r,a,n),c=u.stringify(l,e,t,r,a,n);if(void 0!==c){const e=i.raw||!1===(n.errors&&n.errors.escapeHtml)?c:o(c);s.push(u.wrap(e,i.wrapped&&r.errors.wrap.label))}}return s.join("")}_ref(e,t){let{raw:r,wrapped:a}=t;const n=[],o=e=>{const t=c.create(e,this._settings);return n.push(t),e=>{const r=t.resolve(...e);return void 0!==r?r:null}};try{const t=this._functions?{...u.functions,...this._functions}:u.functions;var i=new s.Parser(e,{reference:o,functions:t,constants:u.constants})}catch(t){throw t.message=`Invalid template variable "${e}" fails due to: ${t.message}`,t}if(i.single){if("reference"===i.single.type){const e=n[0];return{ref:e,raw:r,refs:n,wrapped:a||"local"===e.type&&"label"===e.key}}return u.stringify(i.single.value)}return{formula:i,raw:r,refs:n}}toString(){return this.source}},u.Template.prototype[i.symbols.template]=!0,u.Template.prototype.isImmutable=!0,u.encode=function(e){return e.replace(/\\(\{+)/g,((e,t)=>u.opens.slice(0,t.length))).replace(/\\(\}+)/g,((e,t)=>u.closes.slice(0,t.length)))},u.decode=function(e){return e.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},u.split=function(e){const t=[];let r="";for(let a=0;a5&&void 0!==arguments[5]?arguments[5]:{};const s=typeof e,i=a&&a.errors&&a.errors.wrap||{};let l=!1;if(c.isRef(e)&&e.render&&(l=e.in,e=e.resolve(t,r,a,n,{in:e.in,...o})),null===e)return"null";if("string"===s)return u.wrap(e,o.arrayItems&&i.string);if("number"===s||"function"===s||"symbol"===s)return e.toString();if("object"!==s)return JSON.stringify(e);if(e instanceof Date)return u.Template.date(e,a);if(e instanceof Map){const t=[];for(const[r,a]of e.entries())t.push(`${r.toString()} -> ${a.toString()}`);e=t}if(!Array.isArray(e))return e.toString();const d=[];for(const s of e)d.push(u.stringify(s,t,r,a,n,{arrayItems:!0,...o}));return u.wrap(d.join(", "),!l&&i.array)},u.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},u.functions={if:(e,t,r)=>e?t:r,length:e=>"string"==typeof e?e.length:e&&"object"==typeof e?Array.isArray(e)?e.length:Object.keys(e).length:null,msg(e){const[t,r,a,n,o]=this,s=o.messages;if(!s)return"";const i=l.template(t,s[0],e,r,a)||l.template(t,s[1],e,r,a);return i?i.render(t,r,a,n,o):""},number:e=>"number"==typeof e?e:"string"==typeof e?parseFloat(e):"boolean"==typeof e?e?1:0:e instanceof Date?e.getTime():null}},4946:(e,t,r)=>{"use strict";const a=r(375),n=r(1687),o=r(8068),s=r(8160),i=r(3292),l=r(6354),c=r(6133),u={};e.exports=o.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:c.toSibling}},args(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;al.details(e,{override:!1})))})};if("one"===r._flags.match)return 1===t.length?{value:t[0]}:{errors:a("alternatives.one")};if(t.length!==r.$_terms.matches.length)return{errors:a("alternatives.all",{details:i.map((e=>l.details(e,{override:!1})))})};const c=e=>e.$_terms.matches.some((e=>"object"===e.schema.type||"alternatives"===e.schema.type&&c(e.schema)));return c(r)?{value:t.reduce(((e,t)=>n(e,t,{mergeArrays:!1})))}:{value:t[t.length-1]}}const i=[];for(let t=0;t"is"!==r.path[0]?t.label(e):void 0,ref:!1})}},rebuild(e){e.$_modify({each:t=>{s.isSchema(t)&&"array"===t.type&&e.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(e,t){if(t.matches)for(const r of t.matches){const{schema:t,ref:a,is:n,not:o,then:s,otherwise:i}=r;e=t?e.try(t):a?e.conditional(a,{is:n,then:s,not:o,otherwise:i,switch:r.switch}):e.conditional(n,{then:s,otherwise:i})}return e}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),u.errors=function(e,t){let{error:r,state:a}=t;if(!e.length)return{errors:r("alternatives.any")};if(1===e.length)return{errors:e[0].reports};const n=new Set,o=[];for(const{reports:t,schema:s}of e){if(t.length>1)return u.unmatched(e,r);const i=t[0];if(i instanceof l.Report==0)return u.unmatched(e,r);if(i.state.path.length!==a.path.length){o.push({type:s.type,report:i});continue}if("any.only"===i.code){for(const e of i.local.valids)n.add(e);continue}const[c,d]=i.code.split(".");"base"===d?n.add(c):o.push({type:s.type,report:i})}return o.length?1===o.length?{errors:o[0].report}:u.unmatched(e,r):{errors:r("alternatives.types",{types:[...n]})}},u.unmatched=function(e,t){const r=[];for(const t of e)r.push(...t.reports);return{errors:t("alternatives.match",l.details(r,{override:!1}))}}},8068:(e,t,r)=>{"use strict";const a=r(375),n=r(7629),o=r(8160),s=r(6914);e.exports=n.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(e,t){return a("function"==typeof e,"Method must be a function"),a(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:e,description:t}})},validate(e,t,r){let{method:a}=r;try{return a(e,t)}catch(e){return t.error("any.custom",{error:e})}},args:["method","description"],multi:!0},messages:{method(e){return this.prefs({messages:e})}},shared:{method(e){a(o.isSchema(e)&&e._flags.id,"Schema must be a schema with an id");const t=this.clone();return t.$_terms.shared=t.$_terms.shared||[],t.$_terms.shared.push(e),t.$_mutateRegister(e),t}},warning:{method(e,t){return a(e&&"string"==typeof e,"Invalid warning code"),this.$_addRule({name:"warning",args:{code:e,local:t},warn:!0})},validate(e,t,r){let{code:a,local:n}=r;return t.error(a,n)},args:["code","local"],multi:!0}},modifiers:{keep(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.keep=t},message(e,t){e.message=s.compile(t)},warn(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.warn=t}},manifest:{build(e,t){for(const r in t){const a=t[r];if(["examples","externals","metas","notes","tags"].includes(r))for(const t of a)e=e[r.slice(0,-1)](t);else if("alterations"!==r)if("whens"!==r){if("shared"===r)for(const t of a)e=e.shared(t)}else for(const t of a){const{ref:r,is:a,not:n,then:o,otherwise:s,concat:i}=t;e=i?e.concat(i):r?e.when(r,{is:a,not:n,then:o,otherwise:s,switch:t.switch,break:t.break}):e.when(a,{then:o,otherwise:s,break:t.break})}else{const t={};for(const{target:e,adjuster:r}of a)t[e]=r;e=e.alter(t)}}return e}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},546:(e,t,r)=>{"use strict";const a=r(375),n=r(9474),o=r(9621),s=r(8068),i=r(8160),l=r(3292),c={};e.exports=s.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(e,t){let{schema:r,state:a,prefs:n}=t;if(!Array.isArray(e))return;const o=r.$_getRule("sort");return o?c.sort(r,e,o.args.options,a,n):void 0}},validate(e,t){let{schema:r,error:a}=t;if(!Array.isArray(e)){if(r._flags.single){const t=[e];return t[i.symbols.arraySingle]=!0,{value:t}}return{errors:a("array.base")}}if(r.$_getRule("items")||r.$_terms.externals)return{value:e.slice()}},rules:{has:{method(e){e=this.$_compile(e,{appendPath:!0});const t=this.$_addRule({name:"has",args:{schema:e}});return t.$_mutateRegister(e),t},validate(e,t,r){let{state:a,prefs:n,error:o}=t,{schema:s}=r;const i=[e,...a.ancestors];for(let t=0;tthis.$_compile(t[e])),e,{append:!0});a.$_terms.items.push(r)}return a.$_mutateRebuild()},validate(e,t){let{schema:r,error:a,state:n,prefs:o,errorsArray:s}=t;const l=r.$_terms._requireds.slice(),u=r.$_terms.ordered.slice(),d=[...r.$_terms._inclusions,...l],p=!e[i.symbols.arraySingle];delete e[i.symbols.arraySingle];const g=s();let m=e.length;for(let t=0;t="})}},ordered:{method(){for(var e=arguments.length,t=new Array(e),r=0;rthis.$_compile(t[e])),e,{append:!0});c.validateSingle(r,a),a.$_mutateRegister(r),a.$_terms.ordered.push(r)}return a.$_mutateRebuild()}},single:{method(e){const t=void 0===e||!!e;return a(!t||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",t)}},sort:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i.assertOptions(e,["by","order"]);const t={order:e.order||"ascending"};return e.by&&(t.by=l.ref(e.by,{ancestor:0}),a(!t.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:t}})},validate(e,t,r){let{error:a,state:n,prefs:o,schema:s}=t,{options:i}=r;const{value:l,errors:u}=c.sort(s,e,i,n,o);if(u)return u;for(let t=0;t1&&void 0!==arguments[1]?arguments[1]:{};a(!e||"function"==typeof e||"string"==typeof e,"comparator must be a function or a string"),i.assertOptions(t,["ignoreUndefined","separator"]);const r={name:"unique",args:{options:t,comparator:e}};if(e)if("string"==typeof e){const a=i.default(t.separator,".");r.path=a?e.split(a):[e]}else r.comparator=e;return this.$_addRule(r)},validate(e,t,r,s){let{state:i,error:l,schema:c}=t,{comparator:u,options:d}=r,{comparator:p,path:g}=s;const m={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),object:new Map,function:new Map,custom:new Map},w=p||n,y=d.ignoreUndefined;for(let t=0;tnew Set(e)}},rebuild(e){e.$_terms._inclusions=[],e.$_terms._exclusions=[],e.$_terms._requireds=[];for(const t of e.$_terms.items)c.validateSingle(t,e),"required"===t._flags.presence?e.$_terms._requireds.push(t):"forbidden"===t._flags.presence?e.$_terms._exclusions.push(t):e.$_terms._inclusions.push(t);for(const t of e.$_terms.ordered)c.validateSingle(t,e)},manifest:{build:(e,t)=>(t.items&&(e=e.items(...t.items)),t.ordered&&(e=e.ordered(...t.ordered)),e)},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),c.fillMissedErrors=function(e,t,r,a,n,o){const s=[];let i=0;for(const e of r){const t=e._flags.label;t?s.push(t):++i}s.length?i?t.push(e.$_createError("array.includesRequiredBoth",a,{knownMisses:s,unknownMisses:i},n,o)):t.push(e.$_createError("array.includesRequiredKnowns",a,{knownMisses:s},n,o)):t.push(e.$_createError("array.includesRequiredUnknowns",a,{unknownMisses:i},n,o))},c.fillOrderedErrors=function(e,t,r,a,n,o){const s=[];for(const e of r)"required"===e._flags.presence&&s.push(e);s.length&&c.fillMissedErrors(e,t,s,a,n,o)},c.fillDefault=function(e,t,r,a){const n=[];let o=!0;for(let s=e.length-1;s>=0;--s){const i=e[s],l=[t,...r.ancestors],c=i.$_validate(void 0,r.localize(r.path,l,i),a).value;if(o){if(void 0===c)continue;o=!1}n.unshift(c)}n.length&&t.push(...n)},c.fastSplice=function(e,t){let r=t;for(;r{let d=c.compare(l,u,s,i);if(null!==d)return d;if(r.by&&(l=r.by.resolve(l,a,n),u=r.by.resolve(u,a,n)),d=c.compare(l,u,s,i),null!==d)return d;const p=typeof l;if(p!==typeof u)throw e.$_createError("array.sort.mismatching",t,null,a,n);if("number"!==p&&"string"!==p)throw e.$_createError("array.sort.unsupported",t,{type:p},a,n);return"number"===p?(l-u)*o:l{"use strict";const a=r(375),n=r(8068),o=r(8160),s=r(2036),i={isBool:function(e){return"boolean"==typeof e}};e.exports=n.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(e,t){let{schema:r}=t;if("boolean"!=typeof e){if("string"==typeof e){const t=r._flags.sensitive?e:e.toLowerCase();e="true"===t||"false"!==t&&e}return"boolean"!=typeof e&&(e=r.$_terms.truthy&&r.$_terms.truthy.has(e,null,null,!r._flags.sensitive)||(!r.$_terms.falsy||!r.$_terms.falsy.has(e,null,null,!r._flags.sensitive))&&e),{value:e}}},validate(e,t){let{error:r}=t;if("boolean"!=typeof e)return{value:e,errors:r("boolean.base")}},rules:{truthy:{method(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("sensitive",e)}}},cast:{number:{from:i.isBool,to:(e,t)=>e?1:0},string:{from:i.isBool,to:(e,t)=>e?"true":"false"}},manifest:{build:(e,t)=>(t.truthy&&(e=e.truthy(...t.truthy)),t.falsy&&(e=e.falsy(...t.falsy)),e)},messages:{"boolean.base":"{{#label}} must be a boolean"}})},7500:(e,t,r)=>{"use strict";const a=r(375),n=r(8068),o=r(8160),s=r(3328),i={isDate:function(e){return e instanceof Date}};e.exports=n.extend({type:"date",coerce:{from:["number","string"],method(e,t){let{schema:r}=t;return{value:i.parse(e,r._flags.format)||e}}},validate(e,t){let{schema:r,error:a,prefs:n}=t;if(e instanceof Date&&!isNaN(e.getTime()))return;const o=r._flags.format;return n.convert&&o&&"string"==typeof e?{value:e,errors:a("date.format",{format:o})}:{value:e,errors:a("date.base")}},rules:{compare:{method:!1,validate(e,t,r,a){let{date:n}=r,{name:s,operator:i,args:l}=a;const c="now"===n?Date.now():n.getTime();return o.compare(e.getTime(),c,i)?e:t.error("date."+s,{limit:l.date,value:e})},args:[{name:"date",ref:!0,normalize:e=>"now"===e?e:i.parse(e),assert:e=>null!==e,message:"must have a valid date format"}]},format:{method(e){return a(["iso","javascript","unix"].includes(e),"Unknown date format",e),this.$_setFlag("format",e)}},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{date:e},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{date:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{date:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{date:e},operator:">="})}},timestamp:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"javascript";return a(["javascript","unix"].includes(e),'"type" must be one of "javascript, unix"'),this.format(e)}}},cast:{number:{from:i.isDate,to:(e,t)=>e.getTime()},string:{from:i.isDate,to(e,t){let{prefs:r}=t;return s.date(e,r)}}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),i.parse=function(e,t){if(e instanceof Date)return e;if("string"!=typeof e&&(isNaN(e)||!isFinite(e)))return null;if(/^\s*$/.test(e))return null;if("iso"===t)return o.isIsoDate(e)?i.date(e.toString()):null;const r=e;if("string"==typeof e&&/^[+-]?\d+(\.\d+)?$/.test(e)&&(e=parseFloat(e)),t){if("javascript"===t)return i.date(1*e);if("unix"===t)return i.date(1e3*e);if("string"==typeof r)return null}return i.date(e)},i.date=function(e){const t=new Date(e);return isNaN(t.getTime())?null:t}},390:(e,t,r)=>{"use strict";const a=r(375),n=r(7824);e.exports=n.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(e){return a(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:e}})},validate(e,t,r){let{n:a}=r;return e.length===a?e:t.error("function.arity",{n:a})}},class:{method(){return this.$_addRule("class")},validate:(e,t)=>/^\s*class\s/.test(e.toString())?e:t.error("function.class",{value:e})},minArity:{method(e){return a(Number.isSafeInteger(e)&&e>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:e}})},validate(e,t,r){let{n:a}=r;return e.length>=a?e:t.error("function.minArity",{n:a})}},maxArity:{method(e){return a(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:e}})},validate(e,t,r){let{n:a}=r;return e.length<=a?e:t.error("function.maxArity",{n:a})}}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},7824:(e,t,r)=>{"use strict";const a=r(978),n=r(375),o=r(8571),s=r(3652),i=r(8068),l=r(8160),c=r(3292),u=r(6354),d=r(6133),p=r(3328),g={renameDefaults:{alias:!1,multiple:!1,override:!1}};e.exports=i.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:!1}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(e,t)=>e.keys(t),validate(e,t){let{schema:r,error:a,state:n,prefs:o}=t;if(!e||typeof e!==r.$_property("typeof")||Array.isArray(e))return{value:e,errors:a("object.base",{type:r.$_property("typeof")})};if(!(r.$_terms.renames||r.$_terms.dependencies||r.$_terms.keys||r.$_terms.patterns||r.$_terms.externals))return;e=g.clone(e,o);const s=[];if(r.$_terms.renames&&!g.rename(r,e,n,o,s))return{value:e,errors:s};if(!r.$_terms.keys&&!r.$_terms.patterns&&!r.$_terms.dependencies)return{value:e,errors:s};const i=new Set(Object.keys(e));if(r.$_terms.keys){const t=[e,...n.ancestors];for(const a of r.$_terms.keys){const r=a.key,l=e[r];i.delete(r);const c=n.localize([...n.path,r],t,a),u=a.schema.$_validate(l,c,o);if(u.errors){if(o.abortEarly)return{value:e,errors:u.errors};void 0!==u.value&&(e[r]=u.value),s.push(...u.errors)}else"strip"===a.schema._flags.result||void 0===u.value&&void 0!==l?delete e[r]:void 0!==u.value&&(e[r]=u.value)}}if(i.size||r._flags._hasPatternMatch){const t=g.unknown(r,e,i,s,n,o);if(t)return t}if(r.$_terms.dependencies)for(const t of r.$_terms.dependencies){if(null!==t.key&&!1===g.isPresent(t.options)(t.key.resolve(e,n,o,null,{shadow:!1})))continue;const a=g.dependencies[t.rel](r,t,e,n,o);if(a){const t=r.$_createError(a.code,e,a.context,n,o);if(o.abortEarly)return{value:e,errors:t};s.push(t)}}return{value:e,errors:s}},rules:{and:{method(){for(var e=arguments.length,t=new Array(e),r=0;r!e.hasOwnProperty(t.key))):new g.Keys;for(const r in e)l.tryWithPath((()=>t.$_terms.keys.push({key:r,schema:this.$_compile(e[r])})),r)}else t.$_terms.keys=new g.Keys;else t.$_terms.keys=null;return t.$_mutateRebuild()}},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate(e,t,r,a){let{limit:n}=r,{name:o,operator:s,args:i}=a;return l.compare(Object.keys(e).length,n,s)?e:t.error("object."+o,{limit:i.limit,value:e})},args:[{name:"limit",ref:!0,assert:l.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},nand:{method(){for(var e=arguments.length,t=new Array(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};const a=e instanceof RegExp;a||(e=this.$_compile(e,{appendPath:!0})),n(void 0!==t,"Invalid rule"),l.assertOptions(r,["fallthrough","matches"]),a&&n(!e.flags.includes("g")&&!e.flags.includes("y"),"pattern should not use global or sticky mode"),t=this.$_compile(t,{appendPath:!0});const o=this.clone();o.$_terms.patterns=o.$_terms.patterns||[];const s={[a?"regex":"schema"]:e,rule:t};return r.matches&&(s.matches=this.$_compile(r.matches),"array"!==s.matches.type&&(s.matches=s.matches.$_root.array().items(s.matches)),o.$_mutateRegister(s.matches),o.$_setFlag("_hasPatternMatch",!0,{clone:!1})),r.fallthrough&&(s.fallthrough=!0),o.$_terms.patterns.push(s),o.$_mutateRegister(t),o}},ref:{method(){return this.$_addRule("ref")},validate:(e,t)=>d.isRef(e)?e:t.error("object.refType",{value:e})},regex:{method(){return this.$_addRule("regex")},validate:(e,t)=>e instanceof RegExp?e:t.error("object.regex",{value:e})},rename:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n("string"==typeof e||e instanceof RegExp,"Rename missing the from argument"),n("string"==typeof t||t instanceof p,"Invalid rename to argument"),n(t!==e,"Cannot rename key to same name:",e),l.assertOptions(r,["alias","ignoreUndefined","override","multiple"]);const o=this.clone();o.$_terms.renames=o.$_terms.renames||[];for(const t of o.$_terms.renames)n(t.from!==e,"Cannot rename the same key multiple times");return t instanceof p&&o.$_mutateRegister(t),o.$_terms.renames.push({from:e,to:t,options:a(g.renameDefaults,r)}),o}},schema:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return this.$_addRule({name:"schema",args:{type:e}})},validate(e,t,r){let{type:a}=r;return!l.isSchema(e)||"any"!==a&&e.type!==a?t.error("object.schema",{type:a}):e}},unknown:{method(e){return this.$_setFlag("unknown",!1!==e)}},with:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return g.dependency(this,"with",e,t,r)}},without:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return g.dependency(this,"without",e,t,r)}},xor:{method(){for(var e=arguments.length,t=new Array(e),r=0;rt.add(r,{after:r.schema.$_rootReferences(),group:r.key})),r.key);e.$_terms.keys=new g.Keys(...t.nodes)}},manifest:{build(e,t){if(t.keys&&(e=e.keys(t.keys)),t.dependencies)for(const{rel:r,key:a=null,peers:n,options:o}of t.dependencies)e=g.dependency(e,r,a,n,o);if(t.patterns)for(const{regex:r,schema:a,rule:n,fallthrough:o,matches:s}of t.patterns)e=e.pattern(r||a,n,{fallthrough:o,matches:s});if(t.renames)for(const{from:r,to:a,options:n}of t.renames)e=e.rename(r,a,n);return e}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),g.clone=function(e,t){if("object"==typeof e){if(t.nonEnumerables)return o(e,{shallow:!0});const r=Object.create(Object.getPrototypeOf(e));return Object.assign(r,e),r}const r=function(){for(var t=arguments.length,r=new Array(t),a=0;a1&&"object"==typeof a[a.length-1]?a.pop():{}),l.assertOptions(o,["separator","isPresent"]),a=[].concat(a);const s=l.default(o.separator,"."),i=[];for(const e of a)n("string"==typeof e,t,"peers must be strings"),i.push(c.ref(e,{separator:s,ancestor:0,prefix:!1}));null!==r&&(r=c.ref(r,{separator:s,ancestor:0,prefix:!1}));const u=e.clone();return u.$_terms.dependencies=u.$_terms.dependencies||[],u.$_terms.dependencies.push(new g.Dependency(t,r,i,a,o)),u},g.dependencies={and(e,t,r,a,n){const o=[],s=[],i=t.peers.length,l=g.isPresent(t.options);for(const e of t.peers)!1===l(e.resolve(r,a,n,null,{shadow:!1}))?o.push(e.key):s.push(e.key);if(o.length!==i&&s.length!==i)return{code:"object.and",context:{present:s,presentWithLabels:g.keysToLabels(e,s),missing:o,missingWithLabels:g.keysToLabels(e,o)}}},nand(e,t,r,a,n){const o=[],s=g.isPresent(t.options);for(const e of t.peers)s(e.resolve(r,a,n,null,{shadow:!1}))&&o.push(e.key);if(o.length!==t.peers.length)return;const i=t.paths[0],l=t.paths.slice(1);return{code:"object.nand",context:{main:i,mainWithLabel:g.keysToLabels(e,i),peers:l,peersWithLabels:g.keysToLabels(e,l)}}},or(e,t,r,a,n){const o=g.isPresent(t.options);for(const e of t.peers)if(o(e.resolve(r,a,n,null,{shadow:!1})))return;return{code:"object.missing",context:{peers:t.paths,peersWithLabels:g.keysToLabels(e,t.paths)}}},oxor(e,t,r,a,n){const o=[],s=g.isPresent(t.options);for(const e of t.peers)s(e.resolve(r,a,n,null,{shadow:!1}))&&o.push(e.key);if(!o.length||1===o.length)return;const i={peers:t.paths,peersWithLabels:g.keysToLabels(e,t.paths)};return i.present=o,i.presentWithLabels=g.keysToLabels(e,o),{code:"object.oxor",context:i}},with(e,t,r,a,n){const o=g.isPresent(t.options);for(const s of t.peers)if(!1===o(s.resolve(r,a,n,null,{shadow:!1})))return{code:"object.with",context:{main:t.key.key,mainWithLabel:g.keysToLabels(e,t.key.key),peer:s.key,peerWithLabel:g.keysToLabels(e,s.key)}}},without(e,t,r,a,n){const o=g.isPresent(t.options);for(const s of t.peers)if(o(s.resolve(r,a,n,null,{shadow:!1})))return{code:"object.without",context:{main:t.key.key,mainWithLabel:g.keysToLabels(e,t.key.key),peer:s.key,peerWithLabel:g.keysToLabels(e,s.key)}}},xor(e,t,r,a,n){const o=[],s=g.isPresent(t.options);for(const e of t.peers)s(e.resolve(r,a,n,null,{shadow:!1}))&&o.push(e.key);if(1===o.length)return;const i={peers:t.paths,peersWithLabels:g.keysToLabels(e,t.paths)};return 0===o.length?{code:"object.missing",context:i}:(i.present=o,i.presentWithLabels=g.keysToLabels(e,o),{code:"object.xor",context:i})}},g.keysToLabels=function(e,t){return Array.isArray(t)?t.map((t=>e.$_mapLabels(t))):e.$_mapLabels(t)},g.isPresent=function(e){return"function"==typeof e.isPresent?e.isPresent:e=>void 0!==e},g.rename=function(e,t,r,a,n){const o={};for(const s of e.$_terms.renames){const i=[],l="string"!=typeof s.from;if(l)for(const e in t){if(void 0===t[e]&&s.options.ignoreUndefined)continue;if(e===s.to)continue;const r=s.from.exec(e);r&&i.push({from:e,to:s.to,match:r})}else!Object.prototype.hasOwnProperty.call(t,s.from)||void 0===t[s.from]&&s.options.ignoreUndefined||i.push(s);for(const c of i){const i=c.from;let u=c.to;if(u instanceof p&&(u=u.render(t,r,a,c.match)),i!==u){if(!s.options.multiple&&o[u]&&(n.push(e.$_createError("object.rename.multiple",t,{from:i,to:u,pattern:l},r,a)),a.abortEarly))return!1;if(Object.prototype.hasOwnProperty.call(t,u)&&!s.options.override&&!o[u]&&(n.push(e.$_createError("object.rename.override",t,{from:i,to:u,pattern:l},r,a)),a.abortEarly))return!1;void 0===t[i]?delete t[u]:t[u]=t[i],o[u]=!0,s.options.alias||delete t[i]}}}return!0},g.unknown=function(e,t,r,a,n,o){if(e.$_terms.patterns){let s=!1;const i=e.$_terms.patterns.map((e=>{if(e.matches)return s=!0,[]})),l=[t,...n.ancestors];for(const s of r){const c=t[s],u=[...n.path,s];for(let d=0;d{"use strict";const a=r(375),n=r(8068),o=r(8160),s=r(3292),i=r(6354),l={};e.exports=n.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(e,t)=>e.ref(t),validate(e,t){let{schema:r,state:n,prefs:o}=t;a(r.$_terms.link,"Uninitialized link schema");const s=l.generate(r,e,n,o),i=r.$_terms.link[0].ref;return s.$_validate(e,n.nest(s,`link:${i.display}:${s.type}`),o)},generate:(e,t,r,a)=>l.generate(e,t,r,a),rules:{ref:{method(e){a(!this.$_terms.link,"Cannot reinitialize schema"),e=s.ref(e),a("value"===e.type||"local"===e.type,"Invalid reference type:",e.type),a("local"===e.type||"root"===e.ancestor||e.ancestor>0,"Link cannot reference itself");const t=this.clone();return t.$_terms.link=[{ref:e}],t}},relative:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("relative",e)}}},overrides:{concat(e){a(this.$_terms.link,"Uninitialized link schema"),a(o.isSchema(e),"Invalid schema object"),a("link"!==e.type,"Cannot merge type link with another link");const t=this.clone();return t.$_terms.whens||(t.$_terms.whens=[]),t.$_terms.whens.push({concat:e}),t.$_mutateRebuild()}},manifest:{build:(e,t)=>(a(t.link,"Invalid link description missing link"),e.ref(t.link))}}),l.generate=function(e,t,r,a){let n=r.mainstay.links.get(e);if(n)return n._generate(t,r,a).schema;const o=e.$_terms.link[0].ref,{perspective:s,path:i}=l.perspective(o,r);l.assert(s,"which is outside of schema boundaries",o,e,r,a);try{n=i.length?s.$_reach(i):s}catch(t){l.assert(!1,"to non-existing schema",o,e,r,a)}return l.assert("link"!==n.type,"which is another link",o,e,r,a),e._flags.relative||r.mainstay.links.set(e,n),n._generate(t,r,a).schema},l.perspective=function(e,t){if("local"===e.type){for(const{schema:r,key:a}of t.schemas){if((r._flags.id||a)===e.path[0])return{perspective:r,path:e.path.slice(1)};if(r.$_terms.shared)for(const t of r.$_terms.shared)if(t._flags.id===e.path[0])return{perspective:t,path:e.path.slice(1)}}return{perspective:null,path:null}}return"root"===e.ancestor?{perspective:t.schemas[t.schemas.length-1].schema,path:e.path}:{perspective:t.schemas[e.ancestor]&&t.schemas[e.ancestor].schema,path:e.path}},l.assert=function(e,t,r,n,o,s){e||a(!1,`"${i.label(n._flags,o,s)}" contains link reference "${r.display}" ${t}`)}},3832:(e,t,r)=>{"use strict";const a=r(375),n=r(8068),o=r(8160),s={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,exponentialPartRegex:/[eE][+-]?\d+$/,leadingSignAndZerosRegex:/^[+-]?(0*)?/,dotRegex:/\./,trailingZerosRegex:/0+$/};e.exports=n.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(e,t){let{schema:r,error:a}=t;if(!e.match(s.numberRx))return;e=e.trim();const n={value:parseFloat(e)};if(0===n.value&&(n.value=0),!r._flags.unsafe)if(e.match(/e/i)){if(s.extractSignificantDigits(e)!==s.extractSignificantDigits(String(n.value)))return n.errors=a("number.unsafe"),n}else{const t=n.value.toString();if(t.match(/e/i))return n;if(t!==s.normalizeDecimal(e))return n.errors=a("number.unsafe"),n}return n}},validate(e,t){let{schema:r,error:a,prefs:n}=t;if(e===1/0||e===-1/0)return{value:e,errors:a("number.infinity")};if(!o.isNumber(e))return{value:e,errors:a("number.base")};const s={value:e};if(n.convert){const e=r.$_getRule("precision");if(e){const t=Math.pow(10,e.args.limit);s.value=Math.round(s.value*t)/t}}return 0===s.value&&(s.value=0),!r._flags.unsafe&&(e>Number.MAX_SAFE_INTEGER||e"})}},integer:{method(){return this.$_addRule("integer")},validate:(e,t)=>Math.trunc(e)-e==0?e:t.error("number.integer")},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{limit:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{limit:e},operator:">="})}},multiple:{method(e){return this.$_addRule({name:"multiple",args:{base:e}})},validate(e,t,r,a){let{base:n}=r;return e*(1/n)%1==0?e:t.error("number.multiple",{multiple:a.args.base,value:e})},args:[{name:"base",ref:!0,assert:e=>"number"==typeof e&&isFinite(e)&&e>0,message:"must be a positive number"}],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(e,t)=>Number.isSafeInteger(e)&&e>=0&&e<=65535?e:t.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(e){return a(Number.isSafeInteger(e),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:e}})},validate(e,t,r){let{limit:a}=r;const n=e.toString().match(s.precisionRx);return Math.max((n[1]?n[1].length:0)-(n[2]?parseInt(n[2],10):0),0)<=a?e:t.error("number.precision",{limit:a,value:e})},convert:!0},sign:{method(e){return a(["negative","positive"].includes(e),"Invalid sign",e),this.$_addRule({name:"sign",args:{sign:e}})},validate(e,t,r){let{sign:a}=r;return"negative"===a&&e<0||"positive"===a&&e>0?e:t.error(`number.${a}`)}},unsafe:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return a("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("unsafe",e)}}},cast:{string:{from:e=>"number"==typeof e,to:(e,t)=>e.toString()}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),s.extractSignificantDigits=function(e){return e.replace(s.exponentialPartRegex,"").replace(s.dotRegex,"").replace(s.trailingZerosRegex,"").replace(s.leadingSignAndZerosRegex,"")},s.normalizeDecimal=function(e){return(e=e.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&e.endsWith("0")&&(e=e.replace(/0+$/,"")),"-0"===e?"0":e}},8966:(e,t,r)=>{"use strict";const a=r(7824);e.exports=a.extend({type:"object",cast:{map:{from:e=>e&&"object"==typeof e,to:(e,t)=>new Map(Object.entries(e))}}})},7417:(e,t,r)=>{"use strict";const a=r(375),n=r(5380),o=r(1745),s=r(9959),i=r(6064),l=r(9926),c=r(5752),u=r(8068),d=r(8160),p={tlds:l instanceof Set&&{tlds:{allow:l,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:/^[a-f0-9]+$/i,ipRegex:s.regex({cidr:"forbidden"}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5",uuidv6:"6",uuidv7:"7",uuidv8:"8"},guidSeparators:new Set([void 0,!0,!1,"-",":"]),normalizationForms:["NFC","NFD","NFKC","NFKD"]};e.exports=u.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method(e,t){let{schema:r,state:a,prefs:n}=t;const o=r.$_getRule("normalize");o&&(e=e.normalize(o.args.form));const s=r.$_getRule("case");s&&(e="upper"===s.args.direction?e.toLocaleUpperCase():e.toLocaleLowerCase());const i=r.$_getRule("trim");if(i&&i.args.enabled&&(e=e.trim()),r.$_terms.replacements)for(const t of r.$_terms.replacements)e=e.replace(t.pattern,t.replacement);const l=r.$_getRule("hex");if(l&&l.args.options.byteAligned&&e.length%2!=0&&(e=`0${e}`),r.$_getRule("isoDate")){const t=p.isoDate(e);t&&(e=t)}if(r._flags.truncate){const t=r.$_getRule("max");if(t){let o=t.args.limit;if(d.isResolvable(o)&&(o=o.resolve(e,a,n),!d.limit(o)))return{value:e,errors:r.$_createError("any.ref",o,{ref:t.args.limit,arg:"limit",reason:"must be a positive integer"},a,n)};e=e.slice(0,o)}}return{value:e}}},validate(e,t){let{schema:r,error:a}=t;if("string"!=typeof e)return{value:e,errors:a("string.base")};if(""===e){const t=r.$_getRule("min");if(t&&0===t.args.limit)return;return{value:e,errors:a("string.empty")}}},rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(e,t)=>/^[a-zA-Z0-9]+$/.test(e)?e:t.error("string.alphanum")},base64:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.assertOptions(e,["paddingRequired","urlSafe"]),e={urlSafe:!1,paddingRequired:!0,...e},a("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),a("boolean"==typeof e.urlSafe,"urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:e}})},validate(e,t,r){let{options:a}=r;return p.base64Regex[a.paddingRequired][a.urlSafe].test(e)?e:t.error("string.base64")}},case:{method(e){return a(["lower","upper"].includes(e),"Invalid case:",e),this.$_addRule({name:"case",args:{direction:e}})},validate(e,t,r){let{direction:a}=r;return"lower"===a&&e===e.toLocaleLowerCase()||"upper"===a&&e===e.toLocaleUpperCase()?e:t.error(`string.${a}case`)},convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(e,t){let r=e.length,a=0,n=1;for(;r--;){const t=e.charAt(r)*n;a+=t-9*(t>9),n^=3}return a>0&&a%10==0?e:t.error("string.creditCard")}},dataUri:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.assertOptions(e,["paddingRequired"]),e={paddingRequired:!0,...e},a("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:e}})},validate(e,t,r){let{options:a}=r;const n=e.match(p.dataUriRegex);if(n){if(!n[2])return e;if("base64"!==n[2])return e;if(p.base64Regex[a.paddingRequired].false.test(n[3]))return e}return t.error("string.dataUri")}},domain:{method(e){e&&d.assertOptions(e,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const t=p.addressOptions(e);return this.$_addRule({name:"domain",args:{options:e},address:t})},validate(e,t,r,a){let{address:o}=a;return n.isValid(e,o)?e:t.error("string.domain")}},email:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.assertOptions(e,["allowFullyQualified","allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),a(void 0===e.multiple||"boolean"==typeof e.multiple,"multiple option must be an boolean");const t=p.addressOptions(e),r=new RegExp(`\\s*[${e.separator?i(e.separator):","}]\\s*`);return this.$_addRule({name:"email",args:{options:e},regex:r,address:t})},validate(e,t,r,a){let{options:n}=r,{regex:s,address:i}=a;const l=n.multiple?e.split(s):[e],c=[];for(const e of l)o.isValid(e,i)||c.push(e);return c.length?t.error("string.email",{value:e,invalids:c}):e}},guid:{alias:"uuid",method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.assertOptions(e,["version","separator"]);let t="";if(e.version){const r=[].concat(e.version);a(r.length>=1,"version must have at least 1 valid version specified");const n=new Set;for(let e=0;e0&&void 0!==arguments[0]?arguments[0]:{};return d.assertOptions(e,["byteAligned"]),e={byteAligned:!1,...e},a("boolean"==typeof e.byteAligned,"byteAligned must be boolean"),this.$_addRule({name:"hex",args:{options:e}})},validate(e,t,r){let{options:a}=r;return p.hexRegex.test(e)?a.byteAligned&&e.length%2!=0?t.error("string.hexAlign"):e:t.error("string.hex")}},hostname:{method(){return this.$_addRule("hostname")},validate:(e,t)=>n.isValid(e,{minDomainSegments:1})||p.ipRegex.test(e)?e:t.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.assertOptions(e,["cidr","version"]);const{cidr:t,versions:r,regex:a}=s.regex(e),n=e.version?r:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:t,version:n}},regex:a})},validate(e,t,r,a){let{options:n}=r,{regex:o}=a;return o.test(e)?e:n.version?t.error("string.ipVersion",{value:e,cidr:n.cidr,version:n.version}):t.error("string.ip",{value:e,cidr:n.cidr})}},isoDate:{method(){return this.$_addRule("isoDate")},validate(e,t){let{error:r}=t;return p.isoDate(e)?e:r("string.isoDate")}},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(e,t)=>p.isoDurationRegex.test(e)?e:t.error("string.isoDuration")},length:{method(e,t){return p.length(this,"length",e,"=",t)},validate(e,t,r,a){let{limit:n,encoding:o}=r,{name:s,operator:i,args:l}=a;const c=!o&&e.length;return d.compare(c,n,i)?e:t.error("string."+s,{limit:l.limit,value:e,encoding:o})},args:[{name:"limit",ref:!0,assert:d.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(e,t){return p.length(this,"max",e,"<=",t)},args:["limit","encoding"]},min:{method(e,t){return p.length(this,"min",e,">=",t)},args:["limit","encoding"]},normalize:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"NFC";return a(p.normalizationForms.includes(e),"normalization form must be one of "+p.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:e}})},validate(e,t,r){let{error:a}=t,{form:n}=r;return e===e.normalize(n)?e:a("string.normalize",{value:e,form:n})},convert:!0},pattern:{alias:"regex",method(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(e instanceof RegExp,"regex must be a RegExp"),a(!e.flags.includes("g")&&!e.flags.includes("y"),"regex should not use global or sticky mode"),"string"==typeof t&&(t={name:t}),d.assertOptions(t,["invert","name"]);const r=["string.pattern",t.invert?".invert":"",t.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:e,options:t},errorCode:r})},validate(e,t,r,a){let{regex:n,options:o}=r,{errorCode:s}=a;return n.test(e)^o.invert?e:t.error(s,{name:o.name,regex:n,value:e})},args:["regex","options"],multi:!0},replace:{method(e,t){"string"==typeof e&&(e=new RegExp(i(e),"g")),a(e instanceof RegExp,"pattern must be a RegExp"),a("string"==typeof t,"replacement must be a String");const r=this.clone();return r.$_terms.replacements||(r.$_terms.replacements=[]),r.$_terms.replacements.push({pattern:e,replacement:t}),r}},token:{method(){return this.$_addRule("token")},validate:(e,t)=>/^\w+$/.test(e)?e:t.error("string.token")},trim:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return a("boolean"==typeof e,"enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:e}})},validate(e,t,r){let{enabled:a}=r;return a&&e!==e.trim()?t.error("string.trim"):e},convert:!0},truncate:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return a("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("truncate",e)}},uppercase:{method(){return this.case("upper")}},uri:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.assertOptions(e,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme"]),e.domain&&d.assertOptions(e.domain,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const{regex:t,scheme:r}=c.regex(e),a=e.domain?p.addressOptions(e.domain):null;return this.$_addRule({name:"uri",args:{options:e},regex:t,domain:a,scheme:r})},validate(e,t,r,a){let{options:o}=r,{regex:s,domain:i,scheme:l}=a;if(["http:/","https:/"].includes(e))return t.error("string.uri");const c=s.exec(e);if(c){const r=c[1]||c[2];return!i||o.allowRelative&&!r||n.isValid(r,i)?e:t.error("string.domain",{value:r})}return o.relativeOnly?t.error("string.uriRelativeOnly"):o.scheme?t.error("string.uriCustomScheme",{scheme:l,value:e}):t.error("string.uri")}}},manifest:{build(e,t){if(t.replacements)for(const{pattern:r,replacement:a}of t.replacements)e=e.replace(r,a);return e}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),p.addressOptions=function(e){if(!e)return e;if(a(void 0===e.minDomainSegments||Number.isSafeInteger(e.minDomainSegments)&&e.minDomainSegments>0,"minDomainSegments must be a positive integer"),a(void 0===e.maxDomainSegments||Number.isSafeInteger(e.maxDomainSegments)&&e.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),!1===e.tlds)return e;if(!0===e.tlds||void 0===e.tlds)return a(p.tlds,"Built-in TLD list disabled"),Object.assign({},e,p.tlds);a("object"==typeof e.tlds,"tlds must be true, false, or an object");const t=e.tlds.deny;if(t)return Array.isArray(t)&&(e=Object.assign({},e,{tlds:{deny:new Set(t)}})),a(e.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),a(!e.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),p.validateTlds(e.tlds.deny,"tlds.deny"),e;const r=e.tlds.allow;return r?!0===r?(a(p.tlds,"Built-in TLD list disabled"),Object.assign({},e,p.tlds)):(Array.isArray(r)&&(e=Object.assign({},e,{tlds:{allow:new Set(r)}})),a(e.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),p.validateTlds(e.tlds.allow,"tlds.allow"),e):e},p.validateTlds=function(e,t){for(const r of e)a(n.isValid(r,{minDomainSegments:1,maxDomainSegments:1}),`${t} must contain valid top level domain names`)},p.isoDate=function(e){if(!d.isIsoDate(e))return null;/.*T.*[+-]\d\d$/.test(e)&&(e+="00");const t=new Date(e);return isNaN(t.getTime())?null:t.toISOString()},p.length=function(e,t,r,n,o){return a(!o||!1,"Invalid encoding:",o),e.$_addRule({name:t,method:"length",args:{limit:r,encoding:o},operator:n})}},8826:(e,t,r)=>{"use strict";const a=r(375),n=r(8068),o={};o.Map=class extends Map{slice(){return new o.Map(this)}},e.exports=n.extend({type:"symbol",terms:{map:{init:new o.Map}},coerce:{method(e,t){let{schema:r,error:a}=t;const n=r.$_terms.map.get(e);return n&&(e=n),r._flags.only&&"symbol"!=typeof e?{value:e,errors:a("symbol.map",{map:r.$_terms.map})}:{value:e}}},validate(e,t){let{error:r}=t;if("symbol"!=typeof e)return{value:e,errors:r("symbol.base")}},rules:{map:{method(e){e&&!e[Symbol.iterator]&&"object"==typeof e&&(e=Object.entries(e)),a(e&&e[Symbol.iterator],"Iterable must be an iterable or object");const t=this.clone(),r=[];for(const n of e){a(n&&n[Symbol.iterator],"Entry must be an iterable");const[e,o]=n;a("object"!=typeof e&&"function"!=typeof e&&"symbol"!=typeof e,"Key must not be of type object, function, or Symbol"),a("symbol"==typeof o,"Value must be a Symbol"),t.$_terms.map.set(e,o),r.push(o)}return t.valid(...r)}}},manifest:{build:(e,t)=>(t.map&&(e=e.map(t.map)),e)},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})},8863:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(738),s=r(9621),i=r(8160),l=r(6354),c=r(493),u={result:Symbol("result")};t.entry=function(e,t,r){let n=i.defaults;r&&(a(void 0===r.warnings,"Cannot override warnings preference in synchronous validation"),a(void 0===r.artifacts,"Cannot override artifacts preference in synchronous validation"),n=i.preferences(i.defaults,r));const o=u.entry(e,t,n);a(!o.mainstay.externals.length,"Schema with external rules must use validateAsync()");const s={value:o.value};return o.error&&(s.error=o.error),o.mainstay.warnings.length&&(s.warning=l.details(o.mainstay.warnings)),o.mainstay.debug&&(s.debug=o.mainstay.debug),o.mainstay.artifacts&&(s.artifacts=o.mainstay.artifacts),s},t.entryAsync=async function(e,t,r){let a=i.defaults;r&&(a=i.preferences(i.defaults,r));const n=u.entry(e,t,a),o=n.mainstay;if(n.error)throw o.debug&&(n.error.debug=o.debug),n.error;if(o.externals.length){let t=n.value;const c=[];for(const n of o.externals){const d=n.state.path,p="link"===n.schema.type?o.links.get(n.schema):null;let g,m,w=t;const y=d.length?[t]:[],f=d.length?s(e,d):e;if(d.length){g=d[d.length-1];let e=t;for(const t of d.slice(0,-1))e=e[t],y.unshift(e);m=y[0],w=m[g]}try{const e=(e,t)=>(p||n.schema).$_createError(e,w,t,n.state,a),s=await n.method(w,{schema:n.schema,linked:p,state:n.state,prefs:r,original:f,error:e,errorsArray:u.errorsArray,warn:(e,t)=>o.warnings.push((p||n.schema).$_createError(e,w,t,n.state,a)),message:(e,t)=>(p||n.schema).$_createError("external",w,t,n.state,a,{messages:e})});if(void 0===s||s===w)continue;if(s instanceof l.Report){if(o.tracer.log(n.schema,n.state,"rule","external","error"),c.push(s),a.abortEarly)break;continue}if(Array.isArray(s)&&s[i.symbols.errors]){if(o.tracer.log(n.schema,n.state,"rule","external","error"),c.push(...s),a.abortEarly)break;continue}m?(o.tracer.value(n.state,"rule",w,s,"external"),m[g]=s):(o.tracer.value(n.state,"rule",t,s,"external"),t=s)}catch(e){throw a.errors.label&&(e.message+=` (${n.label})`),e}}if(n.value=t,c.length)throw n.error=l.process(c,e,a),o.debug&&(n.error.debug=o.debug),n.error}if(!a.warnings&&!a.debug&&!a.artifacts)return n.value;const c={value:n.value};return o.warnings.length&&(c.warning=l.details(o.warnings)),o.debug&&(c.debug=o.debug),o.artifacts&&(c.artifacts=o.artifacts),c},u.Mainstay=class{constructor(e,t,r){this.externals=[],this.warnings=[],this.tracer=e,this.debug=t,this.links=r,this.shadow=null,this.artifacts=null,this._snapshots=[]}snapshot(){this._snapshots.push({externals:this.externals.slice(),warnings:this.warnings.slice()})}restore(){const e=this._snapshots.pop();this.externals=e.externals,this.warnings=e.warnings}commit(){this._snapshots.pop()}},u.entry=function(e,r,a){const{tracer:n,cleanup:o}=u.tracer(r,a),s=a.debug?[]:null,i=r._ids._schemaChain?new Map:null,d=new u.Mainstay(n,s,i),p=r._ids._schemaChain?[{schema:r}]:null,g=new c([],[],{mainstay:d,schemas:p}),m=t.validate(e,r,g,a);o&&r.$_root.untrace();const w=l.process(m.errors,e,a);return{value:m.value,error:w,mainstay:d}},u.tracer=function(e,t){return e.$_root._tracer?{tracer:e.$_root._tracer._register(e)}:t.debug?(a(e.$_root.trace,"Debug mode not supported"),{tracer:e.$_root.trace()._register(e),cleanup:!0}):{tracer:u.ignore}},t.validate=function(e,t,r,a){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(t.$_terms.whens&&(t=t._generate(e,r,a).schema),t._preferences&&(a=u.prefs(t,a)),t._cache&&a.cache){const a=t._cache.get(e);if(r.mainstay.tracer.debug(r,"validate","cached",!!a),a)return a}const o=(n,o,s)=>t.$_createError(n,e,o,s||r,a),s={original:e,prefs:a,schema:t,state:r,error:o,errorsArray:u.errorsArray,warn:(e,t,a)=>r.mainstay.warnings.push(o(e,t,a)),message:(n,o)=>t.$_createError("custom",e,o,r,a,{messages:n})};r.mainstay.tracer.entry(t,r);const l=t._definition;if(l.prepare&&void 0!==e&&a.convert){const t=l.prepare(e,s);if(t){if(r.mainstay.tracer.value(r,"prepare",e,t.value),t.errors)return u.finalize(t.value,[].concat(t.errors),s);e=t.value}}if(l.coerce&&void 0!==e&&a.convert&&(!l.coerce.from||l.coerce.from.includes(typeof e))){const t=l.coerce.method(e,s);if(t){if(r.mainstay.tracer.value(r,"coerced",e,t.value),t.errors)return u.finalize(t.value,[].concat(t.errors),s);e=t.value}}const c=t._flags.empty;c&&c.$_match(u.trim(e,t),r.nest(c),i.defaults)&&(r.mainstay.tracer.value(r,"empty",e,void 0),e=void 0);const d=n.presence||t._flags.presence||(t._flags._endedSwitch?null:a.presence);if(void 0===e){if("forbidden"===d)return u.finalize(e,null,s);if("required"===d)return u.finalize(e,[t.$_createError("any.required",e,null,r,a)],s);if("optional"===d){if(t._flags.default!==i.symbols.deepDefault)return u.finalize(e,null,s);r.mainstay.tracer.value(r,"default",e,{}),e={}}}else if("forbidden"===d)return u.finalize(e,[t.$_createError("any.unknown",e,null,r,a)],s);const p=[];if(t._valids){const n=t._valids.get(e,r,a,t._flags.insensitive);if(n)return a.convert&&(r.mainstay.tracer.value(r,"valids",e,n.value),e=n.value),r.mainstay.tracer.filter(t,r,"valid",n),u.finalize(e,null,s);if(t._flags.only){const n=t.$_createError("any.only",e,{valids:t._valids.values({display:!0})},r,a);if(a.abortEarly)return u.finalize(e,[n],s);p.push(n)}}if(t._invalids){const n=t._invalids.get(e,r,a,t._flags.insensitive);if(n){r.mainstay.tracer.filter(t,r,"invalid",n);const o=t.$_createError("any.invalid",e,{invalids:t._invalids.values({display:!0})},r,a);if(a.abortEarly)return u.finalize(e,[o],s);p.push(o)}}if(l.validate){const t=l.validate(e,s);if(t&&(r.mainstay.tracer.value(r,"base",e,t.value),e=t.value,t.errors)){if(!Array.isArray(t.errors))return p.push(t.errors),u.finalize(e,p,s);if(t.errors.length)return p.push(...t.errors),u.finalize(e,p,s)}}return t._rules.length?u.rules(e,p,s):u.finalize(e,p,s)},u.rules=function(e,t,r){const{schema:a,state:n,prefs:o}=r;for(const s of a._rules){const l=a._definition.rules[s.method];if(l.convert&&o.convert){n.mainstay.tracer.log(a,n,"rule",s.name,"full");continue}let c,d=s.args;if(s._resolve.length){d=Object.assign({},d);for(const t of s._resolve){const r=l.argsByName.get(t),s=d[t].resolve(e,n,o),u=r.normalize?r.normalize(s):s,p=i.validateArg(u,null,r);if(p){c=a.$_createError("any.ref",s,{arg:t,ref:d[t],reason:p},n,o);break}d[t]=u}}c=c||l.validate(e,r,d,s);const p=u.rule(c,s);if(p.errors){if(n.mainstay.tracer.log(a,n,"rule",s.name,"error"),s.warn){n.mainstay.warnings.push(...p.errors);continue}if(o.abortEarly)return u.finalize(e,p.errors,r);t.push(...p.errors)}else n.mainstay.tracer.log(a,n,"rule",s.name,"pass"),n.mainstay.tracer.value(n,"rule",e,p.value,s.name),e=p.value}return u.finalize(e,t,r)},u.rule=function(e,t){return e instanceof l.Report?(u.error(e,t),{errors:[e],value:null}):Array.isArray(e)&&e[i.symbols.errors]?(e.forEach((e=>u.error(e,t))),{errors:e,value:null}):{errors:null,value:e}},u.error=function(e,t){return t.message&&e._setTemplate(t.message),e},u.finalize=function(e,t,r){t=t||[];const{schema:n,state:o,prefs:s}=r;if(t.length){const a=u.default("failover",void 0,t,r);void 0!==a&&(o.mainstay.tracer.value(o,"failover",e,a),e=a,t=[])}if(t.length&&n._flags.error)if("function"==typeof n._flags.error){t=n._flags.error(t),Array.isArray(t)||(t=[t]);for(const e of t)a(e instanceof Error||e instanceof l.Report,"error() must return an Error object")}else t=[n._flags.error];if(void 0===e){const a=u.default("default",e,t,r);o.mainstay.tracer.value(o,"default",e,a),e=a}if(n._flags.cast&&void 0!==e){const t=n._definition.cast[n._flags.cast];if(t.from(e)){const a=t.to(e,r);o.mainstay.tracer.value(o,"cast",e,a,n._flags.cast),e=a}}if(n.$_terms.externals&&s.externals&&!1!==s._externals)for(const{method:e}of n.$_terms.externals)o.mainstay.externals.push({method:e,schema:n,state:o,label:l.label(n._flags,o,s)});const i={value:e,errors:t.length?t:null};return n._flags.result&&(i.value="strip"===n._flags.result?void 0:r.original,o.mainstay.tracer.value(o,n._flags.result,e,i.value),o.shadow(e,n._flags.result)),n._cache&&!1!==s.cache&&!n._refs.length&&n._cache.set(r.original,i),void 0===e||i.errors||void 0===n._flags.artifact||(o.mainstay.artifacts=o.mainstay.artifacts||new Map,o.mainstay.artifacts.has(n._flags.artifact)||o.mainstay.artifacts.set(n._flags.artifact,[]),o.mainstay.artifacts.get(n._flags.artifact).push(o.path)),i},u.prefs=function(e,t){const r=t===i.defaults;return r&&e._preferences[i.symbols.prefs]?e._preferences[i.symbols.prefs]:(t=i.preferences(t,e._preferences),r&&(e._preferences[i.symbols.prefs]=t),t)},u.default=function(e,t,r,a){const{schema:o,state:s,prefs:l}=a,c=o._flags[e];if(l.noDefaults||void 0===c)return t;if(s.mainstay.tracer.log(o,s,"rule",e,"full"),!c)return c;if("function"==typeof c){const i=c.length?[n(s.ancestors[0]),a]:[];try{return c(...i)}catch(t){return void r.push(o.$_createError(`any.${e}`,null,{error:t},s,l))}}return"object"!=typeof c?c:c[i.symbols.literal]?c.literal:i.isResolvable(c)?c.resolve(t,s,l):n(c)},u.trim=function(e,t){if("string"!=typeof e)return e;const r=t.$_getRule("trim");return r&&r.args.enabled?e.trim():e},u.ignore={active:!1,debug:o,entry:o,filter:o,log:o,resolve:o,value:o},u.errorsArray=function(){const e=[];return e[i.symbols.errors]=!0,e}},2036:(e,t,r)=>{"use strict";const a=r(375),n=r(9474),o=r(8160),s={};e.exports=s.Values=class{constructor(e,t){this._values=new Set(e),this._refs=new Set(t),this._lowercase=s.lowercases(e),this._override=!1}get length(){return this._values.size+this._refs.size}add(e,t){o.isResolvable(e)?this._refs.has(e)||(this._refs.add(e),t&&t.register(e)):this.has(e,null,null,!1)||(this._values.add(e),"string"==typeof e&&this._lowercase.set(e.toLowerCase(),e))}static merge(e,t,r){if(e=e||new s.Values,t){if(t._override)return t.clone();for(const r of[...t._values,...t._refs])e.add(r)}if(r)for(const t of[...r._values,...r._refs])e.remove(t);return e.length?e:null}remove(e){o.isResolvable(e)?this._refs.delete(e):(this._values.delete(e),"string"==typeof e&&this._lowercase.delete(e.toLowerCase()))}has(e,t,r,a){return!!this.get(e,t,r,a)}get(e,t,r,a){if(!this.length)return!1;if(this._values.has(e))return{value:e};if("string"==typeof e&&e&&a){const t=this._lowercase.get(e.toLowerCase());if(t)return{value:t}}if(!this._refs.size&&"object"!=typeof e)return!1;if("object"==typeof e)for(const t of this._values)if(n(t,e))return{value:t};if(t)for(const o of this._refs){const s=o.resolve(e,t,r,null,{in:!0});if(void 0===s)continue;const i=o.in&&"object"==typeof s?Array.isArray(s)?s:Object.keys(s):[s];for(const t of i)if(typeof t==typeof e)if(a&&e&&"string"==typeof e){if(t.toLowerCase()===e.toLowerCase())return{value:t,ref:o}}else if(n(t,e))return{value:t,ref:o}}return!1}override(){this._override=!0}values(e){if(e&&e.display){const e=[];for(const t of[...this._values,...this._refs])void 0!==t&&e.push(t);return e}return Array.from([...this._values,...this._refs])}clone(){const e=new s.Values(this._values,this._refs);return e._override=this._override,e}concat(e){a(!e._override,"Cannot concat override set of values");const t=new s.Values([...this._values,...e._values],[...this._refs,...e._refs]);return t._override=this._override,t}describe(){const e=[];this._override&&e.push({override:!0});for(const t of this._values.values())e.push(t&&"object"==typeof t?{value:t}:t);for(const t of this._refs.values())e.push(t.describe());return e}},s.Values.prototype[o.symbols.values]=!0,s.Values.prototype.slice=s.Values.prototype.clone,s.lowercases=function(e){const t=new Map;if(e)for(const r of e)"string"==typeof r&&t.set(r.toLowerCase(),r);return t}},978:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(1687),s=r(9621),i={};e.exports=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(a(e&&"object"==typeof e,"Invalid defaults value: must be an object"),a(!t||!0===t||"object"==typeof t,"Invalid source value: must be true, falsy or an object"),a("object"==typeof r,"Invalid options: must be an object"),!t)return null;if(r.shallow)return i.applyToDefaultsWithShallow(e,t,r);const s=n(e);if(!0===t)return s;const l=void 0!==r.nullOverride&&r.nullOverride;return o(s,t,{nullOverride:l,mergeArrays:!1})},i.applyToDefaultsWithShallow=function(e,t,r){const l=r.shallow;a(Array.isArray(l),"Invalid keys");const c=new Map,u=!0===t?null:new Set;for(let r of l){r=Array.isArray(r)?r:r.split(".");const a=s(e,r);a&&"object"==typeof a?c.set(a,u&&s(t,r)||a):u&&u.add(r)}const d=n(e,{},c);if(!u)return d;for(const e of u)i.reachCopy(d,t,e);const p=void 0!==r.nullOverride&&r.nullOverride;return o(d,t,{nullOverride:p,mergeArrays:!1})},i.reachCopy=function(e,t,r){for(const e of r){if(!(e in t))return;const r=t[e];if("object"!=typeof r||null===r)return;t=r}const a=t;let n=e;for(let e=0;e{"use strict";const a=r(7916);e.exports=function(e){if(!e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n{"use strict";const a=r(9621),n=r(4277),o=r(7043),s={needsProtoHack:new Set([n.set,n.map,n.weakSet,n.weakMap])};e.exports=s.clone=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("object"!=typeof e||null===e)return e;let a=s.clone,i=r;if(t.shallow){if(!0!==t.shallow)return s.cloneWithShallow(e,t);a=e=>e}else if(i){const t=i.get(e);if(t)return t}else i=new Map;const l=n.getInternalProto(e);if(l===n.buffer)return!1;if(l===n.date)return new Date(e.getTime());if(l===n.regex)return new RegExp(e);const c=s.base(e,l,t);if(c===e)return e;if(i&&i.set(e,c),l===n.set)for(const r of e)c.add(a(r,t,i));else if(l===n.map)for(const[r,n]of e)c.set(r,a(n,t,i));const u=o.keys(e,t);for(const r of u){if("__proto__"===r)continue;if(l===n.array&&"length"===r){c.length=e.length;continue}const o=Object.getOwnPropertyDescriptor(e,r);o?o.get||o.set?Object.defineProperty(c,r,o):o.enumerable?c[r]=a(e[r],t,i):Object.defineProperty(c,r,{enumerable:!1,writable:!0,configurable:!0,value:a(e[r],t,i)}):Object.defineProperty(c,r,{enumerable:!0,writable:!0,configurable:!0,value:a(e[r],t,i)})}return c},s.cloneWithShallow=function(e,t){const r=t.shallow;(t=Object.assign({},t)).shallow=!1;const n=new Map;for(const t of r){const r=a(e,t);"object"!=typeof r&&"function"!=typeof r||n.set(r,r)}return s.clone(e,t,n)},s.base=function(e,t,r){if(!1===r.prototype)return s.needsProtoHack.has(t)?new t.constructor:t===n.array?[]:{};const a=Object.getPrototypeOf(e);if(a&&a.isImmutable)return e;if(t===n.array){const e=[];return a!==t&&Object.setPrototypeOf(e,a),e}if(s.needsProtoHack.has(t)){const e=new a.constructor;return a!==t&&Object.setPrototypeOf(e,a),e}return Object.create(a)}},9474:(e,t,r)=>{"use strict";const a=r(4277),n={mismatched:null};e.exports=function(e,t,r){return r=Object.assign({prototype:!0},r),!!n.isDeepEqual(e,t,r,[])},n.isDeepEqual=function(e,t,r,o){if(e===t)return 0!==e||1/e==1/t;const s=typeof e;if(s!==typeof t)return!1;if(null===e||null===t)return!1;if("function"===s){if(!r.deepFunction||e.toString()!==t.toString())return!1}else if("object"!==s)return e!=e&&t!=t;const i=n.getSharedType(e,t,!!r.prototype);switch(i){case a.buffer:return!1;case a.promise:return e===t;case a.regex:return e.toString()===t.toString();case n.mismatched:return!1}for(let r=o.length-1;r>=0;--r)if(o[r].isSame(e,t))return!0;o.push(new n.SeenEntry(e,t));try{return!!n.isDeepEqualObj(i,e,t,r,o)}finally{o.pop()}},n.getSharedType=function(e,t,r){if(r)return Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?n.mismatched:a.getInternalProto(e);const o=a.getInternalProto(e);return o!==a.getInternalProto(t)?n.mismatched:o},n.valueOf=function(e){const t=e.valueOf;if(void 0===t)return e;try{return t.call(e)}catch(e){return e}},n.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)},n.isSetSimpleEqual=function(e,t){for(const r of Set.prototype.values.call(e))if(!Set.prototype.has.call(t,r))return!1;return!0},n.isDeepEqualObj=function(e,t,r,o,s){const{isDeepEqual:i,valueOf:l,hasOwnEnumerableProperty:c}=n,{keys:u,getOwnPropertySymbols:d}=Object;if(e===a.array){if(!o.part){if(t.length!==r.length)return!1;for(let e=0;e{"use strict";const a=r(8761);e.exports=class extends Error{constructor(e){super(e.filter((e=>""!==e)).map((e=>"string"==typeof e?e:e instanceof Error?e.message:a(e))).join(" ")||"Unknown error"),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t.assert)}}},5277:e=>{"use strict";const t={};e.exports=function(e){if(!e)return"";let r="";for(let a=0;a=256?"&#"+e+";":`&#x${e.toString(16).padStart(2,"0")};`)},t.isSafe=function(e){return t.safeCharCodes.has(e)},t.namedHtml=new Map([[38,"&"],[60,"<"],[62,">"],[34,"""],[160," "],[162,"¢"],[163,"£"],[164,"¤"],[169,"©"],[174,"®"]]),t.safeCharCodes=function(){const e=new Set;for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||32===t||46===t||44===t||45===t||58===t||95===t)&&e.add(t);return e}()},6064:e=>{"use strict";e.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},738:e=>{"use strict";e.exports=function(){}},1687:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(7043),s={};e.exports=s.merge=function(e,t,r){if(a(e&&"object"==typeof e,"Invalid target value: must be an object"),a(null==t||"object"==typeof t,"Invalid source value: must be null, undefined, or an object"),!t)return e;if(r=Object.assign({nullOverride:!0,mergeArrays:!0},r),Array.isArray(t)){a(Array.isArray(e),"Cannot merge array onto an object"),r.mergeArrays||(e.length=0);for(let a=0;a{"use strict";const a=r(375),n={};e.exports=function(e,t,r){if(!1===t||null==t)return e;"string"==typeof(r=r||{})&&(r={separator:r});const o=Array.isArray(t);a(!o||!r.separator,"Separator option is not valid for array-based chain");const s=o?t:t.split(r.separator||".");let i=e;for(let e=0;e{"use strict";e.exports=function(){try{return JSON.stringify(...arguments)}catch(e){return"[Cannot display object: "+e.message+"]"}}},4277:(e,t)=>{"use strict";const r={};t=e.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},r.typeMap=new Map([["[object Error]",t.error],["[object Map]",t.map],["[object Promise]",t.promise],["[object Set]",t.set],["[object WeakMap]",t.weakMap],["[object WeakSet]",t.weakSet]]),t.getInternalProto=function(e){if(Array.isArray(e))return t.array;if(e instanceof Date)return t.date;if(e instanceof RegExp)return t.regex;if(e instanceof Error)return t.error;const a=Object.prototype.toString.call(e);return r.typeMap.get(a)||t.generic}},7043:(e,t)=>{"use strict";t.keys=function(e){return!1!==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).symbols?Reflect.ownKeys(e):Object.getOwnPropertyNames(e)}},3652:(e,t,r)=>{"use strict";const a=r(375),n={};t.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(e,t){const r=[].concat((t=t||{}).before||[]),n=[].concat(t.after||[]),o=t.group||"?",s=t.sort||0;a(!r.includes(o),`Item cannot come before itself: ${o}`),a(!r.includes("?"),"Item cannot come before unassociated items"),a(!n.includes(o),`Item cannot come after itself: ${o}`),a(!n.includes("?"),"Item cannot come after unassociated items"),Array.isArray(e)||(e=[e]);for(const t of e){const e={seq:this._items.length,sort:s,before:r,after:n,group:o,node:t};this._items.push(e)}if(!t.manual){const e=this._sort();a(e,"item","?"!==o?`added into group ${o}`:"","created a dependencies error")}return this.nodes}merge(e){Array.isArray(e)||(e=[e]);for(const t of e)if(t)for(const e of t._items)this._items.push(Object.assign({},e));this._items.sort(n.mergeSort);for(let e=0;ee.sort===t.sort?0:e.sort{"use strict";const a=r(443),n=r(2178),o={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:a.URL||URL};t.analyze=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return n.code("DOMAIN_NON_EMPTY_STRING");if("string"!=typeof e)throw new Error("Invalid input: domain must be a string");if(e.length>256)return n.code("DOMAIN_TOO_LONG");if(o.nonAsciiRx.test(e)){if(!1===t.allowUnicode)return n.code("DOMAIN_INVALID_UNICODE_CHARS");e=e.normalize("NFC")}if(o.domainControlRx.test(e))return n.code("DOMAIN_INVALID_CHARS");e=o.punycode(e),t.allowFullyQualified&&"."===e[e.length-1]&&(e=e.slice(0,-1));const r=t.minDomainSegments||o.minDomainSegments,a=e.split(".");if(a.lengtht.maxDomainSegments)return n.code("DOMAIN_SEGMENTS_COUNT_MAX");const s=t.tlds;if(s){const e=a[a.length-1].toLowerCase();if(s.deny&&s.deny.has(e)||s.allow&&!s.allow.has(e))return n.code("DOMAIN_FORBIDDEN_TLDS")}for(let e=0;e63)return n.code("DOMAIN_LONG_SEGMENT");if(e{"use strict";const a=r(9848),n=r(5380),o=r(2178),s={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(a.TextEncoder||TextEncoder)};t.analyze=function(e,t){return s.email(e,t)},t.isValid=function(e,t){return!s.email(e,t)},s.email=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw new Error("Invalid input: email must be a string");if(!e)return o.code("EMPTY_STRING");const r=!s.nonAsciiRx.test(e);if(!r){if(!1===t.allowUnicode)return o.code("FORBIDDEN_UNICODE");e=e.normalize("NFC")}const a=e.split("@");if(2!==a.length)return a.length>2?o.code("MULTIPLE_AT_CHAR"):o.code("MISSING_AT_CHAR");const[i,l]=a;if(!i)return o.code("EMPTY_LOCAL");if(!t.ignoreLength){if(e.length>254)return o.code("ADDRESS_TOO_LONG");if(s.encoder.encode(i).length>64)return o.code("LOCAL_TOO_LONG")}return s.local(i,r)||n.analyze(l,t)},s.local=function(e,t){const r=e.split(".");for(const e of r){if(!e.length)return o.code("EMPTY_LOCAL_SEGMENT");if(t){if(!s.atextRx.test(e))return o.code("INVALID_LOCAL_CHARS")}else for(const t of e){if(s.atextRx.test(t))continue;const e=s.binary(t);if(!s.atomRx.test(e))return o.code("INVALID_LOCAL_CHARS")}}},s.binary=function(e){return Array.from(s.encoder.encode(e)).map((e=>String.fromCharCode(e))).join("")},s.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,s.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},2178:(e,t)=>{"use strict";t.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},t.code=function(e){return{code:e,error:t.codes[e]}}},9959:(e,t,r)=>{"use strict";const a=r(375),n=r(5752);t.regex=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(void 0===e.cidr||"string"==typeof e.cidr,"options.cidr must be a string");const t=e.cidr?e.cidr.toLowerCase():"optional";a(["required","optional","forbidden"].includes(t),"options.cidr must be one of required, optional, forbidden"),a(void 0===e.version||"string"==typeof e.version||Array.isArray(e.version),"options.version must be a string or an array of string");let r=e.version||["ipv4","ipv6","ipvfuture"];Array.isArray(r)||(r=[r]),a(r.length>=1,"options.version must have at least 1 version specified");for(let e=0;e{if("forbidden"===t)return n.ip[e];const r=`\\/${"ipv4"===e?n.ip.v4Cidr:n.ip.v6Cidr}`;return"required"===t?`${n.ip[e]}${r}`:`${n.ip[e]}(?:${r})?`})).join("|")})`,s=new RegExp(`^${o}$`);return{cidr:t,versions:r,regex:s,raw:o}}},5752:(e,t,r)=>{"use strict";const a=r(375),n=r(6064),o={generate:function(){const e={},t="\\dA-Fa-f",r="["+t+"]",a="\\w-\\.~",n="!\\$&'\\(\\)\\*\\+,;=",o="%"+t,s=a+o+n+":@",i="["+s+"]",l="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";e.ipv4address="(?:"+l+"\\.){3}"+l;const c=r+"{1,4}",u="(?:"+c+":"+c+"|"+e.ipv4address+")",d="(?:"+c+":){6}"+u,p="::(?:"+c+":){5}"+u,g="(?:"+c+")?::(?:"+c+":){4}"+u,m="(?:(?:"+c+":){0,1}"+c+")?::(?:"+c+":){3}"+u,w="(?:(?:"+c+":){0,2}"+c+")?::(?:"+c+":){2}"+u,y="(?:(?:"+c+":){0,3}"+c+")?::"+c+":"+u,f="(?:(?:"+c+":){0,4}"+c+")?::"+u,b="(?:(?:"+c+":){0,5}"+c+")?::"+c,h="(?:(?:"+c+":){0,6}"+c+")?::";e.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",e.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",e.ipv6address="(?:"+d+"|"+p+"|"+g+"|"+m+"|"+w+"|"+y+"|"+f+"|"+b+"|"+h+")",e.ipvFuture="v"+r+"+\\.["+a+n+":]+",e.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",e.schemeRegex=new RegExp(e.scheme);const _="["+a+o+n+":]*",v="["+a+o+n+"]{1,255}",k="(?:\\[(?:"+e.ipv6address+"|"+e.ipvFuture+")\\]|"+e.ipv4address+"|"+v+")",R="(?:"+_+"@)?"+k+"(?::\\d*)?",P="(?:"+_+"@)?("+k+")(?::\\d*)?",q=i+"*",C=i+"+",j="(?:\\/"+q+")*",S="\\/(?:"+C+j+")?",A=C+j,H="["+a+o+n+"@]+"+j,E="(?:\\/\\/\\/"+q+j+")";return e.hierPart="(?:(?:\\/\\/"+R+j+")|"+S+"|"+A+"|"+E+")",e.hierPartCapture="(?:(?:\\/\\/"+P+j+")|"+S+"|"+A+")",e.relativeRef="(?:(?:\\/\\/"+R+j+")|"+S+"|"+H+"|)",e.relativeRefCapture="(?:(?:\\/\\/"+P+j+")|"+S+"|"+H+"|)",e.query="["+s+"\\/\\?]*(?=#|$)",e.queryWithSquareBrackets="["+s+"\\[\\]\\/\\?]*(?=#|$)",e.fragment="["+s+"\\/\\?]*",e}};o.rfc3986=o.generate(),t.ip={v4Cidr:o.rfc3986.ipv4Cidr,v6Cidr:o.rfc3986.ipv6Cidr,ipv4:o.rfc3986.ipv4address,ipv6:o.rfc3986.ipv6address,ipvfuture:o.rfc3986.ipvFuture},o.createRegex=function(e){const t=o.rfc3986,r="(?:\\?"+(e.allowQuerySquareBrackets?t.queryWithSquareBrackets:t.query)+")?(?:#"+t.fragment+")?",s=e.domain?t.relativeRefCapture:t.relativeRef;if(e.relativeOnly)return o.wrap(s+r);let i="";if(e.scheme){a(e.scheme instanceof RegExp||"string"==typeof e.scheme||Array.isArray(e.scheme),"scheme must be a RegExp, String, or Array");const r=[].concat(e.scheme);a(r.length>=1,"scheme must have at least 1 scheme specified");const o=[];for(let e=0;e0&&void 0!==arguments[0]?arguments[0]:{};return e.scheme||e.allowRelative||e.relativeOnly||e.allowQuerySquareBrackets||e.domain?o.createRegex(e):o.uriRegex}},1447:(e,t)=>{"use strict";const r={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};t.Parser=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t[r.settings]&&t.constants)for(const e in t.constants){const r=t.constants[e];if(null!==r&&!["boolean","number","string"].includes(typeof r))throw new Error(`Formula constant ${e} contains invalid ${typeof r} value type`)}this.settings=t[r.settings]?t:Object.assign({[r.settings]:!0,constants:{},functions:{}},t),this.single=null,this._parts=null,this._parse(e)}_parse(e){let a=[],n="",o=0,s=!1;const i=e=>{if(o)throw new Error("Formula missing closing parenthesis");const i=a.length?a[a.length-1]:null;if(s||n||e){if(i&&"reference"===i.type&&")"===e)return i.type="function",i.value=this._subFormula(n,i.value),void(n="");if(")"===e){const e=new t.Parser(n,this.settings);a.push({type:"segment",value:e})}else if(s){if("]"===s)return a.push({type:"reference",value:n}),void(n="");a.push({type:"literal",value:n})}else if(r.operatorCharacters.includes(n))i&&"operator"===i.type&&r.operators.includes(i.value+n)?i.value+=n:a.push({type:"operator",value:n});else if(n.match(r.numberRx))a.push({type:"constant",value:parseFloat(n)});else if(void 0!==this.settings.constants[n])a.push({type:"constant",value:this.settings.constants[n]});else{if(!n.match(r.tokenRx))throw new Error(`Formula contains invalid token: ${n}`);a.push({type:"reference",value:n})}n=""}};for(const t of e)s?t===s?(i(),s=!1):n+=t:o?"("===t?(n+=t,++o):")"===t?(--o,o?n+=t:i(t)):n+=t:t in r.literals?s=r.literals[t]:"("===t?(i(),++o):r.operatorCharacters.includes(t)?(i(),n=t,i()):" "!==t?n+=t:i();i(),a=a.map(((e,t)=>"operator"!==e.type||"-"!==e.value||t&&"operator"!==a[t-1].type?e:{type:"operator",value:"n"}));let l=!1;for(const e of a){if("operator"===e.type){if(r.operatorsPrefix.includes(e.value))continue;if(!l)throw new Error("Formula contains an operator in invalid position");if(!r.operators.includes(e.value))throw new Error(`Formula contains an unknown operator ${e.value}`)}else if(l)throw new Error("Formula missing expected operator");l=!l}if(!l)throw new Error("Formula contains invalid trailing operator");1===a.length&&["reference","literal","constant"].includes(a[0].type)&&(this.single={type:"reference"===a[0].type?"reference":"value",value:a[0].value}),this._parts=a.map((e=>{if("operator"===e.type)return r.operatorsPrefix.includes(e.value)?e:e.value;if("reference"!==e.type)return e.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(e.value))throw new Error(`Formula contains invalid reference ${e.value}`);return this.settings.reference?this.settings.reference(e.value):r.reference(e.value)}))}_subFormula(e,a){const n=this.settings.functions[a];if("function"!=typeof n)throw new Error(`Formula contains unknown function ${a}`);let o=[];if(e){let t="",n=0,s=!1;const i=()=>{if(!t)throw new Error(`Formula contains function ${a} with invalid arguments ${e}`);o.push(t),t=""};for(let a=0;anew t.Parser(e,this.settings))),function(e){const t=[];for(const r of o)t.push(r.evaluate(e));return n.call(e,...t)}}evaluate(e){const t=this._parts.slice();for(let a=t.length-2;a>=0;--a){const n=t[a];if(n&&"operator"===n.type){const o=t[a+1];t.splice(a+1,1);const s=r.evaluate(o,e);t[a]=r.single(n.value,s)}}return r.operatorsOrder.forEach((a=>{for(let n=1;n":return t>a;case">=":return t>=a;case"==":return t===a;case"!=":return t!==a;case"&&":return t&&a;case"||":return t||a}return null},r.exists=function(e){return null!=e}},9926:()=>{},5688:()=>{},9708:()=>{},1152:()=>{},443:()=>{},9848:()=>{},5934:e=>{"use strict";e.exports=JSON.parse('{"version":"17.11.0"}')}},t={},function r(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,r),o.exports}(5107);var e,t},e.exports=t()},2043:function(e,t,r){var a,n;!function(o,s){"use strict";a=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"];function n(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(t,r){for(var n=0;n=0&&r<=i.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(o=r,!1!==n&&function(e){var r=(a[e]||"silent").toUpperCase();if(typeof window!==t&&c){try{return void(window.localStorage[c]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"="+r+";"}catch(e){}}}(r),s.call(i,r,e),typeof console===t&&r{"use strict";const a=r(610),n=r(4020),o=r(500),s=r(2806),i=Symbol("encodeFragmentIdentifier");function l(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?a(e):encodeURIComponent(e):e}function u(e,t){return t.decode?n(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function p(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function g(e){const t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function w(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,a)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===a[e]&&(a[e]={}),a[e][t[1]]=r):a[e]=r};case"bracket":return(e,r,a)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==a[e]?a[e]=[].concat(a[e],r):a[e]=[r]:a[e]=r};case"colon-list-separator":return(e,r,a)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==a[e]?a[e]=[].concat(a[e],r):a[e]=[r]:a[e]=r};case"comma":case"separator":return(t,r,a)=>{const n="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!n&&u(r,e).includes(e.arrayFormatSeparator);r=o?u(r,e):r;const s=n||o?r.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===r?r:u(r,e);a[t]=s};case"bracket-separator":return(t,r,a)=>{const n=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!n)return void(a[t]=r?u(r,e):r);const o=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==a[t]?a[t]=[].concat(a[t],o):a[t]=o};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),a=Object.create(null);if("string"!=typeof e)return a;if(!(e=e.trim().replace(/^[?#&]/,"")))return a;for(const n of e.split("&")){if(""===n)continue;let[e,s]=o(t.decode?n.replace(/\+/g," "):n,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:u(s,t),r(u(e,t),s,a)}for(const e of Object.keys(a)){const r=a[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=m(r[e],t);else a[e]=m(r,t)}return!1===t.sort?a:(!0===t.sort?Object.keys(a).sort():Object.keys(a).sort(t.sort)).reduce(((e,t)=>{const r=a[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=d(r):e[t]=r,e}),Object.create(null))}t.extract=g,t.parse=w,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],a=function(e){switch(e.arrayFormat){case"index":return t=>(r,a)=>{const n=r.length;return void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,[c(t,e),"[",n,"]"].join("")]:[...r,[c(t,e),"[",c(n,e),"]=",c(a,e)].join("")]};case"bracket":return t=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,[c(t,e),"[]"].join("")]:[...r,[c(t,e),"[]=",c(a,e)].join("")];case"colon-list-separator":return t=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,[c(t,e),":list="].join("")]:[...r,[c(t,e),":list=",c(a,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(a,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?a:(n=null===n?"":n,0===a.length?[[c(r,e),t,c(n,e)].join("")]:[[a,c(n,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,c(t,e)]:[...r,[c(t,e),"=",c(a,e)].join("")]}}(t),n={};for(const t of Object.keys(e))r(t)||(n[t]=e[t]);const o=Object.keys(n);return!1!==t.sort&&o.sort(t.sort),o.map((r=>{const n=e[r];return void 0===n?"":null===n?c(r,t):Array.isArray(n)?0===n.length&&"bracket-separator"===t.arrayFormat?c(r,t)+"[]":n.reduce(a(r),[]).join("&"):c(r,t)+"="+c(n,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,a]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:w(g(e),t)},t&&t.parseFragmentIdentifier&&a?{fragmentIdentifier:u(a,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[i]:!0},r);const a=p(e.url).split("?")[0]||"",n=t.extract(e.url),o=t.parse(n,{sort:!1}),s=Object.assign(o,e.query);let l=t.stringify(s,r);l&&(l=`?${l}`);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u=`#${r[i]?c(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${a}${l}${u}`},t.pick=(e,r,a)=>{a=Object.assign({parseFragmentIdentifier:!0,[i]:!1},a);const{url:n,query:o,fragmentIdentifier:l}=t.parseUrl(e,a);return t.stringifyUrl({url:n,query:s(o,r),fragmentIdentifier:l},a)},t.exclude=(e,r,a)=>{const n=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,n,a)}},500:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},7886:(e,t,r)=>{const{fdkAxios:a}=r(2638),{convertStringToBase64:n}=r(5860);e.exports=class{static execute(e,t,r,o,s,i,l){let c={Authorization:"Bearer "+n(`${e.applicationID}:${e.applicationToken}`)};e.cookie&&(c={...c,cookie:e.cookie}),e.locationDetails&&(c={...c,"x-location-detail":JSON.stringify(e.locationDetails)}),e.currencyCode&&(c={...c,"x-currency-code":e.currencyCode});const u=e.extraHeaders.reduce(((e,t)=>({...e,...t})),{});let d={method:t,url:r,params:o,data:s,headers:{...c,...u,...i},responseHeaders:l.responseHeaders};return d=JSON.parse(JSON.stringify(d)),a.request(d)}}},9007:(e,t,r)=>{const a=r(2403),n=r(4196),o=r(737),s=r(4113),i=r(5970),l=r(4976),c=r(8568),u=r(562),d=r(4203),p=r(9171),g=r(3242),m=r(4823),w=r(4107),y=r(3740),f=r(4683),b=r(9792),{FDKClientValidationError:h}=r(7208);e.exports=class{constructor(e){this.config=e,this.cart=new a(e),this.catalog=new n(e),this.common=new o(e),this.communication=new s(e),this.configuration=new i(e),this.content=new l(e),this.fileStorage=new c(e),this.lead=new u(e),this.logistic=new d(e),this.order=new p(e),this.payment=new g(e),this.posCart=new m(e),this.rewards=new w(e),this.share=new y(e),this.theme=new f(e),this.user=new b(e)}setCookie(e){this.config.cookie=e}setLocationDetails(e){this.config.locationDetails={...this.config.locationDetails,...e}}setCurrencyCode(e){if("string"!=typeof e)throw new h("Currency code should be string only");this.config.currencyCode=e}setExtraHeaders(e){if("object"!=typeof e)throw new h("Context value should be an object");this.config.extraHeaders.push(e)}}},6894:(e,t,r)=>{const{FDKInvalidCredentialError:a}=r(7208),{Logger:n,setLoggerLevel:o}=r(7378);e.exports=class{constructor(e,t){this.applicationID=e.applicationID||"",this.applicationToken=e.applicationToken||"",this.opts=t||{},this.domain=e.domain||"https://api.fynd.com",this.logLevel=e.logLevel||"ERROR",this.setLogLevel(this.logLevel),this.extraHeaders=[],this.locationDetails=e.locationDetails,this.currencyCode=e.currencyCode||"INR",this.validate()}setLogLevel(e){o(e.toUpperCase()),this.logLevel=e.toUpperCase()}setCookie(e){this.cookie=e}validate(){if(!this.applicationID)throw n({level:"ERROR",message:"No Application ID Present"}),new a("No Application ID Present");if(!this.applicationToken)throw n({level:"ERROR",message:"No Application Token Present"}),new a("No Application Token Present");if(this.applicationToken.length<5)throw n({level:"ERROR",message:"Invalid Application Token"}),new a("Invalid Application Token")}}},2403:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(6206)),i=r(7350),{Logger:l}=r(7378),c=r(2705);e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addAddress:"/service/application/cart/v1.0/address",addItems:"/service/application/cart/v1.0/detail",applyCoupon:"/service/application/cart/v1.0/coupon",applyRewardPoints:"/service/application/cart/v1.0/redeem/points/",checkoutCart:"/service/application/cart/v1.0/checkout",checkoutCartV2:"/service/application/cart/v2.0/checkout",deleteCart:"/service/application/cart/v1.0/cart_archive",getAddressById:"/service/application/cart/v1.0/address/{id}",getAddresses:"/service/application/cart/v1.0/address",getBulkDiscountOffers:"/service/application/cart/v1.0/bulk-price",getCart:"/service/application/cart/v1.0/detail",getCartLastModified:"/service/application/cart/v1.0/detail",getCartShareLink:"/service/application/cart/v1.0/share-cart",getCartSharedItems:"/service/application/cart/v1.0/share-cart/{token}",getCoupons:"/service/application/cart/v1.0/coupon",getItemCount:"/service/application/cart/v1.0/basic",getLadderOffers:"/service/application/cart/v1.0/available-ladder-prices",getPromotionOffers:"/service/application/cart/v1.0/available-promotions",getShipments:"/service/application/cart/v1.0/shipment",removeAddress:"/service/application/cart/v1.0/address/{id}",removeCoupon:"/service/application/cart/v1.0/coupon",selectAddress:"/service/application/cart/v1.0/select-address",selectPaymentMode:"/service/application/cart/v1.0/payment",updateAddress:"/service/application/cart/v1.0/address/{id}",updateCart:"/service/application/cart/v1.0/detail",updateCartMeta:"/service/application/cart/v1.0/meta",updateCartWithSharedItems:"/service/application/cart/v1.0/share-cart/{token}/{action}",validateCouponForPayment:"/service/application/cart/v1.0/payment/validate/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addAddress({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.addAddress().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.addAddress().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > addAddress \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.addAddress,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.SaveAddressResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > addAddress \n ${g}`}),d}async addItems({body:e,i:t,b:r,areaCode:c,buyNow:u,id:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.addItems().validate({body:e,i:t,b:r,areaCode:c,buyNow:u,id:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.addItems().validate({body:e,i:t,b:r,areaCode:c,buyNow:u,id:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > addItems \n ${w}`});const y={};y.i=t,y.b=r,y.area_code=c,y.buy_now=u,y.id=d;const f=await a.execute(this._conf,"post",o({url:this._urls.addItems,params:{}}),y,e,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.AddCartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > addItems \n ${h}`}),f}async applyCoupon({body:e,i:t,b:r,p:c,id:u,buyNow:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.applyCoupon().validate({body:e,i:t,b:r,p:c,id:u,buyNow:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.applyCoupon().validate({body:e,i:t,b:r,p:c,id:u,buyNow:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > applyCoupon \n ${w}`});const y={};y.i=t,y.b=r,y.p=c,y.id=u,y.buy_now=d;const f=await a.execute(this._conf,"post",o({url:this._urls.applyCoupon,params:{}}),y,e,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.CartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > applyCoupon \n ${h}`}),f}async applyRewardPoints({body:e,id:t,i:r,b:c,buyNow:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=s.applyRewardPoints().validate({body:e,id:t,i:r,b:c,buyNow:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=s.applyRewardPoints().validate({body:e,id:t,i:r,b:c,buyNow:u},{abortEarly:!1,allowUnknown:!1});m&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > applyRewardPoints \n ${m}`});const w={};w.id=t,w.i=r,w.b=c,w.buy_now=u;const y=await a.execute(this._conf,"post",o({url:this._urls.applyRewardPoints,params:{}}),w,e,{...d},{responseHeaders:p});let f=y;p&&(f=y[0]);const{error:b}=i.CartDetailResponse().validate(f,{abortEarly:!1,allowUnknown:!1});return b&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > applyRewardPoints \n ${b}`}),y}async checkoutCart({body:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.checkoutCart().validate({body:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.checkoutCart().validate({body:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > checkoutCart \n ${d}`});const p={};p.buy_now=t;const g=await a.execute(this._conf,"post",o({url:this._urls.checkoutCart,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CartCheckoutResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > checkoutCart \n ${w}`}),g}async checkoutCartV2({body:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.checkoutCartV2().validate({body:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.checkoutCartV2().validate({body:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > checkoutCartV2 \n ${d}`});const p={};p.buy_now=t;const g=await a.execute(this._conf,"post",o({url:this._urls.checkoutCartV2,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CartCheckoutResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > checkoutCartV2 \n ${w}`}),g}async deleteCart({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.deleteCart().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.deleteCart().validate({id:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > deleteCart \n ${u}`});const d={};d.id=e;const p=await a.execute(this._conf,"put",o({url:this._urls.deleteCart,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.DeleteCartDetailResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > deleteCart \n ${m}`}),p}async getAddressById({id:e,cartId:t,buyNow:r,mobileNo:c,checkoutMode:u,tags:d,isDefault:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=s.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:c,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:y}=s.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:c,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!1});y&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getAddressById \n ${y}`});const f={};f.cart_id=t,f.buy_now=r,f.mobile_no=c,f.checkout_mode=u,f.tags=d,f.is_default=p;const b=await a.execute(this._conf,"get",o({url:this._urls.getAddressById,params:{id:e}}),f,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=i.Address().validate(h,{abortEarly:!1,allowUnknown:!1});return _&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getAddressById \n ${_}`}),b}async getAddresses({cartId:e,buyNow:t,mobileNo:r,checkoutMode:c,tags:u,isDefault:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:c,tags:u,isDefault:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:c,tags:u,isDefault:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getAddresses \n ${w}`});const y={};y.cart_id=e,y.buy_now=t,y.mobile_no=r,y.checkout_mode=c,y.tags=u,y.is_default=d;const f=await a.execute(this._conf,"get",o({url:this._urls.getAddresses,params:{}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.GetAddressesResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getAddresses \n ${h}`}),f}async getBulkDiscountOffers({itemId:e,articleId:t,uid:r,slug:c,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=s.getBulkDiscountOffers().validate({itemId:e,articleId:t,uid:r,slug:c},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=s.getBulkDiscountOffers().validate({itemId:e,articleId:t,uid:r,slug:c},{abortEarly:!1,allowUnknown:!1});g&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getBulkDiscountOffers \n ${g}`});const m={};m.item_id=e,m.article_id=t,m.uid=r,m.slug=c;const w=await a.execute(this._conf,"get",o({url:this._urls.getBulkDiscountOffers,params:{}}),m,void 0,{...u},{responseHeaders:d});let y=w;d&&(y=w[0]);const{error:f}=i.BulkPriceResponse().validate(y,{abortEarly:!1,allowUnknown:!1});return f&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getBulkDiscountOffers \n ${f}`}),w}async getCart({id:e,i:t,b:r,assignCardId:c,areaCode:u,buyNow:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.getCart().validate({id:e,i:t,b:r,assignCardId:c,areaCode:u,buyNow:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.getCart().validate({id:e,i:t,b:r,assignCardId:c,areaCode:u,buyNow:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCart \n ${w}`});const y={};y.id=e,y.i=t,y.b=r,y.assign_card_id=c,y.area_code=u,y.buy_now=d;const f=await a.execute(this._conf,"get",o({url:this._urls.getCart,params:{}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.CartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getCart \n ${h}`}),f}async getCartLastModified({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=s.getCartLastModified().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:u}=s.getCartLastModified().validate({id:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCartLastModified \n ${u}`});const d={};d.id=e;const p=await a.execute(this._conf,"head",o({url:this._urls.getCartLastModified,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.string().allow("").validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getCartLastModified \n ${m}`}),p}async getCartShareLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getCartShareLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getCartShareLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCartShareLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getCartShareLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.GetShareCartLinkResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getCartShareLink \n ${g}`}),d}async getCartSharedItems({token:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getCartSharedItems().validate({token:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getCartSharedItems().validate({token:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCartSharedItems \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getCartSharedItems,params:{token:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.SharedCartResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getCartSharedItems \n ${g}`}),d}async getCoupons({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getCoupons().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getCoupons().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCoupons \n ${d}`});const p={};p.id=e,p.buy_now=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getCoupons,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.GetCouponResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getCoupons \n ${w}`}),g}async getItemCount({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getItemCount().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getItemCount().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getItemCount \n ${d}`});const p={};p.id=e,p.buy_now=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getItemCount,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CartItemCountResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getItemCount \n ${w}`}),g}async getLadderOffers({slug:e,storeId:t,promotionId:r,pageSize:c,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=s.getLadderOffers().validate({slug:e,storeId:t,promotionId:r,pageSize:c},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=s.getLadderOffers().validate({slug:e,storeId:t,promotionId:r,pageSize:c},{abortEarly:!1,allowUnknown:!1});g&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getLadderOffers \n ${g}`});const m={};m.slug=e,m.store_id=t,m.promotion_id=r,m.page_size=c;const w=await a.execute(this._conf,"get",o({url:this._urls.getLadderOffers,params:{}}),m,void 0,{...u},{responseHeaders:d});let y=w;d&&(y=w[0]);const{error:f}=i.LadderPriceOffers().validate(y,{abortEarly:!1,allowUnknown:!1});return f&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getLadderOffers \n ${f}`}),w}async getPromotionOffers({slug:e,pageSize:t,promotionGroup:r,storeId:c,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=s.getPromotionOffers().validate({slug:e,pageSize:t,promotionGroup:r,storeId:c},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=s.getPromotionOffers().validate({slug:e,pageSize:t,promotionGroup:r,storeId:c},{abortEarly:!1,allowUnknown:!1});g&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getPromotionOffers \n ${g}`});const m={};m.slug=e,m.page_size=t,m.promotion_group=r,m.store_id=c;const w=await a.execute(this._conf,"get",o({url:this._urls.getPromotionOffers,params:{}}),m,void 0,{...u},{responseHeaders:d});let y=w;d&&(y=w[0]);const{error:f}=i.PromotionOffersResponse().validate(y,{abortEarly:!1,allowUnknown:!1});return f&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getPromotionOffers \n ${f}`}),w}async getShipments({p:e,id:t,buyNow:r,addressId:c,areaCode:u,orderType:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.getShipments().validate({p:e,id:t,buyNow:r,addressId:c,areaCode:u,orderType:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.getShipments().validate({p:e,id:t,buyNow:r,addressId:c,areaCode:u,orderType:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getShipments \n ${w}`});const y={};y.p=e,y.id=t,y.buy_now=r,y.address_id=c,y.area_code=u,y.order_type=d;const f=await a.execute(this._conf,"get",o({url:this._urls.getShipments,params:{}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.CartShipmentsResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > getShipments \n ${h}`}),f}async removeAddress({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.removeAddress().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.removeAddress().validate({id:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > removeAddress \n ${u}`});const d=await a.execute(this._conf,"delete",o({url:this._urls.removeAddress,params:{id:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.DeleteAddressResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > removeAddress \n ${g}`}),d}async removeCoupon({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.removeCoupon().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.removeCoupon().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > removeCoupon \n ${d}`});const p={};p.id=e,p.buy_now=t;const g=await a.execute(this._conf,"delete",o({url:this._urls.removeCoupon,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CartDetailResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > removeCoupon \n ${w}`}),g}async selectAddress({body:e,cartId:t,buyNow:r,i:c,b:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=s.selectAddress().validate({body:e,cartId:t,buyNow:r,i:c,b:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=s.selectAddress().validate({body:e,cartId:t,buyNow:r,i:c,b:u},{abortEarly:!1,allowUnknown:!1});m&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > selectAddress \n ${m}`});const w={};w.cart_id=t,w.buy_now=r,w.i=c,w.b=u;const y=await a.execute(this._conf,"post",o({url:this._urls.selectAddress,params:{}}),w,e,{...d},{responseHeaders:p});let f=y;p&&(f=y[0]);const{error:b}=i.CartDetailResponse().validate(f,{abortEarly:!1,allowUnknown:!1});return b&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > selectAddress \n ${b}`}),y}async selectPaymentMode({body:e,id:t,buyNow:r,requestHeaders:c}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=s.selectPaymentMode().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=s.selectPaymentMode().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!1});p&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > selectPaymentMode \n ${p}`});const g={};g.id=t,g.buy_now=r;const m=await a.execute(this._conf,"put",o({url:this._urls.selectPaymentMode,params:{}}),g,e,{...c},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=i.CartDetailResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > selectPaymentMode \n ${y}`}),m}async updateAddress({id:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.updateAddress().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.updateAddress().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateAddress \n ${d}`});const p=await a.execute(this._conf,"put",o({url:this._urls.updateAddress,params:{id:e}}),{},t,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.UpdateAddressResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > updateAddress \n ${m}`}),p}async updateCart({body:e,id:t,i:r,b:c,areaCode:u,buyNow:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.updateCart().validate({body:e,id:t,i:r,b:c,areaCode:u,buyNow:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.updateCart().validate({body:e,id:t,i:r,b:c,areaCode:u,buyNow:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateCart \n ${w}`});const y={};y.id=t,y.i=r,y.b=c,y.area_code=u,y.buy_now=d;const f=await a.execute(this._conf,"put",o({url:this._urls.updateCart,params:{}}),y,e,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.UpdateCartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > updateCart \n ${h}`}),f}async updateCartMeta({body:e,id:t,buyNow:r,requestHeaders:c}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=s.updateCartMeta().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=s.updateCartMeta().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!1});p&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateCartMeta \n ${p}`});const g={};g.id=t,g.buy_now=r;const m=await a.execute(this._conf,"put",o({url:this._urls.updateCartMeta,params:{}}),g,e,{...c},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=i.CartMetaResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > updateCartMeta \n ${y}`}),m}async updateCartWithSharedItems({token:e,action:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.updateCartWithSharedItems().validate({token:e,action:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.updateCartWithSharedItems().validate({token:e,action:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateCartWithSharedItems \n ${d}`});const p=await a.execute(this._conf,"post",o({url:this._urls.updateCartWithSharedItems,params:{token:e,action:t}}),{},void 0,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.SharedCartResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > updateCartWithSharedItems \n ${m}`}),p}async validateCouponForPayment({id:e,buyNow:t,addressId:r,paymentMode:c,paymentIdentifier:u,aggregatorName:d,merchantCode:p,iin:g,network:m,type:w,cardId:y,requestHeaders:f}={requestHeaders:{}},{responseHeaders:b}={responseHeaders:!1}){const{error:h}=s.validateCouponForPayment().validate({id:e,buyNow:t,addressId:r,paymentMode:c,paymentIdentifier:u,aggregatorName:d,merchantCode:p,iin:g,network:m,type:w,cardId:y},{abortEarly:!1,allowUnknown:!0});if(h)return Promise.reject(new n(h));const{error:_}=s.validateCouponForPayment().validate({id:e,buyNow:t,addressId:r,paymentMode:c,paymentIdentifier:u,aggregatorName:d,merchantCode:p,iin:g,network:m,type:w,cardId:y},{abortEarly:!1,allowUnknown:!1});_&&l({level:"WARN",message:`Parameter Validation warrnings for application > Cart > validateCouponForPayment \n ${_}`});const v={};v.id=e,v.buy_now=t,v.address_id=r,v.payment_mode=c,v.payment_identifier=u,v.aggregator_name=d,v.merchant_code=p,v.iin=g,v.network=m,v.type=w,v.card_id=y;const k=await a.execute(this._conf,"get",o({url:this._urls.validateCouponForPayment,params:{}}),v,void 0,{...f},{responseHeaders:b});let R=k;b&&(R=k[0]);const{error:P}=i.PaymentCouponValidate().validate(R,{abortEarly:!1,allowUnknown:!1});return P&&l({level:"WARN",message:`Response Validation Warnnings for application > Cart > validateCouponForPayment \n ${P}`}),k}}},7350:(e,t,r)=>{const a=r(2705);class n{static ActionQuery(){return a.object({product_slug:a.array().items(a.string().allow(""))})}static AddCartDetailResponse(){return a.object({cart:n.CartDetailResponse(),message:a.string().allow(""),partial:a.boolean(),success:a.boolean()})}static AddCartRequest(){return a.object({items:a.array().items(n.AddProductCart()),new_cart:a.boolean()})}static AddProductCart(){return a.object({_custom_json:a.any(),article_assignment:a.any(),article_id:a.string().allow(""),display:a.string().allow(""),extra_meta:a.any(),item_id:a.number(),item_size:a.string().allow(""),meta:a.any(),parent_item_identifiers:a.array().items(a.object().pattern(/\S/,a.string().allow(""))),pos:a.boolean(),product_group_tags:a.array().items(a.string().allow("").allow(null)),quantity:a.number(),seller_id:a.number(),store_id:a.number()})}static Address(){return a.object({_custom_json:a.any(),address:a.string().allow(""),address_type:a.string().allow(""),area:a.string().allow(""),area_code:a.string().allow(""),area_code_slug:a.string().allow(""),checkout_mode:a.string().allow(""),city:a.string().allow(""),country:a.string().allow(""),country_code:a.string().allow(""),country_iso_code:a.string().allow(""),country_phone_code:a.string().allow(""),created_by_user_id:a.string().allow(""),email:a.string().allow(""),geo_location:n.GeoLocation(),google_map_point:a.any(),id:a.string().allow(""),is_active:a.boolean(),is_default_address:a.boolean(),landmark:a.string().allow(""),meta:a.any(),name:a.string().allow(""),phone:a.string().allow(""),state:a.string().allow(""),tags:a.array().items(a.string().allow("")),user_id:a.string().allow("")})}static AppliedFreeArticles(){return a.object({article_id:a.string().allow(""),free_gift_item_details:n.FreeGiftItem(),parent_item_identifier:a.string().allow(""),quantity:a.number()})}static AppliedPromotion(){return a.object({amount:a.number(),applied_free_articles:a.array().items(n.AppliedFreeArticles()),article_quantity:a.number(),buy_rules:a.array().items(n.BuyRules()),discount_rules:a.array().items(n.DiscountRulesApp()),mrp_promotion:a.boolean(),offer_text:a.string().allow(""),ownership:n.Ownership(),promo_id:a.string().allow(""),promotion_group:a.string().allow(""),promotion_name:a.string().allow(""),promotion_type:a.string().allow("")})}static ApplyCouponRequest(){return a.object({coupon_code:a.string().allow("").required()})}static ArticleGiftDetail(){return a.object({article_id:n.GiftDetail()})}static ArticlePriceInfo(){return a.object({base:n.BasePrice(),converted:n.BasePrice()})}static BaseInfo(){return a.object({name:a.string().allow(""),uid:a.number()})}static BasePrice(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),effective:a.number(),marked:a.number()})}static BulkPriceOffer(){return a.object({offers:a.array().items(n.OfferItem()),seller:n.OfferSeller()})}static BulkPriceResponse(){return a.object({data:a.array().items(n.BulkPriceOffer())})}static BuyRules(){return a.object({cart_conditions:a.any(),item_criteria:a.any()})}static CartBreakup(){return a.object({coupon:n.CouponBreakup(),display:a.array().items(n.DisplayBreakup()),loyalty_points:n.LoyaltyPoints(),raw:n.RawBreakup()})}static CartCheckoutCustomMeta(){return a.object({key:a.string().allow("").required(),value:a.string().allow("").required()})}static CartCheckoutDetailRequest(){return a.object({address_id:a.string().allow(""),aggregator:a.string().allow(""),billing_address:a.any(),billing_address_id:a.string().allow(""),callback_url:a.string().allow("").allow(null),custom_meta:a.array().items(n.CartCheckoutCustomMeta()),customer_details:a.any().allow(null),delivery_address:a.any(),extra_meta:a.any(),id:a.string().allow("").allow(null),merchant_code:a.string().allow(""),meta:a.any(),order_type:a.string().allow(""),ordering_store:a.number().allow(null),payment_auto_confirm:a.boolean(),payment_extra_identifiers:a.any(),payment_identifier:a.string().allow("").allow(null),payment_mode:a.string().allow("").required(),payment_params:a.any().allow(null),staff:n.StaffCheckout()})}static CartCheckoutDetailV2Request(){return a.object({address_id:a.string().allow(""),aggregator:a.string().allow(""),billing_address:a.any(),billing_address_id:a.string().allow(""),callback_url:a.string().allow("").allow(null),cart_id:a.string().allow(""),custom_meta:a.any(),customer_details:a.any().allow(null),delivery_address:a.any(),extra_meta:a.any(),id:a.string().allow("").allow(null),merchant_code:a.string().allow(""),meta:a.any(),order_type:a.string().allow(""),ordering_store:a.number().allow(null),payment_auto_confirm:a.boolean(),payment_identifier:a.string().allow("").allow(null),payment_methods:a.array().items(n.PaymentMethod()).required(),payment_mode:a.string().allow("").required(),payment_params:a.any().allow(null),staff:n.StaffCheckout()})}static CartCheckoutResponse(){return a.object({app_intercept_url:a.string().allow(""),callback_url:a.string().allow(""),cart:n.CheckCart(),data:a.any(),message:a.string().allow(""),order_id:a.string().allow(""),payment_confirm_url:a.string().allow(""),success:a.boolean()})}static CartCurrency(){return a.object({code:a.string().allow(""),symbol:a.string().allow("")})}static CartDetailResponse(){return a.object({applied_promo_details:a.array().items(n.AppliedPromotion()),breakup_values:n.CartBreakup(),buy_now:a.boolean(),checkout_mode:a.string().allow(""),comment:a.string().allow(""),coupon_text:a.string().allow(""),currency:n.CartCurrency(),delivery_charge_info:a.string().allow(""),delivery_promise:n.ShipmentPromise(),gstin:a.string().allow(""),id:a.string().allow(""),is_valid:a.boolean(),items:a.array().items(n.CartProductInfo()),last_modified:a.string().allow(""),message:a.string().allow(""),pan_config:a.any(),pan_no:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),restrict_checkout:a.boolean()})}static CartItemCountResponse(){return a.object({user_cart_items_count:a.number()})}static CartMetaMissingResponse(){return a.object({errors:a.array().items(a.string().allow(""))})}static CartMetaRequest(){return a.object({checkout_mode:a.string().allow(""),comment:a.string().allow(""),delivery_slots:a.any(),gift_details:n.ArticleGiftDetail(),gstin:a.string().allow(""),pick_up_customer_details:a.any()})}static CartMetaResponse(){return a.object({is_valid:a.boolean(),message:a.string().allow("")})}static CartProduct(){return a.object({_custom_json:a.any(),action:n.ProductAction(),brand:n.BaseInfo(),categories:a.array().items(n.CategoryInfo()),images:a.array().items(n.ProductImage()),item_code:a.string().allow("").allow(null),name:a.string().allow(""),slug:a.string().allow(""),tags:a.array().items(a.string().allow("")),teaser_tag:n.Tags(),type:a.string().allow(""),uid:a.number()})}static CartProductIdentifer(){return a.object({identifier:a.string().allow("")})}static CartProductInfo(){return a.object({article:n.ProductArticle(),availability:n.ProductAvailability(),bulk_offer:a.any(),coupon:n.CouponDetails(),coupon_message:a.string().allow(""),custom_order:a.any(),delivery_promise:n.ShipmentPromise(),discount:a.string().allow(""),identifiers:n.CartProductIdentifer().required(),is_set:a.boolean(),key:a.string().allow(""),message:a.string().allow(""),moq:a.any(),parent_item_identifiers:a.any(),price:n.ProductPriceInfo(),price_per_unit:n.ProductPriceInfo(),product:n.CartProduct(),promo_meta:n.PromoMeta(),promotions_applied:a.array().items(n.AppliedPromotion()),quantity:a.number()})}static CartShipmentsResponse(){return a.object({breakup_values:n.CartBreakup(),buy_now:a.boolean(),cart_id:a.number(),checkout_mode:a.string().allow(""),comment:a.string().allow(""),coupon_text:a.string().allow(""),currency:n.CartCurrency(),delivery_charge_info:a.string().allow(""),delivery_promise:n.ShipmentPromise(),error:a.boolean(),gstin:a.string().allow(""),id:a.string().allow(""),is_valid:a.boolean(),last_modified:a.string().allow(""),message:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),restrict_checkout:a.boolean(),shipments:a.array().items(n.ShipmentResponse()),uid:a.string().allow("")})}static CategoryInfo(){return a.object({name:a.string().allow(""),uid:a.number()})}static CheckCart(){return a.object({breakup_values:n.CartBreakup(),buy_now:a.boolean(),cart_id:a.number(),checkout_mode:a.string().allow(""),cod_available:a.boolean(),cod_charges:a.number(),cod_message:a.string().allow(""),comment:a.string().allow(""),coupon_text:a.string().allow(""),currency:n.CartCurrency(),delivery_charge_info:a.string().allow(""),delivery_charge_order_value:a.number(),delivery_charges:a.number(),delivery_promise:n.ShipmentPromise(),error_message:a.string().allow(""),gstin:a.string().allow(""),id:a.string().allow(""),is_valid:a.boolean(),items:a.array().items(n.CartProductInfo()),last_modified:a.string().allow(""),message:a.string().allow(""),order_id:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),restrict_checkout:a.boolean(),store_code:a.string().allow(""),store_emps:a.array().items(a.any()),success:a.boolean(),uid:a.string().allow(""),user_type:a.string().allow("")})}static Coupon(){return a.object({coupon_code:a.string().allow(""),coupon_type:a.string().allow("").allow(null),coupon_value:a.number(),description:a.string().allow("").allow(null),expires_on:a.string().allow(""),is_applicable:a.boolean(),is_applied:a.boolean(),max_discount_value:a.number(),message:a.string().allow(""),minimum_cart_value:a.number(),sub_title:a.string().allow(""),title:a.string().allow("")})}static CouponBreakup(){return a.object({code:a.string().allow(""),coupon_type:a.string().allow("").allow(null),coupon_value:a.number(),description:a.string().allow("").allow(null),is_applied:a.boolean(),max_discount_value:a.number(),message:a.string().allow(""),minimum_cart_value:a.number(),sub_title:a.string().allow("").allow(null),title:a.string().allow("").allow(null),type:a.string().allow(""),uid:a.string().allow(""),value:a.number()})}static CouponDetails(){return a.object({code:a.string().allow(""),discount_single_quantity:a.number(),discount_total_quantity:a.number()})}static CouponValidity(){return a.object({code:a.string().allow("").allow(null),discount:a.number(),display_message_en:a.string().allow("").allow(null),next_validation_required:a.boolean().allow(null),title:a.string().allow(""),valid:a.boolean()})}static CurrencyInfo(){return a.object({code:a.string().allow(""),symbol:a.string().allow("")})}static CustomerDetails(){return a.object({email:a.string().allow("").allow(null),mobile:a.string().allow("").required(),name:a.string().allow("")})}static DeleteAddressResponse(){return a.object({id:a.string().allow(""),is_deleted:a.boolean()})}static DeleteCartDetailResponse(){return a.object({message:a.string().allow(""),success:a.boolean()})}static DiscountRulesApp(){return a.object({item_criteria:a.any(),matched_buy_rules:a.array().items(a.string().allow("")),offer:a.any(),raw_offer:a.any()})}static DisplayBreakup(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),display:a.string().allow(""),key:a.string().allow(""),message:a.array().items(a.string().allow("")),value:a.number()})}static FreeGiftItem(){return a.object({item_brand_name:a.string().allow(""),item_id:a.number(),item_images_url:a.array().items(a.string().allow("")),item_name:a.string().allow(""),item_price_details:a.any(),item_slug:a.string().allow("")})}static FreeGiftItems(){return a.object({item_brand_name:a.string().allow(""),item_id:a.number(),item_images_url:a.array().items(a.string().allow("")),item_name:a.string().allow(""),item_price_details:a.any(),item_slug:a.string().allow("")})}static GeoLocation(){return a.object({latitude:a.number(),longitude:a.number()})}static GetAddressesResponse(){return a.object({address:a.array().items(n.Address()),pii_masking:a.boolean()})}static GetCouponResponse(){return a.object({available_coupon_list:a.array().items(n.Coupon()),page:n.PageCoupon()})}static GetShareCartLinkRequest(){return a.object({id:a.string().allow(""),meta:a.any()})}static GetShareCartLinkResponse(){return a.object({share_url:a.string().allow(""),token:a.string().allow("")})}static GiftDetail(){return a.object({gift_message:a.string().allow(""),is_gift_applied:a.boolean()})}static LadderOfferItem(){return a.object({margin:a.number(),max_quantity:a.number(),min_quantity:a.number(),price:n.LadderPrice(),type:a.string().allow("")})}static LadderPrice(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),effective:a.number(),marked:a.number(),offer_price:a.number()})}static LadderPriceOffer(){return a.object({buy_rules:a.any(),calculate_on:a.string().allow(""),description:a.string().allow(""),discount_rules:a.array().items(a.any()),free_gift_items:a.array().items(n.FreeGiftItems()),id:a.string().allow(""),offer_prices:a.array().items(n.LadderOfferItem()),offer_text:a.string().allow(""),promotion_group:a.string().allow(""),valid_till:a.string().allow("")})}static LadderPriceOffers(){return a.object({available_offers:a.array().items(n.LadderPriceOffer()),currency:n.CurrencyInfo()})}static LoyaltyPoints(){return a.object({applicable:a.number(),description:a.string().allow(""),is_applied:a.boolean(),total:a.number()})}static OfferItem(){return a.object({auto_applied:a.boolean(),best:a.boolean(),margin:a.number(),price:n.OfferPrice(),quantity:a.number(),total:a.number(),type:a.string().allow("")})}static OfferPrice(){return a.object({bulk_effective:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),effective:a.number(),marked:a.number()})}static OfferSeller(){return a.object({name:a.string().allow(""),uid:a.number()})}static OperationErrorResponse(){return a.object({message:a.string().allow(""),success:a.boolean()})}static Ownership(){return a.object({payable_by:a.string().allow(""),payable_category:a.string().allow("")})}static PageCoupon(){return a.object({current:a.number(),has_next:a.boolean(),has_previous:a.boolean(),total:a.number(),total_item_count:a.number()})}static PaymentCouponValidate(){return a.object({coupon_validity:n.CouponValidity(),message:a.string().allow(""),success:a.boolean().required()})}static PaymentMeta(){return a.object({merchant_code:a.string().allow(""),payment_gateway:a.string().allow(""),payment_identifier:a.string().allow("").allow(null),type:a.string().allow("")})}static PaymentMethod(){return a.object({amount:a.number().allow(null),mode:a.string().allow("").required(),name:a.string().allow(""),payment:a.string().allow(""),payment_extra_identifiers:a.any(),payment_meta:n.PaymentMeta().required()})}static PaymentSelectionLock(){return a.object({default_options:a.string().allow(""),enabled:a.boolean(),payment_identifier:a.string().allow("")})}static ProductAction(){return a.object({query:n.ActionQuery(),type:a.string().allow(""),url:a.string().allow("")})}static ProductArticle(){return a.object({_custom_json:a.any(),cart_item_meta:a.any(),extra_meta:a.any(),gift_card:a.any(),identifier:a.any(),is_gift_visible:a.boolean(),meta:a.any(),mto_quantity:a.number(),parent_item_identifiers:a.any(),price:n.ArticlePriceInfo(),product_group_tags:a.array().items(a.string().allow("")),quantity:a.number(),seller:n.BaseInfo(),seller_identifier:a.string().allow(""),size:a.string().allow(""),store:n.StoreInfo(),type:a.string().allow(""),uid:a.string().allow("")})}static ProductAvailability(){return a.object({available_sizes:a.array().items(n.ProductAvailabilitySize()),deliverable:a.boolean(),is_valid:a.boolean(),other_store_quantity:a.number(),out_of_stock:a.boolean(),sizes:a.array().items(a.string().allow(""))})}static ProductAvailabilitySize(){return a.object({display:a.string().allow(""),is_available:a.boolean(),value:a.string().allow("")})}static ProductImage(){return a.object({aspect_ratio:a.string().allow(""),secure_url:a.string().allow(""),url:a.string().allow("")})}static ProductPrice(){return a.object({add_on:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),effective:a.number(),marked:a.number(),selling:a.number()})}static ProductPriceInfo(){return a.object({base:n.ProductPrice(),converted:n.ProductPrice()})}static PromiseFormatted(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static PromiseTimestamp(){return a.object({max:a.number(),min:a.number()})}static PromoMeta(){return a.object({message:a.string().allow("")})}static PromotionOffer(){return a.object({buy_rules:a.any(),description:a.string().allow(""),discount_rules:a.array().items(a.any()),free_gift_items:a.array().items(n.FreeGiftItems()),id:a.string().allow(""),offer_text:a.string().allow(""),promotion_group:a.string().allow(""),valid_till:a.string().allow("")})}static PromotionOffersResponse(){return a.object({available_promotions:a.array().items(n.PromotionOffer())})}static RawBreakup(){return a.object({cod_charge:a.number(),convenience_fee:a.number(),coupon:a.number(),delivery_charge:a.number(),discount:a.number(),fynd_cash:a.number(),gift_card:a.number(),gst_charges:a.number(),mop_total:a.number(),mrp_total:a.number(),subtotal:a.number(),total:a.number(),vog:a.number(),you_saved:a.number()})}static RewardPointRequest(){return a.object({points:a.boolean().required()})}static SaveAddressResponse(){return a.object({id:a.string().allow(""),is_default_address:a.boolean(),success:a.boolean()})}static SelectCartAddressRequest(){return a.object({billing_address_id:a.string().allow(""),cart_id:a.string().allow(""),id:a.string().allow("")})}static SharedCart(){return a.object({breakup_values:n.CartBreakup(),buy_now:a.boolean(),cart_id:a.number(),checkout_mode:a.string().allow(""),comment:a.string().allow(""),coupon_text:a.string().allow(""),currency:n.CartCurrency(),delivery_charge_info:a.string().allow(""),delivery_promise:n.ShipmentPromise(),gstin:a.string().allow(""),id:a.string().allow(""),is_valid:a.boolean(),items:a.array().items(n.CartProductInfo()),last_modified:a.string().allow(""),message:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),restrict_checkout:a.boolean(),shared_cart_details:n.SharedCartDetails(),uid:a.string().allow("")})}static SharedCartDetails(){return a.object({created_on:a.string().allow(""),meta:a.any(),source:a.any(),token:a.string().allow(""),user:a.any()})}static SharedCartResponse(){return a.object({cart:n.SharedCart(),error:a.string().allow("")})}static ShipmentPromise(){return a.object({formatted:n.PromiseFormatted(),timestamp:n.PromiseTimestamp()})}static ShipmentResponse(){return a.object({box_type:a.string().allow("").allow(null),dp_id:a.string().allow("").allow(null),dp_options:a.any().allow(null),fulfillment_id:a.number(),fulfillment_type:a.string().allow(""),items:a.array().items(n.CartProductInfo()),order_type:a.string().allow(""),promise:n.ShipmentPromise(),shipment_type:a.string().allow(""),shipments:a.number()})}static StaffCheckout(){return a.object({_id:a.string().allow("").required(),employee_code:a.string().allow(""),first_name:a.string().allow("").required(),last_name:a.string().allow("").required(),user:a.string().allow("").required()})}static StoreInfo(){return a.object({name:a.string().allow(""),store_code:a.string().allow(""),uid:a.number()})}static Tags(){return a.object({tags:a.any()})}static UpdateAddressResponse(){return a.object({id:a.string().allow(""),is_default_address:a.boolean(),is_updated:a.boolean(),success:a.boolean()})}static UpdateCartDetailResponse(){return a.object({cart:n.CartDetailResponse(),message:a.string().allow(""),success:a.boolean()})}static UpdateCartPaymentRequest(){return a.object({address_id:a.string().allow(""),aggregator_name:a.string().allow(""),id:a.string().allow(""),merchant_code:a.string().allow(""),payment_identifier:a.string().allow("").allow(null),payment_mode:a.string().allow("")})}static UpdateCartRequest(){return a.object({items:a.array().items(n.UpdateProductCart()),operation:a.string().allow("").required()})}static UpdateProductCart(){return a.object({_custom_json:a.any(),article_id:a.string().allow(""),extra_meta:a.any(),identifiers:n.CartProductIdentifer().required(),item_id:a.number(),item_index:a.number(),item_size:a.string().allow(""),meta:a.any(),parent_item_identifiers:a.any(),quantity:a.number()})}}e.exports=n},6206:(e,t,r)=>{const a=r(2705),n=r(7350);e.exports=class{static addAddress(){return a.object({body:n.Address().required()}).required()}static addItems(){return a.object({i:a.boolean(),b:a.boolean(),areaCode:a.string().allow(""),buyNow:a.boolean(),id:a.string().allow(""),body:n.AddCartRequest().required()}).required()}static applyCoupon(){return a.object({i:a.boolean(),b:a.boolean(),p:a.boolean(),id:a.string().allow(""),buyNow:a.boolean(),body:n.ApplyCouponRequest().required()}).required()}static applyRewardPoints(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),buyNow:a.boolean(),body:n.RewardPointRequest().required()}).required()}static checkoutCart(){return a.object({buyNow:a.boolean(),body:n.CartCheckoutDetailRequest().required()}).required()}static checkoutCartV2(){return a.object({buyNow:a.boolean(),body:n.CartCheckoutDetailV2Request().required()}).required()}static deleteCart(){return a.object({id:a.string().allow("")})}static getAddressById(){return a.object({id:a.string().allow("").required(),cartId:a.string().allow(""),buyNow:a.boolean(),mobileNo:a.string().allow(""),checkoutMode:a.string().allow(""),tags:a.string().allow(""),isDefault:a.boolean()}).required()}static getAddresses(){return a.object({cartId:a.string().allow(""),buyNow:a.boolean(),mobileNo:a.string().allow(""),checkoutMode:a.string().allow(""),tags:a.string().allow(""),isDefault:a.boolean()})}static getBulkDiscountOffers(){return a.object({itemId:a.number(),articleId:a.string().allow(""),uid:a.number(),slug:a.string().allow("")})}static getCart(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),assignCardId:a.number(),areaCode:a.string().allow(""),buyNow:a.boolean()})}static getCartLastModified(){return a.object({id:a.string().allow("")})}static getCartShareLink(){return a.object({body:n.GetShareCartLinkRequest().required()}).required()}static getCartSharedItems(){return a.object({token:a.string().allow("").required()}).required()}static getCoupons(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static getItemCount(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static getLadderOffers(){return a.object({slug:a.string().allow("").required(),storeId:a.string().allow(""),promotionId:a.string().allow(""),pageSize:a.number()}).required()}static getPromotionOffers(){return a.object({slug:a.string().allow(""),pageSize:a.number(),promotionGroup:a.string().allow(""),storeId:a.number()})}static getShipments(){return a.object({p:a.boolean(),id:a.string().allow(""),buyNow:a.boolean(),addressId:a.string().allow(""),areaCode:a.string().allow(""),orderType:a.string().allow("")})}static removeAddress(){return a.object({id:a.string().allow("").required()}).required()}static removeCoupon(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static selectAddress(){return a.object({cartId:a.string().allow(""),buyNow:a.boolean(),i:a.boolean(),b:a.boolean(),body:n.SelectCartAddressRequest().required()}).required()}static selectPaymentMode(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),body:n.UpdateCartPaymentRequest().required()}).required()}static updateAddress(){return a.object({id:a.string().allow("").required(),body:n.Address().required()}).required()}static updateCart(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),areaCode:a.string().allow(""),buyNow:a.boolean(),body:n.UpdateCartRequest().required()}).required()}static updateCartMeta(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),body:n.CartMetaRequest().required()}).required()}static updateCartWithSharedItems(){return a.object({token:a.string().allow("").required(),action:a.string().allow("").required()}).required()}static validateCouponForPayment(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),addressId:a.string().allow(""),paymentMode:a.string().allow(""),paymentIdentifier:a.string().allow(""),aggregatorName:a.string().allow(""),merchantCode:a.string().allow(""),iin:a.string().allow(""),network:a.string().allow(""),type:a.string().allow(""),cardId:a.string().allow("")})}}},4196:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=r(3589),i=r(3853),l=r(5761),{Logger:c}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={followById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/",getBrandDetailBySlug:"/service/application/catalog/v1.0/brands/{slug}/",getBrands:"/service/application/catalog/v1.0/brands/",getCategories:"/service/application/catalog/v1.0/categories/",getCategoryDetailBySlug:"/service/application/catalog/v1.0/categories/{slug}/",getCollectionDetailBySlug:"/service/application/catalog/v1.0/collections/{slug}/",getCollectionItemsBySlug:"/service/application/catalog/v1.0/collections/{slug}/items/",getCollections:"/service/application/catalog/v1.0/collections/",getComparedFrequentlyProductBySlug:"/service/application/catalog/v1.0/products/{slug}/similar/compared-frequently/",getDepartments:"/service/application/catalog/v1.0/departments/",getFollowIds:"/service/application/catalog/v1.0/follow/ids/",getFollowedListing:"/service/application/catalog/v1.0/follow/{collection_type}/",getFollowerCountById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/count/",getHomeProducts:"/service/application/catalog/v1.0/home/listing/",getInStockLocations:"/service/application/catalog/v1.0/in-stock/locations/",getLocationDetailsById:"/service/application/catalog/v1.0/locations/{location_id}/",getProductBundlesBySlug:"/service/application/catalog/v1.0/product-grouping/",getProductComparisonBySlugs:"/service/application/catalog/v1.0/products/compare/",getProductDetailBySlug:"/service/application/catalog/v1.0/products/{slug}/",getProductPriceBySlug:"/service/application/catalog/v3.0/products/{slug}/sizes/{size}/price/",getProductSellersBySlug:"/service/application/catalog/v3.0/products/{slug}/sizes/{size}/sellers/",getProductSizesBySlug:"/service/application/catalog/v1.0/products/{slug}/sizes/",getProductStockByIds:"/service/application/catalog/v1.0/products/stock-status/",getProductStockForTimeByIds:"/service/application/catalog/v1.0/products/stock-status/poll/",getProductVariantsBySlug:"/service/application/catalog/v1.0/products/{slug}/variants/",getProducts:"/service/application/catalog/v1.0/products/",getSearchResults:"/service/application/catalog/v1.0/auto-complete/",getSimilarComparisonProductBySlug:"/service/application/catalog/v1.0/products/{slug}/similar/compare/",getStores:"/service/application/catalog/v1.0/locations/",unfollowById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async followById({collectionType:e,collectionId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.followById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.followById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > followById \n ${d}`});const p=await a.execute(this._conf,"post",o({url:this._urls.followById,params:{collectionType:e,collectionId:t}}),{},void 0,{...r},{responseHeaders:s});let g=p;s&&(g=p[0]);const{error:m}=l.FollowPostResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > followById \n ${m}`}),p}async getBrandDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getBrandDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getBrandDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getBrandDetailBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getBrandDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.BrandDetailResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getBrandDetailBySlug \n ${g}`}),d}async getBrands({department:e,pageNo:t,pageSize:r,requestHeaders:s}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getBrands().validate({department:e,pageNo:t,pageSize:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getBrands().validate({department:e,pageNo:t,pageSize:r},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getBrands \n ${p}`});const g={};g.department=e,g.page_no=t,g.page_size=r;const m=await a.execute(this._conf,"get",o({url:this._urls.getBrands,params:{}}),g,void 0,{...s},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=l.BrandListingResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getBrands \n ${y}`}),m}getBrandsPaginator({department:e,pageSize:t}={}){const r=new s;return r.setCallback((async()=>{r.nextId;const a=r.pageNo,n=await this.getBrands({department:e,pageNo:a,pageSize:t});return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getCategories({department:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getCategories().validate({department:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getCategories().validate({department:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCategories \n ${u}`});const d={};d.department=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getCategories,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.CategoryListingResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getCategories \n ${m}`}),p}async getCategoryDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getCategoryDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getCategoryDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCategoryDetailBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getCategoryDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.CategoryMetaResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getCategoryDetailBySlug \n ${g}`}),d}async getCollectionDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getCollectionDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getCollectionDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCollectionDetailBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getCollectionDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.CollectionDetailResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getCollectionDetailBySlug \n ${g}`}),d}async getCollectionItemsBySlug({slug:e,f:t,q:r,filters:s,sortOn:u,pageId:d,pageSize:p,pageNo:g,pageType:m,requestHeaders:w}={requestHeaders:{}},{responseHeaders:y}={responseHeaders:!1}){const{error:f}=i.getCollectionItemsBySlug().validate({slug:e,f:t,q:r,filters:s,sortOn:u,pageId:d,pageSize:p,pageNo:g,pageType:m},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:b}=i.getCollectionItemsBySlug().validate({slug:e,f:t,q:r,filters:s,sortOn:u,pageId:d,pageSize:p,pageNo:g,pageType:m},{abortEarly:!1,allowUnknown:!1});b&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCollectionItemsBySlug \n ${b}`});const h={};h.f=t,h.q=r,h.filters=s,h.sort_on=u,h.page_id=d,h.page_size=p,h.page_no=g,h.page_type=m;const _=await a.execute(this._conf,"get",o({url:this._urls.getCollectionItemsBySlug,params:{slug:e}}),h,void 0,{...w},{responseHeaders:y});let v=_;y&&(v=_[0]);const{error:k}=l.ProductListingResponse().validate(v,{abortEarly:!1,allowUnknown:!1});return k&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getCollectionItemsBySlug \n ${k}`}),_}getCollectionItemsBySlugPaginator({slug:e,f:t,q:r,filters:a,sortOn:n,pageSize:o}={}){const i=new s;return i.setCallback((async()=>{const s=i.nextId,l=i.pageNo,c=await this.getCollectionItemsBySlug({slug:e,f:t,q:r,filters:a,sortOn:n,pageId:s,pageSize:o,pageNo:l,pageType:"cursor"});return i.setPaginator({hasNext:!!c.page.has_next,nextId:c.page.next_id}),c}).bind(this)),i}async getCollections({pageNo:e,pageSize:t,tag:r,q:s,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.getCollections().validate({pageNo:e,pageSize:t,tag:r,q:s},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.getCollections().validate({pageNo:e,pageSize:t,tag:r,q:s},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCollections \n ${g}`});const m={};m.page_no=e,m.page_size=t,m.tag=r,m.q=s;const w=await a.execute(this._conf,"get",o({url:this._urls.getCollections,params:{}}),m,void 0,{...u},{responseHeaders:d});let y=w;d&&(y=w[0]);const{error:f}=l.GetCollectionListingResponse().validate(y,{abortEarly:!1,allowUnknown:!1});return f&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getCollections \n ${f}`}),w}getCollectionsPaginator({pageSize:e,tag:t,q:r}={}){const a=new s;return a.setCallback((async()=>{a.nextId;const n=a.pageNo,o=await this.getCollections({pageNo:n,pageSize:e,tag:t,q:r});return a.setPaginator({hasNext:!!o.page.has_next,nextId:o.page.next_id}),o}).bind(this)),a}async getComparedFrequentlyProductBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getComparedFrequentlyProductBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getComparedFrequentlyProductBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getComparedFrequentlyProductBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getComparedFrequentlyProductBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.ProductFrequentlyComparedSimilarResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getComparedFrequentlyProductBySlug \n ${g}`}),d}async getDepartments({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getDepartments().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getDepartments().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getDepartments \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getDepartments,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.DepartmentResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getDepartments \n ${p}`}),u}async getFollowIds({collectionType:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getFollowIds().validate({collectionType:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getFollowIds().validate({collectionType:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getFollowIds \n ${u}`});const d={};d.collection_type=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getFollowIds,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.FollowIdsResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getFollowIds \n ${m}`}),p}async getFollowedListing({collectionType:e,pageId:t,pageSize:r,requestHeaders:s}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getFollowedListing().validate({collectionType:e,pageId:t,pageSize:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getFollowedListing().validate({collectionType:e,pageId:t,pageSize:r},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getFollowedListing \n ${p}`});const g={};g.page_id=t,g.page_size=r;const m=await a.execute(this._conf,"get",o({url:this._urls.getFollowedListing,params:{collectionType:e}}),g,void 0,{...s},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=l.GetFollowListingResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getFollowedListing \n ${y}`}),m}getFollowedListingPaginator({collectionType:e,pageSize:t}={}){const r=new s;return r.setCallback((async()=>{const a=r.nextId,n=(r.pageNo,await this.getFollowedListing({collectionType:e,pageId:a,pageSize:t}));return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getFollowerCountById({collectionType:e,collectionId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getFollowerCountById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getFollowerCountById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getFollowerCountById \n ${d}`});const p=await a.execute(this._conf,"get",o({url:this._urls.getFollowerCountById,params:{collectionType:e,collectionId:t}}),{},void 0,{...r},{responseHeaders:s});let g=p;s&&(g=p[0]);const{error:m}=l.FollowerCountResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getFollowerCountById \n ${m}`}),p}async getHomeProducts({sortOn:e,pageId:t,pageSize:r,requestHeaders:s}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getHomeProducts().validate({sortOn:e,pageId:t,pageSize:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getHomeProducts().validate({sortOn:e,pageId:t,pageSize:r},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getHomeProducts \n ${p}`});const g={};g.sort_on=e,g.page_id=t,g.page_size=r;const m=await a.execute(this._conf,"get",o({url:this._urls.getHomeProducts,params:{}}),g,void 0,{...s},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=l.HomeListingResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getHomeProducts \n ${y}`}),m}getHomeProductsPaginator({sortOn:e,pageSize:t}={}){const r=new s;return r.setCallback((async()=>{const a=r.nextId,n=(r.pageNo,await this.getHomeProducts({sortOn:e,pageId:a,pageSize:t}));return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getInStockLocations({pageNo:e,pageSize:t,q:r,city:s,range:u,latitude:d,longitude:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.getInStockLocations().validate({pageNo:e,pageSize:t,q:r,city:s,range:u,latitude:d,longitude:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:y}=i.getInStockLocations().validate({pageNo:e,pageSize:t,q:r,city:s,range:u,latitude:d,longitude:p},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getInStockLocations \n ${y}`});const f={};f.page_no=e,f.page_size=t,f.q=r,f.city=s,f.range=u,f.latitude=d,f.longitude=p;const b=await a.execute(this._conf,"get",o({url:this._urls.getInStockLocations,params:{}}),f,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.ApplicationStoreListing().validate(h,{abortEarly:!1,allowUnknown:!1});return _&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getInStockLocations \n ${_}`}),b}getInStockLocationsPaginator({pageSize:e,q:t,city:r,range:a,latitude:n,longitude:o}={}){const i=new s;return i.setCallback((async()=>{i.nextId;const s=i.pageNo,l=await this.getInStockLocations({pageNo:s,pageSize:e,q:t,city:r,range:a,latitude:n,longitude:o});return i.setPaginator({hasNext:!!l.page.has_next,nextId:l.page.next_id}),l}).bind(this)),i}async getLocationDetailsById({locationId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getLocationDetailsById().validate({locationId:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getLocationDetailsById().validate({locationId:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getLocationDetailsById \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getLocationDetailsById,params:{locationId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.StoreDetails().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getLocationDetailsById \n ${g}`}),d}async getProductBundlesBySlug({slug:e,id:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getProductBundlesBySlug().validate({slug:e,id:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getProductBundlesBySlug().validate({slug:e,id:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductBundlesBySlug \n ${d}`});const p={};p.slug=e,p.id=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getProductBundlesBySlug,params:{}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.ProductBundle().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductBundlesBySlug \n ${w}`}),g}async getProductComparisonBySlugs({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getProductComparisonBySlugs().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getProductComparisonBySlugs().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductComparisonBySlugs \n ${u}`});const d={};d.slug=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getProductComparisonBySlugs,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ProductsComparisonResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductComparisonBySlugs \n ${m}`}),p}async getProductDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getProductDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getProductDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductDetailBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getProductDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.ProductDetail().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductDetailBySlug \n ${g}`}),d}async getProductPriceBySlug({slug:e,size:t,storeId:r,pincode:s,moq:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=i.getProductPriceBySlug().validate({slug:e,size:t,storeId:r,pincode:s,moq:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=i.getProductPriceBySlug().validate({slug:e,size:t,storeId:r,pincode:s,moq:u},{abortEarly:!1,allowUnknown:!1});m&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductPriceBySlug \n ${m}`});const w={};w.store_id=r,w.pincode=s,w.moq=u;const y=await a.execute(this._conf,"get",o({url:this._urls.getProductPriceBySlug,params:{slug:e,size:t}}),w,void 0,{...d},{responseHeaders:p});let f=y;p&&(f=y[0]);const{error:b}=l.ProductSizePriceResponseV3().validate(f,{abortEarly:!1,allowUnknown:!1});return b&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductPriceBySlug \n ${b}`}),y}async getProductSellersBySlug({slug:e,size:t,pincode:r,strategy:s,pageNo:u,pageSize:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.getProductSellersBySlug().validate({slug:e,size:t,pincode:r,strategy:s,pageNo:u,pageSize:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=i.getProductSellersBySlug().validate({slug:e,size:t,pincode:r,strategy:s,pageNo:u,pageSize:d},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductSellersBySlug \n ${w}`});const y={};y.pincode=r,y.strategy=s,y.page_no=u,y.page_size=d;const f=await a.execute(this._conf,"get",o({url:this._urls.getProductSellersBySlug,params:{slug:e,size:t}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=l.ProductSizeSellersResponseV3().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductSellersBySlug \n ${h}`}),f}getProductSellersBySlugPaginator({slug:e,size:t,pincode:r,strategy:a,pageSize:n}={}){const o=new s;return o.setCallback((async()=>{o.nextId;const s=o.pageNo,i=await this.getProductSellersBySlug({slug:e,size:t,pincode:r,strategy:a,pageNo:s,pageSize:n});return o.setPaginator({hasNext:!!i.page.has_next,nextId:i.page.next_id}),i}).bind(this)),o}async getProductSizesBySlug({slug:e,storeId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getProductSizesBySlug().validate({slug:e,storeId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getProductSizesBySlug().validate({slug:e,storeId:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductSizesBySlug \n ${d}`});const p={};p.store_id=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getProductSizesBySlug,params:{slug:e}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.ProductSizes().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductSizesBySlug \n ${w}`}),g}async getProductStockByIds({itemId:e,alu:t,skuCode:r,ean:s,upc:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=i.getProductStockByIds().validate({itemId:e,alu:t,skuCode:r,ean:s,upc:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=i.getProductStockByIds().validate({itemId:e,alu:t,skuCode:r,ean:s,upc:u},{abortEarly:!1,allowUnknown:!1});m&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductStockByIds \n ${m}`});const w={};w.item_id=e,w.alu=t,w.sku_code=r,w.ean=s,w.upc=u;const y=await a.execute(this._conf,"get",o({url:this._urls.getProductStockByIds,params:{}}),w,void 0,{...d},{responseHeaders:p});let f=y;p&&(f=y[0]);const{error:b}=l.ProductStockStatusResponse().validate(f,{abortEarly:!1,allowUnknown:!1});return b&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductStockByIds \n ${b}`}),y}async getProductStockForTimeByIds({timestamp:e,pageSize:t,pageId:r,requestHeaders:s}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getProductStockForTimeByIds().validate({timestamp:e,pageSize:t,pageId:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getProductStockForTimeByIds().validate({timestamp:e,pageSize:t,pageId:r},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductStockForTimeByIds \n ${p}`});const g={};g.timestamp=e,g.page_size=t,g.page_id=r;const m=await a.execute(this._conf,"get",o({url:this._urls.getProductStockForTimeByIds,params:{}}),g,void 0,{...s},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=l.ProductStockPolling().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductStockForTimeByIds \n ${y}`}),m}getProductStockForTimeByIdsPaginator({timestamp:e,pageSize:t}={}){const r=new s;return r.setCallback((async()=>{const a=r.nextId,n=(r.pageNo,await this.getProductStockForTimeByIds({timestamp:e,pageSize:t,pageId:a}));return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getProductVariantsBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getProductVariantsBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getProductVariantsBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductVariantsBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getProductVariantsBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.ProductVariantsResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProductVariantsBySlug \n ${g}`}),d}async getProducts({q:e,f:t,filters:r,sortOn:s,pageId:u,pageSize:d,pageNo:p,pageType:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:y}=i.getProducts().validate({q:e,f:t,filters:r,sortOn:s,pageId:u,pageSize:d,pageNo:p,pageType:g},{abortEarly:!1,allowUnknown:!0});if(y)return Promise.reject(new n(y));const{error:f}=i.getProducts().validate({q:e,f:t,filters:r,sortOn:s,pageId:u,pageSize:d,pageNo:p,pageType:g},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProducts \n ${f}`});const b={};b.q=e,b.f=t,b.filters=r,b.sort_on=s,b.page_id=u,b.page_size=d,b.page_no=p,b.page_type=g;const h=await a.execute(this._conf,"get",o({url:this._urls.getProducts,params:{}}),b,void 0,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.ProductListingResponse().validate(_,{abortEarly:!1,allowUnknown:!1});return v&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getProducts \n ${v}`}),h}getProductsPaginator({q:e,f:t,filters:r,sortOn:a,pageSize:n}={}){const o=new s;return o.setCallback((async()=>{const s=o.nextId,i=o.pageNo,l=await this.getProducts({q:e,f:t,filters:r,sortOn:a,pageId:s,pageSize:n,pageNo:i,pageType:"cursor"});return o.setPaginator({hasNext:!!l.page.has_next,nextId:l.page.next_id}),l}).bind(this)),o}async getSearchResults({q:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getSearchResults().validate({q:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getSearchResults().validate({q:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getSearchResults \n ${u}`});const d={};d.q=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getSearchResults,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.AutoCompleteResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getSearchResults \n ${m}`}),p}async getSimilarComparisonProductBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getSimilarComparisonProductBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getSimilarComparisonProductBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getSimilarComparisonProductBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getSimilarComparisonProductBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.ProductCompareResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getSimilarComparisonProductBySlug \n ${g}`}),d}async getStores({pageNo:e,pageSize:t,q:r,city:s,range:u,latitude:d,longitude:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.getStores().validate({pageNo:e,pageSize:t,q:r,city:s,range:u,latitude:d,longitude:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:y}=i.getStores().validate({pageNo:e,pageSize:t,q:r,city:s,range:u,latitude:d,longitude:p},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getStores \n ${y}`});const f={};f.page_no=e,f.page_size=t,f.q=r,f.city=s,f.range=u,f.latitude=d,f.longitude=p;const b=await a.execute(this._conf,"get",o({url:this._urls.getStores,params:{}}),f,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.StoreListingResponse().validate(h,{abortEarly:!1,allowUnknown:!1});return _&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > getStores \n ${_}`}),b}getStoresPaginator({pageSize:e,q:t,city:r,range:a,latitude:n,longitude:o}={}){const i=new s;return i.setCallback((async()=>{i.nextId;const s=i.pageNo,l=await this.getStores({pageNo:s,pageSize:e,q:t,city:r,range:a,latitude:n,longitude:o});return i.setPaginator({hasNext:!!l.page.has_next,nextId:l.page.next_id}),l}).bind(this)),i}async unfollowById({collectionType:e,collectionId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.unfollowById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.unfollowById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > unfollowById \n ${d}`});const p=await a.execute(this._conf,"delete",o({url:this._urls.unfollowById,params:{collectionType:e,collectionId:t}}),{},void 0,{...r},{responseHeaders:s});let g=p;s&&(g=p[0]);const{error:m}=l.FollowPostResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&c({level:"WARN",message:`Response Validation Warnnings for application > Catalog > unfollowById \n ${m}`}),p}}},5761:(e,t,r)=>{const a=r(2705);class n{static ApplicationItemMOQ(){return a.object({increment_unit:a.number(),maximum:a.number(),minimum:a.number()})}static ApplicationItemSEO(){return a.object({description:a.any(),title:a.any()})}static ApplicationStoreListing(){return a.object({filters:a.array().items(a.any()),items:a.array().items(n.AppStore()),page:n.Page()})}static AppStore(){return a.object({address:n.StoreAddressSerializer(),company:n.CompanyStore(),contact_numbers:a.array().items(n.SellerPhoneNumber()),departments:a.array().items(n.StoreDepartments()),manager:n.StoreManagerSerializer(),name:a.string().allow(""),store_code:a.string().allow(""),uid:a.number()})}static ArticleAssignmentV3(){return a.object({level:a.string().allow(""),strategy:a.string().allow("")})}static AttributeDetail(){return a.object({description:a.string().allow(""),display:a.string().allow(""),key:a.string().allow(""),logo:a.string().allow("")})}static AttributeMetadata(){return a.object({details:a.array().items(n.AttributeDetail()),title:a.string().allow("")})}static AutocompleteItem(){return a.object({_custom_json:a.any(),action:n.ProductListingAction(),display:a.string().allow(""),logo:n.Media(),type:a.string().allow("")})}static AutoCompleteResponse(){return a.object({items:a.array().items(n.AutocompleteItem())})}static BrandDetailResponse(){return a.object({_custom_json:a.any(),banners:n.ImageUrls(),description:a.string().allow(""),logo:n.Media(),name:a.string().allow(""),uid:a.number()})}static BrandItem(){return a.object({action:n.ProductListingAction(),banners:n.ImageUrls(),departments:a.array().items(a.string().allow("")),description:a.string().allow(""),discount:a.string().allow(""),logo:n.Media(),name:a.string().allow(""),slug:a.string().allow(""),uid:a.number()})}static BrandListingResponse(){return a.object({items:a.array().items(n.BrandItem()),page:n.Page().required()})}static CategoryBanner(){return a.object({landscape:n.Media().required(),portrait:n.Media().required()})}static CategoryItems(){return a.object({action:n.ProductListingAction().required(),banners:n.CategoryBanner().required(),childs:a.array().items(n.Child()),name:a.string().allow("").required(),slug:a.string().allow("").required(),uid:a.number().required()})}static CategoryListingResponse(){return a.object({data:a.array().items(n.DepartmentCategoryTree()),departments:a.array().items(n.DepartmentIdentifier())})}static CategoryMetaResponse(){return a.object({_custom_json:a.any(),banners:n.ImageUrls(),logo:n.Media(),name:a.string().allow(""),uid:a.number()})}static Child(){return a.object({_custom_json:a.any(),action:n.ProductListingAction(),banners:n.ImageUrls(),childs:a.array().items(n.SecondLevelChild()),name:a.string().allow(""),slug:a.string().allow(""),uid:a.number()})}static CollectionDetailResponse(){return a.object({_custom_json:a.any(),_schedule:a.any(),allow_facets:a.boolean(),allow_sort:a.boolean(),app_id:a.string().allow(""),badge:a.any(),banners:n.ImageUrls(),cron:a.any(),description:a.string().allow(""),is_active:a.boolean(),logo:n.Media(),meta:a.any(),name:a.string().allow(""),priority:a.number(),query:a.array().items(n.CollectionQuery()),slug:a.string().allow(""),sort_on:a.string().allow(""),tag:a.array().items(a.string().allow("")),type:a.string().allow(""),visible_facets_keys:a.array().items(a.string().allow(""))})}static CollectionListingFilter(){return a.object({tags:a.array().items(n.CollectionListingFilterTag()),type:a.array().items(n.CollectionListingFilterType())})}static CollectionListingFilterTag(){return a.object({display:a.string().allow(""),is_selected:a.boolean(),name:a.string().allow("")})}static CollectionListingFilterType(){return a.object({display:a.string().allow(""),is_selected:a.boolean(),name:a.string().allow("")})}static CollectionQuery(){return a.object({attribute:a.string().allow("").required(),op:a.string().allow("").required(),value:a.array().items(a.any()).required()})}static ColumnHeader(){return a.object({convertable:a.boolean(),value:a.string().allow("")})}static ColumnHeaders(){return a.object({col_1:n.ColumnHeader(),col_2:n.ColumnHeader(),col_3:n.ColumnHeader(),col_4:n.ColumnHeader(),col_5:n.ColumnHeader(),col_6:n.ColumnHeader()})}static CompanyDetail(){return a.object({id:a.number(),name:a.string().allow("")})}static CompanyStore(){return a.object({business_type:a.string().allow(""),company_type:a.string().allow(""),name:a.string().allow(""),uid:a.number()})}static CustomMetaFields(){return a.object({key:a.string().allow("").required(),value:a.string().allow("").required()})}static Department(){return a.object({logo:n.Media(),name:a.string().allow(""),priority_order:a.number(),slug:a.string().allow(""),uid:a.number()})}static DepartmentCategoryTree(){return a.object({department:a.string().allow("").required(),items:a.array().items(n.CategoryItems())})}static DepartmentIdentifier(){return a.object({slug:a.string().allow(""),uid:a.number()})}static DepartmentResponse(){return a.object({items:a.array().items(n.Department())})}static DetailsSchemaV3(){return a.object({key:a.string().allow(""),type:a.string().allow(""),value:a.string().allow("")})}static Dimension(){return a.object({height:a.number().required(),is_default:a.boolean().required(),length:a.number().required(),unit:a.string().allow("").required(),width:a.number().required()})}static DiscountMeta(){return a.object({end:a.string().allow(""),start:a.string().allow(""),start_timer_in_minutes:a.number(),timer:a.boolean().required()})}static ErrorResponse(){return a.object({error:a.string().allow("")})}static FollowerCountResponse(){return a.object({count:a.number()})}static FollowIdsData(){return a.object({brands:a.array().items(a.number()),collections:a.array().items(a.number()),products:a.array().items(a.number())})}static FollowIdsResponse(){return a.object({data:n.FollowIdsData()})}static FollowPostResponse(){return a.object({id:a.string().allow("").required(),message:a.string().allow("").required()})}static GetCollectionDetailNest(){return a.object({_custom_json:a.any(),_schedule:a.any(),action:n.ProductListingAction(),allow_facets:a.boolean(),allow_sort:a.boolean(),app_id:a.string().allow(""),badge:a.any(),banners:n.ImageUrls(),cron:a.any(),description:a.string().allow(""),is_active:a.boolean(),logo:n.Media(),meta:a.any(),name:a.string().allow(""),priority:a.number(),query:a.array().items(n.CollectionQuery()),slug:a.string().allow(""),sort_on:a.string().allow(""),tag:a.array().items(a.string().allow("")),type:a.string().allow(""),uid:a.string().allow(""),visible_facets_keys:a.array().items(a.string().allow(""))})}static GetCollectionListingResponse(){return a.object({filters:n.CollectionListingFilter(),items:a.array().items(n.GetCollectionDetailNest()),page:n.Page().required()})}static GetFollowListingResponse(){return a.object({items:a.array().items(n.ProductListingDetail()).required(),page:n.Page().required()})}static HomeListingResponse(){return a.object({items:a.array().items(n.ProductListingDetail()),message:a.string().allow(""),page:n.Page().required()})}static ImageUrls(){return a.object({landscape:n.Media(),portrait:n.Media()})}static LatLong(){return a.object({coordinates:a.array().items(a.number()),type:a.string().allow("")})}static MarketPlaceSttributesSchemaV3(){return a.object({details:a.array().items(n.DetailsSchemaV3()),title:a.string().allow("")})}static Media(){return a.object({alt:a.string().allow(""),meta:n.Meta(),type:a.string().allow(""),url:a.string().allow("")})}static Meta(){return a.object({source:a.string().allow("")})}static NetQuantity(){return a.object({unit:a.any(),value:a.number()})}static Page(){return a.object({current:a.number(),has_next:a.boolean(),has_previous:a.boolean(),item_total:a.number(),next_id:a.string().allow(""),size:a.number(),type:a.string().allow("").required()})}static Price(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),max:a.number(),min:a.number()})}static ProductBrand(){return a.object({action:n.ProductListingAction(),description:a.string().allow(""),logo:n.Media(),name:a.string().allow(""),uid:a.number()})}static ProductBundle(){return a.object({items:a.array().items(n.ProductGroupingModel())})}static ProductCategoryMap(){return a.object({l1:n.ProductBrand(),l2:n.ProductBrand(),l3:n.ProductBrand()})}static ProductCompareResponse(){return a.object({attributes_metadata:a.array().items(n.AttributeMetadata()),items:a.array().items(n.ProductDetail()),subtitle:a.string().allow(""),title:a.string().allow("")})}static ProductDepartment(){return a.object({logo:n.Media(),name:a.string().allow(""),slug:a.string().allow(""),uid:a.number()})}static ProductDetail(){return a.object({_custom_json:a.any(),_custom_meta:a.array().items(n.CustomMetaFields()),action:n.ProductListingAction(),attributes:a.any(),brand:n.ProductBrand(),categories:a.array().items(n.ProductBrand()),category_map:n.ProductCategoryMap(),color:a.string().allow(""),custom_order:n.ProductDetailCustomOrder(),department:n.ProductDepartment(),description:a.string().allow(""),discount:a.string().allow(""),grouped_attributes:a.array().items(n.ProductDetailGroupedAttribute()),has_variant:a.boolean(),highlights:a.array().items(a.string().allow("")),image_nature:a.string().allow(""),is_dependent:a.boolean(),item_code:a.string().allow(""),item_type:a.string().allow(""),medias:a.array().items(n.Media()),moq:n.ApplicationItemMOQ(),name:a.string().allow(""),net_quantity:n.NetQuantity(),price:n.ProductListingPrice(),product_group_tag:a.array().items(a.string().allow("")),product_online_date:a.string().allow(""),rating:a.number(),rating_count:a.number(),seo:n.ApplicationItemSEO(),short_description:a.string().allow(""),similars:a.array().items(a.string().allow("")),slug:a.string().allow("").required(),tags:a.array().items(a.string().allow("")),teaser_tag:a.string().allow(""),tryouts:a.array().items(a.string().allow("")),type:a.string().allow(""),uid:a.number()})}static ProductDetailAttribute(){return a.object({key:a.string().allow(""),type:a.string().allow(""),value:a.string().allow("")})}static ProductDetailCustomOrder(){return a.object({is_custom_order:a.boolean(),manufacturing_time:a.number(),manufacturing_time_unit:a.string().allow("")})}static ProductDetailGroupedAttribute(){return a.object({details:a.array().items(n.ProductDetailAttribute()),title:a.string().allow("")})}static ProductDetails(){return a.object({attributes:a.any(),brand_uid:a.number(),country_of_origin:a.any(),description:a.any(),grouped_attributes:a.any(),has_variant:a.boolean(),highlights:a.array().items(a.any()),hsn_code:a.number(),identifier:a.any(),image_nature:a.any(),images:a.array().items(a.any()),is_set:a.boolean(),item_code:a.any(),media:a.array().items(a.any()),name:a.any(),out_of_stock:a.boolean(),rating:a.number(),rating_count:a.number(),short_description:a.any(),slug:a.any(),template_tag:a.any()})}static ProductFilters(){return a.object({key:n.ProductFiltersKey().required(),values:a.array().items(n.ProductFiltersValue()).required()})}static ProductFiltersKey(){return a.object({display:a.string().allow("").required(),kind:a.string().allow(""),logo:a.string().allow(""),name:a.string().allow("").required()})}static ProductFiltersValue(){return a.object({count:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),display:a.string().allow("").required(),display_format:a.string().allow(""),is_selected:a.boolean().required(),max:a.number(),min:a.number(),query_format:a.string().allow(""),selected_max:a.number(),selected_min:a.number(),value:a.string().allow("")})}static ProductFrequentlyComparedSimilarResponse(){return a.object({similars:n.ProductCompareResponse()})}static ProductGroupingModel(){return a.object({_id:a.any(),choice:a.any(),company_id:a.number(),created_by:n.UserDetail(),created_on:a.string().allow("").required(),is_active:a.boolean(),logo:a.string().allow("").allow(null),meta:a.any(),modified_by:n.UserDetail(),modified_on:a.string().allow("").required(),name:a.any().required(),page_visibility:a.array().items(a.any()),products:a.array().items(n.ProductInGroup()).required(),same_store_assignment:a.boolean(),slug:a.any(),verified_by:n.UserDetail(),verified_on:a.string().allow("")})}static ProductGroupPrice(){return a.object({currency:a.any(),max_effective:a.number(),max_marked:a.number(),min_effective:a.number(),min_marked:a.number()})}static ProductInGroup(){return a.object({allow_remove:a.boolean(),auto_add_to_cart:a.boolean(),auto_select:a.boolean(),max_quantity:a.number().required(),min_quantity:a.number(),price:n.ProductGroupPrice(),product_details:n.ProductDetails(),product_uid:a.number().required(),sizes:a.array().items(n.Size())})}static ProductListingAction(){return a.object({page:n.ProductListingActionPage(),type:a.string().allow("")})}static ProductListingActionPage(){return a.object({params:a.any(),query:a.any(),type:a.string().allow("")})}static ProductListingDetail(){return a.object({_custom_json:a.any(),_custom_meta:a.array().items(n.CustomMetaFields()),action:n.ProductListingAction(),attributes:a.any(),brand:n.ProductBrand(),categories:a.array().items(n.ProductBrand()),category_map:n.ProductCategoryMap(),color:a.string().allow(""),custom_order:n.ProductDetailCustomOrder(),description:a.string().allow(""),discount:a.string().allow(""),grouped_attributes:a.array().items(n.ProductDetailGroupedAttribute()),has_variant:a.boolean(),highlights:a.array().items(a.string().allow("")),identifiers:a.array().items(a.string().allow("")),image_nature:a.string().allow(""),is_dependent:a.boolean(),item_code:a.string().allow(""),item_type:a.string().allow(""),medias:a.array().items(n.Media()),moq:n.ApplicationItemMOQ(),name:a.string().allow(""),net_quantity:n.NetQuantity(),price:n.ProductListingPrice(),product_group_tag:a.array().items(a.string().allow("")),product_online_date:a.string().allow(""),rating:a.number(),rating_count:a.number(),sellable:a.boolean(),seo:n.ApplicationItemSEO(),short_description:a.string().allow(""),similars:a.array().items(a.string().allow("")),sizes:a.array().items(a.string().allow("")),slug:a.string().allow("").required(),tags:a.array().items(a.string().allow("")),teaser_tag:a.string().allow(""),tryouts:a.array().items(a.string().allow("")),type:a.string().allow(""),uid:a.number(),variants:a.array().items(n.ProductVariantListingResponse())})}static ProductListingPrice(){return a.object({effective:n.Price(),marked:n.Price()})}static ProductListingResponse(){return a.object({filters:a.array().items(n.ProductFilters()),items:a.array().items(n.ProductListingDetail()),page:n.Page().required(),sort_on:a.array().items(n.ProductSortOn())})}static ProductsComparisonResponse(){return a.object({attributes_metadata:a.array().items(n.AttributeMetadata()),items:a.array().items(n.ProductDetail())})}static ProductSetDistributionSizeV3(){return a.object({pieces:a.number(),size:a.string().allow("")})}static ProductSetDistributionV3(){return a.object({sizes:a.array().items(n.ProductSetDistributionSizeV3())})}static ProductSetV3(){return a.object({quantity:a.number(),size_distribution:n.ProductSetDistributionV3()})}static ProductSize(){return a.object({dimension:n.Dimension(),display:a.string().allow(""),is_available:a.boolean(),quantity:a.number(),seller_identifiers:a.array().items(a.string().allow("")),value:a.string().allow(""),weight:n.Weight()})}static ProductSizePriceResponseV3(){return a.object({article_assignment:n.ArticleAssignmentV3(),article_id:a.string().allow(""),delivery_promise:n.PromiseSchema(),discount:a.string().allow(""),discount_meta:n.DiscountMeta(),grouped_attributes:a.array().items(n.SellerGroupAttributes()),is_cod:a.boolean(),is_gift:a.boolean(),item_type:a.string().allow(""),long_lat:a.array().items(a.number()),marketplace_attributes:a.array().items(n.MarketPlaceSttributesSchemaV3()),pincode:a.number(),price:n.ProductStockPriceV3(),price_per_piece:n.ProductStockPriceV3(),price_per_unit:n.ProductStockUnitPriceV3(),quantity:a.number(),return_config:n.ReturnConfigSchemaV3(),seller:n.SellerV3(),seller_count:a.number(),set:n.ProductSetV3(),special_badge:a.string().allow(""),store:n.StoreV3(),strategy_wise_listing:a.array().items(n.StrategyWiseListingSchemaV3())})}static ProductSizes(){return a.object({discount:a.string().allow(""),discount_meta:n.DiscountMeta(),multi_size:a.boolean(),price:n.ProductSizesPrice(),sellable:a.boolean(),size_chart:n.SizeChart(),sizes:a.array().items(n.ProductSize()),stores:n.ProductSizeStores()})}static ProductSizeSellerFilterSchemaV3(){return a.object({is_selected:a.boolean(),name:a.string().allow(""),value:a.string().allow("")})}static ProductSizeSellersResponseV3(){return a.object({items:a.array().items(n.ProductSizePriceResponseV3()),page:n.Page().required(),sort_on:a.array().items(n.ProductSizeSellerFilterSchemaV3())})}static ProductSizesPrice(){return a.object({effective:n.Price(),marked:n.Price(),selling:n.Price()})}static ProductSizeStores(){return a.object({count:a.number()})}static ProductSortOn(){return a.object({display:a.string().allow(""),is_selected:a.boolean(),logo:a.string().allow(""),name:a.string().allow(""),value:a.string().allow("")})}static ProductStockPolling(){return a.object({items:a.array().items(n.ProductStockStatusItem()),page:n.Page().required()})}static ProductStockPrice(){return a.object({currency:a.string().allow(""),effective:a.number(),marked:a.number()})}static ProductStockPriceV3(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),effective:a.number(),marked:a.number(),selling:a.number()})}static ProductStockStatusItem(){return a.object({company:n.CompanyDetail(),identifier:a.any(),item_id:a.number(),price:n.ProductStockPrice(),quantity:a.number(),seller:n.Seller(),size:a.string().allow(""),store:n.StoreDetail(),uid:a.string().allow("")})}static ProductStockStatusResponse(){return a.object({items:a.array().items(n.ProductStockStatusItem())})}static ProductStockUnitPriceV3(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),price:a.number(),unit:a.string().allow("")})}static ProductVariantItemResponse(){return a.object({_custom_meta:a.array().items(n.CustomMetaFields()),action:n.ProductListingAction(),color:a.string().allow(""),color_name:a.string().allow(""),is_available:a.boolean(),medias:a.array().items(n.Media()),name:a.string().allow(""),slug:a.string().allow(""),uid:a.number(),value:a.string().allow("")})}static ProductVariantListingResponse(){return a.object({display_type:a.string().allow(""),header:a.string().allow(""),items:a.array().items(n.ProductVariantItemResponse()),key:a.string().allow(""),total:a.number()})}static ProductVariantResponse(){return a.object({display_type:a.string().allow(""),header:a.string().allow(""),items:a.array().items(n.ProductVariantItemResponse()),key:a.string().allow("")})}static ProductVariantsResponse(){return a.object({variants:a.array().items(n.ProductVariantResponse())})}static PromiseSchema(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static ReturnConfigSchemaV3(){return a.object({returnable:a.boolean(),time:a.number(),unit:a.string().allow("")})}static SecondLevelChild(){return a.object({_custom_json:a.any(),action:n.ProductListingAction(),banners:n.ImageUrls(),childs:a.array().items(n.ThirdLevelChild()),name:a.string().allow(""),slug:a.string().allow(""),uid:a.number()})}static Seller(){return a.object({count:a.number(),name:a.string().allow(""),uid:a.number()})}static SellerGroupAttributes(){return a.object({details:a.array().items(n.DetailsSchemaV3()),title:a.string().allow("")})}static SellerPhoneNumber(){return a.object({country_code:a.number().required(),number:a.string().allow("").required()})}static SellerV3(){return a.object({count:a.number(),name:a.string().allow(""),uid:a.number()})}static Size(){return a.object({display:a.any(),is_available:a.boolean(),quantity:a.number(),value:a.any()})}static SizeChart(){return a.object({description:a.string().allow(""),headers:n.ColumnHeaders(),image:a.string().allow(""),size_tip:a.string().allow(""),sizes:a.array().items(n.SizeChartValues()),title:a.string().allow(""),unit:a.string().allow("")})}static SizeChartValues(){return a.object({col_1:a.string().allow(""),col_2:a.string().allow(""),col_3:a.string().allow(""),col_4:a.string().allow(""),col_5:a.string().allow(""),col_6:a.string().allow("")})}static Store(){return a.object({address:a.string().allow(""),city:a.string().allow(""),country:a.string().allow(""),lat_long:n.LatLong(),name:a.string().allow(""),pincode:a.number(),state:a.string().allow(""),store_code:a.string().allow(""),store_email:a.string().allow(""),uid:a.number()})}static StoreAddressSerializer(){return a.object({address1:a.string().allow(""),address2:a.string().allow(""),city:a.string().allow(""),country:a.string().allow(""),landmark:a.string().allow(""),latitude:a.number(),longitude:a.number(),pincode:a.number(),state:a.string().allow("")})}static StoreDepartments(){return a.object({logo:a.any(),name:a.string().allow(""),priority_order:a.number(),slug:a.string().allow(""),uid:a.number()})}static StoreDetail(){return a.object({city:a.string().allow(""),code:a.string().allow(""),id:a.number(),name:a.string().allow("")})}static StoreDetails(){return a.object({_custom_json:a.any(),address:n.StoreAddressSerializer(),company:n.CompanyStore(),contact_numbers:a.array().items(n.SellerPhoneNumber()),departments:a.array().items(n.StoreDepartments()),manager:n.StoreManagerSerializer(),name:a.string().allow(""),store_code:a.string().allow(""),timing:a.array().items(n.StoreTiming()),uid:a.number()})}static StoreListingResponse(){return a.object({items:a.array().items(n.Store()).required(),page:n.Page().required()})}static StoreManagerSerializer(){return a.object({email:a.string().allow(""),mobile_no:n.SellerPhoneNumber(),name:a.string().allow("")})}static StoreTiming(){return a.object({closing:n.Time(),open:a.boolean(),opening:n.Time(),weekday:a.string().allow("")})}static StoreV3(){return a.object({count:a.number(),name:a.string().allow(""),uid:a.number()})}static StrategyWiseListingSchemaV3(){return a.object({distance:a.number(),pincode:a.number(),quantity:a.number(),tat:a.number()})}static ThirdLevelChild(){return a.object({_custom_json:a.any(),action:n.ProductListingAction(),banners:n.ImageUrls(),childs:a.array().items(a.any()),name:a.string().allow(""),slug:a.string().allow(""),uid:a.number()})}static Time(){return a.object({hour:a.number(),minute:a.number()})}static UserDetail(){return a.object({contact:a.string().allow(""),super_user:a.boolean(),user_id:a.string().allow("").required(),username:a.string().allow("").required()})}static Weight(){return a.object({is_default:a.boolean().required(),shipping:a.number().required(),unit:a.string().allow("").required()})}}e.exports=n},3853:(e,t,r)=>{const a=r(2705);r(5761),e.exports=class{static followById(){return a.object({collectionType:a.string().allow("").required(),collectionId:a.string().allow("").required()}).required()}static getBrandDetailBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getBrands(){return a.object({department:a.string().allow(""),pageNo:a.number(),pageSize:a.number()})}static getCategories(){return a.object({department:a.string().allow("")})}static getCategoryDetailBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getCollectionDetailBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getCollectionItemsBySlug(){return a.object({slug:a.string().allow("").required(),f:a.string().allow(""),q:a.string().allow(""),filters:a.boolean(),sortOn:a.string().allow(""),pageId:a.string().allow(""),pageSize:a.number(),pageNo:a.number(),pageType:a.string().allow("")}).required()}static getCollections(){return a.object({pageNo:a.number(),pageSize:a.number(),tag:a.array().items(a.string().allow("")),q:a.string().allow("")})}static getComparedFrequentlyProductBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getDepartments(){return a.object({})}static getFollowIds(){return a.object({collectionType:a.string().allow("")})}static getFollowedListing(){return a.object({collectionType:a.string().allow("").required(),pageId:a.string().allow(""),pageSize:a.number()}).required()}static getFollowerCountById(){return a.object({collectionType:a.string().allow("").required(),collectionId:a.string().allow("").required()}).required()}static getHomeProducts(){return a.object({sortOn:a.string().allow(""),pageId:a.string().allow(""),pageSize:a.number()})}static getInStockLocations(){return a.object({pageNo:a.number(),pageSize:a.number(),q:a.string().allow(""),city:a.string().allow(""),range:a.number(),latitude:a.number(),longitude:a.number()})}static getLocationDetailsById(){return a.object({locationId:a.number().required()}).required()}static getProductBundlesBySlug(){return a.object({slug:a.string().allow(""),id:a.string().allow("")})}static getProductComparisonBySlugs(){return a.object({slug:a.array().items(a.string().allow("")).required()}).required()}static getProductDetailBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getProductPriceBySlug(){return a.object({slug:a.string().allow("").required(),size:a.string().allow("").required(),storeId:a.number(),pincode:a.string().allow(""),moq:a.number()}).required()}static getProductSellersBySlug(){return a.object({slug:a.string().allow("").required(),size:a.string().allow("").required(),pincode:a.string().allow(""),strategy:a.string().allow(""),pageNo:a.number(),pageSize:a.number()}).required()}static getProductSizesBySlug(){return a.object({slug:a.string().allow("").required(),storeId:a.number()}).required()}static getProductStockByIds(){return a.object({itemId:a.string().allow(""),alu:a.string().allow(""),skuCode:a.string().allow(""),ean:a.string().allow(""),upc:a.string().allow("")})}static getProductStockForTimeByIds(){return a.object({timestamp:a.string().allow("").required(),pageSize:a.number(),pageId:a.string().allow("")}).required()}static getProductVariantsBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getProducts(){return a.object({q:a.string().allow(""),f:a.string().allow(""),filters:a.boolean(),sortOn:a.string().allow(""),pageId:a.string().allow(""),pageSize:a.number(),pageNo:a.number(),pageType:a.string().allow("")})}static getSearchResults(){return a.object({q:a.string().allow("").required()}).required()}static getSimilarComparisonProductBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getStores(){return a.object({pageNo:a.number(),pageSize:a.number(),q:a.string().allow(""),city:a.string().allow(""),range:a.number(),latitude:a.number(),longitude:a.number()})}static unfollowById(){return a.object({collectionType:a.string().allow("").required(),collectionId:a.string().allow("").required()}).required()}}},737:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(9692)),i=r(1844),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getLocations:"/service/common/configuration/v1.0/location",searchApplication:"/service/common/configuration/v1.0/application/search-application"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getLocations({locationType:e,id:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getLocations().validate({locationType:e,id:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getLocations().validate({locationType:e,id:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Common > getLocations \n ${d}`});const p={};p.location_type=e,p.id=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getLocations,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.Locations().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Common > getLocations \n ${w}`}),g}async searchApplication({authorization:e,query:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.searchApplication().validate({authorization:e,query:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.searchApplication().validate({authorization:e,query:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Common > searchApplication \n ${d}`});const p={};p.query=t;const g={};g.authorization=e;const m=await a.execute(this._conf,"get",o({url:this._urls.searchApplication,params:{}}),p,void 0,{...g,...r},{responseHeaders:c});let w=m;c&&(w=m[0]);const{error:y}=i.ApplicationResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&l({level:"WARN",message:`Response Validation Warnnings for application > Common > searchApplication \n ${y}`}),m}}},1844:(e,t,r)=>{const a=r(2705);class n{static Application(){return a.object({__v:a.number(),_id:a.string().allow(""),app_type:a.string().allow(""),auth:n.ApplicationAuth(),banner:n.SecureUrl(),cache_ttl:a.number(),channel_type:a.string().allow(""),company_id:a.number(),cors:n.ApplicationCors(),created_at:a.string().allow(""),description:a.string().allow(""),domain:n.Domain(),domains:a.array().items(n.Domain()),favicon:n.SecureUrl(),is_active:a.boolean(),is_internal:a.boolean(),logo:n.SecureUrl(),meta:a.array().items(n.ApplicationMeta()),mobile_logo:n.SecureUrl(),name:a.string().allow(""),owner:a.string().allow(""),redirections:a.array().items(n.ApplicationRedirections()),token:a.string().allow(""),updated_at:a.string().allow(""),website:n.ApplicationWebsite()})}static ApplicationAuth(){return a.object({enabled:a.boolean()})}static ApplicationCors(){return a.object({domains:a.array().items(a.string().allow(""))})}static ApplicationMeta(){return a.object({name:a.string().allow(""),value:a.string().allow("")})}static ApplicationRedirections(){return a.object({redirect_from:a.string().allow(""),redirect_to:a.string().allow(""),type:a.string().allow("")})}static ApplicationResponse(){return a.object({application:n.Application()})}static ApplicationWebsite(){return a.object({basepath:a.string().allow(""),enabled:a.boolean()})}static BadRequest(){return a.object({message:a.string().allow("")})}static Domain(){return a.object({_id:a.string().allow(""),is_predefined:a.boolean(),is_primary:a.boolean(),is_shortlink:a.boolean(),name:a.string().allow(""),verified:a.boolean()})}static LocationCountry(){return a.object({__v:a.number(),_id:a.string().allow(""),capital:a.string().allow(""),country_code:a.string().allow(""),currency:a.string().allow(""),default_currency:n.LocationDefaultCurrency(),default_language:n.LocationDefaultLanguage(),iso2:a.string().allow(""),iso3:a.string().allow(""),latitude:a.string().allow(""),longitude:a.string().allow(""),name:a.string().allow(""),parent:a.string().allow(""),phone_code:a.string().allow(""),state_code:a.string().allow(""),type:a.string().allow(""),uid:a.number()})}static LocationDefaultCurrency(){return a.object({code:a.string().allow(""),name:a.string().allow(""),symbol:a.string().allow("")})}static LocationDefaultLanguage(){return a.object({code:a.string().allow(""),name:a.string().allow("")})}static Locations(){return a.object({items:a.array().items(n.LocationCountry())})}static NotFound(){return a.object({message:a.string().allow("")})}static SecureUrl(){return a.object({secure_url:a.string().allow("")})}}e.exports=n},9692:(e,t,r)=>{const a=r(2705);r(1844),e.exports=class{static getLocations(){return a.object({locationType:a.string().allow(""),id:a.string().allow("")})}static searchApplication(){return a.object({authorization:a.string().allow(""),query:a.string().allow("")})}}},4113:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(5471)),i=r(4752),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getCommunicationConsent:"/service/application/communication/v1.0/consent",upsertAppPushtoken:"/service/application/communication/v1.0/pn-token",upsertCommunicationConsent:"/service/application/communication/v1.0/consent"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getCommunicationConsent({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getCommunicationConsent().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getCommunicationConsent().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > Communication > getCommunicationConsent \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getCommunicationConsent,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.CommunicationConsent().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > Communication > getCommunicationConsent \n ${p}`}),u}async upsertAppPushtoken({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.upsertAppPushtoken().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.upsertAppPushtoken().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Communication > upsertAppPushtoken \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.upsertAppPushtoken,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.PushtokenRes().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Communication > upsertAppPushtoken \n ${g}`}),d}async upsertCommunicationConsent({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.upsertCommunicationConsent().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.upsertCommunicationConsent().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Communication > upsertCommunicationConsent \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.upsertCommunicationConsent,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.CommunicationConsentRes().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Communication > upsertCommunicationConsent \n ${g}`}),d}}},4752:(e,t,r)=>{const a=r(2705);class n{static BadRequestSchema(){return a.object({message:a.string().allow(""),status:a.string().allow("")})}static CommunicationConsent(){return a.object({app_id:a.string().allow(""),channels:n.CommunicationConsentChannels(),user_id:a.string().allow("")})}static CommunicationConsentChannels(){return a.object({email:n.CommunicationConsentChannelsEmail(),sms:n.CommunicationConsentChannelsSms(),whatsapp:n.CommunicationConsentChannelsWhatsapp()})}static CommunicationConsentChannelsEmail(){return a.object({display_name:a.string().allow(""),response:a.string().allow("")})}static CommunicationConsentChannelsSms(){return a.object({display_name:a.string().allow(""),response:a.string().allow("")})}static CommunicationConsentChannelsWhatsapp(){return a.object({country_code:a.string().allow(""),display_name:a.string().allow(""),phone_number:a.string().allow(""),response:a.string().allow("")})}static CommunicationConsentReq(){return a.object({action:a.string().allow(""),channel:a.string().allow(""),response:a.string().allow("")})}static CommunicationConsentRes(){return a.object({app_id:a.string().allow(""),channels:n.CommunicationConsentChannels(),user_id:a.string().allow("")})}static PushtokenReq(){return a.object({action:a.string().allow(""),bundle_identifier:a.string().allow(""),push_token:a.string().allow(""),type:a.string().allow(""),unique_device_id:a.string().allow("")})}static PushtokenRes(){return a.object({_id:a.string().allow(""),application_id:a.string().allow(""),bundle_identifier:a.string().allow(""),created_at:a.string().allow(""),expired_at:a.string().allow(""),platform:a.string().allow(""),push_token:a.string().allow(""),type:a.string().allow(""),unique_device_id:a.string().allow(""),updated_at:a.string().allow(""),user_id:a.string().allow("")})}}e.exports=n},5471:(e,t,r)=>{const a=r(2705),n=r(4752);e.exports=class{static getCommunicationConsent(){return a.object({})}static upsertAppPushtoken(){return a.object({body:n.PushtokenReq().required()}).required()}static upsertCommunicationConsent(){return a.object({body:n.CommunicationConsentReq().required()}).required()}}},5970:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=r(3589),i=r(473),l=r(4328),{Logger:c}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAppCurrencies:"/service/application/configuration/v1.0/currency",getAppStaffList:"/service/application/configuration/v1.0/staff/list",getAppStaffs:"/service/application/configuration/v1.0/staff",getApplication:"/service/application/configuration/v1.0/application",getBasicDetails:"/service/application/configuration/v1.0/detail",getContactInfo:"/service/application/configuration/v1.0/information",getCurrencies:"/service/application/configuration/v1.0/currencies",getCurrencyById:"/service/application/configuration/v1.0/currency/{id}",getFeatures:"/service/application/configuration/v1.0/feature",getIntegrationTokens:"/service/application/configuration/v1.0/token",getLanguages:"/service/application/configuration/v1.0/languages",getOrderingStoreCookie:"/service/application/configuration/v1.0/ordering-store/select",getOrderingStores:"/service/application/configuration/v1.0/ordering-store/stores",getOwnerInfo:"/service/application/configuration/v1.0/about",getStoreDetailById:"/service/application/configuration/v1.0/ordering-store/stores/{store_id}",removeOrderingStoreCookie:"/service/application/configuration/v1.0/ordering-store/select"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAppCurrencies({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getAppCurrencies().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getAppCurrencies().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getAppCurrencies \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getAppCurrencies,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.AppCurrencyResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getAppCurrencies \n ${p}`}),u}async getAppStaffList({pageNo:e,pageSize:t,orderIncent:r,orderingStore:s,user:u,userName:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.getAppStaffList().validate({pageNo:e,pageSize:t,orderIncent:r,orderingStore:s,user:u,userName:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=i.getAppStaffList().validate({pageNo:e,pageSize:t,orderIncent:r,orderingStore:s,user:u,userName:d},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getAppStaffList \n ${w}`});const y={};y.page_no=e,y.page_size=t,y.order_incent=r,y.ordering_store=s,y.user=u,y.user_name=d;const f=await a.execute(this._conf,"get",o({url:this._urls.getAppStaffList,params:{}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=l.AppStaffListResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getAppStaffList \n ${h}`}),f}getAppStaffListPaginator({pageSize:e,orderIncent:t,orderingStore:r,user:a,userName:n}={}){const o=new s;return o.setCallback((async()=>{o.nextId;const s=o.pageNo,i=await this.getAppStaffList({pageNo:s,pageSize:e,orderIncent:t,orderingStore:r,user:a,userName:n});return o.setPaginator({hasNext:!!i.page.has_next,nextId:i.page.next_id}),i}).bind(this)),o}async getAppStaffs({orderIncent:e,orderingStore:t,user:r,requestHeaders:s}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getAppStaffs().validate({orderIncent:e,orderingStore:t,user:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getAppStaffs().validate({orderIncent:e,orderingStore:t,user:r},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getAppStaffs \n ${p}`});const g={};g.order_incent=e,g.ordering_store=t,g.user=r;const m=await a.execute(this._conf,"get",o({url:this._urls.getAppStaffs,params:{}}),g,void 0,{...s},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=l.AppStaffResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getAppStaffs \n ${y}`}),m}async getApplication({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getApplication().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getApplication().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getApplication \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getApplication,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.Application().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getApplication \n ${p}`}),u}async getBasicDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getBasicDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getBasicDetails().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getBasicDetails \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getBasicDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.ApplicationDetail().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getBasicDetails \n ${p}`}),u}async getContactInfo({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getContactInfo().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getContactInfo().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getContactInfo \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getContactInfo,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.ApplicationInformation().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getContactInfo \n ${p}`}),u}async getCurrencies({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getCurrencies().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getCurrencies().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getCurrencies \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getCurrencies,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.CurrenciesResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getCurrencies \n ${p}`}),u}async getCurrencyById({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getCurrencyById().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getCurrencyById().validate({id:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getCurrencyById \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getCurrencyById,params:{id:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.Currency().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getCurrencyById \n ${g}`}),d}async getFeatures({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getFeatures().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getFeatures().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getFeatures \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getFeatures,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.AppFeatureResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getFeatures \n ${p}`}),u}async getIntegrationTokens({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getIntegrationTokens().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getIntegrationTokens().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getIntegrationTokens \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getIntegrationTokens,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.AppTokenResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getIntegrationTokens \n ${p}`}),u}async getLanguages({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getLanguages().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getLanguages().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getLanguages \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getLanguages,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.LanguageResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getLanguages \n ${p}`}),u}async getOrderingStoreCookie({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getOrderingStoreCookie().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getOrderingStoreCookie().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getOrderingStoreCookie \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getOrderingStoreCookie,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.SuccessMessageResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getOrderingStoreCookie \n ${g}`}),d}async getOrderingStores({pageNo:e,pageSize:t,q:r,requestHeaders:s}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getOrderingStores().validate({pageNo:e,pageSize:t,q:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getOrderingStores().validate({pageNo:e,pageSize:t,q:r},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getOrderingStores \n ${p}`});const g={};g.page_no=e,g.page_size=t,g.q=r;const m=await a.execute(this._conf,"get",o({url:this._urls.getOrderingStores,params:{}}),g,void 0,{...s},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=l.OrderingStores().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getOrderingStores \n ${y}`}),m}getOrderingStoresPaginator({pageSize:e,q:t}={}){const r=new s;return r.setCallback((async()=>{r.nextId;const a=r.pageNo,n=await this.getOrderingStores({pageNo:a,pageSize:e,q:t});return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getOwnerInfo({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getOwnerInfo().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getOwnerInfo().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getOwnerInfo \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getOwnerInfo,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.ApplicationAboutResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getOwnerInfo \n ${p}`}),u}async getStoreDetailById({storeId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getStoreDetailById().validate({storeId:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getStoreDetailById().validate({storeId:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getStoreDetailById \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getStoreDetailById,params:{storeId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.OrderingStore().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > getStoreDetailById \n ${g}`}),d}async removeOrderingStoreCookie({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.removeOrderingStoreCookie().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.removeOrderingStoreCookie().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > removeOrderingStoreCookie \n ${s}`});const u=await a.execute(this._conf,"delete",o({url:this._urls.removeOrderingStoreCookie,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.SuccessMessageResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Configuration > removeOrderingStoreCookie \n ${p}`}),u}}},4328:(e,t,r)=>{const a=r(2705);class n{static Android(){return a.object({api_key:a.string().allow(""),application_id:a.string().allow("")})}static AppCurrencyResponse(){return a.object({application:a.string().allow(""),default_currency:n.DefaultCurrency(),supported_currency:a.array().items(n.Currency())})}static AppFeature(){return a.object({__v:a.number(),_id:a.string().allow(""),app:a.string().allow(""),cart:n.CartFeature(),common:n.CommonFeature(),created_at:a.string().allow(""),home_page:n.HomePageFeature(),landing_page:n.LandingPageFeature(),order:n.OrderFeature(),pcr:n.PcrFeature(),product_detail:n.ProductDetailFeature(),qr:n.QrFeature(),registration_page:n.RegistrationPageFeature(),updated_at:a.string().allow("")})}static AppFeatureResponse(){return a.object({feature:n.AppFeature()})}static Application(){return a.object({__v:a.number(),_id:a.string().allow(""),app_type:a.string().allow(""),auth:n.ApplicationAuth(),banner:n.SecureUrl(),cache_ttl:a.number(),channel_type:a.string().allow(""),company_id:a.number(),cors:n.ApplicationCors(),created_at:a.string().allow(""),description:a.string().allow(""),domain:n.Domain(),domains:a.array().items(n.Domain()),favicon:n.SecureUrl(),is_active:a.boolean(),is_internal:a.boolean(),logo:n.SecureUrl(),meta:a.array().items(n.ApplicationMeta()),mobile_logo:n.SecureUrl(),name:a.string().allow(""),owner:a.string().allow(""),redirections:a.array().items(n.ApplicationRedirections()),token:a.string().allow(""),updated_at:a.string().allow(""),website:n.ApplicationWebsite()})}static ApplicationAboutResponse(){return a.object({application_info:n.ApplicationInfo(),company_info:n.CompanyInfo(),owner_info:n.OwnerInfo()})}static ApplicationAuth(){return a.object({enabled:a.boolean()})}static ApplicationCors(){return a.object({domains:a.array().items(a.string().allow(""))})}static ApplicationDetail(){return a.object({_id:a.string().allow(""),banner:n.SecureUrl(),description:a.string().allow(""),domain:n.Domain(),domains:a.array().items(n.Domain()),favicon:n.SecureUrl(),logo:n.SecureUrl(),mobile_logo:n.SecureUrl(),name:a.string().allow("").required()})}static ApplicationInfo(){return a.object({_id:a.string().allow(""),banner:n.SecureUrl(),cors:n.ApplicationCors(),created_at:a.string().allow(""),description:a.string().allow(""),domain:n.Domain(),is_active:a.boolean(),logo:n.SecureUrl(),meta:n.ApplicationMeta(),name:a.string().allow(""),secret:a.string().allow(""),token:a.string().allow(""),website:n.ApplicationWebsite()})}static ApplicationInformation(){return a.object({__v:a.number(),_id:a.string().allow(""),address:n.InformationAddress(),application:a.string().allow(""),business_highlights:n.BusinessHighlights(),copyright_text:a.string().allow(""),created_at:a.string().allow(""),links:n.Links(),social_links:n.SocialLinks(),support:n.InformationSupport(),updated_at:a.string().allow("")})}static ApplicationMeta(){return a.object({name:a.string().allow(""),value:a.string().allow("")})}static ApplicationRedirections(){return a.object({redirect_from:a.string().allow(""),redirect_to:a.string().allow(""),type:a.string().allow("")})}static ApplicationWebsite(){return a.object({basepath:a.string().allow(""),enabled:a.boolean()})}static AppStaff(){return a.object({_id:a.string().allow(""),application:a.string().allow(""),employee_code:a.string().allow(""),first_name:a.string().allow(""),last_name:a.string().allow(""),order_incent:a.boolean(),profile_pic_url:a.string().allow(""),stores:a.array().items(a.number()),title:a.string().allow(""),user:a.string().allow("")})}static AppStaffListResponse(){return a.object({items:a.array().items(n.AppStaff()),page:n.Page()})}static AppStaffResponse(){return a.object({staff_users:a.array().items(n.AppStaff())})}static AppTokenResponse(){return a.object({__v:a.number(),_id:a.string().allow(""),application:a.string().allow(""),created_at:a.string().allow(""),tokens:n.Tokens(),updated_at:a.string().allow("")})}static BlogLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}static BusinessHighlights(){return a.object({_id:a.string().allow(""),icon:a.string().allow(""),sub_title:a.string().allow(""),title:a.string().allow("")})}static CartFeature(){return a.object({google_map:a.boolean(),gst_input:a.boolean(),placing_for_customer:a.boolean(),revenue_engine_coupon:a.boolean(),staff_selection:a.boolean()})}static CommonFeature(){return a.object({communication_optin_dialog:n.CommunicationOptinDialogFeature(),compare_products:n.CompareProductsFeature(),currency:n.CurrencyFeature(),deployment_store_selection:n.DeploymentStoreSelectionFeature(),feedback:n.FeedbackFeature(),listing_price:n.ListingPriceFeature(),revenue_engine:n.RevenueEngineFeature(),reward_points:n.RewardPointsConfig()})}static CommunicationOptinDialogFeature(){return a.object({visibility:a.boolean()})}static CompanyAboutAddress(){return a.object({address_type:a.string().allow(""),address1:a.string().allow(""),address2:a.string().allow(""),city:a.string().allow(""),country:a.string().allow(""),pincode:a.number(),state:a.string().allow("")})}static CompanyInfo(){return a.object({_id:a.string().allow(""),addresses:a.array().items(n.CompanyAboutAddress()),created_on:a.string().allow(""),is_active:a.boolean(),name:a.string().allow(""),notification_emails:a.array().items(a.string().allow("")),uid:a.number()})}static CompareProductsFeature(){return a.object({enabled:a.boolean()})}static Credentials(){return a.object({android:n.Android(),api_key:a.string().allow(""),application_id:a.string().allow(""),gcm_sender_id:a.string().allow(""),ios:n.Ios(),project_id:a.string().allow("")})}static Credit(){return a.object({enabled:a.boolean()})}static CurrenciesResponse(){return a.object({items:a.array().items(n.Currency())})}static Currency(){return a.object({_id:a.string().allow(""),code:a.string().allow(""),created_at:a.string().allow(""),decimal_digits:a.number(),is_active:a.boolean(),name:a.string().allow(""),symbol:a.string().allow(""),updated_at:a.string().allow("")})}static CurrencyFeature(){return a.object({default_currency:a.string().allow(""),type:a.string().allow(""),value:a.array().items(a.string().allow(""))})}static Debit(){return a.object({auto_apply:a.boolean(),enabled:a.boolean(),strategy_channel:a.string().allow("")})}static DefaultCurrency(){return a.object({code:a.string().allow(""),ref:a.string().allow("")})}static DeploymentStoreSelectionFeature(){return a.object({enabled:a.boolean(),type:a.string().allow("")})}static Domain(){return a.object({_id:a.string().allow(""),is_predefined:a.boolean(),is_primary:a.boolean(),is_shortlink:a.boolean(),name:a.string().allow(""),verified:a.boolean()})}static FacebookLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}static FeedbackFeature(){return a.object({enabled:a.boolean()})}static Firebase(){return a.object({credentials:n.Credentials(),enabled:a.boolean()})}static Freshchat(){return a.object({credentials:n.FreshchatCredentials(),enabled:a.boolean()})}static FreshchatCredentials(){return a.object({app_id:a.string().allow(""),app_key:a.string().allow(""),web_token:a.string().allow("")})}static FyndRewards(){return a.object({credentials:n.FyndRewardsCredentials()})}static FyndRewardsCredentials(){return a.object({public_key:a.string().allow("")})}static GoogleMap(){return a.object({credentials:n.GoogleMapCredentials()})}static GoogleMapCredentials(){return a.object({api_key:a.string().allow("")})}static GooglePlusLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}static Gtm(){return a.object({credentials:n.GtmCredentials(),enabled:a.boolean()})}static GtmCredentials(){return a.object({api_key:a.string().allow("")})}static HomePageFeature(){return a.object({order_processing:a.boolean()})}static InformationAddress(){return a.object({address_line:a.array().items(a.string().allow("")),city:a.string().allow(""),country:a.string().allow(""),loc:a.string().allow(""),phone:n.InformationPhone(),pincode:a.number()})}static InformationPhone(){return a.object({code:a.string().allow(""),number:a.string().allow("")})}static InformationSupport(){return a.object({email:a.array().items(a.string().allow("")),phone:a.array().items(a.string().allow("")),timing:a.string().allow("")})}static InstagramLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}static Ios(){return a.object({api_key:a.string().allow(""),application_id:a.string().allow("")})}static LandingPageFeature(){return a.object({continue_as_guest:a.boolean(),launch_page:n.LaunchPage(),login_btn_text:a.string().allow(""),show_domain_textbox:a.boolean(),show_register_btn:a.boolean()})}static LanguageResponse(){return a.object({items:a.array().items(n.SupportedLanguage())})}static LaunchPage(){return a.object({page_type:a.string().allow(""),params:a.any(),query:a.any()})}static LinkedInLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}static Links(){return a.object({link:a.string().allow(""),title:a.string().allow("")})}static ListingPriceFeature(){return a.object({sort:a.string().allow(""),value:a.string().allow("")})}static Moengage(){return a.object({credentials:n.MoengageCredentials(),enabled:a.boolean()})}static MoengageCredentials(){return a.object({app_id:a.string().allow("")})}static NotFound(){return a.object({message:a.string().allow("")})}static OptedStoreAddress(){return a.object({address1:a.string().allow(""),address2:a.string().allow(""),city:a.string().allow(""),country:a.string().allow(""),lat_long:n.StoreLatLong(),pincode:a.number(),state:a.string().allow("")})}static OrderFeature(){return a.object({buy_again:a.boolean()})}static OrderingStore(){return a.object({_id:a.string().allow(""),address:n.OptedStoreAddress(),code:a.string().allow(""),display_name:a.string().allow(""),name:a.string().allow(""),pincode:a.number(),store_code:a.string().allow(""),store_type:a.string().allow(""),uid:a.number()})}static OrderingStores(){return a.object({__v:a.number(),_id:a.string().allow(""),all_stores:a.boolean(),app:a.string().allow(""),deployed_stores:a.array().items(a.number()),enabled:a.boolean(),items:a.array().items(n.OrderingStore()),page:n.Page(),type:a.string().allow("")})}static OrderingStoreSelect(){return a.object({uid:a.number().required()})}static OrderingStoreSelectRequest(){return a.object({ordering_store:n.OrderingStoreSelect().required()})}static OwnerInfo(){return a.object({_id:a.string().allow(""),emails:a.array().items(n.UserEmail()),first_name:a.string().allow(""),last_name:a.string().allow(""),phone_numbers:a.array().items(n.UserPhoneNumber()),profile_pic:a.string().allow("")})}static Page(){return a.object({current:a.number(),has_next:a.boolean(),has_previous:a.boolean(),item_total:a.number(),next_id:a.string().allow(""),size:a.number(),type:a.string().allow("").required()})}static PcrFeature(){return a.object({staff_selection:a.boolean()})}static PinterestLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}static ProductDetailFeature(){return a.object({request_product:a.boolean(),seller_selection:a.boolean(),similar:a.array().items(a.string().allow("")),update_product_meta:a.boolean()})}static QrFeature(){return a.object({application:a.boolean(),collections:a.boolean(),products:a.boolean()})}static RegistrationPageFeature(){return a.object({ask_store_address:a.boolean()})}static RevenueEngineFeature(){return a.object({enabled:a.boolean()})}static RewardPointsConfig(){return a.object({credit:n.Credit(),debit:n.Debit()})}static Safetynet(){return a.object({credentials:n.SafetynetCredentials(),enabled:a.boolean()})}static SafetynetCredentials(){return a.object({api_key:a.string().allow("")})}static SecureUrl(){return a.object({secure_url:a.string().allow("")})}static Segment(){return a.object({credentials:n.SegmentCredentials(),enabled:a.boolean()})}static SegmentCredentials(){return a.object({write_key:a.string().allow("")})}static SocialLinks(){return a.object({blog_link:n.BlogLink(),facebook:n.FacebookLink(),google_plus:n.GooglePlusLink(),instagram:n.InstagramLink(),linked_in:n.LinkedInLink(),pinterest:n.PinterestLink(),twitter:n.TwitterLink(),vimeo:n.VimeoLink(),youtube:n.YoutubeLink()})}static StoreLatLong(){return a.object({coordinates:a.array().items(a.number()),type:a.string().allow("")})}static SuccessMessageResponse(){return a.object({message:a.string().allow("")})}static SupportedLanguage(){return a.object({code:a.string().allow(""),name:a.string().allow("")})}static Tokens(){return a.object({firebase:n.Firebase(),freshchat:n.Freshchat(),fynd_rewards:n.FyndRewards(),google_map:n.GoogleMap(),gtm:n.Gtm(),moengage:n.Moengage(),safetynet:n.Safetynet(),segment:n.Segment()})}static TwitterLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}static UnhandledError(){return a.object({message:a.string().allow("")})}static UserEmail(){return a.object({active:a.boolean(),email:a.string().allow(""),primary:a.boolean(),verified:a.boolean()})}static UserPhoneNumber(){return a.object({active:a.boolean(),country_code:a.number(),phone:a.string().allow(""),primary:a.boolean(),verified:a.boolean()})}static VimeoLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}static YoutubeLink(){return a.object({icon:a.string().allow(""),link:a.string().allow(""),title:a.string().allow("")})}}e.exports=n},473:(e,t,r)=>{const a=r(2705),n=r(4328);e.exports=class{static getAppCurrencies(){return a.object({})}static getAppStaffList(){return a.object({pageNo:a.number(),pageSize:a.number(),orderIncent:a.boolean(),orderingStore:a.number(),user:a.string().allow(""),userName:a.string().allow("")})}static getAppStaffs(){return a.object({orderIncent:a.boolean(),orderingStore:a.number(),user:a.string().allow("")})}static getApplication(){return a.object({})}static getBasicDetails(){return a.object({})}static getContactInfo(){return a.object({})}static getCurrencies(){return a.object({})}static getCurrencyById(){return a.object({id:a.string().allow("").required()}).required()}static getFeatures(){return a.object({})}static getIntegrationTokens(){return a.object({})}static getLanguages(){return a.object({})}static getOrderingStoreCookie(){return a.object({body:n.OrderingStoreSelectRequest().required()}).required()}static getOrderingStores(){return a.object({pageNo:a.number(),pageSize:a.number(),q:a.string().allow("")})}static getOwnerInfo(){return a.object({})}static getStoreDetailById(){return a.object({storeId:a.number().required()}).required()}static removeOrderingStoreCookie(){return a.object({})}}},4976:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=r(3589),i=r(8207),l=r(3377),{Logger:c}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAnnouncements:"/service/application/content/v1.0/announcements",getBlog:"/service/application/content/v1.0/blogs/{slug}",getBlogs:"/service/application/content/v1.0/blogs/",getDataLoaders:"/service/application/content/v1.0/data-loader",getFaqBySlug:"/service/application/content/v1.0/faq/{slug}",getFaqCategories:"/service/application/content/v1.0/faq/categories",getFaqCategoryBySlug:"/service/application/content/v1.0/faq/category/{slug}",getFaqs:"/service/application/content/v1.0/faq",getFaqsByCategorySlug:"/service/application/content/v1.0/faq/category/{slug}/faqs",getLandingPage:"/service/application/content/v1.0/landing-page",getLegalInformation:"/service/application/content/v1.0/legal",getNavigations:"/service/application/content/v1.0/navigations/",getPage:"/service/application/content/v2.0/pages/{slug}",getPages:"/service/application/content/v2.0/pages/",getSEOConfiguration:"/service/application/content/v1.0/seo",getSlideshow:"/service/application/content/v1.0/slideshow/{slug}",getSlideshows:"/service/application/content/v1.0/slideshow/",getSupportInformation:"/service/application/content/v1.0/support",getTags:"/service/application/content/v1.0/tags"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAnnouncements({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getAnnouncements().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getAnnouncements().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getAnnouncements \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getAnnouncements,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.AnnouncementsResponseSchema().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getAnnouncements \n ${p}`}),u}async getBlog({slug:e,rootId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getBlog().validate({slug:e,rootId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getBlog().validate({slug:e,rootId:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getBlog \n ${d}`});const p={};p.root_id=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getBlog,params:{slug:e}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.BlogSchema().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getBlog \n ${w}`}),g}async getBlogs({pageNo:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getBlogs().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getBlogs().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getBlogs \n ${d}`});const p={};p.page_no=e,p.page_size=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getBlogs,params:{}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.BlogGetResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getBlogs \n ${w}`}),g}getBlogsPaginator({pageSize:e}={}){const t=new s;return t.setCallback((async()=>{t.nextId;const r=t.pageNo,a=await this.getBlogs({pageNo:r,pageSize:e});return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getDataLoaders({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getDataLoaders().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getDataLoaders().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getDataLoaders \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getDataLoaders,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.DataLoadersSchema().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getDataLoaders \n ${p}`}),u}async getFaqBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getFaqBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getFaqBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getFaqBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.FaqSchema().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getFaqBySlug \n ${g}`}),d}async getFaqCategories({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getFaqCategories().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getFaqCategories().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqCategories \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getFaqCategories,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.GetFaqCategoriesSchema().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getFaqCategories \n ${p}`}),u}async getFaqCategoryBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getFaqCategoryBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getFaqCategoryBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqCategoryBySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getFaqCategoryBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.GetFaqCategoryBySlugSchema().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getFaqCategoryBySlug \n ${g}`}),d}async getFaqs({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getFaqs().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getFaqs().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqs \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getFaqs,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.FaqResponseSchema().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getFaqs \n ${p}`}),u}async getFaqsByCategorySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getFaqsByCategorySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getFaqsByCategorySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqsByCategorySlug \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getFaqsByCategorySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.GetFaqSchema().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getFaqsByCategorySlug \n ${g}`}),d}async getLandingPage({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getLandingPage().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getLandingPage().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getLandingPage \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getLandingPage,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.LandingPageSchema().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getLandingPage \n ${p}`}),u}async getLegalInformation({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getLegalInformation().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getLegalInformation().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getLegalInformation \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getLegalInformation,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.ApplicationLegal().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getLegalInformation \n ${p}`}),u}async getNavigations({pageNo:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getNavigations().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getNavigations().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getNavigations \n ${d}`});const p={};p.page_no=e,p.page_size=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getNavigations,params:{}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.NavigationGetResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getNavigations \n ${w}`}),g}getNavigationsPaginator({pageSize:e}={}){const t=new s;return t.setCallback((async()=>{t.nextId;const r=t.pageNo,a=await this.getNavigations({pageNo:r,pageSize:e});return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getPage({slug:e,rootId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getPage().validate({slug:e,rootId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getPage().validate({slug:e,rootId:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getPage \n ${d}`});const p={};p.root_id=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getPage,params:{slug:e}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.PageSchema().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getPage \n ${w}`}),g}async getPages({pageNo:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getPages().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getPages().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getPages \n ${d}`});const p={};p.page_no=e,p.page_size=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getPages,params:{}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.PageGetResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getPages \n ${w}`}),g}getPagesPaginator({pageSize:e}={}){const t=new s;return t.setCallback((async()=>{t.nextId;const r=t.pageNo,a=await this.getPages({pageNo:r,pageSize:e});return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getSEOConfiguration({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getSEOConfiguration().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getSEOConfiguration().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSEOConfiguration \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getSEOConfiguration,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.SeoComponent().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getSEOConfiguration \n ${p}`}),u}async getSlideshow({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getSlideshow().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getSlideshow().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSlideshow \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getSlideshow,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.SlideshowSchema().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getSlideshow \n ${g}`}),d}async getSlideshows({pageNo:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getSlideshows().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getSlideshows().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSlideshows \n ${d}`});const p={};p.page_no=e,p.page_size=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getSlideshows,params:{}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.SlideshowGetResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getSlideshows \n ${w}`}),g}getSlideshowsPaginator({pageSize:e}={}){const t=new s;return t.setCallback((async()=>{t.nextId;const r=t.pageNo,a=await this.getSlideshows({pageNo:r,pageSize:e});return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getSupportInformation({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getSupportInformation().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getSupportInformation().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSupportInformation \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getSupportInformation,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.Support().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getSupportInformation \n ${p}`}),u}async getTags({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getTags().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getTags().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Content > getTags \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getTags,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.TagsSchema().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Content > getTags \n ${p}`}),u}}},3377:(e,t,r)=>{const a=r(2705);class n{static Action(){return a.object({page:n.ActionPage(),popup:n.ActionPage(),type:a.string().allow("")})}static ActionPage(){return a.object({params:a.object().pattern(/\S/,a.array().items(a.string().allow(""))),query:a.object().pattern(/\S/,a.array().items(a.string().allow(""))),type:n.PageType().required(),url:a.string().allow("")})}static AnnouncementSchema(){return a.object({announcement:a.string().allow(""),schedule:n.ScheduleStartSchema()})}static AnnouncementsResponseSchema(){return a.object({announcements:a.object().pattern(/\S/,a.array().items(n.AnnouncementSchema())),refresh_pages:a.array().items(a.string().allow("")),refresh_rate:a.number()})}static ApplicationLegal(){return a.object({_id:a.string().allow(""),application:a.string().allow(""),created_at:a.string().allow(""),faq:a.array().items(n.ApplicationLegalFAQ()),policy:a.string().allow(""),returns:a.string().allow(""),shipping:a.string().allow(""),tnc:a.string().allow(""),updated_at:a.string().allow("")})}static ApplicationLegalFAQ(){return a.object({answer:a.string().allow(""),question:a.string().allow("")})}static Asset(){return a.object({aspect_ratio:a.string().allow(""),id:a.string().allow(""),secure_url:a.string().allow("")})}static Author(){return a.object({designation:a.string().allow(""),id:a.string().allow(""),name:a.string().allow("")})}static BlogGetResponse(){return a.object({items:a.array().items(n.BlogSchema()),page:n.Page()})}static BlogSchema(){return a.object({_custom_json:a.any(),_id:a.string().allow(""),_schedule:n.CronSchedule(),application:a.string().allow(""),archived:a.boolean(),author:n.Author(),content:a.array().items(n.ResourceContent()),date_meta:n.DateMeta(),feature_image:n.Asset(),published:a.boolean(),reading_time:a.string().allow(""),seo:n.SEO(),slug:a.string().allow(""),tags:a.array().items(a.string().allow("")),title:a.string().allow("")})}static CategorySchema(){return a.object({_custom_json:a.any(),_id:a.string().allow(""),application:a.string().allow(""),children:a.array().items(a.string().allow("")),description:a.string().allow(""),icon_url:a.string().allow(""),index:a.number(),slug:a.string().allow(""),title:a.string().allow("")})}static ChildrenSchema(){return a.object({_id:a.string().allow(""),answer:a.string().allow(""),application:a.string().allow(""),question:a.string().allow(""),slug:a.string().allow("")})}static CommonError(){return a.object({message:a.string().allow("")})}static ConfigurationSchema(){return a.object({duration:a.number(),sleep_time:a.number(),slide_direction:a.string().allow(""),start_on_launch:a.boolean()})}static ContactSchema(){return a.object({email:n.EmailSchema(),phone:n.PhoneSchema()})}static ContentAPIError(){return a.object({code:a.string().allow(""),exception:a.string().allow(""),info:a.string().allow(""),message:a.string().allow(""),meta:a.any(),request_id:a.string().allow(""),stack_trace:a.string().allow(""),status:a.number()})}static CreatedBySchema(){return a.object({id:a.string().allow("")})}static CronSchedule(){return a.object({cron:a.string().allow(""),duration:a.number(),end:a.string().allow(""),start:a.string().allow("")})}static CustomMetaTag(){return a.object({_id:a.string().allow(""),content:a.string().allow(""),name:a.string().allow("")})}static DataLoaderSchema(){return a.object({__source:n.DataLoaderSourceSchema(),_id:a.string().allow(""),content:a.string().allow(""),name:a.string().allow(""),operation_id:a.string().allow(""),service:a.string().allow(""),type:a.string().allow(""),url:a.string().allow("")})}static DataLoaderSourceSchema(){return a.object({id:a.string().allow(""),type:a.string().allow("")})}static DataLoadersSchema(){return a.object({items:a.array().items(n.DataLoaderSchema())})}static DateMeta(){return a.object({created_on:a.string().allow(""),modified_on:a.string().allow("")})}static Detail(){return a.object({description:a.string().allow(""),image_url:a.string().allow(""),title:a.string().allow("")})}static EmailProperties(){return a.object({key:a.string().allow(""),value:a.string().allow("")})}static EmailSchema(){return a.object({active:a.boolean(),email:a.array().items(n.EmailProperties())})}static FAQCategorySchema(){return a.object({_custom_json:a.any(),_id:a.string().allow(""),application:a.string().allow(""),children:a.array().items(n.ChildrenSchema()),description:a.string().allow(""),icon_url:a.string().allow(""),index:a.number(),slug:a.string().allow(""),title:a.string().allow("")})}static FaqResponseSchema(){return a.object({faqs:a.array().items(n.FaqSchema())})}static FaqSchema(){return a.object({_id:a.string().allow(""),answer:a.string().allow(""),application:a.string().allow(""),question:a.string().allow(""),slug:a.string().allow(""),tags:a.array().items(a.string().allow(""))})}static GetFaqCategoriesSchema(){return a.object({categories:a.array().items(n.CategorySchema())})}static GetFaqCategoryBySlugSchema(){return a.object({category:n.FAQCategorySchema()})}static GetFaqSchema(){return a.object({faqs:a.array().items(n.FaqSchema())})}static LandingPageSchema(){return a.object({_custom_json:a.any(),_id:a.string().allow(""),action:n.Action(),application:a.string().allow(""),archived:a.boolean(),created_by:n.CreatedBySchema(),date_meta:n.DateMeta(),platform:a.array().items(a.string().allow("")),slug:a.string().allow("")})}static Language(){return a.object({display:a.string().allow("")})}static LocaleLanguage(){return a.object({ar:n.Language(),en_us:n.Language(),hi:n.Language()})}static NavigationGetResponse(){return a.object({items:a.array().items(n.NavigationSchema()),page:n.Page()})}static NavigationReference(){return a.object({_locale_language:n.LocaleLanguage(),acl:a.array().items(a.string().allow("")),action:n.Action(),active:a.boolean(),display:a.string().allow(""),image:a.string().allow(""),sort_order:a.number(),sub_navigation:a.array().items(a.link("#NavigationReference")),tags:a.array().items(a.string().allow("")),type:a.string().allow("")}).id("NavigationReference")}static NavigationSchema(){return a.object({_id:a.string().allow(""),application:a.string().allow(""),archived:a.boolean(),created_by:n.CreatedBySchema(),date_meta:n.DateMeta(),name:a.string().allow(""),navigation:a.array().items(n.NavigationReference()),orientation:n.Orientation(),platform:a.array().items(a.string().allow("")),slug:a.string().allow(""),version:a.number()})}static NextSchedule(){return a.object({end:a.string().allow(""),start:a.string().allow("")})}static Orientation(){return a.object({landscape:a.array().items(a.string().allow("")),portrait:a.array().items(a.string().allow(""))})}static Page(){return a.object({current:a.number(),has_next:a.boolean(),has_previous:a.boolean(),item_total:a.number(),next_id:a.string().allow(""),size:a.number(),type:a.string().allow("").required()})}static PageGetResponse(){return a.object({items:a.array().items(n.PageSchema()),page:n.Page()})}static PageSchema(){return a.object({_custom_json:a.any(),_id:a.string().allow(""),_schedule:n.ScheduleSchema(),application:a.string().allow(""),archived:a.boolean(),component_ids:a.array().items(a.string().allow("")),content:a.array().items(a.any()),content_path:a.string().allow(""),created_by:n.CreatedBySchema(),date_meta:n.DateMeta(),description:a.string().allow(""),feature_image:n.Asset(),orientation:a.string().allow(""),page_meta:a.array().items(a.any()),platform:a.string().allow(""),published:a.boolean(),seo:n.SEO(),slug:a.string().allow(""),tags:a.array().items(a.string().allow("")),title:a.string().allow(""),type:a.string().allow(""),visibility:a.any()})}static PhoneProperties(){return a.object({code:a.string().allow(""),key:a.string().allow(""),number:a.string().allow("")})}static PhoneSchema(){return a.object({active:a.boolean(),phone:a.array().items(n.PhoneProperties())})}static ResourceContent(){return a.object({type:a.string().allow(""),value:a.string().allow("")})}static ScheduleSchema(){return a.object({cron:a.string().allow(""),duration:a.number(),end:a.string().allow(""),next_schedule:a.array().items(n.NextSchedule()),start:a.string().allow("")})}static ScheduleStartSchema(){return a.object({end:a.string().allow(""),start:a.string().allow("")})}static SEO(){return a.object({description:a.string().allow(""),image:n.SEOImage(),title:a.string().allow("")})}static SeoComponent(){return a.object({seo:n.SeoSchema()})}static SEOImage(){return a.object({url:a.string().allow("")})}static SeoSchema(){return a.object({_id:a.string().allow(""),app:a.string().allow(""),cannonical_enabled:a.boolean(),created_at:a.string().allow(""),custom_meta_tags:a.array().items(n.CustomMetaTag()),details:n.Detail(),robots_txt:a.string().allow(""),sitemap_enabled:a.boolean(),updated_at:a.string().allow("")})}static SlideshowGetResponse(){return a.object({items:a.array().items(n.SlideshowSchema()),page:n.Page()})}static SlideshowMedia(){return a.object({action:n.Action(),auto_decide_duration:a.boolean(),bg_color:a.string().allow(""),duration:a.number(),type:a.string().allow(""),url:a.string().allow("")})}static SlideshowSchema(){return a.object({_custom_json:a.any(),_id:a.string().allow(""),active:a.boolean(),application:a.string().allow(""),archived:a.boolean(),configuration:n.ConfigurationSchema(),date_meta:n.DateMeta(),media:a.array().items(n.SlideshowMedia()),platform:a.string().allow(""),slug:a.string().allow("")})}static Support(){return a.object({_id:a.string().allow(""),application:a.string().allow(""),config_type:a.string().allow(""),contact:n.ContactSchema(),created:a.boolean(),created_at:a.string().allow(""),updated_at:a.string().allow("")})}static TagSchema(){return a.object({__source:n.TagSourceSchema(),_id:a.string().allow(""),attributes:a.any(),content:a.string().allow(""),name:a.string().allow(""),pages:a.array().items(a.any()),position:a.string().allow(""),sub_type:a.string().allow(""),type:a.string().allow(""),url:a.string().allow("")})}static TagSourceSchema(){return a.object({id:a.string().allow(""),type:a.string().allow("")})}static TagsSchema(){return a.object({_id:a.string().allow(""),application:a.string().allow(""),tags:a.array().items(n.TagSchema())})}static PageType(){return a.string().valid("about-us","addresses","blog","brands","cards","cart","categories","brand","category","collection","collections","contact-us","external","faq","freshchat","home","notification-settings","orders","page","policy","product","product-request","products","profile","profile-order-shipment","profile-basic","profile-company","profile-emails","profile-phones","rate-us","refer-earn","settings","shared-cart","tnc","track-order","wishlist","sections","form","cart-delivery","cart-payment","cart-review","login","register","shipping-policy","return-policy","order-status")}}e.exports=n},8207:(e,t,r)=>{const a=r(2705);r(3377),e.exports=class{static getAnnouncements(){return a.object({})}static getBlog(){return a.object({slug:a.string().allow("").required(),rootId:a.string().allow("")}).required()}static getBlogs(){return a.object({pageNo:a.number(),pageSize:a.number()})}static getDataLoaders(){return a.object({})}static getFaqBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getFaqCategories(){return a.object({})}static getFaqCategoryBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getFaqs(){return a.object({})}static getFaqsByCategorySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getLandingPage(){return a.object({})}static getLegalInformation(){return a.object({})}static getNavigations(){return a.object({pageNo:a.number(),pageSize:a.number()})}static getPage(){return a.object({slug:a.string().allow("").required(),rootId:a.string().allow("")}).required()}static getPages(){return a.object({pageNo:a.number(),pageSize:a.number()})}static getSEOConfiguration(){return a.object({})}static getSlideshow(){return a.object({slug:a.string().allow("").required()}).required()}static getSlideshows(){return a.object({pageNo:a.number(),pageSize:a.number()})}static getSupportInformation(){return a.object({})}static getTags(){return a.object({})}}},8568:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(2601)),i=r(5108),{Logger:l}=r(7378),c=(r(2705),r(9669));class u{constructor(e){this._conf=e,this._relativeUrls={completeUpload:"/service/application/assets/v1.0/namespaces/{namespace}/upload/complete",signUrls:"/service/application/assets/v1.0/sign-urls",startUpload:"/service/application/assets/v1.0/namespaces/{namespace}/upload/start"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async completeUpload({namespace:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.completeUpload().validate({namespace:e,body:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.completeUpload().validate({namespace:e,body:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > FileStorage > completeUpload \n ${d}`});const p=await a.execute(this._conf,"post",o({url:this._urls.completeUpload,params:{namespace:e}}),{},t,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.CompleteResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > FileStorage > completeUpload \n ${m}`}),p}async signUrls({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.signUrls().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.signUrls().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > FileStorage > signUrls \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.signUrls,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.SignUrlResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > FileStorage > signUrls \n ${g}`}),d}async startUpload({namespace:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.startUpload().validate({namespace:e,body:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.startUpload().validate({namespace:e,body:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > FileStorage > startUpload \n ${d}`});const p=await a.execute(this._conf,"post",o({url:this._urls.startUpload,params:{namespace:e}}),{},t,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.StartResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > FileStorage > startUpload \n ${m}`}),p}}u.prototype.upload=function({data:e,file_name:t,content_type:r,namespace:a,size:n,tags:o}={}){return new Promise((async(s,i)=>{try{const l=await this.startUpload({namespace:a,body:{file_name:t,content_type:r,size:n,tags:o}});l.upload&&l.upload.url?await c.put(l.upload.url,e,{withCredentials:!1,headers:{"Content-Type":r}}):i({message:"Failed to upload file"}),delete l.tags,s(await this.completeUpload({namespace:a,body:l}))}catch(e){i(e)}}))},e.exports=u},5108:(e,t,r)=>{const a=r(2705);class n{static CDN(){return a.object({absolute_url:a.string().allow("").required(),relative_url:a.string().allow("").required(),url:a.string().allow("").required()})}static CompleteResponse(){return a.object({_id:a.string().allow("").required(),cdn:n.CDN().required(),content_type:a.string().allow("").required(),created_by:n.CreatedBy(),created_on:a.string().allow("").required(),file_name:a.string().allow("").required(),file_path:a.string().allow("").required(),modified_on:a.string().allow("").required(),namespace:a.string().allow("").required(),operation:a.string().allow("").required(),size:a.number().required(),success:a.boolean().required(),tags:a.array().items(a.string().allow("")),upload:n.Upload().required()})}static CreatedBy(){return a.object({username:a.string().allow("")})}static Params(){return a.object({subpath:a.string().allow("")})}static SignUrlRequest(){return a.object({expiry:a.number().required(),urls:a.array().items(a.string().allow("")).required()})}static SignUrlResponse(){return a.object({urls:a.array().items(n.Urls()).required()})}static StartRequest(){return a.object({content_type:a.string().allow("").required(),file_name:a.string().allow("").required(),params:n.Params(),size:a.number().required(),tags:a.array().items(a.string().allow(""))})}static StartResponse(){return a.object({cdn:n.CDN().required(),content_type:a.string().allow("").required(),file_name:a.string().allow("").required(),file_path:a.string().allow("").required(),method:a.string().allow(""),namespace:a.string().allow("").required(),operation:a.string().allow("").required(),size:a.number().required(),tags:a.array().items(a.string().allow("")),upload:n.Upload().required()})}static Upload(){return a.object({expiry:a.number().required(),url:a.string().allow("").required()})}static Urls(){return a.object({expiry:a.number().required(),signed_url:a.string().allow("").required(),url:a.string().allow("").required()})}}e.exports=n},2601:(e,t,r)=>{const a=r(2705),n=r(5108);e.exports=class{static completeUpload(){return a.object({namespace:a.string().allow("").required(),body:n.StartResponse().required()}).required()}static signUrls(){return a.object({body:n.SignUrlRequest().required()}).required()}static startUpload(){return a.object({namespace:a.string().allow("").required(),body:n.StartRequest().required()}).required()}}},562:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(2821)),i=r(4535),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={createHistory:"/service/application/lead/v1.0/ticket/{id}/history",createTicket:"/service/application/lead/v1.0/ticket/",getCustomForm:"/service/application/lead/v1.0/form/{slug}",getParticipantsInsideVideoRoom:"/service/application/lead/v1.0/video/room/{unique_name}/participants",getTicket:"/service/application/lead/v1.0/ticket/{id}",getTokenForVideoRoom:"/service/application/lead/v1.0/video/room/{unique_name}/token",submitCustomForm:"/service/application/lead/v1.0/form/{slug}/submit"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async createHistory({id:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.createHistory().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.createHistory().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Lead > createHistory \n ${d}`});const p=await a.execute(this._conf,"post",o({url:this._urls.createHistory,params:{id:e}}),{},t,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.TicketHistory().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Lead > createHistory \n ${m}`}),p}async createTicket({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.createTicket().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.createTicket().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Lead > createTicket \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.createTicket,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.Ticket().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Lead > createTicket \n ${g}`}),d}async getCustomForm({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getCustomForm().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getCustomForm().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Lead > getCustomForm \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getCustomForm,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.CustomForm().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Lead > getCustomForm \n ${g}`}),d}async getParticipantsInsideVideoRoom({uniqueName:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getParticipantsInsideVideoRoom().validate({uniqueName:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getParticipantsInsideVideoRoom().validate({uniqueName:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Lead > getParticipantsInsideVideoRoom \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getParticipantsInsideVideoRoom,params:{uniqueName:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.GetParticipantsInsideVideoRoomResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Lead > getParticipantsInsideVideoRoom \n ${g}`}),d}async getTicket({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getTicket().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getTicket().validate({id:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Lead > getTicket \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getTicket,params:{id:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.Ticket().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Lead > getTicket \n ${g}`}),d}async getTokenForVideoRoom({uniqueName:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getTokenForVideoRoom().validate({uniqueName:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getTokenForVideoRoom().validate({uniqueName:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Lead > getTokenForVideoRoom \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getTokenForVideoRoom,params:{uniqueName:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.GetTokenForVideoRoomResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Lead > getTokenForVideoRoom \n ${g}`}),d}async submitCustomForm({slug:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.submitCustomForm().validate({slug:e,body:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.submitCustomForm().validate({slug:e,body:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Lead > submitCustomForm \n ${d}`});const p=await a.execute(this._conf,"post",o({url:this._urls.submitCustomForm,params:{slug:e}}),{},t,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.SubmitCustomFormResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Lead > submitCustomForm \n ${m}`}),p}}},4535:(e,t,r)=>{const a=r(2705);class n{static AddTicketPayload(){return a.object({_custom_json:a.any(),category:a.string().allow("").required(),content:n.TicketContent().required(),created_by:a.any(),priority:n.PriorityEnum(),status:a.string().allow(""),subscribers:a.array().items(a.string().allow(""))})}static CreatedOn(){return a.object({user_agent:a.string().allow("").required()})}static CustomForm(){return a.object({_id:a.string().allow("").required(),application_id:a.string().allow("").required(),created_on:n.CreatedOn(),description:a.string().allow(""),header_image:a.string().allow(""),inputs:a.array().items(a.any()).required(),login_required:a.boolean().required(),poll_for_assignment:n.PollForAssignment(),priority:n.Priority().required(),should_notify:a.boolean().required(),slug:a.string().allow("").required(),submit_button:n.SubmitButton(),success_message:a.string().allow(""),title:a.string().allow("").required()})}static CustomFormSubmissionPayload(){return a.object({attachments:a.array().items(n.TicketAsset()),response:a.array().items(a.any()).required()})}static Debug(){return a.object({platform:a.string().allow(""),source:a.string().allow("")})}static Email(){return a.object({active:a.boolean(),email:a.string().allow(""),primary:a.boolean(),verified:a.boolean()})}static FeedbackForm(){return a.object({inputs:a.any(),timestamps:a.any(),title:a.string().allow("")})}static GetParticipantsInsideVideoRoomResponse(){return a.object({participants:a.array().items(n.Participant()).required()})}static GetTokenForVideoRoomResponse(){return a.object({access_token:a.string().allow("").required()})}static Participant(){return a.object({identity:a.string().allow(""),status:a.string().allow(""),user:n.UserSchema()})}static PhoneNumber(){return a.object({active:a.boolean(),country_code:a.number(),phone:a.string().allow(""),primary:a.boolean(),verified:a.boolean()})}static PollForAssignment(){return a.object({duration:a.number().required(),failure_message:a.string().allow("").required(),message:a.string().allow("").required(),success_message:a.string().allow("").required()})}static Priority(){return a.object({color:a.string().allow("").required(),display:a.string().allow("").required(),key:n.PriorityEnum().required()})}static Status(){return a.object({color:a.string().allow("").required(),display:a.string().allow("").required(),key:a.string().allow("").required()})}static SubmitButton(){return a.object({background_color:a.string().allow("").required(),title:a.string().allow("").required(),title_color:a.string().allow("").required()})}static SubmitCustomFormResponse(){return a.object({message:a.string().allow("").required(),ticket:n.Ticket()})}static Ticket(){return a.object({_custom_json:a.any(),_id:a.string().allow("").required(),assigned_to:a.any(),category:n.TicketCategory().required(),content:n.TicketContent(),context:n.TicketContext(),created_at:a.string().allow(""),created_by:a.any(),created_on:n.CreatedOn(),integration:a.any(),is_feedback_pending:a.boolean(),priority:n.Priority().required(),response_id:a.string().allow(""),source:n.TicketSourceEnum().required(),status:n.Status().required(),sub_category:a.string().allow(""),tags:a.array().items(a.string().allow("")),updated_at:a.string().allow("")})}static TicketAsset(){return a.object({display:a.string().allow(""),type:n.TicketAssetTypeEnum().required(),value:a.string().allow("").required()})}static TicketCategory(){return a.object({display:a.string().allow("").required(),feedback_form:n.FeedbackForm(),group_id:a.number(),key:a.string().allow("").required(),sub_categories:a.link("#TicketCategory")}).id("TicketCategory")}static TicketContent(){return a.object({attachments:a.array().items(n.TicketAsset()),description:a.string().allow(""),title:a.string().allow("").required()})}static TicketContext(){return a.object({application_id:a.string().allow(""),company_id:a.string().allow("").required()})}static TicketHistory(){return a.object({_id:a.string().allow("").required(),created_at:a.string().allow(""),created_by:a.any(),created_on:n.CreatedOn(),ticket_id:a.string().allow("").required(),type:a.string().allow("").required(),updated_at:a.string().allow(""),value:a.any().required()})}static TicketHistoryPayload(){return a.object({type:n.HistoryTypeEnum().required(),value:a.any().required()})}static UserSchema(){return a.object({_id:a.string().allow(""),account_type:a.string().allow(""),active:a.boolean(),application_id:a.string().allow(""),created_at:a.string().allow(""),dob:a.string().allow(""),emails:a.array().items(n.Email()),first_name:a.string().allow(""),gender:a.string().allow(""),last_name:a.string().allow(""),meta:a.any(),phone_numbers:a.array().items(n.PhoneNumber()),profile_pic_url:a.string().allow(""),updated_at:a.string().allow(""),user_id:a.string().allow(""),username:a.string().allow("")})}static HistoryTypeEnum(){return a.string().valid("rating","log","comment","thread")}static PriorityEnum(){return a.string().valid("low","medium","high","urgent")}static TicketAssetTypeEnum(){return a.string().valid("image","video","file","youtube","product","collection","brand","shipment","order")}static TicketSourceEnum(){return a.string().valid("platform_panel","sales_channel")}}e.exports=n},2821:(e,t,r)=>{const a=r(2705),n=r(4535);e.exports=class{static createHistory(){return a.object({id:a.string().allow("").required(),body:n.TicketHistoryPayload().required()}).required()}static createTicket(){return a.object({body:n.AddTicketPayload().required()}).required()}static getCustomForm(){return a.object({slug:a.string().allow("").required()}).required()}static getParticipantsInsideVideoRoom(){return a.object({uniqueName:a.string().allow("").required()}).required()}static getTicket(){return a.object({id:a.string().allow("").required()}).required()}static getTokenForVideoRoom(){return a.object({uniqueName:a.string().allow("").required()}).required()}static submitCustomForm(){return a.object({slug:a.string().allow("").required(),body:n.CustomFormSubmissionPayload().required()}).required()}}},4203:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(8745)),i=r(9541),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAllCountries:"/service/application/logistics/v1.0/country-list",getOptimalLocations:"/service/application/logistics/v1.0/reassign_stores",getPincodeCity:"/service/application/logistics/v1.0/pincode/{pincode}",getPincodeZones:"/service/application/logistics/v1.0/pincode/zones",getTatProduct:"/service/application/logistics/v1.0/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAllCountries({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getAllCountries().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getAllCountries().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getAllCountries \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getAllCountries,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.CountryListResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > Logistic > getAllCountries \n ${p}`}),u}async getOptimalLocations({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getOptimalLocations().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getOptimalLocations().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getOptimalLocations \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getOptimalLocations,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ReAssignStoreResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Logistic > getOptimalLocations \n ${g}`}),d}async getPincodeCity({pincode:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getPincodeCity().validate({pincode:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getPincodeCity().validate({pincode:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getPincodeCity \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getPincodeCity,params:{pincode:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.PincodeApiResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Logistic > getPincodeCity \n ${g}`}),d}async getPincodeZones({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getPincodeZones().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getPincodeZones().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getPincodeZones \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getPincodeZones,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.GetZoneFromPincodeViewResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Logistic > getPincodeZones \n ${g}`}),d}async getTatProduct({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getTatProduct().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getTatProduct().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getTatProduct \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getTatProduct,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.TATViewResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Logistic > getTatProduct \n ${g}`}),d}}},9541:(e,t,r)=>{const a=r(2705);class n{static CountryEntityResponse(){return a.object({display_name:a.string().allow(""),is_active:a.boolean(),logistics:n.LogisticsResponse(),meta:n.CountryMetaResponse(),name:a.string().allow(""),parent_id:a.string().allow(""),sub_type:a.string().allow(""),type:a.string().allow(""),uid:a.string().allow("")})}static CountryListResponse(){return a.object({results:a.array().items(n.CountryEntityResponse())})}static CountryMetaResponse(){return a.object({country_code:a.string().allow(""),isd_code:a.string().allow("")})}static DP(){return a.object({area_code:a.string().allow("").allow(null),assign_dp_from_sb:a.boolean(),external_account_id:a.string().allow("").allow(null),fm_priority:a.number().required(),internal_account_id:a.string().allow(""),lm_priority:a.number().required(),operations:a.array().items(a.string().allow("")).required(),payment_mode:a.string().allow("").required(),rvp_priority:a.number().required(),transport_mode:a.string().allow("")})}static GetZoneFromPincodeViewRequest(){return a.object({country:a.string().allow("").required(),pincode:a.string().allow("").required()})}static GetZoneFromPincodeViewResponse(){return a.object({serviceability_type:a.string().allow("").required(),zones:a.array().items(a.string().allow("")).required()})}static LogisticsResponse(){return a.object({dp:a.object().pattern(/\S/,n.DP())})}static PincodeApiResponse(){return a.object({data:a.array().items(n.PincodeDataResponse()),error:n.PincodeErrorSchemaResponse().required(),success:a.boolean().required()})}static PincodeDataResponse(){return a.object({display_name:a.string().allow(""),error:n.PincodeErrorSchemaResponse().required(),lat_long:n.PincodeLatLongData(),meta:n.PincodeMetaResponse(),meta_code:n.CountryMetaResponse(),name:a.string().allow(""),parents:a.array().items(n.PincodeParentsResponse()),sub_type:a.string().allow(""),uid:a.string().allow("")})}static PincodeErrorSchemaResponse(){return a.object({message:a.string().allow("").allow(null),type:a.string().allow("").allow(null),value:a.string().allow("").allow(null)})}static PincodeLatLongData(){return a.object({coordinates:a.array().items(a.string().allow("")),type:a.string().allow("")})}static PincodeMetaResponse(){return a.object({internal_zone_id:a.number(),zone:a.string().allow("")})}static PincodeParentsResponse(){return a.object({display_name:a.string().allow(""),name:a.string().allow(""),sub_type:a.string().allow(""),uid:a.string().allow("")})}static ReAssignStoreRequest(){return a.object({articles:a.array().items(a.any()).required(),configuration:a.any().required(),identifier:a.string().allow("").required(),ignored_locations:a.array().items(a.number()).required(),to_pincode:a.string().allow("").required()})}static ReAssignStoreResponse(){return a.object({assigned_stores:a.array().items(a.any()),error:a.any().required(),pystormbreaker_uuid:a.string().allow("").required(),success:a.boolean().required(),to_pincode:a.string().allow("").required()})}static TATArticlesRequest(){return a.object({category:n.TATCategoryRequest(),manufacturing_time:a.number(),manufacturing_time_unit:a.string().allow("")})}static TATArticlesResponse(){return a.object({_manufacturing_time_seconds:a.number(),category:n.TATCategoryRequest(),error:n.TATErrorSchemaResponse(),is_cod_available:a.boolean(),manufacturing_time:a.number(),manufacturing_time_unit:a.string().allow(""),promise:n.TATPromiseResponse()})}static TATCategoryRequest(){return a.object({id:a.number(),level:a.string().allow("")})}static TATErrorSchemaResponse(){return a.object({message:a.string().allow("").allow(null),type:a.string().allow("").allow(null),value:a.string().allow("").allow(null)})}static TATFormattedResponse(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static TATLocationDetailsRequest(){return a.object({articles:a.array().items(n.TATArticlesRequest()),from_pincode:a.string().allow(""),fulfillment_id:a.number()})}static TATLocationDetailsResponse(){return a.object({articles:a.array().items(n.TATArticlesResponse()),from_pincode:a.string().allow(""),fulfillment_id:a.number()})}static TATPromiseResponse(){return a.object({formatted:n.TATFormattedResponse(),timestamp:n.TATTimestampResponse()})}static TATTimestampResponse(){return a.object({max:a.number(),min:a.number()})}static TATViewRequest(){return a.object({action:a.string().allow(""),identifier:a.string().allow(""),journey:a.string().allow(""),location_details:a.array().items(n.TATLocationDetailsRequest()),source:a.string().allow(""),to_pincode:a.string().allow("")})}static TATViewResponse(){return a.object({action:a.string().allow(""),error:n.TATErrorSchemaResponse(),identifier:a.string().allow(""),is_cod_available:a.boolean(),journey:a.string().allow(""),location_details:a.array().items(n.TATLocationDetailsResponse()),payment_mode:a.string().allow(""),request_uuid:a.string().allow(""),source:a.string().allow(""),stormbreaker_uuid:a.string().allow(""),success:a.boolean(),to_city:a.string().allow(""),to_pincode:a.string().allow("")})}}e.exports=n},8745:(e,t,r)=>{const a=r(2705),n=r(9541);e.exports=class{static getAllCountries(){return a.object({})}static getOptimalLocations(){return a.object({body:n.ReAssignStoreRequest().required()}).required()}static getPincodeCity(){return a.object({pincode:a.string().allow("").required()}).required()}static getPincodeZones(){return a.object({body:n.GetZoneFromPincodeViewRequest().required()}).required()}static getTatProduct(){return a.object({body:n.TATViewRequest().required()}).required()}}},9171:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(8174)),i=r(2453),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getCustomerDetailsByShipmentId:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/customer-details",getInvoiceByShipmentId:"/service/application/order/v1.0/orders/shipments/{shipment_id}/invoice",getOrderById:"/service/application/order/v1.0/orders/{order_id}",getOrders:"/service/application/order/v1.0/orders",getPosOrderById:"/service/application/order/v1.0/orders/pos-order/{order_id}",getShipmentBagReasons:"/service/application/order/v1.0/orders/shipments/{shipment_id}/bags/{bag_id}/reasons",getShipmentById:"/service/application/order/v1.0/orders/shipments/{shipment_id}",getShipmentReasons:"/service/application/order/v1.0/orders/shipments/{shipment_id}/reasons",sendOtpToShipmentCustomer:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/otp/send/",trackShipment:"/service/application/order/v1.0/orders/shipments/{shipment_id}/track",updateShipmentStatus:"/service/application/order/v1.0/orders/shipments/{shipment_id}/status",verifyOtpShipmentCustomer:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/otp/verify/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getCustomerDetailsByShipmentId({orderId:e,shipmentId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getCustomerDetailsByShipmentId().validate({orderId:e,shipmentId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getCustomerDetailsByShipmentId().validate({orderId:e,shipmentId:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > getCustomerDetailsByShipmentId \n ${d}`});const p=await a.execute(this._conf,"get",o({url:this._urls.getCustomerDetailsByShipmentId,params:{orderId:e,shipmentId:t}}),{},void 0,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.CustomerDetailsResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > getCustomerDetailsByShipmentId \n ${m}`}),p}async getInvoiceByShipmentId({shipmentId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getInvoiceByShipmentId().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getInvoiceByShipmentId().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > getInvoiceByShipmentId \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getInvoiceByShipmentId,params:{shipmentId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ResponseGetInvoiceShipment().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > getInvoiceByShipmentId \n ${g}`}),d}async getOrderById({orderId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getOrderById().validate({orderId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getOrderById().validate({orderId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > getOrderById \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getOrderById,params:{orderId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.OrderById().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > getOrderById \n ${g}`}),d}async getOrders({status:e,pageNo:t,pageSize:r,fromDate:c,toDate:u,customMeta:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.getOrders().validate({status:e,pageNo:t,pageSize:r,fromDate:c,toDate:u,customMeta:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.getOrders().validate({status:e,pageNo:t,pageSize:r,fromDate:c,toDate:u,customMeta:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > getOrders \n ${w}`});const y={};y.status=e,y.page_no=t,y.page_size=r,y.from_date=c,y.to_date=u,y.custom_meta=d;const f=await a.execute(this._conf,"get",o({url:this._urls.getOrders,params:{}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.OrderList().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > getOrders \n ${h}`}),f}async getPosOrderById({orderId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getPosOrderById().validate({orderId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getPosOrderById().validate({orderId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > getPosOrderById \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getPosOrderById,params:{orderId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.OrderById().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > getPosOrderById \n ${g}`}),d}async getShipmentBagReasons({shipmentId:e,bagId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getShipmentBagReasons().validate({shipmentId:e,bagId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getShipmentBagReasons().validate({shipmentId:e,bagId:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > getShipmentBagReasons \n ${d}`});const p=await a.execute(this._conf,"get",o({url:this._urls.getShipmentBagReasons,params:{shipmentId:e,bagId:t}}),{},void 0,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.ShipmentBagReasons().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > getShipmentBagReasons \n ${m}`}),p}async getShipmentById({shipmentId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getShipmentById().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getShipmentById().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > getShipmentById \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getShipmentById,params:{shipmentId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ShipmentById().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > getShipmentById \n ${g}`}),d}async getShipmentReasons({shipmentId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getShipmentReasons().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getShipmentReasons().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > getShipmentReasons \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getShipmentReasons,params:{shipmentId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ShipmentReasons().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > getShipmentReasons \n ${g}`}),d}async sendOtpToShipmentCustomer({orderId:e,shipmentId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.sendOtpToShipmentCustomer().validate({orderId:e,shipmentId:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.sendOtpToShipmentCustomer().validate({orderId:e,shipmentId:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > sendOtpToShipmentCustomer \n ${d}`});const p=await a.execute(this._conf,"post",o({url:this._urls.sendOtpToShipmentCustomer,params:{orderId:e,shipmentId:t}}),{},void 0,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.SendOtpToCustomerResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > sendOtpToShipmentCustomer \n ${m}`}),p}async trackShipment({shipmentId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.trackShipment().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.trackShipment().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > trackShipment \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.trackShipment,params:{shipmentId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ShipmentTrack().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > trackShipment \n ${g}`}),d}async updateShipmentStatus({shipmentId:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.updateShipmentStatus().validate({shipmentId:e,body:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.updateShipmentStatus().validate({shipmentId:e,body:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > updateShipmentStatus \n ${d}`});const p=await a.execute(this._conf,"put",o({url:this._urls.updateShipmentStatus,params:{shipmentId:e}}),{},t,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.ShipmentApplicationStatusResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > updateShipmentStatus \n ${m}`}),p}async verifyOtpShipmentCustomer({orderId:e,shipmentId:t,body:r,requestHeaders:c}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=s.verifyOtpShipmentCustomer().validate({orderId:e,shipmentId:t,body:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=s.verifyOtpShipmentCustomer().validate({orderId:e,shipmentId:t,body:r},{abortEarly:!1,allowUnknown:!1});p&&l({level:"WARN",message:`Parameter Validation warrnings for application > Order > verifyOtpShipmentCustomer \n ${p}`});const g=await a.execute(this._conf,"post",o({url:this._urls.verifyOtpShipmentCustomer,params:{orderId:e,shipmentId:t}}),{},r,{...c},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=i.VerifyOtpResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Order > verifyOtpShipmentCustomer \n ${w}`}),g}}},2453:(e,t,r)=>{const a=r(2705);class n{static ApefaceApiError(){return a.object({message:a.string().allow(""),success:a.boolean()})}static AppliedFreeArticles(){return a.object({article_id:a.string().allow(""),free_gift_item_details:a.any(),parent_item_identifier:a.string().allow(""),quantity:a.number()})}static AppliedPromos(){return a.object({amount:a.number(),applied_free_articles:a.array().items(n.AppliedFreeArticles()),article_quantity:a.number(),mrp_promotion:a.boolean(),promo_id:a.string().allow(""),promotion_name:a.string().allow(""),promotion_type:a.string().allow("")})}static BagReasonMeta(){return a.object({show_text_area:a.boolean()})}static BagReasons(){return a.object({display_name:a.string().allow(""),id:a.number(),meta:n.BagReasonMeta(),qc_type:a.array().items(a.string().allow("")),question_set:a.array().items(n.QuestionSet()),reasons:a.array().items(a.link("#BagReasons"))}).id("BagReasons")}static Bags(){return a.object({applied_promos:a.array().items(n.AppliedPromos()),can_cancel:a.boolean(),can_return:a.boolean(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),current_status:n.CurrentStatus(),delivery_date:a.string().allow("").allow(null),financial_breakup:a.array().items(n.FinancialBreakup()),id:a.number(),item:n.Item(),line_number:a.number(),meta:a.any(),parent_promo_bags:a.any(),prices:n.Prices(),quantity:a.number(),returnable_date:a.string().allow("").allow(null),seller_identifier:a.string().allow("")})}static BagsForReorder(){return a.object({article_assignment:n.BagsForReorderArticleAssignment(),item_id:a.number(),item_size:a.string().allow(""),quantity:a.number(),seller_id:a.number(),store_id:a.number()})}static BagsForReorderArticleAssignment(){return a.object({level:a.string().allow(""),strategy:a.string().allow("")})}static BreakupValues(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),display:a.string().allow(""),name:a.string().allow(""),value:a.number()})}static CurrentStatus(){return a.object({journey_type:a.string().allow("").allow(null),name:a.string().allow(""),status:a.string().allow(""),updated_at:a.string().allow("")})}static CustomerDetailsResponse(){return a.object({country:a.string().allow(""),name:a.string().allow(""),order_id:a.string().allow(""),phone:a.string().allow(""),shipment_id:a.string().allow("")})}static DataUpdates(){return a.object({entities:a.array().items(n.EntitiesDataUpdates()),products:a.array().items(n.ProductsDataUpdates())})}static DeliveryAddress(){return a.object({address:a.string().allow(""),address_category:a.string().allow(""),address_type:a.string().allow(""),address1:a.string().allow(""),address2:a.string().allow(""),area:a.string().allow(""),city:a.string().allow(""),contact_person:a.string().allow(""),country:a.string().allow(""),country_iso_code:a.string().allow(""),country_phone_code:a.string().allow(""),created_at:a.string().allow(""),email:a.string().allow(""),landmark:a.string().allow(""),latitude:a.number().allow(null),longitude:a.number().allow(null),name:a.string().allow(""),phone:a.string().allow(""),pincode:a.string().allow(""),state:a.string().allow(""),updated_at:a.string().allow(""),version:a.string().allow("")})}static EntitiesDataUpdates(){return a.object({data:a.any(),filters:a.array().items(a.any())})}static EntitiesReasons(){return a.object({data:n.EntityReasonData(),filters:a.array().items(a.any())})}static EntityReasonData(){return a.object({reason_id:a.number(),reason_text:a.string().allow("")})}static ErrorResponse(){return a.object({code:a.string().allow("").allow(null),exception:a.string().allow("").allow(null),message:a.string().allow("").allow(null),stack_trace:a.string().allow("").allow(null),status:a.number()})}static FinancialBreakup(){return a.object({added_to_fynd_cash:a.boolean(),amount_paid:a.number(),amount_paid_roundoff:a.number(),brand_calculated_amount:a.number(),cashback:a.number(),cashback_applied:a.number(),cod_charges:a.number(),coupon_effective_discount:a.number(),coupon_value:a.number(),delivery_charge:a.number(),discount:a.number(),fynd_credits:a.number(),gst_fee:a.number(),gst_tag:a.string().allow(""),gst_tax_percentage:a.number(),hsn_code:a.string().allow(""),identifiers:n.Identifiers(),item_name:a.string().allow(""),price_effective:a.number(),price_marked:a.number(),promotion_effective_discount:a.number(),refund_amount:a.number(),refund_credit:a.number(),size:a.string().allow(""),total_units:a.number(),transfer_price:a.number(),value_of_good:a.number()})}static FulfillingCompany(){return a.object({id:a.number(),name:a.string().allow("")})}static FulfillingStore(){return a.object({code:a.string().allow(""),company_id:a.number(),company_name:a.string().allow(""),id:a.number(),name:a.string().allow("")})}static Identifiers(){return a.object({ean:a.string().allow(""),sku_code:a.string().allow("")})}static Invoice(){return a.object({invoice_url:a.string().allow(""),label_url:a.string().allow(""),updated_date:a.string().allow("")})}static Item(){return a.object({brand:n.ItemBrand(),code:a.string().allow(""),id:a.number(),image:a.array().items(a.string().allow("")),l1_categories:a.array().items(a.string().allow("")),l2_categories:a.array().items(a.string().allow("")),l3_category_name:a.string().allow(""),name:a.string().allow(""),seller_identifier:a.string().allow(""),size:a.string().allow(""),slug_key:a.string().allow("")})}static ItemBrand(){return a.object({logo:a.string().allow(""),name:a.string().allow("")})}static NestedTrackingDetails(){return a.object({is_current:a.boolean(),is_passed:a.boolean(),status:a.string().allow(""),time:a.string().allow("")})}static OrderById(){return a.object({order:n.OrderSchema()})}static OrderFilters(){return a.object({statuses:a.array().items(n.OrderStatuses())})}static OrderList(){return a.object({filters:n.OrderFilters(),items:a.array().items(n.OrderSchema()),page:n.OrderPage()})}static OrderPage(){return a.object({current:a.number(),has_next:a.boolean(),item_total:a.number(),size:a.number(),type:a.string().allow("")})}static OrderSchema(){return a.object({bags_for_reorder:a.array().items(n.BagsForReorder()),breakup_values:a.array().items(n.BreakupValues()),order_created_time:a.string().allow(""),order_id:a.string().allow(""),shipments:a.array().items(n.Shipments()),total_shipments_in_order:a.number(),user_info:n.UserInfo()})}static OrderStatuses(){return a.object({display:a.string().allow(""),is_selected:a.boolean(),value:a.number()})}static Prices(){return a.object({added_to_fynd_cash:a.boolean(),amount_paid:a.number(),amount_paid_roundoff:a.number(),brand_calculated_amount:a.number(),cashback:a.number(),cashback_applied:a.number(),cod_charges:a.number(),coupon_effective_discount:a.number(),coupon_value:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),delivery_charge:a.number(),discount:a.number(),fynd_credits:a.number(),gst_tax_percentage:a.number(),price_effective:a.number(),price_marked:a.number(),promotion_effective_discount:a.number(),refund_amount:a.number(),refund_credit:a.number(),transfer_price:a.number(),value_of_good:a.number()})}static Products(){return a.object({identifier:a.string().allow(""),line_number:a.number(),quantity:a.number()})}static ProductsDataUpdates(){return a.object({data:a.any(),filters:a.array().items(n.ProductsDataUpdatesFilters())})}static ProductsDataUpdatesFilters(){return a.object({identifier:a.string().allow(""),line_number:a.number()})}static ProductsReasons(){return a.object({data:n.ProductsReasonsData(),filters:a.array().items(n.ProductsReasonsFilters())})}static ProductsReasonsData(){return a.object({reason_id:a.number(),reason_text:a.string().allow("")})}static ProductsReasonsFilters(){return a.object({identifier:a.string().allow(""),line_number:a.number(),quantity:a.number()})}static Promise(){return a.object({show_promise:a.boolean(),timestamp:n.TimeStampData()})}static QuestionSet(){return a.object({display_name:a.string().allow(""),id:a.number()})}static ReasonsData(){return a.object({entities:a.array().items(n.EntitiesReasons()),products:a.array().items(n.ProductsReasons())})}static ResponseGetInvoiceShipment(){return a.object({presigned_type:a.string().allow("").required(),presigned_url:a.string().allow("").required(),shipment_id:a.string().allow("").required(),success:a.boolean().required()})}static SendOtpToCustomerResponse(){return a.object({message:a.string().allow(""),request_id:a.string().allow(""),resend_timer:a.number(),success:a.boolean()})}static ShipmentApplicationStatusResponse(){return a.object({statuses:a.array().items(n.StatusesBodyResponse())})}static ShipmentBagReasons(){return a.object({reasons:a.array().items(n.BagReasons()),success:a.boolean()})}static ShipmentById(){return a.object({shipment:n.Shipments()})}static ShipmentPayment(){return a.object({display_name:a.string().allow(""),logo:a.string().allow(""),mode:a.string().allow(""),mop:a.string().allow(""),payment_mode:a.string().allow(""),status:a.string().allow("")})}static ShipmentReason(){return a.object({feedback_type:a.string().allow(""),flow:a.string().allow(""),priority:a.number(),reason_id:a.number(),reason_text:a.string().allow(""),show_text_area:a.boolean()})}static ShipmentReasons(){return a.object({reasons:a.array().items(n.ShipmentReason())})}static Shipments(){return a.object({awb_no:a.string().allow(""),bags:a.array().items(n.Bags()),beneficiary_details:a.boolean(),breakup_values:a.array().items(n.BreakupValues()),can_break:a.any(),can_cancel:a.boolean(),can_return:a.boolean(),comment:a.string().allow(""),custom_meta:a.array().items(a.any()),delivery_address:n.DeliveryAddress(),delivery_date:a.string().allow("").allow(null),dp_name:a.string().allow(""),fulfilling_company:n.FulfillingCompany(),fulfilling_store:n.FulfillingStore(),invoice:n.Invoice(),need_help_url:a.string().allow(""),order_id:a.string().allow(""),order_type:a.string().allow("").allow(null),payment:n.ShipmentPayment(),prices:n.Prices(),promise:n.Promise(),refund_details:a.any(),return_meta:a.any(),returnable_date:a.string().allow("").allow(null),shipment_created_at:a.string().allow(""),shipment_id:a.string().allow(""),shipment_status:n.ShipmentStatus(),show_download_invoice:a.boolean(),show_track_link:a.boolean(),size_info:a.any(),total_bags:a.number(),total_details:n.ShipmentTotalDetails(),track_url:a.string().allow(""),tracking_details:a.array().items(n.TrackingDetails()),traking_no:a.string().allow(""),user_info:n.ShipmentUserInfo()})}static ShipmentsRequest(){return a.object({data_updates:n.DataUpdates(),identifier:a.string().allow("").required(),products:a.array().items(n.Products()),reasons:n.ReasonsData()})}static ShipmentStatus(){return a.object({hex_code:a.string().allow(""),title:a.string().allow(""),value:a.string().allow("").allow(null)})}static ShipmentTotalDetails(){return a.object({pieces:a.number(),sizes:a.number(),total_price:a.number()})}static ShipmentTrack(){return a.object({results:a.array().items(n.Track())})}static ShipmentUserInfo(){return a.object({email:a.string().allow(""),first_name:a.string().allow(""),gender:a.string().allow(""),last_name:a.string().allow(""),mobile:a.string().allow(""),name:a.string().allow("")})}static StatuesRequest(){return a.object({exclude_bags_next_state:a.string().allow(""),shipments:a.array().items(n.ShipmentsRequest()),status:a.string().allow("")})}static StatusesBodyResponse(){return a.object({shipments:a.array().items(a.any())})}static TimeStampData(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static Track(){return a.object({account_name:a.string().allow(""),awb:a.string().allow(""),last_location_recieved_at:a.string().allow(""),reason:a.string().allow(""),shipment_type:a.string().allow(""),status:a.string().allow(""),updated_at:a.string().allow(""),updated_time:a.string().allow("")})}static TrackingDetails(){return a.object({is_current:a.boolean(),is_passed:a.boolean(),status:a.string().allow(""),time:a.string().allow(""),tracking_details:a.array().items(n.NestedTrackingDetails()),value:a.string().allow("").allow(null)})}static UpdateShipmentStatusRequest(){return a.object({force_transition:a.boolean(),lock_after_transition:a.boolean(),statuses:a.array().items(n.StatuesRequest()),task:a.boolean(),unlock_before_transition:a.boolean()})}static UserInfo(){return a.object({email:a.string().allow(""),first_name:a.string().allow(""),gender:a.string().allow(""),last_name:a.string().allow(""),mobile:a.string().allow(""),name:a.string().allow("")})}static VerifyOtp(){return a.object({otp_code:a.string().allow(""),request_id:a.string().allow("")})}static VerifyOtpResponse(){return a.object({success:a.boolean()})}}e.exports=n},8174:(e,t,r)=>{const a=r(2705),n=r(2453);e.exports=class{static getCustomerDetailsByShipmentId(){return a.object({orderId:a.string().allow("").required(),shipmentId:a.string().allow("").required()}).required()}static getInvoiceByShipmentId(){return a.object({shipmentId:a.string().allow("").required()}).required()}static getOrderById(){return a.object({orderId:a.string().allow("").required()}).required()}static getOrders(){return a.object({status:a.number(),pageNo:a.number(),pageSize:a.number(),fromDate:a.string().allow(""),toDate:a.string().allow(""),customMeta:a.string().allow("")})}static getPosOrderById(){return a.object({orderId:a.string().allow("").required()}).required()}static getShipmentBagReasons(){return a.object({shipmentId:a.string().allow("").required(),bagId:a.string().allow("").required()}).required()}static getShipmentById(){return a.object({shipmentId:a.string().allow("").required()}).required()}static getShipmentReasons(){return a.object({shipmentId:a.string().allow("").required()}).required()}static sendOtpToShipmentCustomer(){return a.object({orderId:a.string().allow("").required(),shipmentId:a.string().allow("").required()}).required()}static trackShipment(){return a.object({shipmentId:a.string().allow("").required()}).required()}static updateShipmentStatus(){return a.object({shipmentId:a.string().allow("").required(),body:n.UpdateShipmentStatusRequest().required()}).required()}static verifyOtpShipmentCustomer(){return a.object({orderId:a.string().allow("").required(),shipmentId:a.string().allow("").required(),body:n.VerifyOtp().required()}).required()}}},3242:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(174)),i=r(8487),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addBeneficiaryDetails:"/service/application/payment/v1.0/refund/account",addRefundBankAccountUsingOTP:"/service/application/payment/v1.0/refund/account/otp",attachCardToCustomer:"/service/application/payment/v1.0/card/attach",cancelPaymentLink:"/service/application/payment/v1.0/cancel-payment-link/",cardDetails:"/service/application/payment/v1.0/cards/info/{card_info}",checkAndUpdatePaymentStatus:"/service/application/payment/v1.0/payment/confirm/polling",checkAndUpdatePaymentStatusPaymentLink:"/service/application/payment/v1.0/payment/confirm/polling/link/",checkCredit:"/service/application/payment/v1.0/check-credits/",createOrderHandlerPaymentLink:"/service/application/payment/v1.0/create-order/link/",createPaymentLink:"/service/application/payment/v1.0/create-payment-link/",customerCreditSummary:"/service/application/payment/v1.0/payment/credit-summary/",customerOnboard:"/service/application/payment/v1.0/credit-onboard/",deleteUserCard:"/service/application/payment/v1.0/card/remove",enableOrDisableRefundTransferMode:"/service/application/payment/v1.0/refund/transfer-mode",getActiveCardAggregator:"/service/application/payment/v1.0/card/aggregator",getActiveRefundTransferModes:"/service/application/payment/v1.0/refund/transfer-mode",getActiveUserCards:"/service/application/payment/v1.0/cards",getAggregatorsConfig:"/service/application/payment/v1.0/config/aggregators/key",getEpaylaterBannerDetails:"/service/application/payment/v1.0/epaylater/banner",getOrderBeneficiariesDetail:"/service/application/payment/v1.0/refund/order/beneficiaries",getPaymentLink:"/service/application/payment/v1.0/create-payment-link/",getPaymentModeRoutes:"/service/application/payment/v1.0/payment/options",getPaymentModeRoutesPaymentLink:"/service/application/payment/v1.0/payment/options/link/",getPosPaymentModeRoutes:"/service/application/payment/v1.0/payment/options/pos",getRupifiBannerDetails:"/service/application/payment/v1.0/rupifi/banner",getUserBeneficiariesDetail:"/service/application/payment/v1.0/refund/user/beneficiary",initialisePayment:"/service/application/payment/v1.0/payment/request",initialisePaymentPaymentLink:"/service/application/payment/v1.0/payment/request/link/",outstandingOrderDetails:"/service/application/payment/v1.0/payment/outstanding-orders/",paidOrderDetails:"/service/application/payment/v1.0/payment/paid-orders/",pollingPaymentLink:"/service/application/payment/v1.0/polling-payment-link/",redirectToAggregator:"/service/application/payment/v1.0/payment/redirect-to-aggregator/",renderHTML:"/service/application/payment/v1.0/payment/html/render/",resendOrCancelPayment:"/service/application/payment/v1.0/payment/resend_or_cancel",resendPaymentLink:"/service/application/payment/v1.0/resend-payment-link/",updateDefaultBeneficiary:"/service/application/payment/v1.0/refund/beneficiary/default",validateVPA:"/service/application/payment/v1.0/validate-vpa",verifyAndChargePayment:"/service/application/payment/v1.0/payment/confirm/charge",verifyCustomerForPayment:"/service/application/payment/v1.0/payment/customer/validation",verifyIfscCode:"/service/application/payment/v1.0/ifsc-code/verify",verifyOtpAndAddBeneficiaryForBank:"/service/application/payment/v1.0/refund/verification/bank",verifyOtpAndAddBeneficiaryForWallet:"/service/application/payment/v1.0/refund/verification/wallet"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addBeneficiaryDetails({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.addBeneficiaryDetails().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.addBeneficiaryDetails().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > addBeneficiaryDetails \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.addBeneficiaryDetails,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.RefundAccountResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > addBeneficiaryDetails \n ${g}`}),d}async addRefundBankAccountUsingOTP({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.addRefundBankAccountUsingOTP().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.addRefundBankAccountUsingOTP().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > addRefundBankAccountUsingOTP \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.addRefundBankAccountUsingOTP,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.RefundAccountResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > addRefundBankAccountUsingOTP \n ${g}`}),d}async attachCardToCustomer({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.attachCardToCustomer().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.attachCardToCustomer().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > attachCardToCustomer \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.attachCardToCustomer,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.AttachCardsResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > attachCardToCustomer \n ${g}`}),d}async cancelPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.cancelPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.cancelPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > cancelPaymentLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.cancelPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.CancelPaymentLinkResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > cancelPaymentLink \n ${g}`}),d}async cardDetails({cardInfo:e,aggregator:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.cardDetails().validate({cardInfo:e,aggregator:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.cardDetails().validate({cardInfo:e,aggregator:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > cardDetails \n ${d}`});const p={};p.aggregator=t;const g=await a.execute(this._conf,"get",o({url:this._urls.cardDetails,params:{cardInfo:e}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CardDetailsResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > cardDetails \n ${w}`}),g}async checkAndUpdatePaymentStatus({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.checkAndUpdatePaymentStatus().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.checkAndUpdatePaymentStatus().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > checkAndUpdatePaymentStatus \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.checkAndUpdatePaymentStatus,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.PaymentStatusUpdateResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > checkAndUpdatePaymentStatus \n ${g}`}),d}async checkAndUpdatePaymentStatusPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.checkAndUpdatePaymentStatusPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.checkAndUpdatePaymentStatusPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > checkAndUpdatePaymentStatusPaymentLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.checkAndUpdatePaymentStatusPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.PaymentStatusUpdateResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > checkAndUpdatePaymentStatusPaymentLink \n ${g}`}),d}async checkCredit({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.checkCredit().validate({aggregator:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.checkCredit().validate({aggregator:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > checkCredit \n ${u}`});const d={};d.aggregator=e;const p=await a.execute(this._conf,"get",o({url:this._urls.checkCredit,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.CheckCreditResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > checkCredit \n ${m}`}),p}async createOrderHandlerPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.createOrderHandlerPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.createOrderHandlerPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > createOrderHandlerPaymentLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.createOrderHandlerPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.CreateOrderUserResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > createOrderHandlerPaymentLink \n ${g}`}),d}async createPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.createPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.createPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > createPaymentLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.createPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.CreatePaymentLinkResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > createPaymentLink \n ${g}`}),d}async customerCreditSummary({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.customerCreditSummary().validate({aggregator:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.customerCreditSummary().validate({aggregator:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > customerCreditSummary \n ${u}`});const d={};d.aggregator=e;const p=await a.execute(this._conf,"get",o({url:this._urls.customerCreditSummary,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.CustomerCreditSummaryResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > customerCreditSummary \n ${m}`}),p}async customerOnboard({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.customerOnboard().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.customerOnboard().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > customerOnboard \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.customerOnboard,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.CustomerOnboardingResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > customerOnboard \n ${g}`}),d}async deleteUserCard({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.deleteUserCard().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.deleteUserCard().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > deleteUserCard \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.deleteUserCard,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.DeleteCardsResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > deleteUserCard \n ${g}`}),d}async enableOrDisableRefundTransferMode({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.enableOrDisableRefundTransferMode().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.enableOrDisableRefundTransferMode().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > enableOrDisableRefundTransferMode \n ${u}`});const d=await a.execute(this._conf,"put",o({url:this._urls.enableOrDisableRefundTransferMode,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.UpdateRefundTransferModeResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > enableOrDisableRefundTransferMode \n ${g}`}),d}async getActiveCardAggregator({refresh:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getActiveCardAggregator().validate({refresh:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getActiveCardAggregator().validate({refresh:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getActiveCardAggregator \n ${u}`});const d={};d.refresh=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getActiveCardAggregator,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.ActiveCardPaymentGatewayResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getActiveCardAggregator \n ${m}`}),p}async getActiveRefundTransferModes({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getActiveRefundTransferModes().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getActiveRefundTransferModes().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getActiveRefundTransferModes \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getActiveRefundTransferModes,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.TransferModeResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getActiveRefundTransferModes \n ${p}`}),u}async getActiveUserCards({forceRefresh:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getActiveUserCards().validate({forceRefresh:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getActiveUserCards().validate({forceRefresh:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getActiveUserCards \n ${u}`});const d={};d.force_refresh=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getActiveUserCards,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.ListCardsResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getActiveUserCards \n ${m}`}),p}async getAggregatorsConfig({xApiToken:e,refresh:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getAggregatorsConfig().validate({xApiToken:e,refresh:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getAggregatorsConfig().validate({xApiToken:e,refresh:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getAggregatorsConfig \n ${d}`});const p={};p.refresh=t;const g={};g["x-api-token"]=e;const m=await a.execute(this._conf,"get",o({url:this._urls.getAggregatorsConfig,params:{}}),p,void 0,{...g,...r},{responseHeaders:c});let w=m;c&&(w=m[0]);const{error:y}=i.AggregatorsConfigDetailResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getAggregatorsConfig \n ${y}`}),m}async getEpaylaterBannerDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getEpaylaterBannerDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getEpaylaterBannerDetails().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getEpaylaterBannerDetails \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getEpaylaterBannerDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.EpaylaterBannerResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getEpaylaterBannerDetails \n ${p}`}),u}async getOrderBeneficiariesDetail({orderId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getOrderBeneficiariesDetail().validate({orderId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getOrderBeneficiariesDetail().validate({orderId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getOrderBeneficiariesDetail \n ${u}`});const d={};d.order_id=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getOrderBeneficiariesDetail,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.OrderBeneficiaryResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getOrderBeneficiariesDetail \n ${m}`}),p}async getPaymentLink({paymentLinkId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getPaymentLink \n ${u}`});const d={};d.payment_link_id=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getPaymentLink,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.GetPaymentLinkResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getPaymentLink \n ${m}`}),p}async getPaymentModeRoutes({amount:e,cartId:t,pincode:r,checkoutMode:c,refresh:u,cardReference:d,userDetails:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=s.getPaymentModeRoutes().validate({amount:e,cartId:t,pincode:r,checkoutMode:c,refresh:u,cardReference:d,userDetails:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:y}=s.getPaymentModeRoutes().validate({amount:e,cartId:t,pincode:r,checkoutMode:c,refresh:u,cardReference:d,userDetails:p},{abortEarly:!1,allowUnknown:!1});y&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getPaymentModeRoutes \n ${y}`});const f={};f.amount=e,f.cart_id=t,f.pincode=r,f.checkout_mode=c,f.refresh=u,f.card_reference=d,f.user_details=p;const b=await a.execute(this._conf,"get",o({url:this._urls.getPaymentModeRoutes,params:{}}),f,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=i.PaymentModeRouteResponse().validate(h,{abortEarly:!1,allowUnknown:!1});return _&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getPaymentModeRoutes \n ${_}`}),b}async getPaymentModeRoutesPaymentLink({paymentLinkId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getPaymentModeRoutesPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getPaymentModeRoutesPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getPaymentModeRoutesPaymentLink \n ${u}`});const d={};d.payment_link_id=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getPaymentModeRoutesPaymentLink,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.PaymentModeRouteResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getPaymentModeRoutesPaymentLink \n ${m}`}),p}async getPosPaymentModeRoutes({amount:e,cartId:t,pincode:r,checkoutMode:c,orderType:u,refresh:d,cardReference:p,userDetails:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:y}=s.getPosPaymentModeRoutes().validate({amount:e,cartId:t,pincode:r,checkoutMode:c,orderType:u,refresh:d,cardReference:p,userDetails:g},{abortEarly:!1,allowUnknown:!0});if(y)return Promise.reject(new n(y));const{error:f}=s.getPosPaymentModeRoutes().validate({amount:e,cartId:t,pincode:r,checkoutMode:c,orderType:u,refresh:d,cardReference:p,userDetails:g},{abortEarly:!1,allowUnknown:!1});f&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getPosPaymentModeRoutes \n ${f}`});const b={};b.amount=e,b.cart_id=t,b.pincode=r,b.checkout_mode=c,b.refresh=d,b.card_reference=p,b.order_type=u,b.user_details=g;const h=await a.execute(this._conf,"get",o({url:this._urls.getPosPaymentModeRoutes,params:{}}),b,void 0,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=i.PaymentModeRouteResponse().validate(_,{abortEarly:!1,allowUnknown:!1});return v&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getPosPaymentModeRoutes \n ${v}`}),h}async getRupifiBannerDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getRupifiBannerDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getRupifiBannerDetails().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getRupifiBannerDetails \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getRupifiBannerDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.RupifiBannerResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getRupifiBannerDetails \n ${p}`}),u}async getUserBeneficiariesDetail({orderId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getUserBeneficiariesDetail().validate({orderId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getUserBeneficiariesDetail().validate({orderId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getUserBeneficiariesDetail \n ${u}`});const d={};d.order_id=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getUserBeneficiariesDetail,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.OrderBeneficiaryResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > getUserBeneficiariesDetail \n ${m}`}),p}async initialisePayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.initialisePayment().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.initialisePayment().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > initialisePayment \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.initialisePayment,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.PaymentInitializationResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > initialisePayment \n ${g}`}),d}async initialisePaymentPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.initialisePaymentPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.initialisePaymentPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > initialisePaymentPaymentLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.initialisePaymentPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.PaymentInitializationResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > initialisePaymentPaymentLink \n ${g}`}),d}async outstandingOrderDetails({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.outstandingOrderDetails().validate({aggregator:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.outstandingOrderDetails().validate({aggregator:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > outstandingOrderDetails \n ${u}`});const d={};d.aggregator=e;const p=await a.execute(this._conf,"get",o({url:this._urls.outstandingOrderDetails,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.OutstandingOrderDetailsResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > outstandingOrderDetails \n ${m}`}),p}async paidOrderDetails({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.paidOrderDetails().validate({aggregator:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.paidOrderDetails().validate({aggregator:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > paidOrderDetails \n ${u}`});const d={};d.aggregator=e;const p=await a.execute(this._conf,"get",o({url:this._urls.paidOrderDetails,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.PaidOrderDetailsResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > paidOrderDetails \n ${m}`}),p}async pollingPaymentLink({paymentLinkId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.pollingPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.pollingPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > pollingPaymentLink \n ${u}`});const d={};d.payment_link_id=e;const p=await a.execute(this._conf,"get",o({url:this._urls.pollingPaymentLink,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.PollingPaymentLinkResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > pollingPaymentLink \n ${m}`}),p}async redirectToAggregator({source:e,aggregator:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.redirectToAggregator().validate({source:e,aggregator:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.redirectToAggregator().validate({source:e,aggregator:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > redirectToAggregator \n ${d}`});const p={};p.source=e,p.aggregator=t;const g=await a.execute(this._conf,"get",o({url:this._urls.redirectToAggregator,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.RedirectToAggregatorResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > redirectToAggregator \n ${w}`}),g}async renderHTML({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.renderHTML().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.renderHTML().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > renderHTML \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.renderHTML,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.renderHTMLResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > renderHTML \n ${g}`}),d}async resendOrCancelPayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.resendOrCancelPayment().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.resendOrCancelPayment().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > resendOrCancelPayment \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.resendOrCancelPayment,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ResendOrCancelPaymentResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > resendOrCancelPayment \n ${g}`}),d}async resendPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.resendPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.resendPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > resendPaymentLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.resendPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ResendPaymentLinkResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > resendPaymentLink \n ${g}`}),d}async updateDefaultBeneficiary({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.updateDefaultBeneficiary().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.updateDefaultBeneficiary().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > updateDefaultBeneficiary \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.updateDefaultBeneficiary,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.SetDefaultBeneficiaryResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > updateDefaultBeneficiary \n ${g}`}),d}async validateVPA({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.validateVPA().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.validateVPA().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > validateVPA \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.validateVPA,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ValidateVPAResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > validateVPA \n ${g}`}),d}async verifyAndChargePayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.verifyAndChargePayment().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.verifyAndChargePayment().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyAndChargePayment \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.verifyAndChargePayment,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ChargeCustomerResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > verifyAndChargePayment \n ${g}`}),d}async verifyCustomerForPayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.verifyCustomerForPayment().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.verifyCustomerForPayment().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyCustomerForPayment \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.verifyCustomerForPayment,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ValidateCustomerResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > verifyCustomerForPayment \n ${g}`}),d}async verifyIfscCode({ifscCode:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.verifyIfscCode().validate({ifscCode:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.verifyIfscCode().validate({ifscCode:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyIfscCode \n ${u}`});const d={};d.ifsc_code=e;const p=await a.execute(this._conf,"get",o({url:this._urls.verifyIfscCode,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.IfscCodeResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > verifyIfscCode \n ${m}`}),p}async verifyOtpAndAddBeneficiaryForBank({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.verifyOtpAndAddBeneficiaryForBank().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.verifyOtpAndAddBeneficiaryForBank().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyOtpAndAddBeneficiaryForBank \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.verifyOtpAndAddBeneficiaryForBank,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.AddBeneficiaryViaOtpVerificationResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > verifyOtpAndAddBeneficiaryForBank \n ${g}`}),d}async verifyOtpAndAddBeneficiaryForWallet({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.verifyOtpAndAddBeneficiaryForWallet().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.verifyOtpAndAddBeneficiaryForWallet().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyOtpAndAddBeneficiaryForWallet \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.verifyOtpAndAddBeneficiaryForWallet,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.WalletOtpResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Payment > verifyOtpAndAddBeneficiaryForWallet \n ${g}`}),d}}},8487:(e,t,r)=>{const a=r(2705);class n{static ActiveCardPaymentGatewayResponse(){return a.object({cards:n.CardPaymentGateway().required(),message:a.string().allow("").required(),success:a.boolean().required()})}static AddBeneficiaryDetailsOTPRequest(){return a.object({details:n.BankDetailsForOTP().required(),order_id:a.string().allow("").required()})}static AddBeneficiaryDetailsRequest(){return a.object({delights:a.boolean().required(),details:n.BeneficiaryModeDetails().required(),order_id:a.string().allow("").required(),otp:a.string().allow(""),request_id:a.string().allow(""),shipment_id:a.string().allow("").required(),transfer_mode:a.string().allow("").required()})}static AddBeneficiaryViaOtpVerificationRequest(){return a.object({hash_key:a.string().allow("").required(),otp:a.string().allow("").required(),request_id:a.string().allow("").required()})}static AddBeneficiaryViaOtpVerificationResponse(){return a.object({message:a.string().allow("").required(),success:a.boolean()})}static AggregatorConfigDetail(){return a.object({api:a.string().allow("").allow(null),config_type:a.string().allow("").required(),key:a.string().allow("").required(),merchant_id:a.string().allow("").allow(null),merchant_key:a.string().allow("").allow(null),pin:a.string().allow("").allow(null),sdk:a.boolean().allow(null),secret:a.string().allow("").required(),user_id:a.string().allow("").allow(null),verify_api:a.string().allow("").allow(null)})}static AggregatorRoute(){return a.object({api_link:a.string().allow("").allow(null),data:a.any().allow(null),payment_flow:a.string().allow("").allow(null),payment_flow_data:a.string().allow("").allow(null)})}static AggregatorsConfigDetailResponse(){return a.object({ccavenue:n.AggregatorConfigDetail(),env:a.string().allow("").required(),juspay:n.AggregatorConfigDetail(),mswipe:n.AggregatorConfigDetail(),payumoney:n.AggregatorConfigDetail(),razorpay:n.AggregatorConfigDetail(),rupifi:n.AggregatorConfigDetail(),simpl:n.AggregatorConfigDetail(),stripe:n.AggregatorConfigDetail(),success:a.boolean().required()})}static AttachCardRequest(){return a.object({card_id:a.string().allow("").allow(null).required(),name_on_card:a.string().allow(""),nickname:a.string().allow(""),refresh:a.boolean().allow(null)})}static AttachCardsResponse(){return a.object({data:a.any().required(),message:a.string().allow(""),success:a.boolean().required()})}static BalanceDetails(){return a.object({currency:a.string().allow("").allow(null),formatted_value:a.string().allow("").allow(null),value:a.number().allow(null)})}static BankDetailsForOTP(){return a.object({account_holder:a.string().allow("").required(),account_no:a.string().allow("").required(),bank_name:a.string().allow("").required(),branch_name:a.string().allow("").required(),ifsc_code:a.string().allow("").required()})}static BeneficiaryModeDetails(){return a.object({account_holder:a.string().allow("").required(),account_no:a.string().allow("").required(),address:a.string().allow(""),bank_name:a.string().allow("").required(),branch_name:a.string().allow("").required(),comment:a.string().allow(""),email:a.string().allow("").required(),ifsc_code:a.string().allow("").required(),mobile:a.string().allow("").required(),vpa:a.string().allow("").allow(null),wallet:a.string().allow("").allow(null)})}static BusinessDetails(){return a.object({address:n.KYCAddress(),business_ownership_type:a.string().allow("").allow(null),business_type:a.string().allow("").allow(null),entity_type:a.string().allow("").allow(null),fda:a.string().allow("").allow(null),fssai:a.string().allow("").allow(null),gstin:a.string().allow("").allow(null),name:a.string().allow("").allow(null),pan:a.string().allow("").allow(null),shop_and_establishment:a.any(),vintage:a.string().allow("").allow(null)})}static CancelOrResendPaymentLinkRequest(){return a.object({payment_link_id:a.string().allow("").required()})}static CancelPaymentLinkResponse(){return a.object({message:a.string().allow("").required(),status_code:a.number().required(),success:a.boolean().required()})}static Card(){return a.object({aggregator_name:a.string().allow("").required(),card_brand:a.string().allow("").allow(null),card_brand_image:a.string().allow("").allow(null),card_fingerprint:a.string().allow("").allow(null),card_id:a.string().allow("").allow(null),card_isin:a.string().allow("").allow(null),card_issuer:a.string().allow("").allow(null),card_name:a.string().allow("").allow(null),card_number:a.string().allow("").allow(null),card_reference:a.string().allow("").allow(null),card_token:a.string().allow("").allow(null),card_type:a.string().allow("").allow(null),compliant_with_tokenisation_guidelines:a.boolean().allow(null),exp_month:a.number().allow(null),exp_year:a.number().allow(null),expired:a.boolean().allow(null),nickname:a.string().allow("").allow(null)})}static CardDetails(){return a.object({bank:a.string().allow("").required(),bank_code:a.string().allow("").allow(null).required(),card_brand:a.string().allow("").required(),card_exp_month:a.string().allow(""),card_exp_year:a.string().allow(""),card_object:a.string().allow("").required(),card_sub_type:a.string().allow("").allow(null).required(),card_token:a.string().allow(""),country:a.string().allow("").required(),extended_card_type:a.string().allow("").required(),id:a.string().allow("").required(),is_domestic_card:a.boolean().required(),name_on_card:a.string().allow(""),status:a.boolean().required(),type:a.string().allow("").required(),user:a.string().allow("")})}static CardDetailsResponse(){return a.object({data:n.CardDetails().required(),success:a.boolean().required()})}static CardPaymentGateway(){return a.object({aggregator:a.string().allow("").required(),api:a.string().allow("").allow(null),customer_id:a.string().allow("").allow(null)})}static ChargeCustomerRequest(){return a.object({aggregator:a.string().allow("").required(),amount:a.number().allow(null).required(),order_id:a.string().allow("").required(),transaction_token:a.string().allow("").allow(null),verified:a.boolean().allow(null)})}static ChargeCustomerResponse(){return a.object({aggregator:a.string().allow("").required(),cart_id:a.string().allow("").allow(null),delivery_address_id:a.string().allow("").allow(null),message:a.string().allow("").required(),order_id:a.string().allow("").required(),status:a.string().allow("").required(),success:a.boolean().required()})}static CheckCreditResponse(){return a.object({data:n.CreditDetail().required(),success:a.boolean().required()})}static CreateOrderUserData(){return a.object({aggregator:a.string().allow("").allow(null),amount:a.number().allow(null),callback_url:a.string().allow("").allow(null),contact:a.string().allow("").allow(null),currency:a.string().allow("").allow(null),customer_id:a.string().allow("").allow(null),email:a.string().allow("").allow(null),merchant_order_id:a.string().allow("").allow(null),method:a.string().allow("").allow(null),order_id:a.string().allow("").allow(null)})}static CreateOrderUserPaymentMethods(){return a.object({meta:n.PaymentMethodsMeta().required(),mode:a.string().allow("").required(),name:a.string().allow("").required()})}static CreateOrderUserRequest(){return a.object({currency:a.string().allow("").required(),failure_callback_url:a.string().allow("").required(),meta:a.any().allow(null),payment_link_id:a.string().allow("").required(),payment_methods:n.CreateOrderUserPaymentMethods().required(),success_callback_url:a.string().allow("").required()})}static CreateOrderUserResponse(){return a.object({callback_url:a.string().allow("").allow(null),data:n.CreateOrderUserData(),message:a.string().allow("").required(),order_id:a.string().allow("").allow(null),payment_confirm_url:a.string().allow("").allow(null),status_code:a.number().required(),success:a.boolean().required()})}static CreatePaymentLinkMeta(){return a.object({amount:a.string().allow("").required(),assign_card_id:a.string().allow("").allow(null),cart_id:a.string().allow("").required(),checkout_mode:a.string().allow("").required(),pincode:a.string().allow("").required()})}static CreatePaymentLinkRequest(){return a.object({amount:a.number().required(),description:a.string().allow("").allow(null),email:a.string().allow("").required(),external_order_id:a.string().allow("").required(),meta:n.CreatePaymentLinkMeta().required(),mobile_number:a.string().allow("").required()})}static CreatePaymentLinkResponse(){return a.object({message:a.string().allow("").required(),payment_link_id:a.string().allow("").allow(null),payment_link_url:a.string().allow("").allow(null),polling_timeout:a.number().allow(null),status_code:a.number().required(),success:a.boolean().required()})}static CreditDetail(){return a.object({is_registered:a.boolean().required(),signup_url:a.string().allow("").required(),status:a.boolean().required()})}static CreditSummary(){return a.object({amount_available:n.BalanceDetails(),balance:n.BalanceDetails(),buyer_status:a.string().allow("").allow(null),credit_line_id:a.string().allow("").allow(null),merchant_customer_ref_id:a.string().allow("").allow(null),status:a.string().allow("").allow(null),status_message:a.string().allow("").allow(null)})}static CustomerCreditSummaryResponse(){return a.object({data:n.CreditSummary(),success:a.boolean().required()})}static CustomerOnboardingRequest(){return a.object({aggregator:a.string().allow("").required(),business_info:n.BusinessDetails(),device:n.DeviceDetails(),marketplace_info:n.MarketplaceInfo(),mcc:a.string().allow("").allow(null),personal_info:n.UserPersonalInfoInDetails().required(),source:a.string().allow("").required()})}static CustomerOnboardingResponse(){return a.object({data:n.OnboardSummary().required(),success:a.boolean().required()})}static DeleteCardsResponse(){return a.object({message:a.string().allow("").allow(null),success:a.boolean().required()})}static DeletehCardRequest(){return a.object({card_id:a.string().allow("").allow(null).required()})}static DeviceDetails(){return a.object({device_make:a.string().allow("").allow(null),device_model:a.string().allow("").allow(null),device_type:a.string().allow("").allow(null),identification_number:a.string().allow("").allow(null),identifier_type:a.string().allow("").allow(null),os:a.string().allow("").allow(null),os_version:a.string().allow("").allow(null)})}static EpaylaterBannerData(){return a.object({display:a.boolean().required(),message:a.string().allow(""),status:a.string().allow("")})}static EpaylaterBannerResponse(){return a.object({data:n.EpaylaterBannerData().required(),success:a.boolean().required()})}static ErrorCodeAndDescription(){return a.object({code:a.string().allow("").required(),description:a.string().allow("").required()})}static ErrorCodeDescription(){return a.object({code:a.string().allow("").required(),description:a.string().allow("").required(),success:a.boolean().required()})}static ErrorDescription(){return a.object({amount:a.number().allow(null),cancelled:a.boolean().allow(null),expired:a.boolean().allow(null),invalid_id:a.boolean().allow(null),merchant_name:a.string().allow("").allow(null),merchant_order_id:a.string().allow("").allow(null),msg:a.string().allow("").allow(null),payment_transaction_id:a.string().allow("").allow(null)})}static ErrorResponse(){return a.object({error:a.any().allow(null),message:a.string().allow("").required(),status_code:a.number().required(),success:a.boolean().required()})}static GetPaymentLinkResponse(){return a.object({amount:a.number().allow(null),external_order_id:a.string().allow("").allow(null),merchant_name:a.string().allow("").allow(null),message:a.string().allow("").required(),payment_link_current_status:a.string().allow("").allow(null),payment_link_url:a.string().allow("").allow(null),polling_timeout:a.number().allow(null),status_code:a.number().required(),success:a.boolean().required()})}static HttpErrorCodeAndResponse(){return a.object({error:n.ErrorCodeAndDescription(),success:a.boolean().required()})}static IfscCodeResponse(){return a.object({bank_name:a.string().allow("").required(),branch_name:a.string().allow("").required(),success:a.boolean()})}static IntentApp(){return a.object({code:a.string().allow("").allow(null),display_name:a.string().allow("").allow(null),logos:a.any().allow(null),package_name:a.string().allow("").allow(null)})}static IntentAppErrorList(){return a.object({code:a.string().allow("").allow(null),package_name:a.string().allow("").allow(null)})}static KYCAddress(){return a.object({addressline1:a.string().allow("").required(),addressline2:a.string().allow("").allow(null),city:a.string().allow("").required(),land_mark:a.string().allow("").allow(null),ownership_type:a.string().allow("").allow(null),pincode:a.string().allow("").required(),state:a.string().allow("").required()})}static LinkStatus(){return a.object({message:a.string().allow("").required(),status:a.boolean().required()})}static ListCardsResponse(){return a.object({data:a.array().items(n.Card()),message:a.string().allow("").required(),success:a.boolean().required()})}static MarketplaceInfo(){return a.object({date_of_joining:a.string().allow("").allow(null),membership_id:a.string().allow("").required(),name:a.string().allow("").required()})}static NotFoundResourceError(){return a.object({code:a.string().allow("").required(),description:a.string().allow("").required(),success:a.boolean().required()})}static OnboardSummary(){return a.object({redirect_url:a.string().allow("").required(),session:a.any().required(),status:a.boolean().required()})}static OrderBeneficiaryDetails(){return a.object({account_holder:a.string().allow("").required(),account_no:a.string().allow("").required(),address:a.string().allow("").required(),bank_name:a.string().allow("").required(),beneficiary_id:a.string().allow("").required(),branch_name:a.string().allow(""),comment:a.string().allow(""),created_on:a.string().allow("").required(),delights_user_name:a.string().allow("").allow(null),display_name:a.string().allow("").required(),email:a.string().allow("").required(),id:a.number().required(),ifsc_code:a.string().allow("").required(),is_active:a.boolean().required(),mobile:a.string().allow(""),modified_on:a.string().allow("").required(),subtitle:a.string().allow("").required(),title:a.string().allow("").required(),transfer_mode:a.string().allow("").required()})}static OrderBeneficiaryResponse(){return a.object({beneficiaries:a.array().items(n.OrderBeneficiaryDetails()),show_beneficiary_details:a.boolean()})}static OutstandingOrderDetailsResponse(){return a.object({data:a.array().items(a.any()),message:a.string().allow("").allow(null),status_code:a.number().required(),success:a.boolean().required()})}static PaidOrderDetailsResponse(){return a.object({data:a.array().items(a.any()),message:a.string().allow("").allow(null),status_code:a.number().required(),success:a.boolean().required()})}static PaymentFlow(){return a.object({ajiodhan:a.any().allow(null),bqr_razorpay:a.any().allow(null),ccavenue:a.any().allow(null),epaylater:a.any().allow(null),fynd:a.any().allow(null),jiopay:a.any().allow(null),juspay:a.any().allow(null),mswipe:a.any().allow(null),payubiz:a.any().allow(null),razorpay:a.any().allow(null),rupifi:a.any().allow(null),simpl:a.any().allow(null),stripe:a.any().allow(null),upi_razorpay:a.any().allow(null)})}static PaymentInitializationRequest(){return a.object({aggregator:a.string().allow("").required(),amount:a.number().allow(null).required(),contact:a.string().allow("").required(),currency:a.string().allow("").required(),customer_id:a.string().allow("").required(),device_id:a.string().allow("").allow(null),email:a.string().allow("").required(),merchant_order_id:a.string().allow("").required(),method:a.string().allow("").required(),order_id:a.string().allow("").required(),razorpay_payment_id:a.string().allow("").allow(null),timeout:a.number().allow(null),vpa:a.string().allow("").allow(null)})}static PaymentInitializationResponse(){return a.object({aggregator:a.string().allow("").required(),aggregator_order_id:a.string().allow(""),amount:a.number().allow(null),bqr_image:a.string().allow("").allow(null),currency:a.string().allow("").allow(null),customer_id:a.string().allow("").allow(null),device_id:a.string().allow("").allow(null),merchant_order_id:a.string().allow("").required(),method:a.string().allow("").required(),polling_url:a.string().allow("").required(),razorpay_payment_id:a.string().allow("").allow(null),status:a.string().allow(""),success:a.boolean().required(),timeout:a.number().allow(null),upi_poll_url:a.string().allow("").allow(null),virtual_id:a.string().allow("").allow(null),vpa:a.string().allow("").allow(null)})}static PaymentMethodsMeta(){return a.object({merchant_code:a.string().allow("").required(),payment_gateway:a.string().allow("").required(),payment_identifier:a.string().allow("").required()})}static PaymentModeList(){return a.object({aggregator_name:a.string().allow("").required(),card_brand:a.string().allow("").allow(null),card_brand_image:a.string().allow("").allow(null),card_fingerprint:a.string().allow("").allow(null),card_id:a.string().allow("").allow(null),card_isin:a.string().allow("").allow(null),card_issuer:a.string().allow("").allow(null),card_name:a.string().allow("").allow(null),card_number:a.string().allow("").allow(null),card_reference:a.string().allow("").allow(null),card_token:a.string().allow("").allow(null),card_type:a.string().allow("").allow(null),cod_limit:a.number().allow(null),cod_limit_per_order:a.number().allow(null),code:a.string().allow("").allow(null),compliant_with_tokenisation_guidelines:a.boolean().allow(null),display_name:a.string().allow("").allow(null),display_priority:a.number().allow(null),exp_month:a.number().allow(null),exp_year:a.number().allow(null),expired:a.boolean().allow(null),fynd_vpa:a.string().allow("").allow(null),intent_app:a.array().items(n.IntentApp()),intent_app_error_dict_list:a.array().items(n.IntentAppErrorList()),intent_app_error_list:a.array().items(a.string().allow("")),intent_flow:a.boolean().allow(null),logo_url:a.any().allow(null),merchant_code:a.string().allow("").allow(null),name:a.string().allow("").allow(null),nickname:a.string().allow("").allow(null),remaining_limit:a.number().allow(null),retry_count:a.number().allow(null),timeout:a.number().allow(null)})}static PaymentModeLogo(){return a.object({large:a.string().allow("").required(),small:a.string().allow("").required()})}static PaymentModeRouteResponse(){return a.object({payment_options:n.PaymentOptionAndFlow().required(),success:a.boolean().required()})}static PaymentOptionAndFlow(){return a.object({payment_flows:n.PaymentFlow().required(),payment_option:a.array().items(n.RootPaymentMode()).required()})}static PaymentStatusUpdateRequest(){return a.object({aggregator:a.string().allow("").required(),amount:a.number().allow(null).required(),contact:a.string().allow("").required(),currency:a.string().allow("").required(),customer_id:a.string().allow("").required(),device_id:a.string().allow("").allow(null),email:a.string().allow("").required(),merchant_order_id:a.string().allow("").required(),merchant_transaction_id:a.string().allow("").required(),method:a.string().allow("").required(),order_id:a.string().allow("").required(),status:a.string().allow("").required(),vpa:a.string().allow("")})}static PaymentStatusUpdateResponse(){return a.object({aggregator_name:a.string().allow("").required(),redirect_url:a.string().allow("").allow(null),retry:a.boolean().required(),status:a.string().allow("").required(),success:a.boolean().allow(null)})}static PollingPaymentLinkResponse(){return a.object({aggregator_name:a.string().allow("").allow(null),amount:a.number().allow(null),http_status:a.number().allow(null),message:a.string().allow("").allow(null),order_id:a.string().allow("").allow(null),payment_link_id:a.string().allow("").allow(null),redirect_url:a.string().allow("").allow(null),status:a.string().allow("").allow(null),status_code:a.number().allow(null),success:a.boolean().allow(null)})}static RedirectToAggregatorResponse(){return a.object({data:n.RedirectURL().required(),success:a.boolean().required()})}static RedirectURL(){return a.object({signup_url:a.string().allow("").required(),status:a.boolean().required()})}static RefundAccountResponse(){return a.object({data:a.any(),is_verified_flag:a.boolean(),message:a.string().allow("").required(),success:a.boolean().required()})}static renderHTMLRequest(){return a.object({base64_html:a.string().allow("").required(),returntype:a.string().allow("").allow(null)})}static renderHTMLResponse(){return a.object({html:a.string().allow("").required()})}static ResendOrCancelPaymentRequest(){return a.object({device_id:a.string().allow("").allow(null),order_id:a.string().allow("").required(),request_type:a.string().allow("").required()})}static ResendOrCancelPaymentResponse(){return a.object({data:n.LinkStatus().required(),success:a.boolean().required()})}static ResendPaymentLinkResponse(){return a.object({message:a.string().allow("").required(),polling_timeout:a.number().allow(null),status_code:a.number().required(),success:a.boolean().required()})}static RootPaymentMode(){return a.object({add_card_enabled:a.boolean().allow(null),aggregator_name:a.string().allow("").allow(null),anonymous_enable:a.boolean().allow(null),display_name:a.string().allow("").required(),display_priority:a.number().required(),is_pay_by_card_pl:a.boolean().allow(null),list:a.array().items(n.PaymentModeList()),name:a.string().allow("").required(),save_card:a.boolean().allow(null)})}static RupifiBannerData(){return a.object({kyc_url:a.string().allow(""),status:a.string().allow("")})}static RupifiBannerResponse(){return a.object({data:n.RupifiBannerData().required(),success:a.boolean().required()})}static SetDefaultBeneficiaryRequest(){return a.object({beneficiary_id:a.string().allow("").required(),order_id:a.string().allow("").required()})}static SetDefaultBeneficiaryResponse(){return a.object({is_beneficiary_set:a.boolean().required(),success:a.boolean()})}static TransferItemsDetails(){return a.object({display_name:a.string().allow(""),id:a.number().required(),logo_large:a.string().allow("").required(),logo_small:a.string().allow("").required(),name:a.string().allow("").required()})}static TransferModeDetails(){return a.object({display_name:a.string().allow("").required(),items:a.array().items(n.TransferItemsDetails())})}static TransferModeResponse(){return a.object({data:a.array().items(n.TransferModeDetails()).required()})}static UpdateRefundTransferModeRequest(){return a.object({enable:a.boolean().required(),transfer_mode:a.string().allow("").required()})}static UpdateRefundTransferModeResponse(){return a.object({success:a.boolean()})}static UserPersonalInfoInDetails(){return a.object({address_as_per_id:n.KYCAddress().required(),dob:a.string().allow("").allow(null).required(),driving_license:a.string().allow("").allow(null),email:a.string().allow("").allow(null),email_verified:a.boolean().required(),fathers_name:a.string().allow("").allow(null),first_name:a.string().allow("").required(),gender:a.string().allow("").allow(null),last_name:a.string().allow("").allow(null),middle_name:a.string().allow("").allow(null),mobile_verified:a.boolean().required(),mothers_name:a.string().allow("").allow(null),pan:a.string().allow("").allow(null),passport:a.string().allow("").allow(null),phone:a.string().allow("").required(),voter_id:a.string().allow("").allow(null)})}static ValidateCustomerRequest(){return a.object({aggregator:a.string().allow("").required(),billing_address:a.any(),delivery_address:a.any(),merchant_params:a.any(),order_items:a.array().items(a.any()),payload:a.string().allow("").allow(null),phone_number:a.string().allow("").required(),transaction_amount_in_paise:a.number().required()})}static ValidateCustomerResponse(){return a.object({data:a.any().required(),message:a.string().allow("").required(),success:a.boolean().required()})}static ValidateUPI(){return a.object({customer_name:a.string().allow("").required(),is_valid:a.boolean().required(),status:a.string().allow("").required(),upi_vpa:a.string().allow("").required()})}static ValidateVPARequest(){return a.object({upi_vpa:a.string().allow("").required()})}static ValidateVPAResponse(){return a.object({data:n.ValidateUPI().required(),success:a.boolean().required()})}static WalletOtpRequest(){return a.object({country_code:a.string().allow("").required(),mobile:a.string().allow("").required()})}static WalletOtpResponse(){return a.object({is_verified_flag:a.string().allow("").required(),request_id:a.string().allow("").required(),success:a.boolean()})}static WrongOtpError(){return a.object({description:a.string().allow("").required(),is_verified_flag:a.boolean().required(),success:a.string().allow("").required()})}}e.exports=n},174:(e,t,r)=>{const a=r(2705),n=r(8487);e.exports=class{static addBeneficiaryDetails(){return a.object({body:n.AddBeneficiaryDetailsRequest().required()}).required()}static addRefundBankAccountUsingOTP(){return a.object({body:n.AddBeneficiaryDetailsOTPRequest().required()}).required()}static attachCardToCustomer(){return a.object({body:n.AttachCardRequest().required()}).required()}static cancelPaymentLink(){return a.object({body:n.CancelOrResendPaymentLinkRequest().required()}).required()}static cardDetails(){return a.object({cardInfo:a.string().allow("").required(),aggregator:a.string().allow("")}).required()}static checkAndUpdatePaymentStatus(){return a.object({body:n.PaymentStatusUpdateRequest().required()}).required()}static checkAndUpdatePaymentStatusPaymentLink(){return a.object({body:n.PaymentStatusUpdateRequest().required()}).required()}static checkCredit(){return a.object({aggregator:a.string().allow("")})}static createOrderHandlerPaymentLink(){return a.object({body:n.CreateOrderUserRequest().required()}).required()}static createPaymentLink(){return a.object({body:n.CreatePaymentLinkRequest().required()}).required()}static customerCreditSummary(){return a.object({aggregator:a.string().allow("")})}static customerOnboard(){return a.object({body:n.CustomerOnboardingRequest().required()}).required()}static deleteUserCard(){return a.object({body:n.DeletehCardRequest().required()}).required()}static enableOrDisableRefundTransferMode(){return a.object({body:n.UpdateRefundTransferModeRequest().required()}).required()}static getActiveCardAggregator(){return a.object({refresh:a.boolean()})}static getActiveRefundTransferModes(){return a.object({})}static getActiveUserCards(){return a.object({forceRefresh:a.boolean()})}static getAggregatorsConfig(){return a.object({xApiToken:a.string().allow(""),refresh:a.boolean()})}static getEpaylaterBannerDetails(){return a.object({})}static getOrderBeneficiariesDetail(){return a.object({orderId:a.string().allow("").required()}).required()}static getPaymentLink(){return a.object({paymentLinkId:a.string().allow("")})}static getPaymentModeRoutes(){return a.object({amount:a.number().required(),cartId:a.string().allow("").required(),pincode:a.string().allow("").required(),checkoutMode:a.string().allow("").required(),refresh:a.boolean(),cardReference:a.string().allow(""),userDetails:a.string().allow("")}).required()}static getPaymentModeRoutesPaymentLink(){return a.object({paymentLinkId:a.string().allow("").required()}).required()}static getPosPaymentModeRoutes(){return a.object({amount:a.number().required(),cartId:a.string().allow("").required(),pincode:a.string().allow("").required(),checkoutMode:a.string().allow("").required(),refresh:a.boolean(),cardReference:a.string().allow(""),orderType:a.string().allow("").required(),userDetails:a.string().allow("")}).required()}static getRupifiBannerDetails(){return a.object({})}static getUserBeneficiariesDetail(){return a.object({orderId:a.string().allow("").required()}).required()}static initialisePayment(){return a.object({body:n.PaymentInitializationRequest().required()}).required()}static initialisePaymentPaymentLink(){return a.object({body:n.PaymentInitializationRequest().required()}).required()}static outstandingOrderDetails(){return a.object({aggregator:a.string().allow("")})}static paidOrderDetails(){return a.object({aggregator:a.string().allow("")})}static pollingPaymentLink(){return a.object({paymentLinkId:a.string().allow("")})}static redirectToAggregator(){return a.object({source:a.string().allow(""),aggregator:a.string().allow("")})}static renderHTML(){return a.object({body:n.renderHTMLRequest().required()}).required()}static resendOrCancelPayment(){return a.object({body:n.ResendOrCancelPaymentRequest().required()}).required()}static resendPaymentLink(){return a.object({body:n.CancelOrResendPaymentLinkRequest().required()}).required()}static updateDefaultBeneficiary(){return a.object({body:n.SetDefaultBeneficiaryRequest().required()}).required()}static validateVPA(){return a.object({body:n.ValidateVPARequest().required()}).required()}static verifyAndChargePayment(){return a.object({body:n.ChargeCustomerRequest().required()}).required()}static verifyCustomerForPayment(){return a.object({body:n.ValidateCustomerRequest().required()}).required()}static verifyIfscCode(){return a.object({ifscCode:a.string().allow("")})}static verifyOtpAndAddBeneficiaryForBank(){return a.object({body:n.AddBeneficiaryViaOtpVerificationRequest().required()}).required()}static verifyOtpAndAddBeneficiaryForWallet(){return a.object({body:n.WalletOtpRequest().required()}).required()}}},4823:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(2857)),i=r(6962),{Logger:l}=r(7378),c=r(2705);e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addAddress:"/service/application/pos/cart/v1.0/address",addItems:"/service/application/pos/cart/v1.0/detail",applyCoupon:"/service/application/pos/cart/v1.0/coupon",applyRewardPoints:"/service/application/pos/cart/v1.0/redeem/points/",checkoutCart:"/service/application/pos/cart/v1.0/checkout",getAddressById:"/service/application/pos/cart/v1.0/address/{id}",getAddresses:"/service/application/pos/cart/v1.0/address",getAvailableDeliveryModes:"/service/application/pos/cart/v1.0/available-delivery-mode",getBulkDiscountOffers:"/service/application/pos/cart/v1.0/bulk-price",getCart:"/service/application/pos/cart/v1.0/detail",getCartLastModified:"/service/application/pos/cart/v1.0/detail",getCartShareLink:"/service/application/pos/cart/v1.0/share-cart",getCartSharedItems:"/service/application/pos/cart/v1.0/share-cart/{token}",getCoupons:"/service/application/pos/cart/v1.0/coupon",getItemCount:"/service/application/pos/cart/v1.0/basic",getShipments:"/service/application/pos/cart/v1.0/shipment",getStoreAddressByUid:"/service/application/pos/cart/v1.0/store-address",removeAddress:"/service/application/pos/cart/v1.0/address/{id}",removeCoupon:"/service/application/pos/cart/v1.0/coupon",selectAddress:"/service/application/pos/cart/v1.0/select-address",selectPaymentMode:"/service/application/pos/cart/v1.0/payment",updateAddress:"/service/application/pos/cart/v1.0/address/{id}",updateCart:"/service/application/pos/cart/v1.0/detail",updateCartMeta:"/service/application/pos/cart/v1.0/meta",updateCartWithSharedItems:"/service/application/pos/cart/v1.0/share-cart/{token}/{action}",updateShipments:"/service/application/pos/cart/v1.0/shipment",validateCouponForPayment:"/service/application/pos/cart/v1.0/payment/validate/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addAddress({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.addAddress().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.addAddress().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > addAddress \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.addAddress,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.SaveAddressResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > addAddress \n ${g}`}),d}async addItems({body:e,i:t,b:r,areaCode:c,buyNow:u,id:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.addItems().validate({body:e,i:t,b:r,areaCode:c,buyNow:u,id:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.addItems().validate({body:e,i:t,b:r,areaCode:c,buyNow:u,id:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > addItems \n ${w}`});const y={};y.i=t,y.b=r,y.area_code=c,y.buy_now=u,y.id=d;const f=await a.execute(this._conf,"post",o({url:this._urls.addItems,params:{}}),y,e,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.AddCartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > addItems \n ${h}`}),f}async applyCoupon({body:e,i:t,b:r,p:c,id:u,buyNow:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.applyCoupon().validate({body:e,i:t,b:r,p:c,id:u,buyNow:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.applyCoupon().validate({body:e,i:t,b:r,p:c,id:u,buyNow:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > applyCoupon \n ${w}`});const y={};y.i=t,y.b=r,y.p=c,y.id=u,y.buy_now=d;const f=await a.execute(this._conf,"post",o({url:this._urls.applyCoupon,params:{}}),y,e,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.CartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > applyCoupon \n ${h}`}),f}async applyRewardPoints({body:e,id:t,i:r,b:c,buyNow:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=s.applyRewardPoints().validate({body:e,id:t,i:r,b:c,buyNow:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=s.applyRewardPoints().validate({body:e,id:t,i:r,b:c,buyNow:u},{abortEarly:!1,allowUnknown:!1});m&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > applyRewardPoints \n ${m}`});const w={};w.id=t,w.i=r,w.b=c,w.buy_now=u;const y=await a.execute(this._conf,"post",o({url:this._urls.applyRewardPoints,params:{}}),w,e,{...d},{responseHeaders:p});let f=y;p&&(f=y[0]);const{error:b}=i.CartDetailResponse().validate(f,{abortEarly:!1,allowUnknown:!1});return b&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > applyRewardPoints \n ${b}`}),y}async checkoutCart({body:e,id:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.checkoutCart().validate({body:e,id:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.checkoutCart().validate({body:e,id:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > checkoutCart \n ${d}`});const p={};p.id=t;const g=await a.execute(this._conf,"post",o({url:this._urls.checkoutCart,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CartCheckoutResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > checkoutCart \n ${w}`}),g}async getAddressById({id:e,cartId:t,buyNow:r,mobileNo:c,checkoutMode:u,tags:d,isDefault:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=s.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:c,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:y}=s.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:c,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!1});y&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getAddressById \n ${y}`});const f={};f.cart_id=t,f.buy_now=r,f.mobile_no=c,f.checkout_mode=u,f.tags=d,f.is_default=p;const b=await a.execute(this._conf,"get",o({url:this._urls.getAddressById,params:{id:e}}),f,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=i.Address().validate(h,{abortEarly:!1,allowUnknown:!1});return _&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getAddressById \n ${_}`}),b}async getAddresses({cartId:e,buyNow:t,mobileNo:r,checkoutMode:c,tags:u,isDefault:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:c,tags:u,isDefault:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:c,tags:u,isDefault:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getAddresses \n ${w}`});const y={};y.cart_id=e,y.buy_now=t,y.mobile_no=r,y.checkout_mode=c,y.tags=u,y.is_default=d;const f=await a.execute(this._conf,"get",o({url:this._urls.getAddresses,params:{}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.GetAddressesResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getAddresses \n ${h}`}),f}async getAvailableDeliveryModes({areaCode:e,id:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getAvailableDeliveryModes().validate({areaCode:e,id:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getAvailableDeliveryModes().validate({areaCode:e,id:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getAvailableDeliveryModes \n ${d}`});const p={};p.area_code=e,p.id=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getAvailableDeliveryModes,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CartDeliveryModesResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getAvailableDeliveryModes \n ${w}`}),g}async getBulkDiscountOffers({itemId:e,articleId:t,uid:r,slug:c,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=s.getBulkDiscountOffers().validate({itemId:e,articleId:t,uid:r,slug:c},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=s.getBulkDiscountOffers().validate({itemId:e,articleId:t,uid:r,slug:c},{abortEarly:!1,allowUnknown:!1});g&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getBulkDiscountOffers \n ${g}`});const m={};m.item_id=e,m.article_id=t,m.uid=r,m.slug=c;const w=await a.execute(this._conf,"get",o({url:this._urls.getBulkDiscountOffers,params:{}}),m,void 0,{...u},{responseHeaders:d});let y=w;d&&(y=w[0]);const{error:f}=i.BulkPriceResponse().validate(y,{abortEarly:!1,allowUnknown:!1});return f&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getBulkDiscountOffers \n ${f}`}),w}async getCart({id:e,i:t,b:r,assignCardId:c,areaCode:u,buyNow:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.getCart().validate({id:e,i:t,b:r,assignCardId:c,areaCode:u,buyNow:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.getCart().validate({id:e,i:t,b:r,assignCardId:c,areaCode:u,buyNow:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCart \n ${w}`});const y={};y.id=e,y.i=t,y.b=r,y.assign_card_id=c,y.area_code=u,y.buy_now=d;const f=await a.execute(this._conf,"get",o({url:this._urls.getCart,params:{}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.CartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getCart \n ${h}`}),f}async getCartLastModified({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=s.getCartLastModified().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:u}=s.getCartLastModified().validate({id:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCartLastModified \n ${u}`});const d={};d.id=e;const p=await a.execute(this._conf,"head",o({url:this._urls.getCartLastModified,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.string().allow("").validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getCartLastModified \n ${m}`}),p}async getCartShareLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getCartShareLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getCartShareLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCartShareLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getCartShareLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.GetShareCartLinkResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getCartShareLink \n ${g}`}),d}async getCartSharedItems({token:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getCartSharedItems().validate({token:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getCartSharedItems().validate({token:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCartSharedItems \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getCartSharedItems,params:{token:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.SharedCartResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getCartSharedItems \n ${g}`}),d}async getCoupons({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getCoupons().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getCoupons().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCoupons \n ${d}`});const p={};p.id=e,p.buy_now=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getCoupons,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.GetCouponResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getCoupons \n ${w}`}),g}async getItemCount({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getItemCount().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getItemCount().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getItemCount \n ${d}`});const p={};p.id=e,p.buy_now=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getItemCount,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CartItemCountResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getItemCount \n ${w}`}),g}async getShipments({pickAtStoreUid:e,orderingStoreId:t,p:r,id:c,addressId:u,areaCode:d,orderType:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=s.getShipments().validate({pickAtStoreUid:e,orderingStoreId:t,p:r,id:c,addressId:u,areaCode:d,orderType:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:y}=s.getShipments().validate({pickAtStoreUid:e,orderingStoreId:t,p:r,id:c,addressId:u,areaCode:d,orderType:p},{abortEarly:!1,allowUnknown:!1});y&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getShipments \n ${y}`});const f={};f.pick_at_store_uid=e,f.ordering_store_id=t,f.p=r,f.id=c,f.address_id=u,f.area_code=d,f.order_type=p;const b=await a.execute(this._conf,"get",o({url:this._urls.getShipments,params:{}}),f,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=i.CartShipmentsResponse().validate(h,{abortEarly:!1,allowUnknown:!1});return _&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getShipments \n ${_}`}),b}async getStoreAddressByUid({storeUid:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getStoreAddressByUid().validate({storeUid:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getStoreAddressByUid().validate({storeUid:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getStoreAddressByUid \n ${u}`});const d={};d.store_uid=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getStoreAddressByUid,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.StoreDetailsResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > getStoreAddressByUid \n ${m}`}),p}async removeAddress({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.removeAddress().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.removeAddress().validate({id:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > removeAddress \n ${u}`});const d=await a.execute(this._conf,"delete",o({url:this._urls.removeAddress,params:{id:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.DeleteAddressResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > removeAddress \n ${g}`}),d}async removeCoupon({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.removeCoupon().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.removeCoupon().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > removeCoupon \n ${d}`});const p={};p.id=e,p.buy_now=t;const g=await a.execute(this._conf,"delete",o({url:this._urls.removeCoupon,params:{}}),p,void 0,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.CartDetailResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > removeCoupon \n ${w}`}),g}async selectAddress({body:e,cartId:t,buyNow:r,i:c,b:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=s.selectAddress().validate({body:e,cartId:t,buyNow:r,i:c,b:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=s.selectAddress().validate({body:e,cartId:t,buyNow:r,i:c,b:u},{abortEarly:!1,allowUnknown:!1});m&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > selectAddress \n ${m}`});const w={};w.cart_id=t,w.buy_now=r,w.i=c,w.b=u;const y=await a.execute(this._conf,"post",o({url:this._urls.selectAddress,params:{}}),w,e,{...d},{responseHeaders:p});let f=y;p&&(f=y[0]);const{error:b}=i.CartDetailResponse().validate(f,{abortEarly:!1,allowUnknown:!1});return b&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > selectAddress \n ${b}`}),y}async selectPaymentMode({body:e,id:t,buyNow:r,requestHeaders:c}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=s.selectPaymentMode().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=s.selectPaymentMode().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!1});p&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > selectPaymentMode \n ${p}`});const g={};g.id=t,g.buy_now=r;const m=await a.execute(this._conf,"put",o({url:this._urls.selectPaymentMode,params:{}}),g,e,{...c},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=i.CartDetailResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > selectPaymentMode \n ${y}`}),m}async updateAddress({id:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.updateAddress().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.updateAddress().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateAddress \n ${d}`});const p=await a.execute(this._conf,"put",o({url:this._urls.updateAddress,params:{id:e}}),{},t,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.UpdateAddressResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > updateAddress \n ${m}`}),p}async updateCart({body:e,id:t,i:r,b:c,areaCode:u,buyNow:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.updateCart().validate({body:e,id:t,i:r,b:c,areaCode:u,buyNow:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.updateCart().validate({body:e,id:t,i:r,b:c,areaCode:u,buyNow:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateCart \n ${w}`});const y={};y.id=t,y.i=r,y.b=c,y.area_code=u,y.buy_now=d;const f=await a.execute(this._conf,"put",o({url:this._urls.updateCart,params:{}}),y,e,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.UpdateCartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > updateCart \n ${h}`}),f}async updateCartMeta({body:e,id:t,buyNow:r,requestHeaders:c}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=s.updateCartMeta().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=s.updateCartMeta().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!1});p&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateCartMeta \n ${p}`});const g={};g.id=t,g.buy_now=r;const m=await a.execute(this._conf,"put",o({url:this._urls.updateCartMeta,params:{}}),g,e,{...c},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:y}=i.CartMetaResponse().validate(w,{abortEarly:!1,allowUnknown:!1});return y&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > updateCartMeta \n ${y}`}),m}async updateCartWithSharedItems({token:e,action:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.updateCartWithSharedItems().validate({token:e,action:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.updateCartWithSharedItems().validate({token:e,action:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateCartWithSharedItems \n ${d}`});const p=await a.execute(this._conf,"post",o({url:this._urls.updateCartWithSharedItems,params:{token:e,action:t}}),{},void 0,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.SharedCartResponse().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > updateCartWithSharedItems \n ${m}`}),p}async updateShipments({body:e,i:t,p:r,id:c,addressId:u,areaCode:d,orderType:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=s.updateShipments().validate({body:e,i:t,p:r,id:c,addressId:u,areaCode:d,orderType:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:y}=s.updateShipments().validate({body:e,i:t,p:r,id:c,addressId:u,areaCode:d,orderType:p},{abortEarly:!1,allowUnknown:!1});y&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateShipments \n ${y}`});const f={};f.i=t,f.p=r,f.id=c,f.address_id=u,f.area_code=d,f.order_type=p;const b=await a.execute(this._conf,"put",o({url:this._urls.updateShipments,params:{}}),f,e,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=i.CartShipmentsResponse().validate(h,{abortEarly:!1,allowUnknown:!1});return _&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > updateShipments \n ${_}`}),b}async validateCouponForPayment({id:e,buyNow:t,addressId:r,paymentMode:c,paymentIdentifier:u,aggregatorName:d,merchantCode:p,iin:g,network:m,type:w,cardId:y,requestHeaders:f}={requestHeaders:{}},{responseHeaders:b}={responseHeaders:!1}){const{error:h}=s.validateCouponForPayment().validate({id:e,buyNow:t,addressId:r,paymentMode:c,paymentIdentifier:u,aggregatorName:d,merchantCode:p,iin:g,network:m,type:w,cardId:y},{abortEarly:!1,allowUnknown:!0});if(h)return Promise.reject(new n(h));const{error:_}=s.validateCouponForPayment().validate({id:e,buyNow:t,addressId:r,paymentMode:c,paymentIdentifier:u,aggregatorName:d,merchantCode:p,iin:g,network:m,type:w,cardId:y},{abortEarly:!1,allowUnknown:!1});_&&l({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > validateCouponForPayment \n ${_}`});const v={};v.id=e,v.buy_now=t,v.address_id=r,v.payment_mode=c,v.payment_identifier=u,v.aggregator_name=d,v.merchant_code=p,v.iin=g,v.network=m,v.type=w,v.card_id=y;const k=await a.execute(this._conf,"get",o({url:this._urls.validateCouponForPayment,params:{}}),v,void 0,{...f},{responseHeaders:b});let R=k;b&&(R=k[0]);const{error:P}=i.PaymentCouponValidate().validate(R,{abortEarly:!1,allowUnknown:!1});return P&&l({level:"WARN",message:`Response Validation Warnnings for application > PosCart > validateCouponForPayment \n ${P}`}),k}}},6962:(e,t,r)=>{const a=r(2705);class n{static ActionQuery(){return a.object({product_slug:a.array().items(a.string().allow(""))})}static AddCartDetailResponse(){return a.object({cart:n.CartDetailResponse(),message:a.string().allow(""),partial:a.boolean(),success:a.boolean()})}static AddCartRequest(){return a.object({items:a.array().items(n.AddProductCart()),new_cart:a.boolean()})}static AddProductCart(){return a.object({_custom_json:a.any(),article_assignment:a.any(),article_id:a.string().allow(""),display:a.string().allow(""),extra_meta:a.any(),item_id:a.number(),item_size:a.string().allow(""),meta:a.any(),parent_item_identifiers:a.array().items(a.object().pattern(/\S/,a.string().allow(""))),pos:a.boolean(),product_group_tags:a.array().items(a.string().allow("").allow(null)),quantity:a.number(),seller_id:a.number(),store_id:a.number()})}static Address(){return a.object({_custom_json:a.any(),address:a.string().allow(""),address_type:a.string().allow(""),area:a.string().allow(""),area_code:a.string().allow(""),area_code_slug:a.string().allow(""),checkout_mode:a.string().allow(""),city:a.string().allow(""),country:a.string().allow(""),country_code:a.string().allow(""),country_iso_code:a.string().allow(""),country_phone_code:a.string().allow(""),created_by_user_id:a.string().allow(""),email:a.string().allow(""),geo_location:n.GeoLocation(),google_map_point:a.any(),id:a.string().allow(""),is_active:a.boolean(),is_default_address:a.boolean(),landmark:a.string().allow(""),meta:a.any(),name:a.string().allow(""),phone:a.string().allow(""),state:a.string().allow(""),tags:a.array().items(a.string().allow("")),user_id:a.string().allow("")})}static AppliedFreeArticles(){return a.object({article_id:a.string().allow(""),free_gift_item_details:n.FreeGiftItem(),parent_item_identifier:a.string().allow(""),quantity:a.number()})}static AppliedPromotion(){return a.object({amount:a.number(),applied_free_articles:a.array().items(n.AppliedFreeArticles()),article_quantity:a.number(),buy_rules:a.array().items(n.BuyRules()),discount_rules:a.array().items(n.DiscountRulesApp()),mrp_promotion:a.boolean(),offer_text:a.string().allow(""),ownership:n.Ownership(),promo_id:a.string().allow(""),promotion_group:a.string().allow(""),promotion_name:a.string().allow(""),promotion_type:a.string().allow("")})}static ApplyCouponRequest(){return a.object({coupon_code:a.string().allow("").required()})}static ArticleGiftDetail(){return a.object({article_id:n.GiftDetail()})}static ArticlePriceInfo(){return a.object({base:n.BasePrice(),converted:n.BasePrice()})}static BaseInfo(){return a.object({name:a.string().allow(""),uid:a.number()})}static BasePrice(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),effective:a.number(),marked:a.number()})}static BulkPriceOffer(){return a.object({offers:a.array().items(n.OfferItem()),seller:n.OfferSeller()})}static BulkPriceResponse(){return a.object({data:a.array().items(n.BulkPriceOffer())})}static BuyRules(){return a.object({cart_conditions:a.any(),item_criteria:a.any()})}static CartBreakup(){return a.object({coupon:n.CouponBreakup(),display:a.array().items(n.DisplayBreakup()),loyalty_points:n.LoyaltyPoints(),raw:n.RawBreakup()})}static CartCheckoutCustomMeta(){return a.object({key:a.string().allow("").required(),value:a.string().allow("").required()})}static CartCheckoutResponse(){return a.object({app_intercept_url:a.string().allow(""),callback_url:a.string().allow(""),cart:n.CheckCart(),data:a.any(),message:a.string().allow(""),order_id:a.string().allow(""),payment_confirm_url:a.string().allow(""),success:a.boolean()})}static CartCurrency(){return a.object({code:a.string().allow(""),symbol:a.string().allow("")})}static CartDeliveryModesResponse(){return a.object({available_modes:a.array().items(a.string().allow("")),pickup_stores:a.array().items(a.number())})}static CartDetailResponse(){return a.object({applied_promo_details:a.array().items(n.AppliedPromotion()),breakup_values:n.CartBreakup(),buy_now:a.boolean(),checkout_mode:a.string().allow(""),comment:a.string().allow(""),coupon_text:a.string().allow(""),currency:n.CartCurrency(),delivery_charge_info:a.string().allow(""),delivery_promise:n.ShipmentPromise(),gstin:a.string().allow(""),id:a.string().allow(""),is_valid:a.boolean(),items:a.array().items(n.CartProductInfo()),last_modified:a.string().allow(""),message:a.string().allow(""),pan_config:a.any(),pan_no:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),restrict_checkout:a.boolean()})}static CartItemCountResponse(){return a.object({user_cart_items_count:a.number()})}static CartMetaMissingResponse(){return a.object({errors:a.array().items(a.string().allow(""))})}static CartMetaRequest(){return a.object({checkout_mode:a.string().allow(""),comment:a.string().allow(""),delivery_slots:a.any(),gift_details:n.ArticleGiftDetail(),gstin:a.string().allow(""),pick_up_customer_details:a.any()})}static CartMetaResponse(){return a.object({is_valid:a.boolean(),message:a.string().allow("")})}static CartPosCheckoutDetailRequest(){return a.object({address_id:a.string().allow(""),aggregator:a.string().allow(""),billing_address:a.any(),billing_address_id:a.string().allow(""),callback_url:a.string().allow("").allow(null),custom_meta:a.array().items(n.CartCheckoutCustomMeta()),customer_details:a.any().allow(null),delivery_address:a.any(),extra_meta:a.any(),files:a.array().items(n.Files()),id:a.string().allow("").allow(null),merchant_code:a.string().allow(""),meta:a.any(),order_type:a.string().allow("").required(),ordering_store:a.number().allow(null),payment_auto_confirm:a.boolean(),payment_identifier:a.string().allow("").allow(null),payment_mode:a.string().allow("").required(),payment_params:a.any().allow(null),pick_at_store_uid:a.number().allow(null),pos:a.boolean(),staff:n.StaffCheckout()})}static CartProduct(){return a.object({_custom_json:a.any(),action:n.ProductAction(),brand:n.BaseInfo(),categories:a.array().items(n.CategoryInfo()),images:a.array().items(n.ProductImage()),item_code:a.string().allow("").allow(null),name:a.string().allow(""),slug:a.string().allow(""),tags:a.array().items(a.string().allow("")),teaser_tag:n.Tags(),type:a.string().allow(""),uid:a.number()})}static CartProductIdentifer(){return a.object({identifier:a.string().allow("")})}static CartProductInfo(){return a.object({article:n.ProductArticle(),availability:n.ProductAvailability(),bulk_offer:a.any(),coupon:n.CouponDetails(),coupon_message:a.string().allow(""),custom_order:a.any(),delivery_promise:n.ShipmentPromise(),discount:a.string().allow(""),identifiers:n.CartProductIdentifer().required(),is_set:a.boolean(),key:a.string().allow(""),message:a.string().allow(""),moq:a.any(),parent_item_identifiers:a.any(),price:n.ProductPriceInfo(),price_per_unit:n.ProductPriceInfo(),product:n.CartProduct(),promo_meta:n.PromoMeta(),promotions_applied:a.array().items(n.AppliedPromotion()),quantity:a.number()})}static CartShipmentsResponse(){return a.object({breakup_values:n.CartBreakup(),buy_now:a.boolean(),cart_id:a.number(),checkout_mode:a.string().allow(""),comment:a.string().allow(""),coupon_text:a.string().allow(""),currency:n.CartCurrency(),delivery_charge_info:a.string().allow(""),delivery_promise:n.ShipmentPromise(),error:a.boolean(),gstin:a.string().allow(""),id:a.string().allow(""),is_valid:a.boolean(),last_modified:a.string().allow(""),message:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),restrict_checkout:a.boolean(),shipments:a.array().items(n.ShipmentResponse()),uid:a.string().allow("")})}static CategoryInfo(){return a.object({name:a.string().allow(""),uid:a.number()})}static CheckCart(){return a.object({breakup_values:n.CartBreakup(),buy_now:a.boolean(),cart_id:a.number(),checkout_mode:a.string().allow(""),cod_available:a.boolean(),cod_charges:a.number(),cod_message:a.string().allow(""),comment:a.string().allow(""),coupon_text:a.string().allow(""),currency:n.CartCurrency(),delivery_charge_info:a.string().allow(""),delivery_charge_order_value:a.number(),delivery_charges:a.number(),delivery_promise:n.ShipmentPromise(),error_message:a.string().allow(""),gstin:a.string().allow(""),id:a.string().allow(""),is_valid:a.boolean(),items:a.array().items(n.CartProductInfo()),last_modified:a.string().allow(""),message:a.string().allow(""),order_id:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),restrict_checkout:a.boolean(),store_code:a.string().allow(""),store_emps:a.array().items(a.any()),success:a.boolean(),uid:a.string().allow(""),user_type:a.string().allow("")})}static Coupon(){return a.object({coupon_code:a.string().allow(""),coupon_type:a.string().allow("").allow(null),coupon_value:a.number(),description:a.string().allow("").allow(null),expires_on:a.string().allow(""),is_applicable:a.boolean(),is_applied:a.boolean(),max_discount_value:a.number(),message:a.string().allow(""),minimum_cart_value:a.number(),sub_title:a.string().allow(""),title:a.string().allow("")})}static CouponBreakup(){return a.object({code:a.string().allow(""),coupon_type:a.string().allow("").allow(null),coupon_value:a.number(),description:a.string().allow("").allow(null),is_applied:a.boolean(),max_discount_value:a.number(),message:a.string().allow(""),minimum_cart_value:a.number(),sub_title:a.string().allow("").allow(null),title:a.string().allow("").allow(null),type:a.string().allow(""),uid:a.string().allow(""),value:a.number()})}static CouponDetails(){return a.object({code:a.string().allow(""),discount_single_quantity:a.number(),discount_total_quantity:a.number()})}static CouponValidity(){return a.object({code:a.string().allow("").allow(null),discount:a.number(),display_message_en:a.string().allow("").allow(null),next_validation_required:a.boolean().allow(null),title:a.string().allow(""),valid:a.boolean()})}static CustomerDetails(){return a.object({email:a.string().allow("").allow(null),mobile:a.string().allow("").required(),name:a.string().allow("")})}static DeleteAddressResponse(){return a.object({id:a.string().allow(""),is_deleted:a.boolean()})}static DiscountRulesApp(){return a.object({item_criteria:a.any(),matched_buy_rules:a.array().items(a.string().allow("")),offer:a.any(),raw_offer:a.any()})}static DisplayBreakup(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),display:a.string().allow(""),key:a.string().allow(""),message:a.array().items(a.string().allow("")),value:a.number()})}static Files(){return a.object({key:a.string().allow("").required(),values:a.array().items(a.string().allow("")).required()})}static FreeGiftItem(){return a.object({item_brand_name:a.string().allow(""),item_id:a.number(),item_images_url:a.array().items(a.string().allow("")),item_name:a.string().allow(""),item_price_details:a.any(),item_slug:a.string().allow("")})}static GeoLocation(){return a.object({latitude:a.number(),longitude:a.number()})}static GetAddressesResponse(){return a.object({address:a.array().items(n.Address()),pii_masking:a.boolean()})}static GetCouponResponse(){return a.object({available_coupon_list:a.array().items(n.Coupon()),page:n.PageCoupon()})}static GetShareCartLinkRequest(){return a.object({id:a.string().allow(""),meta:a.any()})}static GetShareCartLinkResponse(){return a.object({share_url:a.string().allow(""),token:a.string().allow("")})}static GiftDetail(){return a.object({gift_message:a.string().allow(""),is_gift_applied:a.boolean()})}static LoyaltyPoints(){return a.object({applicable:a.number(),description:a.string().allow(""),is_applied:a.boolean(),total:a.number()})}static OfferItem(){return a.object({auto_applied:a.boolean(),best:a.boolean(),margin:a.number(),price:n.OfferPrice(),quantity:a.number(),total:a.number(),type:a.string().allow("")})}static OfferPrice(){return a.object({bulk_effective:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),effective:a.number(),marked:a.number()})}static OfferSeller(){return a.object({name:a.string().allow(""),uid:a.number()})}static Ownership(){return a.object({payable_by:a.string().allow(""),payable_category:a.string().allow("")})}static PageCoupon(){return a.object({current:a.number(),has_next:a.boolean(),has_previous:a.boolean(),total:a.number(),total_item_count:a.number()})}static PaymentCouponValidate(){return a.object({coupon_validity:n.CouponValidity(),message:a.string().allow(""),success:a.boolean().required()})}static PaymentSelectionLock(){return a.object({default_options:a.string().allow(""),enabled:a.boolean(),payment_identifier:a.string().allow("")})}static PickupStoreDetail(){return a.object({address:a.string().allow(""),address_type:a.string().allow(""),area:a.string().allow(""),area_code:a.string().allow(""),area_code_slug:a.string().allow(""),city:a.string().allow(""),country:a.string().allow(""),email:a.string().allow(""),id:a.number(),landmark:a.string().allow(""),name:a.string().allow(""),phone:a.string().allow(""),pincode:a.number(),state:a.string().allow(""),store_code:a.string().allow(""),uid:a.number()})}static ProductAction(){return a.object({query:n.ActionQuery(),type:a.string().allow(""),url:a.string().allow("")})}static ProductArticle(){return a.object({_custom_json:a.any(),cart_item_meta:a.any(),extra_meta:a.any(),gift_card:a.any(),identifier:a.any(),is_gift_visible:a.boolean(),meta:a.any(),mto_quantity:a.number(),parent_item_identifiers:a.any(),price:n.ArticlePriceInfo(),product_group_tags:a.array().items(a.string().allow("")),quantity:a.number(),seller:n.BaseInfo(),seller_identifier:a.string().allow(""),size:a.string().allow(""),store:n.StoreInfo(),type:a.string().allow(""),uid:a.string().allow("")})}static ProductAvailability(){return a.object({available_sizes:a.array().items(n.ProductAvailabilitySize()),deliverable:a.boolean(),is_valid:a.boolean(),other_store_quantity:a.number(),out_of_stock:a.boolean(),sizes:a.array().items(a.string().allow(""))})}static ProductAvailabilitySize(){return a.object({display:a.string().allow(""),is_available:a.boolean(),value:a.string().allow("")})}static ProductImage(){return a.object({aspect_ratio:a.string().allow(""),secure_url:a.string().allow(""),url:a.string().allow("")})}static ProductPrice(){return a.object({add_on:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),effective:a.number(),marked:a.number(),selling:a.number()})}static ProductPriceInfo(){return a.object({base:n.ProductPrice(),converted:n.ProductPrice()})}static PromiseFormatted(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static PromiseTimestamp(){return a.object({max:a.number(),min:a.number()})}static PromoMeta(){return a.object({message:a.string().allow("")})}static RawBreakup(){return a.object({cod_charge:a.number(),convenience_fee:a.number(),coupon:a.number(),delivery_charge:a.number(),discount:a.number(),fynd_cash:a.number(),gift_card:a.number(),gst_charges:a.number(),mrp_total:a.number(),subtotal:a.number(),total:a.number(),vog:a.number(),you_saved:a.number()})}static RewardPointRequest(){return a.object({points:a.boolean().required()})}static SaveAddressResponse(){return a.object({id:a.string().allow(""),is_default_address:a.boolean(),success:a.boolean()})}static SelectCartAddressRequest(){return a.object({billing_address_id:a.string().allow(""),cart_id:a.string().allow(""),id:a.string().allow("")})}static SharedCart(){return a.object({breakup_values:n.CartBreakup(),buy_now:a.boolean(),cart_id:a.number(),checkout_mode:a.string().allow(""),comment:a.string().allow(""),coupon_text:a.string().allow(""),currency:n.CartCurrency(),delivery_charge_info:a.string().allow(""),delivery_promise:n.ShipmentPromise(),gstin:a.string().allow(""),id:a.string().allow(""),is_valid:a.boolean(),items:a.array().items(n.CartProductInfo()),last_modified:a.string().allow(""),message:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),restrict_checkout:a.boolean(),shared_cart_details:n.SharedCartDetails(),uid:a.string().allow("")})}static SharedCartDetails(){return a.object({created_on:a.string().allow(""),meta:a.any(),source:a.any(),token:a.string().allow(""),user:a.any()})}static SharedCartResponse(){return a.object({cart:n.SharedCart(),error:a.string().allow("")})}static ShipmentPromise(){return a.object({formatted:n.PromiseFormatted(),timestamp:n.PromiseTimestamp()})}static ShipmentResponse(){return a.object({box_type:a.string().allow("").allow(null),dp_id:a.string().allow("").allow(null),dp_options:a.any().allow(null),fulfillment_id:a.number(),fulfillment_type:a.string().allow(""),items:a.array().items(n.CartProductInfo()),order_type:a.string().allow(""),promise:n.ShipmentPromise(),shipment_type:a.string().allow(""),shipments:a.number()})}static StaffCheckout(){return a.object({_id:a.string().allow("").required(),employee_code:a.string().allow(""),first_name:a.string().allow("").required(),last_name:a.string().allow("").required(),user:a.string().allow("").required()})}static StoreDetailsResponse(){return a.object({items:a.array().items(n.PickupStoreDetail())})}static StoreInfo(){return a.object({name:a.string().allow(""),store_code:a.string().allow(""),uid:a.number()})}static Tags(){return a.object({tags:a.any()})}static UpdateAddressResponse(){return a.object({id:a.string().allow(""),is_default_address:a.boolean(),is_updated:a.boolean(),success:a.boolean()})}static UpdateCartDetailResponse(){return a.object({cart:n.CartDetailResponse(),message:a.string().allow(""),success:a.boolean()})}static UpdateCartPaymentRequest(){return a.object({address_id:a.string().allow(""),aggregator_name:a.string().allow(""),id:a.string().allow(""),merchant_code:a.string().allow(""),payment_identifier:a.string().allow("").allow(null),payment_mode:a.string().allow("")})}static UpdateCartRequest(){return a.object({items:a.array().items(n.UpdateProductCart()),operation:a.string().allow("").required()})}static UpdateCartShipmentItem(){return a.object({article_uid:a.string().allow("").required(),quantity:a.number(),shipment_type:a.string().allow("").required()})}static UpdateCartShipmentRequest(){return a.object({shipments:a.array().items(n.UpdateCartShipmentItem()).required()})}static UpdateProductCart(){return a.object({_custom_json:a.any(),article_id:a.string().allow(""),extra_meta:a.any(),identifiers:n.CartProductIdentifer().required(),item_id:a.number(),item_index:a.number(),item_size:a.string().allow(""),meta:a.any(),parent_item_identifiers:a.any(),quantity:a.number()})}}e.exports=n},2857:(e,t,r)=>{const a=r(2705),n=r(6962);e.exports=class{static addAddress(){return a.object({body:n.Address().required()}).required()}static addItems(){return a.object({i:a.boolean(),b:a.boolean(),areaCode:a.string().allow(""),buyNow:a.boolean(),id:a.string().allow(""),body:n.AddCartRequest().required()}).required()}static applyCoupon(){return a.object({i:a.boolean(),b:a.boolean(),p:a.boolean(),id:a.string().allow(""),buyNow:a.boolean(),body:n.ApplyCouponRequest().required()}).required()}static applyRewardPoints(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),buyNow:a.boolean(),body:n.RewardPointRequest().required()}).required()}static checkoutCart(){return a.object({id:a.string().allow(""),body:n.CartPosCheckoutDetailRequest().required()}).required()}static getAddressById(){return a.object({id:a.string().allow("").required(),cartId:a.string().allow(""),buyNow:a.boolean(),mobileNo:a.string().allow(""),checkoutMode:a.string().allow(""),tags:a.string().allow(""),isDefault:a.boolean()}).required()}static getAddresses(){return a.object({cartId:a.string().allow(""),buyNow:a.boolean(),mobileNo:a.string().allow(""),checkoutMode:a.string().allow(""),tags:a.string().allow(""),isDefault:a.boolean()})}static getAvailableDeliveryModes(){return a.object({areaCode:a.string().allow("").required(),id:a.string().allow("")}).required()}static getBulkDiscountOffers(){return a.object({itemId:a.number(),articleId:a.string().allow(""),uid:a.number(),slug:a.string().allow("")})}static getCart(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),assignCardId:a.number(),areaCode:a.string().allow(""),buyNow:a.boolean()})}static getCartLastModified(){return a.object({id:a.string().allow("")})}static getCartShareLink(){return a.object({body:n.GetShareCartLinkRequest().required()}).required()}static getCartSharedItems(){return a.object({token:a.string().allow("").required()}).required()}static getCoupons(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static getItemCount(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static getShipments(){return a.object({pickAtStoreUid:a.number(),orderingStoreId:a.number(),p:a.boolean(),id:a.string().allow(""),addressId:a.string().allow(""),areaCode:a.string().allow(""),orderType:a.string().allow("")})}static getStoreAddressByUid(){return a.object({storeUid:a.number().required()}).required()}static removeAddress(){return a.object({id:a.string().allow("").required()}).required()}static removeCoupon(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static selectAddress(){return a.object({cartId:a.string().allow(""),buyNow:a.boolean(),i:a.boolean(),b:a.boolean(),body:n.SelectCartAddressRequest().required()}).required()}static selectPaymentMode(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),body:n.UpdateCartPaymentRequest().required()}).required()}static updateAddress(){return a.object({id:a.string().allow("").required(),body:n.Address().required()}).required()}static updateCart(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),areaCode:a.string().allow(""),buyNow:a.boolean(),body:n.UpdateCartRequest().required()}).required()}static updateCartMeta(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),body:n.CartMetaRequest().required()}).required()}static updateCartWithSharedItems(){return a.object({token:a.string().allow("").required(),action:a.string().allow("").required()}).required()}static updateShipments(){return a.object({i:a.boolean(),p:a.boolean(),id:a.string().allow(""),addressId:a.string().allow(""),areaCode:a.string().allow(""),orderType:a.string().allow(""),body:n.UpdateCartShipmentRequest().required()}).required()}static validateCouponForPayment(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),addressId:a.string().allow(""),paymentMode:a.string().allow(""),paymentIdentifier:a.string().allow(""),aggregatorName:a.string().allow(""),merchantCode:a.string().allow(""),iin:a.string().allow(""),network:a.string().allow(""),type:a.string().allow(""),cardId:a.string().allow("")})}}},4107:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=r(3589),i=r(3253),l=r(2743),{Logger:c}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={catalogueOrder:"/service/application/rewards/v1.0/catalogue/offer/order/",getOfferByName:"/service/application/rewards/v1.0/offers/{name}/",getOrderDiscount:"/service/application/rewards/v1.0/user/offer/order-discount/",getUserPoints:"/service/application/rewards/v1.0/user/points/",getUserPointsHistory:"/service/application/rewards/v1.0/user/points/history/",getUserReferralDetails:"/service/application/rewards/v1.0/user/referral/",redeemReferralCode:"/service/application/rewards/v1.0/user/referral/redeem/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async catalogueOrder({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.catalogueOrder().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.catalogueOrder().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > catalogueOrder \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.catalogueOrder,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.CatalogueOrderResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Rewards > catalogueOrder \n ${g}`}),d}async getOfferByName({name:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getOfferByName().validate({name:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getOfferByName().validate({name:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getOfferByName \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getOfferByName,params:{name:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.Offer().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Rewards > getOfferByName \n ${g}`}),d}async getOrderDiscount({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.getOrderDiscount().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.getOrderDiscount().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getOrderDiscount \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getOrderDiscount,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.OrderDiscountResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Rewards > getOrderDiscount \n ${g}`}),d}async getUserPoints({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getUserPoints().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getUserPoints().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getUserPoints \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getUserPoints,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.PointsResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Rewards > getUserPoints \n ${p}`}),u}async getUserPointsHistory({pageId:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const{error:u}=i.getUserPointsHistory().validate({pageId:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getUserPointsHistory().validate({pageId:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getUserPointsHistory \n ${d}`});const p={};p.page_id=e,p.page_size=t;const g=await a.execute(this._conf,"get",o({url:this._urls.getUserPointsHistory,params:{}}),p,void 0,{...r},{responseHeaders:s});let m=g;s&&(m=g[0]);const{error:w}=l.PointsHistoryResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&c({level:"WARN",message:`Response Validation Warnnings for application > Rewards > getUserPointsHistory \n ${w}`}),g}getUserPointsHistoryPaginator({pageSize:e}={}){const t=new s;return t.setCallback((async()=>{const r=t.nextId,a=(t.pageNo,await this.getUserPointsHistory({pageId:r,pageSize:e}));return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getUserReferralDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getUserReferralDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:s}=i.getUserReferralDetails().validate({},{abortEarly:!1,allowUnknown:!1});s&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getUserReferralDetails \n ${s}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getUserReferralDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=l.ReferralDetailsResponse().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&c({level:"WARN",message:`Response Validation Warnnings for application > Rewards > getUserReferralDetails \n ${p}`}),u}async redeemReferralCode({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:s}=i.redeemReferralCode().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(s)return Promise.reject(new n(s));const{error:u}=i.redeemReferralCode().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > redeemReferralCode \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.redeemReferralCode,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=l.RedeemReferralCodeResponse().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&c({level:"WARN",message:`Response Validation Warnnings for application > Rewards > redeemReferralCode \n ${g}`}),d}}},2743:(e,t,r)=>{const a=r(2705);class n{static Asset(){return a.object({aspect_ratio:a.string().allow(""),id:a.string().allow(""),secure_url:a.string().allow("")})}static CatalogueOrderRequest(){return a.object({articles:a.array().items(n.RewardsArticle())})}static CatalogueOrderResponse(){return a.object({articles:a.array().items(n.RewardsArticle())})}static DiscountProperties(){return a.object({absolute:a.number(),currency:a.string().allow(""),display_absolute:a.string().allow(""),display_percent:a.string().allow(""),percent:a.number()})}static Error(){return a.object({code:a.number(),exception:a.string().allow(""),info:a.string().allow(""),message:a.string().allow("")})}static Offer(){return a.object({_schedule:n.Schedule(),active:a.boolean(),application_id:a.string().allow(""),banner_image:n.Asset(),created_at:a.string().allow(""),name:a.string().allow(""),rule:a.any(),share:n.ShareMessages(),sub_text:a.string().allow(""),text:a.string().allow(""),type:a.string().allow(""),updated_at:a.string().allow(""),updated_by:a.string().allow(""),url:a.string().allow("")})}static OrderDiscountRequest(){return a.object({currency:a.string().allow(""),order_amount:a.number().required()})}static OrderDiscountResponse(){return a.object({applied_rule_bucket:n.OrderDiscountRuleBucket(),base_discount:n.DiscountProperties(),discount:n.DiscountProperties(),order_amount:a.number(),points:a.number()})}static OrderDiscountRuleBucket(){return a.object({high:a.number(),low:a.number(),max:a.number(),value:a.number(),value_type:a.string().allow("")})}static Page(){return a.object({current:a.number(),has_next:a.boolean(),has_previous:a.boolean(),item_total:a.number(),next_id:a.string().allow(""),size:a.number(),type:a.string().allow("").required()})}static PointsHistory(){return a.object({_id:a.string().allow(""),application_id:a.string().allow(""),claimed:a.boolean(),created_at:a.string().allow(""),expires_on:a.string().allow(""),meta:a.any(),points:a.number(),remaining_points:a.number(),text_1:a.string().allow(""),text_2:a.string().allow(""),text_3:a.string().allow(""),txn_name:a.string().allow(""),updated_at:a.string().allow(""),user_id:a.string().allow("")})}static PointsHistoryResponse(){return a.object({items:a.array().items(n.PointsHistory()),page:n.Page()})}static PointsResponse(){return a.object({points:a.number()})}static RedeemReferralCodeRequest(){return a.object({device_id:a.string().allow(""),referral_code:a.string().allow("")})}static RedeemReferralCodeResponse(){return a.object({message:a.string().allow(""),points:a.number(),redeemed:a.boolean(),referrer_id:a.string().allow(""),referrer_info:a.string().allow("")})}static ReferralDetailsResponse(){return a.object({referral:n.Offer(),referrer_info:a.string().allow(""),share:n.ShareMessages(),terms_conditions_link:a.string().allow(""),user:n.ReferralDetailsUser()})}static ReferralDetailsUser(){return a.object({blocked:a.boolean(),points:a.number(),redeemed:a.boolean(),referral_code:a.string().allow("")})}static RewardsArticle(){return a.object({id:a.string().allow(""),points:a.number(),price:a.number()})}static Schedule(){return a.object({cron:a.string().allow(""),duration:a.number(),end:a.string().allow(""),start:a.string().allow("")})}static ShareMessages(){return a.object({email:a.number(),facebook:a.string().allow(""),fallback:a.string().allow(""),message:a.string().allow(""),messenger:a.string().allow(""),sms:a.string().allow(""),text:a.string().allow(""),twitter:a.string().allow(""),whatsapp:a.string().allow("")})}}e.exports=n},3253:(e,t,r)=>{const a=r(2705),n=r(2743);e.exports=class{static catalogueOrder(){return a.object({body:n.CatalogueOrderRequest().required()}).required()}static getOfferByName(){return a.object({name:a.string().allow("").required()}).required()}static getOrderDiscount(){return a.object({body:n.OrderDiscountRequest().required()}).required()}static getUserPoints(){return a.object({})}static getUserPointsHistory(){return a.object({pageId:a.string().allow(""),pageSize:a.number()})}static getUserReferralDetails(){return a.object({})}static redeemReferralCode(){return a.object({body:n.RedeemReferralCodeRequest().required()}).required()}}},3740:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(9421)),i=r(6734),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={createShortLink:"/service/application/share/v1.0/links/short-link/",getApplicationQRCode:"/service/application/share/v1.0/qr/",getCollectionQRCodeBySlug:"/service/application/share/v1.0/qr/collection/{slug}/",getOriginalShortLinkByHash:"/service/application/share/v1.0/links/short-link/{hash}/original/",getProductQRCodeBySlug:"/service/application/share/v1.0/qr/products/{slug}/",getShortLinkByHash:"/service/application/share/v1.0/links/short-link/{hash}/",getUrlQRCode:"/service/application/share/v1.0/qr/url/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async createShortLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.createShortLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.createShortLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Share > createShortLink \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.createShortLink,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ShortLinkRes().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Share > createShortLink \n ${g}`}),d}async getApplicationQRCode({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getApplicationQRCode().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getApplicationQRCode().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > Share > getApplicationQRCode \n ${c}`});const u=await a.execute(this._conf,"post",o({url:this._urls.getApplicationQRCode,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.QRCodeResp().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > Share > getApplicationQRCode \n ${p}`}),u}async getCollectionQRCodeBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getCollectionQRCodeBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getCollectionQRCodeBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Share > getCollectionQRCodeBySlug \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getCollectionQRCodeBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.QRCodeResp().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Share > getCollectionQRCodeBySlug \n ${g}`}),d}async getOriginalShortLinkByHash({hash:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getOriginalShortLinkByHash().validate({hash:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getOriginalShortLinkByHash().validate({hash:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Share > getOriginalShortLinkByHash \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getOriginalShortLinkByHash,params:{hash:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ShortLinkRes().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Share > getOriginalShortLinkByHash \n ${g}`}),d}async getProductQRCodeBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getProductQRCodeBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getProductQRCodeBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Share > getProductQRCodeBySlug \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.getProductQRCodeBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.QRCodeResp().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Share > getProductQRCodeBySlug \n ${g}`}),d}async getShortLinkByHash({hash:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getShortLinkByHash().validate({hash:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getShortLinkByHash().validate({hash:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Share > getShortLinkByHash \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getShortLinkByHash,params:{hash:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ShortLinkRes().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Share > getShortLinkByHash \n ${g}`}),d}async getUrlQRCode({url:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getUrlQRCode().validate({url:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getUrlQRCode().validate({url:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Share > getUrlQRCode \n ${u}`});const d={};d.url=e;const p=await a.execute(this._conf,"post",o({url:this._urls.getUrlQRCode,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.QRCodeResp().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Share > getUrlQRCode \n ${m}`}),p}}},6734:(e,t,r)=>{const a=r(2705);class n{static Attribution(){return a.object({campaign_cookie_expiry:a.string().allow("")})}static CampaignShortLink(){return a.object({medium:a.string().allow(""),source:a.string().allow("")})}static ErrorRes(){return a.object({message:a.string().allow("")})}static QRCodeResp(){return a.object({link:a.string().allow(""),svg:a.string().allow("")})}static RedirectDevice(){return a.object({link:a.string().allow(""),type:a.string().allow("")})}static Redirects(){return a.object({android:n.RedirectDevice(),force_web:a.boolean(),ios:n.RedirectDevice(),web:n.WebRedirect()})}static ShortLinkReq(){return a.object({active:a.boolean(),attribution:n.Attribution(),campaign:n.CampaignShortLink(),count:a.number(),enable_tracking:a.boolean(),expire_at:a.string().allow(""),hash:a.string().allow(""),personalized:a.boolean(),redirects:n.Redirects(),social_media_tags:n.SocialMediaTags(),title:a.string().allow("").required(),url:a.string().allow("").required()})}static ShortLinkRes(){return a.object({_id:a.string().allow(""),active:a.boolean(),app_redirect:a.boolean(),application:a.string().allow(""),attribution:n.Attribution(),campaign:n.CampaignShortLink(),count:a.number(),created_at:a.string().allow(""),created_by:a.string().allow(""),enable_tracking:a.boolean(),expire_at:a.string().allow(""),fallback:a.string().allow(""),meta:a.any(),personalized:a.boolean(),redirects:n.Redirects(),social_media_tags:n.SocialMediaTags(),title:a.string().allow(""),updated_at:a.string().allow(""),url:n.UrlInfo(),user_id:a.string().allow("")})}static SocialMediaTags(){return a.object({description:a.string().allow(""),image:a.string().allow(""),title:a.string().allow("")})}static UrlInfo(){return a.object({hash:a.string().allow(""),original:a.string().allow(""),short:a.string().allow("")})}static WebRedirect(){return a.object({link:a.string().allow(""),type:a.string().allow("")})}}e.exports=n},9421:(e,t,r)=>{const a=r(2705),n=r(6734);e.exports=class{static createShortLink(){return a.object({body:n.ShortLinkReq().required()}).required()}static getApplicationQRCode(){return a.object({})}static getCollectionQRCodeBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getOriginalShortLinkByHash(){return a.object({hash:a.string().allow("").required()}).required()}static getProductQRCodeBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getShortLinkByHash(){return a.object({hash:a.string().allow("").required()}).required()}static getUrlQRCode(){return a.object({url:a.string().allow("").required()}).required()}}},4683:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(1088)),i=r(6377),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAllPages:"/service/application/theme/v1.0/{theme_id}/page",getAppliedTheme:"/service/application/theme/v2.0/applied-theme",getPage:"/service/application/theme/v1.0/{theme_id}/{page_value}",getThemeForPreview:"/service/application/theme/v2.0/{theme_id}/preview"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAllPages({themeId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getAllPages().validate({themeId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getAllPages().validate({themeId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getAllPages \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getAllPages,params:{themeId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.AllAvailablePageSchema().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Theme > getAllPages \n ${g}`}),d}async getAppliedTheme({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getAppliedTheme().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getAppliedTheme().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getAppliedTheme \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getAppliedTheme,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.ThemesSchema().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > Theme > getAppliedTheme \n ${p}`}),u}async getPage({themeId:e,pageValue:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.getPage().validate({themeId:e,pageValue:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.getPage().validate({themeId:e,pageValue:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getPage \n ${d}`});const p=await a.execute(this._conf,"get",o({url:this._urls.getPage,params:{themeId:e,pageValue:t}}),{},void 0,{...r},{responseHeaders:c});let g=p;c&&(g=p[0]);const{error:m}=i.AvailablePageSchema().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > Theme > getPage \n ${m}`}),p}async getThemeForPreview({themeId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getThemeForPreview().validate({themeId:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getThemeForPreview().validate({themeId:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getThemeForPreview \n ${u}`});const d=await a.execute(this._conf,"get",o({url:this._urls.getThemeForPreview,params:{themeId:e}}),{},void 0,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ThemesSchema().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > Theme > getThemeForPreview \n ${g}`}),d}}},6377:(e,t,r)=>{const a=r(2705);class n{static AdvanceSetting(){return a.object({divider_stroke_highlight:n.DividerStrokeHighlightSetting(),overlay_popup:n.OverlayPopupSetting(),user_alerts:n.UserAlertsSetting()})}static AllAvailablePageSchema(){return a.object({pages:a.array().items(n.AvailablePageSchema())})}static Assets(){return a.object({common_js:n.CommonJS(),css:n.CSS(),umd_js:n.UMDJs()})}static AuthConfig(){return a.object({show_footer_auth:a.boolean(),show_header_auth:a.boolean()})}static AvailablePagePredicate(){return a.object({route:n.AvailablePageRoutePredicate(),screen:n.AvailablePageScreenPredicate(),user:n.AvailablePageUserPredicate()})}static AvailablePageRoutePredicate(){return a.object({exact_url:a.string().allow(""),query:a.any(),selected:a.string().allow("")})}static AvailablePageSchema(){return a.object({_id:a.string().allow(""),path:a.string().allow(""),props:a.array().items(a.any()),sections:a.array().items(n.AvailablePageSchemaSections()),sections_meta:a.array().items(n.AvailablePageSectionMetaAttributes()),seo:n.AvailablePageSeo(),text:a.string().allow(""),theme:a.string().allow(""),type:a.string().allow(""),value:a.string().allow("")})}static AvailablePageSchemaSections(){return a.object({blocks:a.array().items(a.any()),label:a.string().allow(""),name:a.string().allow(""),predicate:n.AvailablePagePredicate(),preset:a.any(),props:a.any()})}static AvailablePageScreenPredicate(){return a.object({desktop:a.boolean(),mobile:a.boolean(),tablet:a.boolean()})}static AvailablePageSectionMetaAttributes(){return a.object({attributes:a.any()})}static AvailablePageSeo(){return a.object({_id:a.string().allow(""),description:a.string().allow(""),title:a.string().allow("")})}static AvailablePageUserPredicate(){return a.object({anonymous:a.boolean(),authenticated:a.boolean()})}static BlitzkriegApiErrorSchema(){return a.object({message:a.string().allow("")})}static BlitzkriegInternalServerErrorSchema(){return a.object({message:a.string().allow("")})}static Block(){return a.object({name:a.string().allow(""),props:n.BlockProps(),type:a.string().allow("")})}static BlockProps(){return a.object({image:n.ImagePickerProp(),slide_link:n.UrlProp()})}static ButtonSetting(){return a.object({button_link:a.string().allow(""),button_primary:a.string().allow(""),button_secondary:a.string().allow("")})}static CheckboxProp(){return a.object({type:a.string().allow(""),value:a.boolean()})}static Colors(){return a.object({accent_color:a.string().allow(""),bg_color:a.string().allow(""),button_secondary_color:a.string().allow(""),link_color:a.string().allow(""),primary_color:a.string().allow(""),secondary_color:a.string().allow("")})}static CommonJS(){return a.object({link:a.string().allow("")})}static Config(){return a.object({current:a.string().allow("").required(),global_schema:n.GlobalSchema(),list:a.array().items(n.ThemeConfiguration()).required(),preset:n.Preset()})}static CSS(){return a.object({links:a.array().items(a.string().allow(""))})}static CustomConfig(){return a.object({props:n.CustomProps()})}static CustomProps(){return a.object({button_add_to_cart_color:a.string().allow(""),button_add_to_cart_label_color:a.string().allow(""),button_primary_color:a.string().allow(""),button_primary_label_color:a.string().allow(""),button_secondary_color:a.string().allow(""),button_secondary_label_color:a.string().allow(""),button_tertiary_color:a.string().allow(""),button_tertiary_hover_color:a.string().allow(""),button_tertiary_hover_text_color:a.string().allow(""),button_tertiary_label_color:a.string().allow(""),disable_cart:a.boolean(),footer_bg_color:a.string().allow(""),footer_border_color:a.string().allow(""),footer_nav_hover_color:a.string().allow(""),footer_text_color:a.string().allow(""),header_bg_color:a.string().allow(""),header_border_color:a.string().allow(""),header_cart_notification_bg_color:a.string().allow(""),header_cart_notification_text_color:a.string().allow(""),header_icon_color:a.string().allow(""),header_nav_hover_color:a.string().allow(""),header_text_color:a.string().allow(""),is_menu_below_logo:a.boolean(),menu_position:a.string().allow(""),text_body_color:a.string().allow(""),text_discount_color:a.string().allow(""),text_heading_link_color:a.string().allow(""),text_price_color:a.string().allow(""),text_sale_price_color:a.string().allow(""),text_strikethrough_price_color:a.string().allow("")})}static DividerStrokeHighlightSetting(){return a.object({divider_strokes:a.string().allow(""),highlight:a.string().allow("")})}static Font(){return a.object({family:a.string().allow("").required(),variants:n.FontVariants().required()})}static FontVariant(){return a.object({file:a.string().allow("").required(),name:a.string().allow("").required()})}static FontVariants(){return a.object({bold:n.FontVariant(),light:n.FontVariant(),medium:n.FontVariant(),regular:n.FontVariant(),semi_bold:n.FontVariant()})}static FooterSetting(){return a.object({footer_background:a.string().allow(""),footer_body_text:a.string().allow(""),footer_bottom_background:a.string().allow(""),footer_heading_text:a.string().allow(""),footer_icon:a.string().allow("")})}static GeneralSetting(){return a.object({button:n.ButtonSetting(),footer:n.FooterSetting(),header:n.HeaderSetting(),sale_discount:n.SaleDiscountSetting(),text:n.TextSetting(),theme:n.ThemeSetting()})}static GlobalConfig(){return a.object({custom:n.CustomConfig(),statics:n.StaticConfig()})}static GlobalSchema(){return a.object({props:a.array().items(n.Prop())})}static HeaderSetting(){return a.object({header_background:a.string().allow(""),header_icon:a.string().allow(""),header_nav:a.string().allow("")})}static ImagePickerProp(){return a.object({type:a.string().allow(""),value:a.string().allow("")})}static Images(){return a.object({desktop:a.string().allow(""),mobile:a.string().allow("")})}static Meta(){return a.object({description:a.string().allow(""),images:n.Images(),industry:a.array().items(a.string().allow("")),name:a.string().allow(""),payment:n.ThemePayment(),release:n.Release(),slug:a.string().allow("")})}static OverlayPopupSetting(){return a.object({dialog_backgroung:a.string().allow(""),overlay:a.string().allow("")})}static Page(){return a.object({current:a.number(),has_next:a.boolean(),has_previous:a.boolean(),item_total:a.number(),next_id:a.string().allow(""),size:a.number(),type:a.string().allow("").required()})}static PaletteConfig(){return a.object({advance_setting:n.AdvanceSetting(),general_setting:n.GeneralSetting()})}static Predicate(){return a.object({route:n.Route(),screen:n.Screen(),user:n.ThemeUserSchema()})}static Preset(){return a.object({pages:a.array().items(n.Page())})}static Prop(){return a.object({category:a.string().allow(""),id:a.string().allow(""),info:a.string().allow(""),label:a.string().allow(""),type:a.string().allow("")})}static RangeProp(){return a.object({type:a.string().allow(""),value:a.number()})}static Release(){return a.object({notes:a.string().allow(""),version:a.string().allow("")})}static Route(){return a.object({exact_url:a.string().allow(""),selected:a.string().allow("")})}static SaleDiscountSetting(){return a.object({sale_badge_background:a.string().allow(""),sale_badge_text:a.string().allow(""),sale_discount_text:a.string().allow(""),sale_timer:a.string().allow("")})}static Screen(){return a.object({desktop:a.boolean(),mobile:a.boolean(),tablet:a.boolean()})}static Section(){return a.object({blocks:a.array().items(n.Block()),name:a.string().allow(""),predicate:n.Predicate(),preset:n.SectionPreset(),props:n.SectionProps()})}static SectionItem(){return a.object({blocks:a.array().items(a.any()),label:a.string().allow(""),name:a.string().allow(""),props:a.array().items(a.any())})}static SectionPreset(){return a.object({blocks:a.array().items(n.Block())})}static SectionProps(){return a.object({autoplay:n.CheckboxProp(),item_margin:n.TextProp(),slide_interval:n.RangeProp(),title:n.TextProp()})}static StaticConfig(){return a.object({props:n.StaticProps()})}static StaticProps(){return a.object({auth:n.AuthConfig(),colors:n.Colors(),palette:n.PaletteConfig()})}static TextProp(){return a.object({type:a.string().allow(""),value:a.string().allow("")})}static TextSetting(){return a.object({text_body:a.string().allow(""),text_heading:a.string().allow(""),text_label:a.string().allow(""),text_secondary:a.string().allow("")})}static ThemeConfiguration(){return a.object({global_config:a.any(),name:a.string().allow(""),page:a.array().items(a.string().allow(""))})}static ThemePayment(){return a.object({amount:a.number(),is_paid:a.boolean()})}static ThemeSetting(){return a.object({page_background:a.string().allow(""),theme_accent:a.string().allow("")})}static ThemesSchema(){return a.object({_id:a.string().allow(""),application_id:a.string().allow(""),applied:a.boolean(),assets:n.Assets(),available_sections:a.array().items(n.SectionItem()),config:n.Config(),created_at:a.string().allow(""),font:n.Font(),is_private:a.boolean(),marketplace_theme_id:a.string().allow(""),meta:n.Meta(),name:a.string().allow(""),styles:a.any(),tags:a.array().items(a.string().allow("")),template_theme_id:a.string().allow(""),updated_at:a.string().allow(""),version:a.string().allow("")})}static ThemeUserSchema(){return a.object({anonymous:a.boolean(),authenticated:a.boolean()})}static UMDJs(){return a.object({links:a.array().items(a.string().allow(""))})}static UrlProp(){return a.object({type:a.string().allow(""),value:a.string().allow("")})}static UserAlertsSetting(){return a.object({error_background:a.string().allow(""),error_text:a.string().allow(""),info_background:a.string().allow(""),info_text:a.string().allow(""),success_background:a.string().allow(""),success_text:a.string().allow("")})}}e.exports=n},1088:(e,t,r)=>{const a=r(2705);r(6377),e.exports=class{static getAllPages(){return a.object({themeId:a.string().allow("").required()}).required()}static getAppliedTheme(){return a.object({})}static getPage(){return a.object({themeId:a.string().allow("").required(),pageValue:a.string().allow("").required()}).required()}static getThemeForPreview(){return a.object({themeId:a.string().allow("").required()}).required()}}},9792:(e,t,r)=>{const a=r(7886),{FDKClientValidationError:n}=r(7208),o=r(7854),s=(r(3589),r(7727)),i=r(7022),{Logger:l}=r(7378);r(2705),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addEmail:"/service/application/user/profile/v1.0/email",addMobileNumber:"/service/application/user/profile/v1.0/mobile",deleteEmail:"/service/application/user/profile/v1.0/email",deleteMobileNumber:"/service/application/user/profile/v1.0/mobile",deleteUser:"/service/application/user/authentication/v1.0/delete",forgotPassword:"/service/application/user/authentication/v1.0/login/password/reset/forgot",getListOfActiveSessions:"/service/application/user/authentication/v1.0/sessions",getLoggedInUser:"/service/application/user/authentication/v1.0/session",getPlatformConfig:"/service/application/user/platform/v1.0/config",hasPassword:"/service/application/user/authentication/v1.0/has-password",loginWithAppleIOS:"/service/application/user/authentication/v1.0/login/apple-ios",loginWithEmailAndPassword:"/service/application/user/authentication/v1.0/login/password",loginWithFacebook:"/service/application/user/authentication/v1.0/login/facebook-token",loginWithGoogle:"/service/application/user/authentication/v1.0/login/google-token",loginWithGoogleAndroid:"/service/application/user/authentication/v1.0/login/google-android",loginWithGoogleIOS:"/service/application/user/authentication/v1.0/login/google-ios",loginWithOTP:"/service/application/user/authentication/v1.0/login/otp",loginWithToken:"/service/application/user/authentication/v1.0/login/token",logout:"/service/application/user/authentication/v1.0/logout",registerWithForm:"/service/application/user/authentication/v1.0/register/form",resetForgotPassword:"/service/application/user/authentication/v1.0/login/password/forgot",sendForgotOTPOnEmail:"/service/application/user/authentication/v1.0/otp/forgot/email/send",sendForgotOTPOnMobile:"/service/application/user/authentication/v1.0/otp/forgot/mobile/send",sendOTPOnEmail:"/service/application/user/authentication/v1.0/otp/email/send",sendOTPOnMobile:"/service/application/user/authentication/v1.0/otp/mobile/send",sendResetPasswordEmail:"/service/application/user/authentication/v1.0/login/password/reset",sendResetPasswordMobile:"/service/application/user/authentication/v1.0/login/password/mobile/reset",sendResetToken:"/service/application/user/authentication/v1.0/login/password/reset/token",sendVerificationLinkToEmail:"/service/application/user/profile/v1.0/email/link/send",sendVerificationLinkToMobile:"/service/application/user/profile/v1.0/mobile/link/send",setEmailAsPrimary:"/service/application/user/profile/v1.0/email/primary",setMobileNumberAsPrimary:"/service/application/user/profile/v1.0/mobile/primary",updatePassword:"/service/application/user/authentication/v1.0/password",updateProfile:"/service/application/user/profile/v1.0/detail",verifyEmail:"/service/application/user/authentication/v1.0/verify/email",verifyEmailForgotOTP:"/service/application/user/authentication/v1.0/otp/forgot/email/verify",verifyEmailOTP:"/service/application/user/authentication/v1.0/otp/email/verify",verifyMobile:"/service/application/user/authentication/v1.0/verify/mobile",verifyMobileForgotOTP:"/service/application/user/authentication/v1.0/otp/forgot/mobile/verify",verifyMobileOTP:"/service/application/user/authentication/v1.0/otp/mobile/verify"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.addEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.addEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > addEmail \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"put",o({url:this._urls.addEmail,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.VerifyEmailOTPSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > addEmail \n ${w}`}),g}async addMobileNumber({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.addMobileNumber().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.addMobileNumber().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > addMobileNumber \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"put",o({url:this._urls.addMobileNumber,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.VerifyMobileOTPSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > addMobileNumber \n ${w}`}),g}async deleteEmail({active:e,primary:t,verified:r,email:c,platform:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=s.deleteEmail().validate({active:e,primary:t,verified:r,email:c,platform:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=s.deleteEmail().validate({active:e,primary:t,verified:r,email:c,platform:u},{abortEarly:!1,allowUnknown:!1});m&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > deleteEmail \n ${m}`});const w={};w.platform=u,w.active=e,w.primary=t,w.verified=r,w.email=c;const y=await a.execute(this._conf,"delete",o({url:this._urls.deleteEmail,params:{}}),w,void 0,{...d},{responseHeaders:p});let f=y;p&&(f=y[0]);const{error:b}=i.LoginSuccess().validate(f,{abortEarly:!1,allowUnknown:!1});return b&&l({level:"WARN",message:`Response Validation Warnnings for application > User > deleteEmail \n ${b}`}),y}async deleteMobileNumber({active:e,primary:t,verified:r,countryCode:c,phone:u,platform:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=s.deleteMobileNumber().validate({active:e,primary:t,verified:r,countryCode:c,phone:u,platform:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=s.deleteMobileNumber().validate({active:e,primary:t,verified:r,countryCode:c,phone:u,platform:d},{abortEarly:!1,allowUnknown:!1});w&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > deleteMobileNumber \n ${w}`});const y={};y.platform=d,y.active=e,y.primary=t,y.verified=r,y.country_code=c,y.phone=u;const f=await a.execute(this._conf,"delete",o({url:this._urls.deleteMobileNumber,params:{}}),y,void 0,{...p},{responseHeaders:g});let b=f;g&&(b=f[0]);const{error:h}=i.LoginSuccess().validate(b,{abortEarly:!1,allowUnknown:!1});return h&&l({level:"WARN",message:`Response Validation Warnnings for application > User > deleteMobileNumber \n ${h}`}),f}async deleteUser({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.deleteUser().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.deleteUser().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > deleteUser \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.deleteUser,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.DeleteUserSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > deleteUser \n ${g}`}),d}async forgotPassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.forgotPassword().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.forgotPassword().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > forgotPassword \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.forgotPassword,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.LoginSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > forgotPassword \n ${g}`}),d}async getListOfActiveSessions({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getListOfActiveSessions().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getListOfActiveSessions().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > getListOfActiveSessions \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getListOfActiveSessions,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.SessionListSuccess().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > User > getListOfActiveSessions \n ${p}`}),u}async getLoggedInUser({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.getLoggedInUser().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.getLoggedInUser().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > getLoggedInUser \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.getLoggedInUser,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.UserObjectSchema().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > User > getLoggedInUser \n ${p}`}),u}async getPlatformConfig({name:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.getPlatformConfig().validate({name:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.getPlatformConfig().validate({name:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > getPlatformConfig \n ${u}`});const d={};d.name=e;const p=await a.execute(this._conf,"get",o({url:this._urls.getPlatformConfig,params:{}}),d,void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=i.PlatformSchema().validate(g,{abortEarly:!1,allowUnknown:!1});return m&&l({level:"WARN",message:`Response Validation Warnnings for application > User > getPlatformConfig \n ${m}`}),p}async hasPassword({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.hasPassword().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.hasPassword().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > hasPassword \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.hasPassword,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.HasPasswordSuccess().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > User > hasPassword \n ${p}`}),u}async loginWithAppleIOS({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.loginWithAppleIOS().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.loginWithAppleIOS().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithAppleIOS \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.loginWithAppleIOS,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.AuthSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > loginWithAppleIOS \n ${w}`}),g}async loginWithEmailAndPassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.loginWithEmailAndPassword().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.loginWithEmailAndPassword().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithEmailAndPassword \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.loginWithEmailAndPassword,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.LoginSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > loginWithEmailAndPassword \n ${g}`}),d}async loginWithFacebook({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.loginWithFacebook().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.loginWithFacebook().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithFacebook \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.loginWithFacebook,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.AuthSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > loginWithFacebook \n ${w}`}),g}async loginWithGoogle({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.loginWithGoogle().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.loginWithGoogle().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithGoogle \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.loginWithGoogle,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.AuthSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > loginWithGoogle \n ${w}`}),g}async loginWithGoogleAndroid({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.loginWithGoogleAndroid().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.loginWithGoogleAndroid().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithGoogleAndroid \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.loginWithGoogleAndroid,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.AuthSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > loginWithGoogleAndroid \n ${w}`}),g}async loginWithGoogleIOS({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.loginWithGoogleIOS().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.loginWithGoogleIOS().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithGoogleIOS \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.loginWithGoogleIOS,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.AuthSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > loginWithGoogleIOS \n ${w}`}),g}async loginWithOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.loginWithOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.loginWithOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithOTP \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.loginWithOTP,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.SendOtpResponse().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > loginWithOTP \n ${w}`}),g}async loginWithToken({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.loginWithToken().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.loginWithToken().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithToken \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.loginWithToken,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.LoginSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > loginWithToken \n ${g}`}),d}async logout({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=s.logout().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:c}=s.logout().validate({},{abortEarly:!1,allowUnknown:!1});c&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > logout \n ${c}`});const u=await a.execute(this._conf,"get",o({url:this._urls.logout,params:{}}),{},void 0,{...e},{responseHeaders:t});let d=u;t&&(d=u[0]);const{error:p}=i.LogoutSuccess().validate(d,{abortEarly:!1,allowUnknown:!1});return p&&l({level:"WARN",message:`Response Validation Warnnings for application > User > logout \n ${p}`}),u}async registerWithForm({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.registerWithForm().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.registerWithForm().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > registerWithForm \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.registerWithForm,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.RegisterFormSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > registerWithForm \n ${w}`}),g}async resetForgotPassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.resetForgotPassword().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.resetForgotPassword().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > resetForgotPassword \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.resetForgotPassword,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ResetForgotPasswordSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > resetForgotPassword \n ${g}`}),d}async sendForgotOTPOnEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.sendForgotOTPOnEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.sendForgotOTPOnEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > sendForgotOTPOnEmail \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.sendForgotOTPOnEmail,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.EmailOtpSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > sendForgotOTPOnEmail \n ${w}`}),g}async sendForgotOTPOnMobile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.sendForgotOTPOnMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.sendForgotOTPOnMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > sendForgotOTPOnMobile \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.sendForgotOTPOnMobile,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.OtpSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > sendForgotOTPOnMobile \n ${w}`}),g}async sendOTPOnEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.sendOTPOnEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.sendOTPOnEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > sendOTPOnEmail \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.sendOTPOnEmail,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.EmailOtpSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > sendOTPOnEmail \n ${w}`}),g}async sendOTPOnMobile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.sendOTPOnMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.sendOTPOnMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > sendOTPOnMobile \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.sendOTPOnMobile,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.OtpSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > sendOTPOnMobile \n ${w}`}),g}async sendResetPasswordEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.sendResetPasswordEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.sendResetPasswordEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > sendResetPasswordEmail \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.sendResetPasswordEmail,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.ResetPasswordSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > sendResetPasswordEmail \n ${w}`}),g}async sendResetPasswordMobile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.sendResetPasswordMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.sendResetPasswordMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > sendResetPasswordMobile \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.sendResetPasswordMobile,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.ResetPasswordSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > sendResetPasswordMobile \n ${w}`}),g}async sendResetToken({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.sendResetToken().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.sendResetToken().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > sendResetToken \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.sendResetToken,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.ResetPasswordSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > sendResetToken \n ${g}`}),d}async sendVerificationLinkToEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.sendVerificationLinkToEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.sendVerificationLinkToEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > sendVerificationLinkToEmail \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.sendVerificationLinkToEmail,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.SendEmailVerifyLinkSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > sendVerificationLinkToEmail \n ${w}`}),g}async sendVerificationLinkToMobile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.sendVerificationLinkToMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.sendVerificationLinkToMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > sendVerificationLinkToMobile \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.sendVerificationLinkToMobile,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.SendMobileVerifyLinkSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > sendVerificationLinkToMobile \n ${w}`}),g}async setEmailAsPrimary({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.setEmailAsPrimary().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.setEmailAsPrimary().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > setEmailAsPrimary \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.setEmailAsPrimary,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.LoginSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > setEmailAsPrimary \n ${g}`}),d}async setMobileNumberAsPrimary({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.setMobileNumberAsPrimary().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.setMobileNumberAsPrimary().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > setMobileNumberAsPrimary \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.setMobileNumberAsPrimary,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.LoginSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > setMobileNumberAsPrimary \n ${g}`}),d}async updatePassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.updatePassword().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.updatePassword().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > updatePassword \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.updatePassword,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.VerifyEmailSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > updatePassword \n ${g}`}),d}async updateProfile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.updateProfile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.updateProfile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > updateProfile \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.updateProfile,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.ProfileEditSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > updateProfile \n ${w}`}),g}async verifyEmail({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.verifyEmail().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.verifyEmail().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyEmail \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.verifyEmail,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.VerifyEmailSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > verifyEmail \n ${g}`}),d}async verifyEmailForgotOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.verifyEmailForgotOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.verifyEmailForgotOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyEmailForgotOTP \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.verifyEmailForgotOTP,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.VerifyForgotOtpSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > verifyEmailForgotOTP \n ${w}`}),g}async verifyEmailOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.verifyEmailOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.verifyEmailOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyEmailOTP \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.verifyEmailOTP,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.VerifyOtpSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > verifyEmailOTP \n ${w}`}),g}async verifyMobile({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:c}=s.verifyMobile().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(c)return Promise.reject(new n(c));const{error:u}=s.verifyMobile().validate({body:e},{abortEarly:!1,allowUnknown:!1});u&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyMobile \n ${u}`});const d=await a.execute(this._conf,"post",o({url:this._urls.verifyMobile,params:{}}),{},e,{...t},{responseHeaders:r});let p=d;r&&(p=d[0]);const{error:g}=i.VerifyEmailSuccess().validate(p,{abortEarly:!1,allowUnknown:!1});return g&&l({level:"WARN",message:`Response Validation Warnnings for application > User > verifyMobile \n ${g}`}),d}async verifyMobileForgotOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.verifyMobileForgotOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.verifyMobileForgotOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyMobileForgotOTP \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.verifyMobileForgotOTP,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.VerifyForgotOtpSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > verifyMobileForgotOTP \n ${w}`}),g}async verifyMobileOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const{error:u}=s.verifyMobileOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=s.verifyMobileOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});d&&l({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyMobileOTP \n ${d}`});const p={};p.platform=t;const g=await a.execute(this._conf,"post",o({url:this._urls.verifyMobileOTP,params:{}}),p,e,{...r},{responseHeaders:c});let m=g;c&&(m=g[0]);const{error:w}=i.VerifyOtpSuccess().validate(m,{abortEarly:!1,allowUnknown:!1});return w&&l({level:"WARN",message:`Response Validation Warnnings for application > User > verifyMobileOTP \n ${w}`}),g}}},7022:(e,t,r)=>{const a=r(2705);class n{static Accountkit(){return a.object({app_id:a.string().allow("")})}static APIError(){return a.object({code:a.string().allow(""),info:a.string().allow(""),message:a.string().allow(""),meta:a.any(),request_id:a.string().allow("")})}static AuthenticationApiErrorSchema(){return a.object({message:a.string().allow("")})}static AuthenticationInternalServerErrorSchema(){return a.object({message:a.string().allow("")})}static AuthSuccess(){return a.object({register_token:a.string().allow(""),user:n.UserSchema(),user_exists:a.boolean()})}static CodeRequestBodySchema(){return a.object({code:a.string().allow("")})}static DeleteAccountConsent(){return a.object({consent_text:a.string().allow("")})}static DeleteAccountReasons(){return a.object({reason_id:a.string().allow(""),reason_text:a.string().allow(""),show_text_area:a.boolean()})}static DeleteApplicationUserRequestSchema(){return a.object({otp:a.string().allow(""),reason:a.string().allow(""),reason_id:a.string().allow(""),request_id:a.string().allow(""),user_id:a.string().allow("")})}static DeleteUserSuccess(){return a.object({success:a.boolean()})}static EditEmailRequestSchema(){return a.object({email:a.string().allow("")})}static EditMobileRequestSchema(){return a.object({country_code:a.string().allow(""),phone:a.string().allow("")})}static EditProfileMobileSchema(){return a.object({country_code:a.string().allow(""),phone:a.string().allow("")})}static EditProfileRequestSchema(){return a.object({android_hash:a.string().allow(""),country_code:a.string().allow(""),dob:a.string().allow(""),email:a.string().allow(""),first_name:a.string().allow(""),gender:a.string().allow(""),last_name:a.string().allow(""),mobile:n.EditProfileMobileSchema(),profile_pic_url:a.string().allow(""),register_token:a.string().allow(""),sender:a.string().allow("")})}static Email(){return a.object({active:a.boolean(),email:a.string().allow(""),primary:a.boolean(),verified:a.boolean()})}static EmailOtpSuccess(){return a.object({success:a.boolean()})}static Facebook(){return a.object({app_id:a.string().allow("")})}static FlashCard(){return a.object({background_color:a.string().allow(""),text:a.string().allow(""),text_color:a.string().allow("")})}static ForgotPasswordRequestSchema(){return a.object({code:a.string().allow(""),password:a.string().allow("")})}static FormRegisterRequestSchema(){return a.object({email:a.string().allow(""),first_name:a.string().allow(""),gender:a.string().allow(""),last_name:a.string().allow(""),password:a.string().allow(""),phone:n.FormRegisterRequestSchemaPhone(),register_token:a.string().allow("")})}static FormRegisterRequestSchemaPhone(){return a.object({country_code:a.string().allow(""),mobile:a.string().allow("")})}static Google(){return a.object({app_id:a.string().allow("")})}static HasPasswordSuccess(){return a.object({result:a.boolean()})}static Login(){return a.object({otp:a.boolean(),password:a.boolean()})}static LoginSuccess(){return a.object({register_token:a.string().allow(""),request_id:a.string().allow(""),user:n.UserSchema()})}static LogoutSuccess(){return a.object({logout:a.boolean()})}static LookAndFeel(){return a.object({background_color:a.string().allow(""),card_position:a.string().allow("")})}static MetaSchema(){return a.object({fynd_default:a.boolean()})}static OAuthRequestAppleSchema(){return a.object({oauth:n.OAuthRequestAppleSchemaOauth(),profile:n.OAuthRequestAppleSchemaProfile(),user_identifier:a.string().allow("")})}static OAuthRequestAppleSchemaOauth(){return a.object({identity_token:a.string().allow("")})}static OAuthRequestAppleSchemaProfile(){return a.object({first_name:a.string().allow(""),full_name:a.string().allow(""),last_name:a.string().allow("")})}static OAuthRequestSchema(){return a.object({is_signed_in:a.boolean(),oauth2:n.OAuthRequestSchemaOauth2(),profile:n.OAuthRequestSchemaProfile()})}static OAuthRequestSchemaOauth2(){return a.object({access_token:a.string().allow(""),expiry:a.number(),refresh_token:a.string().allow("")})}static OAuthRequestSchemaProfile(){return a.object({email:a.string().allow(""),first_name:a.string().allow(""),full_name:a.string().allow(""),id:a.string().allow(""),image:a.string().allow(""),last_name:a.string().allow("")})}static OtpSuccess(){return a.object({country_code:a.string().allow(""),message:a.string().allow(""),mobile:a.string().allow(""),register_token:a.string().allow(""),request_id:a.string().allow(""),resend_timer:a.number(),resend_token:a.string().allow(""),success:a.boolean()})}static PasswordLoginRequestSchema(){return a.object({captcha_code:a.string().allow(""),password:a.string().allow(""),username:a.string().allow("")})}static PhoneNumber(){return a.object({active:a.boolean(),country_code:a.number(),phone:a.string().allow(""),primary:a.boolean(),verified:a.boolean()})}static PlatformEmail(){return a.object({is_required:a.boolean(),level:a.string().allow("")})}static PlatformMobile(){return a.object({is_required:a.boolean(),level:a.string().allow("")})}static PlatformSchema(){return a.object({_id:a.string().allow(""),active:a.boolean(),created_at:a.string().allow(""),delete_account_consent:a.any(),delete_account_day:a.number(),delete_account_reasons:a.array().items(n.DeleteAccountReasons()),desktop_image:a.string().allow(""),display:a.string().allow(""),flash_card:n.FlashCard(),forgot_password:a.boolean(),login:n.Login(),look_and_feel:n.LookAndFeel(),meta:n.MetaSchema(),mobile_image:a.string().allow(""),name:a.string().allow(""),register:a.boolean(),register_required_fields:n.RegisterRequiredFields(),required_fields:n.RequiredFields(),session_config:a.any(),skip_captcha:a.boolean(),skip_login:a.boolean(),social:n.Social(),social_tokens:n.SocialTokens(),subtext:a.string().allow(""),updated_at:a.string().allow("")})}static ProfileEditSuccess(){return a.object({country_code:a.string().allow(""),email:a.string().allow(""),message:a.string().allow(""),mobile:a.string().allow(""),register_token:a.string().allow(""),request_id:a.string().allow(""),resend_email_token:a.string().allow(""),resend_timer:a.number(),resend_token:a.string().allow(""),success:a.boolean(),user:n.UserSchema(),user_exists:a.boolean(),verify_email_link:a.boolean(),verify_email_otp:a.boolean(),verify_mobile_otp:a.boolean()})}static RegisterFormSuccess(){return a.object({country_code:a.string().allow(""),email:a.string().allow(""),message:a.string().allow(""),mobile:a.string().allow(""),register_token:a.string().allow(""),request_id:a.string().allow(""),resend_email_token:a.string().allow(""),resend_timer:a.number(),resend_token:a.string().allow(""),success:a.boolean(),user_exists:a.boolean(),verify_email_otp:a.boolean(),verify_mobile_otp:a.boolean()})}static RegisterRequiredFields(){return a.object({email:n.RegisterRequiredFieldsEmail(),mobile:n.RegisterRequiredFieldsMobile()})}static RegisterRequiredFieldsEmail(){return a.object({is_required:a.boolean(),level:a.string().allow("")})}static RegisterRequiredFieldsMobile(){return a.object({is_required:a.boolean(),level:a.string().allow("")})}static RequiredFields(){return a.object({email:n.PlatformEmail(),mobile:n.PlatformMobile()})}static ResetForgotPasswordSuccess(){return a.object({success:a.boolean()})}static ResetPasswordSuccess(){return a.object({status:a.string().allow("")})}static SendEmailForgotOtpRequestSchema(){return a.object({action:a.string().allow(""),email:a.string().allow(""),token:a.string().allow("")})}static SendEmailOtpRequestSchema(){return a.object({action:a.string().allow(""),captcha_code:a.string().allow(""),email:a.string().allow(""),register_token:a.string().allow(""),token:a.string().allow("")})}static SendEmailVerifyLinkSuccess(){return a.object({verify_email_link:a.boolean()})}static SendMobileForgotOtpRequestSchema(){return a.object({action:a.string().allow(""),android_hash:a.string().allow(""),country_code:a.string().allow(""),mobile:a.string().allow(""),token:a.string().allow("")})}static SendMobileOtpRequestSchema(){return a.object({action:a.string().allow(""),android_hash:a.string().allow(""),captcha_code:a.string().allow(""),country_code:a.string().allow(""),force:a.string().allow(""),mobile:a.string().allow(""),token:a.string().allow("")})}static SendMobileVerifyLinkSuccess(){return a.object({verify_mobile_link:a.boolean()})}static SendOtpRequestSchema(){return a.object({android_hash:a.string().allow(""),captcha_code:a.string().allow(""),country_code:a.string().allow(""),mobile:a.string().allow("")})}static SendOtpResponse(){return a.object({country_code:a.string().allow(""),email:a.string().allow(""),message:a.string().allow(""),mobile:a.string().allow(""),register_token:a.string().allow(""),request_id:a.string().allow(""),resend_email_token:a.string().allow(""),resend_timer:a.number(),resend_token:a.string().allow(""),success:a.boolean(),user_exists:a.boolean(),verify_email_otp:a.boolean(),verify_mobile_otp:a.boolean()})}static SendResetPasswordEmailRequestSchema(){return a.object({captcha_code:a.string().allow(""),email:a.string().allow("")})}static SendResetPasswordMobileRequestSchema(){return a.object({captcha_code:a.string().allow(""),country_code:a.string().allow(""),mobile:a.string().allow("")})}static SendVerificationLinkMobileRequestSchema(){return a.object({active:a.boolean(),country_code:a.string().allow(""),phone:a.string().allow(""),primary:a.boolean(),verified:a.boolean()})}static SessionExpiry(){return a.object({duration:a.number(),is_rolling:a.boolean(),type:a.string().allow("")})}static SessionListSuccess(){return a.object({sessions:a.array().items(a.string().allow(""))})}static Social(){return a.object({account_kit:a.boolean(),apple:a.boolean(),facebook:a.boolean(),google:a.boolean()})}static SocialTokens(){return a.object({account_kit:n.Accountkit(),facebook:n.Facebook(),google:n.Google()})}static TokenRequestBodySchema(){return a.object({token:a.string().allow("")})}static UpdatePasswordRequestSchema(){return a.object({new_password:a.string().allow(""),old_password:a.string().allow("")})}static UserObjectSchema(){return a.object({user:n.UserSchema()})}static UserSchema(){return a.object({_id:a.string().allow(""),account_type:a.string().allow(""),active:a.boolean(),application_id:a.string().allow(""),created_at:a.string().allow(""),dob:a.string().allow(""),emails:a.array().items(n.Email()),first_name:a.string().allow(""),gender:a.string().allow(""),last_name:a.string().allow(""),meta:a.any(),phone_numbers:a.array().items(n.PhoneNumber()),profile_pic_url:a.string().allow(""),updated_at:a.string().allow(""),user_id:a.string().allow(""),username:a.string().allow("")})}static VerifyEmailForgotOtpRequestSchema(){return a.object({email:a.string().allow(""),otp:a.string().allow("")})}static VerifyEmailOtpRequestSchema(){return a.object({action:a.string().allow(""),email:a.string().allow(""),otp:a.string().allow(""),register_token:a.string().allow("")})}static VerifyEmailOTPSuccess(){return a.object({user:n.UserSchema(),verify_email_link:a.boolean()})}static VerifyEmailSuccess(){return a.object({message:a.string().allow("")})}static VerifyForgotOtpSuccess(){return a.object({forgot_token:a.string().allow(""),success:a.boolean()})}static VerifyMobileForgotOtpRequestSchema(){return a.object({otp:a.string().allow(""),request_id:a.string().allow("")})}static VerifyMobileOTPSuccess(){return a.object({user:n.UserSchema(),verify_mobile_link:a.boolean()})}static VerifyOtpRequestSchema(){return a.object({otp:a.string().allow(""),register_token:a.string().allow(""),request_id:a.string().allow("")})}static VerifyOtpSuccess(){return a.object({register_token:a.string().allow(""),user:n.UserSchema(),user_exists:a.boolean()})}}e.exports=n},7727:(e,t,r)=>{const a=r(2705),n=r(7022);e.exports=class{static addEmail(){return a.object({platform:a.string().allow(""),body:n.EditEmailRequestSchema().required()}).required()}static addMobileNumber(){return a.object({platform:a.string().allow(""),body:n.EditMobileRequestSchema().required()}).required()}static deleteEmail(){return a.object({platform:a.string().allow(""),active:a.boolean().required(),primary:a.boolean().required(),verified:a.boolean().required(),email:a.string().allow("").required()}).required()}static deleteMobileNumber(){return a.object({platform:a.string().allow(""),active:a.boolean().required(),primary:a.boolean().required(),verified:a.boolean().required(),countryCode:a.string().allow("").required(),phone:a.string().allow("").required()}).required()}static deleteUser(){return a.object({body:n.DeleteApplicationUserRequestSchema().required()}).required()}static forgotPassword(){return a.object({body:n.ForgotPasswordRequestSchema().required()}).required()}static getListOfActiveSessions(){return a.object({})}static getLoggedInUser(){return a.object({})}static getPlatformConfig(){return a.object({name:a.string().allow("")})}static hasPassword(){return a.object({})}static loginWithAppleIOS(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestAppleSchema().required()}).required()}static loginWithEmailAndPassword(){return a.object({body:n.PasswordLoginRequestSchema().required()}).required()}static loginWithFacebook(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestSchema().required()}).required()}static loginWithGoogle(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestSchema().required()}).required()}static loginWithGoogleAndroid(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestSchema().required()}).required()}static loginWithGoogleIOS(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestSchema().required()}).required()}static loginWithOTP(){return a.object({platform:a.string().allow(""),body:n.SendOtpRequestSchema().required()}).required()}static loginWithToken(){return a.object({body:n.TokenRequestBodySchema().required()}).required()}static logout(){return a.object({})}static registerWithForm(){return a.object({platform:a.string().allow(""),body:n.FormRegisterRequestSchema().required()}).required()}static resetForgotPassword(){return a.object({body:n.ForgotPasswordRequestSchema().required()}).required()}static sendForgotOTPOnEmail(){return a.object({platform:a.string().allow(""),body:n.SendEmailForgotOtpRequestSchema().required()}).required()}static sendForgotOTPOnMobile(){return a.object({platform:a.string().allow(""),body:n.SendMobileForgotOtpRequestSchema().required()}).required()}static sendOTPOnEmail(){return a.object({platform:a.string().allow(""),body:n.SendEmailOtpRequestSchema().required()}).required()}static sendOTPOnMobile(){return a.object({platform:a.string().allow(""),body:n.SendMobileOtpRequestSchema().required()}).required()}static sendResetPasswordEmail(){return a.object({platform:a.string().allow(""),body:n.SendResetPasswordEmailRequestSchema().required()}).required()}static sendResetPasswordMobile(){return a.object({platform:a.string().allow(""),body:n.SendResetPasswordMobileRequestSchema().required()}).required()}static sendResetToken(){return a.object({body:n.CodeRequestBodySchema().required()}).required()}static sendVerificationLinkToEmail(){return a.object({platform:a.string().allow(""),body:n.EditEmailRequestSchema().required()}).required()}static sendVerificationLinkToMobile(){return a.object({platform:a.string().allow(""),body:n.SendVerificationLinkMobileRequestSchema().required()}).required()}static setEmailAsPrimary(){return a.object({body:n.EditEmailRequestSchema().required()}).required()}static setMobileNumberAsPrimary(){return a.object({body:n.SendVerificationLinkMobileRequestSchema().required()}).required()}static updatePassword(){return a.object({body:n.UpdatePasswordRequestSchema().required()}).required()}static updateProfile(){return a.object({platform:a.string().allow(""),body:n.EditProfileRequestSchema().required()}).required()}static verifyEmail(){return a.object({body:n.CodeRequestBodySchema().required()}).required()}static verifyEmailForgotOTP(){return a.object({platform:a.string().allow(""),body:n.VerifyEmailForgotOtpRequestSchema().required()}).required()}static verifyEmailOTP(){return a.object({platform:a.string().allow(""),body:n.VerifyEmailOtpRequestSchema().required()}).required()}static verifyMobile(){return a.object({body:n.CodeRequestBodySchema().required()}).required()}static verifyMobileForgotOTP(){return a.object({platform:a.string().allow(""),body:n.VerifyMobileForgotOtpRequestSchema().required()}).required()}static verifyMobileOTP(){return a.object({platform:a.string().allow(""),body:n.VerifyOtpRequestSchema().required()}).required()}}},7854:(e,t,r)=>{const a=r(3204);e.exports=({url:e,params:t})=>e.split("/").map((e=>("{"===e[0]&&"}"===e[e.length-1]&&(e=t[a(e.slice(1,e.length-1))]),e))).join("/")},911:(e,t,r)=>{e.exports={ApplicationConfig:r(6894),ApplicationClient:r(9007),ApplicationModel:{CartApplicationModel:r(7350),CatalogApplicationModel:r(5761),CommonApplicationModel:r(1844),CommunicationApplicationModel:r(4752),ConfigurationApplicationModel:r(4328),ContentApplicationModel:r(3377),FileStorageApplicationModel:r(5108),LeadApplicationModel:r(4535),LogisticApplicationModel:r(9541),OrderApplicationModel:r(2453),PaymentApplicationModel:r(8487),PosCartApplicationModel:r(6962),RewardsApplicationModel:r(2743),ShareApplicationModel:r(6734),ThemeApplicationModel:r(6377),UserApplicationModel:r(7022)}}},2638:(e,t,r)=>{const a=r(7303),n=r(1793),o=r(9669),s=r(7563),{sign:i}=r(5113),{FDKServerResponseError:l}=r(7208),{log:c,Logger:u,getLoggerLevel:d}=r(7378),p=r(6081),{version:g}=r(4147);o.defaults.withCredentials=!0;const m=o.create({paramsSerializer:e=>s.stringify(e)});m.interceptors.request.use((function(e){try{if(d()<=c.levels.DEBUG){const t=p(e);c.debug(t)}}catch(e){u({level:"ERROR",message:`Error Generating Curl: ${e}`})}finally{return e}}),(function(e){u({level:"ERROR",message:e.data||e.message,stack:e.data.stack||e.stack})})),m.interceptors.request.use((e=>{if(!e.url)throw new Error("No URL present in request config, unable to sign request");let t=e.url;e.baseURL&&!n(e.url)&&(t=a(e.baseURL,e.url));const{host:r,pathname:o,search:l}=new URL(t),{data:c,headers:u,method:d,params:p}=e;u["x-fp-sdk-version"]=g;let m=s.parse(l);m={...m,...p};let w,y="";if(m&&Object.keys(m).length&&""!==s.stringify(m).trim()&&(y=`?${s.stringify(m)}`),"get"!=d){const t=function(e){const{transformRequest:t}=e;if(t){if("function"==typeof t)return t;if(t.length)return t[0]}throw new Error("Could not get default transformRequest function from Axios defaults")}(e);w=t(c,u)}const{common:f,delete:b,get:h,head:_,post:v,put:k,patch:R,...P}=u,q={method:d&&d.toUpperCase(),host:r,path:o+l+y,body:w,headers:P};return i(q,"1234567"),e.headers["x-fp-date"]=q.headers["x-fp-date"],e.headers["x-fp-signature"]=q.headers["x-fp-signature"],e})),m.interceptors.response.use((function(e){return"head"==e.config.method?e.headers:(u({level:"DEBUG",type:"RESPONSE",message:e.data,url:e.config.url}),e.config.responseHeaders?[e.data,e.headers]:e.data)}),(function(e){throw e.response?(u({level:"ERROR",message:e.response.data||e.message,stack:e.response.data.stack||e.stack,request:{method:e.config.method,url:e.config.url,headers:e.config.headers}}),new l(e.response.data.message||e.message,e.response.data.stack||e.stack,e.response.statusText,e.response.status,e.response.data)):e.request?(u({level:"ERROR",message:e.data||e.message,stack:e.data.stack||e.stack,request:{method:e.config.method,url:e.config.url,headers:e.config.headers}}),new l(e.message,e.stack,e.code,e.code)):(u({level:"ERROR",message:e.message}),new l(e.message,e.stack))})),e.exports={fdkAxios:m}},7208:e=>{class t extends Error{constructor(e,t,r=null,a=null,n=null){super(e),this.name="FDKServerResponseError",this.stackTrace=t,this.status=r,this.code=a,this.details=n}}class r extends Error{constructor(e){super(e.message),this.name="FDKClientValidationError",this.details=e.details}}class a extends Error{constructor(e){super(e),this.name="FDKInvalidCredentialError"}}class n extends Error{constructor(e){super(e),this.name="FDKTokenIssueError"}}class o extends Error{constructor(e){super(e),this.name="FDKOAuthCodeError"}}class s extends Error{constructor(e){super(e),this.name="FDKException"}}e.exports={FDKServerResponseError:t,FDKClientValidationError:r,FDKInvalidCredentialError:a,FDKTokenIssueError:n,FDKOAuthCodeError:o,FDKException:s}},7378:(e,t,r)=>{const a=r(2043),n=r(4147).version;function o(){return(new Date).toString()}e.exports={log:a,Logger:function(e){const{level:t,message:r,...s}=e;"TRACE"===t&&a.trace(JSON.stringify({level:t,detail:r,...s,time:o(),version:n})),"DEBUG"===t&&a.debug(JSON.stringify({level:t,detail:r,...s,time:o(),version:n})),"INFO"===t&&a.info(JSON.stringify({level:t,detail:r,...s,time:o(),version:n})),"WARN"===t&&a.warn(JSON.stringify({level:t,detail:r,...s,time:o(),version:n})),"ERROR"===t&&a.error(JSON.stringify({level:t,detail:r,...s,time:o(),version:n}))},setLoggerLevel:function(e){a.setLevel(e)},getLoggerLevel:function(){return a.getLevel()}}},3589:e=>{e.exports=class{constructor(e){this.pageNo=e,this.callback=void 0}setCallback(e){this.callback=e}hasNext(){return this.isNext}setPaginator({hasNext:e,nextId:t,pageNo:r=1}){this.isNext=e,this.nextId=t,this.pageNo=r}next(){return this.callback()}}},6081:(e,t,r)=>{const a=r(7563),n=r(7303),o=r(1793);let s;e.exports=function(e){return s=e,`curl ${`--request ${s.method.toUpperCase()}`.trim()} "${function(){let e=s.url;s.baseURL&&!o(e)&&(e=n(s.baseURL,e).trim());let{search:t}=new URL(e);queryParamObject={...a.parse(t),...s.params};let r="";return queryParamObject&&Object.keys(queryParamObject).length&&""!==a.stringify(queryParamObject).trim()&&(r=`?${a.stringify(queryParamObject).trim()}`),`${e}${t.trim()}${r}`}()}" ${function(){let e=["common","delete","get","head","post","put","patch"],t={};s.headers[s.method]&&(t=s.headers[s.method]),t=Object.keys(t).reduce(((e,r)=>(e[r.toLowerCase()]=t[r],e)),{});for(let r in s.headers)e.includes(r)||(s.headers[r]instanceof Object?t[r.toLowerCase()]=JSON.stringify(s.headers[r]):t[r.toLowerCase()]=s.headers[r]);let r="";for(let e in t)r+=` --header '${e}: ${t[e]}'`;return r.trim()}()} ${"GET"!==s.method.toUpperCase()&&null!==s.data&&""!==s.data&&s.data?`--data-raw '${JSON.stringify(s.data)}'`.trim():""}`.trim()}},5860:(e,t,r)=>{const{FDKException:a}=r(7208),n=":::",o=e=>{let t="";for(const r in e)if("object"!=typeof e[r]&&e[r]){const a=encodeURIComponent(e[r]);t+=`${r}=${a}&`}else Array.isArray(e[r])?e[r].forEach((e=>{const a=encodeURIComponent(e);t+=`${r}=${a}&`})):"object"==typeof e[r]&&e[r]&&(t+=o(e[r]));return t?t.slice(0,-1):t},s=(e="",t="/")=>{for(;e.charAt(0)==t;)e=e.substring(1);for(;e.charAt(e.length-1)==t;)e=e.substring(0,e.length-1);return e},i=()=>"undefined"!=typeof window&&void 0!==window.document,l=()=>"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;e.exports={transformRequestOptions:o,getParamsFromItem:e=>{let t="";for(let r in e)if(Array.isArray(e[r])){for(let a=0;a{let t=e.split("?");if(t.length>1){const e=new URLSearchParams(t[1]);let r={};for(let t of e){let e=t[0],a=t[1];r[e]=r[e]?[...r[e],a]:[a]}return r}return{}},trimChar:s,generateUrlWithParams:(e={},t)=>{if(!e||!e.link)return"";if(!t)return`/${s(e.link.split(":")[0])}`;const r={};for(let e in t)if(Array.isArray(t[e])){let a="";for(let r=0;r{let r={value:"",params:{}};t=s(t);for(let a=0;a{if(l())return Buffer.from(e,"utf-8").toString("base64");if(i())return window.btoa(e);throw a("Base64 conversion error: Unsupported environment")},isBrowser:i,isNode:l,NAV_TYPE:{PAGE:"page",POPUP:"popup"}}},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"@gofynd/fdk-client-javascript","version":"1.3.4","description":"","main":"index.js","scripts":{"test":"jest --coverage","test:standalone":"npm run build && npx cypress run","build":"webpack","prettier":"npx prettier -w ./sdk ./tests && npx tsc"},"author":"Jigar Dafda","license":"ISC","dependencies":{"axios":"^0.27.2","camelcase":"^6.3.0","crypto-js":"^4.1.1","joi":"^17.7.0","loglevel":"^1.8.1","query-string":"^7.1.3","@gofynd/fp-signature":"^0.0.2-alpha.1"},"devDependencies":{"axios-cookiejar-support":"^4.0.6","axios-mock-adapter":"^1.21.2","clean-webpack-plugin":"^4.0.0","coveralls":"^3.1.1","cypress":"^9.2.0","dotenv":"^16.0.3","jest":"^29.5.0","tough-cookie":"^4.1.2","webpack":"^5.81.0","webpack-cli":"^5.0.2"},"files":["sdk/**/*.js","sdk/**/*.d.ts","./*.js","./*.d.ts","!**.config.*","!dist","!cypress"]}')}},t={},r=function r(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a].call(o.exports,o,o.exports,r),o.exports}(469),a=window;for(var n in r)a[n]=r[n];r.__esModule&&Object.defineProperty(a,"__esModule",{value:!0})})(); \ No newline at end of file diff --git a/documentation/application/CATALOG.md b/documentation/application/CATALOG.md index a46662b81..05d5b0f9d 100644 --- a/documentation/application/CATALOG.md +++ b/documentation/application/CATALOG.md @@ -4655,6 +4655,15 @@ Success. Returns a Product object. Check the example shown below or refer `Produ }, "_custom_json": {} }, + "department": { + "name": "Electronics", + "uid": 1, + "logo": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg" + }, + "slug": "electronics" + }, "uid": 1, "slug": "benchmark-collaborative-paradigms", "attributes": { @@ -8583,6 +8592,18 @@ Success. Returns a response object. Check the example shown below or refer `Foll | title | string? | yes | | +--- + +#### [ProductDepartment](#ProductDepartment) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | logo | [Media](#Media)? | yes | | + | name | string? | yes | | + | slug | string? | yes | | + | uid | number? | yes | | + + --- #### [ProductDetail](#ProductDetail) @@ -8598,6 +8619,7 @@ Success. Returns a response object. Check the example shown below or refer `Foll | category_map | [ProductCategoryMap](#ProductCategoryMap)? | yes | | | color | string? | yes | | | custom_order | [ProductDetailCustomOrder](#ProductDetailCustomOrder)? | yes | | + | department | [ProductDepartment](#ProductDepartment)? | yes | | | description | string? | yes | | | discount | string? | yes | | | grouped_attributes | [[ProductDetailGroupedAttribute](#ProductDetailGroupedAttribute)]? | yes | | diff --git a/documentation/application/FILESTORAGE.md b/documentation/application/FILESTORAGE.md index ce9a4dcb5..e98a34575 100644 --- a/documentation/application/FILESTORAGE.md +++ b/documentation/application/FILESTORAGE.md @@ -158,13 +158,49 @@ Success
-  Example: +  Examples: -```json +
+  success + +```json +{ + "value": { + "success": true, + "_id": "xxxxxxxxxxxxxxxxxxxxxx", + "file_name": "shirt.png", + "file_path": "/path/qwertyuiop-shirt.png", + "content_type": "image/png", + "namespace": "products-item-images", + "operation": "putObject", + "company_id": 2, + "tags": [ + "clothing", + "shirt" + ], + "size": 9999, + "cdn": { + "url": "https://xxx.xxx.xxx/products/pictures/free/original/qwertyuiop-shirt.png", + "absolute_url": "https://xxx.xxx.xxx/products/pictures/free/original/qwertyuiop-shirt.png", + "relative_url": "products/pictures/free/original/qwertyuiop-shirt.png" + }, + "upload": { + "expiry": 5000, + "url": "https://xxx.xxx.xxx/products/pictures/free/original/qwertyuiop-shirt.png?AWSAccessKeyId=xxx&Content-Type=image%2Fpng&Expires=5000&Signature=xxx&x-amz-acl=public-read" + }, + "created_on": "2020-02-03T09:50:04.240Z", + "modified_on": "2020-02-03T09:50:04.240Z", + "created_by": { + "username": "app@fynd.com" + } + } +} ```
+
+ @@ -213,13 +249,29 @@ Success
-  Example: +  Examples: -```json +
+  success + +```json +{ + "value": { + "urls": [ + { + "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/x0/documents/manifest/PDFs/test/s3EtYk5p9-new_fee.pdf", + "signed_url": "https://fynd-staging-assets-private.s3-accelerate.amazonaws.com/addsale/v2/falling-surf-7c8bb8/fyndnp/wrkr/x0/documents/manifest/PDFs/test/s3EtYk5p9-new_fee.pdf", + "expiry": 1800 + } + ] + } +} ```
+
+ @@ -283,19 +335,48 @@ This operation will return the URL of the uploaded file. [StartResponse](#StartResponse) -Success. Next, call the `completeUpload` API and pass the response payload of this API to finish the upload process. +Success. Returns a response containing relaving and absolute_url of storage service
-  Example: +  Examples: -```json +
+  success + +```json +{ + "value": { + "file_name": "shirt.png", + "file_path": "/path/qwertyuiop-shirt.png", + "content_type": "image/png", + "method": "PUT", + "namespace": "products-item-images", + "operation": "putObject", + "tags": [ + "clothing", + "shirt" + ], + "size": 9999, + "cdn": { + "url": "https://xxx.xxx.xxx/products/pictures/free/original/qwertyuiop-shirt.png", + "absolute_url": "https://xxx.xxx.xxx/products/pictures/free/original/qwertyuiop-shirt.png", + "relative_url": "products/pictures/free/original/qwertyuiop-shirt.png" + }, + "upload": { + "expiry": 5000, + "url": "https://xxx.xxx.xxx/products/pictures/free/original/qwertyuiop-shirt.png?AWSAccessKeyId=xxx&Content-Type=image%2Fpng&Expires=5000&Signature=xxx&x-amz-acl=public-read" + } + } +} ```
+
+ @@ -329,6 +410,7 @@ Success. Next, call the `completeUpload` API and pass the response payload of th | _id | string | no | | | cdn | [CDN](#CDN) | no | | | content_type | string | no | | + | created_by | [CreatedBy](#CreatedBy)? | yes | | | created_on | string | no | | | file_name | string | no | | | file_path | string | no | | @@ -343,11 +425,20 @@ Success. Next, call the `completeUpload` API and pass the response payload of th --- -#### [FailedResponse](#FailedResponse) +#### [CreatedBy](#CreatedBy) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | username | string? | yes | | + + +--- + +#### [Params](#Params) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | message | string | no | | + | subpath | string? | yes | The subpath for the file. | --- @@ -377,7 +468,7 @@ Success. Next, call the `completeUpload` API and pass the response payload of th | ---------- | ---- | -------- | ----------- | | content_type | string | no | | | file_name | string | no | | - | params | string? | yes | | + | params | [Params](#Params)? | yes | | | size | number | no | | | tags | [string]? | yes | | diff --git a/documentation/application/USER.md b/documentation/application/USER.md index 8ef471e3f..4d5831c92 100644 --- a/documentation/application/USER.md +++ b/documentation/application/USER.md @@ -28,6 +28,9 @@ Authentication Service * [loginWithToken](#loginwithtoken) * [logout](#logout) * [registerWithForm](#registerwithform) +* [resetForgotPassword](#resetforgotpassword) +* [sendForgotOTPOnEmail](#sendforgototponemail) +* [sendForgotOTPOnMobile](#sendforgototponmobile) * [sendOTPOnEmail](#sendotponemail) * [sendOTPOnMobile](#sendotponmobile) * [sendResetPasswordEmail](#sendresetpasswordemail) @@ -40,8 +43,10 @@ Authentication Service * [updatePassword](#updatepassword) * [updateProfile](#updateprofile) * [verifyEmail](#verifyemail) +* [verifyEmailForgotOTP](#verifyemailforgototp) * [verifyEmailOTP](#verifyemailotp) * [verifyMobile](#verifymobile) +* [verifyMobileForgotOTP](#verifymobileforgototp) * [verifyMobileOTP](#verifymobileotp) @@ -1886,6 +1891,213 @@ Success. Check the example shown below or refer `RegisterFormSuccess` for more d +--- + + +### resetForgotPassword +Reset forgot Password + + + +```javascript +// Promise +const promise = applicationClient.user.resetForgotPassword({ body : value }); + +// Async/Await +const data = await applicationClient.user.resetForgotPassword({ body : value }); +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [ForgotPasswordRequestSchema](#ForgotPasswordRequestSchema) | yes | Request body | + + +Use this API to reset a password using the code sent on email or SMS. + +*Returned Response:* + + + + +[ResetForgotPasswordSuccess](#ResetForgotPasswordSuccess) + +Success. Check the example shown below or refer `ResetForgotPasswordSuccess` for more details. + + + + +
+  Examples: + + +
+  reset forgot password success + +```json +{ + "value": { + "success": true + } +} +``` +
+ +
+ + + + + + + + + +--- + + +### sendForgotOTPOnEmail +Send Forgot OTP on email + + + +```javascript +// Promise +const promise = applicationClient.user.sendForgotOTPOnEmail({ body : value, + platform : value }); + +// Async/Await +const data = await applicationClient.user.sendForgotOTPOnEmail({ body : value, + platform : value }); +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| platform | string | no | ID of the application | +| body | [SendEmailForgotOtpRequestSchema](#SendEmailForgotOtpRequestSchema) | yes | Request body | + + +Use this API to send an Forgot OTP to an email ID. + +*Returned Response:* + + + + +[EmailOtpSuccess](#EmailOtpSuccess) + +Success. Returns a JSON object as shown below. Refer `EmailOtpSuccess` for more details. + + + + +
+  Examples: + + +
+  send forgot otp on email success + +```json +{ + "value": { + "success": true + } +} +``` +
+ +
+ + + + + + + + + +--- + + +### sendForgotOTPOnMobile +Send Forgot OTP on mobile + + + +```javascript +// Promise +const promise = applicationClient.user.sendForgotOTPOnMobile({ body : value, + platform : value }); + +// Async/Await +const data = await applicationClient.user.sendForgotOTPOnMobile({ body : value, + platform : value }); +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| platform | string | no | ID of the application | +| body | [SendMobileForgotOtpRequestSchema](#SendMobileForgotOtpRequestSchema) | yes | Request body | + + +Use this API to send an Forgot OTP to a mobile number. + +*Returned Response:* + + + + +[OtpSuccess](#OtpSuccess) + +Success. Returns a JSON object as shown below. Refer `OtpSuccess` for more details. + + + + +
+  Examples: + + +
+  send forgot otp on mobile success + +```json +{ + "value": { + "success": true, + "request_id": "01503005aeab87cbed93d40f46cc2749", + "message": "OTP sent", + "mobile": "8652523958", + "country_code": "91", + "resend_timer": 30, + "resend_token": "18fc3d60-66e5-11eb-9399-0312fbf2c2a6" + } +} +``` +
+ +
+ + + + + + + + + --- @@ -2808,6 +3020,75 @@ Success. Check the example shown below or refer `VerifyEmailSuccess` for more de +--- + + +### verifyEmailForgotOTP +Verify Forgot OTP on email + + + +```javascript +// Promise +const promise = applicationClient.user.verifyEmailForgotOTP({ body : value, + platform : value }); + +// Async/Await +const data = await applicationClient.user.verifyEmailForgotOTP({ body : value, + platform : value }); +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| platform | string | no | ID of the application | +| body | [VerifyEmailForgotOtpRequestSchema](#VerifyEmailForgotOtpRequestSchema) | yes | Request body | + + +Use this API to verify the Forgot OTP received on an email ID. + +*Returned Response:* + + + + +[VerifyForgotOtpSuccess](#VerifyForgotOtpSuccess) + +Success. Returns a JSON object as shown below. Refer `VerifyForgotOtpSuccess` for more details. + + + + +
+  Examples: + + +
+  verify forgot otp on email success + +```json +{ + "value": { + "success": true, + "forgot_token": "d6c9df22-7e65-41be-9852-8207a8d2d54d" + } +} +``` +
+ +
+ + + + + + + + + --- @@ -2979,6 +3260,75 @@ Success. Check the example shown below or refer `VerifyEmailSuccess` for more de +--- + + +### verifyMobileForgotOTP +Verify Forgot OTP on mobile + + + +```javascript +// Promise +const promise = applicationClient.user.verifyMobileForgotOTP({ body : value, + platform : value }); + +// Async/Await +const data = await applicationClient.user.verifyMobileForgotOTP({ body : value, + platform : value }); +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| platform | string | no | ID of the application | +| body | [VerifyMobileForgotOtpRequestSchema](#VerifyMobileForgotOtpRequestSchema) | yes | Request body | + + +Use this API to verify the Forgot OTP received on a mobile number. + +*Returned Response:* + + + + +[VerifyForgotOtpSuccess](#VerifyForgotOtpSuccess) + +Success. Returns a JSON object as shown below. Refer `VerifyForgotOtpSuccess` for more details. + + + + +
+  Examples: + + +
+  verify forgot otp on mobile success + +```json +{ + "value": { + "success": true, + "forgot_token": "d6c9df22-7e65-41be-9852-8207a8d2d54d" + } +} +``` +
+ +
+ + + + + + + + + --- @@ -3107,6 +3457,19 @@ Success. Returns a JSON object as shown below. Refer `VerifyOtpSuccess` for more | app_id | string? | yes | | +--- + +#### [APIError](#APIError) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | code | string? | yes | | + | info | string? | yes | Error code description link | + | message | string? | yes | | + | meta | string? | yes | | + | request_id | string? | yes | | + + --- #### [AuthenticationApiErrorSchema](#AuthenticationApiErrorSchema) @@ -3622,6 +3985,15 @@ Success. Returns a JSON object as shown below. Refer `VerifyOtpSuccess` for more | mobile | [PlatformMobile](#PlatformMobile)? | yes | | +--- + +#### [ResetForgotPasswordSuccess](#ResetForgotPasswordSuccess) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | success | boolean? | yes | | + + --- #### [ResetPasswordSuccess](#ResetPasswordSuccess) @@ -3631,6 +4003,17 @@ Success. Returns a JSON object as shown below. Refer `VerifyOtpSuccess` for more | status | string? | yes | | +--- + +#### [SendEmailForgotOtpRequestSchema](#SendEmailForgotOtpRequestSchema) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | action | string? | yes | | + | email | string? | yes | | + | token | string? | yes | | + + --- #### [SendEmailOtpRequestSchema](#SendEmailOtpRequestSchema) @@ -3653,6 +4036,19 @@ Success. Returns a JSON object as shown below. Refer `VerifyOtpSuccess` for more | verify_email_link | boolean? | yes | | +--- + +#### [SendMobileForgotOtpRequestSchema](#SendMobileForgotOtpRequestSchema) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | action | string? | yes | | + | android_hash | string? | yes | | + | country_code | string? | yes | | + | mobile | string? | yes | | + | token | string? | yes | | + + --- #### [SendMobileOtpRequestSchema](#SendMobileOtpRequestSchema) @@ -3839,6 +4235,16 @@ Success. Returns a JSON object as shown below. Refer `VerifyOtpSuccess` for more | username | string? | yes | | +--- + +#### [VerifyEmailForgotOtpRequestSchema](#VerifyEmailForgotOtpRequestSchema) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | email | string? | yes | | + | otp | string? | yes | | + + --- #### [VerifyEmailOtpRequestSchema](#VerifyEmailOtpRequestSchema) @@ -3870,6 +4276,26 @@ Success. Returns a JSON object as shown below. Refer `VerifyOtpSuccess` for more | message | string? | yes | | +--- + +#### [VerifyForgotOtpSuccess](#VerifyForgotOtpSuccess) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | forgot_token | string? | yes | | + | success | boolean? | yes | | + + +--- + +#### [VerifyMobileForgotOtpRequestSchema](#VerifyMobileForgotOtpRequestSchema) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | otp | string? | yes | | + | request_id | string? | yes | | + + --- #### [VerifyMobileOTPSuccess](#VerifyMobileOTPSuccess) diff --git a/documentation/partner/FILESTORAGE.md b/documentation/partner/FILESTORAGE.md new file mode 100644 index 000000000..c09818b05 --- /dev/null +++ b/documentation/partner/FILESTORAGE.md @@ -0,0 +1,541 @@ + + + + + +##### [Back to Partner docs](./README.md) + +## FileStorage Methods +This service provides functionality to manage assets and generate pdf. You can upload the assets, get the cdn link for the assets, proxy the assets and many more things. + + +* [upload](#upload) + +* [browse](#browse) +* [completeUpload](#completeupload) +* [startUpload](#startupload) + + + +## Methods with example and description + + + + +### upload +method which internally calls `startUpload` and `completeUpload` method to handle the whole file upload flow. + + +```javascript +// Promise +const promise = fileStorage.upload({ + data, + file_name, + content_type, + namespace, + size, + tags, +}); + +// Async/Await +const data = await fileStorage.upload({ + data, + file_name, + content_type, + namespace, + size, + tags, +}); +``` +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| data | file | yes | File which needs to be uploaded | +| file_name | string | yes | Name of the file | +| content_type | string | yes | type of file | +| namespace | string | yes | Name of the bucket created for storing objects | +| size | number | yes | File size | +| tags | [string] | yes | | + + +Use this API to perform the upload of an arbitrarily sized buffer or blob. + + + +*Returned Response:* + +[CompleteResponse](#CompleteResponse) + + + +
+  Example: + +```json +{ + "file_name":"logo.png", + "file_path":"/path/to/file/logo.png", + "success":true, + "namespace":"namespace", + "content_type":"image/png", + "size":1024, + "operation":"putObject", + "tags":[], + "cdn":{ + "url":"https://cdn.pixelbin.io/v2/logo.png", + "absolute_url":"https://cdn.pixelbin.io/v2/logo.png", + "relative_url":"logo.png" + }, + "_id":"63dbbxxxxxxxxxxxxdecc69f", + "created_by":{ + "username":"username_gofynd_com" + }, + "created_on":"2023-01-01T12:00:00.000Z", + "modified_on":"2023-01-01T00:00:00.000Z" +} +``` +
+ +--- + + + + + +### browse +Browse Files + + + +```javascript +// Promise +const promise = partnerClient.fileStorage.browse({ namespace : value, + organizationId : value, + page : value, + limit : value }); + +// Async/Await +const data = await partnerClient.fileStorage.browse({ namespace : value, + organizationId : value, + page : value, + limit : value }); +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| namespace | string | yes | Segregation of different types of files(products, orders, logistics etc), Required for validating the data of the file being uploaded, decides where exactly the file will be stored inside the storage bucket. | +| organizationId | number | yes | | +| page | number | no | page no | +| limit | number | no | Limit | + + + +Browse Files + +*Returned Response:* + + + + +[Object](#Object) + +Success + + + + +
+  Examples: + + +
+  success + +```json +{ + "value": { + "items": [ + { + "_id": "64e1e6fe0153e1a6d3e101f4", + "file_name": "logo.png", + "file_path": "/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png", + "success": true, + "namespace": "brand-square-logo", + "content_type": "image/png", + "size": 3298, + "operation": "putObject", + "tags": [], + "cdn": { + "url": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png", + "absolute_url": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png", + "relative_url": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png" + }, + "upload": { + "url": "https://fynd-staging-assets.s3-accelerate.amazonaws.com/addsale/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png?Content-Type=image%2Fpng&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20230820%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230820T101213Z&X-Amz-Expires=1800&X-Amz-Signature=04915b14aec15712abdea3c340d5dc43729e7c982a4994650488c0150c22b0ae&X-Amz-SignedHeaders=host%3Bx-amz-acl&x-amz-acl=public-read", + "expiry": 1800 + }, + "created_by": { + "username": "fp_sdet_gofynd_com_65071" + }, + "company_id": 6520, + "bucket_key": "addsale/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png", + "createdAt": "2023-08-20T10:12:14.118Z", + "updatedAt": "2023-08-20T10:12:14.118Z", + "__v": 0 + } + ], + "page": { + "current": 1, + "has_previous": false, + "has_next": true, + "item_total": 481, + "type": "number" + } + } +} +``` +
+ +
+ + + + + + + + + +--- + + +### completeUpload +This will complete the upload process. After successfully uploading file, you can call this operation to complete the upload process. + + + +```javascript +// Promise +const promise = partnerClient.fileStorage.completeUpload({ namespace : value, + organizationId : value, + body : value }); + +// Async/Await +const data = await partnerClient.fileStorage.completeUpload({ namespace : value, + organizationId : value, + body : value }); +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| namespace | string | yes | Segregation of different types of files(products, orders, logistics etc), Required for validating the data of the file being uploaded, decides where exactly the file will be stored inside the storage bucket. | +| organizationId | number | yes | | +| body | [StartResponse](#StartResponse) | yes | Request body | + + +Uploads an arbitrarily sized buffer or blob. + +It has three Major Steps: +* Start +* Upload +* Complete + +### Start +Initiates the assets upload using `startUpload`. +It returns the storage link in response. + +### Upload +Use the storage link to upload a file (Buffer or Blob) to the File Storage. +Make a `PUT` request on storage link received from `startUpload` api with file (Buffer or Blob) as a request body. + +### Complete +After successfully upload, call `completeUpload` api to complete the upload process. +This operation will return the url for the uploaded file. + + +*Returned Response:* + + + + +[CompleteResponse](#CompleteResponse) + +Success + + + + +
+  Examples: + + +
+  success + +```json +{ + "value": { + "success": true, + "_id": "xxxxxxxxxxxxxxxxxxxxxx", + "file_name": "shirt.png", + "file_path": "/path/qwertyuiop-shirt.png", + "content_type": "image/png", + "namespace": "products-item-images", + "operation": "putObject", + "tags": [ + "clothing", + "shirt" + ], + "size": 9999, + "cdn": { + "url": "https://xxx.xxx.xxx/products/pictures/free/original/qwertyuiop-shirt.png", + "absolute_url": "https://xxx.xxx.xxx/products/pictures/free/original/qwertyuiop-shirt.png", + "relative_url": "products/pictures/free/original/qwertyuiop-shirt.png" + }, + "upload": { + "expiry": 5000, + "url": "https://xxx.xxx.xxx/products/pictures/free/original/qwertyuiop-shirt.png?AWSAccessKeyId=xxx&Content-Type=image%2Fpng&Expires=5000&Signature=xxx&x-amz-acl=public-read" + }, + "created_on": "2020-02-03T09:50:04.240Z", + "modified_on": "2020-02-03T09:50:04.240Z" + } +} +``` +
+ +
+ + + + + + + + + +--- + + +### startUpload +This operation initiates upload and returns storage link which is valid for 30 Minutes. You can use that storage link to make subsequent upload request with file buffer or blob. + + + +```javascript +// Promise +const promise = partnerClient.fileStorage.startUpload({ namespace : value, + organizationId : value, + body : value }); + +// Async/Await +const data = await partnerClient.fileStorage.startUpload({ namespace : value, + organizationId : value, + body : value }); +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| namespace | string | yes | Segregation of different types of files(products, orders, logistics etc), Required for validating the data of the file being uploaded, decides where exactly the file will be stored inside the storage bucket. | +| organizationId | number | yes | | +| body | [StartRequest](#StartRequest) | yes | Request body | + + +Uploads an arbitrarily sized buffer or blob. + +It has three Major Steps: +* Start +* Upload +* Complete + +### Start +Initiates the assets upload using `startUpload`. +It returns the storage link in response. + +### Upload +Use the storage link to upload a file (Buffer or Blob) to the File Storage. +Make a `PUT` request on storage link received from `startUpload` api with file (Buffer or Blob) as a request body. + +### Complete +After successfully upload, call `completeUpload` api to complete the upload process. +This operation will return the url for the uploaded file. + + +*Returned Response:* + + + + +[StartResponse](#StartResponse) + +Success. Returns a response containing relaving and absolute_url of storage service + + + + +
+  Examples: + + +
+  success + +```json +{ + "value": { + "file_name": "shirt.png", + "file_path": "/path/qwertyuiop-shirt.png", + "content_type": "image/png", + "method": "PUT", + "namespace": "products-item-images", + "operation": "putObject", + "tags": [ + "clothing", + "shirt" + ], + "size": 9999, + "cdn": { + "url": "https://xxx.xxx.xxx/products/pictures/free/original/qwertyuiop-shirt.png", + "absolute_url": "https://xxx.xxx.xxx/products/pictures/free/original/qwertyuiop-shirt.png", + "relative_url": "products/pictures/free/original/qwertyuiop-shirt.png" + }, + "upload": { + "expiry": 5000, + "url": "https://xxx.xxx.xxx/products/pictures/free/original/qwertyuiop-shirt.png?AWSAccessKeyId=xxx&Content-Type=image%2Fpng&Expires=5000&Signature=xxx&x-amz-acl=public-read" + } + } +} +``` +
+ +
+ + + + + + + + + +--- + + + +### Schemas + + +#### [CDN](#CDN) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | absolute_url | string | no | | + | relative_url | string | no | | + | url | string | no | | + + +--- + +#### [CompleteResponse](#CompleteResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | _id | string | no | | + | cdn | [CDN](#CDN) | no | | + | content_type | string | no | | + | created_by | [CreatedBy](#CreatedBy)? | yes | | + | created_on | string | no | | + | file_name | string | no | | + | file_path | string | no | | + | modified_on | string | no | | + | namespace | string | no | | + | operation | string | no | | + | size | number | no | | + | success | boolean | no | | + | tags | [string]? | yes | | + | upload | [Upload](#Upload) | no | | + + +--- + +#### [CreatedBy](#CreatedBy) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | username | string? | yes | | + + +--- + +#### [FailedResponse](#FailedResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | message | string | no | | + + +--- + +#### [Params](#Params) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | subpath | string? | yes | The subpath for the file. | + + +--- + +#### [StartRequest](#StartRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | content_type | string | no | | + | file_name | string | no | | + | params | [Params](#Params)? | yes | | + | size | number | no | | + | tags | [string]? | yes | | + + +--- + +#### [StartResponse](#StartResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | cdn | [CDN](#CDN) | no | | + | content_type | string | no | | + | file_name | string | no | | + | file_path | string | no | | + | method | string? | yes | | + | namespace | string | no | | + | operation | string | no | | + | size | number | no | | + | tags | [string]? | yes | | + | upload | [Upload](#Upload) | no | | + + +--- + +#### [Upload](#Upload) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | expiry | number | no | | + | url | string | no | | + + +--- + + + + diff --git a/documentation/partner/README.md b/documentation/partner/README.md index f5b20d9c5..14b4b0d09 100644 --- a/documentation/partner/README.md +++ b/documentation/partner/README.md @@ -3,4 +3,6 @@ # FDK Partner Front API Documentaion +* [FileStorage](FILESTORAGE.md) - This service provides functionality to manage assets and generate pdf. You can upload the assets, get the cdn link for the assets, proxy the assets and many more things. + * [Theme](THEME.md) - Responsible for partner theme submission \ No newline at end of file diff --git a/documentation/platform/CONTENT.md b/documentation/platform/CONTENT.md index 7b04d98ac..dddef27a6 100644 --- a/documentation/platform/CONTENT.md +++ b/documentation/platform/CONTENT.md @@ -20,7 +20,6 @@ Content System * [createPage](#createpage) * [createPagePreview](#createpagepreview) * [createSlideshow](#createslideshow) -* [deleteAllInjectableTags](#deleteallinjectabletags) * [deleteAnnouncement](#deleteannouncement) * [deleteBlog](#deleteblog) * [deleteDataLoader](#deletedataloader) @@ -1292,79 +1291,6 @@ Success. Refer `SlideshowSchema` for more details. ---- - - -### deleteAllInjectableTags -Delete tags in application - - - -```javascript -// Promise -const promise = platformClient.application("").content.deleteAllInjectableTags(); - -// Async/Await -const data = await platformClient.application("").content.deleteAllInjectableTags(); -``` - - - - - - -Use this API to delete all the existing tags at once. - -*Returned Response:* - - - - -[TagsSchema](#TagsSchema) - -Success. - - - - -
-  Example: - -```json -{ - "_id": "601f77e7aa61066feda44487", - "tags": [ - { - "name": "Test", - "sub_type": "external", - "_id": "601f77e7aa61066feda44488", - "type": "js", - "url": "youtube.com/watch?v=AaxFIY-cWH0&list=PL3O3jhFJEElBHFbs6XsOqZAWZLtlEkZTw&index=31", - "position": "head" - }, - { - "name": "Test 2", - "sub_type": "external", - "_id": "601f77e7aa61066feda44489", - "type": "js", - "url": "youtube.com/watch?v=AaxFIY-cWH0&list=PL3O3jhFJEElBHFbs6XsOqZAWZLtlEkZTw&index=31", - "position": "head" - } - ], - "application": "000000000000000000000001", - "__v": 0 -} -``` -
- - - - - - - - - --- @@ -4207,18 +4133,23 @@ Get all the tags in an application ```javascript // Promise -const promise = platformClient.application("").content.getInjectableTags(); +const promise = platformClient.application("").content.getInjectableTags({ all : value }); // Async/Await -const data = await platformClient.application("").content.getInjectableTags(); +const data = await platformClient.application("").content.getInjectableTags({ all : value }); ``` +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| all | boolean | no | Get all tags irrespective of the creator of tags | + + -Use this API to get all the CSS and JS injected in the application in the form of tags. +Use this API to get the CSS and JS injected in the application in the form of tags. *Returned Response:* @@ -6585,7 +6516,7 @@ Success. ### updateInjectableTag -Update a tag +Update the exisitng tags for an application by replacing with provided tags @@ -6606,7 +6537,7 @@ const data = await platformClient.application("").content.update | body | [CreateTagRequestSchema](#CreateTagRequestSchema) | yes | Request body | -Use this API to edit the details of an existing tag. This includes the tag name, tag type (css/js), url and position of the tag. +Use this API to edit and override all existing tags. All existing tags will be replaced by the new tags provided in body. *Returned Response:* diff --git a/documentation/platform/FILESTORAGE.md b/documentation/platform/FILESTORAGE.md index 52bc23892..8dab5dea9 100644 --- a/documentation/platform/FILESTORAGE.md +++ b/documentation/platform/FILESTORAGE.md @@ -18,15 +18,16 @@ This service provides functionality to manage assets and generate pdf. You can u * [browse](#browse) * [completeUpload](#completeupload) * [copyFiles](#copyfiles) +* [generatePaymentReceipt](#generatepaymentreceipt) * [getDefaultHtmlTemplate](#getdefaulthtmltemplate) * [getDefaultPdfData](#getdefaultpdfdata) * [getDefaultPdfTemplate](#getdefaultpdftemplate) * [getPdfTypes](#getpdftypes) * [getSignUrls](#getsignurls) -* [previewTemplate](#previewtemplate) * [proxy](#proxy) * [saveHtmlTemplate](#savehtmltemplate) * [startUpload](#startupload) +* [updateHtmlTemplate](#updatehtmltemplate) @@ -186,9 +187,13 @@ Success "file_name": "shirt.png", "file_path": "/path/qwertyuiop-shirt.png", "content_type": "image/png", - "method": "PUT", "namespace": "products-item-images", "operation": "putObject", + "company_id": 2, + "tags": [ + "clothing", + "shirt" + ], "size": 9999, "cdn": { "url": "https://xxx.xxx.xxx/products/pictures/free/original/qwertyuiop-shirt.png", @@ -251,7 +256,7 @@ Copy Files -[BulkUploadSyncMode](#BulkUploadSyncMode) +[Object](#Object) Success @@ -263,167 +268,22 @@ Success
-  successInSyncMode - -```json -{ - "value": { - "status": { - "total": 1, - "failed": 0, - "succeeded": 1, - "result": "SUCCESS" - }, - "files": [ - { - "success": true, - "file": { - "src": { - "method": "GET", - "url": "https://hdn-1.fynd.com/platform/pictures/free-logo/original/7qdHNTFe--platform-logo.png", - "meta": {}, - "namespace": "test" - }, - "dest": { - "ETag": "\"a2fdd91e5a6e1c080a44966c923f7d3b\"", - "ServerSideEncryption": "AES256", - "Location": "https://fynd-staging-assets.s3-accelerate.amazonaws.com/addsale/test/general/free/original/4q7uySVcYQ-7qdHNTFe-platform-logo.png", - "key": "addsale/test/general/free/original/4q7uySVcYQ-7qdHNTFe-platform-logo.png", - "Key": "addsale/test/general/free/original/4q7uySVcYQ-7qdHNTFe-platform-logo.png", - "Bucket": "fynd-staging-assets", - "cdn": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/test/general/free/original/4q7uySVcYQ-7qdHNTFe-platform-logo.png", - "absolute_url": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/test/general/free/original/4q7uySVcYQ-7qdHNTFe-platform-logo.png", - "relative_url": "addsale/test/general/free/original/4q7uySVcYQ-7qdHNTFe-platform-logo.png" - } - }, - "extracted_data": { - "sharp": { - "metadata": { - "format": "png", - "size": 20859, - "width": 1147, - "height": 315, - "space": "srgb", - "channels": 4, - "depth": "uchar", - "density": 144, - "isProgressive": false, - "hasProfile": false, - "hasAlpha": true - }, - "stats": { - "channels": [ - { - "min": 0, - "max": 255, - "sum": 18581166, - "squaresSum": 2720454498, - "mean": 51.42792377631087, - "stdev": 69.89066964116273, - "minX": 0, - "minY": 32, - "maxX": 767, - "maxY": 162 - }, - { - "min": 0, - "max": 255, - "sum": 23074718, - "squaresSum": 3794972074, - "mean": 63.86492852299304, - "stdev": 80.15486600126069, - "minX": 0, - "minY": 32, - "maxX": 767, - "maxY": 162 - }, - { - "min": 0, - "max": 255, - "sum": 43651277, - "squaresSum": 8829856965, - "mean": 120.81559070591328, - "stdev": 99.20892161899766, - "minX": 0, - "minY": 32, - "maxX": 767, - "maxY": 162 - }, - { - "min": 0, - "max": 255, - "sum": 55673911, - "squaresSum": 14147207369, - "mean": 154.09117227826906, - "stdev": 124.14431740073556, - "minX": 0, - "minY": 32, - "maxX": 33, - "maxY": 32 - } - ], - "isOpaque": false, - "entropy": 2.2912313200504286, - "sharpness": 3.3113732303662036, - "dominant": { - "r": 8, - "g": 8, - "b": 8 - } - } - } - } - } - ] - } -} -``` -
- -
-  successInSyncModeWithRewrite +  nonSyncMode ```json { "value": { - "status": { - "total": 1, - "failed": 1, - "succeeded": 0, - "result": "FAIL" - }, - "files": [ - { - "success": false, - "error": "Request failed with status code 400", - "file": { - "src": { - "method": "GET", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/x0/documents/manifest/PDFs/test/s3EtYk5p9-new_fee.pdf", - "meta": {}, - "namespace": "test" - } - }, - "stage": "AXIOS_FETCH", - "axios_request": { - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/x0/documents/manifest/PDFs/test/s3EtYk5p9-new_fee.pdf", - "method": "GET", - "meta": {}, - "namespace": "test", - "responseType": "stream" - } - } - ], + "tracking_url": "https://api.fynd.com/public/assets/v1.0/status/copy-files/1.0", "task": { - "id": "83419", + "id": "1.0", "name": "__default__", "data": { "urls": [ "https://hdn-1.fynd.com/platform/pictures/free-logo/original/7qdHNTFe--platform-logo.png" ], "destination": { - "basepath": "/domaine/path", - "rewrite": "{{basepath}}/foo/" + "namespace": "test", + "basepath": "/test/general/free/original" } }, "opts": { @@ -433,11 +293,11 @@ Success "delay": 1000 }, "delay": 0, - "timestamp": 1690669093201 + "timestamp": 1694812055325 }, "progress": 0, "delay": 0, - "timestamp": 1690669093201, + "timestamp": 1694812055325, "attemptsMade": 0, "stacktrace": [], "returnvalue": null, @@ -514,7 +374,7 @@ This operation will return the url for the uploaded file. [StartResponse](#StartResponse) -Success +Success. Returns a response containing relaving and absolute_url of storage service @@ -603,7 +463,7 @@ Browse Files -[BrowseResponse](#BrowseResponse) +[Object](#Object) Success @@ -611,13 +471,59 @@ Success
-  Example: +  Examples: -```json +
+  success + +```json +{ + "value": { + "items": [ + { + "_id": "64e1e6fe0153e1a6d3e101f4", + "file_name": "logo.png", + "file_path": "/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png", + "success": true, + "namespace": "brand-square-logo", + "content_type": "image/png", + "size": 3298, + "operation": "putObject", + "tags": [], + "cdn": { + "url": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png", + "absolute_url": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png", + "relative_url": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png" + }, + "upload": { + "url": "https://fynd-staging-assets.s3-accelerate.amazonaws.com/addsale/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png?Content-Type=image%2Fpng&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20230820%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230820T101213Z&X-Amz-Expires=1800&X-Amz-Signature=04915b14aec15712abdea3c340d5dc43729e7c982a4994650488c0150c22b0ae&X-Amz-SignedHeaders=host%3Bx-amz-acl&x-amz-acl=public-read", + "expiry": 1800 + }, + "created_by": { + "username": "fp_sdet_gofynd_com_65071" + }, + "company_id": 6520, + "bucket_key": "addsale/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png", + "createdAt": "2023-08-20T10:12:14.118Z", + "updatedAt": "2023-08-20T10:12:14.118Z", + "__v": 0 + } + ], + "page": { + "current": 1, + "has_previous": false, + "has_next": true, + "item_total": 481, + "type": "number" + } + } +} ```
+
+ @@ -665,7 +571,7 @@ Browse Files -[BrowseResponse](#BrowseResponse) +[Object](#Object) Success @@ -673,13 +579,59 @@ Success
-  Example: +  Examples: -```json +
+  success + +```json +{ + "value": { + "items": [ + { + "_id": "64e1e6fe0153e1a6d3e101f4", + "file_name": "logo.png", + "file_path": "/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png", + "success": true, + "namespace": "brand-square-logo", + "content_type": "image/png", + "size": 3298, + "operation": "putObject", + "tags": [], + "cdn": { + "url": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png", + "absolute_url": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png", + "relative_url": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png" + }, + "upload": { + "url": "https://fynd-staging-assets.s3-accelerate.amazonaws.com/addsale/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png?Content-Type=image%2Fpng&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20230820%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230820T101213Z&X-Amz-Expires=1800&X-Amz-Signature=04915b14aec15712abdea3c340d5dc43729e7c982a4994650488c0150c22b0ae&X-Amz-SignedHeaders=host%3Bx-amz-acl&x-amz-acl=public-read", + "expiry": 1800 + }, + "created_by": { + "username": "fp_sdet_gofynd_com_65071" + }, + "company_id": 6520, + "bucket_key": "addsale/brands/pictures/square-logo/original/uY0P_ZtIz-logo.png", + "createdAt": "2023-08-20T10:12:14.118Z", + "updatedAt": "2023-08-20T10:12:14.118Z", + "__v": 0 + } + ], + "page": { + "current": 1, + "has_previous": false, + "has_next": true, + "item_total": 481, + "type": "number" + } + } +} ```
+
+ @@ -763,9 +715,13 @@ Success "file_name": "shirt.png", "file_path": "/path/qwertyuiop-shirt.png", "content_type": "image/png", - "method": "PUT", "namespace": "products-item-images", "operation": "putObject", + "company_id": 2, + "tags": [ + "clothing", + "shirt" + ], "size": 9999, "cdn": { "url": "https://xxx.xxx.xxx/products/pictures/free/original/qwertyuiop-shirt.png", @@ -828,7 +784,7 @@ Copy Files -[BulkUploadSyncMode](#BulkUploadSyncMode) +[Object](#Object) Success @@ -840,118 +796,42 @@ Success
-  successInSyncMode +  nonSyncMode ```json { "value": { - "status": { - "total": 1, - "failed": 0, - "succeeded": 1, - "result": "SUCCESS" - }, - "files": [ - { - "success": true, - "file": { - "src": { - "method": "GET", - "url": "https://hdn-1.fynd.com/platform/pictures/free-logo/original/7qdHNTFe--platform-logo.png", - "meta": {}, - "namespace": "test" - }, - "dest": { - "ETag": "\"a2fdd91e5a6e1c080a44966c923f7d3b\"", - "ServerSideEncryption": "AES256", - "Location": "https://fynd-staging-assets.s3-accelerate.amazonaws.com/addsale/test/general/free/original/4q7uySVcYQ-7qdHNTFe-platform-logo.png", - "key": "addsale/test/general/free/original/4q7uySVcYQ-7qdHNTFe-platform-logo.png", - "Key": "addsale/test/general/free/original/4q7uySVcYQ-7qdHNTFe-platform-logo.png", - "Bucket": "fynd-staging-assets", - "cdn": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/test/general/free/original/4q7uySVcYQ-7qdHNTFe-platform-logo.png", - "absolute_url": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/test/general/free/original/4q7uySVcYQ-7qdHNTFe-platform-logo.png", - "relative_url": "addsale/test/general/free/original/4q7uySVcYQ-7qdHNTFe-platform-logo.png" - } - }, - "extracted_data": { - "sharp": { - "metadata": { - "format": "png", - "size": 20859, - "width": 1147, - "height": 315, - "space": "srgb", - "channels": 4, - "depth": "uchar", - "density": 144, - "isProgressive": false, - "hasProfile": false, - "hasAlpha": true - }, - "stats": { - "channels": [ - { - "min": 0, - "max": 255, - "sum": 18581166, - "squaresSum": 2720454498, - "mean": 51.42792377631087, - "stdev": 69.89066964116273, - "minX": 0, - "minY": 32, - "maxX": 767, - "maxY": 162 - }, - { - "min": 0, - "max": 255, - "sum": 23074718, - "squaresSum": 3794972074, - "mean": 63.86492852299304, - "stdev": 80.15486600126069, - "minX": 0, - "minY": 32, - "maxX": 767, - "maxY": 162 - }, - { - "min": 0, - "max": 255, - "sum": 43651277, - "squaresSum": 8829856965, - "mean": 120.81559070591328, - "stdev": 99.20892161899766, - "minX": 0, - "minY": 32, - "maxX": 767, - "maxY": 162 - }, - { - "min": 0, - "max": 255, - "sum": 55673911, - "squaresSum": 14147207369, - "mean": 154.09117227826906, - "stdev": 124.14431740073556, - "minX": 0, - "minY": 32, - "maxX": 33, - "maxY": 32 - } - ], - "isOpaque": false, - "entropy": 2.2912313200504286, - "sharpness": 3.3113732303662036, - "dominant": { - "r": 8, - "g": 8, - "b": 8 - } - } - } + "tracking_url": "https://api.fynd.com/public/assets/v1.0/status/copy-files/1.0", + "task": { + "id": "1.0", + "name": "__default__", + "data": { + "urls": [ + "https://hdn-1.fynd.com/platform/pictures/free-logo/original/7qdHNTFe--platform-logo.png" + ], + "destination": { + "namespace": "test", + "basepath": "/test/general/free/original" } - } - ] + }, + "opts": { + "attempts": 2, + "backoff": { + "type": "fixed", + "delay": 1000 + }, + "delay": 0, + "timestamp": 1694812055325 + }, + "progress": 0, + "delay": 0, + "timestamp": 1694812055325, + "attemptsMade": 0, + "stacktrace": [], + "returnvalue": null, + "finishedOn": null, + "processedOn": null + } } } ``` @@ -970,19 +850,17 @@ Success --- -### getDefaultHtmlTemplate -Get html template for sales channel +### generatePaymentReceipt +Generate Payment Receipt for Jiomart Digital ```javascript // Promise -const promise = platformClient.application("").fileStorage.getDefaultHtmlTemplate({ pdfTypeId : value, - format : value }); +const promise = platformClient.application("").fileStorage.generatePaymentReceipt({ body : value }); // Async/Await -const data = await platformClient.application("").fileStorage.getDefaultHtmlTemplate({ pdfTypeId : value, - format : value }); +const data = await platformClient.application("").fileStorage.generatePaymentReceipt({ body : value }); ``` @@ -990,22 +868,20 @@ const data = await platformClient.application("").fileStorage.ge | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| pdfTypeId | number | yes | | -| format | string | yes | | - +| --------- | ----- | -------- | ----------- | +| body | [PaymentReceiptRequestBody](#PaymentReceiptRequestBody) | yes | Request body | -Get default html template for invoice or label +Generate Payment Receipt for Jiomart Digital *Returned Response:* -[Array](#Array) +[Object](#Object) -Get last saved html template for invoice +Kafka response published to generate payment receipt @@ -1019,17 +895,9 @@ Get last saved html template for invoice ```json { - "value": [ - { - "_id": "64b7f52d56a0cba5231964b0", - "company_id": 1, - "application_id": "64aed475db2cfb5b8a9f623d", - "pdf_type_id": 1, - "format": "A4", - "template": "

Hello world

", - "__v": 0 - } - ] + "value": { + "success": true + } } ```
@@ -1047,17 +915,19 @@ Get last saved html template for invoice --- -### getDefaultPdfData -Get Dummy pdf data for invoice or label +### getDefaultHtmlTemplate +Get html template for sales channel ```javascript // Promise -const promise = platformClient.application("").fileStorage.getDefaultPdfData({ pdfTypeId : value }); +const promise = platformClient.application("").fileStorage.getDefaultHtmlTemplate({ pdfTypeId : value, + format : value }); // Async/Await -const data = await platformClient.application("").fileStorage.getDefaultPdfData({ pdfTypeId : value }); +const data = await platformClient.application("").fileStorage.getDefaultHtmlTemplate({ pdfTypeId : value, + format : value }); ``` @@ -1066,20 +936,21 @@ const data = await platformClient.application("").fileStorage.ge | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| pdfTypeId | number | yes | | +| pdfTypeId | number | yes | | +| format | string | yes | | -Get Dummy pdf data for invoice or label +Get default html template for invoice or label *Returned Response:* -[Array](#Array) +[PdfConfigSuccess](#PdfConfigSuccess) -Get dummy json data for invoice +Get last saved html template for invoice @@ -1093,242 +964,33 @@ Get dummy json data for invoice ```json { - "value": [ - { - "_id": "64b7f52d56a0cba5231964b0", - "pdf_type_id": 1, - "payload": { - "currency_code": "INR", - "shipment_id": "16811182420541695489", - "amount_to_be_collected": 0, - "amount_paid": 100, - "awb_number_barcode": "", - "signed_qrcode": "", - "shipment_id_barcode": "", - "upi_qrcode": "", - "is_self_ship": false, - "is_self_pickup": true, - "is_test": false, - "image": { - "sales_channel_logo": "" - }, - "payments": [ - { - "payment_type": "Net Banking", - "date": "10/04/2023", - "transaction_id": "10022310053248709000", - "amount": 35 - } - ], - "invoice_detail": { - "invoice_id": "2352313215236713", - "invoice_date": "10/04/2023", - "irn": "", - "external_order_id": "", - "shipment_id": "16811182420541695489", - "order_id": "73982433", - "channel_order_id": "affiliate_details.channel_order_id" - }, - "company_detail": { - "name": "RELIANCE RETAIL LIMITED", - "address": "1ST FLOOR, WEWORK VIJAY DIAMOND, CROSS RD B, AJIT NAGAR, KONDIVITA, ANDHERI EAST, MUMBAI, MAHARASHTR", - "city": "MUMBAI", - "state": "MAHARASHTRA", - "country": "INDIA", - "zip_code": "400093", - "state_code": "27", - "country_code": "IN", - "gstin": "27AABCR1718E1ZP", - "pan": "AABCR1718E", - "phone_no": "9594495254", - "cin": "U45200MH1992PTC066474", - "website_url": "https://freshpik.hostx1.de", - "email": "" - }, - "store_detail": { - "store_name": "FreshPik", - "address": "FRESHPIK, JIO WORLD DRIVE, MAKERS MAXITY,STORE UNIT - G 22,23&24 BANDRA EAST FSSAI NO: 11521005000512", - "city": "Mumbai", - "state": "Maharashtra", - "country": "India", - "country_code": "IN", - "zip_code": "400093", - "state_code": "27", - "gstin": "27AABCR1718E1ZP" - }, - "customer_shipping_detail": { - "name": "Megha Golecha", - "phone_no": "9769199489", - "address": "1001 Badri Vishal, Sahakar Nagar, Andheri West, 400053, Near Building No. 33, Shanti Nagar,Test,Mumbai,Maharashtra,India,400053", - "city": "Mumbai", - "state": "Maharashtra", - "country": "India", - "country_code": "IN", - "zip_code": "400053", - "state_code": "27", - "gstin": "" - }, - "return_detail": { - "address": "FRESHPIK, JIO WORLD DRIVE, MAKERS MAXITY,STORE UNIT - G 22,23&24 BANDRA EAST FSSAI NO: 11521005000512", - "city": "Mumbai", - "state": "Maharashtra", - "country": "India", - "country_code": "IN", - "zip_code": "400053", - "state_code": "27", - "gstin": "" - }, - "product_table": { - "total_items": 1, - "products": [ - { - "name": "So Good Unsweetened Soy Milk 200 ml (Tetra Pak)", - "size": "200ML", - "item_code": "", - "seller_identifier": "490001550", - "hsn_code": "62060000", - "total_units": 1, - "mrp": 35, - "discount": 123, - "taxable_amount": 33.33, - "total_taxable_amount": 33.33, - "tax": { - "cgst": { - "value": 0.83, - "percent": 2.5 - }, - "sgst": { - "value": 0.83, - "percent": 2.5 - }, - "igst": { - "value": 0.83, - "percent": 2.5 - } - }, - "total": 35, - "brand": { - "logo": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/brands/pictures/square-logo/original/gi4glSy7T-EX5Teqb1K-Logo.jpeg", - "name": "Freshpik" - } - } - ], - "grand_total": 35, - "delivery_charges": 0, - "delivery_charge_text": "", - "cod_charges": 0, - "fynd_discounts": 0, - "total_in_words": "Thirty Five Rupees Only" - }, - "tax_table": { - "taxes": [ - { - "hsn_code": "62060000", - "tax": { - "cgst": { - "value": 0.83, - "percent": 2.5 - }, - "sgst": { - "value": 0.83, - "percent": 2.5 - }, - "igst": { - "value": 0, - "percent": 0 - } - }, - "total": 123 - } - ], - "grand_total": 1.67, - "tax_in_words": "One Rupees and Sixty Seven Paise Only" - }, - "declaration_texts": [ - "1. Products being sent under this invoice are for personal consumption for the customer and not for resale or commercial purposes.", - "2. Whether tax is payable under reverse charge - No", - "3. This invoice shows the actual price of the goods described above and that all particulars are true and accurate.", - "4. In case of any queries, please reach out to care@gofynd.com.", - "5. In the event of any loss or non-delivery, the goods shall be returned to the address specified below. this.shipment.invoice.rto_address" - ], - "registered_company_detail": { - "address": "1ST FLOOR, WEWORK VIJAY DIAMOND, CROSS RD B, AJIT NAGAR, KONDIVITA, ANDHERI EAST, MUMBAI, MAHARASHTR", - "city": "MUMBAI", - "state": "MAHARASHTRA", - "country": "INDIA", - "zip_code": "400093", - "state_code": "27", - "country_code": "IN" - }, - "disclaimer": "An Electronic document issued in accordance with the provisions of the Information Technology Act, 2000 (21 of 2000)", - "meta": { - "generator": { - "signed_qrcode_generator": { - "method": "signedqrcode", - "kwargs": { - "value": "eyJhbGciOiJSUzI1NiIsImtpZCI6IkVEQzU3REUxMzU4QjMwMEJBOUY3OTM0MEE2Njk2ODMxRjNDODUwNDciLCJ0eXAiOiJKV1QiLCJ4NXQiOiI3Y1Y5NFRXTE1BdXA5NU5BcG1sb01mUElVRWMifQ.eyJkYXRhIjoie1wiU2VsbGVyR3N0aW5cIjpcIjI3QUFCUFA2NTAzRTAwM1wiLFwiQnV5ZXJHc3RpblwiOlwiMjdBQUxDQTA0NDJMMVpNXCIsXCJEb2NOb1wiOlwiQTAwMDExMzMzQTAwMDAwM1wiLFwiRG9jVHlwXCI6XCJJTlZcIixcIkRvY0R0XCI6XCIxMS8xMC8yMDIyXCIsXCJUb3RJbnZWYWxcIjoyNDk5OTkuNzYsXCJJdGVtQ250XCI6MSxcIk1haW5Ic25Db2RlXCI6XCI5NDAxXCIsXCJJcm5cIjpcImUzNjE5M2YzNGQyZmY4OTM3MzI2NTcxN2RmYzY5YzVmYjU2MTI1N2U1M2MxOThhMDAzMGRkM2RlZGUxNDhmMmZcIixcIklybkR0XCI6XCIyMDIyLTEwLTExIDE0OjIxOjAwXCJ9IiwiaXNzIjoiTklDIn0.OtYrnBt311QrqdXCSuTOpzNuYA9M8ejRoyeRioJRyGImljXrNvBLU_JJpXVLtDI4dkbIEHVbbOuucYD3fn_nnH_KZA0kLkUuok417ztLxWN35D9xZaYg5GSWI8hss9KV7i-H-k_95pHBYPEwFFGw8IqlpgeS-unjkbbmY7UgQTerMIXrig-ZWc2R-NDFoHs7I48TuWzOxQfiEDVsMHzPjcjuqKA6KDoJKX0nZzZo84GL2k2pM0Klhq5sfJIC9Zp7E_xP_Bst6-cRhdZ2EA08xhJYSgB1fsYxGaxemXgdsXw0mqlGohOryvqwhHPSMEocK6ZHWWJvjZJwNx_e-oCyzg" - } - }, - "shipment_id_barcode_generator": { - "method": "barcode", - "kwargs": { - "value": "dsgffdghfghgj" - } - }, - "upi_qrcode_generator": { - "method": "qrcode", - "kwargs": { - "qr_data": "upi://pay?pa=delhivery1.PAYU@HDFCBANK&pn=www.delhivery.com&mc=4214&tr=O-zo0ou2yTjZCx-dk2b&am=6581.0&cu=INR&ver=01&mode=15&orgId=000000&gstBreakup=GST:30.0%7CCGST:0.0%7CSGST:0.0%7CIGST:30.0%7CCESS:0.0%7CGSTIncentive:12.0%7CGSTPCT:None&invoiceNo=UT/23-24/198&invoiceDate=2023-05-02T16:45:42&invoiceName=UT%2F23-24%2F198&gstIn=07ANLPC8083H1ZS&qrMedium=04", - "qr_url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyprod/wrkr/logistics/qr-code/Delhivery/original/Hv0blbPtA-16830153113571272087.png" - } - }, - "awb_number_barcode_generator": { - "method": "barcode", - "kwargs": { - "value": "7923787945" - } - }, - "digital_signature_generator": { - "method": "digitalsignature", - "kwargs": { - "value": "8345jhkdfn" - } - }, - "awb_number_label_barcode_generator": { - "method": "barcode", - "kwargs": { - "value": [ - "9901090772264", - "9901090772264" - ] - } - } - } - }, - "delivery_partner_detail": { - "name": "fyndr", - "awb_number": "", - "dp_sort_code": "ABC/DEF", - "origin": "1678236", - "destination": "142345" - }, - "customer_billing_detail": { - "name": "Megha Golecha", - "phone_no": "9769199489", - "address": "1001 Badri Vishal, Sahakar Nagar, Andheri West, 400053, Near Building No. 33, Shanti Nagar,Test,Mumbai,Maharashtra,India,400053", - "city": "Mumbai", - "state": "Maharashtra", - "country": "India", - "country_code": "IN", - "zip_code": "400053", - "state_code": "27", - "gstin": "", - "email": "shipment.hand_over_contact_json.email" - } - }, - "__v": 0 - } - ] + "value": { + "data": [ + { + "_id": "64b7f52d56a0cba5231964b0", + "company_id": 1, + "application_id": "64aed475db2cfb5b8a9f623d", + "pdf_type_id": 1, + "format": "A4", + "template": "

Hello world

", + "__v": 0 + } + ], + "success": true + } +} +``` +
+ +
+  failure + +```json +{ + "value": { + "data": [], + "success": true + } } ```
@@ -1346,19 +1008,17 @@ Get dummy json data for invoice --- -### getDefaultPdfTemplate -Default html template +### getDefaultPdfData +Get Dummy pdf data for invoice or label ```javascript // Promise -const promise = platformClient.application("").fileStorage.getDefaultPdfTemplate({ pdfTypeId : value, - format : value }); +const promise = platformClient.application("").fileStorage.getDefaultPdfData({ pdfTypeId : value }); // Async/Await -const data = await platformClient.application("").fileStorage.getDefaultPdfTemplate({ pdfTypeId : value, - format : value }); +const data = await platformClient.application("").fileStorage.getDefaultPdfData({ pdfTypeId : value }); ``` @@ -1367,21 +1027,20 @@ const data = await platformClient.application("").fileStorage.ge | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| pdfTypeId | number | yes | | -| format | string | yes | | +| pdfTypeId | number | yes | | -Get default html template data for invoice or label +Get Dummy pdf data for invoice or label *Returned Response:* -[Array](#Array) +[DummyTemplateDataItems](#DummyTemplateDataItems) -Get rendered html with dummy json payload +Get dummy json data for invoice @@ -1395,60 +1054,346 @@ Get rendered html with dummy json payload ```json { - "value": [ - { - "_id": "64b7f21156a0cba523196482", - "pdf_type_id": 1, - "format": "A4", - "template": "

Hello World

", - "__v": 0 - } - ] -} -``` - - - - - - - - - - + "value": { + "data": [ + { + "_id": "64b7f52d56a0cba5231964b0", + "pdf_type_id": 1, + "payload": { + "is_international": false, + "app_domain_name": "https://shop.fynd.com", + "conversion_rate": { + "base": "INR", + "rates": { + "inr": { + "name": "Indian Rupee", + "value": 1, + "symbol": "₹", + "sub_unit": "" + }, + "usd": { + "name": "United States Dollar", + "value": 0.01176, + "symbol": "$", + "sub_unit": "" + } + }, + "timestamp": 1681117200000 + }, + "currency_code": "inr", + "shipment_id": "16915832909421966006", + "delivery_partner_detail": { + "name": "fyndr", + "awb_number_barcode": "", + "awb_number": "7028792719409", + "eway_bill_number": null + }, + "image": { + "sales_channel_logo": "" + }, + "payments": [ + { + "payment_type": "Cash on Delivery", + "amount": 3010, + "date": "2023-08-09", + "transaction_id": "TR64D383390EAD429ED3" + } + ], + "invoice_detail": { + "invoice_id": "C00003929A000011", + "invoice_date": "09/08/2023", + "irn": "", + "external_order_id": "FY64D383390EBB4D847B", + "shipment_id": "16915832909421966006", + "signed_qrcode": "", + "upi_qrcode": "" + }, + "company_detail": { + "name": "auto_company_120720232155193", + "address": "561,1430 NICO VIADUCT", + "city": "NICOBAR", + "state": "ANDAMAN AND NICOBAR ISLANDS", + "country": "INDIA", + "zip_code": 739599, + "state_code": "35", + "country_code": "IN", + "gstin": "27AALCA0442L1ZM", + "pan": null, + "phone_no": "9823245916", + "cin": "", + "website_url": "https://autocompany120720232155193.hostx1.de/", + "email": "test@gmail.com" + }, + "store_detail": { + "store_name": "Khan Ltd lmitited", + "address": "52936,235 Desai Club, Thane - 127040", + "city": "Thane", + "state": "Maharashtra", + "country": "India", + "country_code": "India", + "zip_code": "127040", + "state_code": "27", + "gstin": "27AALCA0442L1ZM" + }, + "customer_billing_detail": { + "name": "Sonal Nalawade", + "phone_no": "XXXXXXX144", + "address": "OFFICE 101/Railway Police Quarters Wing-D Railway Police Quarters Sbi Bank Mumbai Maharashtra India 400093", + "city": "MUMBAI", + "state": "MAHARASHTRA", + "country": "India", + "country_code": "IND", + "zip_code": "400093", + "state_code": "27", + "gstin": null + }, + "customer_shipping_detail": { + "name": "Sonal Nalawade", + "phone_no": "XXXXXXX144", + "address": "OFFICE 101/Railway Police Quarters, Wing-D, Railway Police Quarters, Sbi Bank, Mumbai, Maharashtra, India, 400093", + "city": "MUMBAI", + "state": "MAHARASHTRA", + "country": "India", + "country_code": "IND", + "zip_code": "400093", + "state_code": "27", + "gstin": null + }, + "return_detail": { + "address": "52936,235 Desai Club", + "city": "Thane", + "state": "Maharashtra", + "country": "India", + "country_code": null, + "zip_code": "127040", + "state_code": "27", + "gstin": "27AALCA0442L1ZM" + }, + "product_table": { + "total_items": 1, + "products": [ + { + "name": "kuldeep testing webhook", + "seller_identifier": "DK78JSKKDJ", + "total": 3000, + "brand": { + "logo": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/brands/pictures/square-logo/original/Wj9obvYLS-Logo.jpeg", + "name": "play clan555" + }, + "hsn_code": "64011234", + "item_code": "123abc", + "total_units": 1, + "size": "OS", + "mrp": 3000, + "discount": 0, + "taxable_amount": 2678.57, + "total_taxable_amount": 2678.57, + "tax": { + "cgst": { + "value": 160.715, + "percent": 6 + }, + "sgst": { + "value": 160.715, + "percent": 6 + }, + "igst": { + "value": 0, + "percent": 0 + } + } + } + ], + "grand_total": 3010, + "delivery_charges": 0, + "delivery_charge_text": "Standard Delivery Charges (Incl of gst)", + "cod_charges": 10, + "fynd_discounts": 0, + "total_in_words": "Three Thousand Ten Rupees Only" + }, + "tax_table": { + "taxes": [ + { + "hsn_code": "64011234", + "tax": { + "cgst": { + "value": 160.715, + "percent": 6 + }, + "sgst": { + "value": 160.715, + "percent": 6 + }, + "igst": { + "value": 0, + "percent": 0 + } + }, + "total_tax_value": 321.43 + }, + { + "hsn_code": "996819", + "tax": { + "cgst": { + "value": 0, + "percent": 1.5 + }, + "sgst": { + "value": 0, + "percent": 1.5 + }, + "igst": { + "value": 0, + "percent": 0 + } + }, + "total_tax_value": 0 + } + ], + "total_tax": 321.43, + "tax_in_words": "Three Hundred Twenty One Rupees and Forty Three Paise Only" + }, + "declaration_texts": [ + "1. Products being sent under this invoice are for personal consumption for the customer and not for resale or commercial purposes.", + "2. Whether tax is payable under reverse charge - No", + "3. This invoice shows the actual price of the goods described above and that all particulars are true and accurate.", + "4. In case of any queries, please reach out to care@gofynd.com.", + "5. The product is sold by seller via E-commerce platform i.e Fynd/Fyndstore/Fynd Platform, who doesn't represent or warrant or have any responsibility for claims relating to the products including its use", + "6. In the event of any loss or non-delivery, the goods shall be returned to the address specified below.", + "7. 52936,235 Desai Club, Thane, Maharashtra, India, 127040" + ], + "registered_company_detail": { + "address": "561,1430 NICO VIADUCT, NICOBAR, ANDAMAN AND NICOBAR ISLANDS, INDIA, 739599", + "city": "NICOBAR", + "state": "ANDAMAN AND NICOBAR ISLANDS", + "country": "INDIA", + "country_code": "IN", + "zip_code": 739599, + "state_code": "35" + }, + "disclaimer": "An Electronic document issued in accordance with the provisions of the Information Technology Act, 2000 (21 of 2000)", + "meta": { + "generator": { + "shipment_id_barcode_generator": { + "method": "barcode", + "kwargs": { + "value": "16915832909421966006" + } + }, + "signed_qrcode_generator": { + "method": "signedqrcode", + "kwargs": { + "value": "" + } + }, + "upi_qrcode_generator": { + "method": "qrcode", + "kwargs": { + "qr_data": "", + "qr_url": "" + } + }, + "digitalsignature_generator": { + "method": "digital_signature", + "kwargs": { + "value": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/company/2/self/legal/documents/free/original/QMx2H6a7o-deelipphoto.jpeg" + } + }, + "awb_number_label_barcode_generator": { + "method": "barcode", + "kwargs": { + "value": [] + } + } + } + }, + "is_self_ship": false, + "mode": "live", + "is_self_pickup": false, + "platform_name": "ECOMM", + "amount_to_be_collected": 3010, + "amount_paid": 3010, + "waybills": [], + "total_items": 1, + "brand_logo": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/brands/pictures/square-logo/original/Wj9obvYLS-Logo.jpeg", + "shipment_id_barcode": "iVBORw0KGgoAAAANSUhEUgAAAJEAAABICAYAAAD26RfEAAAABmJLR0QA/wD/AP+gvaeTAAALYklEQVR4nO3Xe0yTZ9/A8W/tOM0NZRqIWnClVJEWLE4LFCwIRLKDDsw2hxKWuSlT46L/GLe47OAWs5FosuxggsrczLaoTMNwMoEZDxw2hRGkuDmcqHgoA9GNTYptf88fe9eMPOL7vs/NkydPcn0SAvfdK9d13b2/abl1gACICDqdDhEBQKfT8Ze/nxvp9b+O7/T6ncbc6e+R5vr72iO99v9ZY6TX77be/3Ydd3ufRprnbmvdbe2R7tWd1h/peKT93+39vdMeAMagKBqpiBTNVESKZioiRTMVkaKZikjRTEWkaKYiUjRTESmaqYgUzVREimYqIkUzFZGimYpI0UxFpGimIlI0UxEpmqmIFM1URIpmKiJFMxWRopmKSNFMRaRopiJSNFMRKZqpiBTNVESKZioiRTMVkaKZikjRTEWkaKYiUjRTESmaqYgUzVREimYqIkUzFZGimYpI0UxFpGimIlI0UxEpmqmIFM1URIpmKiJFMxWRopmKSNFMRaRopiJSNFMRKZqpiBTNVESKZioiRTMVkaKZikjRTEWkaKYiUjRTESmaqYgUzVREimY6EZH/9CaU/27qk0jRTEWkaKYiUjQb1YgyMzOHHVdUVGA0GomLi6OmpgYAl8tFamoqZrOZlStX4vP5AuMvXrxIUVFR4Pj48ePodLrAz2uvvQbAJ598gslkwmQysW3bNgCuXbtGVlYWZrOZ1NRUOjs7ATh69CgWi4XY2FheeOEF/H4/Q0NDPPvss5jNZtLS0vj5558BuHz5Mna7nalTp/L6668H9rF+/XrMZjM2m43m5uZh19ja2sqcOXMCx2VlZcTFxREbG8u77747bOzGjRs5duxY4Pizzz4jPj6e+Ph4du3aFTi/ZcsWDAYDSUlJuFwuAHp6enA6nRgMBlauXBkY+/bbbzN58mTsdjsXLlwAwO12k5aWRkxMDC+//HJgbE1NDWazGaPRSEVFxZ1u4b9GRkFjY6MsWrRIQkNDA+f6+/vFZDKJ2+2Wjo4OMZvNIiLicDikvr5e/H6/LFu2TCoqKkREpKysTKxWqyxZsiQwx86dO6W0tHTYWkNDQ2IwGKSvr08GBgZk2rRpcv36ddmwYYNs2bJFREQ++ugjee6550REZMaMGdLW1iZer1fy8/Pl888/l/fee09Wr14tIiK1tbVSUFAgIiLFxcWya9cuGRoakpSUFGltbZXKykrJz88Xr9crp0+fFofDMWwvDodDbDabiIj09PRIbGysXL9+XW7evCkzZsyQs2fPyrVr1+TFF1+UsLAwOXr0qIiIXLt2TeLj4+X69ety48YNmTlzpvT19UlLS4vY7Xa5deuW7N+/Xx577LHA3srLy8Xn80lWVpbU1dXJmTNnxGazyeDgoOzbt08WL14sIiIlJSWybds28Xq9kpmZKY2NjeLxeMRkMklXV5dcunRJpkyZIrdv3x6N2y+j8kkUFRXFypUriYiICJyrqalh4cKFREZGMmPGDOrq6hARurq6cDgc6HQ6CgoKAp9QiYmJLF++fNi8nZ2dfPHFFxiNRp5++ml+/fVXxowZQ1hYGD6fD7/fH/idn59PcXExAF6vl3HjxjE0NERKSgqJiYno9Xrmzp3L2bNnaW1t5ZFHHgEgJyeHkydPAnDixAkWL15MUFAQhYWFHD58mNbWVvLy8tDr9VitVn777Tf6+/sBeOedd1i0aFFgvz09PTz//PNEREQQHh6OzWajs7OTsLAwFixYQEZGRmDsDz/8QHJyMhEREYwbN46MjAyOHz9OZWUly5cvJzQ0lMcff5wPPvgAgGPHjlFUVMSYMWPYv38/s2fPpq6ujieffJKQkBDy8/NpamoC4MiRIyxduhS9Xs+SJUs4fPgwJ06cID09nalTp2IwGPj2229H49YDo/R1ZjQayc3NJSQkJHCuu7ub3t5e0tLSsNlsuFwudDodkydPpr6+Hq/Xy549e3C73QCkpKQwe/bsYfPef//9lJSU8NNPPxEdHc0bb7yBXq9n1apVGI1GDAYDTz31FBMmTCAlJYUJEyaQkJDAunXrKCkpITg4mPLycgB6e3vZuXMnOTk5WCwWDh48iIjw1Vdf0d3dze+//47P5wtcg8FgwO12Y7FYqK6uxuv10tzczNmzZ3G73bhcLr777jueeeaZwH4tFgsvvfQSAG1tbdTX12O32wkPDyc3N5dJkyYFxprNZpqbm+nr66O3t5fa2lrcbjfd3d20tLQwa9YsMjIy6O/vZ2BggKCgIJYtW0ZCQgKvvvoqY8eOxe12M2XKFAD0ej2hoaF4PB4GBwe57777hl1Hd3c3t27dwul0kpiYSENDA/fcc89o3H5GZ5Y7GBwc5Pz589TW1tLb20tWVhYdHR1s376dVatWMTg4iNPpxO/3jzjHhg0bAn+vW7eOBQsWcOnSJXbs2EFXVxfBwcEsXLiQ8+fPYzQaAejo6KCqqoqSkhKOHDkCwKFDh1izZg3r16/H4XAwa9YsVq1ahdVqZd68eURHRxMcHIxOpxu2vt/vp6CggIaGBmbOnElycjIJCQmEhISwYsUKtm/f/k97FhHef/99tm7dyq5du5gwYcIdr23y5Mls3LiRzMxMoqKiSEpK4t5772VwcBCPx8PJkydpampi2bJlHDp0iPPnz/Pxxx8zZ84cioqK+PTTTwGG7VlE8Pv9d7yOwcFBfvzxR44ePYrH4yE9PZ158+YxceLEu93G/5N/29NZZGQkjz76KGPHjmXq1KkYjUYuX76M0WjkxIkTNDc3k5ycTExMzIhzHDx4MPCPd1BQEMHBwbS1teFwOJg4cSLh4eE4nU6OHDnCK6+8Ql9fHwDz58/n3LlzAOzYsYNNmzZRU1PDihUrAnN/+OGHuFwuSktLCQkJISgoCL1ez9DQEABXrlxh0qRJ3L59m02bNuFyudi9ezc3b95k7NixtLW1kZ2dzezZs+no6CA7OxuA1atX09jYSHNzM1lZWSNe219fwe3t7dTV1REUFERMTAyRkZE88cQT6PV60tPT6enp4YEHHiA2NpbU1FT0ej0LFy6kvb2dqKgorl69GpjP4/EQFhZGaGgof/zxx7DriIyMZP78+YwfP56oqCiSk5MD75FW/7aIsrOzqa6uxuPx0N3dzaVLl4iOjqa4uJgDBw5w+/Zttm/fTn5+/ohzlJWVsWfPHgDKy8uZP38+FouFhoYGbt68ya1bt6itrSUhIYEbN26wd+9eAKqqqrDZbHg8HjZv3kxtbW3gkwrgyy+/ZOnSpcCfkT388MPAn0+XlZWV+P1+9u3bR15eHt9//z3Z2dn4fD4qKytJTEwkMjISt9vNuXPnOHXqFAkJCXzzzTe4XK5AbOPHj7/r++P1epk+fTo9PT10dXVx6tQp0tLSyM3N5cCBA4gITU1NTJkyBb1ej8lkoqWlBb/fT1VVFcnJyeTl5VFRUYHP5+Prr78mNTUVgNzcXCoqKhAR9u7dS15eHnPnzuXYsWMMDAzQ29tLW1sb06ZN+9dv8N+Nyr/n/+PBBx8cdrx161aZPn26WK1WOXz4sIiItLe3S1JSkhgMBtm8efOw8fX19cOezjo7O+Whhx4Sk8kkhYWFMjAwICJ/PsmZzWaJjY2Vt956S0RErl69Kjk5OWIymcTpdMq5c+ekra1NgGE/b775pni9XiksLJTo6GjJycmR/v5+ERG5cuWKOJ1OsVqtsmnTpsA+1q5dKzExMWK32+XixYvD9vzLL78Ens527tz5T+tVV1cHxhYXFweezkREdu/eLUajUeLi4qS2tlZERHw+n6xdu1bMZrPY7XY5ffq0iIicOXNG7Ha7xMXFyZo1a8Tn84mISGlpqVitVklPT5cLFy6IyJ9PidnZ2WKxWGTjxo2B9crLyyU+Pl7i4+MDT8Wj4R8Mn/B15sxE9gAAAABJRU5ErkJggg==", + "signed_qrcode": "", + "upi_qrcode": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyprod/wrkr/logistics/qr-code/Delhivery/original/Hv0blbPtA-16830153113571272087.png", + "digitalsignature": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/brands/pictures/square-logo/original/Wj9obvYLS-Logo.jpeg", + "awb_number_barcode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHsAAABICAYAAADWKYp8AAAABmJLR0QA/wD/AP+gvaeTAAAHTklEQVR4nO2db0hTXRzHv1elP7M/oILonKjL6dyyWMrE/FOkgSiNTCoriajAjKI3FQsFw15lrSLJwAL7B9ILEenFsNRKapVFShtRhkNp5SJXpm7Jtvt73jzdx/mnhJ584DnnA3txz/ndc7/nfHbvPe+uAIAAgIggCAKICAAgCAJ+MLntR93k9h/M5fzZrjV5rMnnTq2fOu7ULDNlmC3/bNmmzudn+WbLNjXfXNZx6nV+VTtT3p/lCgKHGbhshuCyGYLLZggumyG4bIbgshmCy2YILpshuGyG4LIZgstmCC6bIbhshuCyGYLLZggumyG4bIbgshmCy2YILpshuGyG4LIZgstmCC6bIbhshuCyGYLLZggumyG4bIbgshmCy2YILpshuGyG4LIZgstmCC6bIbhshuCyGYLLZggumyG4bIbgshmCy2YILpshuGyG4LIZgstmCC6bIbhshuCyGYLLZggumyG4bIbgshmCy2YILpshuGyG4LIZQqCpH3/k/G/hdzZDcNkMwWUzxLzIHhsbgyAIAT+DwQAAuHjxIuRyOXQ6Hfr6+gAA/f39yMzMhFKpRGFhIVwuFwCgtrYW8fHxUKlUaG5uBgDodLqAccPCwgAAjY2NSEpKglqtRlNTEwDA4/Fg69atUCqVWLNmDXp7e2G326dl27dvn5S9paUFJpNJOn769Cl0Oh0SExNhNBoDvl9NRMjPz8f9+/cBAKOjo8jLy0NMTAwOHDgAURQBAOfOnYNKpYJGo4HZbP4jaz4j9B9QWVlJd+7cocHBQUpOTqbx8XEym81UWFhIRETbt2+n69evExFRdXU1HT16lN6/f09qtZrcbjd9+vSJ4uPjSRTFgHHNZjMdP36cBgYGSKvV0sjICA0PD5NWq6XR0VG6dOkS7d+/n4iI2tvbSa/XT8tWXl5OFouFRFGkyspKioqKorNnz0r9KSkpZLPZyOfzkcFgoAcPHkh9DQ0NJJPJqLOzk4iIqqqqqKamhkRRpOLiYmptbaWenh7S6/XkdrvJ4XCQVqslr9f77y7wLMz7Y7y/vx9v3rxBYWEhOjo6sHnzZshkMmzcuBGvXr2CKIpYsmQJtmzZAgBYt24d+vr6sGjRIgQHB0MURfj9fvj9/oC7yuv1ora2FlVVVbDZbNDr9Vi2bBnCwsKQnp4Oi8UCr9eLvXv3AgCysrJgt9sDsr18+RI+nw8ZGRkAgNzcXBQXF0v9o6Oj8Pl8SElJQXBwMAwGA+7duwcAcDgcaGpqwqZNm6T69vZ2lJWVQRAElJWVoa2tDb29vVi/fj0WL16M6OhoxMXFwWq1/pnFnsK8yz516hSOHTsGAHA6nZDL5QAAQRAQERGBL1++oKGhATKZDF6vFyaTCRs2bEB4eDjy8/Mhl8uhVCphNBoRFPRP/Bs3bqCoqAihoaFISkqCxWLB169fMTQ0hM7OTjidThw+fBh6vR4AYDKZkJubG5Dt5MmTMBqNUp68vDyoVCqpf+nSpRBFEVarFRMTE2hubobT6QQAHDp0CCaTCSEhIVK90+lEdHQ0ACAmJgZDQ0NISUlBR0cH3G437HY7njx5Io3xpwn5dcm/h8PhwODgINLS0qQ2QRACan6816xWK3bv3o3s7GxUVFSgu7sbz549g8PhwNjYGAwGA0pLS7F8+XIQEerr66V3ZUJCAo4cOYK1a9dCLpdj9erVkMlkAACXy4Xy8nK4XC7cvn1buq7VakVISAgSEhJ+OofGxkbs2bMHgiAgPT0dCxYswK1bt7By5UqkpqZOq588P1EUkZaWhpKSEqSnp0OpVAZk+9PM653d1NQU8FiMjIzEx48fpePh4WGEh4fDYrGgpKQEdXV1OH/+PIKCgvD8+XMUFBQgNDQUkZGRSE5ORnd3NwCgu7sbiYmJCA0NBQD4/X6UlpbCZrOhra0NAKBQKPD582fk5OSgoKAAd+/elTZzAHDz5k1s27btl3PQarXSHy8hIQGxsbF4/Pgxrl27BqVSiZaWFuzYsQMdHR0B8/vw4QOioqLg8/lQUVEBm82G1tZWeDweKBSK31/cuTAvO4O/yc7OJrvdLh07HA5KTU2liYkJevjwobRBy8rKIpvNFnDuo0ePKCcnh75//04ul4uSkpJoYGCAiIhOnDghbeiIiMbGxigqKopcLhe9ffuW1Go1+f1+MhqNdPny5RmzaTQaGhkZmdZ+4cKFgA1aZmYmdXV10fj4OK1atYrevXsXUL9r1y5pg1ZdXU1nzpwhIqKdO3dSa2srORwOio+PJ7fbTS9evKC0tLQ5r9/vMm+yPR4PKRSKae11dXWk1WopIyOD+vr6yO/308KFCwmA9CsuLiYiopqaGlIqlbRixQq6evWqNEZWVha9fv06YNwrV65QXFwcqVQq6urqIiKivLy8gHEjIiKIiMjpdJJGo5kx91TZFouF1Go1KRQKqq+vn1Y/Wfa3b9+oqKiINBoNHTx4kPx+PxERnT59mmJjY0mr1VJPT8+c1/B3+QsIrdSMoNwxhQAAAABJRU5ErkJggg==", + "uid": "16915832909421966006" + }, + "__v": 0 + } + ], + "success": true + } +} +``` + + +
+  successEmptyValue + +```json +{ + "value": { + "data": [], + "success": true + } +} +``` +
+ + + + + + + + + --- -### getPdfTypes -Get all the supported invoice pdf types +### getDefaultPdfTemplate +Default html template ```javascript // Promise -const promise = platformClient.application("").fileStorage.getPdfTypes(); +const promise = platformClient.application("").fileStorage.getDefaultPdfTemplate({ pdfTypeId : value, + format : value }); // Async/Await -const data = await platformClient.application("").fileStorage.getPdfTypes(); +const data = await platformClient.application("").fileStorage.getDefaultPdfTemplate({ pdfTypeId : value, + format : value }); ``` +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| pdfTypeId | number | yes | | +| format | string | yes | | + + -Get all the supported invoice pdf types such as Invoice, Label, Deliver challan +Get default html template data for invoice or label *Returned Response:* -[Array](#Array) +[PdfDefaultTemplateSuccess](#PdfDefaultTemplateSuccess) -Get all the invoice types and its format +Get rendered html with dummy json payload @@ -1462,21 +1407,32 @@ Get all the invoice types and its format ```json { - "value": [ - { - "_id": "64b7ec2556a0cba523196426", - "pdf_type_id": 1, - "name": "invoice", - "format": [ - "A4", - "A6", - "POS" - ], - "visibility": true, - "schema": {}, - "__v": 0 - } - ] + "value": { + "data": [ + { + "_id": "64b7f52d56a0cba5231964b0", + "pdf_type_id": 1, + "format": "A4", + "template": "\n\n\n\n \n \n \n Invoice A4\n \n \n \n \n\n\n\n {% if is_international %}\n
\n
\n
\n

Tax Invoice

\n {% if payload.mode === \"development\" %}\n

Original for Recipient | Test Order

\n {% else %}\n

Original for Recipient

\n {% endif %}\n

\n {% if is_self_ship or is_self_pickup %}\n \n {{ delivery_partner_detail.name | upper }}\n \n {% else %}\n \n {{ delivery_partner_detail.name | upper }} | AWB:\n {{ delivery_partner_detail.awb_number }}\n \n {% endif %}\n

\n

\n Amount to be collected:\n \n {{ currency_code }}{{ (conversion_rate.rates[currency_code].value*amount_to_be_collected).toFixed(2) }}\n

\n

\n \n Invoice ID: {{ invoice_detail.invoice_id }}\n \n |\n \n \n {% for payment in payments %}\n {% if loop.last %}\n {{ payment.payment_type }}\n {% else %}\n {{ payment.payment_type }},\n {% endif %}\n {% endfor %}\n \n

Invoice Date: {{ invoice_detail.invoice_date }}

\n

\n

\n Shipment Id - {{ invoice_detail.shipment_id }}\n

\n {% if invoice_detail.irn %}\n

IRN - {{ invoice_detail.irn }}

\n {% endif %}\n
\n {% if image.sales_channel_logo %}\n
\n \"Platform\n
\n {% endif %}\n
\n {% if not is_self_ship and not is_self_pickup %}\n
\n \"{{\n
\n {% endif %}\n {% if signed_qrcode %}\n
\n \"IRN\n
\n
\n IRN QR\n
\n {% endif %}\n
\n
\n
\n
\n
\n
\n

Sold By

\n

{{ company_detail.name }}

\n

{{ store_detail.address }}

\n

State Code - {{ store_detail.state_code }}

\n {% if store_detail.gstin %}\n

GSTIN - {{ store_detail.gstin }}

\n {% endif %}\n {% if company_detail.pan %}\n

PAN - {{ company_detail.pan }}

\n {% endif %}\n {% if company_detail.phone_no %}\n

Phone No: {{ company_detail.phone_no }}

\n {% endif %}\n {% if company_detail.cin %}\n

CIN: {{ company_detail.cin }}

\n {% endif %}\n
\n
\n

Ship From

\n

{{ company_detail.name }}

\n

C/o {{ store_detail.address }}

\n

State Code - {{ store_detail.state_code }}

\n {% if store_detail.gstin %}\n

GSTIN - {{ store_detail.gstin }}

\n {% endif %}\n
\n
\n
\n
\n

Bill To

\n

\n {{ customer_billing_detail.name }} | Mobile:\n {{ customer_billing_detail.phone_no }}\n

\n

{{ customer_billing_detail.address }}

\n
\n
\n

Ship To

\n

\n {{ customer_shipping_detail.name }} | Mobile:\n {{ customer_shipping_detail.phone_no }}\n

\n

{{ customer_shipping_detail.address }}

\n {% if customer_shipping_detail.state_code %}\n

\n Place of Supply: {{ customer_shipping_detail.state }}, {{ customer_shipping_detail.state_code }}\n

\n {% else %}\n

\n Place of Supply: {{ customer_shipping_detail.state }}\n

\n {% endif %}\n
\n
\n
\n

\n Total Items: {{ product_table.total_items }}\n

\n
\n \n \n \n \n \n \n \n \n \n \n \n {% if product_table.products[0].tax.igst.value>0 %}\n \n {% else %}\n \n \n {% endif %}\n \n \n {% for product in product_table.products %}\n \n \n \n \n \n \n \n \n \n \n {% if product.tax.igst.value>0 %}\n \n {% else %}\n \n \n {% endif %}\n \n \n {% endfor %}\n {% if product_table.delivery_charges > 0 %}\n \n \n \n {% if product_table.products[0].tax.igst.value >0 %}\n \n {% else %}\n \n {% endif %}\n \n \n {% endif %}\n {% if product_table.cod_charges > 0 %}\n \n {% if product_table.products[0].tax.igst.value >0 %}\n \n {% else %}\n \n {% endif %}\n \n \n {% endif %}\n \n {% if product_table.products[0].tax.igst.value >0 %}\n \n {% else %}\n \n {% endif %}\n \n \n
ProductSizeSeller IdentifierHSN CodeTotal UnitsMRP (Unit)Discount (Unit)Taxable Amount (Unit)Total Taxable AmountTotal IGSTTotal CGSTTotal SGSTTotal
{{ product.name }}{{ product.size }}{{ product.seller_identifier }}{{ product.hsn_code }}{{ product.total_units }}{{ currency_code }}{{ (conversion_rate.rates[currency_code].value*product.mrp).toFixed(2) }}{{ currency_code }}{{ (conversion_rate.rates[currency_code].value*product.discount).toFixed(2) }}{{ currency_code }}{{ (conversion_rate.rates[currency_code].value*product.taxable_amount).toFixed(2) }}{{ currency_code }}{{ (conversion_rate.rates[currency_code].value*product.total_taxable_amount).toFixed(2) }}\n {{ currency_code }}{{ (conversion_rate.rates[currency_code].value*product.tax.igst.value).toFixed(2) }} ({{ product.tax.igst.percent.toFixed(2) }}%)\n \n {{ currency_code }}{{ (conversion_rate.rates[currency_code].value*product.tax.cgst.value).toFixed(2) }} ({{ product.tax.cgst.percent.toFixed(2) }}%)\n \n {{ currency_code }}{{ (conversion_rate.rates[currency_code].value*product.tax.sgst.value).toFixed(2) }} ({{ product.tax.sgst.percent.toFixed(2) }}%)\n {{ currency_code }}{{ (conversion_rate.rates[currency_code].value*product.total).toFixed(2) }}
{{product_table.delivery_charge_text}}\n 996819\n {{ currency_code }}{{ (conversion_rate.rates[currency_code].value*product_table.delivery_charges).toFixed(2) }}\n
COD ChargesCOD Charges\n {{ currency_code }}{{ (conversion_rate.rates[currency_code].value*product_table.cod_charges).toFixed(2) }}\n
TotalTotal\n {{ currency_code }}{{ (conversion_rate.rates[currency_code].value*product_table.grand_total).toFixed(2) }}\n
\n
\n
\n

Declaration

\n
    \n {% for declaration in declaration_texts %}\n
  1. {{ declaration }}
  2. \n {% endfor %}\n
\n
\n
\n \n {% if upi_qrcode %}\n
\n \"Payment\n

Scan to pay delivery partner

\n
\n {% endif %}\n
\n {% if payments[0].payment_type | upper !== \"CASH ON DELIVERY\" and payments[0].payment_type | upper !== \"COD\" %}\n
\n \n Payment Date: {{ payments[0].date }}\n \n \n |\n \n \n Transaction Id: {{ payments[0].transaction_id }}\n \n \n |\n \n \n Payment Amount: {{ currency_code }}{{ (conversion_rate.rates[currency_code].value*amount_paid).toFixed(2) }}\n \n \n |\n \n \n Mode of Payment:\n {% for payment in payments %}\n {% if loop.last %}\n {{ payment.payment_type }}\n {% else %}\n {{ payment.payment_type }},\n {% endif %}\n {% endfor %}\n \n
\n {% endif %}\n
\n

{{ disclaimer }}

\n
\n
\n {% else %}\n
\n
\n
\n

Tax Invoice

\n {% if payload.mode === \"development\" %}\n

Original for Recipient | Test Order

\n {% else %}\n

Original for Recipient

\n {% endif %}\n

\n {% if is_self_ship or is_self_pickup %}\n \n {{ delivery_partner_detail.name | upper }}\n \n {% else %}\n \n {{ delivery_partner_detail.name | upper }} | AWB:\n {{ delivery_partner_detail.awb_number }}\n \n {% endif %}\n

\n

\n Amount to be collected:\n \n {{ currency_code }}{{ amount_to_be_collected.toFixed(2) }}\n

\n

\n \n Invoice ID: {{ invoice_detail.invoice_id }}\n \n |\n \n \n {% for payment in payments %}\n {% if loop.last %}\n {{ payment.payment_type }}\n {% else %}\n {{ payment.payment_type }},\n {% endif %}\n {% endfor %}\n \n

Invoice Date: {{ invoice_detail.invoice_date }}

\n

\n

\n Shipment Id - {{ invoice_detail.shipment_id }}\n

\n {% if invoice_detail.irn %}\n

IRN - {{ invoice_detail.irn }}

\n {% endif %}\n
\n {% if image.sales_channel_logo %}\n
\n \"Platform\n
\n {% endif %}\n
\n {% if not is_self_ship and not is_self_pickup %}\n
\n \"{{\n
\n {% endif %}\n {% if signed_qrcode %}\n
\n \"IRN\n
\n
\n IRN QR\n
\n {% endif %}\n
\n
\n
\n
\n
\n
\n

Sold By

\n

{{ company_detail.name }}

\n

{{ store_detail.address }}

\n

State Code - {{ store_detail.state_code }}

\n {% if store_detail.gstin %}\n

GSTIN - {{ store_detail.gstin }}

\n {% endif %}\n {% if company_detail.pan %}\n

PAN - {{ company_detail.pan }}

\n {% endif %}\n {% if company_detail.phone_no %}\n

Phone No: {{ company_detail.phone_no }}

\n {% endif %}\n {% if company_detail.cin %}\n

CIN: {{ company_detail.cin }}

\n {% endif %}\n
\n
\n

Ship From

\n

{{ company_detail.name }}

\n

C/o {{ store_detail.address }}

\n

State Code - {{ store_detail.state_code }}

\n {% if store_detail.gstin %}\n

GSTIN - {{ store_detail.gstin }}

\n {% endif %}\n
\n
\n
\n
\n

Bill To

\n

\n {{ customer_billing_detail.name }} | Mobile:\n {{ customer_billing_detail.phone_no }}\n

\n

{{ customer_billing_detail.address }}

\n

\n State Code - {{ customer_billing_detail.state_code }}\n

\n {% if customer_billing_detail.gstin %}\n

GSTIN - {{ customer_billing_detail.gstin }}

\n {% endif %}\n
\n
\n

Ship To

\n

\n {{ customer_shipping_detail.name }} | Mobile:\n {{ customer_shipping_detail.phone_no }}\n

\n

{{ customer_shipping_detail.address }}

\n

\n State Code - {{ customer_shipping_detail.state_code }}\n

\n {% if customer_shipping_detail.gstin %}\n

GSTIN - {{ customer_shipping_detail.gstin }}

\n {% endif %}\n

\n Place of Supply: {{ customer_shipping_detail.state }}, {{ customer_shipping_detail.state_code }}\n

\n
\n
\n
\n

\n Total Items: {{ product_table.total_items }}\n

\n
\n \n \n \n \n \n \n \n \n \n \n \n {% if product_table.products[0].tax.igst.value>0 %}\n \n {% else %}\n \n \n {% endif %}\n \n \n {% for product in product_table.products %}\n \n \n \n \n \n \n \n \n \n \n {% if product.tax.igst.value>0 %}\n \n {% else %}\n \n \n {% endif %}\n \n \n {% endfor %}\n {% if product_table.delivery_charges > 0 %}\n \n \n \n {% if product_table.products[0].tax.igst.value >0 %}\n \n {% else %}\n \n {% endif %}\n \n \n {% endif %}\n {% if product_table.cod_charges > 0 %}\n \n {% if product_table.products[0].tax.igst.value >0 %}\n \n {% else %}\n \n {% endif %}\n \n \n {% endif %}\n \n {% if product_table.products[0].tax.igst.value >0 %}\n \n {% else %}\n \n {% endif %}\n \n \n \n {% if product_table.products[0].tax.igst.value >0 %}\n \n {% else %}\n \n {% endif %}\n \n
ProductSizeSeller IdentifierHSN CodeTotal UnitsMRP (Unit)Discount (Unit)Taxable Amount (Unit)Total Taxable AmountTotal IGSTTotal CGSTTotal SGSTTotal
{{ product.name }}{{ product.size }}{{ product.seller_identifier }}{{ product.hsn_code }}{{ product.total_units }}{{ currency_code }}{{ product.mrp.toFixed(2) }}{{ currency_code }}{{ product.discount.toFixed(2) }}{{ currency_code }}{{ product.taxable_amount.toFixed(2) }}{{ currency_code }}{{ product.total_taxable_amount.toFixed(2) }}\n {{ currency_code }}{{ product.tax.igst.value.toFixed(2) }} ({{ product.tax.igst.percent.toFixed(2) }}%)\n \n {{ currency_code }}{{ product.tax.cgst.value.toFixed(2) }} ({{ product.tax.cgst.percent.toFixed(2) }}%)\n \n {{ currency_code }}{{ product.tax.sgst.value.toFixed(2) }} ({{ product.tax.sgst.percent.toFixed(2) }}%)\n {{ currency_code }}{{ product.total.toFixed(2) }}
{{product_table.delivery_charge_text}}\n 996819\n {{ currency_code }}{{ product_table.delivery_charges.toFixed(2) }}\n
COD ChargesCOD Charges\n {{ currency_code }}{{ product_table.cod_charges.toFixed(2) }}\n
TotalTotal\n {{ currency_code }}{{ product_table.grand_total.toFixed(2) }}\n
\n {{ product_table.total_in_words }}\n \n {{ product_table.total_in_words }}\n
\n \n \n \n \n \n \n \n \n \n {% for taxes in tax_table.taxes %}\n \n \n \n \n \n \n \n {% endfor %}\n \n \n \n \n \n \n \n
Tax Summary
HSN CODECGSTSGSTIGSTTotal Tax Value
{{ taxes.hsn_code }}\n {{ currency_code }}{{ taxes.tax.cgst.value.toFixed(2) }} ({{ taxes.tax.cgst.percent.toFixed(2) }}%)\n \n {{ currency_code }}{{ taxes.tax.sgst.value.toFixed(2) }} ({{ taxes.tax.sgst.percent.toFixed(2) }}%)\n \n {{ currency_code }}{{ taxes.tax.igst.value.toFixed(2) }} ({{ taxes.tax.igst.percent.toFixed(2) }}%)\n {{ currency_code }}{{ taxes.total_tax_value.toFixed(2) }}
Total Tax{{ currency_code }}{{ tax_table.total_tax.toFixed(2) }}
\n {{ tax_table.tax_in_words }}\n
\n
\n
\n

Declaration

\n
    \n {% for declaration in declaration_texts %}\n
  1. {{ declaration }}
  2. \n {% endfor %}\n
\n
\n
\n \n {% if upi_qrcode %}\n
\n \"Payment\n

Scan to pay delivery partner

\n
\n {% endif %}\n
\n {% if payments[0].payment_type | upper !== \"CASH ON DELIVERY\" and payments[0].payment_type | upper !== \"COD\" %}\n
\n \n Payment Date: {{ payments[0].date }}\n \n \n |\n \n \n Transaction Id: {{ payments[0].transaction_id }}\n \n \n |\n \n \n Payment Amount: {{ currency_code }}{{ amount_paid.toFixed(2) }}\n \n \n |\n \n \n Mode of Payment:\n {% for payment in payments %}\n {% if loop.last %}\n {{ payment.payment_type }}\n {% else %}\n {{ payment.payment_type }},\n {% endif %}\n {% endfor %}\n \n
\n {% endif %}\n
\n

{{ disclaimer }}

\n
\n
\n {% endif %}\n\n\n", + "country_code": "IN", + "__v": 0 + } + ], + "success": true + } +} +``` + + +
+  failure + +```json +{ + "value": { + "data": [], + "success": true + } } ```
@@ -1494,38 +1450,34 @@ Get all the invoice types and its format --- -### getSignUrls -Gives signed urls to access private files +### getPdfTypes +Get all the supported invoice pdf types ```javascript // Promise -const promise = platformClient.fileStorage.getSignUrls({ body : value }); +const promise = platformClient.application("").fileStorage.getPdfTypes(); // Async/Await -const data = await platformClient.fileStorage.getSignUrls({ body : value }); +const data = await platformClient.application("").fileStorage.getPdfTypes(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [SignUrlRequest](#SignUrlRequest) | yes | Request body | - -Describe here +Get all the supported invoice pdf types such as Invoice, Label, Deliver challan *Returned Response:* -[SignUrlResponse](#SignUrlResponse) +[InvoiceTypesResponse](#InvoiceTypesResponse) -Success +Get all the invoice types and its format @@ -1540,13 +1492,22 @@ Success ```json { "value": { - "urls": [ + "data": [ { - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/x0/documents/manifest/PDFs/test/s3EtYk5p9-new_fee.pdf", - "signed_url": "https://fynd-staging-assets-private.s3-accelerate.amazonaws.com/addsale/v2/falling-surf-7c8bb8/fyndnp/wrkr/x0/documents/manifest/PDFs/test/s3EtYk5p9-new_fee.pdf", - "expiry": 1800 + "_id": "64d0cc5cc59e3f7b4ba8a246", + "pdf_type_id": 1, + "name": "invoice", + "format": [ + "A4", + "A6", + "POS" + ], + "visibility": true, + "country_code": "IN", + "__v": 0 } - ] + ], + "success": true } } ``` @@ -1565,17 +1526,17 @@ Success --- -### previewTemplate -Preview HTML template +### getSignUrls +Gives signed urls to access private files ```javascript // Promise -const promise = platformClient.application("").fileStorage.previewTemplate({ body : value }); +const promise = platformClient.fileStorage.getSignUrls({ body : value }); // Async/Await -const data = await platformClient.application("").fileStorage.previewTemplate({ body : value }); +const data = await platformClient.fileStorage.getSignUrls({ body : value }); ``` @@ -1584,31 +1545,47 @@ const data = await platformClient.application("").fileStorage.pr | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| body | [pdfRender](#pdfRender) | yes | Request body | +| body | [SignUrlRequest](#SignUrlRequest) | yes | Request body | -Rendered HTML template with dummy json data +Describe here *Returned Response:* -[string](#string) +[SignUrlResponse](#SignUrlResponse) -Get rendered html with dummy json payload +Success
-  Example: +  Examples: -```json +
+  success + +```json +{ + "value": { + "urls": [ + { + "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/x0/documents/manifest/PDFs/test/s3EtYk5p9-new_fee.pdf", + "signed_url": "https://fynd-staging-assets-private.s3-accelerate.amazonaws.com/addsale/v2/falling-surf-7c8bb8/fyndnp/wrkr/x0/documents/manifest/PDFs/test/s3EtYk5p9-new_fee.pdf", + "expiry": 1800 + } + ] + } +} ```
+
+ @@ -1658,13 +1635,21 @@ Success
-  Example: +  Examples: -```json +
+  success + +```json +{ + "value": "Binary stream data" +} ```
+
+ @@ -1695,7 +1680,7 @@ const data = await platformClient.application("").fileStorage.sa | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| body | [pdfConfig](#pdfConfig) | yes | Request body | +| body | [PdfConfig](#PdfConfig) | yes | Request body | Update html template for invoice such as Invoice, Label, Deliver challan @@ -1705,7 +1690,7 @@ Update html template for invoice such as Invoice, Label, Deliver challan -[Array](#Array) +[PdfConfigSaveSuccess](#PdfConfigSaveSuccess) Saved html template for invoice @@ -1721,17 +1706,16 @@ Saved html template for invoice ```json { - "value": [ - { - "_id": "64b7f52d56a0cba5231964b0", - "company_id": 1, - "application_id": "64aed475db2cfb5b8a9f623d", - "pdf_type_id": 1, + "value": { + "data": { + "_id": "64dfd8fc8f3b8b5ae5beb72c", "format": "A4", - "template": "

Hello world

", + "pdf_type_id": 1, + "template": "
\n \n
", "__v": 0 - } - ] + }, + "success": true + } } ``` @@ -1854,35 +1838,101 @@ Success. Returns a response containing relaving and absolute_url of storage serv --- +### updateHtmlTemplate +Update html template for invoice or label + + + +```javascript +// Promise +const promise = platformClient.application("").fileStorage.updateHtmlTemplate({ id : value, + body : value }); + +// Async/Await +const data = await platformClient.application("").fileStorage.updateHtmlTemplate({ id : value, + body : value }); +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| id | string | yes | | +| body | [PdfConfig](#PdfConfig) | yes | Request body | + + +Update html template for invoice such as Invoice, Label, Deliver challan + +*Returned Response:* + + + + +[PdfConfigSaveSuccess](#PdfConfigSaveSuccess) + +Update html template for invoice + + + + +
+  Examples: + + +
+  success + +```json +{ + "value": { + "data": { + "_id": "64dfd8fc8f3b8b5ae5beb72c", + "format": "A4", + "pdf_type_id": 1, + "template": "
\n \n
", + "__v": 0 + }, + "success": true + } +} +``` +
+ +
+ + + + -### Schemas -#### [BrowseResponse](#BrowseResponse) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | [[DbRecord](#DbRecord)] | no | | - | page | [Page](#Page) | no | | - --- -#### [BulkUploadFailResponse](#BulkUploadFailResponse) + + +### Schemas + + +#### [AwbNumberLabelBarcodeGenerator](#AwbNumberLabelBarcodeGenerator) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | status | [Status](#Status) | no | | + | kwargs | [KwargsAwbNumber](#KwargsAwbNumber)? | yes | | + | method | string? | yes | | --- -#### [BulkUploadSyncMode](#BulkUploadSyncMode) +#### [Brand](#Brand) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | files | [[FilesSuccess](#FilesSuccess)]? | yes | | - | status | [Status](#Status) | no | | + | logo | string? | yes | | + | name | string? | yes | | --- @@ -1896,6 +1946,38 @@ Success. Returns a response containing relaving and absolute_url of storage serv | url | string | no | | +--- + +#### [Cgst](#Cgst) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | percent | number? | yes | | + | value | number? | yes | | + + +--- + +#### [CompanyDetail](#CompanyDetail) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | address | string? | yes | | + | cin | string? | yes | | + | city | string? | yes | | + | country | string? | yes | | + | country_code | string? | yes | | + | email | string? | yes | | + | gstin | string? | yes | | + | name | string? | yes | | + | pan | string? | yes | | + | phone_no | string? | yes | | + | state | string? | yes | | + | state_code | string? | yes | | + | website_url | string? | yes | | + | zip_code | number? | yes | | + + --- #### [CompleteResponse](#CompleteResponse) @@ -1904,7 +1986,9 @@ Success. Returns a response containing relaving and absolute_url of storage serv | ---------- | ---- | -------- | ----------- | | _id | string | no | | | cdn | [CDN](#CDN) | no | | + | company_id | number | no | | | content_type | string | no | | + | created_by | [CreatedBy](#CreatedBy)? | yes | | | created_on | string | no | | | file_name | string | no | | | file_path | string | no | | @@ -1917,6 +2001,17 @@ Success. Returns a response containing relaving and absolute_url of storage serv | upload | [Upload](#Upload) | no | | +--- + +#### [ConversionRate](#ConversionRate) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | base | string? | yes | | + | rates | [Rates](#Rates)? | yes | | + | timestamp | number? | yes | | + + --- #### [CopyFiles](#CopyFiles) @@ -1924,27 +2019,64 @@ Success. Returns a response containing relaving and absolute_url of storage serv | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | destination | [DestinationNamespace](#DestinationNamespace) | no | | - | urls | [string] | no | | + | urls | [string]? | yes | | --- -#### [DbRecord](#DbRecord) +#### [CreatedBy](#CreatedBy) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | _id | string | no | | - | cdn | [CDN](#CDN) | no | | - | content_type | string | no | | - | created_on | string | no | | - | file_name | string | no | | - | file_path | string | no | | - | modified_on | string | no | | - | namespace | string | no | | - | operation | string? | yes | | - | success | boolean | no | | - | tags | [string] | no | | - | upload | [Upload](#Upload) | no | | + | username | string? | yes | | + + +--- + +#### [CustomerBillingDetail](#CustomerBillingDetail) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | address | string? | yes | | + | city | string? | yes | | + | country | string? | yes | | + | country_code | string? | yes | | + | gstin | string? | yes | | + | name | string? | yes | | + | phone_no | string? | yes | | + | state | string? | yes | | + | state_code | string? | yes | | + | zip_code | string? | yes | | + + +--- + +#### [CustomerShippingDetail](#CustomerShippingDetail) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | address | string? | yes | | + | city | string? | yes | | + | country | string? | yes | | + | country_code | string? | yes | | + | gstin | string? | yes | | + | name | string? | yes | | + | phone_no | string? | yes | | + | state | string? | yes | | + | state_code | string? | yes | | + | zip_code | string? | yes | | + + +--- + +#### [DeliveryPartnerDetail](#DeliveryPartnerDetail) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | awb_number | string? | yes | | + | awb_number_barcode | string? | yes | | + | eway_bill_number | string? | yes | | + | name | string? | yes | | --- @@ -1958,14 +2090,91 @@ Success. Returns a response containing relaving and absolute_url of storage serv --- -#### [DummyTemplateDataItems](#DummyTemplateDataItems) +#### [DigitalsignatureGenerator](#DigitalsignatureGenerator) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | kwargs | [Kwargs](#Kwargs)? | yes | | + | method | string? | yes | | + + +--- + +#### [Document](#Document) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | __v | number? | yes | | | _id | string? | yes | | - | payload | string | no | | + | country_code | string? | yes | | + | format | string? | yes | | | pdf_type_id | number? | yes | | + | template | string? | yes | | + + +--- + +#### [DummyTemplateData](#DummyTemplateData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | __v | number? | yes | | + | _id | string? | yes | | + | payload | [DummyTemplateDataPayload](#DummyTemplateDataPayload) | no | | + | pdf_type_id | number? | yes | | + + +--- + +#### [DummyTemplateDataItems](#DummyTemplateDataItems) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | data | [[DummyTemplateData](#DummyTemplateData)] | no | | + | success | boolean | no | | + + +--- + +#### [DummyTemplateDataPayload](#DummyTemplateDataPayload) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | amount_paid | number? | yes | | + | amount_to_be_collected | number? | yes | | + | app_domain_name | string? | yes | | + | awb_number_barcode | string? | yes | | + | brand_logo | string? | yes | | + | company_detail | [CompanyDetail](#CompanyDetail)? | yes | | + | conversion_rate | [ConversionRate](#ConversionRate)? | yes | | + | currency_code | string? | yes | | + | customer_billing_detail | [CustomerBillingDetail](#CustomerBillingDetail)? | yes | | + | customer_shipping_detail | [CustomerShippingDetail](#CustomerShippingDetail)? | yes | | + | declaration_texts | [string]? | yes | | + | delivery_partner_detail | [DeliveryPartnerDetail](#DeliveryPartnerDetail)? | yes | | + | digitalsignature | string? | yes | | + | disclaimer | string? | yes | | + | image | [Image](#Image)? | yes | | + | invoice_detail | [InvoiceDetail](#InvoiceDetail)? | yes | | + | is_international | boolean? | yes | | + | is_self_pickup | boolean? | yes | | + | is_self_ship | boolean? | yes | | + | meta | [Meta](#Meta)? | yes | | + | mode | string? | yes | | + | payments | [[PaymentData](#PaymentData)]? | yes | | + | platform_name | string? | yes | | + | product_table | [ProductTable](#ProductTable)? | yes | | + | registered_company_detail | [RegisteredCompanyDetail](#RegisteredCompanyDetail)? | yes | | + | return_detail | [ReturnDetail](#ReturnDetail)? | yes | | + | shipment_id | string? | yes | | + | shipment_id_barcode | string? | yes | | + | signed_qrcode | string? | yes | | + | store_detail | [StoreDetail](#StoreDetail)? | yes | | + | tax_table | [TaxTable](#TaxTable)? | yes | | + | total_items | number? | yes | | + | uid | string? | yes | | + | upi_qrcode | string? | yes | | + | waybills | [string]? | yes | | --- @@ -1979,67 +2188,281 @@ Success. Returns a response containing relaving and absolute_url of storage serv --- -#### [File](#File) +#### [Igst](#Igst) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | src | [FileSrc](#FileSrc) | no | | + | percent | number? | yes | | + | value | number? | yes | | --- -#### [FileSrc](#FileSrc) +#### [Image](#Image) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | method | string? | yes | | - | namespace | string? | yes | | - | url | string | no | | + | sales_channel_logo | string? | yes | | --- -#### [FilesSuccess](#FilesSuccess) +#### [Inr](#Inr) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | file | [File](#File)? | yes | | - | success | boolean | no | | + | name | string? | yes | | + | sub_unit | string? | yes | | + | symbol | string? | yes | | + | value | number? | yes | | --- -#### [InvoiceTypesResponse](#InvoiceTypesResponse) +#### [InvoiceDetail](#InvoiceDetail) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | external_order_id | string? | yes | | + | invoice_date | string? | yes | | + | invoice_id | string? | yes | | + | irn | string? | yes | | + | shipment_id | string? | yes | | + | signed_qrcode | string? | yes | | + | upi_qrcode | string? | yes | | + + +--- + +#### [InvoiceTypesDataResponse](#InvoiceTypesDataResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | __v | number | no | | | _id | string | no | | + | country_code | string? | yes | | | format | [string] | no | | | name | string | no | | | pdf_type_id | number | no | | - | schema | string | no | | + | status | boolean? | yes | | | visibility | boolean | no | | --- -#### [Page](#Page) +#### [InvoiceTypesResponse](#InvoiceTypesResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | data | [[InvoiceTypesDataResponse](#InvoiceTypesDataResponse)] | no | | + | success | boolean | no | | + + +--- + +#### [ItemsProductTable](#ItemsProductTable) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | brand | [Brand](#Brand)? | yes | | + | discount | number? | yes | | + | hsn_code | string? | yes | | + | item_code | string? | yes | | + | mrp | number? | yes | | + | name | string? | yes | | + | seller_identifier | string? | yes | | + | size | string? | yes | | + | tax | [Tax](#Tax)? | yes | | + | taxable_amount | number? | yes | | + | total | number? | yes | | + | total_taxable_amount | number? | yes | | + | total_units | number? | yes | | + + +--- + +#### [Kwargs](#Kwargs) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | value | string? | yes | | + + +--- + +#### [KwargsAwbNumber](#KwargsAwbNumber) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | value | [string]? | yes | | + + +--- + +#### [KwargsUpiQrcode](#KwargsUpiQrcode) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | qr_data | string? | yes | | + | qr_url | string? | yes | | + + +--- + +#### [Meta](#Meta) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | generator | [MetaProperty](#MetaProperty)? | yes | | + + +--- + +#### [MetaProperty](#MetaProperty) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | current | number? | yes | | - | has_next | boolean? | yes | | - | has_previous | boolean? | yes | | - | item_total | number? | yes | | - | next_id | string? | yes | | - | size | number? | yes | | - | type | string | no | | + | awb_number_label_barcode_generator | [AwbNumberLabelBarcodeGenerator](#AwbNumberLabelBarcodeGenerator)? | yes | | + | digitalsignature_generator | [DigitalsignatureGenerator](#DigitalsignatureGenerator)? | yes | | + | shipment_id_barcode_generator | [ShipmentIdBarcodeGenerator](#ShipmentIdBarcodeGenerator)? | yes | | + | signed_qrcode_generator | [SignedQrcodeGenerator](#SignedQrcodeGenerator)? | yes | | + | upi_qrcode_generator | [UpiQrcodeGenerator](#UpiQrcodeGenerator)? | yes | | --- -#### [pdfConfig](#pdfConfig) +#### [Params](#Params) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | subpath | string? | yes | The subpath for the file. | + + +--- + +#### [PaymentData](#PaymentData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | amount | number? | yes | | + | date | string? | yes | | + | payment_type | string? | yes | | + | transaction_id | string? | yes | | + + +--- + +#### [PaymentReceiptCustomerDetails](#PaymentReceiptCustomerDetails) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | email_id | string? | yes | | + | first_name | string? | yes | | + | id | string? | yes | | + | last_name | string? | yes | | + | mobile_number | string? | yes | | + + +--- + +#### [PaymentReceiptFormat](#PaymentReceiptFormat) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | payment_receipt | [string]? | yes | | + + +--- + +#### [PaymentReceiptMeta](#PaymentReceiptMeta) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | action | string? | yes | | + | application_id | [string]? | yes | | + | company_id | number? | yes | | + | created_timestamp | number? | yes | | + | event | string? | yes | | + | event_trace_info | string? | yes | | + | format | [PaymentReceiptFormat](#PaymentReceiptFormat)? | yes | | + | job_type | string? | yes | | + | organizaton_id | string? | yes | | + | service | [PaymentReceiptService](#PaymentReceiptService)? | yes | | + | trace | string? | yes | | + | trace_id | [string]? | yes | | + + +--- + +#### [PaymentReceiptOrderDetails](#PaymentReceiptOrderDetails) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | final_amount | number? | yes | | + | final_amount_in_words | string? | yes | | + | jiomart_order_id | string? | yes | | + | order_created_date | string? | yes | | + | order_created_time | string? | yes | | + | prm_id | string? | yes | | + | receipt_no | string? | yes | | + | taxes | [PaymentReceiptTaxes](#PaymentReceiptTaxes)? | yes | | + | total_items | number? | yes | | + + +--- + +#### [PaymentReceiptPayload](#PaymentReceiptPayload) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | customer_detail | [PaymentReceiptCustomerDetails](#PaymentReceiptCustomerDetails)? | yes | | + | order_detail | [PaymentReceiptOrderDetails](#PaymentReceiptOrderDetails)? | yes | | + | payments | [[PaymentReceiptPayments](#PaymentReceiptPayments)]? | yes | | + | uid | string? | yes | | + + +--- + +#### [PaymentReceiptPayments](#PaymentReceiptPayments) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | payment_desc | string? | yes | | + | txn_date | string? | yes | | + + +--- + +#### [PaymentReceiptRequestBody](#PaymentReceiptRequestBody) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | meta | [PaymentReceiptMeta](#PaymentReceiptMeta)? | yes | | + | payload | [PaymentReceiptPayload](#PaymentReceiptPayload)? | yes | | + + +--- + +#### [PaymentReceiptService](#PaymentReceiptService) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | name | string? | yes | | + + +--- + +#### [PaymentReceiptTaxes](#PaymentReceiptTaxes) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | gstin | string? | yes | | + | pancard | string? | yes | | + + +--- + +#### [PdfConfig](#PdfConfig) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | @@ -2052,6 +2475,16 @@ Success. Returns a response containing relaving and absolute_url of storage serv #### [PdfConfigSaveSuccess](#PdfConfigSaveSuccess) + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | data | [PdfConfigSaveSuccessData](#PdfConfigSaveSuccessData)? | yes | | + | success | boolean? | yes | | + + +--- + +#### [PdfConfigSaveSuccessData](#PdfConfigSaveSuccessData) + | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | __v | number? | yes | | @@ -2067,12 +2500,23 @@ Success. Returns a response containing relaving and absolute_url of storage serv #### [PdfConfigSuccess](#PdfConfigSuccess) + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | data | [[PdfConfigSuccessData](#PdfConfigSuccessData)]? | yes | | + | success | boolean? | yes | | + + +--- + +#### [PdfConfigSuccessData](#PdfConfigSuccessData) + | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | __v | number? | yes | | | _id | string? | yes | | | application_id | string? | yes | | | company_id | number? | yes | | + | country_code | string? | yes | | | format | string? | yes | | | pdf_type_id | number? | yes | | | template | string? | yes | | @@ -2084,22 +2528,95 @@ Success. Returns a response containing relaving and absolute_url of storage serv | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | __v | number? | yes | | - | _id | string? | yes | | - | format | string? | yes | | - | pdf_type_id | number? | yes | | - | template | string? | yes | | + | data | [[Document](#Document)]? | yes | | + | success | boolean? | yes | Indicates if the request was successful. | --- -#### [pdfRender](#pdfRender) +#### [ProductTable](#ProductTable) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | format | string? | yes | | - | payload | string? | yes | | - | template | string? | yes | | + | cod_charges | number? | yes | | + | delivery_charge_text | string? | yes | | + | delivery_charges | number? | yes | | + | fynd_discounts | number? | yes | | + | grand_total | number? | yes | | + | products | [[ItemsProductTable](#ItemsProductTable)]? | yes | | + | total_in_words | string? | yes | | + | total_items | number? | yes | | + + +--- + +#### [Rates](#Rates) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | inr | [Inr](#Inr)? | yes | | + | usd | [Usd](#Usd)? | yes | | + + +--- + +#### [RegisteredCompanyDetail](#RegisteredCompanyDetail) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | address | string? | yes | | + | city | string? | yes | | + | country | string? | yes | | + | country_code | string? | yes | | + | state | string? | yes | | + | state_code | string? | yes | | + | zip_code | number? | yes | | + + +--- + +#### [ReturnDetail](#ReturnDetail) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | address | string? | yes | | + | city | string? | yes | | + | country | string? | yes | | + | country_code | string? | yes | | + | gstin | string? | yes | | + | state | string? | yes | | + | state_code | string? | yes | | + | zip_code | string? | yes | | + + +--- + +#### [Sgst](#Sgst) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | percent | number? | yes | | + | value | number? | yes | | + + +--- + +#### [ShipmentIdBarcodeGenerator](#ShipmentIdBarcodeGenerator) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | kwargs | [Kwargs](#Kwargs)? | yes | | + | method | string? | yes | | + + +--- + +#### [SignedQrcodeGenerator](#SignedQrcodeGenerator) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | kwargs | [Kwargs](#Kwargs)? | yes | | + | method | string? | yes | | --- @@ -2129,7 +2646,7 @@ Success. Returns a response containing relaving and absolute_url of storage serv | ---------- | ---- | -------- | ----------- | | content_type | string | no | | | file_name | string | no | | - | params | string? | yes | | + | params | [Params](#Params)? | yes | | | size | number | no | | | tags | [string]? | yes | | @@ -2154,14 +2671,62 @@ Success. Returns a response containing relaving and absolute_url of storage serv --- -#### [Status](#Status) +#### [StoreDetail](#StoreDetail) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | address | string? | yes | | + | city | string? | yes | | + | country | string? | yes | | + | country_code | string? | yes | | + | gstin | string? | yes | | + | state | string? | yes | | + | state_code | string? | yes | | + | store_name | string? | yes | | + | zip_code | string? | yes | | + + +--- + +#### [Tax](#Tax) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | cgst | [Cgst](#Cgst)? | yes | | + | igst | [Igst](#Igst)? | yes | | + | sgst | [Sgst](#Sgst)? | yes | | + + +--- + +#### [Taxes](#Taxes) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | hsn_code | string? | yes | | + | tax | [Tax](#Tax)? | yes | | + | total_tax_value | number? | yes | | + + +--- + +#### [TaxTable](#TaxTable) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | failed | number | no | | - | result | string? | yes | | - | succeeded | number | no | | - | total | number | no | | + | tax_in_words | string? | yes | | + | taxes | [[Taxes](#Taxes)]? | yes | | + | total_tax | number? | yes | | + + +--- + +#### [UpiQrcodeGenerator](#UpiQrcodeGenerator) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | kwargs | [KwargsUpiQrcode](#KwargsUpiQrcode)? | yes | | + | method | string? | yes | | --- @@ -2187,6 +2752,18 @@ Success. Returns a response containing relaving and absolute_url of storage serv --- +#### [Usd](#Usd) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | name | string? | yes | | + | sub_unit | string? | yes | | + | symbol | string? | yes | | + | value | number? | yes | | + + +--- + diff --git a/documentation/platform/ORDER.md b/documentation/platform/ORDER.md index a82d854c5..423293a7d 100644 --- a/documentation/platform/ORDER.md +++ b/documentation/platform/ORDER.md @@ -1372,7 +1372,7 @@ const data = await platformClient.order.getLaneConfig({ superLane : value, | searchType | string | no | | | searchValue | string | no | | | tags | string | no | | -| timeToDispatch | string | no | | +| timeToDispatch | number | no | | | paymentMethods | string | no | | | myOrders | boolean | no | | | showCrossCompanyData | boolean | no | Flag to view cross & non-cross company order | @@ -2326,7 +2326,7 @@ const data = await platformClient.order.getOrders({ lane : value, | lane | string | no | lane refers to a section where orders are assigned, indicating its grouping | | searchType | string | no | search_type refers to the field that will be used as the target for the search operation | | bagStatus | string | no | bag_status refers to status of the entity. Filters orders based on the status. | -| timeToDispatch | string | no | time_to_dispatch refers to estimated SLA time. | +| timeToDispatch | number | no | time_to_dispatch refers to estimated SLA time. | | paymentMethods | string | no | | | tags | string | no | tags refers to additional descriptive labels associated with the order | | searchValue | string | no | search_value is matched against the field specified by the search_type | @@ -6795,7 +6795,7 @@ Verify OTP | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | brand_name | string? | yes | | - | company | number | no | | + | company | number? | yes | | | created_on | string? | yes | | | id | number | no | | | logo | string? | yes | | @@ -7864,6 +7864,7 @@ Verify OTP | formatted | [Formatted](#Formatted)? | yes | | | fulfilment_priority_text | string? | yes | | | is_international | boolean? | yes | | + | is_self_ship | boolean? | yes | | | lock_data | [LockData](#LockData)? | yes | | | order_type | string? | yes | | | packaging_name | string? | yes | | @@ -7927,12 +7928,14 @@ Verify OTP | dp_sort_key | string? | yes | | | due_date | string? | yes | | | einvoice_info | [EinvoiceInfo](#EinvoiceInfo)? | yes | | + | estimated_delivery_date | string? | yes | | | ewaybill_info | string? | yes | | | external | string? | yes | | | formatted | [Formatted](#Formatted)? | yes | | | forward_affiliate_order_id | string? | yes | | | forward_affiliate_shipment_id | string? | yes | | | fulfilment_priority_text | string? | yes | | + | is_self_ship | boolean? | yes | | | lock_data | [LockData](#LockData)? | yes | | | marketplace_store_id | string? | yes | | | order_type | string? | yes | | @@ -7951,6 +7954,7 @@ Verify OTP | shipment_weight | number? | yes | | | store_invoice_updated_date | string? | yes | | | timestamp | [ShipmentTimeStamp](#ShipmentTimeStamp)? | yes | | + | tracking_url | string? | yes | | | weight | number | no | | diff --git a/documentation/platform/PAYMENT.md b/documentation/platform/PAYMENT.md index b9b509d8e..6ed9850ff 100644 --- a/documentation/platform/PAYMENT.md +++ b/documentation/platform/PAYMENT.md @@ -14,6 +14,7 @@ Collect payment through many payment gateway i.e Stripe, Razorpay, Juspay etc.in * [cancelPaymentLink](#cancelpaymentlink) * [checkAndUpdatePaymentStatus](#checkandupdatepaymentstatus) * [confirmPayment](#confirmpayment) +* [createMerchantRefundPriority](#createmerchantrefundpriority) * [createPaymentLink](#createpaymentlink) * [deletePayout](#deletepayout) * [deleteSubscriptionPaymentMethod](#deletesubscriptionpaymentmethod) @@ -26,6 +27,7 @@ Collect payment through many payment gateway i.e Stripe, Razorpay, Juspay etc.in * [getEdcDevice](#getedcdevice) * [getMerchantAggregatorPaymentModeDetails](#getmerchantaggregatorpaymentmodedetails) * [getMerchantPaymentOption](#getmerchantpaymentoption) +* [getMerchantRefundPriority](#getmerchantrefundpriority) * [getPGConfigAggregators](#getpgconfigaggregators) * [getPaymentCodeOption](#getpaymentcodeoption) * [getPaymentLink](#getpaymentlink) @@ -52,6 +54,7 @@ Collect payment through many payment gateway i.e Stripe, Razorpay, Juspay etc.in * [saveSubscriptionSetupIntent](#savesubscriptionsetupintent) * [setUserCODlimitRoutes](#setusercodlimitroutes) * [updateEdcDevice](#updateedcdevice) +* [updateMerchantRefundPriority](#updatemerchantrefundpriority) * [updatePaymentSession](#updatepaymentsession) * [updatePayout](#updatepayout) * [updateRefundSession](#updaterefundsession) @@ -421,6 +424,100 @@ Success. Returns the status of payment. Check the example shown below or refer ` +--- + + +### createMerchantRefundPriority +API to create merchant refund priority + + + +```javascript +// Promise +const promise = platformClient.application("").payment.createMerchantRefundPriority({ configType : value, + body : value }); + +// Async/Await +const data = await platformClient.application("").payment.createMerchantRefundPriority({ configType : value, + body : value }); +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| configType | string | yes | configuration for merchant or customer | +| body | [RefundPriorityRequestSerializer](#RefundPriorityRequestSerializer) | yes | Request body | + + +API to update merchant refund priority + +*Returned Response:* + + + + +[RefundPriorityResponseSerializer](#RefundPriorityResponseSerializer) + +Success. Returns the status of Update or not. Check the example shown below or refer `RefundPriorityResponseSerializer` for more details. + + + + +
+  Examples: + + +
+  success + +```json +{ + "summary": "success", + "value": { + "success": true, + "message": "Created successfully", + "apportion": true, + "configuration": "merchant", + "refund_sources_priority": [ + { + "source": "back_to_online_source,", + "description": "Back to online payment source", + "priority": 0 + }, + { + "source": "RONE", + "description": "Rone wallet", + "priority": 1 + }, + { + "source": "FC", + "description": "Fynd Cash", + "priority": 2 + }, + { + "source": "CreditNote", + "description": "Credit Note", + "priority": 3 + } + ] + } +} +``` +
+ +
+ + + + + + + + + --- @@ -1428,6 +1525,98 @@ Success. +--- + + +### getMerchantRefundPriority +API to get merchant refund priority + + + +```javascript +// Promise +const promise = platformClient.application("").payment.getMerchantRefundPriority({ configType : value }); + +// Async/Await +const data = await platformClient.application("").payment.getMerchantRefundPriority({ configType : value }); +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| configType | string | yes | configuration for merchant or customer | + + + +API to get merchant refund priority + +*Returned Response:* + + + + +[RefundPriorityResponseSerializer](#RefundPriorityResponseSerializer) + +Success. Returns the status of Update or not. Check the example shown below or refer `RefundPriorityResponseSerializer` for more details. + + + + +
+  Examples: + + +
+  success + +```json +{ + "summary": "success", + "value": { + "success": true, + "message": "Created successfully", + "apportion": true, + "configuration": "merchant", + "refund_sources_priority": [ + { + "source": "back_to_online_source,", + "description": "Back to online payment source", + "priority": 0 + }, + { + "source": "RONE", + "description": "Rone wallet", + "priority": 1 + }, + { + "source": "FC", + "description": "Fynd Cash", + "priority": 2 + }, + { + "source": "CreditNote", + "description": "Credit Note", + "priority": 3 + } + ] + } +} +``` +
+ +
+ + + + + + + + + --- @@ -5731,6 +5920,100 @@ Success. Returns the single edc device mapped to the terminal. Check the example +--- + + +### updateMerchantRefundPriority +API to update merchant refund priority + + + +```javascript +// Promise +const promise = platformClient.application("").payment.updateMerchantRefundPriority({ configType : value, + body : value }); + +// Async/Await +const data = await platformClient.application("").payment.updateMerchantRefundPriority({ configType : value, + body : value }); +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| configType | string | yes | configuration for merchant or customer | +| body | [RefundPriorityRequestSerializer](#RefundPriorityRequestSerializer) | yes | Request body | + + +API to update merchant refund priority + +*Returned Response:* + + + + +[RefundPriorityResponseSerializer](#RefundPriorityResponseSerializer) + +Success. Returns the status of Update or not. Check the example shown below or refer `RefundPriorityResponseSerializer` for more details. + + + + +
+  Examples: + + +
+  success + +```json +{ + "summary": "success", + "value": { + "success": true, + "message": "Created successfully", + "apportion": true, + "configuration": "merchant", + "refund_sources_priority": [ + { + "source": "back_to_online_source,", + "description": "Back to online payment source", + "priority": 0 + }, + { + "source": "RONE", + "description": "Rone wallet", + "priority": 1 + }, + { + "source": "FC", + "description": "Fynd Cash", + "priority": 2 + }, + { + "source": "CreditNote", + "description": "Credit Note", + "priority": 3 + } + ] + } +} +``` +
+ +
+ + + + + + + + + --- @@ -7220,6 +7503,29 @@ Bank details on correct Ifsc Code | success | boolean | no | Success or failure flag. | +--- + +#### [RefundPriorityRequestSerializer](#RefundPriorityRequestSerializer) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | apportion | boolean | no | apportion refund to multiple sources | + | refund_sources_priority | [[RefundSourcesPriority](#RefundSourcesPriority)] | no | refund sources priority | + + +--- + +#### [RefundPriorityResponseSerializer](#RefundPriorityResponseSerializer) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | apportion | boolean | no | apportion refund to multiple sources | + | configuration | string | no | configuration for merchant or customer | + | message | string? | yes | message | + | refund_sources_priority | [[RefundSourcesPriority](#RefundSourcesPriority)] | no | refund sources priority | + | success | boolean | no | success | + + --- #### [RefundSessionDetail](#RefundSessionDetail) @@ -7267,6 +7573,17 @@ Bank details on correct Ifsc Code | total_refund_amount | number | no | The total amount refunded. | +--- + +#### [RefundSourcesPriority](#RefundSourcesPriority) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | description | string | no | description of refund source | + | priority | number | no | priority of refund source, 0 being highest | + | source | string | no | source of refund | + + --- #### [RepaymentDetailsSerialiserPayAll](#RepaymentDetailsSerialiserPayAll) diff --git a/documentation/platform/USER.md b/documentation/platform/USER.md index 3250c0863..8b337efb8 100644 --- a/documentation/platform/USER.md +++ b/documentation/platform/USER.md @@ -25,6 +25,7 @@ Authentication Service * [updatePlatformConfig](#updateplatformconfig) * [updateUser](#updateuser) * [updateUserGroup](#updateusergroup) +* [updateUserGroupPartially](#updateusergrouppartially) @@ -1484,6 +1485,76 @@ Success. returns updated User Group. `UserGroupResponseSchema` for more details. +--- + + +### updateUserGroupPartially +Add or Remove an user from particular user group and update user group details + + + +```javascript +// Promise +const promise = platformClient.application("").user.updateUserGroupPartially({ groupId : value, + body : value }); + +// Async/Await +const data = await platformClient.application("").user.updateUserGroupPartially({ groupId : value, + body : value }); +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| groupId | string | yes | Numeric ID allotted to a User Group | +| body | [PartialUserGroupUpdateSchema](#PartialUserGroupUpdateSchema) | yes | Request body | + + +Use this API to update user group details and add or remove an user to the user group. + +*Returned Response:* + + + + +[UserGroupResponseSchema](#UserGroupResponseSchema) + +Success. returns updated User Group. `UserGroupResponseSchema` for more details. + + + + +
+  Example: + +```json +{ + "is_active": true, + "_id": "6345677535474fbb6944b7ce", + "name": "Group 1", + "description": "description", + "file_url": "url", + "status": "pending", + "uid": 1, + "application_id": "000000000000000000000001", + "created_at": "2022-10-11T12:54:13.539Z", + "modified_at": "2022-10-11T12:54:13.539Z", + "__v": 0 +} +``` +
+ + + + + + + + + --- @@ -1717,6 +1788,19 @@ Success. returns updated User Group. `UserGroupResponseSchema` for more details. | type | string? | yes | | +--- + +#### [PartialUserGroupUpdateSchema](#PartialUserGroupUpdateSchema) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | description | string? | yes | | + | file_url | string? | yes | Required property when passed type file_url. Internet reachable csv file url which will be used to fetch download data. It must have one of columns from `phone_number``, `email``, `user_id`` and must have `action` column. `action` column can have `add` or `remove` value. | + | name | string? | yes | | + | type | string? | yes | Source of update to be used to update individual users. Default value is considered file_url if not passed. | + | user_data | [[UserGroupUpdateData](#UserGroupUpdateData)]? | yes | Required property when passed type json. Array of user data. Must have `action` field and one of `phone_number`, `email` or `user_id` field in object | + + --- #### [PhoneNumber](#PhoneNumber) @@ -1974,6 +2058,18 @@ Success. returns updated User Group. `UserGroupResponseSchema` for more details. | uid | number? | yes | | +--- + +#### [UserGroupUpdateData](#UserGroupUpdateData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | action | string | no | | + | email | string? | yes | Email of registered user | + | phone_number | string? | yes | Phone number of registered user | + | user_id | string? | yes | Must be valid mongodb objectid of existing user | + + --- #### [UserPhoneNumbers](#UserPhoneNumbers) diff --git a/package-lock.json b/package-lock.json index f56a677b8..36ec1a929 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gofynd/fdk-client-javascript", - "version": "1.3.3", + "version": "1.3.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gofynd/fdk-client-javascript", - "version": "1.3.3", + "version": "1.3.4", "license": "ISC", "dependencies": { "@gofynd/fp-signature": "^0.0.2-alpha.1", @@ -1327,9 +1327,9 @@ "dev": true }, "node_modules/@types/yargs": { - "version": "17.0.26", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.26.tgz", - "integrity": "sha512-Y3vDy2X6zw/ZCumcwLpdhM5L7jmyGpmBCTYMHDLqT2IKVMYRRLdv6ZakA+wxhra6Z/3bwhNbNl9bDGXaFU+6rw==", + "version": "17.0.28", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.28.tgz", + "integrity": "sha512-N3e3fkS86hNhtk6BEnc0rj3zcehaxx8QWhCROJkqpl5Zaoi7nAic3jH8q94jVD3zu5LGk+PUB6KAiDmimYOEQw==", "dev": true, "dependencies": { "@types/yargs-parser": "*" @@ -2678,9 +2678,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.543", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.543.tgz", - "integrity": "sha512-t2ZP4AcGE0iKCCQCBx/K2426crYdxD3YU6l0uK2EO3FZH0pbC4pFz/sZm2ruZsND6hQBTcDWWlo/MLpiOdif5g==", + "version": "1.4.544", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.544.tgz", + "integrity": "sha512-54z7squS1FyFRSUqq/knOFSptjjogLZXbKcYk3B0qkE1KZzvqASwRZnY2KzZQJqIYLVD38XZeoiMRflYSwyO4w==", "dev": true }, "node_modules/emittery": { diff --git a/package.json b/package.json index cae733d40..6ef25a623 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gofynd/fdk-client-javascript", - "version": "1.3.3", + "version": "1.3.4", "description": "", "main": "index.js", "scripts": { diff --git a/sdk/application/Catalog/CatalogApplicationModel.d.ts b/sdk/application/Catalog/CatalogApplicationModel.d.ts index 8263b117d..3bd44b6c7 100644 --- a/sdk/application/Catalog/CatalogApplicationModel.d.ts +++ b/sdk/application/Catalog/CatalogApplicationModel.d.ts @@ -383,6 +383,13 @@ export = CatalogApplicationModel; * @property {string} [subtitle] * @property {string} [title] */ +/** + * @typedef ProductDepartment + * @property {Media} [logo] + * @property {string} [name] + * @property {string} [slug] + * @property {number} [uid] + */ /** * @typedef ProductDetail * @property {Object} [_custom_json] @@ -394,6 +401,7 @@ export = CatalogApplicationModel; * @property {ProductCategoryMap} [category_map] * @property {string} [color] * @property {ProductDetailCustomOrder} [custom_order] + * @property {ProductDepartment} [department] * @property {string} [description] * @property {string} [discount] * @property {ProductDetailGroupedAttribute[]} [grouped_attributes] @@ -967,7 +975,7 @@ export = CatalogApplicationModel; declare class CatalogApplicationModel { } declare namespace CatalogApplicationModel { - export { ApplicationItemMOQ, ApplicationItemSEO, ApplicationStoreListing, AppStore, ArticleAssignmentV3, AttributeDetail, AttributeMetadata, AutocompleteItem, AutoCompleteResponse, BrandDetailResponse, BrandItem, BrandListingResponse, CategoryBanner, CategoryItems, CategoryListingResponse, CategoryMetaResponse, Child, CollectionDetailResponse, CollectionListingFilter, CollectionListingFilterTag, CollectionListingFilterType, CollectionQuery, ColumnHeader, ColumnHeaders, CompanyDetail, CompanyStore, CustomMetaFields, Department, DepartmentCategoryTree, DepartmentIdentifier, DepartmentResponse, DetailsSchemaV3, Dimension, DiscountMeta, ErrorResponse, FollowerCountResponse, FollowIdsData, FollowIdsResponse, FollowPostResponse, GetCollectionDetailNest, GetCollectionListingResponse, GetFollowListingResponse, HomeListingResponse, ImageUrls, LatLong, MarketPlaceSttributesSchemaV3, Media, Meta, NetQuantity, Page, Price, ProductBrand, ProductBundle, ProductCategoryMap, ProductCompareResponse, ProductDetail, ProductDetailAttribute, ProductDetailCustomOrder, ProductDetailGroupedAttribute, ProductDetails, ProductFilters, ProductFiltersKey, ProductFiltersValue, ProductFrequentlyComparedSimilarResponse, ProductGroupingModel, ProductGroupPrice, ProductInGroup, ProductListingAction, ProductListingActionPage, ProductListingDetail, ProductListingPrice, ProductListingResponse, ProductsComparisonResponse, ProductSetDistributionSizeV3, ProductSetDistributionV3, ProductSetV3, ProductSize, ProductSizePriceResponseV3, ProductSizes, ProductSizeSellerFilterSchemaV3, ProductSizeSellersResponseV3, ProductSizesPrice, ProductSizeStores, ProductSortOn, ProductStockPolling, ProductStockPrice, ProductStockPriceV3, ProductStockStatusItem, ProductStockStatusResponse, ProductStockUnitPriceV3, ProductVariantItemResponse, ProductVariantListingResponse, ProductVariantResponse, ProductVariantsResponse, PromiseSchema, ReturnConfigSchemaV3, SecondLevelChild, Seller, SellerGroupAttributes, SellerPhoneNumber, SellerV3, Size, SizeChart, SizeChartValues, Store, StoreAddressSerializer, StoreDepartments, StoreDetail, StoreDetails, StoreListingResponse, StoreManagerSerializer, StoreTiming, StoreV3, StrategyWiseListingSchemaV3, ThirdLevelChild, Time, UserDetail, Weight }; + export { ApplicationItemMOQ, ApplicationItemSEO, ApplicationStoreListing, AppStore, ArticleAssignmentV3, AttributeDetail, AttributeMetadata, AutocompleteItem, AutoCompleteResponse, BrandDetailResponse, BrandItem, BrandListingResponse, CategoryBanner, CategoryItems, CategoryListingResponse, CategoryMetaResponse, Child, CollectionDetailResponse, CollectionListingFilter, CollectionListingFilterTag, CollectionListingFilterType, CollectionQuery, ColumnHeader, ColumnHeaders, CompanyDetail, CompanyStore, CustomMetaFields, Department, DepartmentCategoryTree, DepartmentIdentifier, DepartmentResponse, DetailsSchemaV3, Dimension, DiscountMeta, ErrorResponse, FollowerCountResponse, FollowIdsData, FollowIdsResponse, FollowPostResponse, GetCollectionDetailNest, GetCollectionListingResponse, GetFollowListingResponse, HomeListingResponse, ImageUrls, LatLong, MarketPlaceSttributesSchemaV3, Media, Meta, NetQuantity, Page, Price, ProductBrand, ProductBundle, ProductCategoryMap, ProductCompareResponse, ProductDepartment, ProductDetail, ProductDetailAttribute, ProductDetailCustomOrder, ProductDetailGroupedAttribute, ProductDetails, ProductFilters, ProductFiltersKey, ProductFiltersValue, ProductFrequentlyComparedSimilarResponse, ProductGroupingModel, ProductGroupPrice, ProductInGroup, ProductListingAction, ProductListingActionPage, ProductListingDetail, ProductListingPrice, ProductListingResponse, ProductsComparisonResponse, ProductSetDistributionSizeV3, ProductSetDistributionV3, ProductSetV3, ProductSize, ProductSizePriceResponseV3, ProductSizes, ProductSizeSellerFilterSchemaV3, ProductSizeSellersResponseV3, ProductSizesPrice, ProductSizeStores, ProductSortOn, ProductStockPolling, ProductStockPrice, ProductStockPriceV3, ProductStockStatusItem, ProductStockStatusResponse, ProductStockUnitPriceV3, ProductVariantItemResponse, ProductVariantListingResponse, ProductVariantResponse, ProductVariantsResponse, PromiseSchema, ReturnConfigSchemaV3, SecondLevelChild, Seller, SellerGroupAttributes, SellerPhoneNumber, SellerV3, Size, SizeChart, SizeChartValues, Store, StoreAddressSerializer, StoreDepartments, StoreDetail, StoreDetails, StoreListingResponse, StoreManagerSerializer, StoreTiming, StoreV3, StrategyWiseListingSchemaV3, ThirdLevelChild, Time, UserDetail, Weight }; } /** @returns {ApplicationItemMOQ} */ declare function ApplicationItemMOQ(): ApplicationItemMOQ; @@ -1474,6 +1482,14 @@ type ProductCompareResponse = { subtitle?: string; title?: string; }; +/** @returns {ProductDepartment} */ +declare function ProductDepartment(): ProductDepartment; +type ProductDepartment = { + logo?: Media; + name?: string; + slug?: string; + uid?: number; +}; /** @returns {ProductDetail} */ declare function ProductDetail(): ProductDetail; type ProductDetail = { @@ -1486,6 +1502,7 @@ type ProductDetail = { category_map?: ProductCategoryMap; color?: string; custom_order?: ProductDetailCustomOrder; + department?: ProductDepartment; description?: string; discount?: string; grouped_attributes?: ProductDetailGroupedAttribute[]; diff --git a/sdk/application/Catalog/CatalogApplicationModel.js b/sdk/application/Catalog/CatalogApplicationModel.js index 5bfe57823..6c42b3263 100644 --- a/sdk/application/Catalog/CatalogApplicationModel.js +++ b/sdk/application/Catalog/CatalogApplicationModel.js @@ -439,6 +439,14 @@ const Joi = require("joi"); * @property {string} [title] */ +/** + * @typedef ProductDepartment + * @property {Media} [logo] + * @property {string} [name] + * @property {string} [slug] + * @property {number} [uid] + */ + /** * @typedef ProductDetail * @property {Object} [_custom_json] @@ -450,6 +458,7 @@ const Joi = require("joi"); * @property {ProductCategoryMap} [category_map] * @property {string} [color] * @property {ProductDetailCustomOrder} [custom_order] + * @property {ProductDepartment} [department] * @property {string} [description] * @property {string} [discount] * @property {ProductDetailGroupedAttribute[]} [grouped_attributes] @@ -1643,6 +1652,16 @@ class CatalogApplicationModel { }); } + /** @returns {ProductDepartment} */ + static ProductDepartment() { + return Joi.object({ + logo: CatalogApplicationModel.Media(), + name: Joi.string().allow(""), + slug: Joi.string().allow(""), + uid: Joi.number(), + }); + } + /** @returns {ProductDetail} */ static ProductDetail() { return Joi.object({ @@ -1657,6 +1676,7 @@ class CatalogApplicationModel { category_map: CatalogApplicationModel.ProductCategoryMap(), color: Joi.string().allow(""), custom_order: CatalogApplicationModel.ProductDetailCustomOrder(), + department: CatalogApplicationModel.ProductDepartment(), description: Joi.string().allow(""), discount: Joi.string().allow(""), grouped_attributes: Joi.array().items( diff --git a/sdk/application/FileStorage/FileStorageApplicationClient.js b/sdk/application/FileStorage/FileStorageApplicationClient.js index ee8112402..f78834e88 100644 --- a/sdk/application/FileStorage/FileStorageApplicationClient.js +++ b/sdk/application/FileStorage/FileStorageApplicationClient.js @@ -13,10 +13,10 @@ class FileStorage { this._conf = _conf; this._relativeUrls = { completeUpload: - "/service/application/assets/v1.0/namespaces/{namespace}/upload/complete/", - signUrls: "/service/application/assets/v1.0/sign-urls/", + "/service/application/assets/v1.0/namespaces/{namespace}/upload/complete", + signUrls: "/service/application/assets/v1.0/sign-urls", startUpload: - "/service/application/assets/v1.0/namespaces/{namespace}/upload/start/", + "/service/application/assets/v1.0/namespaces/{namespace}/upload/start", }; this._urls = Object.entries(this._relativeUrls).reduce( (urls, [method, relativeUrl]) => { diff --git a/sdk/application/FileStorage/FileStorageApplicationModel.d.ts b/sdk/application/FileStorage/FileStorageApplicationModel.d.ts index 208ed4f87..c11125992 100644 --- a/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +++ b/sdk/application/FileStorage/FileStorageApplicationModel.d.ts @@ -10,6 +10,7 @@ export = FileStorageApplicationModel; * @property {string} _id * @property {CDN} cdn * @property {string} content_type + * @property {CreatedBy} [created_by] * @property {string} created_on * @property {string} file_name * @property {string} file_path @@ -22,8 +23,12 @@ export = FileStorageApplicationModel; * @property {Upload} upload */ /** - * @typedef FailedResponse - * @property {string} message + * @typedef CreatedBy + * @property {string} [username] + */ +/** + * @typedef Params + * @property {string} [subpath] - The subpath for the file. */ /** * @typedef SignUrlRequest @@ -38,7 +43,7 @@ export = FileStorageApplicationModel; * @typedef StartRequest * @property {string} content_type * @property {string} file_name - * @property {Object} [params] + * @property {Params} [params] * @property {number} size * @property {string[]} [tags] */ @@ -69,7 +74,7 @@ export = FileStorageApplicationModel; declare class FileStorageApplicationModel { } declare namespace FileStorageApplicationModel { - export { CDN, CompleteResponse, FailedResponse, SignUrlRequest, SignUrlResponse, StartRequest, StartResponse, Upload, Urls }; + export { CDN, CompleteResponse, CreatedBy, Params, SignUrlRequest, SignUrlResponse, StartRequest, StartResponse, Upload, Urls }; } /** @returns {CDN} */ declare function CDN(): CDN; @@ -84,6 +89,7 @@ type CompleteResponse = { _id: string; cdn: CDN; content_type: string; + created_by?: CreatedBy; created_on: string; file_name: string; file_path: string; @@ -95,10 +101,18 @@ type CompleteResponse = { tags?: string[]; upload: Upload; }; -/** @returns {FailedResponse} */ -declare function FailedResponse(): FailedResponse; -type FailedResponse = { - message: string; +/** @returns {CreatedBy} */ +declare function CreatedBy(): CreatedBy; +type CreatedBy = { + username?: string; +}; +/** @returns {Params} */ +declare function Params(): Params; +type Params = { + /** + * - The subpath for the file. + */ + subpath?: string; }; /** @returns {SignUrlRequest} */ declare function SignUrlRequest(): SignUrlRequest; @@ -116,7 +130,7 @@ declare function StartRequest(): StartRequest; type StartRequest = { content_type: string; file_name: string; - params?: any; + params?: Params; size: number; tags?: string[]; }; diff --git a/sdk/application/FileStorage/FileStorageApplicationModel.js b/sdk/application/FileStorage/FileStorageApplicationModel.js index a07dbbf27..c07c7f0bf 100644 --- a/sdk/application/FileStorage/FileStorageApplicationModel.js +++ b/sdk/application/FileStorage/FileStorageApplicationModel.js @@ -12,6 +12,7 @@ const Joi = require("joi"); * @property {string} _id * @property {CDN} cdn * @property {string} content_type + * @property {CreatedBy} [created_by] * @property {string} created_on * @property {string} file_name * @property {string} file_path @@ -25,8 +26,13 @@ const Joi = require("joi"); */ /** - * @typedef FailedResponse - * @property {string} message + * @typedef CreatedBy + * @property {string} [username] + */ + +/** + * @typedef Params + * @property {string} [subpath] - The subpath for the file. */ /** @@ -44,7 +50,7 @@ const Joi = require("joi"); * @typedef StartRequest * @property {string} content_type * @property {string} file_name - * @property {Object} [params] + * @property {Params} [params] * @property {number} size * @property {string[]} [tags] */ @@ -92,6 +98,7 @@ class FileStorageApplicationModel { _id: Joi.string().allow("").required(), cdn: FileStorageApplicationModel.CDN().required(), content_type: Joi.string().allow("").required(), + created_by: FileStorageApplicationModel.CreatedBy(), created_on: Joi.string().allow("").required(), file_name: Joi.string().allow("").required(), file_path: Joi.string().allow("").required(), @@ -105,10 +112,17 @@ class FileStorageApplicationModel { }); } - /** @returns {FailedResponse} */ - static FailedResponse() { + /** @returns {CreatedBy} */ + static CreatedBy() { + return Joi.object({ + username: Joi.string().allow(""), + }); + } + + /** @returns {Params} */ + static Params() { return Joi.object({ - message: Joi.string().allow("").required(), + subpath: Joi.string().allow(""), }); } @@ -132,7 +146,7 @@ class FileStorageApplicationModel { return Joi.object({ content_type: Joi.string().allow("").required(), file_name: Joi.string().allow("").required(), - params: Joi.any(), + params: FileStorageApplicationModel.Params(), size: Joi.number().required(), tags: Joi.array().items(Joi.string().allow("")), }); diff --git a/sdk/application/User/UserApplicationClient.d.ts b/sdk/application/User/UserApplicationClient.d.ts index 8d987cf24..a53f28f86 100644 --- a/sdk/application/User/UserApplicationClient.d.ts +++ b/sdk/application/User/UserApplicationClient.d.ts @@ -23,6 +23,9 @@ declare class User { loginWithToken: string; logout: string; registerWithForm: string; + resetForgotPassword: string; + sendForgotOTPOnEmail: string; + sendForgotOTPOnMobile: string; sendOTPOnEmail: string; sendOTPOnMobile: string; sendResetPasswordEmail: string; @@ -35,8 +38,10 @@ declare class User { updatePassword: string; updateProfile: string; verifyEmail: string; + verifyEmailForgotOTP: string; verifyEmailOTP: string; verifyMobile: string; + verifyMobileForgotOTP: string; verifyMobileOTP: string; }; _urls: {}; @@ -241,6 +246,37 @@ declare class User { * @description: Use this API to perform user registration by sending form data in the request body. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/registerWithForm/). */ registerWithForm({ body, platform, requestHeaders }?: UserApplicationValidator.RegisterWithFormParam, { responseHeaders }?: object): Promise; + /** + * @param {UserApplicationValidator.ResetForgotPasswordParam} arg - Arg object. + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../ApplicationAPIClient").Options} - Options + * @returns {Promise} - + * Success response + * @name resetForgotPassword + * @summary: Reset forgot Password + * @description: Use this API to reset a password using the code sent on email or SMS. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/resetForgotPassword/). + */ + resetForgotPassword({ body, requestHeaders }?: UserApplicationValidator.ResetForgotPasswordParam, { responseHeaders }?: object): Promise; + /** + * @param {UserApplicationValidator.SendForgotOTPOnEmailParam} arg - Arg object. + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../ApplicationAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name sendForgotOTPOnEmail + * @summary: Send Forgot OTP on email + * @description: Use this API to send an Forgot OTP to an email ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendForgotOTPOnEmail/). + */ + sendForgotOTPOnEmail({ body, platform, requestHeaders }?: UserApplicationValidator.SendForgotOTPOnEmailParam, { responseHeaders }?: object): Promise; + /** + * @param {UserApplicationValidator.SendForgotOTPOnMobileParam} arg - Arg object. + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../ApplicationAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name sendForgotOTPOnMobile + * @summary: Send Forgot OTP on mobile + * @description: Use this API to send an Forgot OTP to a mobile number. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendForgotOTPOnMobile/). + */ + sendForgotOTPOnMobile({ body, platform, requestHeaders }?: UserApplicationValidator.SendForgotOTPOnMobileParam, { responseHeaders }?: object): Promise; /** * @param {UserApplicationValidator.SendOTPOnEmailParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -366,6 +402,16 @@ declare class User { * @description: Use this API to send a verification code to verify an email. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyEmail/). */ verifyEmail({ body, requestHeaders }?: UserApplicationValidator.VerifyEmailParam, { responseHeaders }?: object): Promise; + /** + * @param {UserApplicationValidator.VerifyEmailForgotOTPParam} arg - Arg object. + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../ApplicationAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name verifyEmailForgotOTP + * @summary: Verify Forgot OTP on email + * @description: Use this API to verify the Forgot OTP received on an email ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyEmailForgotOTP/). + */ + verifyEmailForgotOTP({ body, platform, requestHeaders }?: UserApplicationValidator.VerifyEmailForgotOTPParam, { responseHeaders }?: object): Promise; /** * @param {UserApplicationValidator.VerifyEmailOTPParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -386,6 +432,16 @@ declare class User { * @description: Use this API to send a verification code to verify a mobile number. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyMobile/). */ verifyMobile({ body, requestHeaders }?: UserApplicationValidator.VerifyMobileParam, { responseHeaders }?: object): Promise; + /** + * @param {UserApplicationValidator.VerifyMobileForgotOTPParam} arg - Arg object. + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../ApplicationAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name verifyMobileForgotOTP + * @summary: Verify Forgot OTP on mobile + * @description: Use this API to verify the Forgot OTP received on a mobile number. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyMobileForgotOTP/). + */ + verifyMobileForgotOTP({ body, platform, requestHeaders }?: UserApplicationValidator.VerifyMobileForgotOTPParam, { responseHeaders }?: object): Promise; /** * @param {UserApplicationValidator.VerifyMobileOTPParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` diff --git a/sdk/application/User/UserApplicationClient.js b/sdk/application/User/UserApplicationClient.js index ee0074514..8c9e95d94 100644 --- a/sdk/application/User/UserApplicationClient.js +++ b/sdk/application/User/UserApplicationClient.js @@ -41,6 +41,12 @@ class User { logout: "/service/application/user/authentication/v1.0/logout", registerWithForm: "/service/application/user/authentication/v1.0/register/form", + resetForgotPassword: + "/service/application/user/authentication/v1.0/login/password/forgot", + sendForgotOTPOnEmail: + "/service/application/user/authentication/v1.0/otp/forgot/email/send", + sendForgotOTPOnMobile: + "/service/application/user/authentication/v1.0/otp/forgot/mobile/send", sendOTPOnEmail: "/service/application/user/authentication/v1.0/otp/email/send", sendOTPOnMobile: @@ -61,10 +67,14 @@ class User { updatePassword: "/service/application/user/authentication/v1.0/password", updateProfile: "/service/application/user/profile/v1.0/detail", verifyEmail: "/service/application/user/authentication/v1.0/verify/email", + verifyEmailForgotOTP: + "/service/application/user/authentication/v1.0/otp/forgot/email/verify", verifyEmailOTP: "/service/application/user/authentication/v1.0/otp/email/verify", verifyMobile: "/service/application/user/authentication/v1.0/verify/mobile", + verifyMobileForgotOTP: + "/service/application/user/authentication/v1.0/otp/forgot/mobile/verify", verifyMobileOTP: "/service/application/user/authentication/v1.0/otp/mobile/verify", }; @@ -1591,6 +1601,231 @@ class User { return response; } + /** + * @param {UserApplicationValidator.ResetForgotPasswordParam} arg - Arg object. + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../ApplicationAPIClient").Options} - Options + * @returns {Promise} - + * Success response + * @name resetForgotPassword + * @summary: Reset forgot Password + * @description: Use this API to reset a password using the code sent on email or SMS. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/resetForgotPassword/). + */ + async resetForgotPassword( + { body, requestHeaders } = { requestHeaders: {} }, + { responseHeaders } = { responseHeaders: false } + ) { + const { error } = UserApplicationValidator.resetForgotPassword().validate( + { body }, + { abortEarly: false, allowUnknown: true } + ); + if (error) { + return Promise.reject(new FDKClientValidationError(error)); + } + + // Showing warrnings if extra unknown parameters are found + const { + error: warrning, + } = UserApplicationValidator.resetForgotPassword().validate( + { body }, + { abortEarly: false, allowUnknown: false } + ); + if (warrning) { + Logger({ + level: "WARN", + message: `Parameter Validation warrnings for application > User > resetForgotPassword \n ${warrning}`, + }); + } + + const query_params = {}; + + const xHeaders = {}; + + const response = await ApplicationAPIClient.execute( + this._conf, + "post", + constructUrl({ + url: this._urls["resetForgotPassword"], + params: {}, + }), + query_params, + body, + { ...xHeaders, ...requestHeaders }, + { responseHeaders } + ); + + let responseData = response; + if (responseHeaders) { + responseData = response[0]; + } + + const { + error: res_error, + } = UserApplicationModel.ResetForgotPasswordSuccess().validate( + responseData, + { abortEarly: false, allowUnknown: false } + ); + + if (res_error) { + Logger({ + level: "WARN", + message: `Response Validation Warnnings for application > User > resetForgotPassword \n ${res_error}`, + }); + } + + return response; + } + + /** + * @param {UserApplicationValidator.SendForgotOTPOnEmailParam} arg - Arg object. + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../ApplicationAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name sendForgotOTPOnEmail + * @summary: Send Forgot OTP on email + * @description: Use this API to send an Forgot OTP to an email ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendForgotOTPOnEmail/). + */ + async sendForgotOTPOnEmail( + { body, platform, requestHeaders } = { requestHeaders: {} }, + { responseHeaders } = { responseHeaders: false } + ) { + const { error } = UserApplicationValidator.sendForgotOTPOnEmail().validate( + { body, platform }, + { abortEarly: false, allowUnknown: true } + ); + if (error) { + return Promise.reject(new FDKClientValidationError(error)); + } + + // Showing warrnings if extra unknown parameters are found + const { + error: warrning, + } = UserApplicationValidator.sendForgotOTPOnEmail().validate( + { body, platform }, + { abortEarly: false, allowUnknown: false } + ); + if (warrning) { + Logger({ + level: "WARN", + message: `Parameter Validation warrnings for application > User > sendForgotOTPOnEmail \n ${warrning}`, + }); + } + + const query_params = {}; + query_params["platform"] = platform; + + const xHeaders = {}; + + const response = await ApplicationAPIClient.execute( + this._conf, + "post", + constructUrl({ + url: this._urls["sendForgotOTPOnEmail"], + params: {}, + }), + query_params, + body, + { ...xHeaders, ...requestHeaders }, + { responseHeaders } + ); + + let responseData = response; + if (responseHeaders) { + responseData = response[0]; + } + + const { + error: res_error, + } = UserApplicationModel.EmailOtpSuccess().validate(responseData, { + abortEarly: false, + allowUnknown: false, + }); + + if (res_error) { + Logger({ + level: "WARN", + message: `Response Validation Warnnings for application > User > sendForgotOTPOnEmail \n ${res_error}`, + }); + } + + return response; + } + + /** + * @param {UserApplicationValidator.SendForgotOTPOnMobileParam} arg - Arg object. + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../ApplicationAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name sendForgotOTPOnMobile + * @summary: Send Forgot OTP on mobile + * @description: Use this API to send an Forgot OTP to a mobile number. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendForgotOTPOnMobile/). + */ + async sendForgotOTPOnMobile( + { body, platform, requestHeaders } = { requestHeaders: {} }, + { responseHeaders } = { responseHeaders: false } + ) { + const { error } = UserApplicationValidator.sendForgotOTPOnMobile().validate( + { body, platform }, + { abortEarly: false, allowUnknown: true } + ); + if (error) { + return Promise.reject(new FDKClientValidationError(error)); + } + + // Showing warrnings if extra unknown parameters are found + const { + error: warrning, + } = UserApplicationValidator.sendForgotOTPOnMobile().validate( + { body, platform }, + { abortEarly: false, allowUnknown: false } + ); + if (warrning) { + Logger({ + level: "WARN", + message: `Parameter Validation warrnings for application > User > sendForgotOTPOnMobile \n ${warrning}`, + }); + } + + const query_params = {}; + query_params["platform"] = platform; + + const xHeaders = {}; + + const response = await ApplicationAPIClient.execute( + this._conf, + "post", + constructUrl({ + url: this._urls["sendForgotOTPOnMobile"], + params: {}, + }), + query_params, + body, + { ...xHeaders, ...requestHeaders }, + { responseHeaders } + ); + + let responseData = response; + if (responseHeaders) { + responseData = response[0]; + } + + const { + error: res_error, + } = UserApplicationModel.OtpSuccess().validate(responseData, { + abortEarly: false, + allowUnknown: false, + }); + + if (res_error) { + Logger({ + level: "WARN", + message: `Response Validation Warnnings for application > User > sendForgotOTPOnMobile \n ${res_error}`, + }); + } + + return response; + } + /** * @param {UserApplicationValidator.SendOTPOnEmailParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -2499,6 +2734,81 @@ class User { return response; } + /** + * @param {UserApplicationValidator.VerifyEmailForgotOTPParam} arg - Arg object. + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../ApplicationAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name verifyEmailForgotOTP + * @summary: Verify Forgot OTP on email + * @description: Use this API to verify the Forgot OTP received on an email ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyEmailForgotOTP/). + */ + async verifyEmailForgotOTP( + { body, platform, requestHeaders } = { requestHeaders: {} }, + { responseHeaders } = { responseHeaders: false } + ) { + const { error } = UserApplicationValidator.verifyEmailForgotOTP().validate( + { body, platform }, + { abortEarly: false, allowUnknown: true } + ); + if (error) { + return Promise.reject(new FDKClientValidationError(error)); + } + + // Showing warrnings if extra unknown parameters are found + const { + error: warrning, + } = UserApplicationValidator.verifyEmailForgotOTP().validate( + { body, platform }, + { abortEarly: false, allowUnknown: false } + ); + if (warrning) { + Logger({ + level: "WARN", + message: `Parameter Validation warrnings for application > User > verifyEmailForgotOTP \n ${warrning}`, + }); + } + + const query_params = {}; + query_params["platform"] = platform; + + const xHeaders = {}; + + const response = await ApplicationAPIClient.execute( + this._conf, + "post", + constructUrl({ + url: this._urls["verifyEmailForgotOTP"], + params: {}, + }), + query_params, + body, + { ...xHeaders, ...requestHeaders }, + { responseHeaders } + ); + + let responseData = response; + if (responseHeaders) { + responseData = response[0]; + } + + const { + error: res_error, + } = UserApplicationModel.VerifyForgotOtpSuccess().validate(responseData, { + abortEarly: false, + allowUnknown: false, + }); + + if (res_error) { + Logger({ + level: "WARN", + message: `Response Validation Warnnings for application > User > verifyEmailForgotOTP \n ${res_error}`, + }); + } + + return response; + } + /** * @param {UserApplicationValidator.VerifyEmailOTPParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -2648,6 +2958,81 @@ class User { return response; } + /** + * @param {UserApplicationValidator.VerifyMobileForgotOTPParam} arg - Arg object. + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../ApplicationAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name verifyMobileForgotOTP + * @summary: Verify Forgot OTP on mobile + * @description: Use this API to verify the Forgot OTP received on a mobile number. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyMobileForgotOTP/). + */ + async verifyMobileForgotOTP( + { body, platform, requestHeaders } = { requestHeaders: {} }, + { responseHeaders } = { responseHeaders: false } + ) { + const { error } = UserApplicationValidator.verifyMobileForgotOTP().validate( + { body, platform }, + { abortEarly: false, allowUnknown: true } + ); + if (error) { + return Promise.reject(new FDKClientValidationError(error)); + } + + // Showing warrnings if extra unknown parameters are found + const { + error: warrning, + } = UserApplicationValidator.verifyMobileForgotOTP().validate( + { body, platform }, + { abortEarly: false, allowUnknown: false } + ); + if (warrning) { + Logger({ + level: "WARN", + message: `Parameter Validation warrnings for application > User > verifyMobileForgotOTP \n ${warrning}`, + }); + } + + const query_params = {}; + query_params["platform"] = platform; + + const xHeaders = {}; + + const response = await ApplicationAPIClient.execute( + this._conf, + "post", + constructUrl({ + url: this._urls["verifyMobileForgotOTP"], + params: {}, + }), + query_params, + body, + { ...xHeaders, ...requestHeaders }, + { responseHeaders } + ); + + let responseData = response; + if (responseHeaders) { + responseData = response[0]; + } + + const { + error: res_error, + } = UserApplicationModel.VerifyForgotOtpSuccess().validate(responseData, { + abortEarly: false, + allowUnknown: false, + }); + + if (res_error) { + Logger({ + level: "WARN", + message: `Response Validation Warnnings for application > User > verifyMobileForgotOTP \n ${res_error}`, + }); + } + + return response; + } + /** * @param {UserApplicationValidator.VerifyMobileOTPParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` diff --git a/sdk/application/User/UserApplicationModel.d.ts b/sdk/application/User/UserApplicationModel.d.ts index 849450270..201de4529 100644 --- a/sdk/application/User/UserApplicationModel.d.ts +++ b/sdk/application/User/UserApplicationModel.d.ts @@ -3,6 +3,14 @@ export = UserApplicationModel; * @typedef Accountkit * @property {string} [app_id] */ +/** + * @typedef APIError + * @property {string} [code] + * @property {string} [info] - Error code description link + * @property {string} [message] + * @property {Object} [meta] + * @property {string} [request_id] + */ /** * @typedef AuthenticationApiErrorSchema * @property {string} [message] @@ -298,10 +306,20 @@ export = UserApplicationModel; * @property {PlatformEmail} [email] * @property {PlatformMobile} [mobile] */ +/** + * @typedef ResetForgotPasswordSuccess + * @property {boolean} [success] + */ /** * @typedef ResetPasswordSuccess * @property {string} [status] */ +/** + * @typedef SendEmailForgotOtpRequestSchema + * @property {string} [action] + * @property {string} [email] + * @property {string} [token] + */ /** * @typedef SendEmailOtpRequestSchema * @property {string} [action] @@ -314,6 +332,14 @@ export = UserApplicationModel; * @typedef SendEmailVerifyLinkSuccess * @property {boolean} [verify_email_link] */ +/** + * @typedef SendMobileForgotOtpRequestSchema + * @property {string} [action] + * @property {string} [android_hash] + * @property {string} [country_code] + * @property {string} [mobile] + * @property {string} [token] + */ /** * @typedef SendMobileOtpRequestSchema * @property {string} [action] @@ -425,6 +451,11 @@ export = UserApplicationModel; * @property {string} [user_id] * @property {string} [username] */ +/** + * @typedef VerifyEmailForgotOtpRequestSchema + * @property {string} [email] + * @property {string} [otp] + */ /** * @typedef VerifyEmailOtpRequestSchema * @property {string} [action] @@ -441,6 +472,16 @@ export = UserApplicationModel; * @typedef VerifyEmailSuccess * @property {string} [message] */ +/** + * @typedef VerifyForgotOtpSuccess + * @property {string} [forgot_token] + * @property {boolean} [success] + */ +/** + * @typedef VerifyMobileForgotOtpRequestSchema + * @property {string} [otp] + * @property {string} [request_id] + */ /** * @typedef VerifyMobileOTPSuccess * @property {UserSchema} [user] @@ -461,13 +502,25 @@ export = UserApplicationModel; declare class UserApplicationModel { } declare namespace UserApplicationModel { - export { Accountkit, AuthenticationApiErrorSchema, AuthenticationInternalServerErrorSchema, AuthSuccess, CodeRequestBodySchema, DeleteAccountConsent, DeleteAccountReasons, DeleteApplicationUserRequestSchema, DeleteUserSuccess, EditEmailRequestSchema, EditMobileRequestSchema, EditProfileMobileSchema, EditProfileRequestSchema, Email, EmailOtpSuccess, Facebook, FlashCard, ForgotPasswordRequestSchema, FormRegisterRequestSchema, FormRegisterRequestSchemaPhone, Google, HasPasswordSuccess, Login, LoginSuccess, LogoutSuccess, LookAndFeel, MetaSchema, OAuthRequestAppleSchema, OAuthRequestAppleSchemaOauth, OAuthRequestAppleSchemaProfile, OAuthRequestSchema, OAuthRequestSchemaOauth2, OAuthRequestSchemaProfile, OtpSuccess, PasswordLoginRequestSchema, PhoneNumber, PlatformEmail, PlatformMobile, PlatformSchema, ProfileEditSuccess, RegisterFormSuccess, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, RequiredFields, ResetPasswordSuccess, SendEmailOtpRequestSchema, SendEmailVerifyLinkSuccess, SendMobileOtpRequestSchema, SendMobileVerifyLinkSuccess, SendOtpRequestSchema, SendOtpResponse, SendResetPasswordEmailRequestSchema, SendResetPasswordMobileRequestSchema, SendVerificationLinkMobileRequestSchema, SessionExpiry, SessionListSuccess, Social, SocialTokens, TokenRequestBodySchema, UpdatePasswordRequestSchema, UserObjectSchema, UserSchema, VerifyEmailOtpRequestSchema, VerifyEmailOTPSuccess, VerifyEmailSuccess, VerifyMobileOTPSuccess, VerifyOtpRequestSchema, VerifyOtpSuccess }; + export { Accountkit, APIError, AuthenticationApiErrorSchema, AuthenticationInternalServerErrorSchema, AuthSuccess, CodeRequestBodySchema, DeleteAccountConsent, DeleteAccountReasons, DeleteApplicationUserRequestSchema, DeleteUserSuccess, EditEmailRequestSchema, EditMobileRequestSchema, EditProfileMobileSchema, EditProfileRequestSchema, Email, EmailOtpSuccess, Facebook, FlashCard, ForgotPasswordRequestSchema, FormRegisterRequestSchema, FormRegisterRequestSchemaPhone, Google, HasPasswordSuccess, Login, LoginSuccess, LogoutSuccess, LookAndFeel, MetaSchema, OAuthRequestAppleSchema, OAuthRequestAppleSchemaOauth, OAuthRequestAppleSchemaProfile, OAuthRequestSchema, OAuthRequestSchemaOauth2, OAuthRequestSchemaProfile, OtpSuccess, PasswordLoginRequestSchema, PhoneNumber, PlatformEmail, PlatformMobile, PlatformSchema, ProfileEditSuccess, RegisterFormSuccess, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, RequiredFields, ResetForgotPasswordSuccess, ResetPasswordSuccess, SendEmailForgotOtpRequestSchema, SendEmailOtpRequestSchema, SendEmailVerifyLinkSuccess, SendMobileForgotOtpRequestSchema, SendMobileOtpRequestSchema, SendMobileVerifyLinkSuccess, SendOtpRequestSchema, SendOtpResponse, SendResetPasswordEmailRequestSchema, SendResetPasswordMobileRequestSchema, SendVerificationLinkMobileRequestSchema, SessionExpiry, SessionListSuccess, Social, SocialTokens, TokenRequestBodySchema, UpdatePasswordRequestSchema, UserObjectSchema, UserSchema, VerifyEmailForgotOtpRequestSchema, VerifyEmailOtpRequestSchema, VerifyEmailOTPSuccess, VerifyEmailSuccess, VerifyForgotOtpSuccess, VerifyMobileForgotOtpRequestSchema, VerifyMobileOTPSuccess, VerifyOtpRequestSchema, VerifyOtpSuccess }; } /** @returns {Accountkit} */ declare function Accountkit(): Accountkit; type Accountkit = { app_id?: string; }; +/** @returns {APIError} */ +declare function APIError(): APIError; +type APIError = { + code?: string; + /** + * - Error code description link + */ + info?: string; + message?: string; + meta?: any; + request_id?: string; +}; /** @returns {AuthenticationApiErrorSchema} */ declare function AuthenticationApiErrorSchema(): AuthenticationApiErrorSchema; type AuthenticationApiErrorSchema = { @@ -807,11 +860,23 @@ type RequiredFields = { email?: PlatformEmail; mobile?: PlatformMobile; }; +/** @returns {ResetForgotPasswordSuccess} */ +declare function ResetForgotPasswordSuccess(): ResetForgotPasswordSuccess; +type ResetForgotPasswordSuccess = { + success?: boolean; +}; /** @returns {ResetPasswordSuccess} */ declare function ResetPasswordSuccess(): ResetPasswordSuccess; type ResetPasswordSuccess = { status?: string; }; +/** @returns {SendEmailForgotOtpRequestSchema} */ +declare function SendEmailForgotOtpRequestSchema(): SendEmailForgotOtpRequestSchema; +type SendEmailForgotOtpRequestSchema = { + action?: string; + email?: string; + token?: string; +}; /** @returns {SendEmailOtpRequestSchema} */ declare function SendEmailOtpRequestSchema(): SendEmailOtpRequestSchema; type SendEmailOtpRequestSchema = { @@ -826,6 +891,15 @@ declare function SendEmailVerifyLinkSuccess(): SendEmailVerifyLinkSuccess; type SendEmailVerifyLinkSuccess = { verify_email_link?: boolean; }; +/** @returns {SendMobileForgotOtpRequestSchema} */ +declare function SendMobileForgotOtpRequestSchema(): SendMobileForgotOtpRequestSchema; +type SendMobileForgotOtpRequestSchema = { + action?: string; + android_hash?: string; + country_code?: string; + mobile?: string; + token?: string; +}; /** @returns {SendMobileOtpRequestSchema} */ declare function SendMobileOtpRequestSchema(): SendMobileOtpRequestSchema; type SendMobileOtpRequestSchema = { @@ -952,6 +1026,12 @@ type UserSchema = { user_id?: string; username?: string; }; +/** @returns {VerifyEmailForgotOtpRequestSchema} */ +declare function VerifyEmailForgotOtpRequestSchema(): VerifyEmailForgotOtpRequestSchema; +type VerifyEmailForgotOtpRequestSchema = { + email?: string; + otp?: string; +}; /** @returns {VerifyEmailOtpRequestSchema} */ declare function VerifyEmailOtpRequestSchema(): VerifyEmailOtpRequestSchema; type VerifyEmailOtpRequestSchema = { @@ -971,6 +1051,18 @@ declare function VerifyEmailSuccess(): VerifyEmailSuccess; type VerifyEmailSuccess = { message?: string; }; +/** @returns {VerifyForgotOtpSuccess} */ +declare function VerifyForgotOtpSuccess(): VerifyForgotOtpSuccess; +type VerifyForgotOtpSuccess = { + forgot_token?: string; + success?: boolean; +}; +/** @returns {VerifyMobileForgotOtpRequestSchema} */ +declare function VerifyMobileForgotOtpRequestSchema(): VerifyMobileForgotOtpRequestSchema; +type VerifyMobileForgotOtpRequestSchema = { + otp?: string; + request_id?: string; +}; /** @returns {VerifyMobileOTPSuccess} */ declare function VerifyMobileOTPSuccess(): VerifyMobileOTPSuccess; type VerifyMobileOTPSuccess = { diff --git a/sdk/application/User/UserApplicationModel.js b/sdk/application/User/UserApplicationModel.js index efbad3b70..2b5bc454b 100644 --- a/sdk/application/User/UserApplicationModel.js +++ b/sdk/application/User/UserApplicationModel.js @@ -5,6 +5,15 @@ const Joi = require("joi"); * @property {string} [app_id] */ +/** + * @typedef APIError + * @property {string} [code] + * @property {string} [info] - Error code description link + * @property {string} [message] + * @property {Object} [meta] + * @property {string} [request_id] + */ + /** * @typedef AuthenticationApiErrorSchema * @property {string} [message] @@ -344,11 +353,23 @@ const Joi = require("joi"); * @property {PlatformMobile} [mobile] */ +/** + * @typedef ResetForgotPasswordSuccess + * @property {boolean} [success] + */ + /** * @typedef ResetPasswordSuccess * @property {string} [status] */ +/** + * @typedef SendEmailForgotOtpRequestSchema + * @property {string} [action] + * @property {string} [email] + * @property {string} [token] + */ + /** * @typedef SendEmailOtpRequestSchema * @property {string} [action] @@ -363,6 +384,15 @@ const Joi = require("joi"); * @property {boolean} [verify_email_link] */ +/** + * @typedef SendMobileForgotOtpRequestSchema + * @property {string} [action] + * @property {string} [android_hash] + * @property {string} [country_code] + * @property {string} [mobile] + * @property {string} [token] + */ + /** * @typedef SendMobileOtpRequestSchema * @property {string} [action] @@ -489,6 +519,12 @@ const Joi = require("joi"); * @property {string} [username] */ +/** + * @typedef VerifyEmailForgotOtpRequestSchema + * @property {string} [email] + * @property {string} [otp] + */ + /** * @typedef VerifyEmailOtpRequestSchema * @property {string} [action] @@ -508,6 +544,18 @@ const Joi = require("joi"); * @property {string} [message] */ +/** + * @typedef VerifyForgotOtpSuccess + * @property {string} [forgot_token] + * @property {boolean} [success] + */ + +/** + * @typedef VerifyMobileForgotOtpRequestSchema + * @property {string} [otp] + * @property {string} [request_id] + */ + /** * @typedef VerifyMobileOTPSuccess * @property {UserSchema} [user] @@ -536,6 +584,17 @@ class UserApplicationModel { }); } + /** @returns {APIError} */ + static APIError() { + return Joi.object({ + code: Joi.string().allow(""), + info: Joi.string().allow(""), + message: Joi.string().allow(""), + meta: Joi.any(), + request_id: Joi.string().allow(""), + }); + } + /** @returns {AuthenticationApiErrorSchema} */ static AuthenticationApiErrorSchema() { return Joi.object({ @@ -965,6 +1024,13 @@ class UserApplicationModel { }); } + /** @returns {ResetForgotPasswordSuccess} */ + static ResetForgotPasswordSuccess() { + return Joi.object({ + success: Joi.boolean(), + }); + } + /** @returns {ResetPasswordSuccess} */ static ResetPasswordSuccess() { return Joi.object({ @@ -972,6 +1038,15 @@ class UserApplicationModel { }); } + /** @returns {SendEmailForgotOtpRequestSchema} */ + static SendEmailForgotOtpRequestSchema() { + return Joi.object({ + action: Joi.string().allow(""), + email: Joi.string().allow(""), + token: Joi.string().allow(""), + }); + } + /** @returns {SendEmailOtpRequestSchema} */ static SendEmailOtpRequestSchema() { return Joi.object({ @@ -990,6 +1065,17 @@ class UserApplicationModel { }); } + /** @returns {SendMobileForgotOtpRequestSchema} */ + static SendMobileForgotOtpRequestSchema() { + return Joi.object({ + action: Joi.string().allow(""), + android_hash: Joi.string().allow(""), + country_code: Joi.string().allow(""), + mobile: Joi.string().allow(""), + token: Joi.string().allow(""), + }); + } + /** @returns {SendMobileOtpRequestSchema} */ static SendMobileOtpRequestSchema() { return Joi.object({ @@ -1146,6 +1232,14 @@ class UserApplicationModel { }); } + /** @returns {VerifyEmailForgotOtpRequestSchema} */ + static VerifyEmailForgotOtpRequestSchema() { + return Joi.object({ + email: Joi.string().allow(""), + otp: Joi.string().allow(""), + }); + } + /** @returns {VerifyEmailOtpRequestSchema} */ static VerifyEmailOtpRequestSchema() { return Joi.object({ @@ -1171,6 +1265,22 @@ class UserApplicationModel { }); } + /** @returns {VerifyForgotOtpSuccess} */ + static VerifyForgotOtpSuccess() { + return Joi.object({ + forgot_token: Joi.string().allow(""), + success: Joi.boolean(), + }); + } + + /** @returns {VerifyMobileForgotOtpRequestSchema} */ + static VerifyMobileForgotOtpRequestSchema() { + return Joi.object({ + otp: Joi.string().allow(""), + request_id: Joi.string().allow(""), + }); + } + /** @returns {VerifyMobileOTPSuccess} */ static VerifyMobileOTPSuccess() { return Joi.object({ diff --git a/sdk/application/User/UserApplicationValidator.d.ts b/sdk/application/User/UserApplicationValidator.d.ts index 455689be2..f34bc3080 100644 --- a/sdk/application/User/UserApplicationValidator.d.ts +++ b/sdk/application/User/UserApplicationValidator.d.ts @@ -93,6 +93,20 @@ export = UserApplicationValidator; * @property {string} [platform] - ID of the application * @property {UserApplicationModel.FormRegisterRequestSchema} body */ +/** + * @typedef ResetForgotPasswordParam + * @property {UserApplicationModel.ForgotPasswordRequestSchema} body + */ +/** + * @typedef SendForgotOTPOnEmailParam + * @property {string} [platform] - ID of the application + * @property {UserApplicationModel.SendEmailForgotOtpRequestSchema} body + */ +/** + * @typedef SendForgotOTPOnMobileParam + * @property {string} [platform] - ID of the application + * @property {UserApplicationModel.SendMobileForgotOtpRequestSchema} body + */ /** * @typedef SendOTPOnEmailParam * @property {string} [platform] - ID of the application @@ -148,6 +162,11 @@ export = UserApplicationValidator; * @typedef VerifyEmailParam * @property {UserApplicationModel.CodeRequestBodySchema} body */ +/** + * @typedef VerifyEmailForgotOTPParam + * @property {string} [platform] - ID of the application + * @property {UserApplicationModel.VerifyEmailForgotOtpRequestSchema} body + */ /** * @typedef VerifyEmailOTPParam * @property {string} [platform] - ID of the application @@ -157,6 +176,11 @@ export = UserApplicationValidator; * @typedef VerifyMobileParam * @property {UserApplicationModel.CodeRequestBodySchema} body */ +/** + * @typedef VerifyMobileForgotOTPParam + * @property {string} [platform] - ID of the application + * @property {UserApplicationModel.VerifyMobileForgotOtpRequestSchema} body + */ /** * @typedef VerifyMobileOTPParam * @property {string} [platform] - ID of the application @@ -203,6 +227,12 @@ declare class UserApplicationValidator { static logout(): any; /** @returns {RegisterWithFormParam} */ static registerWithForm(): RegisterWithFormParam; + /** @returns {ResetForgotPasswordParam} */ + static resetForgotPassword(): ResetForgotPasswordParam; + /** @returns {SendForgotOTPOnEmailParam} */ + static sendForgotOTPOnEmail(): SendForgotOTPOnEmailParam; + /** @returns {SendForgotOTPOnMobileParam} */ + static sendForgotOTPOnMobile(): SendForgotOTPOnMobileParam; /** @returns {SendOTPOnEmailParam} */ static sendOTPOnEmail(): SendOTPOnEmailParam; /** @returns {SendOTPOnMobileParam} */ @@ -227,15 +257,19 @@ declare class UserApplicationValidator { static updateProfile(): UpdateProfileParam; /** @returns {VerifyEmailParam} */ static verifyEmail(): VerifyEmailParam; + /** @returns {VerifyEmailForgotOTPParam} */ + static verifyEmailForgotOTP(): VerifyEmailForgotOTPParam; /** @returns {VerifyEmailOTPParam} */ static verifyEmailOTP(): VerifyEmailOTPParam; /** @returns {VerifyMobileParam} */ static verifyMobile(): VerifyMobileParam; + /** @returns {VerifyMobileForgotOTPParam} */ + static verifyMobileForgotOTP(): VerifyMobileForgotOTPParam; /** @returns {VerifyMobileOTPParam} */ static verifyMobileOTP(): VerifyMobileOTPParam; } declare namespace UserApplicationValidator { - export { AddEmailParam, AddMobileNumberParam, DeleteEmailParam, DeleteMobileNumberParam, DeleteUserParam, ForgotPasswordParam, GetListOfActiveSessionsParam, GetLoggedInUserParam, GetPlatformConfigParam, HasPasswordParam, LoginWithAppleIOSParam, LoginWithEmailAndPasswordParam, LoginWithFacebookParam, LoginWithGoogleParam, LoginWithGoogleAndroidParam, LoginWithGoogleIOSParam, LoginWithOTPParam, LoginWithTokenParam, LogoutParam, RegisterWithFormParam, SendOTPOnEmailParam, SendOTPOnMobileParam, SendResetPasswordEmailParam, SendResetPasswordMobileParam, SendResetTokenParam, SendVerificationLinkToEmailParam, SendVerificationLinkToMobileParam, SetEmailAsPrimaryParam, SetMobileNumberAsPrimaryParam, UpdatePasswordParam, UpdateProfileParam, VerifyEmailParam, VerifyEmailOTPParam, VerifyMobileParam, VerifyMobileOTPParam }; + export { AddEmailParam, AddMobileNumberParam, DeleteEmailParam, DeleteMobileNumberParam, DeleteUserParam, ForgotPasswordParam, GetListOfActiveSessionsParam, GetLoggedInUserParam, GetPlatformConfigParam, HasPasswordParam, LoginWithAppleIOSParam, LoginWithEmailAndPasswordParam, LoginWithFacebookParam, LoginWithGoogleParam, LoginWithGoogleAndroidParam, LoginWithGoogleIOSParam, LoginWithOTPParam, LoginWithTokenParam, LogoutParam, RegisterWithFormParam, ResetForgotPasswordParam, SendForgotOTPOnEmailParam, SendForgotOTPOnMobileParam, SendOTPOnEmailParam, SendOTPOnMobileParam, SendResetPasswordEmailParam, SendResetPasswordMobileParam, SendResetTokenParam, SendVerificationLinkToEmailParam, SendVerificationLinkToMobileParam, SetEmailAsPrimaryParam, SetMobileNumberAsPrimaryParam, UpdatePasswordParam, UpdateProfileParam, VerifyEmailParam, VerifyEmailForgotOTPParam, VerifyEmailOTPParam, VerifyMobileParam, VerifyMobileForgotOTPParam, VerifyMobileOTPParam }; } type AddEmailParam = { /** @@ -374,6 +408,23 @@ type RegisterWithFormParam = { platform?: string; body: UserApplicationModel.FormRegisterRequestSchema; }; +type ResetForgotPasswordParam = { + body: UserApplicationModel.ForgotPasswordRequestSchema; +}; +type SendForgotOTPOnEmailParam = { + /** + * - ID of the application + */ + platform?: string; + body: UserApplicationModel.SendEmailForgotOtpRequestSchema; +}; +type SendForgotOTPOnMobileParam = { + /** + * - ID of the application + */ + platform?: string; + body: UserApplicationModel.SendMobileForgotOtpRequestSchema; +}; type SendOTPOnEmailParam = { /** * - ID of the application @@ -438,6 +489,13 @@ type UpdateProfileParam = { type VerifyEmailParam = { body: UserApplicationModel.CodeRequestBodySchema; }; +type VerifyEmailForgotOTPParam = { + /** + * - ID of the application + */ + platform?: string; + body: UserApplicationModel.VerifyEmailForgotOtpRequestSchema; +}; type VerifyEmailOTPParam = { /** * - ID of the application @@ -448,6 +506,13 @@ type VerifyEmailOTPParam = { type VerifyMobileParam = { body: UserApplicationModel.CodeRequestBodySchema; }; +type VerifyMobileForgotOTPParam = { + /** + * - ID of the application + */ + platform?: string; + body: UserApplicationModel.VerifyMobileForgotOtpRequestSchema; +}; type VerifyMobileOTPParam = { /** * - ID of the application diff --git a/sdk/application/User/UserApplicationValidator.js b/sdk/application/User/UserApplicationValidator.js index c2730f7cc..1a1c5a863 100644 --- a/sdk/application/User/UserApplicationValidator.js +++ b/sdk/application/User/UserApplicationValidator.js @@ -116,6 +116,23 @@ const UserApplicationModel = require("./UserApplicationModel"); * @property {UserApplicationModel.FormRegisterRequestSchema} body */ +/** + * @typedef ResetForgotPasswordParam + * @property {UserApplicationModel.ForgotPasswordRequestSchema} body + */ + +/** + * @typedef SendForgotOTPOnEmailParam + * @property {string} [platform] - ID of the application + * @property {UserApplicationModel.SendEmailForgotOtpRequestSchema} body + */ + +/** + * @typedef SendForgotOTPOnMobileParam + * @property {string} [platform] - ID of the application + * @property {UserApplicationModel.SendMobileForgotOtpRequestSchema} body + */ + /** * @typedef SendOTPOnEmailParam * @property {string} [platform] - ID of the application @@ -183,6 +200,12 @@ const UserApplicationModel = require("./UserApplicationModel"); * @property {UserApplicationModel.CodeRequestBodySchema} body */ +/** + * @typedef VerifyEmailForgotOTPParam + * @property {string} [platform] - ID of the application + * @property {UserApplicationModel.VerifyEmailForgotOtpRequestSchema} body + */ + /** * @typedef VerifyEmailOTPParam * @property {string} [platform] - ID of the application @@ -194,6 +217,12 @@ const UserApplicationModel = require("./UserApplicationModel"); * @property {UserApplicationModel.CodeRequestBodySchema} body */ +/** + * @typedef VerifyMobileForgotOTPParam + * @property {string} [platform] - ID of the application + * @property {UserApplicationModel.VerifyMobileForgotOtpRequestSchema} body + */ + /** * @typedef VerifyMobileOTPParam * @property {string} [platform] - ID of the application @@ -351,6 +380,29 @@ class UserApplicationValidator { }).required(); } + /** @returns {ResetForgotPasswordParam} */ + static resetForgotPassword() { + return Joi.object({ + body: UserApplicationModel.ForgotPasswordRequestSchema().required(), + }).required(); + } + + /** @returns {SendForgotOTPOnEmailParam} */ + static sendForgotOTPOnEmail() { + return Joi.object({ + platform: Joi.string().allow(""), + body: UserApplicationModel.SendEmailForgotOtpRequestSchema().required(), + }).required(); + } + + /** @returns {SendForgotOTPOnMobileParam} */ + static sendForgotOTPOnMobile() { + return Joi.object({ + platform: Joi.string().allow(""), + body: UserApplicationModel.SendMobileForgotOtpRequestSchema().required(), + }).required(); + } + /** @returns {SendOTPOnEmailParam} */ static sendOTPOnEmail() { return Joi.object({ @@ -442,6 +494,14 @@ class UserApplicationValidator { }).required(); } + /** @returns {VerifyEmailForgotOTPParam} */ + static verifyEmailForgotOTP() { + return Joi.object({ + platform: Joi.string().allow(""), + body: UserApplicationModel.VerifyEmailForgotOtpRequestSchema().required(), + }).required(); + } + /** @returns {VerifyEmailOTPParam} */ static verifyEmailOTP() { return Joi.object({ @@ -457,6 +517,14 @@ class UserApplicationValidator { }).required(); } + /** @returns {VerifyMobileForgotOTPParam} */ + static verifyMobileForgotOTP() { + return Joi.object({ + platform: Joi.string().allow(""), + body: UserApplicationModel.VerifyMobileForgotOtpRequestSchema().required(), + }).required(); + } + /** @returns {VerifyMobileOTPParam} */ static verifyMobileOTP() { return Joi.object({ diff --git a/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts b/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts new file mode 100644 index 000000000..19fc86f8a --- /dev/null +++ b/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts @@ -0,0 +1,96 @@ +export = FileStorage; +declare class FileStorage { + constructor(config: any); + config: any; + /** + * @param {Object} arg - Arg object. + * @param {string} arg.namespace - Segregation of different types of + * files(products, orders, logistics etc), Required for validating the + * data of the file being uploaded, decides where exactly the file will be + * stored inside the storage bucket. + * @param {StartRequest} arg.body + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PartnerAPIClient").Options} - Options + * @summary: This operation initiates upload and returns storage link which is valid for 30 Minutes. You can use that storage link to make subsequent upload request with file buffer or blob. + * @description: Uploads an arbitrarily sized buffer or blob. + * + * It has three Major Steps: + * Start + * Upload + * Complete + * + * ### Start + * Initiates the assets upload using `startUpload`. + * It returns the storage link in response. + * + * ### Upload + * Use the storage link to upload a file (Buffer or Blob) to the File Storage. + * Make a `PUT` request on storage link received from `startUpload` api with file (Buffer or Blob) as a request body. + * + * ### Complete + * After successfully upload, call `completeUpload` api to complete the upload process. + * This operation will return the url for the uploaded file. + */ + startUpload({ namespace, body, requestHeaders }?: { + namespace: string; + body: StartRequest; + requestHeaders?: object; + }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise; + /** + * @param {Object} arg - Arg object. + * @param {string} arg.namespace - Segregation of different types of + * files(products, orders, logistics etc), Required for validating the + * data of the file being uploaded, decides where exactly the file will be + * stored inside the storage bucket. + * @param {StartResponse} arg.body + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PartnerAPIClient").Options} - Options + * @summary: This will complete the upload process. After successfully uploading file, you can call this operation to complete the upload process. + * @description: Uploads an arbitrarily sized buffer or blob. + * + * It has three Major Steps: + * Start + * Upload + * Complete + * + * ### Start + * Initiates the assets upload using `startUpload`. + * It returns the storage link in response. + * + * ### Upload + * Use the storage link to upload a file (Buffer or Blob) to the File Storage. + * Make a `PUT` request on storage link received from `startUpload` api with file (Buffer or Blob) as a request body. + * + * ### Complete + * After successfully upload, call `completeUpload` api to complete the upload process. + * This operation will return the url for the uploaded file. + */ + completeUpload({ namespace, body, requestHeaders }?: { + namespace: string; + body: StartResponse; + requestHeaders?: object; + }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise; + /** + * @param {Object} arg - Arg object. + * @param {string} arg.namespace - Segregation of different types of + * files(products, orders, logistics etc), Required for validating the + * data of the file being uploaded, decides where exactly the file will be + * stored inside the storage bucket. + * @param {string} arg.applicationId - + * @param {number} arg.companyId - + * @param {number} [arg.page] - Page no + * @param {number} [arg.limit] - Limit + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PartnerAPIClient").Options} - Options + * @summary: Browse Files + * @description: Browse Files + */ + browse({ namespace, applicationId, companyId, page, limit, requestHeaders }?: { + namespace: string; + applicationId: string; + companyId: number; + page?: number; + limit?: number; + requestHeaders?: object; + }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise; +} diff --git a/sdk/partner/FileStorage/FileStoragePartnerClient.js b/sdk/partner/FileStorage/FileStoragePartnerClient.js new file mode 100644 index 000000000..9b8907c4a --- /dev/null +++ b/sdk/partner/FileStorage/FileStoragePartnerClient.js @@ -0,0 +1,177 @@ +const Paginator = require("../../common/Paginator"); +const { FDKClientValidationError } = require("../../common/FDKError"); +const PartnerAPIClient = require("../PartnerAPIClient"); +const FileStorageValidator = require("./FileStoragePartnerValidator"); +const FileStorageModel = require("./FileStoragePartnerModel"); +const { Logger } = require("./../../common/Logger"); + +class FileStorage { + constructor(config) { + this.config = config; + } + + /** + * @param {Object} arg - Arg object. + * @param {string} arg.namespace - Segregation of different types of + * files(products, orders, logistics etc), Required for validating the + * data of the file being uploaded, decides where exactly the file will be + * stored inside the storage bucket. + * @param {StartRequest} arg.body + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PartnerAPIClient").Options} - Options + * @summary: This operation initiates upload and returns storage link which is valid for 30 Minutes. You can use that storage link to make subsequent upload request with file buffer or blob. + * @description: Uploads an arbitrarily sized buffer or blob. + * + * It has three Major Steps: + * Start + * Upload + * Complete + * + * ### Start + * Initiates the assets upload using `startUpload`. + * It returns the storage link in response. + * + * ### Upload + * Use the storage link to upload a file (Buffer or Blob) to the File Storage. + * Make a `PUT` request on storage link received from `startUpload` api with file (Buffer or Blob) as a request body. + * + * ### Complete + * After successfully upload, call `completeUpload` api to complete the upload process. + * This operation will return the url for the uploaded file. + */ + startUpload( + { namespace, body, requestHeaders } = { requestHeaders: {} }, + { responseHeaders } = { responseHeaders: false } + ) { + const { error } = FileStorageValidator.startUpload().validate( + { + namespace, + body, + }, + { abortEarly: false } + ); + if (error) { + return Promise.reject(new FDKClientValidationError(error)); + } + + const query_params = {}; + + return PartnerAPIClient.execute( + this.config, + "post", + `/service/partner/assets/v1.0/organization/${this.config.organizationId}/namespaces/${namespace}/upload/start`, + query_params, + body, + requestHeaders, + { responseHeaders } + ); + } + + /** + * @param {Object} arg - Arg object. + * @param {string} arg.namespace - Segregation of different types of + * files(products, orders, logistics etc), Required for validating the + * data of the file being uploaded, decides where exactly the file will be + * stored inside the storage bucket. + * @param {StartResponse} arg.body + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PartnerAPIClient").Options} - Options + * @summary: This will complete the upload process. After successfully uploading file, you can call this operation to complete the upload process. + * @description: Uploads an arbitrarily sized buffer or blob. + * + * It has three Major Steps: + * Start + * Upload + * Complete + * + * ### Start + * Initiates the assets upload using `startUpload`. + * It returns the storage link in response. + * + * ### Upload + * Use the storage link to upload a file (Buffer or Blob) to the File Storage. + * Make a `PUT` request on storage link received from `startUpload` api with file (Buffer or Blob) as a request body. + * + * ### Complete + * After successfully upload, call `completeUpload` api to complete the upload process. + * This operation will return the url for the uploaded file. + */ + completeUpload( + { namespace, body, requestHeaders } = { requestHeaders: {} }, + { responseHeaders } = { responseHeaders: false } + ) { + const { error } = FileStorageValidator.completeUpload().validate( + { + namespace, + body, + }, + { abortEarly: false } + ); + if (error) { + return Promise.reject(new FDKClientValidationError(error)); + } + + const query_params = {}; + + return PartnerAPIClient.execute( + this.config, + "post", + `/service/partner/assets/v1.0/organization/${this.config.organizationId}/namespaces/${namespace}/upload/complete`, + query_params, + body, + requestHeaders, + { responseHeaders } + ); + } + + /** + * @param {Object} arg - Arg object. + * @param {string} arg.namespace - Segregation of different types of + * files(products, orders, logistics etc), Required for validating the + * data of the file being uploaded, decides where exactly the file will be + * stored inside the storage bucket. + * @param {string} arg.applicationId - + * @param {number} arg.companyId - + * @param {number} [arg.page] - Page no + * @param {number} [arg.limit] - Limit + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PartnerAPIClient").Options} - Options + * @summary: Browse Files + * @description: Browse Files + */ + browse( + { namespace, applicationId, companyId, page, limit, requestHeaders } = { + requestHeaders: {}, + }, + { responseHeaders } = { responseHeaders: false } + ) { + const { error } = FileStorageValidator.browse().validate( + { + namespace, + applicationId, + companyId, + page, + limit, + }, + { abortEarly: false } + ); + if (error) { + return Promise.reject(new FDKClientValidationError(error)); + } + + const query_params = {}; + query_params["page"] = page; + query_params["limit"] = limit; + + return PartnerAPIClient.execute( + this.config, + "get", + `/service/partner/assets/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}/namespaces/${namespace}/browse`, + query_params, + undefined, + requestHeaders, + { responseHeaders } + ); + } +} +module.exports = FileStorage; diff --git a/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts b/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts new file mode 100644 index 000000000..1586c5bef --- /dev/null +++ b/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts @@ -0,0 +1,139 @@ +export = FileStoragePartnerModel; +/** + * @typedef CDN + * @property {string} absolute_url + * @property {string} relative_url + * @property {string} url + */ +/** + * @typedef CompleteResponse + * @property {string} _id + * @property {CDN} cdn + * @property {string} content_type + * @property {CreatedBy} [created_by] + * @property {string} created_on + * @property {string} file_name + * @property {string} file_path + * @property {string} modified_on + * @property {string} namespace + * @property {string} operation + * @property {number} size + * @property {boolean} success + * @property {string[]} [tags] + * @property {Upload} upload + */ +/** + * @typedef CreatedBy + * @property {string} [username] + */ +/** + * @typedef FailedResponse + * @property {string} message + */ +/** + * @typedef Params + * @property {string} [subpath] - The subpath for the file. + */ +/** + * @typedef StartRequest + * @property {string} content_type + * @property {string} file_name + * @property {Params} [params] + * @property {number} size + * @property {string[]} [tags] + */ +/** + * @typedef StartResponse + * @property {CDN} cdn + * @property {string} content_type + * @property {string} file_name + * @property {string} file_path + * @property {string} [method] + * @property {string} namespace + * @property {string} operation + * @property {number} size + * @property {string[]} [tags] + * @property {Upload} upload + */ +/** + * @typedef Upload + * @property {number} expiry + * @property {string} url + */ +declare class FileStoragePartnerModel { +} +declare namespace FileStoragePartnerModel { + export { CDN, CompleteResponse, CreatedBy, FailedResponse, Params, StartRequest, StartResponse, Upload }; +} +/** @returns {CDN} */ +declare function CDN(): CDN; +type CDN = { + absolute_url: string; + relative_url: string; + url: string; +}; +/** @returns {CompleteResponse} */ +declare function CompleteResponse(): CompleteResponse; +type CompleteResponse = { + _id: string; + cdn: CDN; + content_type: string; + created_by?: CreatedBy; + created_on: string; + file_name: string; + file_path: string; + modified_on: string; + namespace: string; + operation: string; + size: number; + success: boolean; + tags?: string[]; + upload: Upload; +}; +/** @returns {CreatedBy} */ +declare function CreatedBy(): CreatedBy; +type CreatedBy = { + username?: string; +}; +/** @returns {FailedResponse} */ +declare function FailedResponse(): FailedResponse; +type FailedResponse = { + message: string; +}; +/** @returns {Params} */ +declare function Params(): Params; +type Params = { + /** + * - The subpath for the file. + */ + subpath?: string; +}; +/** @returns {StartRequest} */ +declare function StartRequest(): StartRequest; +type StartRequest = { + content_type: string; + file_name: string; + params?: Params; + size: number; + tags?: string[]; +}; +/** @returns {StartResponse} */ +declare function StartResponse(): StartResponse; +type StartResponse = { + cdn: CDN; + content_type: string; + file_name: string; + file_path: string; + method?: string; + namespace: string; + operation: string; + size: number; + tags?: string[]; + upload: Upload; +}; +/** @returns {Upload} */ +declare function Upload(): Upload; +type Upload = { + expiry: number; + url: string; +}; diff --git a/sdk/partner/FileStorage/FileStoragePartnerModel.js b/sdk/partner/FileStorage/FileStoragePartnerModel.js new file mode 100644 index 000000000..b05eeda1c --- /dev/null +++ b/sdk/partner/FileStorage/FileStoragePartnerModel.js @@ -0,0 +1,158 @@ +const Joi = require("joi"); + +/** + * @typedef CDN + * @property {string} absolute_url + * @property {string} relative_url + * @property {string} url + */ + +/** + * @typedef CompleteResponse + * @property {string} _id + * @property {CDN} cdn + * @property {string} content_type + * @property {CreatedBy} [created_by] + * @property {string} created_on + * @property {string} file_name + * @property {string} file_path + * @property {string} modified_on + * @property {string} namespace + * @property {string} operation + * @property {number} size + * @property {boolean} success + * @property {string[]} [tags] + * @property {Upload} upload + */ + +/** + * @typedef CreatedBy + * @property {string} [username] + */ + +/** + * @typedef FailedResponse + * @property {string} message + */ + +/** + * @typedef Params + * @property {string} [subpath] - The subpath for the file. + */ + +/** + * @typedef StartRequest + * @property {string} content_type + * @property {string} file_name + * @property {Params} [params] + * @property {number} size + * @property {string[]} [tags] + */ + +/** + * @typedef StartResponse + * @property {CDN} cdn + * @property {string} content_type + * @property {string} file_name + * @property {string} file_path + * @property {string} [method] + * @property {string} namespace + * @property {string} operation + * @property {number} size + * @property {string[]} [tags] + * @property {Upload} upload + */ + +/** + * @typedef Upload + * @property {number} expiry + * @property {string} url + */ + +class FileStoragePartnerModel { + /** @returns {CDN} */ + static CDN() { + return Joi.object({ + absolute_url: Joi.string().allow("").required(), + relative_url: Joi.string().allow("").required(), + url: Joi.string().allow("").required(), + }); + } + + /** @returns {CompleteResponse} */ + static CompleteResponse() { + return Joi.object({ + _id: Joi.string().allow("").required(), + cdn: FileStoragePartnerModel.CDN().required(), + content_type: Joi.string().allow("").required(), + created_by: FileStoragePartnerModel.CreatedBy(), + created_on: Joi.string().allow("").required(), + file_name: Joi.string().allow("").required(), + file_path: Joi.string().allow("").required(), + modified_on: Joi.string().allow("").required(), + namespace: Joi.string().allow("").required(), + operation: Joi.string().allow("").required(), + size: Joi.number().required(), + success: Joi.boolean().required(), + tags: Joi.array().items(Joi.string().allow("")), + upload: FileStoragePartnerModel.Upload().required(), + }); + } + + /** @returns {CreatedBy} */ + static CreatedBy() { + return Joi.object({ + username: Joi.string().allow(""), + }); + } + + /** @returns {FailedResponse} */ + static FailedResponse() { + return Joi.object({ + message: Joi.string().allow("").required(), + }); + } + + /** @returns {Params} */ + static Params() { + return Joi.object({ + subpath: Joi.string().allow(""), + }); + } + + /** @returns {StartRequest} */ + static StartRequest() { + return Joi.object({ + content_type: Joi.string().allow("").required(), + file_name: Joi.string().allow("").required(), + params: FileStoragePartnerModel.Params(), + size: Joi.number().required(), + tags: Joi.array().items(Joi.string().allow("")), + }); + } + + /** @returns {StartResponse} */ + static StartResponse() { + return Joi.object({ + cdn: FileStoragePartnerModel.CDN().required(), + content_type: Joi.string().allow("").required(), + file_name: Joi.string().allow("").required(), + file_path: Joi.string().allow("").required(), + method: Joi.string().allow(""), + namespace: Joi.string().allow("").required(), + operation: Joi.string().allow("").required(), + size: Joi.number().required(), + tags: Joi.array().items(Joi.string().allow("")), + upload: FileStoragePartnerModel.Upload().required(), + }); + } + + /** @returns {Upload} */ + static Upload() { + return Joi.object({ + expiry: Joi.number().required(), + url: Joi.string().allow("").required(), + }); + } +} +module.exports = FileStoragePartnerModel; diff --git a/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts b/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts new file mode 100644 index 000000000..a27c3530b --- /dev/null +++ b/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts @@ -0,0 +1,6 @@ +export = FileStorageValidator; +declare class FileStorageValidator { + static startUpload(): any; + static completeUpload(): any; + static browse(): any; +} diff --git a/sdk/partner/FileStorage/FileStoragePartnerValidator.js b/sdk/partner/FileStorage/FileStoragePartnerValidator.js new file mode 100644 index 000000000..f4b2e92bf --- /dev/null +++ b/sdk/partner/FileStorage/FileStoragePartnerValidator.js @@ -0,0 +1,33 @@ +const Joi = require("joi"); + +const FileStorageModel = require("./FileStoragePartnerModel"); +class FileStorageValidator { + static startUpload() { + return Joi.object({ + namespace: Joi.string().allow("").required(), + + body: FileStorageModel.StartRequest().required(), + }).required(); + } + + static completeUpload() { + return Joi.object({ + namespace: Joi.string().allow("").required(), + + body: FileStorageModel.StartResponse().required(), + }).required(); + } + + static browse() { + return Joi.object({ + namespace: Joi.string().allow("").required(), + + applicationId: Joi.string().allow("").required(), + companyId: Joi.number().required(), + page: Joi.number(), + limit: Joi.number(), + }).required(); + } +} + +module.exports = FileStorageValidator; diff --git a/sdk/partner/PartnerClient.d.ts b/sdk/partner/PartnerClient.d.ts index 287777ec0..a69d282e5 100644 --- a/sdk/partner/PartnerClient.d.ts +++ b/sdk/partner/PartnerClient.d.ts @@ -13,6 +13,7 @@ declare class PartnerClient { */ constructor(config: import("./PartnerConfig")); config: import("./PartnerConfig"); + fileStorage: FileStorage; theme: Theme; /** * Sets the extra headers for the partner client. @@ -22,4 +23,5 @@ declare class PartnerClient { */ setExtraHeaders(header: object): void; } +import FileStorage = require("./FileStorage/FileStoragePartnerClient"); import Theme = require("./Theme/ThemePartnerClient"); diff --git a/sdk/partner/PartnerClient.js b/sdk/partner/PartnerClient.js index 7134b1a74..b13b2a976 100644 --- a/sdk/partner/PartnerClient.js +++ b/sdk/partner/PartnerClient.js @@ -1,3 +1,5 @@ +const FileStorage = require("./FileStorage/FileStoragePartnerClient"); + const Theme = require("./Theme/ThemePartnerClient"); const { FDKClientValidationError } = require("../common/FDKError"); @@ -16,6 +18,7 @@ class PartnerClient { */ constructor(config) { this.config = config; + this.fileStorage = new FileStorage(config); this.theme = new Theme(config); } diff --git a/sdk/partner/index.d.ts b/sdk/partner/index.d.ts index 6537173a7..009063909 100644 --- a/sdk/partner/index.d.ts +++ b/sdk/partner/index.d.ts @@ -1,5 +1,6 @@ export const PartnerConfig: typeof import("./PartnerConfig"); export const PartnerClient: typeof import("./PartnerClient"); export namespace PartnerModel { + const FileStoragePartnerModel: typeof import("./FileStorage/FileStoragePartnerModel"); const ThemePartnerModel: typeof import("./Theme/ThemePartnerModel"); } diff --git a/sdk/partner/index.js b/sdk/partner/index.js index afb9e1fd0..e4b10600f 100644 --- a/sdk/partner/index.js +++ b/sdk/partner/index.js @@ -2,6 +2,8 @@ module.exports = { PartnerConfig: require("./PartnerConfig"), PartnerClient: require("./PartnerClient"), PartnerModel: { + FileStoragePartnerModel: require("./FileStorage/FileStoragePartnerModel"), + ThemePartnerModel: require("./Theme/ThemePartnerModel"), }, }; diff --git a/sdk/platform/Content/ContentPlatformApplicationClient.d.ts b/sdk/platform/Content/ContentPlatformApplicationClient.d.ts index a5992636c..0ef6a0c38 100644 --- a/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +++ b/sdk/platform/Content/ContentPlatformApplicationClient.d.ts @@ -135,18 +135,6 @@ declare class Content { * @description: A slideshow is a group of images, videos or a combination of both that are shown on the website in the form of slides. Use this API to create a slideshow. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createSlideshow/). */ createSlideshow({ body, requestHeaders }?: ContentPlatformApplicationValidator.CreateSlideshowParam, { responseHeaders }?: object): Promise; - /** - * @param {ContentPlatformApplicationValidator.DeleteAllInjectableTagsParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name deleteAllInjectableTags - * @summary: Delete tags in application - * @description: Use this API to delete all the existing tags at once. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAllInjectableTags/). - */ - deleteAllInjectableTags({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** * @param {ContentPlatformApplicationValidator.DeleteAnnouncementParam} arg * - Arg object @@ -456,9 +444,9 @@ declare class Content { * @returns {Promise} - Success response * @name getInjectableTags * @summary: Get all the tags in an application - * @description: Use this API to get all the CSS and JS injected in the application in the form of tags. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getInjectableTags/). + * @description: Use this API to get the CSS and JS injected in the application in the form of tags. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getInjectableTags/). */ - getInjectableTags({ requestHeaders }?: any, { responseHeaders }?: object): Promise; + getInjectableTags({ all, requestHeaders }?: ContentPlatformApplicationValidator.GetInjectableTagsParam, { responseHeaders }?: object): Promise; /** * @param {ContentPlatformApplicationValidator.GetLandingPagesParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -788,8 +776,8 @@ declare class Content { * @param {import("../PlatformAPIClient").Options} - Options * @returns {Promise} - Success response * @name updateInjectableTag - * @summary: Update a tag - * @description: Use this API to edit the details of an existing tag. This includes the tag name, tag type (css/js), url and position of the tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateInjectableTag/). + * @summary: Update the exisitng tags for an application by replacing with provided tags + * @description: Use this API to edit and override all existing tags. All existing tags will be replaced by the new tags provided in body. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateInjectableTag/). */ updateInjectableTag({ body, requestHeaders }?: ContentPlatformApplicationValidator.UpdateInjectableTagParam, { responseHeaders }?: object): Promise; /** diff --git a/sdk/platform/Content/ContentPlatformApplicationClient.js b/sdk/platform/Content/ContentPlatformApplicationClient.js index 297358210..2a84157fc 100644 --- a/sdk/platform/Content/ContentPlatformApplicationClient.js +++ b/sdk/platform/Content/ContentPlatformApplicationClient.js @@ -920,79 +920,6 @@ class Content { return response; } - /** - * @param {ContentPlatformApplicationValidator.DeleteAllInjectableTagsParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name deleteAllInjectableTags - * @summary: Delete tags in application - * @description: Use this API to delete all the existing tags at once. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAllInjectableTags/). - */ - async deleteAllInjectableTags( - { requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = ContentPlatformApplicationValidator.deleteAllInjectableTags().validate( - {}, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = ContentPlatformApplicationValidator.deleteAllInjectableTags().validate( - {}, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Content > deleteAllInjectableTags \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "delete", - `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/tags`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = ContentPlatformModel.TagsSchema().validate(responseData, { - abortEarly: false, - allowUnknown: false, - }); - - if (res_error) { - Logger({ - level: "WARN", - message: `Response Validation Warnnings for platform > Content > deleteAllInjectableTags \n ${res_error}`, - }); - } - - return response; - } - /** * @param {ContentPlatformApplicationValidator.DeleteAnnouncementParam} arg * - Arg object @@ -2890,16 +2817,18 @@ class Content { * @returns {Promise} - Success response * @name getInjectableTags * @summary: Get all the tags in an application - * @description: Use this API to get all the CSS and JS injected in the application in the form of tags. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getInjectableTags/). + * @description: Use this API to get the CSS and JS injected in the application in the form of tags. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getInjectableTags/). */ async getInjectableTags( - { requestHeaders } = { requestHeaders: {} }, + { all, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, } = ContentPlatformApplicationValidator.getInjectableTags().validate( - {}, + { + all, + }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -2910,7 +2839,9 @@ class Content { const { error: warrning, } = ContentPlatformApplicationValidator.getInjectableTags().validate( - {}, + { + all, + }, { abortEarly: false, allowUnknown: false } ); if (warrning) { @@ -2921,6 +2852,7 @@ class Content { } const query_params = {}; + query_params["all"] = all; const response = await PlatformAPIClient.execute( this.config, @@ -4815,8 +4747,8 @@ class Content { * @param {import("../PlatformAPIClient").Options} - Options * @returns {Promise} - Success response * @name updateInjectableTag - * @summary: Update a tag - * @description: Use this API to edit the details of an existing tag. This includes the tag name, tag type (css/js), url and position of the tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateInjectableTag/). + * @summary: Update the exisitng tags for an application by replacing with provided tags + * @description: Use this API to edit and override all existing tags. All existing tags will be replaced by the new tags provided in body. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateInjectableTag/). */ async updateInjectableTag( { body, requestHeaders } = { requestHeaders: {} }, diff --git a/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts b/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts index 80d8d2629..4220ee73b 100644 --- a/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +++ b/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts @@ -48,7 +48,6 @@ export = ContentPlatformApplicationValidator; * @typedef CreateSlideshowParam * @property {ContentPlatformModel.SlideshowRequest} body */ -/** @typedef DeleteAllInjectableTagsParam */ /** * @typedef DeleteAnnouncementParam * @property {string} announcementId - ID allotted to the announcement. @@ -156,7 +155,10 @@ export = ContentPlatformApplicationValidator; * Slug is a short, human-readable, URL-friendly identifier of an object. You * can get slug value of an FAQ category from `getFaqCategories` API. */ -/** @typedef GetInjectableTagsParam */ +/** + * @typedef GetInjectableTagsParam + * @property {boolean} [all] - Get all tags irrespective of the creator of tags + */ /** * @typedef GetLandingPagesParam * @property {number} [pageNo] - The page number to navigate through the given @@ -335,8 +337,6 @@ declare class ContentPlatformApplicationValidator { static createPagePreview(): CreatePagePreviewParam; /** @returns {CreateSlideshowParam} */ static createSlideshow(): CreateSlideshowParam; - /** @returns {DeleteAllInjectableTagsParam} */ - static deleteAllInjectableTags(): any; /** @returns {DeleteAnnouncementParam} */ static deleteAnnouncement(): DeleteAnnouncementParam; /** @returns {DeleteBlogParam} */ @@ -386,7 +386,7 @@ declare class ContentPlatformApplicationValidator { /** @returns {GetFaqsByCategoryIdOrSlugParam} */ static getFaqsByCategoryIdOrSlug(): GetFaqsByCategoryIdOrSlugParam; /** @returns {GetInjectableTagsParam} */ - static getInjectableTags(): any; + static getInjectableTags(): GetInjectableTagsParam; /** @returns {GetLandingPagesParam} */ static getLandingPages(): GetLandingPagesParam; /** @returns {GetLegalInformationParam} */ @@ -453,7 +453,7 @@ declare class ContentPlatformApplicationValidator { static updateSupportInformation(): UpdateSupportInformationParam; } declare namespace ContentPlatformApplicationValidator { - export { AddDataLoaderParam, AddFaqParam, AddInjectableTagParam, AddPathRedirectionRulesParam, CreateAnnouncementParam, CreateBlogParam, CreateFaqCategoryParam, CreateLandingPageParam, CreateNavigationParam, CreatePageParam, CreatePagePreviewParam, CreateSlideshowParam, DeleteAllInjectableTagsParam, DeleteAnnouncementParam, DeleteBlogParam, DeleteDataLoaderParam, DeleteFaqParam, DeleteFaqCategoryParam, DeleteLandingPageParam, DeleteNavigationParam, DeletePageParam, DeletePathRedirectionRulesParam, DeleteSlideshowParam, EditDataLoaderParam, EditInjectableTagParam, GenerateSEOTitleParam, GetAnnouncementByIdParam, GetAnnouncementsListParam, GetBlogBySlugParam, GetBlogsParam, GetComponentByIdParam, GetDataLoadersParam, GetDefaultNavigationsParam, GetFaqByIdOrSlugParam, GetFaqCategoriesParam, GetFaqCategoryBySlugOrIdParam, GetFaqsByCategoryIdOrSlugParam, GetInjectableTagsParam, GetLandingPagesParam, GetLegalInformationParam, GetNavigationBySlugParam, GetNavigationsParam, GetPageBySlugParam, GetPageMetaParam, GetPageSpecParam, GetPagesParam, GetPathRedirectionRuleParam, GetPathRedirectionRulesParam, GetSEOConfigurationParam, GetSlideshowBySlugParam, GetSlideshowsParam, GetSupportInformationParam, RemoveInjectableTagParam, ResetDataLoaderParam, SelectDataLoaderParam, UpdateAnnouncementParam, UpdateAnnouncementScheduleParam, UpdateBlogParam, UpdateFaqParam, UpdateFaqCategoryParam, UpdateInjectableTagParam, UpdateLandingPageParam, UpdateLegalInformationParam, UpdateNavigationParam, UpdatePageParam, UpdatePagePreviewParam, UpdatePathRedirectionRulesParam, UpdateSEOConfigurationParam, UpdateSlideshowParam, UpdateSupportInformationParam }; + export { AddDataLoaderParam, AddFaqParam, AddInjectableTagParam, AddPathRedirectionRulesParam, CreateAnnouncementParam, CreateBlogParam, CreateFaqCategoryParam, CreateLandingPageParam, CreateNavigationParam, CreatePageParam, CreatePagePreviewParam, CreateSlideshowParam, DeleteAnnouncementParam, DeleteBlogParam, DeleteDataLoaderParam, DeleteFaqParam, DeleteFaqCategoryParam, DeleteLandingPageParam, DeleteNavigationParam, DeletePageParam, DeletePathRedirectionRulesParam, DeleteSlideshowParam, EditDataLoaderParam, EditInjectableTagParam, GenerateSEOTitleParam, GetAnnouncementByIdParam, GetAnnouncementsListParam, GetBlogBySlugParam, GetBlogsParam, GetComponentByIdParam, GetDataLoadersParam, GetDefaultNavigationsParam, GetFaqByIdOrSlugParam, GetFaqCategoriesParam, GetFaqCategoryBySlugOrIdParam, GetFaqsByCategoryIdOrSlugParam, GetInjectableTagsParam, GetLandingPagesParam, GetLegalInformationParam, GetNavigationBySlugParam, GetNavigationsParam, GetPageBySlugParam, GetPageMetaParam, GetPageSpecParam, GetPagesParam, GetPathRedirectionRuleParam, GetPathRedirectionRulesParam, GetSEOConfigurationParam, GetSlideshowBySlugParam, GetSlideshowsParam, GetSupportInformationParam, RemoveInjectableTagParam, ResetDataLoaderParam, SelectDataLoaderParam, UpdateAnnouncementParam, UpdateAnnouncementScheduleParam, UpdateBlogParam, UpdateFaqParam, UpdateFaqCategoryParam, UpdateInjectableTagParam, UpdateLandingPageParam, UpdateLegalInformationParam, UpdateNavigationParam, UpdatePageParam, UpdatePagePreviewParam, UpdatePathRedirectionRulesParam, UpdateSEOConfigurationParam, UpdateSlideshowParam, UpdateSupportInformationParam }; } type AddDataLoaderParam = { body: ContentPlatformModel.DataLoaderSchema; @@ -650,6 +650,12 @@ type GetFaqsByCategoryIdOrSlugParam = { */ idOrSlug: string; }; +type GetInjectableTagsParam = { + /** + * - Get all tags irrespective of the creator of tags + */ + all?: boolean; +}; type GetLandingPagesParam = { /** * - The page number to navigate through the given @@ -870,11 +876,9 @@ type UpdateSlideshowParam = { type UpdateSupportInformationParam = { body: ContentPlatformModel.Support; }; -type DeleteAllInjectableTagsParam = any; type GetDataLoadersParam = any; type GetDefaultNavigationsParam = any; type GetFaqCategoriesParam = any; -type GetInjectableTagsParam = any; type GetLegalInformationParam = any; type GetPageMetaParam = any; type GetPageSpecParam = any; diff --git a/sdk/platform/Content/ContentPlatformApplicationValidator.js b/sdk/platform/Content/ContentPlatformApplicationValidator.js index f7647656b..fbec7dfb7 100644 --- a/sdk/platform/Content/ContentPlatformApplicationValidator.js +++ b/sdk/platform/Content/ContentPlatformApplicationValidator.js @@ -63,8 +63,6 @@ const ContentPlatformModel = require("./ContentPlatformModel"); * @property {ContentPlatformModel.SlideshowRequest} body */ -/** @typedef DeleteAllInjectableTagsParam */ - /** * @typedef DeleteAnnouncementParam * @property {string} announcementId - ID allotted to the announcement. @@ -196,7 +194,10 @@ const ContentPlatformModel = require("./ContentPlatformModel"); * can get slug value of an FAQ category from `getFaqCategories` API. */ -/** @typedef GetInjectableTagsParam */ +/** + * @typedef GetInjectableTagsParam + * @property {boolean} [all] - Get all tags irrespective of the creator of tags + */ /** * @typedef GetLandingPagesParam @@ -469,11 +470,6 @@ class ContentPlatformApplicationValidator { }).required(); } - /** @returns {DeleteAllInjectableTagsParam} */ - static deleteAllInjectableTags() { - return Joi.object({}).required(); - } - /** @returns {DeleteAnnouncementParam} */ static deleteAnnouncement() { return Joi.object({ @@ -644,7 +640,9 @@ class ContentPlatformApplicationValidator { /** @returns {GetInjectableTagsParam} */ static getInjectableTags() { - return Joi.object({}).required(); + return Joi.object({ + all: Joi.boolean(), + }).required(); } /** @returns {GetLandingPagesParam} */ diff --git a/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts b/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts index 6f2abcae3..ca1c83010 100644 --- a/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +++ b/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts @@ -37,12 +37,12 @@ declare class FileStorage { * @param {FileStoragePlatformApplicationValidator.AppCopyFilesParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name appCopyFiles * @summary: Copy Files * @description: Copy Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appCopyFiles/). */ - appCopyFiles({ body, sync, requestHeaders }?: FileStoragePlatformApplicationValidator.AppCopyFilesParam, { responseHeaders }?: object): Promise; + appCopyFiles({ body, sync, requestHeaders }?: FileStoragePlatformApplicationValidator.AppCopyFilesParam, { responseHeaders }?: object): Promise; /** * @param {FileStoragePlatformApplicationValidator.AppStartUploadParam} arg * - Arg object @@ -77,89 +77,99 @@ declare class FileStorage { * @param {FileStoragePlatformApplicationValidator.AppbrowseParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name appbrowse * @summary: Browse Files * @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appbrowse/). */ - appbrowse({ namespace, page, limit, requestHeaders }?: FileStoragePlatformApplicationValidator.AppbrowseParam, { responseHeaders }?: object): Promise; + appbrowse({ namespace, page, limit, requestHeaders }?: FileStoragePlatformApplicationValidator.AppbrowseParam, { responseHeaders }?: object): Promise; + /** + * @param {FileStoragePlatformApplicationValidator.GeneratePaymentReceiptParam} arg + * - Arg object + * + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PlatformAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name generatePaymentReceipt + * @summary: Generate Payment Receipt for Jiomart Digital + * @description: Generate Payment Receipt for Jiomart Digital - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/generatePaymentReceipt/). + */ + generatePaymentReceipt({ body, requestHeaders }?: FileStoragePlatformApplicationValidator.GeneratePaymentReceiptParam, { responseHeaders }?: object): Promise; /** * @param {FileStoragePlatformApplicationValidator.GetDefaultHtmlTemplateParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name getDefaultHtmlTemplate * @summary: Get html template for sales channel * @description: Get default html template for invoice or label - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultHtmlTemplate/). */ - getDefaultHtmlTemplate({ pdfTypeId, format, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultHtmlTemplateParam, { responseHeaders }?: object): Promise; + getDefaultHtmlTemplate({ pdfTypeId, format, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultHtmlTemplateParam, { responseHeaders }?: object): Promise; /** * @param {FileStoragePlatformApplicationValidator.GetDefaultPdfDataParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - + * @returns {Promise} - * Success response * @name getDefaultPdfData * @summary: Get Dummy pdf data for invoice or label * @description: Get Dummy pdf data for invoice or label - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfData/). */ - getDefaultPdfData({ pdfTypeId, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultPdfDataParam, { responseHeaders }?: object): Promise; + getDefaultPdfData({ pdfTypeId, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultPdfDataParam, { responseHeaders }?: object): Promise; /** * @param {FileStoragePlatformApplicationValidator.GetDefaultPdfTemplateParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise< - * FileStoragePlatformModel.PdfDefaultTemplateSuccess[] - * >} - * - Success response - * + * @returns {Promise} - + * Success response * @name getDefaultPdfTemplate * @summary: Default html template * @description: Get default html template data for invoice or label - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfTemplate/). */ - getDefaultPdfTemplate({ pdfTypeId, format, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultPdfTemplateParam, { responseHeaders }?: object): Promise; + getDefaultPdfTemplate({ pdfTypeId, format, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultPdfTemplateParam, { responseHeaders }?: object): Promise; /** * @param {FileStoragePlatformApplicationValidator.GetPdfTypesParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - + * @returns {Promise} - * Success response * @name getPdfTypes * @summary: Get all the supported invoice pdf types * @description: Get all the supported invoice pdf types such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfTypes/). */ - getPdfTypes({ requestHeaders }?: any, { responseHeaders }?: object): Promise; + getPdfTypes({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** - * @param {FileStoragePlatformApplicationValidator.PreviewTemplateParam} arg + * @param {FileStoragePlatformApplicationValidator.SaveHtmlTemplateParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name previewTemplate - * @summary: Preview HTML template - * @description: Rendered HTML template with dummy json data - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/previewTemplate/). + * @returns {Promise} - + * Success response + * @name saveHtmlTemplate + * @summary: Update html template for invoice or label + * @description: Update html template for invoice such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/saveHtmlTemplate/). */ - previewTemplate({ body, requestHeaders }?: FileStoragePlatformApplicationValidator.PreviewTemplateParam, { responseHeaders }?: object): Promise; + saveHtmlTemplate({ body, requestHeaders }?: FileStoragePlatformApplicationValidator.SaveHtmlTemplateParam, { responseHeaders }?: object): Promise; /** - * @param {FileStoragePlatformApplicationValidator.SaveHtmlTemplateParam} arg + * @param {FileStoragePlatformApplicationValidator.UpdateHtmlTemplateParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - + * @returns {Promise} - * Success response - * @name saveHtmlTemplate + * @name updateHtmlTemplate * @summary: Update html template for invoice or label - * @description: Update html template for invoice such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/saveHtmlTemplate/). + * @description: Update html template for invoice such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/updateHtmlTemplate/). */ - saveHtmlTemplate({ body, requestHeaders }?: FileStoragePlatformApplicationValidator.SaveHtmlTemplateParam, { responseHeaders }?: object): Promise; + updateHtmlTemplate({ id, body, requestHeaders }?: FileStoragePlatformApplicationValidator.UpdateHtmlTemplateParam, { responseHeaders }?: object): Promise; /** * @param data * @param {string} file_name diff --git a/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js b/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js index 12895b7bd..93d63ec3b 100644 --- a/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +++ b/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js @@ -117,7 +117,7 @@ class FileStorage { * @param {FileStoragePlatformApplicationValidator.AppCopyFilesParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name appCopyFiles * @summary: Copy Files * @description: Copy Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appCopyFiles/). @@ -174,9 +174,7 @@ class FileStorage { responseData = response[0]; } - const { - error: res_error, - } = FileStoragePlatformModel.BulkUploadSyncMode().validate(responseData, { + const { error: res_error } = Joi.any().validate(responseData, { abortEarly: false, allowUnknown: false, }); @@ -294,7 +292,7 @@ class FileStorage { * @param {FileStoragePlatformApplicationValidator.AppbrowseParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name appbrowse * @summary: Browse Files * @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appbrowse/). @@ -356,9 +354,7 @@ class FileStorage { responseData = response[0]; } - const { - error: res_error, - } = FileStoragePlatformModel.BrowseResponse().validate(responseData, { + const { error: res_error } = Joi.any().validate(responseData, { abortEarly: false, allowUnknown: false, }); @@ -373,13 +369,88 @@ class FileStorage { return response; } + /** + * @param {FileStoragePlatformApplicationValidator.GeneratePaymentReceiptParam} arg + * - Arg object + * + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PlatformAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name generatePaymentReceipt + * @summary: Generate Payment Receipt for Jiomart Digital + * @description: Generate Payment Receipt for Jiomart Digital - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/generatePaymentReceipt/). + */ + async generatePaymentReceipt( + { body, requestHeaders } = { requestHeaders: {} }, + { responseHeaders } = { responseHeaders: false } + ) { + const { + error, + } = FileStoragePlatformApplicationValidator.generatePaymentReceipt().validate( + { + body, + }, + { abortEarly: false, allowUnknown: true } + ); + if (error) { + return Promise.reject(new FDKClientValidationError(error)); + } + + // Showing warrnings if extra unknown parameters are found + const { + error: warrning, + } = FileStoragePlatformApplicationValidator.generatePaymentReceipt().validate( + { + body, + }, + { abortEarly: false, allowUnknown: false } + ); + if (warrning) { + Logger({ + level: "WARN", + message: `Parameter Validation warrnings for platform > FileStorage > generatePaymentReceipt \n ${warrning}`, + }); + } + + const query_params = {}; + + const response = await PlatformAPIClient.execute( + this.config, + "post", + `/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/payment-receipt`, + query_params, + body, + requestHeaders, + { responseHeaders } + ); + + let responseData = response; + if (responseHeaders) { + responseData = response[0]; + } + + const { error: res_error } = Joi.any().validate(responseData, { + abortEarly: false, + allowUnknown: false, + }); + + if (res_error) { + Logger({ + level: "WARN", + message: `Response Validation Warnnings for platform > FileStorage > generatePaymentReceipt \n ${res_error}`, + }); + } + + return response; + } + /** * @param {FileStoragePlatformApplicationValidator.GetDefaultHtmlTemplateParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name getDefaultHtmlTemplate * @summary: Get html template for sales channel * @description: Get default html template for invoice or label - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultHtmlTemplate/). @@ -437,9 +508,12 @@ class FileStorage { responseData = response[0]; } - const { error: res_error } = Joi.array() - .items(FileStoragePlatformModel.PdfConfigSuccess()) - .validate(responseData, { abortEarly: false, allowUnknown: false }); + const { + error: res_error, + } = FileStoragePlatformModel.PdfConfigSuccess().validate(responseData, { + abortEarly: false, + allowUnknown: false, + }); if (res_error) { Logger({ @@ -457,7 +531,7 @@ class FileStorage { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - + * @returns {Promise} - * Success response * @name getDefaultPdfData * @summary: Get Dummy pdf data for invoice or label @@ -513,9 +587,12 @@ class FileStorage { responseData = response[0]; } - const { error: res_error } = Joi.array() - .items(FileStoragePlatformModel.DummyTemplateDataItems()) - .validate(responseData, { abortEarly: false, allowUnknown: false }); + const { + error: res_error, + } = FileStoragePlatformModel.DummyTemplateDataItems().validate( + responseData, + { abortEarly: false, allowUnknown: false } + ); if (res_error) { Logger({ @@ -533,11 +610,8 @@ class FileStorage { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise< - * FileStoragePlatformModel.PdfDefaultTemplateSuccess[] - * >} - * - Success response - * + * @returns {Promise} - + * Success response * @name getDefaultPdfTemplate * @summary: Default html template * @description: Get default html template data for invoice or label - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfTemplate/). @@ -595,9 +669,12 @@ class FileStorage { responseData = response[0]; } - const { error: res_error } = Joi.array() - .items(FileStoragePlatformModel.PdfDefaultTemplateSuccess()) - .validate(responseData, { abortEarly: false, allowUnknown: false }); + const { + error: res_error, + } = FileStoragePlatformModel.PdfDefaultTemplateSuccess().validate( + responseData, + { abortEarly: false, allowUnknown: false } + ); if (res_error) { Logger({ @@ -613,7 +690,7 @@ class FileStorage { * @param {FileStoragePlatformApplicationValidator.GetPdfTypesParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - + * @returns {Promise} - * Success response * @name getPdfTypes * @summary: Get all the supported invoice pdf types @@ -664,9 +741,12 @@ class FileStorage { responseData = response[0]; } - const { error: res_error } = Joi.array() - .items(FileStoragePlatformModel.InvoiceTypesResponse()) - .validate(responseData, { abortEarly: false, allowUnknown: false }); + const { + error: res_error, + } = FileStoragePlatformModel.InvoiceTypesResponse().validate(responseData, { + abortEarly: false, + allowUnknown: false, + }); if (res_error) { Logger({ @@ -679,23 +759,24 @@ class FileStorage { } /** - * @param {FileStoragePlatformApplicationValidator.PreviewTemplateParam} arg + * @param {FileStoragePlatformApplicationValidator.SaveHtmlTemplateParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name previewTemplate - * @summary: Preview HTML template - * @description: Rendered HTML template with dummy json data - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/previewTemplate/). + * @returns {Promise} - + * Success response + * @name saveHtmlTemplate + * @summary: Update html template for invoice or label + * @description: Update html template for invoice such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/saveHtmlTemplate/). */ - async previewTemplate( + async saveHtmlTemplate( { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = FileStoragePlatformApplicationValidator.previewTemplate().validate( + } = FileStoragePlatformApplicationValidator.saveHtmlTemplate().validate( { body, }, @@ -708,7 +789,7 @@ class FileStorage { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = FileStoragePlatformApplicationValidator.previewTemplate().validate( + } = FileStoragePlatformApplicationValidator.saveHtmlTemplate().validate( { body, }, @@ -717,7 +798,7 @@ class FileStorage { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > FileStorage > previewTemplate \n ${warrning}`, + message: `Parameter Validation warrnings for platform > FileStorage > saveHtmlTemplate \n ${warrning}`, }); } @@ -726,7 +807,7 @@ class FileStorage { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/render`, + `/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/config`, query_params, body, requestHeaders, @@ -738,14 +819,17 @@ class FileStorage { responseData = response[0]; } - const { error: res_error } = Joi.string() - .allow("") - .validate(responseData, { abortEarly: false, allowUnknown: false }); + const { + error: res_error, + } = FileStoragePlatformModel.PdfConfigSaveSuccess().validate(responseData, { + abortEarly: false, + allowUnknown: false, + }); if (res_error) { Logger({ level: "WARN", - message: `Response Validation Warnnings for platform > FileStorage > previewTemplate \n ${res_error}`, + message: `Response Validation Warnnings for platform > FileStorage > saveHtmlTemplate \n ${res_error}`, }); } @@ -753,25 +837,26 @@ class FileStorage { } /** - * @param {FileStoragePlatformApplicationValidator.SaveHtmlTemplateParam} arg + * @param {FileStoragePlatformApplicationValidator.UpdateHtmlTemplateParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - + * @returns {Promise} - * Success response - * @name saveHtmlTemplate + * @name updateHtmlTemplate * @summary: Update html template for invoice or label - * @description: Update html template for invoice such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/saveHtmlTemplate/). + * @description: Update html template for invoice such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/updateHtmlTemplate/). */ - async saveHtmlTemplate( - { body, requestHeaders } = { requestHeaders: {} }, + async updateHtmlTemplate( + { id, body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = FileStoragePlatformApplicationValidator.saveHtmlTemplate().validate( + } = FileStoragePlatformApplicationValidator.updateHtmlTemplate().validate( { + id, body, }, { abortEarly: false, allowUnknown: true } @@ -783,8 +868,9 @@ class FileStorage { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = FileStoragePlatformApplicationValidator.saveHtmlTemplate().validate( + } = FileStoragePlatformApplicationValidator.updateHtmlTemplate().validate( { + id, body, }, { abortEarly: false, allowUnknown: false } @@ -792,7 +878,7 @@ class FileStorage { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > FileStorage > saveHtmlTemplate \n ${warrning}`, + message: `Parameter Validation warrnings for platform > FileStorage > updateHtmlTemplate \n ${warrning}`, }); } @@ -801,7 +887,7 @@ class FileStorage { const response = await PlatformAPIClient.execute( this.config, "put", - `/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/config`, + `/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/config/${id}`, query_params, body, requestHeaders, @@ -813,14 +899,17 @@ class FileStorage { responseData = response[0]; } - const { error: res_error } = Joi.array() - .items(FileStoragePlatformModel.PdfConfigSaveSuccess()) - .validate(responseData, { abortEarly: false, allowUnknown: false }); + const { + error: res_error, + } = FileStoragePlatformModel.PdfConfigSaveSuccess().validate(responseData, { + abortEarly: false, + allowUnknown: false, + }); if (res_error) { Logger({ level: "WARN", - message: `Response Validation Warnnings for platform > FileStorage > saveHtmlTemplate \n ${res_error}`, + message: `Response Validation Warnnings for platform > FileStorage > updateHtmlTemplate \n ${res_error}`, }); } diff --git a/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts b/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts index ee02d7ef0..4a88fe4d6 100644 --- a/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +++ b/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts @@ -29,6 +29,10 @@ export = FileStoragePlatformApplicationValidator; * @property {number} [page] - Page no * @property {number} [limit] - Limit */ +/** + * @typedef GeneratePaymentReceiptParam + * @property {FileStoragePlatformModel.PaymentReceiptRequestBody} body + */ /** * @typedef GetDefaultHtmlTemplateParam * @property {number} pdfTypeId @@ -45,12 +49,13 @@ export = FileStoragePlatformApplicationValidator; */ /** @typedef GetPdfTypesParam */ /** - * @typedef PreviewTemplateParam - * @property {FileStoragePlatformModel.pdfRender} body + * @typedef SaveHtmlTemplateParam + * @property {FileStoragePlatformModel.PdfConfig} body */ /** - * @typedef SaveHtmlTemplateParam - * @property {FileStoragePlatformModel.pdfConfig} body + * @typedef UpdateHtmlTemplateParam + * @property {string} id + * @property {FileStoragePlatformModel.PdfConfig} body */ declare class FileStoragePlatformApplicationValidator { /** @returns {AppCompleteUploadParam} */ @@ -61,6 +66,8 @@ declare class FileStoragePlatformApplicationValidator { static appStartUpload(): AppStartUploadParam; /** @returns {AppbrowseParam} */ static appbrowse(): AppbrowseParam; + /** @returns {GeneratePaymentReceiptParam} */ + static generatePaymentReceipt(): GeneratePaymentReceiptParam; /** @returns {GetDefaultHtmlTemplateParam} */ static getDefaultHtmlTemplate(): GetDefaultHtmlTemplateParam; /** @returns {GetDefaultPdfDataParam} */ @@ -69,13 +76,13 @@ declare class FileStoragePlatformApplicationValidator { static getDefaultPdfTemplate(): GetDefaultPdfTemplateParam; /** @returns {GetPdfTypesParam} */ static getPdfTypes(): any; - /** @returns {PreviewTemplateParam} */ - static previewTemplate(): PreviewTemplateParam; /** @returns {SaveHtmlTemplateParam} */ static saveHtmlTemplate(): SaveHtmlTemplateParam; + /** @returns {UpdateHtmlTemplateParam} */ + static updateHtmlTemplate(): UpdateHtmlTemplateParam; } declare namespace FileStoragePlatformApplicationValidator { - export { AppCompleteUploadParam, AppCopyFilesParam, AppStartUploadParam, AppbrowseParam, GetDefaultHtmlTemplateParam, GetDefaultPdfDataParam, GetDefaultPdfTemplateParam, GetPdfTypesParam, PreviewTemplateParam, SaveHtmlTemplateParam }; + export { AppCompleteUploadParam, AppCopyFilesParam, AppStartUploadParam, AppbrowseParam, GeneratePaymentReceiptParam, GetDefaultHtmlTemplateParam, GetDefaultPdfDataParam, GetDefaultPdfTemplateParam, GetPdfTypesParam, SaveHtmlTemplateParam, UpdateHtmlTemplateParam }; } type AppCompleteUploadParam = { /** @@ -121,6 +128,9 @@ type AppbrowseParam = { */ limit?: number; }; +type GeneratePaymentReceiptParam = { + body: FileStoragePlatformModel.PaymentReceiptRequestBody; +}; type GetDefaultHtmlTemplateParam = { pdfTypeId: number; format: string; @@ -132,11 +142,12 @@ type GetDefaultPdfTemplateParam = { pdfTypeId: number; format: string; }; -type PreviewTemplateParam = { - body: FileStoragePlatformModel.pdfRender; -}; type SaveHtmlTemplateParam = { - body: FileStoragePlatformModel.pdfConfig; + body: FileStoragePlatformModel.PdfConfig; +}; +type UpdateHtmlTemplateParam = { + id: string; + body: FileStoragePlatformModel.PdfConfig; }; type GetPdfTypesParam = any; import FileStoragePlatformModel = require("./FileStoragePlatformModel"); diff --git a/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js b/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js index 2e0355bce..b7fff3929 100644 --- a/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +++ b/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js @@ -36,6 +36,11 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel"); * @property {number} [limit] - Limit */ +/** + * @typedef GeneratePaymentReceiptParam + * @property {FileStoragePlatformModel.PaymentReceiptRequestBody} body + */ + /** * @typedef GetDefaultHtmlTemplateParam * @property {number} pdfTypeId @@ -56,13 +61,14 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel"); /** @typedef GetPdfTypesParam */ /** - * @typedef PreviewTemplateParam - * @property {FileStoragePlatformModel.pdfRender} body + * @typedef SaveHtmlTemplateParam + * @property {FileStoragePlatformModel.PdfConfig} body */ /** - * @typedef SaveHtmlTemplateParam - * @property {FileStoragePlatformModel.pdfConfig} body + * @typedef UpdateHtmlTemplateParam + * @property {string} id + * @property {FileStoragePlatformModel.PdfConfig} body */ class FileStoragePlatformApplicationValidator { @@ -103,6 +109,13 @@ class FileStoragePlatformApplicationValidator { }).required(); } + /** @returns {GeneratePaymentReceiptParam} */ + static generatePaymentReceipt() { + return Joi.object({ + body: FileStoragePlatformModel.PaymentReceiptRequestBody().required(), + }).required(); + } + /** @returns {GetDefaultHtmlTemplateParam} */ static getDefaultHtmlTemplate() { return Joi.object({ @@ -131,17 +144,18 @@ class FileStoragePlatformApplicationValidator { return Joi.object({}).required(); } - /** @returns {PreviewTemplateParam} */ - static previewTemplate() { + /** @returns {SaveHtmlTemplateParam} */ + static saveHtmlTemplate() { return Joi.object({ - body: FileStoragePlatformModel.pdfRender().required(), + body: FileStoragePlatformModel.PdfConfig().required(), }).required(); } - /** @returns {SaveHtmlTemplateParam} */ - static saveHtmlTemplate() { + /** @returns {UpdateHtmlTemplateParam} */ + static updateHtmlTemplate() { return Joi.object({ - body: FileStoragePlatformModel.pdfConfig().required(), + id: Joi.string().allow("").required(), + body: FileStoragePlatformModel.PdfConfig().required(), }).required(); } } diff --git a/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts b/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts index 64921ecb2..d9548d458 100644 --- a/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +++ b/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts @@ -6,12 +6,12 @@ declare class FileStorage { * @param {FileStoragePlatformValidator.BrowseParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name browse * @summary: Browse Files * @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/browse/). */ - browse({ namespace, page, limit, requestHeaders }?: FileStoragePlatformValidator.BrowseParam, { responseHeaders }?: object): Promise; + browse({ namespace, page, limit, requestHeaders }?: FileStoragePlatformValidator.BrowseParam, { responseHeaders }?: object): Promise; /** * @param {FileStoragePlatformValidator.CompleteUploadParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -44,12 +44,12 @@ declare class FileStorage { * @param {FileStoragePlatformValidator.CopyFilesParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name copyFiles * @summary: Copy Files * @description: Copy Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/copyFiles/). */ - copyFiles({ body, sync, requestHeaders }?: FileStoragePlatformValidator.CopyFilesParam, { responseHeaders }?: object): Promise; + copyFiles({ body, sync, requestHeaders }?: FileStoragePlatformValidator.CopyFilesParam, { responseHeaders }?: object): Promise; /** * @param {FileStoragePlatformValidator.GetSignUrlsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` diff --git a/sdk/platform/FileStorage/FileStoragePlatformClient.js b/sdk/platform/FileStorage/FileStoragePlatformClient.js index 1ce42169b..0fe8b96b8 100644 --- a/sdk/platform/FileStorage/FileStoragePlatformClient.js +++ b/sdk/platform/FileStorage/FileStoragePlatformClient.js @@ -17,7 +17,7 @@ class FileStorage { * @param {FileStoragePlatformValidator.BrowseParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name browse * @summary: Browse Files * @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/browse/). @@ -77,9 +77,7 @@ class FileStorage { responseData = response[0]; } - const { - error: res_error, - } = FileStoragePlatformModel.BrowseResponse().validate(responseData, { + const { error: res_error } = Joi.any().validate(responseData, { abortEarly: false, allowUnknown: false, }); @@ -195,7 +193,7 @@ class FileStorage { * @param {FileStoragePlatformValidator.CopyFilesParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name copyFiles * @summary: Copy Files * @description: Copy Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/copyFiles/). @@ -252,9 +250,7 @@ class FileStorage { responseData = response[0]; } - const { - error: res_error, - } = FileStoragePlatformModel.BulkUploadSyncMode().validate(responseData, { + const { error: res_error } = Joi.any().validate(responseData, { abortEarly: false, allowUnknown: false, }); diff --git a/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts b/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts index c760616ed..b3eaff8a6 100644 --- a/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +++ b/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts @@ -1,17 +1,13 @@ export = FileStoragePlatformModel; /** - * @typedef BrowseResponse - * @property {DbRecord[]} items - * @property {Page} page - */ -/** - * @typedef BulkUploadFailResponse - * @property {Status} status + * @typedef AwbNumberLabelBarcodeGenerator + * @property {KwargsAwbNumber} [kwargs] + * @property {string} [method] */ /** - * @typedef BulkUploadSyncMode - * @property {FilesSuccess[]} [files] - * @property {Status} status + * @typedef Brand + * @property {string} [logo] + * @property {string} [name] */ /** * @typedef CDN @@ -19,11 +15,35 @@ export = FileStoragePlatformModel; * @property {string} relative_url * @property {string} url */ +/** + * @typedef Cgst + * @property {number} [percent] + * @property {number} [value] + */ +/** + * @typedef CompanyDetail + * @property {string} [address] + * @property {string} [cin] + * @property {string} [city] + * @property {string} [country] + * @property {string} [country_code] + * @property {string} [email] + * @property {string} [gstin] + * @property {string} [name] + * @property {string} [pan] + * @property {string} [phone_no] + * @property {string} [state] + * @property {string} [state_code] + * @property {string} [website_url] + * @property {number} [zip_code] + */ /** * @typedef CompleteResponse * @property {string} _id * @property {CDN} cdn + * @property {number} company_id * @property {string} content_type + * @property {CreatedBy} [created_by] * @property {string} created_on * @property {string} file_name * @property {string} file_path @@ -35,84 +55,298 @@ export = FileStoragePlatformModel; * @property {string[]} [tags] * @property {Upload} upload */ +/** + * @typedef ConversionRate + * @property {string} [base] + * @property {Rates} [rates] + * @property {number} [timestamp] + */ /** * @typedef CopyFiles * @property {DestinationNamespace} destination - * @property {string[]} urls + * @property {string[]} [urls] */ /** - * @typedef DbRecord - * @property {string} _id - * @property {CDN} cdn - * @property {string} content_type - * @property {string} created_on - * @property {string} file_name - * @property {string} file_path - * @property {string} modified_on - * @property {string} namespace - * @property {string} [operation] - * @property {boolean} success - * @property {string[]} tags - * @property {Upload} upload + * @typedef CreatedBy + * @property {string} [username] + */ +/** + * @typedef CustomerBillingDetail + * @property {string} [address] + * @property {string} [city] + * @property {string} [country] + * @property {string} [country_code] + * @property {string} [gstin] + * @property {string} [name] + * @property {string} [phone_no] + * @property {string} [state] + * @property {string} [state_code] + * @property {string} [zip_code] + */ +/** + * @typedef CustomerShippingDetail + * @property {string} [address] + * @property {string} [city] + * @property {string} [country] + * @property {string} [country_code] + * @property {string} [gstin] + * @property {string} [name] + * @property {string} [phone_no] + * @property {string} [state] + * @property {string} [state_code] + * @property {string} [zip_code] + */ +/** + * @typedef DeliveryPartnerDetail + * @property {string} [awb_number] + * @property {string} [awb_number_barcode] + * @property {string} [eway_bill_number] + * @property {string} [name] */ /** * @typedef DestinationNamespace * @property {string} [namespace] */ /** - * @typedef DummyTemplateDataItems + * @typedef DigitalsignatureGenerator + * @property {Kwargs} [kwargs] + * @property {string} [method] + */ +/** + * @typedef Document + * @property {number} [__v] + * @property {string} [_id] + * @property {string} [country_code] + * @property {string} [format] + * @property {number} [pdf_type_id] + * @property {string} [template] + */ +/** + * @typedef DummyTemplateData * @property {number} [__v] * @property {string} [_id] - * @property {Object} payload + * @property {DummyTemplateDataPayload} payload * @property {number} [pdf_type_id] */ +/** + * @typedef DummyTemplateDataItems + * @property {DummyTemplateData[]} data + * @property {boolean} success + */ +/** + * @typedef DummyTemplateDataPayload + * @property {number} [amount_paid] + * @property {number} [amount_to_be_collected] + * @property {string} [app_domain_name] + * @property {string} [awb_number_barcode] + * @property {string} [brand_logo] + * @property {CompanyDetail} [company_detail] + * @property {ConversionRate} [conversion_rate] + * @property {string} [currency_code] + * @property {CustomerBillingDetail} [customer_billing_detail] + * @property {CustomerShippingDetail} [customer_shipping_detail] + * @property {string[]} [declaration_texts] + * @property {DeliveryPartnerDetail} [delivery_partner_detail] + * @property {string} [digitalsignature] + * @property {string} [disclaimer] + * @property {Image} [image] + * @property {InvoiceDetail} [invoice_detail] + * @property {boolean} [is_international] + * @property {boolean} [is_self_pickup] + * @property {boolean} [is_self_ship] + * @property {Meta} [meta] + * @property {string} [mode] + * @property {PaymentData[]} [payments] + * @property {string} [platform_name] + * @property {ProductTable} [product_table] + * @property {RegisteredCompanyDetail} [registered_company_detail] + * @property {ReturnDetail} [return_detail] + * @property {string} [shipment_id] + * @property {string} [shipment_id_barcode] + * @property {string} [signed_qrcode] + * @property {StoreDetail} [store_detail] + * @property {TaxTable} [tax_table] + * @property {number} [total_items] + * @property {string} [uid] + * @property {string} [upi_qrcode] + * @property {Object[]} [waybills] + */ /** * @typedef FailedResponse * @property {string} message */ /** - * @typedef File - * @property {FileSrc} src + * @typedef Igst + * @property {number} [percent] + * @property {number} [value] */ /** - * @typedef FileSrc - * @property {string} [method] - * @property {string} [namespace] - * @property {string} url + * @typedef Image + * @property {string} [sales_channel_logo] */ /** - * @typedef FilesSuccess - * @property {File} [file] - * @property {boolean} success + * @typedef Inr + * @property {string} [name] + * @property {string} [sub_unit] + * @property {string} [symbol] + * @property {number} [value] */ /** - * @typedef InvoiceTypesResponse + * @typedef InvoiceDetail + * @property {string} [external_order_id] + * @property {string} [invoice_date] + * @property {string} [invoice_id] + * @property {string} [irn] + * @property {string} [shipment_id] + * @property {string} [signed_qrcode] + * @property {string} [upi_qrcode] + */ +/** + * @typedef InvoiceTypesDataResponse * @property {number} __v * @property {string} _id + * @property {string} [country_code] * @property {string[]} format * @property {string} name * @property {number} pdf_type_id - * @property {Object} schema + * @property {boolean} [status] * @property {boolean} visibility */ /** - * @typedef Page - * @property {number} [current] - * @property {boolean} [has_next] - * @property {boolean} [has_previous] - * @property {number} [item_total] - * @property {string} [next_id] - * @property {number} [size] - * @property {string} type + * @typedef InvoiceTypesResponse + * @property {InvoiceTypesDataResponse[]} data + * @property {boolean} success + */ +/** + * @typedef ItemsProductTable + * @property {Brand} [brand] + * @property {number} [discount] + * @property {string} [hsn_code] + * @property {string} [item_code] + * @property {number} [mrp] + * @property {string} [name] + * @property {string} [seller_identifier] + * @property {string} [size] + * @property {Tax} [tax] + * @property {number} [taxable_amount] + * @property {number} [total] + * @property {number} [total_taxable_amount] + * @property {number} [total_units] */ /** - * @typedef pdfConfig + * @typedef Kwargs + * @property {string} [value] + */ +/** + * @typedef KwargsAwbNumber + * @property {Object[]} [value] + */ +/** + * @typedef KwargsUpiQrcode + * @property {string} [qr_data] + * @property {string} [qr_url] + */ +/** + * @typedef Meta + * @property {MetaProperty} [generator] + */ +/** + * @typedef MetaProperty + * @property {AwbNumberLabelBarcodeGenerator} [awb_number_label_barcode_generator] + * @property {DigitalsignatureGenerator} [digitalsignature_generator] + * @property {ShipmentIdBarcodeGenerator} [shipment_id_barcode_generator] + * @property {SignedQrcodeGenerator} [signed_qrcode_generator] + * @property {UpiQrcodeGenerator} [upi_qrcode_generator] + */ +/** + * @typedef Params + * @property {string} [subpath] - The subpath for the file. + */ +/** + * @typedef PaymentData + * @property {number} [amount] + * @property {string} [date] + * @property {string} [payment_type] + * @property {string} [transaction_id] + */ +/** + * @typedef PaymentReceiptCustomerDetails + * @property {string} [email_id] + * @property {string} [first_name] + * @property {string} [id] + * @property {string} [last_name] + * @property {string} [mobile_number] + */ +/** + * @typedef PaymentReceiptFormat + * @property {string[]} [payment_receipt] + */ +/** + * @typedef PaymentReceiptMeta + * @property {string} [action] + * @property {string[]} [application_id] + * @property {number} [company_id] + * @property {number} [created_timestamp] + * @property {Object} [event] + * @property {Object} [event_trace_info] + * @property {PaymentReceiptFormat} [format] + * @property {string} [job_type] + * @property {string} [organizaton_id] + * @property {PaymentReceiptService} [service] + * @property {string} [trace] + * @property {string[]} [trace_id] + */ +/** + * @typedef PaymentReceiptOrderDetails + * @property {number} [final_amount] + * @property {string} [final_amount_in_words] + * @property {string} [jiomart_order_id] + * @property {string} [order_created_date] + * @property {string} [order_created_time] + * @property {string} [prm_id] + * @property {string} [receipt_no] + * @property {PaymentReceiptTaxes} [taxes] + * @property {number} [total_items] + */ +/** + * @typedef PaymentReceiptPayload + * @property {PaymentReceiptCustomerDetails} [customer_detail] + * @property {PaymentReceiptOrderDetails} [order_detail] + * @property {PaymentReceiptPayments[]} [payments] + * @property {string} [uid] + */ +/** + * @typedef PaymentReceiptPayments + * @property {string} [payment_desc] + * @property {string} [txn_date] + */ +/** + * @typedef PaymentReceiptRequestBody + * @property {PaymentReceiptMeta} [meta] + * @property {PaymentReceiptPayload} [payload] + */ +/** + * @typedef PaymentReceiptService + * @property {string} [name] + */ +/** + * @typedef PaymentReceiptTaxes + * @property {string} [gstin] + * @property {string} [pancard] + */ +/** + * @typedef PdfConfig * @property {string} [format] - This is invoice document format such as A4, A6, POS * @property {number} [pdf_type_id] * @property {string} [template] - This is html template string */ /** * @typedef PdfConfigSaveSuccess + * @property {PdfConfigSaveSuccessData} [data] + * @property {boolean} [success] + */ +/** + * @typedef PdfConfigSaveSuccessData * @property {number} [__v] * @property {string} [_id] * @property {string} [application_id] @@ -123,27 +357,76 @@ export = FileStoragePlatformModel; */ /** * @typedef PdfConfigSuccess + * @property {PdfConfigSuccessData[]} [data] + * @property {boolean} [success] + */ +/** + * @typedef PdfConfigSuccessData * @property {number} [__v] * @property {string} [_id] * @property {string} [application_id] * @property {number} [company_id] + * @property {string} [country_code] * @property {string} [format] * @property {number} [pdf_type_id] * @property {string} [template] */ /** * @typedef PdfDefaultTemplateSuccess - * @property {number} [__v] - * @property {string} [_id] - * @property {string} [format] - * @property {number} [pdf_type_id] - * @property {string} [template] + * @property {Document[]} [data] + * @property {boolean} [success] - Indicates if the request was successful. */ /** - * @typedef pdfRender - * @property {string} [format] - * @property {Object} [payload] - * @property {string} [template] + * @typedef ProductTable + * @property {number} [cod_charges] + * @property {string} [delivery_charge_text] + * @property {number} [delivery_charges] + * @property {number} [fynd_discounts] + * @property {number} [grand_total] + * @property {ItemsProductTable[]} [products] + * @property {string} [total_in_words] + * @property {number} [total_items] + */ +/** + * @typedef Rates + * @property {Inr} [inr] + * @property {Usd} [usd] + */ +/** + * @typedef RegisteredCompanyDetail + * @property {string} [address] + * @property {string} [city] + * @property {string} [country] + * @property {string} [country_code] + * @property {string} [state] + * @property {string} [state_code] + * @property {number} [zip_code] + */ +/** + * @typedef ReturnDetail + * @property {string} [address] + * @property {string} [city] + * @property {string} [country] + * @property {string} [country_code] + * @property {string} [gstin] + * @property {string} [state] + * @property {string} [state_code] + * @property {string} [zip_code] + */ +/** + * @typedef Sgst + * @property {number} [percent] + * @property {number} [value] + */ +/** + * @typedef ShipmentIdBarcodeGenerator + * @property {Kwargs} [kwargs] + * @property {string} [method] + */ +/** + * @typedef SignedQrcodeGenerator + * @property {Kwargs} [kwargs] + * @property {string} [method] */ /** * @typedef SignUrlRequest @@ -158,7 +441,7 @@ export = FileStoragePlatformModel; * @typedef StartRequest * @property {string} content_type * @property {string} file_name - * @property {Object} [params] + * @property {Params} [params] * @property {number} size * @property {string[]} [tags] */ @@ -176,11 +459,39 @@ export = FileStoragePlatformModel; * @property {Upload} upload */ /** - * @typedef Status - * @property {number} failed - * @property {string} [result] - * @property {number} succeeded - * @property {number} total + * @typedef StoreDetail + * @property {string} [address] + * @property {string} [city] + * @property {string} [country] + * @property {string} [country_code] + * @property {string} [gstin] + * @property {string} [state] + * @property {string} [state_code] + * @property {string} [store_name] + * @property {string} [zip_code] + */ +/** + * @typedef Tax + * @property {Cgst} [cgst] + * @property {Igst} [igst] + * @property {Sgst} [sgst] + */ +/** + * @typedef Taxes + * @property {string} [hsn_code] + * @property {Tax} [tax] + * @property {number} [total_tax_value] + */ +/** + * @typedef TaxTable + * @property {string} [tax_in_words] + * @property {Taxes[]} [taxes] + * @property {number} [total_tax] + */ +/** + * @typedef UpiQrcodeGenerator + * @property {KwargsUpiQrcode} [kwargs] + * @property {string} [method] */ /** * @typedef Upload @@ -193,27 +504,29 @@ export = FileStoragePlatformModel; * @property {string} signed_url * @property {string} url */ +/** + * @typedef Usd + * @property {string} [name] + * @property {string} [sub_unit] + * @property {string} [symbol] + * @property {number} [value] + */ declare class FileStoragePlatformModel { } declare namespace FileStoragePlatformModel { - export { BrowseResponse, BulkUploadFailResponse, BulkUploadSyncMode, CDN, CompleteResponse, CopyFiles, DbRecord, DestinationNamespace, DummyTemplateDataItems, FailedResponse, File, FileSrc, FilesSuccess, InvoiceTypesResponse, Page, pdfConfig, PdfConfigSaveSuccess, PdfConfigSuccess, PdfDefaultTemplateSuccess, pdfRender, SignUrlRequest, SignUrlResponse, StartRequest, StartResponse, Status, Upload, Urls }; + export { AwbNumberLabelBarcodeGenerator, Brand, CDN, Cgst, CompanyDetail, CompleteResponse, ConversionRate, CopyFiles, CreatedBy, CustomerBillingDetail, CustomerShippingDetail, DeliveryPartnerDetail, DestinationNamespace, DigitalsignatureGenerator, Document, DummyTemplateData, DummyTemplateDataItems, DummyTemplateDataPayload, FailedResponse, Igst, Image, Inr, InvoiceDetail, InvoiceTypesDataResponse, InvoiceTypesResponse, ItemsProductTable, Kwargs, KwargsAwbNumber, KwargsUpiQrcode, Meta, MetaProperty, Params, PaymentData, PaymentReceiptCustomerDetails, PaymentReceiptFormat, PaymentReceiptMeta, PaymentReceiptOrderDetails, PaymentReceiptPayload, PaymentReceiptPayments, PaymentReceiptRequestBody, PaymentReceiptService, PaymentReceiptTaxes, PdfConfig, PdfConfigSaveSuccess, PdfConfigSaveSuccessData, PdfConfigSuccess, PdfConfigSuccessData, PdfDefaultTemplateSuccess, ProductTable, Rates, RegisteredCompanyDetail, ReturnDetail, Sgst, ShipmentIdBarcodeGenerator, SignedQrcodeGenerator, SignUrlRequest, SignUrlResponse, StartRequest, StartResponse, StoreDetail, Tax, Taxes, TaxTable, UpiQrcodeGenerator, Upload, Urls, Usd }; } -/** @returns {BrowseResponse} */ -declare function BrowseResponse(): BrowseResponse; -type BrowseResponse = { - items: DbRecord[]; - page: Page; -}; -/** @returns {BulkUploadFailResponse} */ -declare function BulkUploadFailResponse(): BulkUploadFailResponse; -type BulkUploadFailResponse = { - status: Status; -}; -/** @returns {BulkUploadSyncMode} */ -declare function BulkUploadSyncMode(): BulkUploadSyncMode; -type BulkUploadSyncMode = { - files?: FilesSuccess[]; - status: Status; +/** @returns {AwbNumberLabelBarcodeGenerator} */ +declare function AwbNumberLabelBarcodeGenerator(): AwbNumberLabelBarcodeGenerator; +type AwbNumberLabelBarcodeGenerator = { + kwargs?: KwargsAwbNumber; + method?: string; +}; +/** @returns {Brand} */ +declare function Brand(): Brand; +type Brand = { + logo?: string; + name?: string; }; /** @returns {CDN} */ declare function CDN(): CDN; @@ -222,12 +535,38 @@ type CDN = { relative_url: string; url: string; }; +/** @returns {Cgst} */ +declare function Cgst(): Cgst; +type Cgst = { + percent?: number; + value?: number; +}; +/** @returns {CompanyDetail} */ +declare function CompanyDetail(): CompanyDetail; +type CompanyDetail = { + address?: string; + cin?: string; + city?: string; + country?: string; + country_code?: string; + email?: string; + gstin?: string; + name?: string; + pan?: string; + phone_no?: string; + state?: string; + state_code?: string; + website_url?: string; + zip_code?: number; +}; /** @returns {CompleteResponse} */ declare function CompleteResponse(): CompleteResponse; type CompleteResponse = { _id: string; cdn: CDN; + company_id: number; content_type: string; + created_by?: CreatedBy; created_on: string; file_name: string; file_path: string; @@ -239,89 +578,327 @@ type CompleteResponse = { tags?: string[]; upload: Upload; }; +/** @returns {ConversionRate} */ +declare function ConversionRate(): ConversionRate; +type ConversionRate = { + base?: string; + rates?: Rates; + timestamp?: number; +}; /** @returns {CopyFiles} */ declare function CopyFiles(): CopyFiles; type CopyFiles = { destination: DestinationNamespace; - urls: string[]; + urls?: string[]; }; -/** @returns {DbRecord} */ -declare function DbRecord(): DbRecord; -type DbRecord = { - _id: string; - cdn: CDN; - content_type: string; - created_on: string; - file_name: string; - file_path: string; - modified_on: string; - namespace: string; - operation?: string; - success: boolean; - tags: string[]; - upload: Upload; +/** @returns {CreatedBy} */ +declare function CreatedBy(): CreatedBy; +type CreatedBy = { + username?: string; +}; +/** @returns {CustomerBillingDetail} */ +declare function CustomerBillingDetail(): CustomerBillingDetail; +type CustomerBillingDetail = { + address?: string; + city?: string; + country?: string; + country_code?: string; + gstin?: string; + name?: string; + phone_no?: string; + state?: string; + state_code?: string; + zip_code?: string; +}; +/** @returns {CustomerShippingDetail} */ +declare function CustomerShippingDetail(): CustomerShippingDetail; +type CustomerShippingDetail = { + address?: string; + city?: string; + country?: string; + country_code?: string; + gstin?: string; + name?: string; + phone_no?: string; + state?: string; + state_code?: string; + zip_code?: string; +}; +/** @returns {DeliveryPartnerDetail} */ +declare function DeliveryPartnerDetail(): DeliveryPartnerDetail; +type DeliveryPartnerDetail = { + awb_number?: string; + awb_number_barcode?: string; + eway_bill_number?: string; + name?: string; }; /** @returns {DestinationNamespace} */ declare function DestinationNamespace(): DestinationNamespace; type DestinationNamespace = { namespace?: string; }; -/** @returns {DummyTemplateDataItems} */ -declare function DummyTemplateDataItems(): DummyTemplateDataItems; -type DummyTemplateDataItems = { +/** @returns {DigitalsignatureGenerator} */ +declare function DigitalsignatureGenerator(): DigitalsignatureGenerator; +type DigitalsignatureGenerator = { + kwargs?: Kwargs; + method?: string; +}; +/** @returns {Document} */ +declare function Document(): Document; +type Document = { __v?: number; _id?: string; - payload: any; + country_code?: string; + format?: string; pdf_type_id?: number; + template?: string; +}; +/** @returns {DummyTemplateData} */ +declare function DummyTemplateData(): DummyTemplateData; +type DummyTemplateData = { + __v?: number; + _id?: string; + payload: DummyTemplateDataPayload; + pdf_type_id?: number; +}; +/** @returns {DummyTemplateDataItems} */ +declare function DummyTemplateDataItems(): DummyTemplateDataItems; +type DummyTemplateDataItems = { + data: DummyTemplateData[]; + success: boolean; +}; +/** @returns {DummyTemplateDataPayload} */ +declare function DummyTemplateDataPayload(): DummyTemplateDataPayload; +type DummyTemplateDataPayload = { + amount_paid?: number; + amount_to_be_collected?: number; + app_domain_name?: string; + awb_number_barcode?: string; + brand_logo?: string; + company_detail?: CompanyDetail; + conversion_rate?: ConversionRate; + currency_code?: string; + customer_billing_detail?: CustomerBillingDetail; + customer_shipping_detail?: CustomerShippingDetail; + declaration_texts?: string[]; + delivery_partner_detail?: DeliveryPartnerDetail; + digitalsignature?: string; + disclaimer?: string; + image?: Image; + invoice_detail?: InvoiceDetail; + is_international?: boolean; + is_self_pickup?: boolean; + is_self_ship?: boolean; + meta?: Meta; + mode?: string; + payments?: PaymentData[]; + platform_name?: string; + product_table?: ProductTable; + registered_company_detail?: RegisteredCompanyDetail; + return_detail?: ReturnDetail; + shipment_id?: string; + shipment_id_barcode?: string; + signed_qrcode?: string; + store_detail?: StoreDetail; + tax_table?: TaxTable; + total_items?: number; + uid?: string; + upi_qrcode?: string; + waybills?: any[]; }; /** @returns {FailedResponse} */ declare function FailedResponse(): FailedResponse; type FailedResponse = { message: string; }; -/** @returns {File} */ -declare function File(): File; -type File = { - src: FileSrc; +/** @returns {Igst} */ +declare function Igst(): Igst; +type Igst = { + percent?: number; + value?: number; }; -/** @returns {FileSrc} */ -declare function FileSrc(): FileSrc; -type FileSrc = { - method?: string; - namespace?: string; - url: string; +/** @returns {Image} */ +declare function Image(): Image; +type Image = { + sales_channel_logo?: string; }; -/** @returns {FilesSuccess} */ -declare function FilesSuccess(): FilesSuccess; -type FilesSuccess = { - file?: File; - success: boolean; +/** @returns {Inr} */ +declare function Inr(): Inr; +type Inr = { + name?: string; + sub_unit?: string; + symbol?: string; + value?: number; }; -/** @returns {InvoiceTypesResponse} */ -declare function InvoiceTypesResponse(): InvoiceTypesResponse; -type InvoiceTypesResponse = { +/** @returns {InvoiceDetail} */ +declare function InvoiceDetail(): InvoiceDetail; +type InvoiceDetail = { + external_order_id?: string; + invoice_date?: string; + invoice_id?: string; + irn?: string; + shipment_id?: string; + signed_qrcode?: string; + upi_qrcode?: string; +}; +/** @returns {InvoiceTypesDataResponse} */ +declare function InvoiceTypesDataResponse(): InvoiceTypesDataResponse; +type InvoiceTypesDataResponse = { __v: number; _id: string; + country_code?: string; format: string[]; name: string; pdf_type_id: number; - schema: any; + status?: boolean; visibility: boolean; }; -/** @returns {Page} */ -declare function Page(): Page; -type Page = { - current?: number; - has_next?: boolean; - has_previous?: boolean; - item_total?: number; - next_id?: string; - size?: number; - type: string; -}; -/** @returns {pdfConfig} */ -declare function pdfConfig(): pdfConfig; -type pdfConfig = { +/** @returns {InvoiceTypesResponse} */ +declare function InvoiceTypesResponse(): InvoiceTypesResponse; +type InvoiceTypesResponse = { + data: InvoiceTypesDataResponse[]; + success: boolean; +}; +/** @returns {ItemsProductTable} */ +declare function ItemsProductTable(): ItemsProductTable; +type ItemsProductTable = { + brand?: Brand; + discount?: number; + hsn_code?: string; + item_code?: string; + mrp?: number; + name?: string; + seller_identifier?: string; + size?: string; + tax?: Tax; + taxable_amount?: number; + total?: number; + total_taxable_amount?: number; + total_units?: number; +}; +/** @returns {Kwargs} */ +declare function Kwargs(): Kwargs; +type Kwargs = { + value?: string; +}; +/** @returns {KwargsAwbNumber} */ +declare function KwargsAwbNumber(): KwargsAwbNumber; +type KwargsAwbNumber = { + value?: any[]; +}; +/** @returns {KwargsUpiQrcode} */ +declare function KwargsUpiQrcode(): KwargsUpiQrcode; +type KwargsUpiQrcode = { + qr_data?: string; + qr_url?: string; +}; +/** @returns {Meta} */ +declare function Meta(): Meta; +type Meta = { + generator?: MetaProperty; +}; +/** @returns {MetaProperty} */ +declare function MetaProperty(): MetaProperty; +type MetaProperty = { + awb_number_label_barcode_generator?: AwbNumberLabelBarcodeGenerator; + digitalsignature_generator?: DigitalsignatureGenerator; + shipment_id_barcode_generator?: ShipmentIdBarcodeGenerator; + signed_qrcode_generator?: SignedQrcodeGenerator; + upi_qrcode_generator?: UpiQrcodeGenerator; +}; +/** @returns {Params} */ +declare function Params(): Params; +type Params = { + /** + * - The subpath for the file. + */ + subpath?: string; +}; +/** @returns {PaymentData} */ +declare function PaymentData(): PaymentData; +type PaymentData = { + amount?: number; + date?: string; + payment_type?: string; + transaction_id?: string; +}; +/** @returns {PaymentReceiptCustomerDetails} */ +declare function PaymentReceiptCustomerDetails(): PaymentReceiptCustomerDetails; +type PaymentReceiptCustomerDetails = { + email_id?: string; + first_name?: string; + id?: string; + last_name?: string; + mobile_number?: string; +}; +/** @returns {PaymentReceiptFormat} */ +declare function PaymentReceiptFormat(): PaymentReceiptFormat; +type PaymentReceiptFormat = { + payment_receipt?: string[]; +}; +/** @returns {PaymentReceiptMeta} */ +declare function PaymentReceiptMeta(): PaymentReceiptMeta; +type PaymentReceiptMeta = { + action?: string; + application_id?: string[]; + company_id?: number; + created_timestamp?: number; + event?: any; + event_trace_info?: any; + format?: PaymentReceiptFormat; + job_type?: string; + organizaton_id?: string; + service?: PaymentReceiptService; + trace?: string; + trace_id?: string[]; +}; +/** @returns {PaymentReceiptOrderDetails} */ +declare function PaymentReceiptOrderDetails(): PaymentReceiptOrderDetails; +type PaymentReceiptOrderDetails = { + final_amount?: number; + final_amount_in_words?: string; + jiomart_order_id?: string; + order_created_date?: string; + order_created_time?: string; + prm_id?: string; + receipt_no?: string; + taxes?: PaymentReceiptTaxes; + total_items?: number; +}; +/** @returns {PaymentReceiptPayload} */ +declare function PaymentReceiptPayload(): PaymentReceiptPayload; +type PaymentReceiptPayload = { + customer_detail?: PaymentReceiptCustomerDetails; + order_detail?: PaymentReceiptOrderDetails; + payments?: PaymentReceiptPayments[]; + uid?: string; +}; +/** @returns {PaymentReceiptPayments} */ +declare function PaymentReceiptPayments(): PaymentReceiptPayments; +type PaymentReceiptPayments = { + payment_desc?: string; + txn_date?: string; +}; +/** @returns {PaymentReceiptRequestBody} */ +declare function PaymentReceiptRequestBody(): PaymentReceiptRequestBody; +type PaymentReceiptRequestBody = { + meta?: PaymentReceiptMeta; + payload?: PaymentReceiptPayload; +}; +/** @returns {PaymentReceiptService} */ +declare function PaymentReceiptService(): PaymentReceiptService; +type PaymentReceiptService = { + name?: string; +}; +/** @returns {PaymentReceiptTaxes} */ +declare function PaymentReceiptTaxes(): PaymentReceiptTaxes; +type PaymentReceiptTaxes = { + gstin?: string; + pancard?: string; +}; +/** @returns {PdfConfig} */ +declare function PdfConfig(): PdfConfig; +type PdfConfig = { /** * - This is invoice document format such as A4, A6, POS */ @@ -335,6 +912,12 @@ type pdfConfig = { /** @returns {PdfConfigSaveSuccess} */ declare function PdfConfigSaveSuccess(): PdfConfigSaveSuccess; type PdfConfigSaveSuccess = { + data?: PdfConfigSaveSuccessData; + success?: boolean; +}; +/** @returns {PdfConfigSaveSuccessData} */ +declare function PdfConfigSaveSuccessData(): PdfConfigSaveSuccessData; +type PdfConfigSaveSuccessData = { __v?: number; _id?: string; application_id?: string; @@ -346,10 +929,17 @@ type PdfConfigSaveSuccess = { /** @returns {PdfConfigSuccess} */ declare function PdfConfigSuccess(): PdfConfigSuccess; type PdfConfigSuccess = { + data?: PdfConfigSuccessData[]; + success?: boolean; +}; +/** @returns {PdfConfigSuccessData} */ +declare function PdfConfigSuccessData(): PdfConfigSuccessData; +type PdfConfigSuccessData = { __v?: number; _id?: string; application_id?: string; company_id?: number; + country_code?: string; format?: string; pdf_type_id?: number; template?: string; @@ -357,18 +947,70 @@ type PdfConfigSuccess = { /** @returns {PdfDefaultTemplateSuccess} */ declare function PdfDefaultTemplateSuccess(): PdfDefaultTemplateSuccess; type PdfDefaultTemplateSuccess = { - __v?: number; - _id?: string; - format?: string; - pdf_type_id?: number; - template?: string; + data?: Document[]; + /** + * - Indicates if the request was successful. + */ + success?: boolean; }; -/** @returns {pdfRender} */ -declare function pdfRender(): pdfRender; -type pdfRender = { - format?: string; - payload?: any; - template?: string; +/** @returns {ProductTable} */ +declare function ProductTable(): ProductTable; +type ProductTable = { + cod_charges?: number; + delivery_charge_text?: string; + delivery_charges?: number; + fynd_discounts?: number; + grand_total?: number; + products?: ItemsProductTable[]; + total_in_words?: string; + total_items?: number; +}; +/** @returns {Rates} */ +declare function Rates(): Rates; +type Rates = { + inr?: Inr; + usd?: Usd; +}; +/** @returns {RegisteredCompanyDetail} */ +declare function RegisteredCompanyDetail(): RegisteredCompanyDetail; +type RegisteredCompanyDetail = { + address?: string; + city?: string; + country?: string; + country_code?: string; + state?: string; + state_code?: string; + zip_code?: number; +}; +/** @returns {ReturnDetail} */ +declare function ReturnDetail(): ReturnDetail; +type ReturnDetail = { + address?: string; + city?: string; + country?: string; + country_code?: string; + gstin?: string; + state?: string; + state_code?: string; + zip_code?: string; +}; +/** @returns {Sgst} */ +declare function Sgst(): Sgst; +type Sgst = { + percent?: number; + value?: number; +}; +/** @returns {ShipmentIdBarcodeGenerator} */ +declare function ShipmentIdBarcodeGenerator(): ShipmentIdBarcodeGenerator; +type ShipmentIdBarcodeGenerator = { + kwargs?: Kwargs; + method?: string; +}; +/** @returns {SignedQrcodeGenerator} */ +declare function SignedQrcodeGenerator(): SignedQrcodeGenerator; +type SignedQrcodeGenerator = { + kwargs?: Kwargs; + method?: string; }; /** @returns {SignUrlRequest} */ declare function SignUrlRequest(): SignUrlRequest; @@ -386,7 +1028,7 @@ declare function StartRequest(): StartRequest; type StartRequest = { content_type: string; file_name: string; - params?: any; + params?: Params; size: number; tags?: string[]; }; @@ -404,13 +1046,45 @@ type StartResponse = { tags?: string[]; upload: Upload; }; -/** @returns {Status} */ -declare function Status(): Status; -type Status = { - failed: number; - result?: string; - succeeded: number; - total: number; +/** @returns {StoreDetail} */ +declare function StoreDetail(): StoreDetail; +type StoreDetail = { + address?: string; + city?: string; + country?: string; + country_code?: string; + gstin?: string; + state?: string; + state_code?: string; + store_name?: string; + zip_code?: string; +}; +/** @returns {Tax} */ +declare function Tax(): Tax; +type Tax = { + cgst?: Cgst; + igst?: Igst; + sgst?: Sgst; +}; +/** @returns {Taxes} */ +declare function Taxes(): Taxes; +type Taxes = { + hsn_code?: string; + tax?: Tax; + total_tax_value?: number; +}; +/** @returns {TaxTable} */ +declare function TaxTable(): TaxTable; +type TaxTable = { + tax_in_words?: string; + taxes?: Taxes[]; + total_tax?: number; +}; +/** @returns {UpiQrcodeGenerator} */ +declare function UpiQrcodeGenerator(): UpiQrcodeGenerator; +type UpiQrcodeGenerator = { + kwargs?: KwargsUpiQrcode; + method?: string; }; /** @returns {Upload} */ declare function Upload(): Upload; @@ -425,3 +1099,11 @@ type Urls = { signed_url: string; url: string; }; +/** @returns {Usd} */ +declare function Usd(): Usd; +type Usd = { + name?: string; + sub_unit?: string; + symbol?: string; + value?: number; +}; diff --git a/sdk/platform/FileStorage/FileStoragePlatformModel.js b/sdk/platform/FileStorage/FileStoragePlatformModel.js index e4adcfa48..6c6925426 100644 --- a/sdk/platform/FileStorage/FileStoragePlatformModel.js +++ b/sdk/platform/FileStorage/FileStoragePlatformModel.js @@ -1,20 +1,15 @@ const Joi = require("joi"); /** - * @typedef BrowseResponse - * @property {DbRecord[]} items - * @property {Page} page - */ - -/** - * @typedef BulkUploadFailResponse - * @property {Status} status + * @typedef AwbNumberLabelBarcodeGenerator + * @property {KwargsAwbNumber} [kwargs] + * @property {string} [method] */ /** - * @typedef BulkUploadSyncMode - * @property {FilesSuccess[]} [files] - * @property {Status} status + * @typedef Brand + * @property {string} [logo] + * @property {string} [name] */ /** @@ -24,11 +19,37 @@ const Joi = require("joi"); * @property {string} url */ +/** + * @typedef Cgst + * @property {number} [percent] + * @property {number} [value] + */ + +/** + * @typedef CompanyDetail + * @property {string} [address] + * @property {string} [cin] + * @property {string} [city] + * @property {string} [country] + * @property {string} [country_code] + * @property {string} [email] + * @property {string} [gstin] + * @property {string} [name] + * @property {string} [pan] + * @property {string} [phone_no] + * @property {string} [state] + * @property {string} [state_code] + * @property {string} [website_url] + * @property {number} [zip_code] + */ + /** * @typedef CompleteResponse * @property {string} _id * @property {CDN} cdn + * @property {number} company_id * @property {string} content_type + * @property {CreatedBy} [created_by] * @property {string} created_on * @property {string} file_name * @property {string} file_path @@ -41,26 +62,58 @@ const Joi = require("joi"); * @property {Upload} upload */ +/** + * @typedef ConversionRate + * @property {string} [base] + * @property {Rates} [rates] + * @property {number} [timestamp] + */ + /** * @typedef CopyFiles * @property {DestinationNamespace} destination - * @property {string[]} urls + * @property {string[]} [urls] */ /** - * @typedef DbRecord - * @property {string} _id - * @property {CDN} cdn - * @property {string} content_type - * @property {string} created_on - * @property {string} file_name - * @property {string} file_path - * @property {string} modified_on - * @property {string} namespace - * @property {string} [operation] - * @property {boolean} success - * @property {string[]} tags - * @property {Upload} upload + * @typedef CreatedBy + * @property {string} [username] + */ + +/** + * @typedef CustomerBillingDetail + * @property {string} [address] + * @property {string} [city] + * @property {string} [country] + * @property {string} [country_code] + * @property {string} [gstin] + * @property {string} [name] + * @property {string} [phone_no] + * @property {string} [state] + * @property {string} [state_code] + * @property {string} [zip_code] + */ + +/** + * @typedef CustomerShippingDetail + * @property {string} [address] + * @property {string} [city] + * @property {string} [country] + * @property {string} [country_code] + * @property {string} [gstin] + * @property {string} [name] + * @property {string} [phone_no] + * @property {string} [state] + * @property {string} [state_code] + * @property {string} [zip_code] + */ + +/** + * @typedef DeliveryPartnerDetail + * @property {string} [awb_number] + * @property {string} [awb_number_barcode] + * @property {string} [eway_bill_number] + * @property {string} [name] */ /** @@ -69,11 +122,72 @@ const Joi = require("joi"); */ /** - * @typedef DummyTemplateDataItems + * @typedef DigitalsignatureGenerator + * @property {Kwargs} [kwargs] + * @property {string} [method] + */ + +/** + * @typedef Document * @property {number} [__v] * @property {string} [_id] - * @property {Object} payload + * @property {string} [country_code] + * @property {string} [format] * @property {number} [pdf_type_id] + * @property {string} [template] + */ + +/** + * @typedef DummyTemplateData + * @property {number} [__v] + * @property {string} [_id] + * @property {DummyTemplateDataPayload} payload + * @property {number} [pdf_type_id] + */ + +/** + * @typedef DummyTemplateDataItems + * @property {DummyTemplateData[]} data + * @property {boolean} success + */ + +/** + * @typedef DummyTemplateDataPayload + * @property {number} [amount_paid] + * @property {number} [amount_to_be_collected] + * @property {string} [app_domain_name] + * @property {string} [awb_number_barcode] + * @property {string} [brand_logo] + * @property {CompanyDetail} [company_detail] + * @property {ConversionRate} [conversion_rate] + * @property {string} [currency_code] + * @property {CustomerBillingDetail} [customer_billing_detail] + * @property {CustomerShippingDetail} [customer_shipping_detail] + * @property {string[]} [declaration_texts] + * @property {DeliveryPartnerDetail} [delivery_partner_detail] + * @property {string} [digitalsignature] + * @property {string} [disclaimer] + * @property {Image} [image] + * @property {InvoiceDetail} [invoice_detail] + * @property {boolean} [is_international] + * @property {boolean} [is_self_pickup] + * @property {boolean} [is_self_ship] + * @property {Meta} [meta] + * @property {string} [mode] + * @property {PaymentData[]} [payments] + * @property {string} [platform_name] + * @property {ProductTable} [product_table] + * @property {RegisteredCompanyDetail} [registered_company_detail] + * @property {ReturnDetail} [return_detail] + * @property {string} [shipment_id] + * @property {string} [shipment_id_barcode] + * @property {string} [signed_qrcode] + * @property {StoreDetail} [store_detail] + * @property {TaxTable} [tax_table] + * @property {number} [total_items] + * @property {string} [uid] + * @property {string} [upi_qrcode] + * @property {Object[]} [waybills] */ /** @@ -82,47 +196,189 @@ const Joi = require("joi"); */ /** - * @typedef File - * @property {FileSrc} src + * @typedef Igst + * @property {number} [percent] + * @property {number} [value] */ /** - * @typedef FileSrc - * @property {string} [method] - * @property {string} [namespace] - * @property {string} url + * @typedef Image + * @property {string} [sales_channel_logo] */ /** - * @typedef FilesSuccess - * @property {File} [file] - * @property {boolean} success + * @typedef Inr + * @property {string} [name] + * @property {string} [sub_unit] + * @property {string} [symbol] + * @property {number} [value] */ /** - * @typedef InvoiceTypesResponse + * @typedef InvoiceDetail + * @property {string} [external_order_id] + * @property {string} [invoice_date] + * @property {string} [invoice_id] + * @property {string} [irn] + * @property {string} [shipment_id] + * @property {string} [signed_qrcode] + * @property {string} [upi_qrcode] + */ + +/** + * @typedef InvoiceTypesDataResponse * @property {number} __v * @property {string} _id + * @property {string} [country_code] * @property {string[]} format * @property {string} name * @property {number} pdf_type_id - * @property {Object} schema + * @property {boolean} [status] * @property {boolean} visibility */ /** - * @typedef Page - * @property {number} [current] - * @property {boolean} [has_next] - * @property {boolean} [has_previous] - * @property {number} [item_total] - * @property {string} [next_id] - * @property {number} [size] - * @property {string} type + * @typedef InvoiceTypesResponse + * @property {InvoiceTypesDataResponse[]} data + * @property {boolean} success + */ + +/** + * @typedef ItemsProductTable + * @property {Brand} [brand] + * @property {number} [discount] + * @property {string} [hsn_code] + * @property {string} [item_code] + * @property {number} [mrp] + * @property {string} [name] + * @property {string} [seller_identifier] + * @property {string} [size] + * @property {Tax} [tax] + * @property {number} [taxable_amount] + * @property {number} [total] + * @property {number} [total_taxable_amount] + * @property {number} [total_units] + */ + +/** + * @typedef Kwargs + * @property {string} [value] + */ + +/** + * @typedef KwargsAwbNumber + * @property {Object[]} [value] + */ + +/** + * @typedef KwargsUpiQrcode + * @property {string} [qr_data] + * @property {string} [qr_url] + */ + +/** + * @typedef Meta + * @property {MetaProperty} [generator] + */ + +/** + * @typedef MetaProperty + * @property {AwbNumberLabelBarcodeGenerator} [awb_number_label_barcode_generator] + * @property {DigitalsignatureGenerator} [digitalsignature_generator] + * @property {ShipmentIdBarcodeGenerator} [shipment_id_barcode_generator] + * @property {SignedQrcodeGenerator} [signed_qrcode_generator] + * @property {UpiQrcodeGenerator} [upi_qrcode_generator] + */ + +/** + * @typedef Params + * @property {string} [subpath] - The subpath for the file. + */ + +/** + * @typedef PaymentData + * @property {number} [amount] + * @property {string} [date] + * @property {string} [payment_type] + * @property {string} [transaction_id] + */ + +/** + * @typedef PaymentReceiptCustomerDetails + * @property {string} [email_id] + * @property {string} [first_name] + * @property {string} [id] + * @property {string} [last_name] + * @property {string} [mobile_number] + */ + +/** + * @typedef PaymentReceiptFormat + * @property {string[]} [payment_receipt] */ /** - * @typedef pdfConfig + * @typedef PaymentReceiptMeta + * @property {string} [action] + * @property {string[]} [application_id] + * @property {number} [company_id] + * @property {number} [created_timestamp] + * @property {Object} [event] + * @property {Object} [event_trace_info] + * @property {PaymentReceiptFormat} [format] + * @property {string} [job_type] + * @property {string} [organizaton_id] + * @property {PaymentReceiptService} [service] + * @property {string} [trace] + * @property {string[]} [trace_id] + */ + +/** + * @typedef PaymentReceiptOrderDetails + * @property {number} [final_amount] + * @property {string} [final_amount_in_words] + * @property {string} [jiomart_order_id] + * @property {string} [order_created_date] + * @property {string} [order_created_time] + * @property {string} [prm_id] + * @property {string} [receipt_no] + * @property {PaymentReceiptTaxes} [taxes] + * @property {number} [total_items] + */ + +/** + * @typedef PaymentReceiptPayload + * @property {PaymentReceiptCustomerDetails} [customer_detail] + * @property {PaymentReceiptOrderDetails} [order_detail] + * @property {PaymentReceiptPayments[]} [payments] + * @property {string} [uid] + */ + +/** + * @typedef PaymentReceiptPayments + * @property {string} [payment_desc] + * @property {string} [txn_date] + */ + +/** + * @typedef PaymentReceiptRequestBody + * @property {PaymentReceiptMeta} [meta] + * @property {PaymentReceiptPayload} [payload] + */ + +/** + * @typedef PaymentReceiptService + * @property {string} [name] + */ + +/** + * @typedef PaymentReceiptTaxes + * @property {string} [gstin] + * @property {string} [pancard] + */ + +/** + * @typedef PdfConfig * @property {string} [format] - This is invoice document format such as A4, A6, POS * @property {number} [pdf_type_id] * @property {string} [template] - This is html template string @@ -130,6 +386,12 @@ const Joi = require("joi"); /** * @typedef PdfConfigSaveSuccess + * @property {PdfConfigSaveSuccessData} [data] + * @property {boolean} [success] + */ + +/** + * @typedef PdfConfigSaveSuccessData * @property {number} [__v] * @property {string} [_id] * @property {string} [application_id] @@ -141,10 +403,17 @@ const Joi = require("joi"); /** * @typedef PdfConfigSuccess + * @property {PdfConfigSuccessData[]} [data] + * @property {boolean} [success] + */ + +/** + * @typedef PdfConfigSuccessData * @property {number} [__v] * @property {string} [_id] * @property {string} [application_id] * @property {number} [company_id] + * @property {string} [country_code] * @property {string} [format] * @property {number} [pdf_type_id] * @property {string} [template] @@ -152,18 +421,67 @@ const Joi = require("joi"); /** * @typedef PdfDefaultTemplateSuccess - * @property {number} [__v] - * @property {string} [_id] - * @property {string} [format] - * @property {number} [pdf_type_id] - * @property {string} [template] + * @property {Document[]} [data] + * @property {boolean} [success] - Indicates if the request was successful. */ /** - * @typedef pdfRender - * @property {string} [format] - * @property {Object} [payload] - * @property {string} [template] + * @typedef ProductTable + * @property {number} [cod_charges] + * @property {string} [delivery_charge_text] + * @property {number} [delivery_charges] + * @property {number} [fynd_discounts] + * @property {number} [grand_total] + * @property {ItemsProductTable[]} [products] + * @property {string} [total_in_words] + * @property {number} [total_items] + */ + +/** + * @typedef Rates + * @property {Inr} [inr] + * @property {Usd} [usd] + */ + +/** + * @typedef RegisteredCompanyDetail + * @property {string} [address] + * @property {string} [city] + * @property {string} [country] + * @property {string} [country_code] + * @property {string} [state] + * @property {string} [state_code] + * @property {number} [zip_code] + */ + +/** + * @typedef ReturnDetail + * @property {string} [address] + * @property {string} [city] + * @property {string} [country] + * @property {string} [country_code] + * @property {string} [gstin] + * @property {string} [state] + * @property {string} [state_code] + * @property {string} [zip_code] + */ + +/** + * @typedef Sgst + * @property {number} [percent] + * @property {number} [value] + */ + +/** + * @typedef ShipmentIdBarcodeGenerator + * @property {Kwargs} [kwargs] + * @property {string} [method] + */ + +/** + * @typedef SignedQrcodeGenerator + * @property {Kwargs} [kwargs] + * @property {string} [method] */ /** @@ -181,7 +499,7 @@ const Joi = require("joi"); * @typedef StartRequest * @property {string} content_type * @property {string} file_name - * @property {Object} [params] + * @property {Params} [params] * @property {number} size * @property {string[]} [tags] */ @@ -201,11 +519,43 @@ const Joi = require("joi"); */ /** - * @typedef Status - * @property {number} failed - * @property {string} [result] - * @property {number} succeeded - * @property {number} total + * @typedef StoreDetail + * @property {string} [address] + * @property {string} [city] + * @property {string} [country] + * @property {string} [country_code] + * @property {string} [gstin] + * @property {string} [state] + * @property {string} [state_code] + * @property {string} [store_name] + * @property {string} [zip_code] + */ + +/** + * @typedef Tax + * @property {Cgst} [cgst] + * @property {Igst} [igst] + * @property {Sgst} [sgst] + */ + +/** + * @typedef Taxes + * @property {string} [hsn_code] + * @property {Tax} [tax] + * @property {number} [total_tax_value] + */ + +/** + * @typedef TaxTable + * @property {string} [tax_in_words] + * @property {Taxes[]} [taxes] + * @property {number} [total_tax] + */ + +/** + * @typedef UpiQrcodeGenerator + * @property {KwargsUpiQrcode} [kwargs] + * @property {string} [method] */ /** @@ -221,27 +571,28 @@ const Joi = require("joi"); * @property {string} url */ -class FileStoragePlatformModel { - /** @returns {BrowseResponse} */ - static BrowseResponse() { - return Joi.object({ - items: Joi.array().items(FileStoragePlatformModel.DbRecord()).required(), - page: FileStoragePlatformModel.Page().required(), - }); - } +/** + * @typedef Usd + * @property {string} [name] + * @property {string} [sub_unit] + * @property {string} [symbol] + * @property {number} [value] + */ - /** @returns {BulkUploadFailResponse} */ - static BulkUploadFailResponse() { +class FileStoragePlatformModel { + /** @returns {AwbNumberLabelBarcodeGenerator} */ + static AwbNumberLabelBarcodeGenerator() { return Joi.object({ - status: FileStoragePlatformModel.Status().required(), + kwargs: FileStoragePlatformModel.KwargsAwbNumber(), + method: Joi.string().allow(""), }); } - /** @returns {BulkUploadSyncMode} */ - static BulkUploadSyncMode() { + /** @returns {Brand} */ + static Brand() { return Joi.object({ - files: Joi.array().items(FileStoragePlatformModel.FilesSuccess()), - status: FileStoragePlatformModel.Status().required(), + logo: Joi.string().allow(""), + name: Joi.string().allow(""), }); } @@ -254,12 +605,42 @@ class FileStoragePlatformModel { }); } + /** @returns {Cgst} */ + static Cgst() { + return Joi.object({ + percent: Joi.number(), + value: Joi.number(), + }); + } + + /** @returns {CompanyDetail} */ + static CompanyDetail() { + return Joi.object({ + address: Joi.string().allow(""), + cin: Joi.string().allow(""), + city: Joi.string().allow(""), + country: Joi.string().allow(""), + country_code: Joi.string().allow(""), + email: Joi.string().allow(""), + gstin: Joi.string().allow(""), + name: Joi.string().allow(""), + pan: Joi.string().allow("").allow(null), + phone_no: Joi.string().allow(""), + state: Joi.string().allow(""), + state_code: Joi.string().allow(""), + website_url: Joi.string().allow(""), + zip_code: Joi.number(), + }); + } + /** @returns {CompleteResponse} */ static CompleteResponse() { return Joi.object({ _id: Joi.string().allow("").required(), cdn: FileStoragePlatformModel.CDN().required(), + company_id: Joi.number().required(), content_type: Joi.string().allow("").required(), + created_by: FileStoragePlatformModel.CreatedBy(), created_on: Joi.string().allow("").required(), file_name: Joi.string().allow("").required(), file_path: Joi.string().allow("").required(), @@ -273,29 +654,69 @@ class FileStoragePlatformModel { }); } + /** @returns {ConversionRate} */ + static ConversionRate() { + return Joi.object({ + base: Joi.string().allow(""), + rates: FileStoragePlatformModel.Rates(), + timestamp: Joi.number(), + }); + } + /** @returns {CopyFiles} */ static CopyFiles() { return Joi.object({ destination: FileStoragePlatformModel.DestinationNamespace().required(), - urls: Joi.array().items(Joi.string().allow("")).required(), + urls: Joi.array().items(Joi.string().allow("")), }); } - /** @returns {DbRecord} */ - static DbRecord() { + /** @returns {CreatedBy} */ + static CreatedBy() { return Joi.object({ - _id: Joi.string().allow("").required(), - cdn: FileStoragePlatformModel.CDN().required(), - content_type: Joi.string().allow("").required(), - created_on: Joi.string().allow("").required(), - file_name: Joi.string().allow("").required(), - file_path: Joi.string().allow("").required(), - modified_on: Joi.string().allow("").required(), - namespace: Joi.string().allow("").required(), - operation: Joi.string().allow(""), - success: Joi.boolean().required(), - tags: Joi.array().items(Joi.string().allow("")).required(), - upload: FileStoragePlatformModel.Upload().required(), + username: Joi.string().allow(""), + }); + } + + /** @returns {CustomerBillingDetail} */ + static CustomerBillingDetail() { + return Joi.object({ + address: Joi.string().allow(""), + city: Joi.string().allow(""), + country: Joi.string().allow(""), + country_code: Joi.string().allow(""), + gstin: Joi.string().allow("").allow(null), + name: Joi.string().allow(""), + phone_no: Joi.string().allow(""), + state: Joi.string().allow(""), + state_code: Joi.string().allow(""), + zip_code: Joi.string().allow(""), + }); + } + + /** @returns {CustomerShippingDetail} */ + static CustomerShippingDetail() { + return Joi.object({ + address: Joi.string().allow(""), + city: Joi.string().allow(""), + country: Joi.string().allow(""), + country_code: Joi.string().allow(""), + gstin: Joi.string().allow("").allow(null), + name: Joi.string().allow(""), + phone_no: Joi.string().allow(""), + state: Joi.string().allow(""), + state_code: Joi.string().allow(""), + zip_code: Joi.string().allow(""), + }); + } + + /** @returns {DeliveryPartnerDetail} */ + static DeliveryPartnerDetail() { + return Joi.object({ + awb_number: Joi.string().allow(""), + awb_number_barcode: Joi.string().allow(""), + eway_bill_number: Joi.string().allow("").allow(null), + name: Joi.string().allow(""), }); } @@ -306,16 +727,87 @@ class FileStoragePlatformModel { }); } - /** @returns {DummyTemplateDataItems} */ - static DummyTemplateDataItems() { + /** @returns {DigitalsignatureGenerator} */ + static DigitalsignatureGenerator() { + return Joi.object({ + kwargs: FileStoragePlatformModel.Kwargs(), + method: Joi.string().allow(""), + }); + } + + /** @returns {Document} */ + static Document() { return Joi.object({ __v: Joi.number(), _id: Joi.string().allow(""), - payload: Joi.any().required(), + country_code: Joi.string().allow(""), + format: Joi.string().allow(""), + pdf_type_id: Joi.number(), + template: Joi.string().allow(""), + }); + } + + /** @returns {DummyTemplateData} */ + static DummyTemplateData() { + return Joi.object({ + __v: Joi.number(), + _id: Joi.string().allow(""), + payload: FileStoragePlatformModel.DummyTemplateDataPayload().required(), pdf_type_id: Joi.number(), }); } + /** @returns {DummyTemplateDataItems} */ + static DummyTemplateDataItems() { + return Joi.object({ + data: Joi.array() + .items(FileStoragePlatformModel.DummyTemplateData()) + .required(), + success: Joi.boolean().required(), + }); + } + + /** @returns {DummyTemplateDataPayload} */ + static DummyTemplateDataPayload() { + return Joi.object({ + amount_paid: Joi.number(), + amount_to_be_collected: Joi.number(), + app_domain_name: Joi.string().allow(""), + awb_number_barcode: Joi.string().allow(""), + brand_logo: Joi.string().allow(""), + company_detail: FileStoragePlatformModel.CompanyDetail(), + conversion_rate: FileStoragePlatformModel.ConversionRate(), + currency_code: Joi.string().allow(""), + customer_billing_detail: FileStoragePlatformModel.CustomerBillingDetail(), + customer_shipping_detail: FileStoragePlatformModel.CustomerShippingDetail(), + declaration_texts: Joi.array().items(Joi.string().allow("")), + delivery_partner_detail: FileStoragePlatformModel.DeliveryPartnerDetail(), + digitalsignature: Joi.string().allow(""), + disclaimer: Joi.string().allow(""), + image: FileStoragePlatformModel.Image(), + invoice_detail: FileStoragePlatformModel.InvoiceDetail(), + is_international: Joi.boolean(), + is_self_pickup: Joi.boolean(), + is_self_ship: Joi.boolean(), + meta: FileStoragePlatformModel.Meta(), + mode: Joi.string().allow(""), + payments: Joi.array().items(FileStoragePlatformModel.PaymentData()), + platform_name: Joi.string().allow(""), + product_table: FileStoragePlatformModel.ProductTable(), + registered_company_detail: FileStoragePlatformModel.RegisteredCompanyDetail(), + return_detail: FileStoragePlatformModel.ReturnDetail(), + shipment_id: Joi.string().allow(""), + shipment_id_barcode: Joi.string().allow(""), + signed_qrcode: Joi.string().allow(""), + store_detail: FileStoragePlatformModel.StoreDetail(), + tax_table: FileStoragePlatformModel.TaxTable(), + total_items: Joi.number(), + uid: Joi.string().allow(""), + upi_qrcode: Joi.string().allow(""), + waybills: Joi.array().items(Joi.any()), + }); + } + /** @returns {FailedResponse} */ static FailedResponse() { return Joi.object({ @@ -323,58 +815,240 @@ class FileStoragePlatformModel { }); } - /** @returns {File} */ - static File() { + /** @returns {Igst} */ + static Igst() { return Joi.object({ - src: FileStoragePlatformModel.FileSrc().required(), + percent: Joi.number(), + value: Joi.number(), }); } - /** @returns {FileSrc} */ - static FileSrc() { + /** @returns {Image} */ + static Image() { return Joi.object({ - method: Joi.string().allow(""), - namespace: Joi.string().allow(""), - url: Joi.string().allow("").required(), + sales_channel_logo: Joi.string().allow(""), }); } - /** @returns {FilesSuccess} */ - static FilesSuccess() { + /** @returns {Inr} */ + static Inr() { return Joi.object({ - file: FileStoragePlatformModel.File(), - success: Joi.boolean().required(), + name: Joi.string().allow(""), + sub_unit: Joi.string().allow(""), + symbol: Joi.string().allow(""), + value: Joi.number(), }); } - /** @returns {InvoiceTypesResponse} */ - static InvoiceTypesResponse() { + /** @returns {InvoiceDetail} */ + static InvoiceDetail() { + return Joi.object({ + external_order_id: Joi.string().allow(""), + invoice_date: Joi.string().allow(""), + invoice_id: Joi.string().allow(""), + irn: Joi.string().allow(""), + shipment_id: Joi.string().allow(""), + signed_qrcode: Joi.string().allow(""), + upi_qrcode: Joi.string().allow(""), + }); + } + + /** @returns {InvoiceTypesDataResponse} */ + static InvoiceTypesDataResponse() { return Joi.object({ __v: Joi.number().required(), _id: Joi.string().allow("").required(), + country_code: Joi.string().allow(""), format: Joi.array().items(Joi.string().allow("")).required(), name: Joi.string().allow("").required(), pdf_type_id: Joi.number().required(), - schema: Joi.any().required(), + status: Joi.boolean(), visibility: Joi.boolean().required(), }); } - /** @returns {Page} */ - static Page() { + /** @returns {InvoiceTypesResponse} */ + static InvoiceTypesResponse() { + return Joi.object({ + data: Joi.array() + .items(FileStoragePlatformModel.InvoiceTypesDataResponse()) + .required(), + success: Joi.boolean().required(), + }); + } + + /** @returns {ItemsProductTable} */ + static ItemsProductTable() { + return Joi.object({ + brand: FileStoragePlatformModel.Brand(), + discount: Joi.number(), + hsn_code: Joi.string().allow(""), + item_code: Joi.string().allow(""), + mrp: Joi.number(), + name: Joi.string().allow(""), + seller_identifier: Joi.string().allow(""), + size: Joi.string().allow(""), + tax: FileStoragePlatformModel.Tax(), + taxable_amount: Joi.number(), + total: Joi.number(), + total_taxable_amount: Joi.number(), + total_units: Joi.number(), + }); + } + + /** @returns {Kwargs} */ + static Kwargs() { + return Joi.object({ + value: Joi.string().allow(""), + }); + } + + /** @returns {KwargsAwbNumber} */ + static KwargsAwbNumber() { + return Joi.object({ + value: Joi.array().items(Joi.any()), + }); + } + + /** @returns {KwargsUpiQrcode} */ + static KwargsUpiQrcode() { + return Joi.object({ + qr_data: Joi.string().allow(""), + qr_url: Joi.string().allow(""), + }); + } + + /** @returns {Meta} */ + static Meta() { + return Joi.object({ + generator: FileStoragePlatformModel.MetaProperty(), + }); + } + + /** @returns {MetaProperty} */ + static MetaProperty() { + return Joi.object({ + awb_number_label_barcode_generator: FileStoragePlatformModel.AwbNumberLabelBarcodeGenerator(), + digitalsignature_generator: FileStoragePlatformModel.DigitalsignatureGenerator(), + shipment_id_barcode_generator: FileStoragePlatformModel.ShipmentIdBarcodeGenerator(), + signed_qrcode_generator: FileStoragePlatformModel.SignedQrcodeGenerator(), + upi_qrcode_generator: FileStoragePlatformModel.UpiQrcodeGenerator(), + }); + } + + /** @returns {Params} */ + static Params() { + return Joi.object({ + subpath: Joi.string().allow(""), + }); + } + + /** @returns {PaymentData} */ + static PaymentData() { + return Joi.object({ + amount: Joi.number(), + date: Joi.string().allow(""), + payment_type: Joi.string().allow(""), + transaction_id: Joi.string().allow(""), + }); + } + + /** @returns {PaymentReceiptCustomerDetails} */ + static PaymentReceiptCustomerDetails() { + return Joi.object({ + email_id: Joi.string().allow(""), + first_name: Joi.string().allow(""), + id: Joi.string().allow(""), + last_name: Joi.string().allow(""), + mobile_number: Joi.string().allow(""), + }); + } + + /** @returns {PaymentReceiptFormat} */ + static PaymentReceiptFormat() { + return Joi.object({ + payment_receipt: Joi.array().items(Joi.string().allow("")), + }); + } + + /** @returns {PaymentReceiptMeta} */ + static PaymentReceiptMeta() { + return Joi.object({ + action: Joi.string().allow(""), + application_id: Joi.array().items(Joi.string().allow("")), + company_id: Joi.number(), + created_timestamp: Joi.number(), + event: Joi.any(), + event_trace_info: Joi.any(), + format: FileStoragePlatformModel.PaymentReceiptFormat(), + job_type: Joi.string().allow(""), + organizaton_id: Joi.string().allow(""), + service: FileStoragePlatformModel.PaymentReceiptService(), + trace: Joi.string().allow(""), + trace_id: Joi.array().items(Joi.string().allow("")), + }); + } + + /** @returns {PaymentReceiptOrderDetails} */ + static PaymentReceiptOrderDetails() { + return Joi.object({ + final_amount: Joi.number(), + final_amount_in_words: Joi.string().allow(""), + jiomart_order_id: Joi.string().allow(""), + order_created_date: Joi.string().allow(""), + order_created_time: Joi.string().allow(""), + prm_id: Joi.string().allow(""), + receipt_no: Joi.string().allow(""), + taxes: FileStoragePlatformModel.PaymentReceiptTaxes(), + total_items: Joi.number(), + }); + } + + /** @returns {PaymentReceiptPayload} */ + static PaymentReceiptPayload() { + return Joi.object({ + customer_detail: FileStoragePlatformModel.PaymentReceiptCustomerDetails(), + order_detail: FileStoragePlatformModel.PaymentReceiptOrderDetails(), + payments: Joi.array().items( + FileStoragePlatformModel.PaymentReceiptPayments() + ), + uid: Joi.string().allow(""), + }); + } + + /** @returns {PaymentReceiptPayments} */ + static PaymentReceiptPayments() { + return Joi.object({ + payment_desc: Joi.string().allow(""), + txn_date: Joi.string().allow(""), + }); + } + + /** @returns {PaymentReceiptRequestBody} */ + static PaymentReceiptRequestBody() { return Joi.object({ - current: Joi.number(), - has_next: Joi.boolean(), - has_previous: Joi.boolean(), - item_total: Joi.number(), - next_id: Joi.string().allow(""), - size: Joi.number(), - type: Joi.string().allow("").required(), + meta: FileStoragePlatformModel.PaymentReceiptMeta(), + payload: FileStoragePlatformModel.PaymentReceiptPayload(), }); } - /** @returns {pdfConfig} */ - static pdfConfig() { + /** @returns {PaymentReceiptService} */ + static PaymentReceiptService() { + return Joi.object({ + name: Joi.string().allow(""), + }); + } + + /** @returns {PaymentReceiptTaxes} */ + static PaymentReceiptTaxes() { + return Joi.object({ + gstin: Joi.string().allow(""), + pancard: Joi.string().allow(""), + }); + } + + /** @returns {PdfConfig} */ + static PdfConfig() { return Joi.object({ format: Joi.string().allow(""), pdf_type_id: Joi.number(), @@ -384,6 +1058,14 @@ class FileStoragePlatformModel { /** @returns {PdfConfigSaveSuccess} */ static PdfConfigSaveSuccess() { + return Joi.object({ + data: FileStoragePlatformModel.PdfConfigSaveSuccessData(), + success: Joi.boolean(), + }); + } + + /** @returns {PdfConfigSaveSuccessData} */ + static PdfConfigSaveSuccessData() { return Joi.object({ __v: Joi.number(), _id: Joi.string().allow(""), @@ -397,11 +1079,20 @@ class FileStoragePlatformModel { /** @returns {PdfConfigSuccess} */ static PdfConfigSuccess() { + return Joi.object({ + data: Joi.array().items(FileStoragePlatformModel.PdfConfigSuccessData()), + success: Joi.boolean(), + }); + } + + /** @returns {PdfConfigSuccessData} */ + static PdfConfigSuccessData() { return Joi.object({ __v: Joi.number(), _id: Joi.string().allow(""), application_id: Joi.string().allow(""), company_id: Joi.number(), + country_code: Joi.string().allow(""), format: Joi.string().allow(""), pdf_type_id: Joi.number(), template: Joi.string().allow(""), @@ -411,20 +1102,81 @@ class FileStoragePlatformModel { /** @returns {PdfDefaultTemplateSuccess} */ static PdfDefaultTemplateSuccess() { return Joi.object({ - __v: Joi.number(), - _id: Joi.string().allow(""), - format: Joi.string().allow(""), - pdf_type_id: Joi.number(), - template: Joi.string().allow(""), + data: Joi.array().items(FileStoragePlatformModel.Document()), + success: Joi.boolean(), }); } - /** @returns {pdfRender} */ - static pdfRender() { + /** @returns {ProductTable} */ + static ProductTable() { return Joi.object({ - format: Joi.string().allow(""), - payload: Joi.any(), - template: Joi.string().allow(""), + cod_charges: Joi.number(), + delivery_charge_text: Joi.string().allow(""), + delivery_charges: Joi.number(), + fynd_discounts: Joi.number(), + grand_total: Joi.number(), + products: Joi.array().items(FileStoragePlatformModel.ItemsProductTable()), + total_in_words: Joi.string().allow(""), + total_items: Joi.number(), + }); + } + + /** @returns {Rates} */ + static Rates() { + return Joi.object({ + inr: FileStoragePlatformModel.Inr(), + usd: FileStoragePlatformModel.Usd(), + }); + } + + /** @returns {RegisteredCompanyDetail} */ + static RegisteredCompanyDetail() { + return Joi.object({ + address: Joi.string().allow(""), + city: Joi.string().allow(""), + country: Joi.string().allow(""), + country_code: Joi.string().allow(""), + state: Joi.string().allow(""), + state_code: Joi.string().allow(""), + zip_code: Joi.number(), + }); + } + + /** @returns {ReturnDetail} */ + static ReturnDetail() { + return Joi.object({ + address: Joi.string().allow(""), + city: Joi.string().allow(""), + country: Joi.string().allow(""), + country_code: Joi.string().allow("").allow(null), + gstin: Joi.string().allow(""), + state: Joi.string().allow(""), + state_code: Joi.string().allow(""), + zip_code: Joi.string().allow(""), + }); + } + + /** @returns {Sgst} */ + static Sgst() { + return Joi.object({ + percent: Joi.number(), + value: Joi.number(), + }); + } + + /** @returns {ShipmentIdBarcodeGenerator} */ + static ShipmentIdBarcodeGenerator() { + return Joi.object({ + kwargs: FileStoragePlatformModel.Kwargs(), + method: Joi.string().allow(""), + }); + } + + /** @returns {SignedQrcodeGenerator} */ + static SignedQrcodeGenerator() { + return Joi.object({ + kwargs: FileStoragePlatformModel.Kwargs(), + method: Joi.string().allow(""), }); } @@ -448,7 +1200,7 @@ class FileStoragePlatformModel { return Joi.object({ content_type: Joi.string().allow("").required(), file_name: Joi.string().allow("").required(), - params: Joi.any(), + params: FileStoragePlatformModel.Params(), size: Joi.number().required(), tags: Joi.array().items(Joi.string().allow("")), }); @@ -470,13 +1222,53 @@ class FileStoragePlatformModel { }); } - /** @returns {Status} */ - static Status() { + /** @returns {StoreDetail} */ + static StoreDetail() { + return Joi.object({ + address: Joi.string().allow(""), + city: Joi.string().allow(""), + country: Joi.string().allow(""), + country_code: Joi.string().allow(""), + gstin: Joi.string().allow(""), + state: Joi.string().allow(""), + state_code: Joi.string().allow(""), + store_name: Joi.string().allow(""), + zip_code: Joi.string().allow(""), + }); + } + + /** @returns {Tax} */ + static Tax() { return Joi.object({ - failed: Joi.number().required(), - result: Joi.string().allow(""), - succeeded: Joi.number().required(), - total: Joi.number().required(), + cgst: FileStoragePlatformModel.Cgst(), + igst: FileStoragePlatformModel.Igst(), + sgst: FileStoragePlatformModel.Sgst(), + }); + } + + /** @returns {Taxes} */ + static Taxes() { + return Joi.object({ + hsn_code: Joi.string().allow(""), + tax: FileStoragePlatformModel.Tax(), + total_tax_value: Joi.number(), + }); + } + + /** @returns {TaxTable} */ + static TaxTable() { + return Joi.object({ + tax_in_words: Joi.string().allow(""), + taxes: Joi.array().items(FileStoragePlatformModel.Taxes()), + total_tax: Joi.number(), + }); + } + + /** @returns {UpiQrcodeGenerator} */ + static UpiQrcodeGenerator() { + return Joi.object({ + kwargs: FileStoragePlatformModel.KwargsUpiQrcode(), + method: Joi.string().allow(""), }); } @@ -496,5 +1288,15 @@ class FileStoragePlatformModel { url: Joi.string().allow("").required(), }); } + + /** @returns {Usd} */ + static Usd() { + return Joi.object({ + name: Joi.string().allow(""), + sub_unit: Joi.string().allow(""), + symbol: Joi.string().allow(""), + value: Joi.number(), + }); + } } module.exports = FileStoragePlatformModel; diff --git a/sdk/platform/Order/OrderPlatformClient.d.ts b/sdk/platform/Order/OrderPlatformClient.d.ts index a4f75e59a..61ae56546 100644 --- a/sdk/platform/Order/OrderPlatformClient.d.ts +++ b/sdk/platform/Order/OrderPlatformClient.d.ts @@ -240,7 +240,7 @@ declare class Order { * will be used as the target for the search operation * @param {string} [arg.bagStatus] - Bag_status refers to status of the * entity. Filters orders based on the status. - * @param {string} [arg.timeToDispatch] - Time_to_dispatch refers to + * @param {number} [arg.timeToDispatch] - Time_to_dispatch refers to * estimated SLA time. * @param {string} [arg.paymentMethods] - * @param {string} [arg.tags] - Tags refers to additional descriptive labels @@ -268,7 +268,7 @@ declare class Order { lane?: string; searchType?: string; bagStatus?: string; - timeToDispatch?: string; + timeToDispatch?: number; paymentMethods?: string; tags?: string; searchValue?: string; diff --git a/sdk/platform/Order/OrderPlatformClient.js b/sdk/platform/Order/OrderPlatformClient.js index 30b4ce093..61d84372d 100644 --- a/sdk/platform/Order/OrderPlatformClient.js +++ b/sdk/platform/Order/OrderPlatformClient.js @@ -1936,7 +1936,7 @@ class Order { * will be used as the target for the search operation * @param {string} [arg.bagStatus] - Bag_status refers to status of the * entity. Filters orders based on the status. - * @param {string} [arg.timeToDispatch] - Time_to_dispatch refers to + * @param {number} [arg.timeToDispatch] - Time_to_dispatch refers to * estimated SLA time. * @param {string} [arg.paymentMethods] - * @param {string} [arg.tags] - Tags refers to additional descriptive labels diff --git a/sdk/platform/Order/OrderPlatformModel.d.ts b/sdk/platform/Order/OrderPlatformModel.d.ts index ff3408494..890712fd4 100644 --- a/sdk/platform/Order/OrderPlatformModel.d.ts +++ b/sdk/platform/Order/OrderPlatformModel.d.ts @@ -1180,7 +1180,7 @@ export = OrderPlatformModel; /** * @typedef OrderBrandName * @property {string} [brand_name] - * @property {number} company + * @property {number} [company] * @property {string} [created_on] * @property {number} id * @property {string} [logo] @@ -1879,6 +1879,7 @@ export = OrderPlatformModel; * @property {Formatted} [formatted] * @property {string} [fulfilment_priority_text] * @property {boolean} [is_international] + * @property {boolean} [is_self_ship] * @property {LockData} [lock_data] * @property {string} [order_type] * @property {string} [packaging_name] @@ -1927,12 +1928,14 @@ export = OrderPlatformModel; * @property {string} [dp_sort_key] * @property {string} [due_date] * @property {EinvoiceInfo} [einvoice_info] + * @property {string} [estimated_delivery_date] * @property {Object} [ewaybill_info] * @property {Object} [external] * @property {Formatted} [formatted] * @property {string} [forward_affiliate_order_id] * @property {string} [forward_affiliate_shipment_id] * @property {string} [fulfilment_priority_text] + * @property {boolean} [is_self_ship] * @property {LockData} [lock_data] * @property {string} [marketplace_store_id] * @property {string} [order_type] @@ -1951,6 +1954,7 @@ export = OrderPlatformModel; * @property {number} [shipment_weight] * @property {string} [store_invoice_updated_date] * @property {ShipmentTimeStamp} [timestamp] + * @property {string} [tracking_url] * @property {number} weight */ /** @@ -3836,7 +3840,7 @@ type OrderBags = { declare function OrderBrandName(): OrderBrandName; type OrderBrandName = { brand_name?: string; - company: number; + company?: number; created_on?: string; id: number; logo?: string; @@ -4661,6 +4665,7 @@ type ShipmentItemMeta = { formatted?: Formatted; fulfilment_priority_text?: string; is_international?: boolean; + is_self_ship?: boolean; lock_data?: LockData; order_type?: string; packaging_name?: string; @@ -4712,12 +4717,14 @@ type ShipmentMeta = { dp_sort_key?: string; due_date?: string; einvoice_info?: EinvoiceInfo; + estimated_delivery_date?: string; ewaybill_info?: any; external?: any; formatted?: Formatted; forward_affiliate_order_id?: string; forward_affiliate_shipment_id?: string; fulfilment_priority_text?: string; + is_self_ship?: boolean; lock_data?: LockData; marketplace_store_id?: string; order_type?: string; @@ -4736,6 +4743,7 @@ type ShipmentMeta = { shipment_weight?: number; store_invoice_updated_date?: string; timestamp?: ShipmentTimeStamp; + tracking_url?: string; weight: number; }; /** @returns {ShipmentPayments} */ diff --git a/sdk/platform/Order/OrderPlatformModel.js b/sdk/platform/Order/OrderPlatformModel.js index 86e8b9c15..5c17cffca 100644 --- a/sdk/platform/Order/OrderPlatformModel.js +++ b/sdk/platform/Order/OrderPlatformModel.js @@ -1309,7 +1309,7 @@ const Joi = require("joi"); /** * @typedef OrderBrandName * @property {string} [brand_name] - * @property {number} company + * @property {number} [company] * @property {string} [created_on] * @property {number} id * @property {string} [logo] @@ -2083,6 +2083,7 @@ const Joi = require("joi"); * @property {Formatted} [formatted] * @property {string} [fulfilment_priority_text] * @property {boolean} [is_international] + * @property {boolean} [is_self_ship] * @property {LockData} [lock_data] * @property {string} [order_type] * @property {string} [packaging_name] @@ -2134,12 +2135,14 @@ const Joi = require("joi"); * @property {string} [dp_sort_key] * @property {string} [due_date] * @property {EinvoiceInfo} [einvoice_info] + * @property {string} [estimated_delivery_date] * @property {Object} [ewaybill_info] * @property {Object} [external] * @property {Formatted} [formatted] * @property {string} [forward_affiliate_order_id] * @property {string} [forward_affiliate_shipment_id] * @property {string} [fulfilment_priority_text] + * @property {boolean} [is_self_ship] * @property {LockData} [lock_data] * @property {string} [marketplace_store_id] * @property {string} [order_type] @@ -2158,6 +2161,7 @@ const Joi = require("joi"); * @property {number} [shipment_weight] * @property {string} [store_invoice_updated_date] * @property {ShipmentTimeStamp} [timestamp] + * @property {string} [tracking_url] * @property {number} weight */ @@ -4183,7 +4187,7 @@ class OrderPlatformModel { static OrderBrandName() { return Joi.object({ brand_name: Joi.string().allow("").allow(null), - company: Joi.number().allow(null).required(), + company: Joi.number().allow(null), created_on: Joi.string().allow("").allow(null), id: Joi.number().required(), logo: Joi.string().allow("").allow(null), @@ -5119,6 +5123,7 @@ class OrderPlatformModel { formatted: OrderPlatformModel.Formatted(), fulfilment_priority_text: Joi.string().allow("").allow(null), is_international: Joi.boolean().allow(null), + is_self_ship: Joi.boolean().allow(null), lock_data: OrderPlatformModel.LockData(), order_type: Joi.string().allow("").allow(null), packaging_name: Joi.string().allow("").allow(null), @@ -5176,12 +5181,14 @@ class OrderPlatformModel { dp_sort_key: Joi.string().allow("").allow(null), due_date: Joi.string().allow("").allow(null), einvoice_info: OrderPlatformModel.EinvoiceInfo(), + estimated_delivery_date: Joi.string().allow("").allow(null), ewaybill_info: Joi.any().allow(null), external: Joi.any().allow(null), formatted: OrderPlatformModel.Formatted(), forward_affiliate_order_id: Joi.string().allow("").allow(null), forward_affiliate_shipment_id: Joi.string().allow("").allow(null), fulfilment_priority_text: Joi.string().allow("").allow(null), + is_self_ship: Joi.boolean().allow(null), lock_data: OrderPlatformModel.LockData(), marketplace_store_id: Joi.string().allow("").allow(null), order_type: Joi.string().allow("").allow(null), @@ -5200,6 +5207,7 @@ class OrderPlatformModel { shipment_weight: Joi.number().allow(null), store_invoice_updated_date: Joi.string().allow("").allow(null), timestamp: OrderPlatformModel.ShipmentTimeStamp(), + tracking_url: Joi.string().allow("").allow(null), weight: Joi.number().required(), }); } diff --git a/sdk/platform/Order/OrderPlatformValidator.d.ts b/sdk/platform/Order/OrderPlatformValidator.d.ts index 898d9fed0..47700f042 100644 --- a/sdk/platform/Order/OrderPlatformValidator.d.ts +++ b/sdk/platform/Order/OrderPlatformValidator.d.ts @@ -112,7 +112,7 @@ export = OrderPlatformValidator; * @property {string} [searchType] * @property {string} [searchValue] * @property {string} [tags] - * @property {string} [timeToDispatch] + * @property {number} [timeToDispatch] * @property {string} [paymentMethods] * @property {boolean} [myOrders] * @property {boolean} [showCrossCompanyData] - Flag to view cross & non-cross @@ -131,7 +131,7 @@ export = OrderPlatformValidator; * be used as the target for the search operation * @property {string} [bagStatus] - Bag_status refers to status of the entity. * Filters orders based on the status. - * @property {string} [timeToDispatch] - Time_to_dispatch refers to estimated SLA time. + * @property {number} [timeToDispatch] - Time_to_dispatch refers to estimated SLA time. * @property {string} [paymentMethods] * @property {string} [tags] - Tags refers to additional descriptive labels * associated with the order @@ -588,7 +588,7 @@ type GetLaneConfigParam = { searchType?: string; searchValue?: string; tags?: string; - timeToDispatch?: string; + timeToDispatch?: number; paymentMethods?: string; myOrders?: boolean; /** @@ -620,7 +620,7 @@ type GetOrdersParam = { /** * - Time_to_dispatch refers to estimated SLA time. */ - timeToDispatch?: string; + timeToDispatch?: number; paymentMethods?: string; /** * - Tags refers to additional descriptive labels diff --git a/sdk/platform/Order/OrderPlatformValidator.js b/sdk/platform/Order/OrderPlatformValidator.js index f7d187017..ef93b9fd7 100644 --- a/sdk/platform/Order/OrderPlatformValidator.js +++ b/sdk/platform/Order/OrderPlatformValidator.js @@ -134,7 +134,7 @@ const OrderPlatformModel = require("./OrderPlatformModel"); * @property {string} [searchType] * @property {string} [searchValue] * @property {string} [tags] - * @property {string} [timeToDispatch] + * @property {number} [timeToDispatch] * @property {string} [paymentMethods] * @property {boolean} [myOrders] * @property {boolean} [showCrossCompanyData] - Flag to view cross & non-cross @@ -155,7 +155,7 @@ const OrderPlatformModel = require("./OrderPlatformModel"); * be used as the target for the search operation * @property {string} [bagStatus] - Bag_status refers to status of the entity. * Filters orders based on the status. - * @property {string} [timeToDispatch] - Time_to_dispatch refers to estimated SLA time. + * @property {number} [timeToDispatch] - Time_to_dispatch refers to estimated SLA time. * @property {string} [paymentMethods] * @property {string} [tags] - Tags refers to additional descriptive labels * associated with the order @@ -505,7 +505,7 @@ class OrderPlatformValidator { searchType: Joi.string().allow(""), searchValue: Joi.string().allow(""), tags: Joi.string().allow(""), - timeToDispatch: Joi.string().allow(""), + timeToDispatch: Joi.number(), paymentMethods: Joi.string().allow(""), myOrders: Joi.boolean(), showCrossCompanyData: Joi.boolean(), @@ -526,7 +526,7 @@ class OrderPlatformValidator { lane: Joi.string().allow(""), searchType: Joi.string().allow(""), bagStatus: Joi.string().allow(""), - timeToDispatch: Joi.string().allow(""), + timeToDispatch: Joi.number(), paymentMethods: Joi.string().allow(""), tags: Joi.string().allow(""), searchValue: Joi.string().allow(""), diff --git a/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts b/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts index dd59e0e59..44b417b2f 100644 --- a/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +++ b/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts @@ -62,6 +62,20 @@ declare class Payment { * @description: Use this API to confirm payment after payment gateway accepted payment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/confirmPayment/). */ confirmPayment({ body, requestHeaders }?: PaymentPlatformApplicationValidator.ConfirmPaymentParam, { responseHeaders }?: object): Promise; + /** + * @param {PaymentPlatformApplicationValidator.CreateMerchantRefundPriorityParam} arg + * - Arg object + * + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PlatformAPIClient").Options} - Options + * @returns {Promise} + * - Success response + * + * @name createMerchantRefundPriority + * @summary: API to create merchant refund priority + * @description: API to update merchant refund priority - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/createMerchantRefundPriority/). + */ + createMerchantRefundPriority({ configType, body, requestHeaders }?: PaymentPlatformApplicationValidator.CreateMerchantRefundPriorityParam, { responseHeaders }?: object): Promise; /** * @param {PaymentPlatformApplicationValidator.CreatePaymentLinkParam} arg * - Arg object @@ -171,6 +185,20 @@ declare class Payment { * @description: This api fetches all the available PGs for merchant and its offline payment mode details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getMerchantPaymentOption/). */ getMerchantPaymentOption({ requestHeaders }?: any, { responseHeaders }?: object): Promise; + /** + * @param {PaymentPlatformApplicationValidator.GetMerchantRefundPriorityParam} arg + * - Arg object + * + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PlatformAPIClient").Options} - Options + * @returns {Promise} + * - Success response + * + * @name getMerchantRefundPriority + * @summary: API to get merchant refund priority + * @description: API to get merchant refund priority - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getMerchantRefundPriority/). + */ + getMerchantRefundPriority({ configType, requestHeaders }?: PaymentPlatformApplicationValidator.GetMerchantRefundPriorityParam, { responseHeaders }?: object): Promise; /** * @param {PaymentPlatformApplicationValidator.GetPGConfigAggregatorsParam} arg * - Arg object @@ -438,6 +466,20 @@ declare class Payment { * @description: Use this API to map new edc device to the terminal - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updateEdcDevice/). */ updateEdcDevice({ body, requestHeaders }?: PaymentPlatformApplicationValidator.UpdateEdcDeviceParam, { responseHeaders }?: object): Promise; + /** + * @param {PaymentPlatformApplicationValidator.UpdateMerchantRefundPriorityParam} arg + * - Arg object + * + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PlatformAPIClient").Options} - Options + * @returns {Promise} + * - Success response + * + * @name updateMerchantRefundPriority + * @summary: API to update merchant refund priority + * @description: API to update merchant refund priority - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updateMerchantRefundPriority/). + */ + updateMerchantRefundPriority({ configType, body, requestHeaders }?: PaymentPlatformApplicationValidator.UpdateMerchantRefundPriorityParam, { responseHeaders }?: object): Promise; /** * @param {PaymentPlatformApplicationValidator.UpdatePaymentSessionParam} arg * - Arg object diff --git a/sdk/platform/Payment/PaymentPlatformApplicationClient.js b/sdk/platform/Payment/PaymentPlatformApplicationClient.js index 6ea34d957..5ec071628 100644 --- a/sdk/platform/Payment/PaymentPlatformApplicationClient.js +++ b/sdk/platform/Payment/PaymentPlatformApplicationClient.js @@ -398,6 +398,87 @@ class Payment { return response; } + /** + * @param {PaymentPlatformApplicationValidator.CreateMerchantRefundPriorityParam} arg + * - Arg object + * + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PlatformAPIClient").Options} - Options + * @returns {Promise} + * - Success response + * + * @name createMerchantRefundPriority + * @summary: API to create merchant refund priority + * @description: API to update merchant refund priority - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/createMerchantRefundPriority/). + */ + async createMerchantRefundPriority( + { configType, body, requestHeaders } = { requestHeaders: {} }, + { responseHeaders } = { responseHeaders: false } + ) { + const { + error, + } = PaymentPlatformApplicationValidator.createMerchantRefundPriority().validate( + { + configType, + body, + }, + { abortEarly: false, allowUnknown: true } + ); + if (error) { + return Promise.reject(new FDKClientValidationError(error)); + } + + // Showing warrnings if extra unknown parameters are found + const { + error: warrning, + } = PaymentPlatformApplicationValidator.createMerchantRefundPriority().validate( + { + configType, + body, + }, + { abortEarly: false, allowUnknown: false } + ); + if (warrning) { + Logger({ + level: "WARN", + message: `Parameter Validation warrnings for platform > Payment > createMerchantRefundPriority \n ${warrning}`, + }); + } + + const query_params = {}; + + const response = await PlatformAPIClient.execute( + this.config, + "post", + `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/refund_priority/config/${configType}`, + query_params, + body, + requestHeaders, + { responseHeaders } + ); + + let responseData = response; + if (responseHeaders) { + responseData = response[0]; + } + + const { + error: res_error, + } = PaymentPlatformModel.RefundPriorityResponseSerializer().validate( + responseData, + { abortEarly: false, allowUnknown: false } + ); + + if (res_error) { + Logger({ + level: "WARN", + message: `Response Validation Warnnings for platform > Payment > createMerchantRefundPriority \n ${res_error}`, + }); + } + + return response; + } + /** * @param {PaymentPlatformApplicationValidator.CreatePaymentLinkParam} arg * - Arg object @@ -1113,6 +1194,85 @@ class Payment { return response; } + /** + * @param {PaymentPlatformApplicationValidator.GetMerchantRefundPriorityParam} arg + * - Arg object + * + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PlatformAPIClient").Options} - Options + * @returns {Promise} + * - Success response + * + * @name getMerchantRefundPriority + * @summary: API to get merchant refund priority + * @description: API to get merchant refund priority - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getMerchantRefundPriority/). + */ + async getMerchantRefundPriority( + { configType, requestHeaders } = { requestHeaders: {} }, + { responseHeaders } = { responseHeaders: false } + ) { + const { + error, + } = PaymentPlatformApplicationValidator.getMerchantRefundPriority().validate( + { + configType, + }, + { abortEarly: false, allowUnknown: true } + ); + if (error) { + return Promise.reject(new FDKClientValidationError(error)); + } + + // Showing warrnings if extra unknown parameters are found + const { + error: warrning, + } = PaymentPlatformApplicationValidator.getMerchantRefundPriority().validate( + { + configType, + }, + { abortEarly: false, allowUnknown: false } + ); + if (warrning) { + Logger({ + level: "WARN", + message: `Parameter Validation warrnings for platform > Payment > getMerchantRefundPriority \n ${warrning}`, + }); + } + + const query_params = {}; + + const response = await PlatformAPIClient.execute( + this.config, + "get", + `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/refund_priority/config/${configType}`, + query_params, + undefined, + requestHeaders, + { responseHeaders } + ); + + let responseData = response; + if (responseHeaders) { + responseData = response[0]; + } + + const { + error: res_error, + } = PaymentPlatformModel.RefundPriorityResponseSerializer().validate( + responseData, + { abortEarly: false, allowUnknown: false } + ); + + if (res_error) { + Logger({ + level: "WARN", + message: `Response Validation Warnnings for platform > Payment > getMerchantRefundPriority \n ${res_error}`, + }); + } + + return response; + } + /** * @param {PaymentPlatformApplicationValidator.GetPGConfigAggregatorsParam} arg * - Arg object @@ -2848,6 +3008,87 @@ class Payment { return response; } + /** + * @param {PaymentPlatformApplicationValidator.UpdateMerchantRefundPriorityParam} arg + * - Arg object + * + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PlatformAPIClient").Options} - Options + * @returns {Promise} + * - Success response + * + * @name updateMerchantRefundPriority + * @summary: API to update merchant refund priority + * @description: API to update merchant refund priority - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updateMerchantRefundPriority/). + */ + async updateMerchantRefundPriority( + { configType, body, requestHeaders } = { requestHeaders: {} }, + { responseHeaders } = { responseHeaders: false } + ) { + const { + error, + } = PaymentPlatformApplicationValidator.updateMerchantRefundPriority().validate( + { + configType, + body, + }, + { abortEarly: false, allowUnknown: true } + ); + if (error) { + return Promise.reject(new FDKClientValidationError(error)); + } + + // Showing warrnings if extra unknown parameters are found + const { + error: warrning, + } = PaymentPlatformApplicationValidator.updateMerchantRefundPriority().validate( + { + configType, + body, + }, + { abortEarly: false, allowUnknown: false } + ); + if (warrning) { + Logger({ + level: "WARN", + message: `Parameter Validation warrnings for platform > Payment > updateMerchantRefundPriority \n ${warrning}`, + }); + } + + const query_params = {}; + + const response = await PlatformAPIClient.execute( + this.config, + "put", + `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/refund_priority/config/${configType}`, + query_params, + body, + requestHeaders, + { responseHeaders } + ); + + let responseData = response; + if (responseHeaders) { + responseData = response[0]; + } + + const { + error: res_error, + } = PaymentPlatformModel.RefundPriorityResponseSerializer().validate( + responseData, + { abortEarly: false, allowUnknown: false } + ); + + if (res_error) { + Logger({ + level: "WARN", + message: `Response Validation Warnnings for platform > Payment > updateMerchantRefundPriority \n ${res_error}`, + }); + } + + return response; + } + /** * @param {PaymentPlatformApplicationValidator.UpdatePaymentSessionParam} arg * - Arg object diff --git a/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts b/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts index a41a15756..63cc4cac9 100644 --- a/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +++ b/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts @@ -20,6 +20,11 @@ export = PaymentPlatformApplicationValidator; * @typedef ConfirmPaymentParam * @property {PaymentPlatformModel.PaymentConfirmationRequest} body */ +/** + * @typedef CreateMerchantRefundPriorityParam + * @property {string} configType - Configuration for merchant or customer + * @property {PaymentPlatformModel.RefundPriorityRequestSerializer} body + */ /** * @typedef CreatePaymentLinkParam * @property {PaymentPlatformModel.CreatePaymentLinkRequest} body @@ -55,6 +60,10 @@ export = PaymentPlatformApplicationValidator; * @property {string} device */ /** @typedef GetMerchantPaymentOptionParam */ +/** + * @typedef GetMerchantRefundPriorityParam + * @property {string} configType - Configuration for merchant or customer + */ /** @typedef GetPGConfigAggregatorsParam */ /** @typedef GetPaymentCodeOptionParam */ /** @@ -153,6 +162,11 @@ export = PaymentPlatformApplicationValidator; * @typedef UpdateEdcDeviceParam * @property {PaymentPlatformModel.EdcAddRequest} body */ +/** + * @typedef UpdateMerchantRefundPriorityParam + * @property {string} configType - Configuration for merchant or customer + * @property {PaymentPlatformModel.RefundPriorityRequestSerializer} body + */ /** * @typedef UpdatePaymentSessionParam * @property {string} gid - Global identifier of the entity (e.g. order, cart @@ -184,6 +198,8 @@ declare class PaymentPlatformApplicationValidator { static checkAndUpdatePaymentStatus(): CheckAndUpdatePaymentStatusParam; /** @returns {ConfirmPaymentParam} */ static confirmPayment(): ConfirmPaymentParam; + /** @returns {CreateMerchantRefundPriorityParam} */ + static createMerchantRefundPriority(): CreateMerchantRefundPriorityParam; /** @returns {CreatePaymentLinkParam} */ static createPaymentLink(): CreatePaymentLinkParam; /** @returns {EdcAggregatorsAndModelListParam} */ @@ -202,6 +218,8 @@ declare class PaymentPlatformApplicationValidator { static getMerchantAggregatorPaymentModeDetails(): GetMerchantAggregatorPaymentModeDetailsParam; /** @returns {GetMerchantPaymentOptionParam} */ static getMerchantPaymentOption(): any; + /** @returns {GetMerchantRefundPriorityParam} */ + static getMerchantRefundPriority(): GetMerchantRefundPriorityParam; /** @returns {GetPGConfigAggregatorsParam} */ static getPGConfigAggregators(): any; /** @returns {GetPaymentCodeOptionParam} */ @@ -246,6 +264,8 @@ declare class PaymentPlatformApplicationValidator { static setUserCODlimitRoutes(): SetUserCODlimitRoutesParam; /** @returns {UpdateEdcDeviceParam} */ static updateEdcDevice(): UpdateEdcDeviceParam; + /** @returns {UpdateMerchantRefundPriorityParam} */ + static updateMerchantRefundPriority(): UpdateMerchantRefundPriorityParam; /** @returns {UpdatePaymentSessionParam} */ static updatePaymentSession(): UpdatePaymentSessionParam; /** @returns {UpdateRefundSessionParam} */ @@ -254,7 +274,7 @@ declare class PaymentPlatformApplicationValidator { static verifyCustomerForPayment(): VerifyCustomerForPaymentParam; } declare namespace PaymentPlatformApplicationValidator { - export { AddEdcDeviceParam, AddRefundBankAccountUsingOTPParam, CancelPaymentLinkParam, CheckAndUpdatePaymentStatusParam, ConfirmPaymentParam, CreatePaymentLinkParam, EdcAggregatorsAndModelListParam, EdcDeviceListParam, EdcDeviceStatsParam, GetBankAccountDetailsOpenAPIParam, GetBrandPaymentGatewayConfigParam, GetEdcDeviceParam, GetMerchantAggregatorPaymentModeDetailsParam, GetMerchantPaymentOptionParam, GetPGConfigAggregatorsParam, GetPaymentCodeOptionParam, GetPaymentLinkParam, GetPaymentModeRoutesParam, GetPosPaymentModeRoutesParam, GetUserBeneficiariesParam, GetUserCODlimitRoutesParam, GetUserOrderBeneficiariesParam, InitialisePaymentParam, MerchantOnBoardingParam, OauthGetUrlParam, PatchMerchantAggregatorPaymentModeDetailsParam, PatchMerchantPaymentOptionParam, PaymentStatusBulkParam, PollingPaymentLinkParam, RepaymentDetailsParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, RevokeOauthTokenParam, SaveBrandPaymentGatewayConfigParam, SetUserCODlimitRoutesParam, UpdateEdcDeviceParam, UpdatePaymentSessionParam, UpdateRefundSessionParam, VerifyCustomerForPaymentParam }; + export { AddEdcDeviceParam, AddRefundBankAccountUsingOTPParam, CancelPaymentLinkParam, CheckAndUpdatePaymentStatusParam, ConfirmPaymentParam, CreateMerchantRefundPriorityParam, CreatePaymentLinkParam, EdcAggregatorsAndModelListParam, EdcDeviceListParam, EdcDeviceStatsParam, GetBankAccountDetailsOpenAPIParam, GetBrandPaymentGatewayConfigParam, GetEdcDeviceParam, GetMerchantAggregatorPaymentModeDetailsParam, GetMerchantPaymentOptionParam, GetMerchantRefundPriorityParam, GetPGConfigAggregatorsParam, GetPaymentCodeOptionParam, GetPaymentLinkParam, GetPaymentModeRoutesParam, GetPosPaymentModeRoutesParam, GetUserBeneficiariesParam, GetUserCODlimitRoutesParam, GetUserOrderBeneficiariesParam, InitialisePaymentParam, MerchantOnBoardingParam, OauthGetUrlParam, PatchMerchantAggregatorPaymentModeDetailsParam, PatchMerchantPaymentOptionParam, PaymentStatusBulkParam, PollingPaymentLinkParam, RepaymentDetailsParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, RevokeOauthTokenParam, SaveBrandPaymentGatewayConfigParam, SetUserCODlimitRoutesParam, UpdateEdcDeviceParam, UpdateMerchantRefundPriorityParam, UpdatePaymentSessionParam, UpdateRefundSessionParam, VerifyCustomerForPaymentParam }; } type AddEdcDeviceParam = { /** @@ -275,6 +295,13 @@ type CheckAndUpdatePaymentStatusParam = { type ConfirmPaymentParam = { body: PaymentPlatformModel.PaymentConfirmationRequest; }; +type CreateMerchantRefundPriorityParam = { + /** + * - Configuration for merchant or customer + */ + configType: string; + body: PaymentPlatformModel.RefundPriorityRequestSerializer; +}; type CreatePaymentLinkParam = { body: PaymentPlatformModel.CreatePaymentLinkRequest; }; @@ -310,6 +337,12 @@ type GetMerchantAggregatorPaymentModeDetailsParam = { businessUnit: string; device: string; }; +type GetMerchantRefundPriorityParam = { + /** + * - Configuration for merchant or customer + */ + configType: string; +}; type GetPaymentLinkParam = { paymentLinkId?: string; }; @@ -419,6 +452,13 @@ type SetUserCODlimitRoutesParam = { type UpdateEdcDeviceParam = { body: PaymentPlatformModel.EdcAddRequest; }; +type UpdateMerchantRefundPriorityParam = { + /** + * - Configuration for merchant or customer + */ + configType: string; + body: PaymentPlatformModel.RefundPriorityRequestSerializer; +}; type UpdatePaymentSessionParam = { /** * - Global identifier of the entity (e.g. order, cart diff --git a/sdk/platform/Payment/PaymentPlatformApplicationValidator.js b/sdk/platform/Payment/PaymentPlatformApplicationValidator.js index b170119a7..49c7be5b8 100644 --- a/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +++ b/sdk/platform/Payment/PaymentPlatformApplicationValidator.js @@ -28,6 +28,12 @@ const PaymentPlatformModel = require("./PaymentPlatformModel"); * @property {PaymentPlatformModel.PaymentConfirmationRequest} body */ +/** + * @typedef CreateMerchantRefundPriorityParam + * @property {string} configType - Configuration for merchant or customer + * @property {PaymentPlatformModel.RefundPriorityRequestSerializer} body + */ + /** * @typedef CreatePaymentLinkParam * @property {PaymentPlatformModel.CreatePaymentLinkRequest} body @@ -72,6 +78,11 @@ const PaymentPlatformModel = require("./PaymentPlatformModel"); /** @typedef GetMerchantPaymentOptionParam */ +/** + * @typedef GetMerchantRefundPriorityParam + * @property {string} configType - Configuration for merchant or customer + */ + /** @typedef GetPGConfigAggregatorsParam */ /** @typedef GetPaymentCodeOptionParam */ @@ -192,6 +203,12 @@ const PaymentPlatformModel = require("./PaymentPlatformModel"); * @property {PaymentPlatformModel.EdcAddRequest} body */ +/** + * @typedef UpdateMerchantRefundPriorityParam + * @property {string} configType - Configuration for merchant or customer + * @property {PaymentPlatformModel.RefundPriorityRequestSerializer} body + */ + /** * @typedef UpdatePaymentSessionParam * @property {string} gid - Global identifier of the entity (e.g. order, cart @@ -252,6 +269,14 @@ class PaymentPlatformApplicationValidator { }).required(); } + /** @returns {CreateMerchantRefundPriorityParam} */ + static createMerchantRefundPriority() { + return Joi.object({ + configType: Joi.string().allow("").required(), + body: PaymentPlatformModel.RefundPriorityRequestSerializer().required(), + }).required(); + } + /** @returns {CreatePaymentLinkParam} */ static createPaymentLink() { return Joi.object({ @@ -317,6 +342,13 @@ class PaymentPlatformApplicationValidator { return Joi.object({}).required(); } + /** @returns {GetMerchantRefundPriorityParam} */ + static getMerchantRefundPriority() { + return Joi.object({ + configType: Joi.string().allow("").required(), + }).required(); + } + /** @returns {GetPGConfigAggregatorsParam} */ static getPGConfigAggregators() { return Joi.object({}).required(); @@ -479,6 +511,14 @@ class PaymentPlatformApplicationValidator { }).required(); } + /** @returns {UpdateMerchantRefundPriorityParam} */ + static updateMerchantRefundPriority() { + return Joi.object({ + configType: Joi.string().allow("").required(), + body: PaymentPlatformModel.RefundPriorityRequestSerializer().required(), + }).required(); + } + /** @returns {UpdatePaymentSessionParam} */ static updatePaymentSession() { return Joi.object({ diff --git a/sdk/platform/Payment/PaymentPlatformModel.d.ts b/sdk/platform/Payment/PaymentPlatformModel.d.ts index 987fcf56d..4473b1738 100644 --- a/sdk/platform/Payment/PaymentPlatformModel.d.ts +++ b/sdk/platform/Payment/PaymentPlatformModel.d.ts @@ -710,6 +710,19 @@ export = PaymentPlatformModel; * @property {string} message - Response message * @property {boolean} success - Success or failure flag. */ +/** + * @typedef RefundPriorityRequestSerializer + * @property {boolean} apportion - Apportion refund to multiple sources + * @property {RefundSourcesPriority[]} refund_sources_priority - Refund sources priority + */ +/** + * @typedef RefundPriorityResponseSerializer + * @property {boolean} apportion - Apportion refund to multiple sources + * @property {string} configuration - Configuration for merchant or customer + * @property {string} [message] - Message + * @property {RefundSourcesPriority[]} refund_sources_priority - Refund sources priority + * @property {boolean} success - Success + */ /** * @typedef RefundSessionDetail * @property {number} amount - Amount refunded. @@ -748,6 +761,12 @@ export = PaymentPlatformModel; * @property {string} status - The status of the refund. * @property {number} total_refund_amount - The total amount refunded. */ +/** + * @typedef RefundSourcesPriority + * @property {string} description - Description of refund source + * @property {number} priority - Priority of refund source, 0 being highest + * @property {string} source - Source of refund + */ /** * @typedef RepaymentDetailsSerialiserPayAll * @property {string} aggregator_order_id - Id of payment gateway @@ -878,7 +897,7 @@ export = PaymentPlatformModel; declare class PaymentPlatformModel { } declare namespace PaymentPlatformModel { - export { AddBeneficiaryDetailsOTPRequest, AddressDetail, BankDetailsForOTP, CancelOrResendPaymentLinkRequest, CancelPaymentLinkResponse, CODChargesLimitsResponse, CODdata, Code, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, DeletePayoutResponse, DeleteSubscriptionPaymentMethodResponse, EdcAddRequest, EdcAggregatorAndModelListResponse, EdcDevice, EdcDeviceAddResponse, EdcDeviceDetailsResponse, EdcDeviceListResponse, EdcDeviceStatsResponse, EdcDeviceUpdateResponse, EdcModelData, EdcUpdateRequest, ErrorCodeAndDescription, ErrorCodeDescription, ErrorDescription, ErrorResponse, GetOauthUrlResponse, GetPaymentCode, GetPaymentCodeResponse, GetPaymentLinkResponse, GetUserCODLimitResponse, HttpErrorCodeAndResponse, IfscCodeResponse, IntentApp, IntentAppErrorList, LinkStatus, MerchantOnBoardingRequest, MerchantOnBoardingResponse, MerchnatPaymentModeRequest, MerchnatPaymentModeResponse, MultiTenderPaymentMeta, MultiTenderPaymentMethod, NotFoundResourceError, OrderBeneficiaryDetails, OrderBeneficiaryResponse, OrderDetail, Page, PaymentCode, PaymentConfirmationRequest, PaymentConfirmationResponse, PaymentGatewayConfig, PaymentGatewayConfigRequest, PaymentGatewayConfigResponse, PaymentGatewayToBeReviewed, PaymentInitializationRequest, PaymentInitializationResponse, PaymentModeList, PaymentModeLogo, PaymentObjectListSerializer, PaymentOptions, PaymentOptionsResponse, PaymentSessionDetail, PaymentSessionRequestSerializer, PaymentSessionResponseSerializer, PaymentStatusBulkHandlerRequest, PaymentStatusBulkHandlerResponse, PaymentStatusObject, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, Payout, PayoutAggregator, PayoutBankDetails, PayoutCustomer, PayoutMoreAttributes, PayoutRequest, PayoutResponse, PayoutsResponse, PollingPaymentLinkResponse, ProductCODData, RefundAccountResponse, RefundSessionDetail, RefundSessionRequestSerializer, RefundSessionResponseSerializer, RepaymentDetailsSerialiserPayAll, RepaymentRequestDetails, RepaymentResponse, ResendOrCancelPaymentRequest, ResendOrCancelPaymentResponse, ResendPaymentLinkResponse, RevokeOAuthToken, RootPaymentMode, SaveSubscriptionSetupIntentRequest, SaveSubscriptionSetupIntentResponse, SetCODForUserRequest, SetCODOptionResponse, StatisticsData, SubscriptionConfigResponse, SubscriptionPaymentMethodResponse, UpdatePayoutRequest, UpdatePayoutResponse, ValidateCustomerRequest, ValidateCustomerResponse }; + export { AddBeneficiaryDetailsOTPRequest, AddressDetail, BankDetailsForOTP, CancelOrResendPaymentLinkRequest, CancelPaymentLinkResponse, CODChargesLimitsResponse, CODdata, Code, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, DeletePayoutResponse, DeleteSubscriptionPaymentMethodResponse, EdcAddRequest, EdcAggregatorAndModelListResponse, EdcDevice, EdcDeviceAddResponse, EdcDeviceDetailsResponse, EdcDeviceListResponse, EdcDeviceStatsResponse, EdcDeviceUpdateResponse, EdcModelData, EdcUpdateRequest, ErrorCodeAndDescription, ErrorCodeDescription, ErrorDescription, ErrorResponse, GetOauthUrlResponse, GetPaymentCode, GetPaymentCodeResponse, GetPaymentLinkResponse, GetUserCODLimitResponse, HttpErrorCodeAndResponse, IfscCodeResponse, IntentApp, IntentAppErrorList, LinkStatus, MerchantOnBoardingRequest, MerchantOnBoardingResponse, MerchnatPaymentModeRequest, MerchnatPaymentModeResponse, MultiTenderPaymentMeta, MultiTenderPaymentMethod, NotFoundResourceError, OrderBeneficiaryDetails, OrderBeneficiaryResponse, OrderDetail, Page, PaymentCode, PaymentConfirmationRequest, PaymentConfirmationResponse, PaymentGatewayConfig, PaymentGatewayConfigRequest, PaymentGatewayConfigResponse, PaymentGatewayToBeReviewed, PaymentInitializationRequest, PaymentInitializationResponse, PaymentModeList, PaymentModeLogo, PaymentObjectListSerializer, PaymentOptions, PaymentOptionsResponse, PaymentSessionDetail, PaymentSessionRequestSerializer, PaymentSessionResponseSerializer, PaymentStatusBulkHandlerRequest, PaymentStatusBulkHandlerResponse, PaymentStatusObject, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, Payout, PayoutAggregator, PayoutBankDetails, PayoutCustomer, PayoutMoreAttributes, PayoutRequest, PayoutResponse, PayoutsResponse, PollingPaymentLinkResponse, ProductCODData, RefundAccountResponse, RefundPriorityRequestSerializer, RefundPriorityResponseSerializer, RefundSessionDetail, RefundSessionRequestSerializer, RefundSessionResponseSerializer, RefundSourcesPriority, RepaymentDetailsSerialiserPayAll, RepaymentRequestDetails, RepaymentResponse, ResendOrCancelPaymentRequest, ResendOrCancelPaymentResponse, ResendPaymentLinkResponse, RevokeOAuthToken, RootPaymentMode, SaveSubscriptionSetupIntentRequest, SaveSubscriptionSetupIntentResponse, SetCODForUserRequest, SetCODOptionResponse, StatisticsData, SubscriptionConfigResponse, SubscriptionPaymentMethodResponse, UpdatePayoutRequest, UpdatePayoutResponse, ValidateCustomerRequest, ValidateCustomerResponse }; } /** @returns {AddBeneficiaryDetailsOTPRequest} */ declare function AddBeneficiaryDetailsOTPRequest(): AddBeneficiaryDetailsOTPRequest; @@ -2791,6 +2810,42 @@ type RefundAccountResponse = { */ success: boolean; }; +/** @returns {RefundPriorityRequestSerializer} */ +declare function RefundPriorityRequestSerializer(): RefundPriorityRequestSerializer; +type RefundPriorityRequestSerializer = { + /** + * - Apportion refund to multiple sources + */ + apportion: boolean; + /** + * - Refund sources priority + */ + refund_sources_priority: RefundSourcesPriority[]; +}; +/** @returns {RefundPriorityResponseSerializer} */ +declare function RefundPriorityResponseSerializer(): RefundPriorityResponseSerializer; +type RefundPriorityResponseSerializer = { + /** + * - Apportion refund to multiple sources + */ + apportion: boolean; + /** + * - Configuration for merchant or customer + */ + configuration: string; + /** + * - Message + */ + message?: string; + /** + * - Refund sources priority + */ + refund_sources_priority: RefundSourcesPriority[]; + /** + * - Success + */ + success: boolean; +}; /** @returns {RefundSessionDetail} */ declare function RefundSessionDetail(): RefundSessionDetail; type RefundSessionDetail = { @@ -2901,6 +2956,22 @@ type RefundSessionResponseSerializer = { */ total_refund_amount: number; }; +/** @returns {RefundSourcesPriority} */ +declare function RefundSourcesPriority(): RefundSourcesPriority; +type RefundSourcesPriority = { + /** + * - Description of refund source + */ + description: string; + /** + * - Priority of refund source, 0 being highest + */ + priority: number; + /** + * - Source of refund + */ + source: string; +}; /** @returns {RepaymentDetailsSerialiserPayAll} */ declare function RepaymentDetailsSerialiserPayAll(): RepaymentDetailsSerialiserPayAll; type RepaymentDetailsSerialiserPayAll = { diff --git a/sdk/platform/Payment/PaymentPlatformModel.js b/sdk/platform/Payment/PaymentPlatformModel.js index 043280c03..89274074a 100644 --- a/sdk/platform/Payment/PaymentPlatformModel.js +++ b/sdk/platform/Payment/PaymentPlatformModel.js @@ -792,6 +792,21 @@ const Joi = require("joi"); * @property {boolean} success - Success or failure flag. */ +/** + * @typedef RefundPriorityRequestSerializer + * @property {boolean} apportion - Apportion refund to multiple sources + * @property {RefundSourcesPriority[]} refund_sources_priority - Refund sources priority + */ + +/** + * @typedef RefundPriorityResponseSerializer + * @property {boolean} apportion - Apportion refund to multiple sources + * @property {string} configuration - Configuration for merchant or customer + * @property {string} [message] - Message + * @property {RefundSourcesPriority[]} refund_sources_priority - Refund sources priority + * @property {boolean} success - Success + */ + /** * @typedef RefundSessionDetail * @property {number} amount - Amount refunded. @@ -833,6 +848,13 @@ const Joi = require("joi"); * @property {number} total_refund_amount - The total amount refunded. */ +/** + * @typedef RefundSourcesPriority + * @property {string} description - Description of refund source + * @property {number} priority - Priority of refund source, 0 being highest + * @property {string} source - Source of refund + */ + /** * @typedef RepaymentDetailsSerialiserPayAll * @property {string} aggregator_order_id - Id of payment gateway @@ -1922,6 +1944,29 @@ class PaymentPlatformModel { }); } + /** @returns {RefundPriorityRequestSerializer} */ + static RefundPriorityRequestSerializer() { + return Joi.object({ + apportion: Joi.boolean().required(), + refund_sources_priority: Joi.array() + .items(PaymentPlatformModel.RefundSourcesPriority()) + .required(), + }); + } + + /** @returns {RefundPriorityResponseSerializer} */ + static RefundPriorityResponseSerializer() { + return Joi.object({ + apportion: Joi.boolean().required(), + configuration: Joi.string().allow("").required(), + message: Joi.string().allow(""), + refund_sources_priority: Joi.array() + .items(PaymentPlatformModel.RefundSourcesPriority()) + .required(), + success: Joi.boolean().required(), + }); + } + /** @returns {RefundSessionDetail} */ static RefundSessionDetail() { return Joi.object({ @@ -1965,6 +2010,15 @@ class PaymentPlatformModel { }); } + /** @returns {RefundSourcesPriority} */ + static RefundSourcesPriority() { + return Joi.object({ + description: Joi.string().allow("").required(), + priority: Joi.number().required(), + source: Joi.string().allow("").required(), + }); + } + /** @returns {RepaymentDetailsSerialiserPayAll} */ static RepaymentDetailsSerialiserPayAll() { return Joi.object({ diff --git a/sdk/platform/User/UserPlatformApplicationClient.d.ts b/sdk/platform/User/UserPlatformApplicationClient.d.ts index e4d2fdf52..6eb5a0fb7 100644 --- a/sdk/platform/User/UserPlatformApplicationClient.d.ts +++ b/sdk/platform/User/UserPlatformApplicationClient.d.ts @@ -181,6 +181,18 @@ declare class User { * @description: Use this API to update an existing user Group - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/updateUserGroup/). */ updateUserGroup({ groupId, body, requestHeaders }?: UserPlatformApplicationValidator.UpdateUserGroupParam, { responseHeaders }?: object): Promise; + /** + * @param {UserPlatformApplicationValidator.UpdateUserGroupPartiallyParam} arg + * - Arg object + * + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PlatformAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name updateUserGroupPartially + * @summary: Add or Remove an user from particular user group and update user group details + * @description: Use this API to update user group details and add or remove an user to the user group. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/updateUserGroupPartially/). + */ + updateUserGroupPartially({ groupId, body, requestHeaders }?: UserPlatformApplicationValidator.UpdateUserGroupPartiallyParam, { responseHeaders }?: object): Promise; } import UserPlatformApplicationValidator = require("./UserPlatformApplicationValidator"); import UserPlatformModel = require("./UserPlatformModel"); diff --git a/sdk/platform/User/UserPlatformApplicationClient.js b/sdk/platform/User/UserPlatformApplicationClient.js index 493319d6a..559e3ada0 100644 --- a/sdk/platform/User/UserPlatformApplicationClient.js +++ b/sdk/platform/User/UserPlatformApplicationClient.js @@ -1316,6 +1316,85 @@ class User { return response; } + + /** + * @param {UserPlatformApplicationValidator.UpdateUserGroupPartiallyParam} arg + * - Arg object + * + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PlatformAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name updateUserGroupPartially + * @summary: Add or Remove an user from particular user group and update user group details + * @description: Use this API to update user group details and add or remove an user to the user group. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/updateUserGroupPartially/). + */ + async updateUserGroupPartially( + { groupId, body, requestHeaders } = { requestHeaders: {} }, + { responseHeaders } = { responseHeaders: false } + ) { + const { + error, + } = UserPlatformApplicationValidator.updateUserGroupPartially().validate( + { + groupId, + body, + }, + { abortEarly: false, allowUnknown: true } + ); + if (error) { + return Promise.reject(new FDKClientValidationError(error)); + } + + // Showing warrnings if extra unknown parameters are found + const { + error: warrning, + } = UserPlatformApplicationValidator.updateUserGroupPartially().validate( + { + groupId, + body, + }, + { abortEarly: false, allowUnknown: false } + ); + if (warrning) { + Logger({ + level: "WARN", + message: `Parameter Validation warrnings for platform > User > updateUserGroupPartially \n ${warrning}`, + }); + } + + const query_params = {}; + + const response = await PlatformAPIClient.execute( + this.config, + "patch", + `/service/platform/user/v1.0/company/${this.config.companyId}/application/${this.applicationId}/user_group/${groupId}`, + query_params, + body, + requestHeaders, + { responseHeaders } + ); + + let responseData = response; + if (responseHeaders) { + responseData = response[0]; + } + + const { + error: res_error, + } = UserPlatformModel.UserGroupResponseSchema().validate(responseData, { + abortEarly: false, + allowUnknown: false, + }); + + if (res_error) { + Logger({ + level: "WARN", + message: `Response Validation Warnnings for platform > User > updateUserGroupPartially \n ${res_error}`, + }); + } + + return response; + } } module.exports = User; diff --git a/sdk/platform/User/UserPlatformApplicationValidator.d.ts b/sdk/platform/User/UserPlatformApplicationValidator.d.ts index 444c88e74..d4f172e1a 100644 --- a/sdk/platform/User/UserPlatformApplicationValidator.d.ts +++ b/sdk/platform/User/UserPlatformApplicationValidator.d.ts @@ -80,6 +80,11 @@ export = UserPlatformApplicationValidator; * @property {string} groupId - Numeric ID allotted to a User Group * @property {UserPlatformModel.UpdateUserGroupSchema} body */ +/** + * @typedef UpdateUserGroupPartiallyParam + * @property {string} groupId - Numeric ID allotted to a User Group + * @property {UserPlatformModel.PartialUserGroupUpdateSchema} body + */ declare class UserPlatformApplicationValidator { /** @returns {ArchiveUserParam} */ static archiveUser(): ArchiveUserParam; @@ -115,9 +120,11 @@ declare class UserPlatformApplicationValidator { static updateUser(): UpdateUserParam; /** @returns {UpdateUserGroupParam} */ static updateUserGroup(): UpdateUserGroupParam; + /** @returns {UpdateUserGroupPartiallyParam} */ + static updateUserGroupPartially(): UpdateUserGroupPartiallyParam; } declare namespace UserPlatformApplicationValidator { - export { ArchiveUserParam, BlockOrUnblockUsersParam, CreateUserParam, CreateUserGroupParam, CreateUserSessionParam, DeleteActiveSessionsParam, DeleteSessionParam, GetActiveSessionsParam, GetCustomersParam, GetPlatformConfigParam, GetUserGroupByIdParam, GetUserGroupsParam, SearchUsersParam, UnDeleteUserParam, UpdatePlatformConfigParam, UpdateUserParam, UpdateUserGroupParam }; + export { ArchiveUserParam, BlockOrUnblockUsersParam, CreateUserParam, CreateUserGroupParam, CreateUserSessionParam, DeleteActiveSessionsParam, DeleteSessionParam, GetActiveSessionsParam, GetCustomersParam, GetPlatformConfigParam, GetUserGroupByIdParam, GetUserGroupsParam, SearchUsersParam, UnDeleteUserParam, UpdatePlatformConfigParam, UpdateUserParam, UpdateUserGroupParam, UpdateUserGroupPartiallyParam }; } type ArchiveUserParam = { body: UserPlatformModel.ArchiveUserRequestSchema; @@ -240,5 +247,12 @@ type UpdateUserGroupParam = { groupId: string; body: UserPlatformModel.UpdateUserGroupSchema; }; +type UpdateUserGroupPartiallyParam = { + /** + * - Numeric ID allotted to a User Group + */ + groupId: string; + body: UserPlatformModel.PartialUserGroupUpdateSchema; +}; type GetPlatformConfigParam = any; import UserPlatformModel = require("./UserPlatformModel"); diff --git a/sdk/platform/User/UserPlatformApplicationValidator.js b/sdk/platform/User/UserPlatformApplicationValidator.js index 83be09968..54d735d96 100644 --- a/sdk/platform/User/UserPlatformApplicationValidator.js +++ b/sdk/platform/User/UserPlatformApplicationValidator.js @@ -100,6 +100,12 @@ const UserPlatformModel = require("./UserPlatformModel"); * @property {UserPlatformModel.UpdateUserGroupSchema} body */ +/** + * @typedef UpdateUserGroupPartiallyParam + * @property {string} groupId - Numeric ID allotted to a User Group + * @property {UserPlatformModel.PartialUserGroupUpdateSchema} body + */ + class UserPlatformApplicationValidator { /** @returns {ArchiveUserParam} */ static archiveUser() { @@ -229,6 +235,14 @@ class UserPlatformApplicationValidator { body: UserPlatformModel.UpdateUserGroupSchema().required(), }).required(); } + + /** @returns {UpdateUserGroupPartiallyParam} */ + static updateUserGroupPartially() { + return Joi.object({ + groupId: Joi.string().allow("").required(), + body: UserPlatformModel.PartialUserGroupUpdateSchema().required(), + }).required(); + } } module.exports = UserPlatformApplicationValidator; diff --git a/sdk/platform/User/UserPlatformModel.d.ts b/sdk/platform/User/UserPlatformModel.d.ts index b7bfad581..789cb0604 100644 --- a/sdk/platform/User/UserPlatformModel.d.ts +++ b/sdk/platform/User/UserPlatformModel.d.ts @@ -117,6 +117,20 @@ export = UserPlatformModel; * @property {number} [size] * @property {string} [type] */ +/** + * @typedef PartialUserGroupUpdateSchema + * @property {string} [description] + * @property {string} [file_url] - Required property when passed type file_url. + * Internet reachable csv file url which will be used to fetch download data. + * It must have one of columns from `phone_number``, `email`, `user_id` and + * must have `action` column. `action` column can have `add` or `remove` value. + * @property {string} [name] + * @property {string} [type] - Source of update to be used to update individual + * users. Default value is considered file_url if not passed. + * @property {UserGroupUpdateData[]} [user_data] - Required property when passed + * type json. Array of user data. Must have `action` field and one of + * `phone_number`, `email` or `user_id` field in object + */ /** * @typedef PhoneNumber * @property {boolean} [active] @@ -269,6 +283,13 @@ export = UserPlatformModel; * @property {string} [status] * @property {number} [uid] */ +/** + * @typedef UserGroupUpdateData + * @property {string} action + * @property {string} [email] - Email of registered user + * @property {string} [phone_number] - Phone number of registered user + * @property {string} [user_id] - Must be valid mongodb objectid of existing user + */ /** * @typedef UserPhoneNumbers * @property {boolean} [active] @@ -303,7 +324,7 @@ export = UserPlatformModel; declare class UserPlatformModel { } declare namespace UserPlatformModel { - export { Accountkit, ArchiveUserRequestSchema, ArchiveUserSuccess, AuthenticationApiErrorSchema, BlockUserRequestSchema, BlockUserSuccess, CreateUserGroupSchema, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, CustomerListResponseSchema, DeleteAccountConsent, DeleteAccountReasons, Email, Facebook, FlashCard, Google, Login, LookAndFeel, MetaSchema, PaginationSchema, PhoneNumber, PlatformEmail, PlatformMobile, PlatformSchema, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, RequiredFields, SessionDeleteResponseSchema, SessionExpiry, SessionListResponseInfo, SessionListResponseSchema, Social, SocialTokens, UnDeleteUserRequestSchema, UnDeleteUserSuccess, UpdateUserGroupSchema, UpdateUserRequestSchema, UserEmails, UserGroupListResponseSchema, UserGroupResponseSchema, UserPhoneNumbers, UserSchema, UserSearchResponseSchema }; + export { Accountkit, ArchiveUserRequestSchema, ArchiveUserSuccess, AuthenticationApiErrorSchema, BlockUserRequestSchema, BlockUserSuccess, CreateUserGroupSchema, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, CustomerListResponseSchema, DeleteAccountConsent, DeleteAccountReasons, Email, Facebook, FlashCard, Google, Login, LookAndFeel, MetaSchema, PaginationSchema, PartialUserGroupUpdateSchema, PhoneNumber, PlatformEmail, PlatformMobile, PlatformSchema, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, RequiredFields, SessionDeleteResponseSchema, SessionExpiry, SessionListResponseInfo, SessionListResponseSchema, Social, SocialTokens, UnDeleteUserRequestSchema, UnDeleteUserSuccess, UpdateUserGroupSchema, UpdateUserRequestSchema, UserEmails, UserGroupListResponseSchema, UserGroupResponseSchema, UserGroupUpdateData, UserPhoneNumbers, UserSchema, UserSearchResponseSchema }; } /** @returns {Accountkit} */ declare function Accountkit(): Accountkit; @@ -445,6 +466,30 @@ type PaginationSchema = { size?: number; type?: string; }; +/** @returns {PartialUserGroupUpdateSchema} */ +declare function PartialUserGroupUpdateSchema(): PartialUserGroupUpdateSchema; +type PartialUserGroupUpdateSchema = { + description?: string; + /** + * - Required property when passed type file_url. + * Internet reachable csv file url which will be used to fetch download data. + * It must have one of columns from `phone_number``, `email`, `user_id` and + * must have `action` column. `action` column can have `add` or `remove` value. + */ + file_url?: string; + name?: string; + /** + * - Source of update to be used to update individual + * users. Default value is considered file_url if not passed. + */ + type?: string; + /** + * - Required property when passed + * type json. Array of user data. Must have `action` field and one of + * `phone_number`, `email` or `user_id` field in object + */ + user_data?: UserGroupUpdateData[]; +}; /** @returns {PhoneNumber} */ declare function PhoneNumber(): PhoneNumber; type PhoneNumber = { @@ -618,6 +663,23 @@ type UserGroupResponseSchema = { status?: string; uid?: number; }; +/** @returns {UserGroupUpdateData} */ +declare function UserGroupUpdateData(): UserGroupUpdateData; +type UserGroupUpdateData = { + action: string; + /** + * - Email of registered user + */ + email?: string; + /** + * - Phone number of registered user + */ + phone_number?: string; + /** + * - Must be valid mongodb objectid of existing user + */ + user_id?: string; +}; /** @returns {UserPhoneNumbers} */ declare function UserPhoneNumbers(): UserPhoneNumbers; type UserPhoneNumbers = { diff --git a/sdk/platform/User/UserPlatformModel.js b/sdk/platform/User/UserPlatformModel.js index 2cd5ab2ba..45f18e6b1 100644 --- a/sdk/platform/User/UserPlatformModel.js +++ b/sdk/platform/User/UserPlatformModel.js @@ -140,6 +140,21 @@ const Joi = require("joi"); * @property {string} [type] */ +/** + * @typedef PartialUserGroupUpdateSchema + * @property {string} [description] + * @property {string} [file_url] - Required property when passed type file_url. + * Internet reachable csv file url which will be used to fetch download data. + * It must have one of columns from `phone_number``, `email`, `user_id` and + * must have `action` column. `action` column can have `add` or `remove` value. + * @property {string} [name] + * @property {string} [type] - Source of update to be used to update individual + * users. Default value is considered file_url if not passed. + * @property {UserGroupUpdateData[]} [user_data] - Required property when passed + * type json. Array of user data. Must have `action` field and one of + * `phone_number`, `email` or `user_id` field in object + */ + /** * @typedef PhoneNumber * @property {boolean} [active] @@ -313,6 +328,14 @@ const Joi = require("joi"); * @property {number} [uid] */ +/** + * @typedef UserGroupUpdateData + * @property {string} action + * @property {string} [email] - Email of registered user + * @property {string} [phone_number] - Phone number of registered user + * @property {string} [user_id] - Must be valid mongodb objectid of existing user + */ + /** * @typedef UserPhoneNumbers * @property {boolean} [active] @@ -532,6 +555,17 @@ class UserPlatformModel { }); } + /** @returns {PartialUserGroupUpdateSchema} */ + static PartialUserGroupUpdateSchema() { + return Joi.object({ + description: Joi.string().allow(""), + file_url: Joi.string().allow(""), + name: Joi.string().allow(""), + type: Joi.string().allow(""), + user_data: Joi.array().items(UserPlatformModel.UserGroupUpdateData()), + }); + } + /** @returns {PhoneNumber} */ static PhoneNumber() { return Joi.object({ @@ -749,6 +783,16 @@ class UserPlatformModel { }); } + /** @returns {UserGroupUpdateData} */ + static UserGroupUpdateData() { + return Joi.object({ + action: Joi.string().allow("").required(), + email: Joi.string().allow(""), + phone_number: Joi.string().allow(""), + user_id: Joi.string().allow(""), + }); + } + /** @returns {UserPhoneNumbers} */ static UserPhoneNumbers() { return Joi.object({ diff --git a/tests/common/schema/url-action.json b/tests/common/schema/url-action.json index b43a491f2..c9d34ff38 100644 --- a/tests/common/schema/url-action.json +++ b/tests/common/schema/url-action.json @@ -290,7 +290,6 @@ } } }, - { "name": "faq with category", "path": "/faq/:category", @@ -300,9 +299,7 @@ "page": { "type": "faq", "query": {}, - "params": { - "category": ["order123"] - } + "params": {} } } } @@ -495,7 +492,7 @@ }, { "name": "shared token", - "path": "/shared-cart/:1234", + "path": "/shared-cart/1234", "result": { "action": { "type": "page",