@in.pulse-crm/sdk 2.14.7 → 2.14.8
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/files.client.d.ts +1 -0
- package/dist/files.client.js +5 -0
- package/package.json +1 -1
- package/src/files.client.ts +7 -0
package/dist/files.client.d.ts
CHANGED
package/dist/files.client.js
CHANGED
|
@@ -73,5 +73,10 @@ class FilesClient extends api_client_1.default {
|
|
|
73
73
|
const response = await this.ax.post(`/api/waba`, { instance, wabaMediaId });
|
|
74
74
|
return response.data.data;
|
|
75
75
|
}
|
|
76
|
+
async getWabaMedia(fileId) {
|
|
77
|
+
const response = await this.ax.post(`/api/waba/get-media-id`, { fileId });
|
|
78
|
+
const mediaId = response.data.data.mediaId;
|
|
79
|
+
return mediaId;
|
|
80
|
+
}
|
|
76
81
|
}
|
|
77
82
|
exports.default = FilesClient;
|
package/package.json
CHANGED
package/src/files.client.ts
CHANGED
|
@@ -88,6 +88,13 @@ class FilesClient extends ApiClient {
|
|
|
88
88
|
return response.data.data;
|
|
89
89
|
|
|
90
90
|
}
|
|
91
|
+
|
|
92
|
+
public async getWabaMedia(fileId: number) {
|
|
93
|
+
const response = await this.ax.post<DataResponse<{ mediaId: string }>>(`/api/waba/get-media-id`, { fileId });
|
|
94
|
+
const mediaId = response.data.data.mediaId;
|
|
95
|
+
|
|
96
|
+
return mediaId;
|
|
97
|
+
}
|
|
91
98
|
}
|
|
92
99
|
|
|
93
100
|
export default FilesClient;
|