@gymspace/sdk 1.3.0 → 1.3.2
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/dist/index.d.mts +32 -2
- package/dist/index.d.ts +32 -2
- package/dist/index.js +26 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/models/whatsapp.ts +20 -0
- package/src/resources/admin-catalog.ts +25 -11
- package/src/resources/whatsapp.ts +16 -0
package/dist/index.mjs
CHANGED
|
@@ -1035,7 +1035,22 @@ var AdminCatalogResource = class extends BaseResource {
|
|
|
1035
1035
|
* Requires: CATALOG_READ permission
|
|
1036
1036
|
*/
|
|
1037
1037
|
async getLeads(filters, options) {
|
|
1038
|
-
return this.client.get(
|
|
1038
|
+
return this.client.get(
|
|
1039
|
+
`${this.basePath}/leads`,
|
|
1040
|
+
filters,
|
|
1041
|
+
options
|
|
1042
|
+
);
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* Mark a lead as contacted
|
|
1046
|
+
* Requires: CATALOG_UPDATE permission
|
|
1047
|
+
*/
|
|
1048
|
+
async markLeadAsContacted(leadId, options) {
|
|
1049
|
+
return this.client.patch(
|
|
1050
|
+
`${this.basePath}/leads/${leadId}/mark-contacted`,
|
|
1051
|
+
void 0,
|
|
1052
|
+
options
|
|
1053
|
+
);
|
|
1039
1054
|
}
|
|
1040
1055
|
};
|
|
1041
1056
|
|
|
@@ -1499,6 +1514,16 @@ var WhatsAppResource = class extends BaseResource {
|
|
|
1499
1514
|
async disconnect(options) {
|
|
1500
1515
|
return this.client.post(`${this.basePath}/disconnect`, {}, options);
|
|
1501
1516
|
}
|
|
1517
|
+
/**
|
|
1518
|
+
* Send catalog message to multiple clients
|
|
1519
|
+
*/
|
|
1520
|
+
async sendCatalogMessage(data, options) {
|
|
1521
|
+
return this.client.post(
|
|
1522
|
+
`${this.basePath}/send-catalog`,
|
|
1523
|
+
data,
|
|
1524
|
+
options
|
|
1525
|
+
);
|
|
1526
|
+
}
|
|
1502
1527
|
};
|
|
1503
1528
|
|
|
1504
1529
|
// src/resources/whatsapp-templates.ts
|