@gofynd/fdk-client-javascript 1.4.8-beta.3 → 1.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +8 -0
- package/sdk/application/ApplicationClient.js +14 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
- package/sdk/application/Cart/CartApplicationClient.js +20 -20
- package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
- package/sdk/application/Cart/CartApplicationModel.js +783 -552
- package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
- package/sdk/application/Cart/CartApplicationValidator.js +100 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
- package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
- package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
- package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +2 -2
- package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
- package/sdk/application/Common/CommonApplicationModel.js +59 -58
- package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
- package/sdk/application/Common/CommonApplicationValidator.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
- package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
- package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
- package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
- package/sdk/application/Content/ContentApplicationClient.js +16 -16
- package/sdk/application/Content/ContentApplicationModel.d.ts +1205 -282
- package/sdk/application/Content/ContentApplicationModel.js +341 -277
- package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
- package/sdk/application/Content/ContentApplicationValidator.js +11 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
- package/sdk/application/Lead/LeadApplicationModel.js +110 -67
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
- package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
- package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
- package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
- package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
- package/sdk/application/Order/OrderApplicationClient.js +10 -10
- package/sdk/application/Order/OrderApplicationModel.d.ts +1400 -325
- package/sdk/application/Order/OrderApplicationModel.js +391 -317
- package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
- package/sdk/application/Order/OrderApplicationValidator.js +15 -14
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
- package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
- package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
- package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
- package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
- package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
- package/sdk/application/Share/ShareApplicationModel.js +53 -37
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
- package/sdk/application/Share/ShareApplicationValidator.js +2 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
- package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
- package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
- package/sdk/application/User/UserApplicationClient.d.ts +36 -36
- package/sdk/application/User/UserApplicationClient.js +36 -36
- package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
- package/sdk/application/User/UserApplicationModel.js +298 -244
- package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
- package/sdk/application/User/UserApplicationValidator.js +40 -40
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
- package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
- package/sdk/common/Clickstream.js +95 -15
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/common/Utility.js +19 -0
- package/sdk/common/utils.js +8 -1
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
- package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +28 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +7 -7
- package/sdk/partner/PartnerClient.d.ts +8 -0
- package/sdk/partner/PartnerClient.js +14 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
- package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
- package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +6 -397
- package/sdk/platform/Billing/BillingPlatformClient.js +77 -3215
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +621 -2021
- package/sdk/platform/Billing/BillingPlatformModel.js +353 -2405
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +12 -451
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -483
- package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
- package/sdk/platform/Cart/CartPlatformModel.js +8 -8
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
- package/sdk/platform/Content/ContentPlatformModel.d.ts +58 -17
- package/sdk/platform/Content/ContentPlatformModel.js +28 -15
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1583 -347
- package/sdk/platform/Finance/FinancePlatformModel.js +463 -351
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
- package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
- package/sdk/platform/Order/OrderPlatformClient.js +165 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +613 -39
- package/sdk/platform/Order/OrderPlatformModel.js +359 -41
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
- package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
- package/sdk/platform/PlatformClient.d.ts +8 -0
- package/sdk/platform/PlatformClient.js +14 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
- package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +120 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +76 -21
- package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
- package/sdk/platform/Share/SharePlatformModel.js +7 -7
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
- package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
- package/sdk/platform/User/UserPlatformModel.d.ts +18 -18
- package/sdk/platform/User/UserPlatformModel.js +9 -9
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +28 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +7 -7
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -45
- package/sdk/public/Billing/BillingPublicClient.js +0 -269
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -434
- package/sdk/public/Billing/BillingPublicModel.js +0 -395
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -34
- package/sdk/public/Billing/BillingPublicValidator.js +0 -38
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
- package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
- package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
- package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
|
@@ -559,195 +559,6 @@ const Joi = require("joi");
|
|
|
559
559
|
* @property {string} [message] - Success message shown to the user (in a string format)
|
|
560
560
|
*/
|
|
561
561
|
|
|
562
|
-
/**
|
|
563
|
-
* @typedef GetIntegrationsOptInsResponse
|
|
564
|
-
* @property {IntegrationOptIn[]} [items]
|
|
565
|
-
* @property {Page} [page]
|
|
566
|
-
*/
|
|
567
|
-
|
|
568
|
-
/**
|
|
569
|
-
* @typedef IntegrationOptIn
|
|
570
|
-
* @property {Validators} [validators]
|
|
571
|
-
* @property {string} [description] - Basic description about the opted integration
|
|
572
|
-
* @property {string} [description_html] - Basic HTML description about the
|
|
573
|
-
* opted integration
|
|
574
|
-
* @property {string} [constants]
|
|
575
|
-
* @property {string[]} [companies]
|
|
576
|
-
* @property {string[]} [support]
|
|
577
|
-
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
578
|
-
* of the opted integration
|
|
579
|
-
* @property {string} [name] - Nmae of the opted integration, e.g. SAP RBL Integration
|
|
580
|
-
* @property {string} [slug] - Slug of the opted integration, e.g. ginesys
|
|
581
|
-
* @property {boolean} [hidden]
|
|
582
|
-
* @property {IntegrationMeta[]} [meta]
|
|
583
|
-
* @property {string} [icon] - Hosted URL of the icon image
|
|
584
|
-
* @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
|
|
585
|
-
* of the user who created the integration
|
|
586
|
-
* @property {string} [created_at] - ISO 8601 timestamp of integration creation
|
|
587
|
-
* @property {string} [modified_at] - ISO 8601 timestamp of integration updation
|
|
588
|
-
* @property {string} [token] - Randomly generated fixed-length string for opted
|
|
589
|
-
* integration. It is auto-generated. It would never change once it is generated.
|
|
590
|
-
* @property {string} [secret] - Randomly generated fixed-length string for
|
|
591
|
-
* opted integration. It is auto-generated. It would never change once it is generated.
|
|
592
|
-
* @property {number} [__v] - Version key for tracking revisions. Default value is zero.
|
|
593
|
-
*/
|
|
594
|
-
|
|
595
|
-
/**
|
|
596
|
-
* @typedef Validators
|
|
597
|
-
* @property {CompanyValidator} [company]
|
|
598
|
-
* @property {StoreValidator} [store]
|
|
599
|
-
* @property {InventoryValidator} [inventory]
|
|
600
|
-
* @property {OrderValidator} [order]
|
|
601
|
-
*/
|
|
602
|
-
|
|
603
|
-
/**
|
|
604
|
-
* @typedef CompanyValidator
|
|
605
|
-
* @property {JsonSchema[]} [json_schema]
|
|
606
|
-
* @property {string} [browser_script] - Browser script for the company validator
|
|
607
|
-
*/
|
|
608
|
-
|
|
609
|
-
/**
|
|
610
|
-
* @typedef JsonSchema
|
|
611
|
-
* @property {string} [display] - Display text of the validator JSON schema. It
|
|
612
|
-
* will show in the UI.
|
|
613
|
-
* @property {string} [key] - Key related to the display text of the validator JSON schema
|
|
614
|
-
* @property {string} [type] - Indicates the type of form field, e.g. Text, Dropdown.
|
|
615
|
-
* @property {string} [tooltip] - Tooltip text for the UI of the validator JSON
|
|
616
|
-
* schema. It will show in the UI.
|
|
617
|
-
*/
|
|
618
|
-
|
|
619
|
-
/**
|
|
620
|
-
* @typedef StoreValidator
|
|
621
|
-
* @property {JsonSchema[]} [json_schema]
|
|
622
|
-
* @property {string} [browser_script] - Browser script for the store validator
|
|
623
|
-
*/
|
|
624
|
-
|
|
625
|
-
/**
|
|
626
|
-
* @typedef InventoryValidator
|
|
627
|
-
* @property {JsonSchema[]} [json_schema]
|
|
628
|
-
* @property {string} [browser_script] - Browser script for the inventory validator
|
|
629
|
-
*/
|
|
630
|
-
|
|
631
|
-
/**
|
|
632
|
-
* @typedef OrderValidator
|
|
633
|
-
* @property {JsonSchema[]} [json_schema]
|
|
634
|
-
* @property {string} [browser_script] - Browser script for the order validator
|
|
635
|
-
*/
|
|
636
|
-
|
|
637
|
-
/**
|
|
638
|
-
* @typedef IntegrationMeta
|
|
639
|
-
* @property {boolean} [is_public]
|
|
640
|
-
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
641
|
-
* of the integration meta
|
|
642
|
-
* @property {string} [name] - Nmae of integration meta, e.g. price_level
|
|
643
|
-
* @property {string} [value] - Value related to integration meta name, e.g. store
|
|
644
|
-
*/
|
|
645
|
-
|
|
646
|
-
/**
|
|
647
|
-
* @typedef Integration
|
|
648
|
-
* @property {Validators} [validators]
|
|
649
|
-
* @property {string} [description] - Basic description about the integration
|
|
650
|
-
* @property {string} [description_html] - Basic HTML description about the integration
|
|
651
|
-
* @property {Object} [constants]
|
|
652
|
-
* @property {string[]} [companies]
|
|
653
|
-
* @property {string[]} [support]
|
|
654
|
-
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
655
|
-
* of the integration
|
|
656
|
-
* @property {string} [name] - Name of the integration, e.g. SAP RBL Integration
|
|
657
|
-
* @property {string} [slug] - Name of the integration, e.g. SAP RBL Integration
|
|
658
|
-
* @property {IntegrationMeta[]} [meta]
|
|
659
|
-
* @property {string} [icon] - Hosted URL of the icon image
|
|
660
|
-
* @property {boolean} [hidden]
|
|
661
|
-
* @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
|
|
662
|
-
* of the user who created the integration
|
|
663
|
-
* @property {string} [created_at] - ISO 8601 timestamp of integration creation
|
|
664
|
-
* @property {string} [modified_at] - ISO 8601 timestamp of integration updation
|
|
665
|
-
* @property {string} [token] - Randomly generated fixed-length string for opted
|
|
666
|
-
* integration. It is auto-generated. It would never change once it is generated.
|
|
667
|
-
* @property {string} [secret] - Randomly generated fixed-length string for
|
|
668
|
-
* opted integration. It is auto-generated. It would never change once it is generated.
|
|
669
|
-
* @property {number} [__v] - Version key for tracking revisions. Default value is zero.
|
|
670
|
-
*/
|
|
671
|
-
|
|
672
|
-
/**
|
|
673
|
-
* @typedef IntegrationConfigResponse
|
|
674
|
-
* @property {IntegrationLevel[]} [items]
|
|
675
|
-
*/
|
|
676
|
-
|
|
677
|
-
/**
|
|
678
|
-
* @typedef IntegrationLevel
|
|
679
|
-
* @property {boolean} [opted] - Shows this integration is opted or not opted
|
|
680
|
-
* for the current company
|
|
681
|
-
* @property {Object[]} [permissions]
|
|
682
|
-
* @property {LastPatch[]} [last_patch]
|
|
683
|
-
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
684
|
-
* of the integration config
|
|
685
|
-
* @property {string} [integration] - Integration id. Shows which integration
|
|
686
|
-
* you are enabling.
|
|
687
|
-
* @property {string} [level] - Shows for what level the integration is set up.
|
|
688
|
-
* It can be company level or store level.
|
|
689
|
-
* @property {number} [uid] - It can be store uid or company uid. Depends on the
|
|
690
|
-
* level of integration.
|
|
691
|
-
* @property {number} [company_id] - Unique id of company.
|
|
692
|
-
* @property {IntegrationMeta[]} [meta]
|
|
693
|
-
* @property {string} [token] - Randomly generated fixed-length string for opted
|
|
694
|
-
* integration. It is auto-generated. It would never change once it is generated.
|
|
695
|
-
* @property {string} [created_at] - ISO 8601 timestamp of integration config creation
|
|
696
|
-
* @property {string} [modified_at] - ISO 8601 timestamp of integration config updation
|
|
697
|
-
* @property {number} [__v] - Version key for tracking revisions. Default value is zero.
|
|
698
|
-
* @property {Object} [data] - Schema data of the integration stored in key-value pairs
|
|
699
|
-
* @property {boolean} [success]
|
|
700
|
-
* @property {string} [message]
|
|
701
|
-
*/
|
|
702
|
-
|
|
703
|
-
/**
|
|
704
|
-
* @typedef UpdateIntegrationLevelRequest
|
|
705
|
-
* @property {IntegrationLevel[]} [items]
|
|
706
|
-
*/
|
|
707
|
-
|
|
708
|
-
/**
|
|
709
|
-
* @typedef OptedStoreIntegration
|
|
710
|
-
* @property {boolean} [other_opted] - Allow user to opt same store in other integration
|
|
711
|
-
* @property {IntegrationOptIn} [other_integration]
|
|
712
|
-
* @property {OtherEntity} [other_entity]
|
|
713
|
-
*/
|
|
714
|
-
|
|
715
|
-
/**
|
|
716
|
-
* @typedef OtherEntity
|
|
717
|
-
* @property {boolean} [opted] - Allow other entity opted in integration
|
|
718
|
-
* @property {string[]} [permissions]
|
|
719
|
-
* @property {LastPatch[]} [last_patch]
|
|
720
|
-
* @property {string} [_id] - The unique identifier of the other entity for
|
|
721
|
-
* opted store integration
|
|
722
|
-
* @property {string} [integration] - Integration ID. Shows which integration
|
|
723
|
-
* you are enabling.
|
|
724
|
-
* @property {string} [level] - Indicates integration level. It can be company
|
|
725
|
-
* level or store level.
|
|
726
|
-
* @property {number} [uid] - It can be store uid or company uid. Depends on the
|
|
727
|
-
* level of integration.
|
|
728
|
-
* @property {OtherEntityData} [data]
|
|
729
|
-
* @property {Object[]} [meta]
|
|
730
|
-
* @property {string} [token] - Randomly generated fixed-length string for opted
|
|
731
|
-
* integration. It is auto-generated. It would never change once it is generated.
|
|
732
|
-
* @property {string} [created_at] - ISO 8601 timestamp of other entity creation
|
|
733
|
-
* for opted store integration
|
|
734
|
-
* @property {string} [modified_at] - ISO 8601 timestamp of other entity
|
|
735
|
-
* updation for opted store integration
|
|
736
|
-
* @property {number} [__v] - Version key for tracking revisions. Default value is zero.
|
|
737
|
-
*/
|
|
738
|
-
|
|
739
|
-
/**
|
|
740
|
-
* @typedef LastPatch
|
|
741
|
-
* @property {string} [op]
|
|
742
|
-
* @property {string} [path]
|
|
743
|
-
* @property {string} [value] - It can be inventory level or order level
|
|
744
|
-
*/
|
|
745
|
-
|
|
746
|
-
/**
|
|
747
|
-
* @typedef OtherEntityData
|
|
748
|
-
* @property {string} [article_identifier]
|
|
749
|
-
*/
|
|
750
|
-
|
|
751
562
|
/**
|
|
752
563
|
* @typedef App
|
|
753
564
|
* @property {string} [company_id] - Numeric ID allotted to a business account
|
|
@@ -759,26 +570,6 @@ const Joi = require("joi");
|
|
|
759
570
|
* @property {string} [desc] - Detailed description about the sales channel
|
|
760
571
|
*/
|
|
761
572
|
|
|
762
|
-
/**
|
|
763
|
-
* @typedef InventoryConfig
|
|
764
|
-
* @property {InventoryBrandRule} [brand]
|
|
765
|
-
* @property {InventoryStoreRule} [store]
|
|
766
|
-
* @property {string[]} [image]
|
|
767
|
-
* @property {boolean} [franchise_enabled] - Allow other businesses (companies)
|
|
768
|
-
* to consume the current sales channel's inventory and sell products
|
|
769
|
-
* @property {boolean} [out_of_stock] - Indicates whether out of stock products
|
|
770
|
-
* are allowed to show up on the website.
|
|
771
|
-
* @property {boolean} [only_verified_products] - Show only verified products
|
|
772
|
-
* (the ones whose data have been verified by the admin)
|
|
773
|
-
*/
|
|
774
|
-
|
|
775
|
-
/**
|
|
776
|
-
* @typedef AppInventory
|
|
777
|
-
* @property {InventoryConfig} [inventory]
|
|
778
|
-
* @property {InventoryPaymentConfig} [payment]
|
|
779
|
-
* @property {InventoryArticleAssignment} [article_assignment]
|
|
780
|
-
*/
|
|
781
|
-
|
|
782
573
|
/**
|
|
783
574
|
* @typedef AppDomain
|
|
784
575
|
* @property {string} [name] - Domain URL of current sales channel, e.g. zenz.com
|
|
@@ -1456,63 +1247,15 @@ const Joi = require("joi");
|
|
|
1456
1247
|
* @property {boolean} [success] - Flag for required not successfull.
|
|
1457
1248
|
*/
|
|
1458
1249
|
|
|
1459
|
-
/**
|
|
1460
|
-
* @typedef InventoryBrandRule
|
|
1461
|
-
* @property {string} [criteria] - Whether all brands are enabled, or explicitly
|
|
1462
|
-
* few brands in the inventory
|
|
1463
|
-
* @property {number[]} [brands]
|
|
1464
|
-
*/
|
|
1465
|
-
|
|
1466
|
-
/**
|
|
1467
|
-
* @typedef StoreCriteriaRule
|
|
1468
|
-
* @property {number[]} [companies] - List of company UID
|
|
1469
|
-
* @property {number[]} [brands] - List of brand UID
|
|
1470
|
-
*/
|
|
1471
|
-
|
|
1472
|
-
/**
|
|
1473
|
-
* @typedef InventoryStoreRule
|
|
1474
|
-
* @property {string} [criteria] - Whether all stores are enabled, or explicitly
|
|
1475
|
-
* few stores in the inventory, or use brands and company filter.
|
|
1476
|
-
* @property {StoreCriteriaRule[]} [rules] - List of rules with company and
|
|
1477
|
-
* brands uids. Used when critera is `filter`.
|
|
1478
|
-
* @property {number[]} [stores] - List of store uids. Used when critera is `explicit`.
|
|
1479
|
-
*/
|
|
1480
|
-
|
|
1481
|
-
/**
|
|
1482
|
-
* @typedef InventoryPaymentConfig
|
|
1483
|
-
* @property {string} [mode_of_payment] - Mode of payment for the inventory of
|
|
1484
|
-
* sales channel. It is required and default value is null.
|
|
1485
|
-
* @property {string} [source] - Source of the payment mode for the inventory
|
|
1486
|
-
* payment of sales channel. Default value is FYND.
|
|
1487
|
-
*/
|
|
1488
|
-
|
|
1489
|
-
/**
|
|
1490
|
-
* @typedef StorePriorityRule
|
|
1491
|
-
* @property {boolean} [enabled] - Shows store priority is enabled or not
|
|
1492
|
-
* enabled for the article assignment.
|
|
1493
|
-
* @property {string[]} [storetype_order]
|
|
1494
|
-
*/
|
|
1495
|
-
|
|
1496
|
-
/**
|
|
1497
|
-
* @typedef ArticleAssignmentRule
|
|
1498
|
-
* @property {StorePriorityRule} [store_priority]
|
|
1499
|
-
*/
|
|
1500
|
-
|
|
1501
|
-
/**
|
|
1502
|
-
* @typedef InventoryArticleAssignment
|
|
1503
|
-
* @property {boolean} [post_order_reassignment] - Allow post order reassigment of article
|
|
1504
|
-
* @property {ArticleAssignmentRule} [rules]
|
|
1505
|
-
*/
|
|
1506
|
-
|
|
1507
1250
|
/**
|
|
1508
1251
|
* @typedef Page
|
|
1509
|
-
* @property {number} [item_total]
|
|
1510
|
-
* @property {string} [next_id]
|
|
1511
|
-
* @property {boolean} [has_previous]
|
|
1512
|
-
* @property {boolean} [has_next]
|
|
1513
|
-
* @property {number} [current]
|
|
1514
|
-
* @property {string} type
|
|
1515
|
-
* @property {number} [size]
|
|
1252
|
+
* @property {number} [item_total] - The total number of items on the page.
|
|
1253
|
+
* @property {string} [next_id] - The identifier for the next page.
|
|
1254
|
+
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
1255
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
1256
|
+
* @property {number} [current] - The current page number.
|
|
1257
|
+
* @property {string} type - The type of the page, such as 'PageType'.
|
|
1258
|
+
* @property {number} [size] - The number of items per page.
|
|
1516
1259
|
*/
|
|
1517
1260
|
|
|
1518
1261
|
/**
|
|
@@ -2378,204 +2121,6 @@ class ConfigurationPlatformModel {
|
|
|
2378
2121
|
});
|
|
2379
2122
|
}
|
|
2380
2123
|
|
|
2381
|
-
/** @returns {GetIntegrationsOptInsResponse} */
|
|
2382
|
-
static GetIntegrationsOptInsResponse() {
|
|
2383
|
-
return Joi.object({
|
|
2384
|
-
items: Joi.array().items(ConfigurationPlatformModel.IntegrationOptIn()),
|
|
2385
|
-
page: ConfigurationPlatformModel.Page(),
|
|
2386
|
-
});
|
|
2387
|
-
}
|
|
2388
|
-
|
|
2389
|
-
/** @returns {IntegrationOptIn} */
|
|
2390
|
-
static IntegrationOptIn() {
|
|
2391
|
-
return Joi.object({
|
|
2392
|
-
validators: ConfigurationPlatformModel.Validators(),
|
|
2393
|
-
description: Joi.string().allow(""),
|
|
2394
|
-
description_html: Joi.string().allow(""),
|
|
2395
|
-
constants: Joi.string().allow(""),
|
|
2396
|
-
companies: Joi.array().items(Joi.string().allow("")),
|
|
2397
|
-
support: Joi.array().items(Joi.string().allow("")),
|
|
2398
|
-
_id: Joi.string().allow(""),
|
|
2399
|
-
name: Joi.string().allow(""),
|
|
2400
|
-
slug: Joi.string().allow(""),
|
|
2401
|
-
hidden: Joi.boolean(),
|
|
2402
|
-
meta: Joi.array().items(ConfigurationPlatformModel.IntegrationMeta()),
|
|
2403
|
-
icon: Joi.string().allow(""),
|
|
2404
|
-
owner: Joi.string().allow(""),
|
|
2405
|
-
created_at: Joi.string().allow(""),
|
|
2406
|
-
modified_at: Joi.string().allow(""),
|
|
2407
|
-
token: Joi.string().allow(""),
|
|
2408
|
-
secret: Joi.string().allow(""),
|
|
2409
|
-
__v: Joi.number(),
|
|
2410
|
-
});
|
|
2411
|
-
}
|
|
2412
|
-
|
|
2413
|
-
/** @returns {Validators} */
|
|
2414
|
-
static Validators() {
|
|
2415
|
-
return Joi.object({
|
|
2416
|
-
company: ConfigurationPlatformModel.CompanyValidator(),
|
|
2417
|
-
store: ConfigurationPlatformModel.StoreValidator(),
|
|
2418
|
-
inventory: ConfigurationPlatformModel.InventoryValidator(),
|
|
2419
|
-
order: ConfigurationPlatformModel.OrderValidator(),
|
|
2420
|
-
});
|
|
2421
|
-
}
|
|
2422
|
-
|
|
2423
|
-
/** @returns {CompanyValidator} */
|
|
2424
|
-
static CompanyValidator() {
|
|
2425
|
-
return Joi.object({
|
|
2426
|
-
json_schema: Joi.array().items(ConfigurationPlatformModel.JsonSchema()),
|
|
2427
|
-
browser_script: Joi.string().allow(""),
|
|
2428
|
-
});
|
|
2429
|
-
}
|
|
2430
|
-
|
|
2431
|
-
/** @returns {JsonSchema} */
|
|
2432
|
-
static JsonSchema() {
|
|
2433
|
-
return Joi.object({
|
|
2434
|
-
display: Joi.string().allow(""),
|
|
2435
|
-
key: Joi.string().allow(""),
|
|
2436
|
-
type: Joi.string().allow(""),
|
|
2437
|
-
tooltip: Joi.string().allow(""),
|
|
2438
|
-
});
|
|
2439
|
-
}
|
|
2440
|
-
|
|
2441
|
-
/** @returns {StoreValidator} */
|
|
2442
|
-
static StoreValidator() {
|
|
2443
|
-
return Joi.object({
|
|
2444
|
-
json_schema: Joi.array().items(ConfigurationPlatformModel.JsonSchema()),
|
|
2445
|
-
browser_script: Joi.string().allow(""),
|
|
2446
|
-
});
|
|
2447
|
-
}
|
|
2448
|
-
|
|
2449
|
-
/** @returns {InventoryValidator} */
|
|
2450
|
-
static InventoryValidator() {
|
|
2451
|
-
return Joi.object({
|
|
2452
|
-
json_schema: Joi.array().items(ConfigurationPlatformModel.JsonSchema()),
|
|
2453
|
-
browser_script: Joi.string().allow(""),
|
|
2454
|
-
});
|
|
2455
|
-
}
|
|
2456
|
-
|
|
2457
|
-
/** @returns {OrderValidator} */
|
|
2458
|
-
static OrderValidator() {
|
|
2459
|
-
return Joi.object({
|
|
2460
|
-
json_schema: Joi.array().items(ConfigurationPlatformModel.JsonSchema()),
|
|
2461
|
-
browser_script: Joi.string().allow(""),
|
|
2462
|
-
});
|
|
2463
|
-
}
|
|
2464
|
-
|
|
2465
|
-
/** @returns {IntegrationMeta} */
|
|
2466
|
-
static IntegrationMeta() {
|
|
2467
|
-
return Joi.object({
|
|
2468
|
-
is_public: Joi.boolean(),
|
|
2469
|
-
_id: Joi.string().allow(""),
|
|
2470
|
-
name: Joi.string().allow(""),
|
|
2471
|
-
value: Joi.string().allow(""),
|
|
2472
|
-
});
|
|
2473
|
-
}
|
|
2474
|
-
|
|
2475
|
-
/** @returns {Integration} */
|
|
2476
|
-
static Integration() {
|
|
2477
|
-
return Joi.object({
|
|
2478
|
-
validators: ConfigurationPlatformModel.Validators(),
|
|
2479
|
-
description: Joi.string().allow(""),
|
|
2480
|
-
description_html: Joi.string().allow(""),
|
|
2481
|
-
constants: Joi.any(),
|
|
2482
|
-
companies: Joi.array().items(Joi.string().allow("")),
|
|
2483
|
-
support: Joi.array().items(Joi.string().allow("")),
|
|
2484
|
-
_id: Joi.string().allow(""),
|
|
2485
|
-
name: Joi.string().allow(""),
|
|
2486
|
-
slug: Joi.string().allow(""),
|
|
2487
|
-
meta: Joi.array().items(ConfigurationPlatformModel.IntegrationMeta()),
|
|
2488
|
-
icon: Joi.string().allow(""),
|
|
2489
|
-
hidden: Joi.boolean(),
|
|
2490
|
-
owner: Joi.string().allow(""),
|
|
2491
|
-
created_at: Joi.string().allow(""),
|
|
2492
|
-
modified_at: Joi.string().allow(""),
|
|
2493
|
-
token: Joi.string().allow(""),
|
|
2494
|
-
secret: Joi.string().allow(""),
|
|
2495
|
-
__v: Joi.number(),
|
|
2496
|
-
});
|
|
2497
|
-
}
|
|
2498
|
-
|
|
2499
|
-
/** @returns {IntegrationConfigResponse} */
|
|
2500
|
-
static IntegrationConfigResponse() {
|
|
2501
|
-
return Joi.object({
|
|
2502
|
-
items: Joi.array().items(ConfigurationPlatformModel.IntegrationLevel()),
|
|
2503
|
-
});
|
|
2504
|
-
}
|
|
2505
|
-
|
|
2506
|
-
/** @returns {IntegrationLevel} */
|
|
2507
|
-
static IntegrationLevel() {
|
|
2508
|
-
return Joi.object({
|
|
2509
|
-
opted: Joi.boolean(),
|
|
2510
|
-
permissions: Joi.array().items(Joi.any()),
|
|
2511
|
-
last_patch: Joi.array().items(ConfigurationPlatformModel.LastPatch()),
|
|
2512
|
-
_id: Joi.string().allow(""),
|
|
2513
|
-
integration: Joi.string().allow(""),
|
|
2514
|
-
level: Joi.string().allow(""),
|
|
2515
|
-
uid: Joi.number(),
|
|
2516
|
-
company_id: Joi.number(),
|
|
2517
|
-
meta: Joi.array().items(ConfigurationPlatformModel.IntegrationMeta()),
|
|
2518
|
-
token: Joi.string().allow(""),
|
|
2519
|
-
created_at: Joi.string().allow(""),
|
|
2520
|
-
modified_at: Joi.string().allow(""),
|
|
2521
|
-
__v: Joi.number(),
|
|
2522
|
-
data: Joi.any(),
|
|
2523
|
-
success: Joi.boolean(),
|
|
2524
|
-
message: Joi.string().allow(""),
|
|
2525
|
-
});
|
|
2526
|
-
}
|
|
2527
|
-
|
|
2528
|
-
/** @returns {UpdateIntegrationLevelRequest} */
|
|
2529
|
-
static UpdateIntegrationLevelRequest() {
|
|
2530
|
-
return Joi.object({
|
|
2531
|
-
items: Joi.array().items(ConfigurationPlatformModel.IntegrationLevel()),
|
|
2532
|
-
});
|
|
2533
|
-
}
|
|
2534
|
-
|
|
2535
|
-
/** @returns {OptedStoreIntegration} */
|
|
2536
|
-
static OptedStoreIntegration() {
|
|
2537
|
-
return Joi.object({
|
|
2538
|
-
other_opted: Joi.boolean(),
|
|
2539
|
-
other_integration: ConfigurationPlatformModel.IntegrationOptIn(),
|
|
2540
|
-
other_entity: ConfigurationPlatformModel.OtherEntity(),
|
|
2541
|
-
});
|
|
2542
|
-
}
|
|
2543
|
-
|
|
2544
|
-
/** @returns {OtherEntity} */
|
|
2545
|
-
static OtherEntity() {
|
|
2546
|
-
return Joi.object({
|
|
2547
|
-
opted: Joi.boolean(),
|
|
2548
|
-
permissions: Joi.array().items(Joi.string().allow("")),
|
|
2549
|
-
last_patch: Joi.array().items(ConfigurationPlatformModel.LastPatch()),
|
|
2550
|
-
_id: Joi.string().allow(""),
|
|
2551
|
-
integration: Joi.string().allow(""),
|
|
2552
|
-
level: Joi.string().allow(""),
|
|
2553
|
-
uid: Joi.number(),
|
|
2554
|
-
data: ConfigurationPlatformModel.OtherEntityData(),
|
|
2555
|
-
meta: Joi.array().items(Joi.any()),
|
|
2556
|
-
token: Joi.string().allow(""),
|
|
2557
|
-
created_at: Joi.string().allow(""),
|
|
2558
|
-
modified_at: Joi.string().allow(""),
|
|
2559
|
-
__v: Joi.number(),
|
|
2560
|
-
});
|
|
2561
|
-
}
|
|
2562
|
-
|
|
2563
|
-
/** @returns {LastPatch} */
|
|
2564
|
-
static LastPatch() {
|
|
2565
|
-
return Joi.object({
|
|
2566
|
-
op: Joi.string().allow(""),
|
|
2567
|
-
path: Joi.string().allow(""),
|
|
2568
|
-
value: Joi.string().allow(""),
|
|
2569
|
-
});
|
|
2570
|
-
}
|
|
2571
|
-
|
|
2572
|
-
/** @returns {OtherEntityData} */
|
|
2573
|
-
static OtherEntityData() {
|
|
2574
|
-
return Joi.object({
|
|
2575
|
-
article_identifier: Joi.string().allow(""),
|
|
2576
|
-
});
|
|
2577
|
-
}
|
|
2578
|
-
|
|
2579
2124
|
/** @returns {App} */
|
|
2580
2125
|
static App() {
|
|
2581
2126
|
return Joi.object({
|
|
@@ -2587,27 +2132,6 @@ class ConfigurationPlatformModel {
|
|
|
2587
2132
|
});
|
|
2588
2133
|
}
|
|
2589
2134
|
|
|
2590
|
-
/** @returns {InventoryConfig} */
|
|
2591
|
-
static InventoryConfig() {
|
|
2592
|
-
return Joi.object({
|
|
2593
|
-
brand: ConfigurationPlatformModel.InventoryBrandRule(),
|
|
2594
|
-
store: ConfigurationPlatformModel.InventoryStoreRule(),
|
|
2595
|
-
image: Joi.array().items(Joi.string().allow("")),
|
|
2596
|
-
franchise_enabled: Joi.boolean(),
|
|
2597
|
-
out_of_stock: Joi.boolean(),
|
|
2598
|
-
only_verified_products: Joi.boolean(),
|
|
2599
|
-
});
|
|
2600
|
-
}
|
|
2601
|
-
|
|
2602
|
-
/** @returns {AppInventory} */
|
|
2603
|
-
static AppInventory() {
|
|
2604
|
-
return Joi.object({
|
|
2605
|
-
inventory: ConfigurationPlatformModel.InventoryConfig(),
|
|
2606
|
-
payment: ConfigurationPlatformModel.InventoryPaymentConfig(),
|
|
2607
|
-
article_assignment: ConfigurationPlatformModel.InventoryArticleAssignment(),
|
|
2608
|
-
});
|
|
2609
|
-
}
|
|
2610
|
-
|
|
2611
2135
|
/** @returns {AppDomain} */
|
|
2612
2136
|
static AppDomain() {
|
|
2613
2137
|
return Joi.object({
|
|
@@ -3343,62 +2867,6 @@ class ConfigurationPlatformModel {
|
|
|
3343
2867
|
});
|
|
3344
2868
|
}
|
|
3345
2869
|
|
|
3346
|
-
/** @returns {InventoryBrandRule} */
|
|
3347
|
-
static InventoryBrandRule() {
|
|
3348
|
-
return Joi.object({
|
|
3349
|
-
criteria: Joi.string().allow(""),
|
|
3350
|
-
brands: Joi.array().items(Joi.number()),
|
|
3351
|
-
});
|
|
3352
|
-
}
|
|
3353
|
-
|
|
3354
|
-
/** @returns {StoreCriteriaRule} */
|
|
3355
|
-
static StoreCriteriaRule() {
|
|
3356
|
-
return Joi.object({
|
|
3357
|
-
companies: Joi.array().items(Joi.number()),
|
|
3358
|
-
brands: Joi.array().items(Joi.number()),
|
|
3359
|
-
});
|
|
3360
|
-
}
|
|
3361
|
-
|
|
3362
|
-
/** @returns {InventoryStoreRule} */
|
|
3363
|
-
static InventoryStoreRule() {
|
|
3364
|
-
return Joi.object({
|
|
3365
|
-
criteria: Joi.string().allow(""),
|
|
3366
|
-
rules: Joi.array().items(ConfigurationPlatformModel.StoreCriteriaRule()),
|
|
3367
|
-
stores: Joi.array().items(Joi.number()),
|
|
3368
|
-
});
|
|
3369
|
-
}
|
|
3370
|
-
|
|
3371
|
-
/** @returns {InventoryPaymentConfig} */
|
|
3372
|
-
static InventoryPaymentConfig() {
|
|
3373
|
-
return Joi.object({
|
|
3374
|
-
mode_of_payment: Joi.string().allow(""),
|
|
3375
|
-
source: Joi.string().allow(""),
|
|
3376
|
-
});
|
|
3377
|
-
}
|
|
3378
|
-
|
|
3379
|
-
/** @returns {StorePriorityRule} */
|
|
3380
|
-
static StorePriorityRule() {
|
|
3381
|
-
return Joi.object({
|
|
3382
|
-
enabled: Joi.boolean(),
|
|
3383
|
-
storetype_order: Joi.array().items(Joi.string().allow("")),
|
|
3384
|
-
});
|
|
3385
|
-
}
|
|
3386
|
-
|
|
3387
|
-
/** @returns {ArticleAssignmentRule} */
|
|
3388
|
-
static ArticleAssignmentRule() {
|
|
3389
|
-
return Joi.object({
|
|
3390
|
-
store_priority: ConfigurationPlatformModel.StorePriorityRule(),
|
|
3391
|
-
});
|
|
3392
|
-
}
|
|
3393
|
-
|
|
3394
|
-
/** @returns {InventoryArticleAssignment} */
|
|
3395
|
-
static InventoryArticleAssignment() {
|
|
3396
|
-
return Joi.object({
|
|
3397
|
-
post_order_reassignment: Joi.boolean(),
|
|
3398
|
-
rules: ConfigurationPlatformModel.ArticleAssignmentRule(),
|
|
3399
|
-
});
|
|
3400
|
-
}
|
|
3401
|
-
|
|
3402
2870
|
/** @returns {Page} */
|
|
3403
2871
|
static Page() {
|
|
3404
2872
|
return Joi.object({
|