@gofynd/fdk-client-javascript 1.0.1 → 1.0.3
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/documentation/application/CART.md +5934 -4502
- package/documentation/application/CATALOG.md +6338 -7245
- package/documentation/application/COMMON.md +95 -222
- package/documentation/application/COMMUNICATION.md +106 -186
- package/documentation/application/CONFIGURATION.md +903 -1597
- package/documentation/application/CONTENT.md +562 -1270
- package/documentation/application/FILESTORAGE.md +84 -220
- package/documentation/application/LEAD.md +314 -660
- package/documentation/application/LOGISTIC.md +229 -305
- package/documentation/application/ORDER.md +642 -1137
- package/documentation/application/PAYMENT.md +2285 -3031
- package/documentation/application/POSCART.md +6079 -4642
- package/documentation/application/REWARDS.md +94 -248
- package/documentation/application/SHARE.md +152 -250
- package/documentation/application/THEME.md +952 -1235
- package/documentation/application/USER.md +1228 -1765
- package/documentation/platform/ANALYTICS.md +207 -349
- package/documentation/platform/AUDITTRAIL.md +121 -204
- package/documentation/platform/BILLING.md +865 -1376
- package/documentation/platform/CART.md +2814 -3662
- package/documentation/platform/CATALOG.md +15266 -17619
- package/documentation/platform/COMMON.md +95 -222
- package/documentation/platform/COMMUNICATION.md +1632 -2380
- package/documentation/platform/COMPANYPROFILE.md +572 -957
- package/documentation/platform/CONFIGURATION.md +3050 -4073
- package/documentation/platform/CONTENT.md +3509 -4121
- package/documentation/platform/DISCOUNT.md +140 -236
- package/documentation/platform/FILESTORAGE.md +187 -323
- package/documentation/platform/INVENTORY.md +268 -911
- package/documentation/platform/LEAD.md +2195 -2541
- package/documentation/platform/ORDER.md +3750 -5636
- package/documentation/platform/PARTNER.md +9 -36
- package/documentation/platform/PAYMENT.md +903 -1213
- package/documentation/platform/REWARDS.md +183 -347
- package/documentation/platform/SHARE.md +120 -213
- package/documentation/platform/THEME.md +12956 -13239
- package/documentation/platform/USER.md +975 -1120
- package/documentation/platform/WEBHOOK.md +78 -184
- package/documentation/public/CONFIGURATION.md +95 -222
- package/documentation/public/INVENTORY.md +100 -282
- package/documentation/public/WEBHOOK.md +27 -133
- package/package.json +1 -1
- package/sdk/application/ApplicationConfig.js +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
- package/sdk/application/Cart/CartApplicationClient.js +1058 -547
- package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
- package/sdk/application/Cart/CartApplicationModel.js +489 -886
- package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
- package/sdk/application/Cart/CartApplicationValidator.js +98 -98
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
- package/sdk/application/Catalog/CatalogApplicationClient.js +1545 -949
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
- package/sdk/application/Catalog/CatalogApplicationModel.js +692 -1258
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
- package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
- package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
- package/sdk/application/Common/CommonApplicationClient.js +76 -36
- package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
- package/sdk/application/Common/CommonApplicationModel.js +83 -160
- package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
- package/sdk/application/Common/CommonApplicationValidator.js +6 -6
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
- package/sdk/application/Communication/CommunicationApplicationClient.js +92 -31
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
- package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
- package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +638 -312
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
- package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
- package/sdk/application/Content/ContentApplicationClient.js +581 -213
- package/sdk/application/Content/ContentApplicationModel.d.ts +76 -75
- package/sdk/application/Content/ContentApplicationModel.js +468 -875
- package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
- package/sdk/application/Content/ContentApplicationValidator.js +24 -24
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +121 -59
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
- package/sdk/application/Lead/LeadApplicationClient.js +230 -96
- package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
- package/sdk/application/Lead/LeadApplicationModel.js +267 -474
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +30 -19
- package/sdk/application/Logistic/LogisticApplicationClient.js +196 -47
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
- package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
- package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +86 -86
- package/sdk/application/Order/OrderApplicationClient.js +448 -215
- package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
- package/sdk/application/Order/OrderApplicationModel.js +357 -661
- package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
- package/sdk/application/Order/OrderApplicationValidator.js +28 -28
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
- package/sdk/application/Payment/PaymentApplicationClient.js +1525 -750
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
- package/sdk/application/Payment/PaymentApplicationModel.js +565 -1033
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
- package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
- package/sdk/application/PosCart/PosCartApplicationClient.js +1137 -606
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +61 -60
- package/sdk/application/PosCart/PosCartApplicationModel.js +477 -873
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
- package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
- package/sdk/application/Rewards/RewardsApplicationClient.js +253 -113
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
- package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
- package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
- package/sdk/application/Share/ShareApplicationClient.js +221 -96
- package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
- package/sdk/application/Share/ShareApplicationModel.js +63 -123
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationValidator.js +12 -12
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
- package/sdk/application/Theme/ThemeApplicationClient.js +115 -37
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
- package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
- package/sdk/application/User/UserApplicationClient.d.ts +280 -280
- package/sdk/application/User/UserApplicationClient.js +1201 -543
- package/sdk/application/User/UserApplicationModel.d.ts +79 -72
- package/sdk/application/User/UserApplicationModel.js +440 -689
- package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
- package/sdk/application/User/UserApplicationValidator.js +89 -89
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +55 -47
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +308 -151
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
- package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +103 -16
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +16 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +131 -44
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +6 -6
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +68 -56
- package/sdk/platform/Billing/BillingPlatformClient.js +416 -171
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
- package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
- package/sdk/platform/Billing/BillingPlatformValidator.js +25 -25
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +176 -159
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +837 -500
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
- package/sdk/platform/Cart/CartPlatformModel.d.ts +86 -85
- package/sdk/platform/Cart/CartPlatformModel.js +677 -1211
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +582 -529
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2642 -1533
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +708 -590
- package/sdk/platform/Catalog/CatalogPlatformClient.js +3103 -1362
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +293 -284
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2149 -3660
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -64
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +235 -216
- package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -12
- package/sdk/platform/Common/CommonPlatformClient.js +80 -37
- package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformModel.js +83 -160
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
- package/sdk/platform/Common/CommonPlatformValidator.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +333 -293
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1687 -855
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +28 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
- package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +70 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +463 -182
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -28
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +294 -557
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +175 -137
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1168 -521
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +137 -119
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +691 -316
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +38 -38
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +542 -461
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +2600 -1160
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -49
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +159 -152
- package/sdk/platform/Content/ContentPlatformModel.d.ts +79 -75
- package/sdk/platform/Content/ContentPlatformModel.js +486 -867
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +72 -61
- package/sdk/platform/Discount/DiscountPlatformClient.js +424 -198
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -29
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +26 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +145 -59
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +58 -52
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +240 -114
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -11
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +76 -63
- package/sdk/platform/Inventory/InventoryPlatformClient.js +461 -197
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
- package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +28 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +84 -71
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +441 -182
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +86 -75
- package/sdk/platform/Lead/LeadPlatformClient.js +434 -212
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
- package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
- package/sdk/platform/Lead/LeadPlatformValidator.js +24 -24
- package/sdk/platform/OAuthClient.js +8 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +14 -11
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +113 -49
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
- package/sdk/platform/Order/OrderPlatformClient.d.ts +367 -315
- package/sdk/platform/Order/OrderPlatformClient.js +1775 -893
- package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -192
- package/sdk/platform/Order/OrderPlatformModel.js +1591 -2822
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
- package/sdk/platform/Order/OrderPlatformValidator.js +160 -155
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -8
- package/sdk/platform/Partner/PartnerPlatformModel.js +6 -22
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +65 -54
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +395 -164
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +55 -45
- package/sdk/platform/Payment/PaymentPlatformClient.js +362 -147
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
- package/sdk/platform/Payment/PaymentPlatformModel.js +220 -408
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
- package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10153
- package/sdk/platform/PlatformApplicationClient.js +1584 -13691
- package/sdk/platform/PlatformClient.d.ts +7918 -7666
- package/sdk/platform/PlatformClient.js +8701 -9926
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +91 -78
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +507 -253
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +34 -34
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
- package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -12
- package/sdk/platform/Share/SharePlatformApplicationClient.js +130 -52
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -6
- package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
- package/sdk/platform/Share/SharePlatformModel.js +60 -118
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +148 -124
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +770 -295
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +44 -44
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
- package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +146 -67
- package/sdk/platform/User/UserPlatformApplicationClient.js +742 -155
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +61 -23
- package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
- package/sdk/platform/User/UserPlatformModel.js +440 -689
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +35 -29
- package/sdk/platform/Webhook/WebhookPlatformClient.js +218 -91
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +14 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
- package/sdk/public/Configuration/ConfigurationPublicClient.js +81 -38
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
- package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
- package/sdk/public/Inventory/InventoryPublicClient.js +228 -105
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
- package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
- package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
- package/sdk/public/Webhook/WebhookPublicClient.js +51 -10
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
- package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
- package/tests/application/catalog.spec.js +7 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export = LeadValidator;
|
|
2
2
|
declare class LeadValidator {
|
|
3
|
-
static
|
|
3
|
+
static createHistory(): any;
|
|
4
4
|
static createTicket(): any;
|
|
5
|
-
static getTicket(): any;
|
|
6
5
|
static editTicket(): any;
|
|
7
|
-
static createHistory(): any;
|
|
8
|
-
static getTicketHistory(): any;
|
|
9
6
|
static getFeedbacks(): any;
|
|
10
|
-
static
|
|
7
|
+
static getGeneralConfig(): any;
|
|
8
|
+
static getTicket(): any;
|
|
9
|
+
static getTicketHistory(): any;
|
|
10
|
+
static getTickets(): any;
|
|
11
11
|
static getTokenForVideoRoom(): any;
|
|
12
12
|
static getVideoParticipants(): any;
|
|
13
|
-
static
|
|
13
|
+
static submitFeedback(): any;
|
|
14
14
|
}
|
|
@@ -2,16 +2,10 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
const LeadModel = require("./LeadPlatformModel");
|
|
4
4
|
class LeadValidator {
|
|
5
|
-
static
|
|
5
|
+
static createHistory() {
|
|
6
6
|
return Joi.object({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
q: Joi.string().allow(""),
|
|
10
|
-
status: Joi.string().allow(""),
|
|
11
|
-
priority: LeadModel.PriorityEnum(),
|
|
12
|
-
category: Joi.string().allow(""),
|
|
13
|
-
pageNo: Joi.number(),
|
|
14
|
-
pageSize: Joi.number(),
|
|
7
|
+
id: Joi.string().allow("").required(),
|
|
8
|
+
body: LeadModel.TicketHistoryPayload().required(),
|
|
15
9
|
}).required();
|
|
16
10
|
}
|
|
17
11
|
|
|
@@ -21,12 +15,6 @@ class LeadValidator {
|
|
|
21
15
|
}).required();
|
|
22
16
|
}
|
|
23
17
|
|
|
24
|
-
static getTicket() {
|
|
25
|
-
return Joi.object({
|
|
26
|
-
id: Joi.string().allow("").required(),
|
|
27
|
-
}).required();
|
|
28
|
-
}
|
|
29
|
-
|
|
30
18
|
static editTicket() {
|
|
31
19
|
return Joi.object({
|
|
32
20
|
id: Joi.string().allow("").required(),
|
|
@@ -34,29 +22,38 @@ class LeadValidator {
|
|
|
34
22
|
}).required();
|
|
35
23
|
}
|
|
36
24
|
|
|
37
|
-
static
|
|
25
|
+
static getFeedbacks() {
|
|
38
26
|
return Joi.object({
|
|
39
27
|
id: Joi.string().allow("").required(),
|
|
40
|
-
body: LeadModel.TicketHistoryPayload().required(),
|
|
41
28
|
}).required();
|
|
42
29
|
}
|
|
43
30
|
|
|
44
|
-
static
|
|
31
|
+
static getGeneralConfig() {
|
|
32
|
+
return Joi.object({}).required();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static getTicket() {
|
|
45
36
|
return Joi.object({
|
|
46
37
|
id: Joi.string().allow("").required(),
|
|
47
38
|
}).required();
|
|
48
39
|
}
|
|
49
40
|
|
|
50
|
-
static
|
|
41
|
+
static getTicketHistory() {
|
|
51
42
|
return Joi.object({
|
|
52
43
|
id: Joi.string().allow("").required(),
|
|
53
44
|
}).required();
|
|
54
45
|
}
|
|
55
46
|
|
|
56
|
-
static
|
|
47
|
+
static getTickets() {
|
|
57
48
|
return Joi.object({
|
|
58
|
-
|
|
59
|
-
|
|
49
|
+
items: Joi.boolean(),
|
|
50
|
+
filters: Joi.boolean(),
|
|
51
|
+
q: Joi.string().allow(""),
|
|
52
|
+
status: Joi.string().allow(""),
|
|
53
|
+
priority: LeadModel.PriorityEnum(),
|
|
54
|
+
category: Joi.string().allow(""),
|
|
55
|
+
pageNo: Joi.number(),
|
|
56
|
+
pageSize: Joi.number(),
|
|
60
57
|
}).required();
|
|
61
58
|
}
|
|
62
59
|
|
|
@@ -72,8 +69,11 @@ class LeadValidator {
|
|
|
72
69
|
}).required();
|
|
73
70
|
}
|
|
74
71
|
|
|
75
|
-
static
|
|
76
|
-
return Joi.object({
|
|
72
|
+
static submitFeedback() {
|
|
73
|
+
return Joi.object({
|
|
74
|
+
id: Joi.string().allow("").required(),
|
|
75
|
+
body: LeadModel.TicketFeedbackPayload().required(),
|
|
76
|
+
}).required();
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
module.exports = LeadValidator;
|
|
@@ -49,11 +49,11 @@ class OAuthClient {
|
|
|
49
49
|
if (this.refreshToken && this.useAutoRenewTimer) {
|
|
50
50
|
this.retryOAuthToken(token.expires_in);
|
|
51
51
|
}
|
|
52
|
-
Logger({
|
|
52
|
+
Logger({ level: "INFO", message: "Token set." });
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
retryOAuthToken(expires_in) {
|
|
56
|
-
Logger({
|
|
56
|
+
Logger({ level: "INFO", message: "Retrying OAuth Token..." });
|
|
57
57
|
if (this.retryOAuthTokenTimer) {
|
|
58
58
|
clearTimeout(this.retryOAuthTokenTimer);
|
|
59
59
|
}
|
|
@@ -65,7 +65,7 @@ class OAuthClient {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
startAuthorization(options) {
|
|
68
|
-
Logger({
|
|
68
|
+
Logger({ level: "INFO", message: "Starting Authorization..." });
|
|
69
69
|
let query = {
|
|
70
70
|
client_id: this.config.apiKey,
|
|
71
71
|
scope: options.scope.join(","),
|
|
@@ -86,7 +86,7 @@ class OAuthClient {
|
|
|
86
86
|
signQuery: true,
|
|
87
87
|
};
|
|
88
88
|
signingOptions = sign(signingOptions);
|
|
89
|
-
Logger({
|
|
89
|
+
Logger({ level: "INFO", message: "Authorization successful.!" });
|
|
90
90
|
|
|
91
91
|
return `${this.config.domain}${signingOptions.path}`;
|
|
92
92
|
}
|
|
@@ -116,7 +116,7 @@ class OAuthClient {
|
|
|
116
116
|
|
|
117
117
|
async renewAccessToken(isOfflineToken = false) {
|
|
118
118
|
try {
|
|
119
|
-
Logger({
|
|
119
|
+
Logger({ level: "INFO", message: "Renewing Access token..." });
|
|
120
120
|
let res;
|
|
121
121
|
if (isOfflineToken) {
|
|
122
122
|
let requestCacheKey = `${this.config.apiKey}:${this.config.companyId}`;
|
|
@@ -138,7 +138,7 @@ class OAuthClient {
|
|
|
138
138
|
this.setToken(res);
|
|
139
139
|
this.token_expires_at =
|
|
140
140
|
new Date().getTime() + this.token_expires_in * 1000;
|
|
141
|
-
Logger({
|
|
141
|
+
Logger({ level: "INFO", message: "Done." });
|
|
142
142
|
return res;
|
|
143
143
|
} catch (error) {
|
|
144
144
|
if (error.isAxiosError) {
|
|
@@ -149,7 +149,7 @@ class OAuthClient {
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
async getAccesstokenObj({ grant_type, refresh_token, code }) {
|
|
152
|
-
Logger({
|
|
152
|
+
Logger({ level: "INFO", message: "Processing Access token object..." });
|
|
153
153
|
let reqData = {
|
|
154
154
|
grant_type: grant_type,
|
|
155
155
|
};
|
|
@@ -173,7 +173,7 @@ class OAuthClient {
|
|
|
173
173
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
174
174
|
},
|
|
175
175
|
};
|
|
176
|
-
Logger({
|
|
176
|
+
Logger({ level: "INFO", message: "Done." });
|
|
177
177
|
return fdkAxios.request(rawRequest);
|
|
178
178
|
}
|
|
179
179
|
|
|
@@ -3,6 +3,16 @@ declare class Order {
|
|
|
3
3
|
constructor(config: any, applicationId: any);
|
|
4
4
|
config: any;
|
|
5
5
|
applicationId: any;
|
|
6
|
+
/**
|
|
7
|
+
* @param {Object} arg - Arg object.
|
|
8
|
+
* @param {string} arg.orderId -
|
|
9
|
+
* @returns {Promise<ShipmentDetailsResponse>} - Success response
|
|
10
|
+
* @summary:
|
|
11
|
+
* @description:
|
|
12
|
+
*/
|
|
13
|
+
getAppOrderShipmentDetails({ orderId }?: {
|
|
14
|
+
orderId: string;
|
|
15
|
+
}): Promise<ShipmentDetailsResponse>;
|
|
6
16
|
/**
|
|
7
17
|
* @param {Object} arg - Arg object.
|
|
8
18
|
* @param {string} [arg.lane] -
|
|
@@ -19,6 +29,7 @@ declare class Order {
|
|
|
19
29
|
* @param {number} [arg.pageSize] -
|
|
20
30
|
* @param {string} [arg.customerId] -
|
|
21
31
|
* @param {boolean} [arg.isPrioritySort] -
|
|
32
|
+
* @returns {Promise<ShipmentInternalPlatformViewResponse>} - Success response
|
|
22
33
|
* @summary:
|
|
23
34
|
* @description:
|
|
24
35
|
*/
|
|
@@ -37,23 +48,15 @@ declare class Order {
|
|
|
37
48
|
pageSize?: number;
|
|
38
49
|
customerId?: string;
|
|
39
50
|
isPrioritySort?: boolean;
|
|
40
|
-
}): Promise<
|
|
41
|
-
/**
|
|
42
|
-
* @param {Object} arg - Arg object.
|
|
43
|
-
* @param {string} arg.orderId -
|
|
44
|
-
* @summary:
|
|
45
|
-
* @description:
|
|
46
|
-
*/
|
|
47
|
-
getAppOrderShipmentDetails({ orderId }?: {
|
|
48
|
-
orderId: string;
|
|
49
|
-
}): Promise<any>;
|
|
51
|
+
}): Promise<ShipmentInternalPlatformViewResponse>;
|
|
50
52
|
/**
|
|
51
53
|
* @param {Object} arg - Arg object.
|
|
52
54
|
* @param {string} arg.shipmentId -
|
|
55
|
+
* @returns {Promise<PlatformShipmentTrack>} - Success response
|
|
53
56
|
* @summary: Track shipment
|
|
54
57
|
* @description: Track Shipment by shipment id, for application based on application Id
|
|
55
58
|
*/
|
|
56
59
|
trackPlatformShipment({ shipmentId }?: {
|
|
57
60
|
shipmentId: string;
|
|
58
|
-
}): Promise<
|
|
61
|
+
}): Promise<PlatformShipmentTrack>;
|
|
59
62
|
}
|
|
@@ -2,6 +2,8 @@ const Paginator = require("../../common/Paginator");
|
|
|
2
2
|
const PlatformAPIClient = require("../PlatformAPIClient");
|
|
3
3
|
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
4
4
|
const OrderValidator = require("./OrderPlatformApplicationValidator");
|
|
5
|
+
const OrderModel = require("./OrderPlatformModel");
|
|
6
|
+
const { Logger } = require("./../../common/Logger");
|
|
5
7
|
|
|
6
8
|
class Order {
|
|
7
9
|
constructor(config, applicationId) {
|
|
@@ -9,6 +11,71 @@ class Order {
|
|
|
9
11
|
this.applicationId = applicationId;
|
|
10
12
|
}
|
|
11
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @param {Object} arg - Arg object.
|
|
16
|
+
* @param {string} arg.orderId -
|
|
17
|
+
* @returns {Promise<ShipmentDetailsResponse>} - Success response
|
|
18
|
+
* @summary:
|
|
19
|
+
* @description:
|
|
20
|
+
*/
|
|
21
|
+
async getAppOrderShipmentDetails({ orderId } = {}) {
|
|
22
|
+
const { error } = OrderValidator.getAppOrderShipmentDetails().validate(
|
|
23
|
+
{
|
|
24
|
+
orderId,
|
|
25
|
+
},
|
|
26
|
+
{ abortEarly: false, allowUnknown: true }
|
|
27
|
+
);
|
|
28
|
+
if (error) {
|
|
29
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Showing warrnings if extra unknown parameters are found
|
|
33
|
+
const {
|
|
34
|
+
error: warrning,
|
|
35
|
+
} = OrderValidator.getAppOrderShipmentDetails().validate(
|
|
36
|
+
{
|
|
37
|
+
orderId,
|
|
38
|
+
},
|
|
39
|
+
{ abortEarly: false, allowUnknown: false }
|
|
40
|
+
);
|
|
41
|
+
if (warrning) {
|
|
42
|
+
Logger({
|
|
43
|
+
level: "WARN",
|
|
44
|
+
message:
|
|
45
|
+
"Parameter Validation warrnings for getAppOrderShipmentDetails",
|
|
46
|
+
});
|
|
47
|
+
Logger({ level: "WARN", message: warrning });
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const query_params = {};
|
|
51
|
+
query_params["order_id"] = orderId;
|
|
52
|
+
|
|
53
|
+
const response = await PlatformAPIClient.execute(
|
|
54
|
+
this.config,
|
|
55
|
+
"get",
|
|
56
|
+
`/service/platform/orders/v1.0/company/${this.config.companyId}/application/${this.applicationId}/order-details`,
|
|
57
|
+
query_params,
|
|
58
|
+
undefined
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
const {
|
|
62
|
+
error: res_error,
|
|
63
|
+
} = OrderModel.ShipmentDetailsResponse().validate(response, {
|
|
64
|
+
abortEarly: false,
|
|
65
|
+
allowUnknown: false,
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
if (res_error) {
|
|
69
|
+
Logger({
|
|
70
|
+
level: "WARN",
|
|
71
|
+
message: "Response Validation Warnnings for getAppOrderShipmentDetails",
|
|
72
|
+
});
|
|
73
|
+
Logger({ level: "WARN", message: res_error });
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return response;
|
|
77
|
+
}
|
|
78
|
+
|
|
12
79
|
/**
|
|
13
80
|
* @param {Object} arg - Arg object.
|
|
14
81
|
* @param {string} [arg.lane] -
|
|
@@ -25,10 +92,11 @@ class Order {
|
|
|
25
92
|
* @param {number} [arg.pageSize] -
|
|
26
93
|
* @param {string} [arg.customerId] -
|
|
27
94
|
* @param {boolean} [arg.isPrioritySort] -
|
|
95
|
+
* @returns {Promise<ShipmentInternalPlatformViewResponse>} - Success response
|
|
28
96
|
* @summary:
|
|
29
97
|
* @description:
|
|
30
98
|
*/
|
|
31
|
-
getApplicationShipments({
|
|
99
|
+
async getApplicationShipments({
|
|
32
100
|
lane,
|
|
33
101
|
searchType,
|
|
34
102
|
searchId,
|
|
@@ -90,8 +158,11 @@ class Order {
|
|
|
90
158
|
{ abortEarly: false, allowUnknown: false }
|
|
91
159
|
);
|
|
92
160
|
if (warrning) {
|
|
93
|
-
|
|
94
|
-
|
|
161
|
+
Logger({
|
|
162
|
+
level: "WARN",
|
|
163
|
+
message: "Parameter Validation warrnings for getApplicationShipments",
|
|
164
|
+
});
|
|
165
|
+
Logger({ level: "WARN", message: warrning });
|
|
95
166
|
}
|
|
96
167
|
|
|
97
168
|
const query_params = {};
|
|
@@ -110,67 +181,40 @@ class Order {
|
|
|
110
181
|
query_params["customer_id"] = customerId;
|
|
111
182
|
query_params["is_priority_sort"] = isPrioritySort;
|
|
112
183
|
|
|
113
|
-
|
|
184
|
+
const response = await PlatformAPIClient.execute(
|
|
114
185
|
this.config,
|
|
115
186
|
"get",
|
|
116
187
|
`/service/platform/orders/v1.0/company/${this.config.companyId}/application/${this.applicationId}/shipments/`,
|
|
117
188
|
query_params,
|
|
118
189
|
undefined
|
|
119
190
|
);
|
|
120
|
-
}
|
|
121
191
|
|
|
122
|
-
/**
|
|
123
|
-
* @param {Object} arg - Arg object.
|
|
124
|
-
* @param {string} arg.orderId -
|
|
125
|
-
* @summary:
|
|
126
|
-
* @description:
|
|
127
|
-
*/
|
|
128
|
-
getAppOrderShipmentDetails({ orderId } = {}) {
|
|
129
|
-
const { error } = OrderValidator.getAppOrderShipmentDetails().validate(
|
|
130
|
-
{
|
|
131
|
-
orderId,
|
|
132
|
-
},
|
|
133
|
-
{ abortEarly: false, allowUnknown: true }
|
|
134
|
-
);
|
|
135
|
-
if (error) {
|
|
136
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// Showing warrnings if extra unknown parameters are found
|
|
140
192
|
const {
|
|
141
|
-
error:
|
|
142
|
-
} =
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
{ abortEarly: false, allowUnknown: false }
|
|
147
|
-
);
|
|
148
|
-
if (warrning) {
|
|
149
|
-
console.log(
|
|
150
|
-
"Parameter Validation warrnings for getAppOrderShipmentDetails"
|
|
151
|
-
);
|
|
152
|
-
console.log(warrning);
|
|
153
|
-
}
|
|
193
|
+
error: res_error,
|
|
194
|
+
} = OrderModel.ShipmentInternalPlatformViewResponse().validate(response, {
|
|
195
|
+
abortEarly: false,
|
|
196
|
+
allowUnknown: false,
|
|
197
|
+
});
|
|
154
198
|
|
|
155
|
-
|
|
156
|
-
|
|
199
|
+
if (res_error) {
|
|
200
|
+
Logger({
|
|
201
|
+
level: "WARN",
|
|
202
|
+
message: "Response Validation Warnnings for getApplicationShipments",
|
|
203
|
+
});
|
|
204
|
+
Logger({ level: "WARN", message: res_error });
|
|
205
|
+
}
|
|
157
206
|
|
|
158
|
-
return
|
|
159
|
-
this.config,
|
|
160
|
-
"get",
|
|
161
|
-
`/service/platform/orders/v1.0/company/${this.config.companyId}/application/${this.applicationId}/order-details`,
|
|
162
|
-
query_params,
|
|
163
|
-
undefined
|
|
164
|
-
);
|
|
207
|
+
return response;
|
|
165
208
|
}
|
|
166
209
|
|
|
167
210
|
/**
|
|
168
211
|
* @param {Object} arg - Arg object.
|
|
169
212
|
* @param {string} arg.shipmentId -
|
|
213
|
+
* @returns {Promise<PlatformShipmentTrack>} - Success response
|
|
170
214
|
* @summary: Track shipment
|
|
171
215
|
* @description: Track Shipment by shipment id, for application based on application Id
|
|
172
216
|
*/
|
|
173
|
-
trackPlatformShipment({ shipmentId } = {}) {
|
|
217
|
+
async trackPlatformShipment({ shipmentId } = {}) {
|
|
174
218
|
const { error } = OrderValidator.trackPlatformShipment().validate(
|
|
175
219
|
{
|
|
176
220
|
shipmentId,
|
|
@@ -189,19 +233,39 @@ class Order {
|
|
|
189
233
|
{ abortEarly: false, allowUnknown: false }
|
|
190
234
|
);
|
|
191
235
|
if (warrning) {
|
|
192
|
-
|
|
193
|
-
|
|
236
|
+
Logger({
|
|
237
|
+
level: "WARN",
|
|
238
|
+
message: "Parameter Validation warrnings for trackPlatformShipment",
|
|
239
|
+
});
|
|
240
|
+
Logger({ level: "WARN", message: warrning });
|
|
194
241
|
}
|
|
195
242
|
|
|
196
243
|
const query_params = {};
|
|
197
244
|
|
|
198
|
-
|
|
245
|
+
const response = await PlatformAPIClient.execute(
|
|
199
246
|
this.config,
|
|
200
247
|
"get",
|
|
201
248
|
`/service/platform/orders/v1.0/company/${this.config.companyId}/application/${this.applicationId}/orders/shipments/${shipmentId}/track`,
|
|
202
249
|
query_params,
|
|
203
250
|
undefined
|
|
204
251
|
);
|
|
252
|
+
|
|
253
|
+
const {
|
|
254
|
+
error: res_error,
|
|
255
|
+
} = OrderModel.PlatformShipmentTrack().validate(response, {
|
|
256
|
+
abortEarly: false,
|
|
257
|
+
allowUnknown: false,
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
if (res_error) {
|
|
261
|
+
Logger({
|
|
262
|
+
level: "WARN",
|
|
263
|
+
message: "Response Validation Warnnings for trackPlatformShipment",
|
|
264
|
+
});
|
|
265
|
+
Logger({ level: "WARN", message: res_error });
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
return response;
|
|
205
269
|
}
|
|
206
270
|
}
|
|
207
271
|
module.exports = Order;
|
|
@@ -2,6 +2,12 @@ const Joi = require("joi");
|
|
|
2
2
|
const OrderModel = require("./OrderPlatformModel");
|
|
3
3
|
|
|
4
4
|
class OrderValidator {
|
|
5
|
+
static getAppOrderShipmentDetails() {
|
|
6
|
+
return Joi.object({
|
|
7
|
+
orderId: Joi.string().allow("").required(),
|
|
8
|
+
}).required();
|
|
9
|
+
}
|
|
10
|
+
|
|
5
11
|
static getApplicationShipments() {
|
|
6
12
|
return Joi.object({
|
|
7
13
|
lane: Joi.string().allow(""),
|
|
@@ -21,12 +27,6 @@ class OrderValidator {
|
|
|
21
27
|
}).required();
|
|
22
28
|
}
|
|
23
29
|
|
|
24
|
-
static getAppOrderShipmentDetails() {
|
|
25
|
-
return Joi.object({
|
|
26
|
-
orderId: Joi.string().allow("").required(),
|
|
27
|
-
}).required();
|
|
28
|
-
}
|
|
29
|
-
|
|
30
30
|
static trackPlatformShipment() {
|
|
31
31
|
return Joi.object({
|
|
32
32
|
shipmentId: Joi.string().allow("").required(),
|