@gofynd/fdk-client-javascript 1.0.4 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/index.d.ts +4 -1
- package/index.js +19 -3
- package/package.json +13 -4
- package/partner.d.ts +4 -0
- package/partner.js +7 -0
- package/sdk/application/ApplicationAPIClient.js +2 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -1
- package/sdk/application/Catalog/CatalogApplicationClient.js +11 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +4 -2
- package/sdk/application/Catalog/CatalogApplicationValidator.js +2 -0
- package/sdk/application/Content/ContentApplicationModel.js +0 -5
- package/sdk/application/Lead/LeadApplicationModel.js +1 -0
- package/sdk/application/Order/OrderApplicationClient.d.ts +0 -15
- package/sdk/application/Order/OrderApplicationClient.js +0 -68
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -17
- package/sdk/application/Order/OrderApplicationModel.js +0 -111
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -1
- package/sdk/application/Order/OrderApplicationValidator.js +0 -7
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/common/BaseOAuthClient.d.ts +17 -0
- package/sdk/common/BaseOAuthClient.js +67 -0
- package/sdk/common/Constant.d.ts +0 -18
- package/sdk/common/Constant.js +0 -22
- package/sdk/common/RequestSigner.js +0 -5
- package/sdk/partner/OAuthClient.d.ts +14 -0
- package/sdk/partner/OAuthClient.js +112 -0
- package/sdk/{APIClient.d.ts → partner/PartnerAPIClient.d.ts} +2 -1
- package/sdk/{APIClient.js → partner/PartnerAPIClient.js} +13 -6
- package/sdk/{Client.d.ts → partner/PartnerClient.d.ts} +2 -2
- package/sdk/{Client.js → partner/PartnerClient.js} +2 -2
- package/sdk/partner/PartnerConfig.d.ts +30 -0
- package/sdk/partner/PartnerConfig.js +39 -0
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +5 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +24 -0
- package/sdk/platform/Billing/BillingPlatformClient.js +134 -0
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +4 -0
- package/sdk/platform/Billing/BillingPlatformModel.js +44 -0
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +2 -0
- package/sdk/platform/Billing/BillingPlatformValidator.js +14 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +29 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +181 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +3 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +17 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4 -0
- package/sdk/platform/Cart/CartPlatformModel.js +37 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +3 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +5 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1 -5
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +0 -183
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +0 -417
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +0 -10
- package/sdk/platform/Communication/CommunicationPlatformClient.js +0 -26
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +4 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -22
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +0 -56
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +22 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +123 -2
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +2 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +12 -0
- package/sdk/platform/Content/ContentPlatformModel.js +0 -5
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +1 -1
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +1 -0
- package/sdk/platform/Discount/DiscountPlatformModel.js +15 -0
- package/sdk/platform/Discount/DiscountPlatformValidator.js +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +1 -1
- package/sdk/platform/Lead/LeadPlatformModel.js +1 -0
- package/sdk/platform/OAuthClient.js +3 -9
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -47
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -201
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -3
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +1 -26
- package/sdk/platform/Order/OrderPlatformClient.d.ts +51 -183
- package/sdk/platform/Order/OrderPlatformClient.js +243 -931
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4 -20
- package/sdk/platform/Order/OrderPlatformModel.js +38 -182
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +3 -12
- package/sdk/platform/Order/OrderPlatformValidator.js +19 -95
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +24 -10
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +111 -44
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +2 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +13 -5
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +12 -0
- package/sdk/platform/PlatformApplicationClient.d.ts +16 -41
- package/sdk/platform/PlatformApplicationClient.js +17 -45
- package/sdk/platform/PlatformClient.d.ts +124 -263
- package/sdk/platform/PlatformClient.js +148 -315
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +14 -16
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +63 -77
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +7 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +11 -0
- package/sdk/platform/Share/SharePlatformApplicationClient.js +61 -0
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -0
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -0
- package/sdk/platform/Share/SharePlatformModel.d.ts +2 -0
- package/sdk/platform/Share/SharePlatformModel.js +11 -0
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/Config.d.ts +0 -9
- package/sdk/Config.js +0 -17
- package/sdk/constructUrl.d.ts +0 -5
- package/sdk/constructUrl.js +0 -13
- package/sdk/index.d.ts +0 -3
- package/sdk/index.js +0 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +0 -109
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +0 -558
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +0 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +0 -56
- package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +0 -88
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +0 -361
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +0 -23
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +0 -169
- package/sdk/platform/Analytics/AnalyticsPlatformValidator.d.ts +0 -7
- package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +0 -38
|
@@ -649,38 +649,6 @@ class Communication {
|
|
|
649
649
|
return response;
|
|
650
650
|
}
|
|
651
651
|
|
|
652
|
-
/**
|
|
653
|
-
* @param {Object} arg - Arg object.
|
|
654
|
-
* @param {string} arg.companyId - Company id
|
|
655
|
-
* @param {string} arg.applicationId - Application id
|
|
656
|
-
* @param {number} [arg.pageSize] - Current request items count
|
|
657
|
-
* @param {Object} [arg.sort] - To sort based on created_at
|
|
658
|
-
* @summary: Get audiences
|
|
659
|
-
* @description: Get audiences
|
|
660
|
-
*/
|
|
661
|
-
getAudiencesPaginator({ companyId, applicationId, pageSize, sort } = {}) {
|
|
662
|
-
const paginator = new Paginator();
|
|
663
|
-
const callback = async () => {
|
|
664
|
-
const pageId = paginator.nextId;
|
|
665
|
-
const pageNo = paginator.pageNo;
|
|
666
|
-
const pageType = "number";
|
|
667
|
-
const data = await this.getAudiences({
|
|
668
|
-
companyId: companyId,
|
|
669
|
-
applicationId: applicationId,
|
|
670
|
-
pageNo: pageNo,
|
|
671
|
-
pageSize: pageSize,
|
|
672
|
-
sort: sort,
|
|
673
|
-
});
|
|
674
|
-
paginator.setPaginator({
|
|
675
|
-
hasNext: data.page.has_next ? true : false,
|
|
676
|
-
nextId: data.page.next_id,
|
|
677
|
-
});
|
|
678
|
-
return data;
|
|
679
|
-
};
|
|
680
|
-
paginator.setCallback(callback.bind(this));
|
|
681
|
-
return paginator;
|
|
682
|
-
}
|
|
683
|
-
|
|
684
652
|
/**
|
|
685
653
|
* @param {Object} arg - Arg object.
|
|
686
654
|
* @param {BigqueryHeadersReq} arg.body
|
|
@@ -877,38 +845,6 @@ class Communication {
|
|
|
877
845
|
return response;
|
|
878
846
|
}
|
|
879
847
|
|
|
880
|
-
/**
|
|
881
|
-
* @param {Object} arg - Arg object.
|
|
882
|
-
* @param {string} arg.companyId - Company id
|
|
883
|
-
* @param {string} arg.applicationId - Application id
|
|
884
|
-
* @param {number} [arg.pageSize] - Current request items count
|
|
885
|
-
* @param {Object} [arg.sort] - To sort based on created_at
|
|
886
|
-
* @summary: Get campaigns
|
|
887
|
-
* @description: Get campaigns
|
|
888
|
-
*/
|
|
889
|
-
getCampaignsPaginator({ companyId, applicationId, pageSize, sort } = {}) {
|
|
890
|
-
const paginator = new Paginator();
|
|
891
|
-
const callback = async () => {
|
|
892
|
-
const pageId = paginator.nextId;
|
|
893
|
-
const pageNo = paginator.pageNo;
|
|
894
|
-
const pageType = "number";
|
|
895
|
-
const data = await this.getCampaigns({
|
|
896
|
-
companyId: companyId,
|
|
897
|
-
applicationId: applicationId,
|
|
898
|
-
pageNo: pageNo,
|
|
899
|
-
pageSize: pageSize,
|
|
900
|
-
sort: sort,
|
|
901
|
-
});
|
|
902
|
-
paginator.setPaginator({
|
|
903
|
-
hasNext: data.page.has_next ? true : false,
|
|
904
|
-
nextId: data.page.next_id,
|
|
905
|
-
});
|
|
906
|
-
return data;
|
|
907
|
-
};
|
|
908
|
-
paginator.setCallback(callback.bind(this));
|
|
909
|
-
return paginator;
|
|
910
|
-
}
|
|
911
|
-
|
|
912
848
|
/**
|
|
913
849
|
* @param {Object} arg - Arg object.
|
|
914
850
|
* @param {string} [arg.pageId] - Current page no
|
|
@@ -983,46 +919,6 @@ class Communication {
|
|
|
983
919
|
return response;
|
|
984
920
|
}
|
|
985
921
|
|
|
986
|
-
/**
|
|
987
|
-
* @param {Object} arg - Arg object.
|
|
988
|
-
* @param {string} arg.companyId - Company id
|
|
989
|
-
* @param {string} arg.applicationId - Application id
|
|
990
|
-
* @param {number} [arg.pageSize] - Current request items count
|
|
991
|
-
* @param {Object} [arg.sort] - To sort based on _id
|
|
992
|
-
* @param {Object} [arg.query] -
|
|
993
|
-
* @summary: Get communication logs
|
|
994
|
-
* @description: Get communication logs
|
|
995
|
-
*/
|
|
996
|
-
getCommunicationLogsPaginator({
|
|
997
|
-
companyId,
|
|
998
|
-
applicationId,
|
|
999
|
-
pageSize,
|
|
1000
|
-
sort,
|
|
1001
|
-
query,
|
|
1002
|
-
} = {}) {
|
|
1003
|
-
const paginator = new Paginator();
|
|
1004
|
-
const callback = async () => {
|
|
1005
|
-
const pageId = paginator.nextId;
|
|
1006
|
-
const pageNo = paginator.pageNo;
|
|
1007
|
-
const pageType = "cursor";
|
|
1008
|
-
const data = await this.getCommunicationLogs({
|
|
1009
|
-
companyId: companyId,
|
|
1010
|
-
applicationId: applicationId,
|
|
1011
|
-
pageId: pageId,
|
|
1012
|
-
pageSize: pageSize,
|
|
1013
|
-
sort: sort,
|
|
1014
|
-
query: query,
|
|
1015
|
-
});
|
|
1016
|
-
paginator.setPaginator({
|
|
1017
|
-
hasNext: data.page.has_next ? true : false,
|
|
1018
|
-
nextId: data.page.next_id,
|
|
1019
|
-
});
|
|
1020
|
-
return data;
|
|
1021
|
-
};
|
|
1022
|
-
paginator.setCallback(callback.bind(this));
|
|
1023
|
-
return paginator;
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
922
|
/**
|
|
1027
923
|
* @param {Object} arg - Arg object.
|
|
1028
924
|
* @param {string} arg.id - Email provider id
|
|
@@ -1158,43 +1054,6 @@ class Communication {
|
|
|
1158
1054
|
return response;
|
|
1159
1055
|
}
|
|
1160
1056
|
|
|
1161
|
-
/**
|
|
1162
|
-
* @param {Object} arg - Arg object.
|
|
1163
|
-
* @param {string} arg.companyId - Company id
|
|
1164
|
-
* @param {string} arg.applicationId - Application id
|
|
1165
|
-
* @param {number} [arg.pageSize] - Current request items count
|
|
1166
|
-
* @param {Object} [arg.sort] - To sort based on created_at
|
|
1167
|
-
* @summary: Get email providers
|
|
1168
|
-
* @description: Get email providers
|
|
1169
|
-
*/
|
|
1170
|
-
getEmailProvidersPaginator({
|
|
1171
|
-
companyId,
|
|
1172
|
-
applicationId,
|
|
1173
|
-
pageSize,
|
|
1174
|
-
sort,
|
|
1175
|
-
} = {}) {
|
|
1176
|
-
const paginator = new Paginator();
|
|
1177
|
-
const callback = async () => {
|
|
1178
|
-
const pageId = paginator.nextId;
|
|
1179
|
-
const pageNo = paginator.pageNo;
|
|
1180
|
-
const pageType = "number";
|
|
1181
|
-
const data = await this.getEmailProviders({
|
|
1182
|
-
companyId: companyId,
|
|
1183
|
-
applicationId: applicationId,
|
|
1184
|
-
pageNo: pageNo,
|
|
1185
|
-
pageSize: pageSize,
|
|
1186
|
-
sort: sort,
|
|
1187
|
-
});
|
|
1188
|
-
paginator.setPaginator({
|
|
1189
|
-
hasNext: data.page.has_next ? true : false,
|
|
1190
|
-
nextId: data.page.next_id,
|
|
1191
|
-
});
|
|
1192
|
-
return data;
|
|
1193
|
-
};
|
|
1194
|
-
paginator.setCallback(callback.bind(this));
|
|
1195
|
-
return paginator;
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
1057
|
/**
|
|
1199
1058
|
* @param {Object} arg - Arg object.
|
|
1200
1059
|
* @param {string} arg.id - Email template id
|
|
@@ -1330,43 +1189,6 @@ class Communication {
|
|
|
1330
1189
|
return response;
|
|
1331
1190
|
}
|
|
1332
1191
|
|
|
1333
|
-
/**
|
|
1334
|
-
* @param {Object} arg - Arg object.
|
|
1335
|
-
* @param {string} arg.companyId - Company id
|
|
1336
|
-
* @param {string} arg.applicationId - Application id
|
|
1337
|
-
* @param {number} [arg.pageSize] - Current request items count
|
|
1338
|
-
* @param {Object} [arg.sort] - To sort based on created_at
|
|
1339
|
-
* @summary: Get email templates
|
|
1340
|
-
* @description: Get email templates
|
|
1341
|
-
*/
|
|
1342
|
-
getEmailTemplatesPaginator({
|
|
1343
|
-
companyId,
|
|
1344
|
-
applicationId,
|
|
1345
|
-
pageSize,
|
|
1346
|
-
sort,
|
|
1347
|
-
} = {}) {
|
|
1348
|
-
const paginator = new Paginator();
|
|
1349
|
-
const callback = async () => {
|
|
1350
|
-
const pageId = paginator.nextId;
|
|
1351
|
-
const pageNo = paginator.pageNo;
|
|
1352
|
-
const pageType = "number";
|
|
1353
|
-
const data = await this.getEmailTemplates({
|
|
1354
|
-
companyId: companyId,
|
|
1355
|
-
applicationId: applicationId,
|
|
1356
|
-
pageNo: pageNo,
|
|
1357
|
-
pageSize: pageSize,
|
|
1358
|
-
sort: sort,
|
|
1359
|
-
});
|
|
1360
|
-
paginator.setPaginator({
|
|
1361
|
-
hasNext: data.page.has_next ? true : false,
|
|
1362
|
-
nextId: data.page.next_id,
|
|
1363
|
-
});
|
|
1364
|
-
return data;
|
|
1365
|
-
};
|
|
1366
|
-
paginator.setCallback(callback.bind(this));
|
|
1367
|
-
return paginator;
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
1192
|
/**
|
|
1371
1193
|
* @param {Object} arg - Arg object.
|
|
1372
1194
|
* @param {number} [arg.pageNo] - Current page no
|
|
@@ -1439,43 +1261,6 @@ class Communication {
|
|
|
1439
1261
|
return response;
|
|
1440
1262
|
}
|
|
1441
1263
|
|
|
1442
|
-
/**
|
|
1443
|
-
* @param {Object} arg - Arg object.
|
|
1444
|
-
* @param {string} arg.companyId - Company id
|
|
1445
|
-
* @param {string} arg.applicationId - Application id
|
|
1446
|
-
* @param {number} [arg.pageSize] - Current request items count
|
|
1447
|
-
* @param {string} [arg.populate] - Populate fields
|
|
1448
|
-
* @summary: Get event subscriptions
|
|
1449
|
-
* @description: Get event subscriptions
|
|
1450
|
-
*/
|
|
1451
|
-
getEventSubscriptionsPaginator({
|
|
1452
|
-
companyId,
|
|
1453
|
-
applicationId,
|
|
1454
|
-
pageSize,
|
|
1455
|
-
populate,
|
|
1456
|
-
} = {}) {
|
|
1457
|
-
const paginator = new Paginator();
|
|
1458
|
-
const callback = async () => {
|
|
1459
|
-
const pageId = paginator.nextId;
|
|
1460
|
-
const pageNo = paginator.pageNo;
|
|
1461
|
-
const pageType = "number";
|
|
1462
|
-
const data = await this.getEventSubscriptions({
|
|
1463
|
-
companyId: companyId,
|
|
1464
|
-
applicationId: applicationId,
|
|
1465
|
-
pageNo: pageNo,
|
|
1466
|
-
pageSize: pageSize,
|
|
1467
|
-
populate: populate,
|
|
1468
|
-
});
|
|
1469
|
-
paginator.setPaginator({
|
|
1470
|
-
hasNext: data.page.has_next ? true : false,
|
|
1471
|
-
nextId: data.page.next_id,
|
|
1472
|
-
});
|
|
1473
|
-
return data;
|
|
1474
|
-
};
|
|
1475
|
-
paginator.setCallback(callback.bind(this));
|
|
1476
|
-
return paginator;
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
1264
|
/**
|
|
1480
1265
|
* @param {Object} arg - Arg object.
|
|
1481
1266
|
* @param {number} [arg.pageNo] - Current page no
|
|
@@ -1544,38 +1329,6 @@ class Communication {
|
|
|
1544
1329
|
return response;
|
|
1545
1330
|
}
|
|
1546
1331
|
|
|
1547
|
-
/**
|
|
1548
|
-
* @param {Object} arg - Arg object.
|
|
1549
|
-
* @param {string} arg.companyId - Company id
|
|
1550
|
-
* @param {string} arg.applicationId - Application id
|
|
1551
|
-
* @param {number} [arg.pageSize] - Current request items count
|
|
1552
|
-
* @param {Object} [arg.sort] - To sort based on created_at
|
|
1553
|
-
* @summary: Get job logs
|
|
1554
|
-
* @description: Get job logs
|
|
1555
|
-
*/
|
|
1556
|
-
getJobLogsPaginator({ companyId, applicationId, pageSize, sort } = {}) {
|
|
1557
|
-
const paginator = new Paginator();
|
|
1558
|
-
const callback = async () => {
|
|
1559
|
-
const pageId = paginator.nextId;
|
|
1560
|
-
const pageNo = paginator.pageNo;
|
|
1561
|
-
const pageType = "number";
|
|
1562
|
-
const data = await this.getJobLogs({
|
|
1563
|
-
companyId: companyId,
|
|
1564
|
-
applicationId: applicationId,
|
|
1565
|
-
pageNo: pageNo,
|
|
1566
|
-
pageSize: pageSize,
|
|
1567
|
-
sort: sort,
|
|
1568
|
-
});
|
|
1569
|
-
paginator.setPaginator({
|
|
1570
|
-
hasNext: data.page.has_next ? true : false,
|
|
1571
|
-
nextId: data.page.next_id,
|
|
1572
|
-
});
|
|
1573
|
-
return data;
|
|
1574
|
-
};
|
|
1575
|
-
paginator.setCallback(callback.bind(this));
|
|
1576
|
-
return paginator;
|
|
1577
|
-
}
|
|
1578
|
-
|
|
1579
1332
|
/**
|
|
1580
1333
|
* @param {Object} arg - Arg object.
|
|
1581
1334
|
* @param {number} [arg.pageNo] - Current page no
|
|
@@ -1644,38 +1397,6 @@ class Communication {
|
|
|
1644
1397
|
return response;
|
|
1645
1398
|
}
|
|
1646
1399
|
|
|
1647
|
-
/**
|
|
1648
|
-
* @param {Object} arg - Arg object.
|
|
1649
|
-
* @param {string} arg.companyId - Company id
|
|
1650
|
-
* @param {string} arg.applicationId - Application id
|
|
1651
|
-
* @param {number} [arg.pageSize] - Current request items count
|
|
1652
|
-
* @param {Object} [arg.sort] - To sort based on created_at
|
|
1653
|
-
* @summary: Get jobs
|
|
1654
|
-
* @description: Get jobs
|
|
1655
|
-
*/
|
|
1656
|
-
getJobsPaginator({ companyId, applicationId, pageSize, sort } = {}) {
|
|
1657
|
-
const paginator = new Paginator();
|
|
1658
|
-
const callback = async () => {
|
|
1659
|
-
const pageId = paginator.nextId;
|
|
1660
|
-
const pageNo = paginator.pageNo;
|
|
1661
|
-
const pageType = "number";
|
|
1662
|
-
const data = await this.getJobs({
|
|
1663
|
-
companyId: companyId,
|
|
1664
|
-
applicationId: applicationId,
|
|
1665
|
-
pageNo: pageNo,
|
|
1666
|
-
pageSize: pageSize,
|
|
1667
|
-
sort: sort,
|
|
1668
|
-
});
|
|
1669
|
-
paginator.setPaginator({
|
|
1670
|
-
hasNext: data.page.has_next ? true : false,
|
|
1671
|
-
nextId: data.page.next_id,
|
|
1672
|
-
});
|
|
1673
|
-
return data;
|
|
1674
|
-
};
|
|
1675
|
-
paginator.setCallback(callback.bind(this));
|
|
1676
|
-
return paginator;
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
1400
|
/**
|
|
1680
1401
|
* @param {Object} arg - Arg object.
|
|
1681
1402
|
* @param {GetNRecordsCsvReq} arg.body
|
|
@@ -1876,38 +1597,6 @@ class Communication {
|
|
|
1876
1597
|
return response;
|
|
1877
1598
|
}
|
|
1878
1599
|
|
|
1879
|
-
/**
|
|
1880
|
-
* @param {Object} arg - Arg object.
|
|
1881
|
-
* @param {string} arg.companyId - Company id
|
|
1882
|
-
* @param {string} arg.applicationId - Application id
|
|
1883
|
-
* @param {number} [arg.pageSize] - Current request items count
|
|
1884
|
-
* @param {Object} [arg.sort] - To sort based on created_at
|
|
1885
|
-
* @summary: Get sms providers
|
|
1886
|
-
* @description: Get sms providers
|
|
1887
|
-
*/
|
|
1888
|
-
getSmsProvidersPaginator({ companyId, applicationId, pageSize, sort } = {}) {
|
|
1889
|
-
const paginator = new Paginator();
|
|
1890
|
-
const callback = async () => {
|
|
1891
|
-
const pageId = paginator.nextId;
|
|
1892
|
-
const pageNo = paginator.pageNo;
|
|
1893
|
-
const pageType = "number";
|
|
1894
|
-
const data = await this.getSmsProviders({
|
|
1895
|
-
companyId: companyId,
|
|
1896
|
-
applicationId: applicationId,
|
|
1897
|
-
pageNo: pageNo,
|
|
1898
|
-
pageSize: pageSize,
|
|
1899
|
-
sort: sort,
|
|
1900
|
-
});
|
|
1901
|
-
paginator.setPaginator({
|
|
1902
|
-
hasNext: data.page.has_next ? true : false,
|
|
1903
|
-
nextId: data.page.next_id,
|
|
1904
|
-
});
|
|
1905
|
-
return data;
|
|
1906
|
-
};
|
|
1907
|
-
paginator.setCallback(callback.bind(this));
|
|
1908
|
-
return paginator;
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1911
1600
|
/**
|
|
1912
1601
|
* @param {Object} arg - Arg object.
|
|
1913
1602
|
* @param {string} arg.id - Sms template id
|
|
@@ -2043,38 +1732,6 @@ class Communication {
|
|
|
2043
1732
|
return response;
|
|
2044
1733
|
}
|
|
2045
1734
|
|
|
2046
|
-
/**
|
|
2047
|
-
* @param {Object} arg - Arg object.
|
|
2048
|
-
* @param {string} arg.companyId - Company id
|
|
2049
|
-
* @param {string} arg.applicationId - Application id
|
|
2050
|
-
* @param {number} [arg.pageSize] - Current request items count
|
|
2051
|
-
* @param {Object} [arg.sort] - To sort based on created_at
|
|
2052
|
-
* @summary: Get sms templates
|
|
2053
|
-
* @description: Get sms templates
|
|
2054
|
-
*/
|
|
2055
|
-
getSmsTemplatesPaginator({ companyId, applicationId, pageSize, sort } = {}) {
|
|
2056
|
-
const paginator = new Paginator();
|
|
2057
|
-
const callback = async () => {
|
|
2058
|
-
const pageId = paginator.nextId;
|
|
2059
|
-
const pageNo = paginator.pageNo;
|
|
2060
|
-
const pageType = "number";
|
|
2061
|
-
const data = await this.getSmsTemplates({
|
|
2062
|
-
companyId: companyId,
|
|
2063
|
-
applicationId: applicationId,
|
|
2064
|
-
pageNo: pageNo,
|
|
2065
|
-
pageSize: pageSize,
|
|
2066
|
-
sort: sort,
|
|
2067
|
-
});
|
|
2068
|
-
paginator.setPaginator({
|
|
2069
|
-
hasNext: data.page.has_next ? true : false,
|
|
2070
|
-
nextId: data.page.next_id,
|
|
2071
|
-
});
|
|
2072
|
-
return data;
|
|
2073
|
-
};
|
|
2074
|
-
paginator.setCallback(callback.bind(this));
|
|
2075
|
-
return paginator;
|
|
2076
|
-
}
|
|
2077
|
-
|
|
2078
1735
|
/**
|
|
2079
1736
|
* @param {Object} arg - Arg object.
|
|
2080
1737
|
* @param {string} arg.id - Campaign id
|
|
@@ -2210,43 +1867,6 @@ class Communication {
|
|
|
2210
1867
|
return response;
|
|
2211
1868
|
}
|
|
2212
1869
|
|
|
2213
|
-
/**
|
|
2214
|
-
* @param {Object} arg - Arg object.
|
|
2215
|
-
* @param {string} arg.companyId - Company id
|
|
2216
|
-
* @param {string} arg.applicationId - Application id
|
|
2217
|
-
* @param {number} [arg.pageSize] - Current request items count
|
|
2218
|
-
* @param {Object} [arg.sort] - To sort based on created_at
|
|
2219
|
-
* @summary: Get system email templates
|
|
2220
|
-
* @description: Get system email templates
|
|
2221
|
-
*/
|
|
2222
|
-
getSystemEmailTemplatesPaginator({
|
|
2223
|
-
companyId,
|
|
2224
|
-
applicationId,
|
|
2225
|
-
pageSize,
|
|
2226
|
-
sort,
|
|
2227
|
-
} = {}) {
|
|
2228
|
-
const paginator = new Paginator();
|
|
2229
|
-
const callback = async () => {
|
|
2230
|
-
const pageId = paginator.nextId;
|
|
2231
|
-
const pageNo = paginator.pageNo;
|
|
2232
|
-
const pageType = "number";
|
|
2233
|
-
const data = await this.getSystemEmailTemplates({
|
|
2234
|
-
companyId: companyId,
|
|
2235
|
-
applicationId: applicationId,
|
|
2236
|
-
pageNo: pageNo,
|
|
2237
|
-
pageSize: pageSize,
|
|
2238
|
-
sort: sort,
|
|
2239
|
-
});
|
|
2240
|
-
paginator.setPaginator({
|
|
2241
|
-
hasNext: data.page.has_next ? true : false,
|
|
2242
|
-
nextId: data.page.next_id,
|
|
2243
|
-
});
|
|
2244
|
-
return data;
|
|
2245
|
-
};
|
|
2246
|
-
paginator.setCallback(callback.bind(this));
|
|
2247
|
-
return paginator;
|
|
2248
|
-
}
|
|
2249
|
-
|
|
2250
1870
|
/**
|
|
2251
1871
|
* @param {Object} arg - Arg object.
|
|
2252
1872
|
* @param {number} [arg.pageNo] - Current page no
|
|
@@ -2321,43 +1941,6 @@ class Communication {
|
|
|
2321
1941
|
return response;
|
|
2322
1942
|
}
|
|
2323
1943
|
|
|
2324
|
-
/**
|
|
2325
|
-
* @param {Object} arg - Arg object.
|
|
2326
|
-
* @param {string} arg.companyId - Company id
|
|
2327
|
-
* @param {string} arg.applicationId - Application id
|
|
2328
|
-
* @param {number} [arg.pageSize] - Current request items count
|
|
2329
|
-
* @param {Object} [arg.sort] - To sort based on created_at
|
|
2330
|
-
* @summary: Get system sms templates
|
|
2331
|
-
* @description: Get system sms templates
|
|
2332
|
-
*/
|
|
2333
|
-
getSystemSystemTemplatesPaginator({
|
|
2334
|
-
companyId,
|
|
2335
|
-
applicationId,
|
|
2336
|
-
pageSize,
|
|
2337
|
-
sort,
|
|
2338
|
-
} = {}) {
|
|
2339
|
-
const paginator = new Paginator();
|
|
2340
|
-
const callback = async () => {
|
|
2341
|
-
const pageId = paginator.nextId;
|
|
2342
|
-
const pageNo = paginator.pageNo;
|
|
2343
|
-
const pageType = "number";
|
|
2344
|
-
const data = await this.getSystemSystemTemplates({
|
|
2345
|
-
companyId: companyId,
|
|
2346
|
-
applicationId: applicationId,
|
|
2347
|
-
pageNo: pageNo,
|
|
2348
|
-
pageSize: pageSize,
|
|
2349
|
-
sort: sort,
|
|
2350
|
-
});
|
|
2351
|
-
paginator.setPaginator({
|
|
2352
|
-
hasNext: data.page.has_next ? true : false,
|
|
2353
|
-
nextId: data.page.next_id,
|
|
2354
|
-
});
|
|
2355
|
-
return data;
|
|
2356
|
-
};
|
|
2357
|
-
paginator.setCallback(callback.bind(this));
|
|
2358
|
-
return paginator;
|
|
2359
|
-
}
|
|
2360
|
-
|
|
2361
1944
|
/**
|
|
2362
1945
|
* @param {Object} arg - Arg object.
|
|
2363
1946
|
* @param {EngineRequest} arg.body
|
|
@@ -14,14 +14,4 @@ declare class Communication {
|
|
|
14
14
|
pageNo?: number;
|
|
15
15
|
pageSize?: number;
|
|
16
16
|
}): Promise<SystemNotifications>;
|
|
17
|
-
/**
|
|
18
|
-
* @param {Object} arg - Arg object.
|
|
19
|
-
* @param {number} [arg.pageSize] -
|
|
20
|
-
* @summary: Get system notifications
|
|
21
|
-
* @description: Get system notifications
|
|
22
|
-
*/
|
|
23
|
-
getSystemNotificationsPaginator({ pageSize }?: {
|
|
24
|
-
pageSize?: number;
|
|
25
|
-
}): Paginator;
|
|
26
17
|
}
|
|
27
|
-
import Paginator = require("../../common/Paginator");
|
|
@@ -81,32 +81,6 @@ class Communication {
|
|
|
81
81
|
|
|
82
82
|
return response;
|
|
83
83
|
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @param {Object} arg - Arg object.
|
|
87
|
-
* @param {number} [arg.pageSize] -
|
|
88
|
-
* @summary: Get system notifications
|
|
89
|
-
* @description: Get system notifications
|
|
90
|
-
*/
|
|
91
|
-
getSystemNotificationsPaginator({ pageSize } = {}) {
|
|
92
|
-
const paginator = new Paginator();
|
|
93
|
-
const callback = async () => {
|
|
94
|
-
const pageId = paginator.nextId;
|
|
95
|
-
const pageNo = paginator.pageNo;
|
|
96
|
-
const pageType = "number";
|
|
97
|
-
const data = await this.getSystemNotifications({
|
|
98
|
-
pageNo: pageNo,
|
|
99
|
-
pageSize: pageSize,
|
|
100
|
-
});
|
|
101
|
-
paginator.setPaginator({
|
|
102
|
-
hasNext: data.page.has_next ? true : false,
|
|
103
|
-
nextId: data.page.next_id,
|
|
104
|
-
});
|
|
105
|
-
return data;
|
|
106
|
-
};
|
|
107
|
-
paginator.setCallback(callback.bind(this));
|
|
108
|
-
return paginator;
|
|
109
|
-
}
|
|
110
84
|
}
|
|
111
85
|
|
|
112
86
|
module.exports = Communication;
|
|
@@ -259,6 +259,7 @@ class CompanyProfileModel {
|
|
|
259
259
|
return Joi.object({
|
|
260
260
|
_custom_json: Joi.any(),
|
|
261
261
|
address: CompanyProfileModel.GetAddressSerializer().required(),
|
|
262
|
+
auto_invoice: Joi.boolean(),
|
|
262
263
|
code: Joi.string().allow("").required(),
|
|
263
264
|
company: CompanyProfileModel.GetCompanySerializer(),
|
|
264
265
|
contact_numbers: Joi.array().items(
|
|
@@ -266,6 +267,7 @@ class CompanyProfileModel {
|
|
|
266
267
|
),
|
|
267
268
|
created_by: CompanyProfileModel.UserSerializer(),
|
|
268
269
|
created_on: Joi.string().allow(""),
|
|
270
|
+
credit_note: Joi.boolean(),
|
|
269
271
|
display_name: Joi.string().allow("").required(),
|
|
270
272
|
documents: Joi.array().items(CompanyProfileModel.Document()),
|
|
271
273
|
gst_credentials: CompanyProfileModel.InvoiceDetailsSerializer(),
|
|
@@ -339,11 +341,13 @@ class CompanyProfileModel {
|
|
|
339
341
|
return Joi.object({
|
|
340
342
|
_custom_json: Joi.any(),
|
|
341
343
|
address: CompanyProfileModel.AddressSerializer().required(),
|
|
344
|
+
auto_invoice: Joi.boolean(),
|
|
342
345
|
code: Joi.string().allow("").required(),
|
|
343
346
|
company: Joi.number().required(),
|
|
344
347
|
contact_numbers: Joi.array().items(
|
|
345
348
|
CompanyProfileModel.SellerPhoneNumber()
|
|
346
349
|
),
|
|
350
|
+
credit_note: Joi.boolean(),
|
|
347
351
|
display_name: Joi.string().allow("").required(),
|
|
348
352
|
documents: Joi.array().items(CompanyProfileModel.Document()),
|
|
349
353
|
gst_credentials: CompanyProfileModel.InvoiceDetailsSerializer(),
|
|
@@ -49,15 +49,6 @@ declare class Configuration {
|
|
|
49
49
|
pageNo?: number;
|
|
50
50
|
pageSize?: number;
|
|
51
51
|
}): Promise<GetIntegrationsOptInsResponse>;
|
|
52
|
-
/**
|
|
53
|
-
* @param {Object} arg - Arg object.
|
|
54
|
-
* @param {number} [arg.pageSize] - Current request items count
|
|
55
|
-
* @summary: Get all available integration opt-ins
|
|
56
|
-
* @description: Get all available integration opt-ins
|
|
57
|
-
*/
|
|
58
|
-
getAvailableOptInsPaginator({ pageSize }?: {
|
|
59
|
-
pageSize?: number;
|
|
60
|
-
}): Paginator;
|
|
61
52
|
/**
|
|
62
53
|
* @param {Object} arg - Arg object.
|
|
63
54
|
* @param {string} [arg.q] - Search text for brand name
|
|
@@ -211,19 +202,6 @@ declare class Configuration {
|
|
|
211
202
|
pageNo?: number;
|
|
212
203
|
pageSize?: number;
|
|
213
204
|
}): Promise<GetIntegrationsOptInsResponse>;
|
|
214
|
-
/**
|
|
215
|
-
* @param {Object} arg - Arg object.
|
|
216
|
-
* @param {string} arg.level - Integration level
|
|
217
|
-
* @param {number} arg.uid - Integration level uid
|
|
218
|
-
* @param {number} [arg.pageSize] - Current request items count
|
|
219
|
-
* @summary: Get company/store level integration opt-ins
|
|
220
|
-
* @description: Get company/store level integration opt-ins
|
|
221
|
-
*/
|
|
222
|
-
getSelectedOptInsPaginator({ level, uid, pageSize }?: {
|
|
223
|
-
level: string;
|
|
224
|
-
uid: number;
|
|
225
|
-
pageSize?: number;
|
|
226
|
-
}): Paginator;
|
|
227
205
|
/**
|
|
228
206
|
* @param {Object} arg - Arg object.
|
|
229
207
|
* @param {number} [arg.pageNo] - Current page no
|
|
@@ -251,32 +251,6 @@ class Configuration {
|
|
|
251
251
|
return response;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
/**
|
|
255
|
-
* @param {Object} arg - Arg object.
|
|
256
|
-
* @param {number} [arg.pageSize] - Current request items count
|
|
257
|
-
* @summary: Get all available integration opt-ins
|
|
258
|
-
* @description: Get all available integration opt-ins
|
|
259
|
-
*/
|
|
260
|
-
getAvailableOptInsPaginator({ pageSize } = {}) {
|
|
261
|
-
const paginator = new Paginator();
|
|
262
|
-
const callback = async () => {
|
|
263
|
-
const pageId = paginator.nextId;
|
|
264
|
-
const pageNo = paginator.pageNo;
|
|
265
|
-
const pageType = "number";
|
|
266
|
-
const data = await this.getAvailableOptIns({
|
|
267
|
-
pageNo: pageNo,
|
|
268
|
-
pageSize: pageSize,
|
|
269
|
-
});
|
|
270
|
-
paginator.setPaginator({
|
|
271
|
-
hasNext: data.page.has_next ? true : false,
|
|
272
|
-
nextId: data.page.next_id,
|
|
273
|
-
});
|
|
274
|
-
return data;
|
|
275
|
-
};
|
|
276
|
-
paginator.setCallback(callback.bind(this));
|
|
277
|
-
return paginator;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
254
|
/**
|
|
281
255
|
* @param {Object} arg - Arg object.
|
|
282
256
|
* @param {string} [arg.q] - Search text for brand name
|
|
@@ -1110,36 +1084,6 @@ class Configuration {
|
|
|
1110
1084
|
return response;
|
|
1111
1085
|
}
|
|
1112
1086
|
|
|
1113
|
-
/**
|
|
1114
|
-
* @param {Object} arg - Arg object.
|
|
1115
|
-
* @param {string} arg.level - Integration level
|
|
1116
|
-
* @param {number} arg.uid - Integration level uid
|
|
1117
|
-
* @param {number} [arg.pageSize] - Current request items count
|
|
1118
|
-
* @summary: Get company/store level integration opt-ins
|
|
1119
|
-
* @description: Get company/store level integration opt-ins
|
|
1120
|
-
*/
|
|
1121
|
-
getSelectedOptInsPaginator({ level, uid, pageSize } = {}) {
|
|
1122
|
-
const paginator = new Paginator();
|
|
1123
|
-
const callback = async () => {
|
|
1124
|
-
const pageId = paginator.nextId;
|
|
1125
|
-
const pageNo = paginator.pageNo;
|
|
1126
|
-
const pageType = "number";
|
|
1127
|
-
const data = await this.getSelectedOptIns({
|
|
1128
|
-
level: level,
|
|
1129
|
-
uid: uid,
|
|
1130
|
-
pageNo: pageNo,
|
|
1131
|
-
pageSize: pageSize,
|
|
1132
|
-
});
|
|
1133
|
-
paginator.setPaginator({
|
|
1134
|
-
hasNext: data.page.has_next ? true : false,
|
|
1135
|
-
nextId: data.page.next_id,
|
|
1136
|
-
});
|
|
1137
|
-
return data;
|
|
1138
|
-
};
|
|
1139
|
-
paginator.setCallback(callback.bind(this));
|
|
1140
|
-
return paginator;
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
1087
|
/**
|
|
1144
1088
|
* @param {Object} arg - Arg object.
|
|
1145
1089
|
* @param {number} [arg.pageNo] - Current page no
|