@ptkl/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.0.10.js +36 -6
- package/dist/index.0.9.js +6 -6
- package/dist/package.json +1 -1
- package/dist/v0.10/api/component.d.ts +26 -0
- package/dist/v0.10/index.cjs.js +36 -6
- package/dist/v0.10/index.esm.js +36 -6
- package/dist/v0.9/index.cjs.js +6 -6
- package/dist/v0.9/index.esm.js +6 -6
- package/package.json +1 -1
- package/dist/v0.10/api/integrations/serbiaUtil.d.ts +0 -12
- package/dist/v0.10/api/integrations/vpfr.d.ts +0 -4
- package/dist/v0.10/apiUser.d.ts +0 -9
- package/dist/v0.10/apps.d.ts +0 -8
- package/dist/v0.10/baseClient.d.ts +0 -6
- package/dist/v0.10/component.d.ts +0 -128
- package/dist/v0.10/componentUtils.d.ts +0 -7
- package/dist/v0.10/config.d.ts +0 -14
- package/dist/v0.10/forge.d.ts +0 -7
- package/dist/v0.10/functions.d.ts +0 -23
- package/dist/v0.10/index.d.ts +0 -21
- package/dist/v0.10/integrations/dms.d.ts +0 -469
- package/dist/v0.10/integrations/invoicing.d.ts +0 -6
- package/dist/v0.10/integrations/minimax.d.ts +0 -289
- package/dist/v0.10/integrations/payments.d.ts +0 -40
- package/dist/v0.10/integrations/serbiaUtil.d.ts +0 -10
- package/dist/v0.10/integrations/vpfr.d.ts +0 -4
- package/dist/v0.10/integrations.d.ts +0 -22
- package/dist/v0.10/integrationsBaseClient.d.ts +0 -11
- package/dist/v0.10/platform.d.ts +0 -34
- package/dist/v0.10/platformBaseClient.d.ts +0 -27
- package/dist/v0.10/project.d.ts +0 -146
- package/dist/v0.10/ratchet.d.ts +0 -196
- package/dist/v0.10/sandbox.d.ts +0 -14
- package/dist/v0.10/system.d.ts +0 -4
- package/dist/v0.10/thunder.d.ts +0 -13
- package/dist/v0.10/types/integrations/serbiaUtits.d.ts +0 -37
- package/dist/v0.10/users.d.ts +0 -69
- package/dist/v0.10/workflow.d.ts +0 -5
- package/dist/v0.9/apiUser.d.ts +0 -9
- package/dist/v0.9/apps.d.ts +0 -8
- package/dist/v0.9/baseClient.d.ts +0 -6
- package/dist/v0.9/component.d.ts +0 -128
- package/dist/v0.9/componentUtils.d.ts +0 -7
- package/dist/v0.9/config.d.ts +0 -14
- package/dist/v0.9/forge.d.ts +0 -7
- package/dist/v0.9/functions.d.ts +0 -23
- package/dist/v0.9/index.d.ts +0 -21
- package/dist/v0.9/integrations/dms.d.ts +0 -469
- package/dist/v0.9/integrations/invoicing.d.ts +0 -6
- package/dist/v0.9/integrations/minimax.d.ts +0 -289
- package/dist/v0.9/integrations/payments.d.ts +0 -40
- package/dist/v0.9/integrations/serbiaUtil.d.ts +0 -10
- package/dist/v0.9/integrations/vpfr.d.ts +0 -4
- package/dist/v0.9/integrations.d.ts +0 -22
- package/dist/v0.9/integrationsBaseClient.d.ts +0 -11
- package/dist/v0.9/platform.d.ts +0 -34
- package/dist/v0.9/platformBaseClient.d.ts +0 -27
- package/dist/v0.9/project.d.ts +0 -146
- package/dist/v0.9/ratchet.d.ts +0 -196
- package/dist/v0.9/sandbox.d.ts +0 -14
- package/dist/v0.9/system.d.ts +0 -4
- package/dist/v0.9/thunder.d.ts +0 -13
- package/dist/v0.9/users.d.ts +0 -69
- package/dist/v0.9/workflow.d.ts +0 -5
package/dist/index.0.10.js
CHANGED
|
@@ -405,6 +405,21 @@ var ProtokolSDK010 = (function (exports, axios) {
|
|
|
405
405
|
async revisions(uuid) {
|
|
406
406
|
return await this.client.get(`/v3/system/component/${this.ref}/model/${uuid}/revisions`);
|
|
407
407
|
}
|
|
408
|
+
/**
|
|
409
|
+
* Get a single extension by name from the component
|
|
410
|
+
*
|
|
411
|
+
* @param name - The name of the extension to retrieve
|
|
412
|
+
* @param version - The component version
|
|
413
|
+
* @returns The extension object
|
|
414
|
+
*
|
|
415
|
+
* @example
|
|
416
|
+
* ```typescript
|
|
417
|
+
* const extension = await component.getExtension('shipping_tracker', '0.1.0')
|
|
418
|
+
* ```
|
|
419
|
+
*/
|
|
420
|
+
async getExtension(name, version) {
|
|
421
|
+
return await this.client.get(`/v4/system/component/${this.ref}/${version}/extensions/${name}`);
|
|
422
|
+
}
|
|
408
423
|
/**
|
|
409
424
|
* Install a new extension on the component
|
|
410
425
|
*
|
|
@@ -459,6 +474,21 @@ var ProtokolSDK010 = (function (exports, axios) {
|
|
|
459
474
|
async deleteExtension(name, version) {
|
|
460
475
|
return await this.client.delete(`/v4/system/component/${this.ref}/${version}/extensions/${name}`);
|
|
461
476
|
}
|
|
477
|
+
/**
|
|
478
|
+
* Get a single policy by name from the component
|
|
479
|
+
*
|
|
480
|
+
* @param name - The name of the policy to retrieve
|
|
481
|
+
* @param version - The component version
|
|
482
|
+
* @returns The policy object
|
|
483
|
+
*
|
|
484
|
+
* @example
|
|
485
|
+
* ```typescript
|
|
486
|
+
* const policy = await component.getPolicy('restrict_email', '0.1.0')
|
|
487
|
+
* ```
|
|
488
|
+
*/
|
|
489
|
+
async getPolicy(name, version) {
|
|
490
|
+
return await this.client.get(`/v4/system/component/${this.ref}/${version}/policies/${name}`);
|
|
491
|
+
}
|
|
462
492
|
/**
|
|
463
493
|
* Install a new policy on the component
|
|
464
494
|
*
|
|
@@ -2218,7 +2248,7 @@ var ProtokolSDK010 = (function (exports, axios) {
|
|
|
2218
2248
|
* ```
|
|
2219
2249
|
*/
|
|
2220
2250
|
async send(input) {
|
|
2221
|
-
const { data } = await this.client.post("/protokol-mail/
|
|
2251
|
+
const { data } = await this.client.post("/v1/protokol-mail/emails", input);
|
|
2222
2252
|
return data;
|
|
2223
2253
|
}
|
|
2224
2254
|
/**
|
|
@@ -2237,7 +2267,7 @@ var ProtokolSDK010 = (function (exports, axios) {
|
|
|
2237
2267
|
* ```
|
|
2238
2268
|
*/
|
|
2239
2269
|
async list(params) {
|
|
2240
|
-
const { data } = await this.client.get("/protokol-mail/
|
|
2270
|
+
const { data } = await this.client.get("/v1/protokol-mail/emails", { params });
|
|
2241
2271
|
return data;
|
|
2242
2272
|
}
|
|
2243
2273
|
/**
|
|
@@ -2253,7 +2283,7 @@ var ProtokolSDK010 = (function (exports, axios) {
|
|
|
2253
2283
|
* ```
|
|
2254
2284
|
*/
|
|
2255
2285
|
async get(messageId) {
|
|
2256
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
2286
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}`);
|
|
2257
2287
|
return data;
|
|
2258
2288
|
}
|
|
2259
2289
|
/**
|
|
@@ -2269,7 +2299,7 @@ var ProtokolSDK010 = (function (exports, axios) {
|
|
|
2269
2299
|
* ```
|
|
2270
2300
|
*/
|
|
2271
2301
|
async resend(messageId) {
|
|
2272
|
-
const { data } = await this.client.post(`/protokol-mail/
|
|
2302
|
+
const { data } = await this.client.post(`/v1/protokol-mail/emails/${messageId}/resend`);
|
|
2273
2303
|
return data;
|
|
2274
2304
|
}
|
|
2275
2305
|
/**
|
|
@@ -2285,7 +2315,7 @@ var ProtokolSDK010 = (function (exports, axios) {
|
|
|
2285
2315
|
* ```
|
|
2286
2316
|
*/
|
|
2287
2317
|
async listAttachments(messageId) {
|
|
2288
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
2318
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments`);
|
|
2289
2319
|
return data;
|
|
2290
2320
|
}
|
|
2291
2321
|
/**
|
|
@@ -2304,7 +2334,7 @@ var ProtokolSDK010 = (function (exports, axios) {
|
|
|
2304
2334
|
* ```
|
|
2305
2335
|
*/
|
|
2306
2336
|
async downloadAttachment(messageId, attachmentId) {
|
|
2307
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
2337
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments/${attachmentId}`, { responseType: "arraybuffer" });
|
|
2308
2338
|
return data;
|
|
2309
2339
|
}
|
|
2310
2340
|
}
|
package/dist/index.0.9.js
CHANGED
|
@@ -1988,7 +1988,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1988
1988
|
* @returns The queued email's message ID and status
|
|
1989
1989
|
*/
|
|
1990
1990
|
async send(input) {
|
|
1991
|
-
const { data } = await this.client.post("/protokol-mail/
|
|
1991
|
+
const { data } = await this.client.post("/v1/protokol-mail/emails", input);
|
|
1992
1992
|
return data;
|
|
1993
1993
|
}
|
|
1994
1994
|
/**
|
|
@@ -1998,7 +1998,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1998
1998
|
* @returns Paginated list of email log entries
|
|
1999
1999
|
*/
|
|
2000
2000
|
async list(params) {
|
|
2001
|
-
const { data } = await this.client.get("/protokol-mail/
|
|
2001
|
+
const { data } = await this.client.get("/v1/protokol-mail/emails", { params });
|
|
2002
2002
|
return data;
|
|
2003
2003
|
}
|
|
2004
2004
|
/**
|
|
@@ -2008,7 +2008,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
2008
2008
|
* @returns The full email log entry
|
|
2009
2009
|
*/
|
|
2010
2010
|
async get(messageId) {
|
|
2011
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
2011
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}`);
|
|
2012
2012
|
return data;
|
|
2013
2013
|
}
|
|
2014
2014
|
/**
|
|
@@ -2018,7 +2018,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
2018
2018
|
* @returns Confirmation with the message ID
|
|
2019
2019
|
*/
|
|
2020
2020
|
async resend(messageId) {
|
|
2021
|
-
const { data } = await this.client.post(`/protokol-mail/
|
|
2021
|
+
const { data } = await this.client.post(`/v1/protokol-mail/emails/${messageId}/resend`);
|
|
2022
2022
|
return data;
|
|
2023
2023
|
}
|
|
2024
2024
|
/**
|
|
@@ -2028,7 +2028,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
2028
2028
|
* @returns Array of attachment metadata entries
|
|
2029
2029
|
*/
|
|
2030
2030
|
async listAttachments(messageId) {
|
|
2031
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
2031
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments`);
|
|
2032
2032
|
return data;
|
|
2033
2033
|
}
|
|
2034
2034
|
/**
|
|
@@ -2039,7 +2039,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
2039
2039
|
* @returns The raw binary data as an ArrayBuffer
|
|
2040
2040
|
*/
|
|
2041
2041
|
async downloadAttachment(messageId, attachmentId) {
|
|
2042
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
2042
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments/${attachmentId}`, { responseType: "arraybuffer" });
|
|
2043
2043
|
return data;
|
|
2044
2044
|
}
|
|
2045
2045
|
}
|
package/dist/package.json
CHANGED
|
@@ -161,6 +161,19 @@ export default class Component extends PlatformBaseClient {
|
|
|
161
161
|
workflow(event: string, input: any): Promise<AxiosResponse<any, any>>;
|
|
162
162
|
function(name: string, input: any): Promise<AxiosResponse<any, any>>;
|
|
163
163
|
revisions(uuid: string): Promise<AxiosResponse<any, any>>;
|
|
164
|
+
/**
|
|
165
|
+
* Get a single extension by name from the component
|
|
166
|
+
*
|
|
167
|
+
* @param name - The name of the extension to retrieve
|
|
168
|
+
* @param version - The component version
|
|
169
|
+
* @returns The extension object
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* ```typescript
|
|
173
|
+
* const extension = await component.getExtension('shipping_tracker', '0.1.0')
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
176
|
+
getExtension(name: string, version: string): Promise<AxiosResponse<any, any>>;
|
|
164
177
|
/**
|
|
165
178
|
* Install a new extension on the component
|
|
166
179
|
*
|
|
@@ -209,6 +222,19 @@ export default class Component extends PlatformBaseClient {
|
|
|
209
222
|
* ```
|
|
210
223
|
*/
|
|
211
224
|
deleteExtension(name: string, version: string): Promise<AxiosResponse<any, any>>;
|
|
225
|
+
/**
|
|
226
|
+
* Get a single policy by name from the component
|
|
227
|
+
*
|
|
228
|
+
* @param name - The name of the policy to retrieve
|
|
229
|
+
* @param version - The component version
|
|
230
|
+
* @returns The policy object
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* ```typescript
|
|
234
|
+
* const policy = await component.getPolicy('restrict_email', '0.1.0')
|
|
235
|
+
* ```
|
|
236
|
+
*/
|
|
237
|
+
getPolicy(name: string, version: string): Promise<AxiosResponse<any, any>>;
|
|
212
238
|
/**
|
|
213
239
|
* Install a new policy on the component
|
|
214
240
|
*
|
package/dist/v0.10/index.cjs.js
CHANGED
|
@@ -19371,6 +19371,21 @@ class Component extends PlatformBaseClient {
|
|
|
19371
19371
|
async revisions(uuid) {
|
|
19372
19372
|
return await this.client.get(`/v3/system/component/${this.ref}/model/${uuid}/revisions`);
|
|
19373
19373
|
}
|
|
19374
|
+
/**
|
|
19375
|
+
* Get a single extension by name from the component
|
|
19376
|
+
*
|
|
19377
|
+
* @param name - The name of the extension to retrieve
|
|
19378
|
+
* @param version - The component version
|
|
19379
|
+
* @returns The extension object
|
|
19380
|
+
*
|
|
19381
|
+
* @example
|
|
19382
|
+
* ```typescript
|
|
19383
|
+
* const extension = await component.getExtension('shipping_tracker', '0.1.0')
|
|
19384
|
+
* ```
|
|
19385
|
+
*/
|
|
19386
|
+
async getExtension(name, version) {
|
|
19387
|
+
return await this.client.get(`/v4/system/component/${this.ref}/${version}/extensions/${name}`);
|
|
19388
|
+
}
|
|
19374
19389
|
/**
|
|
19375
19390
|
* Install a new extension on the component
|
|
19376
19391
|
*
|
|
@@ -19425,6 +19440,21 @@ class Component extends PlatformBaseClient {
|
|
|
19425
19440
|
async deleteExtension(name, version) {
|
|
19426
19441
|
return await this.client.delete(`/v4/system/component/${this.ref}/${version}/extensions/${name}`);
|
|
19427
19442
|
}
|
|
19443
|
+
/**
|
|
19444
|
+
* Get a single policy by name from the component
|
|
19445
|
+
*
|
|
19446
|
+
* @param name - The name of the policy to retrieve
|
|
19447
|
+
* @param version - The component version
|
|
19448
|
+
* @returns The policy object
|
|
19449
|
+
*
|
|
19450
|
+
* @example
|
|
19451
|
+
* ```typescript
|
|
19452
|
+
* const policy = await component.getPolicy('restrict_email', '0.1.0')
|
|
19453
|
+
* ```
|
|
19454
|
+
*/
|
|
19455
|
+
async getPolicy(name, version) {
|
|
19456
|
+
return await this.client.get(`/v4/system/component/${this.ref}/${version}/policies/${name}`);
|
|
19457
|
+
}
|
|
19428
19458
|
/**
|
|
19429
19459
|
* Install a new policy on the component
|
|
19430
19460
|
*
|
|
@@ -21184,7 +21214,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
21184
21214
|
* ```
|
|
21185
21215
|
*/
|
|
21186
21216
|
async send(input) {
|
|
21187
|
-
const { data } = await this.client.post("/protokol-mail/
|
|
21217
|
+
const { data } = await this.client.post("/v1/protokol-mail/emails", input);
|
|
21188
21218
|
return data;
|
|
21189
21219
|
}
|
|
21190
21220
|
/**
|
|
@@ -21203,7 +21233,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
21203
21233
|
* ```
|
|
21204
21234
|
*/
|
|
21205
21235
|
async list(params) {
|
|
21206
|
-
const { data } = await this.client.get("/protokol-mail/
|
|
21236
|
+
const { data } = await this.client.get("/v1/protokol-mail/emails", { params });
|
|
21207
21237
|
return data;
|
|
21208
21238
|
}
|
|
21209
21239
|
/**
|
|
@@ -21219,7 +21249,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
21219
21249
|
* ```
|
|
21220
21250
|
*/
|
|
21221
21251
|
async get(messageId) {
|
|
21222
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
21252
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}`);
|
|
21223
21253
|
return data;
|
|
21224
21254
|
}
|
|
21225
21255
|
/**
|
|
@@ -21235,7 +21265,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
21235
21265
|
* ```
|
|
21236
21266
|
*/
|
|
21237
21267
|
async resend(messageId) {
|
|
21238
|
-
const { data } = await this.client.post(`/protokol-mail/
|
|
21268
|
+
const { data } = await this.client.post(`/v1/protokol-mail/emails/${messageId}/resend`);
|
|
21239
21269
|
return data;
|
|
21240
21270
|
}
|
|
21241
21271
|
/**
|
|
@@ -21251,7 +21281,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
21251
21281
|
* ```
|
|
21252
21282
|
*/
|
|
21253
21283
|
async listAttachments(messageId) {
|
|
21254
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
21284
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments`);
|
|
21255
21285
|
return data;
|
|
21256
21286
|
}
|
|
21257
21287
|
/**
|
|
@@ -21270,7 +21300,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
21270
21300
|
* ```
|
|
21271
21301
|
*/
|
|
21272
21302
|
async downloadAttachment(messageId, attachmentId) {
|
|
21273
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
21303
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments/${attachmentId}`, { responseType: "arraybuffer" });
|
|
21274
21304
|
return data;
|
|
21275
21305
|
}
|
|
21276
21306
|
}
|
package/dist/v0.10/index.esm.js
CHANGED
|
@@ -404,6 +404,21 @@ class Component extends PlatformBaseClient {
|
|
|
404
404
|
async revisions(uuid) {
|
|
405
405
|
return await this.client.get(`/v3/system/component/${this.ref}/model/${uuid}/revisions`);
|
|
406
406
|
}
|
|
407
|
+
/**
|
|
408
|
+
* Get a single extension by name from the component
|
|
409
|
+
*
|
|
410
|
+
* @param name - The name of the extension to retrieve
|
|
411
|
+
* @param version - The component version
|
|
412
|
+
* @returns The extension object
|
|
413
|
+
*
|
|
414
|
+
* @example
|
|
415
|
+
* ```typescript
|
|
416
|
+
* const extension = await component.getExtension('shipping_tracker', '0.1.0')
|
|
417
|
+
* ```
|
|
418
|
+
*/
|
|
419
|
+
async getExtension(name, version) {
|
|
420
|
+
return await this.client.get(`/v4/system/component/${this.ref}/${version}/extensions/${name}`);
|
|
421
|
+
}
|
|
407
422
|
/**
|
|
408
423
|
* Install a new extension on the component
|
|
409
424
|
*
|
|
@@ -458,6 +473,21 @@ class Component extends PlatformBaseClient {
|
|
|
458
473
|
async deleteExtension(name, version) {
|
|
459
474
|
return await this.client.delete(`/v4/system/component/${this.ref}/${version}/extensions/${name}`);
|
|
460
475
|
}
|
|
476
|
+
/**
|
|
477
|
+
* Get a single policy by name from the component
|
|
478
|
+
*
|
|
479
|
+
* @param name - The name of the policy to retrieve
|
|
480
|
+
* @param version - The component version
|
|
481
|
+
* @returns The policy object
|
|
482
|
+
*
|
|
483
|
+
* @example
|
|
484
|
+
* ```typescript
|
|
485
|
+
* const policy = await component.getPolicy('restrict_email', '0.1.0')
|
|
486
|
+
* ```
|
|
487
|
+
*/
|
|
488
|
+
async getPolicy(name, version) {
|
|
489
|
+
return await this.client.get(`/v4/system/component/${this.ref}/${version}/policies/${name}`);
|
|
490
|
+
}
|
|
461
491
|
/**
|
|
462
492
|
* Install a new policy on the component
|
|
463
493
|
*
|
|
@@ -2217,7 +2247,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
2217
2247
|
* ```
|
|
2218
2248
|
*/
|
|
2219
2249
|
async send(input) {
|
|
2220
|
-
const { data } = await this.client.post("/protokol-mail/
|
|
2250
|
+
const { data } = await this.client.post("/v1/protokol-mail/emails", input);
|
|
2221
2251
|
return data;
|
|
2222
2252
|
}
|
|
2223
2253
|
/**
|
|
@@ -2236,7 +2266,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
2236
2266
|
* ```
|
|
2237
2267
|
*/
|
|
2238
2268
|
async list(params) {
|
|
2239
|
-
const { data } = await this.client.get("/protokol-mail/
|
|
2269
|
+
const { data } = await this.client.get("/v1/protokol-mail/emails", { params });
|
|
2240
2270
|
return data;
|
|
2241
2271
|
}
|
|
2242
2272
|
/**
|
|
@@ -2252,7 +2282,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
2252
2282
|
* ```
|
|
2253
2283
|
*/
|
|
2254
2284
|
async get(messageId) {
|
|
2255
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
2285
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}`);
|
|
2256
2286
|
return data;
|
|
2257
2287
|
}
|
|
2258
2288
|
/**
|
|
@@ -2268,7 +2298,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
2268
2298
|
* ```
|
|
2269
2299
|
*/
|
|
2270
2300
|
async resend(messageId) {
|
|
2271
|
-
const { data } = await this.client.post(`/protokol-mail/
|
|
2301
|
+
const { data } = await this.client.post(`/v1/protokol-mail/emails/${messageId}/resend`);
|
|
2272
2302
|
return data;
|
|
2273
2303
|
}
|
|
2274
2304
|
/**
|
|
@@ -2284,7 +2314,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
2284
2314
|
* ```
|
|
2285
2315
|
*/
|
|
2286
2316
|
async listAttachments(messageId) {
|
|
2287
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
2317
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments`);
|
|
2288
2318
|
return data;
|
|
2289
2319
|
}
|
|
2290
2320
|
/**
|
|
@@ -2303,7 +2333,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
2303
2333
|
* ```
|
|
2304
2334
|
*/
|
|
2305
2335
|
async downloadAttachment(messageId, attachmentId) {
|
|
2306
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
2336
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments/${attachmentId}`, { responseType: "arraybuffer" });
|
|
2307
2337
|
return data;
|
|
2308
2338
|
}
|
|
2309
2339
|
}
|
package/dist/v0.9/index.cjs.js
CHANGED
|
@@ -20956,7 +20956,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
20956
20956
|
* @returns The queued email's message ID and status
|
|
20957
20957
|
*/
|
|
20958
20958
|
async send(input) {
|
|
20959
|
-
const { data } = await this.client.post("/protokol-mail/
|
|
20959
|
+
const { data } = await this.client.post("/v1/protokol-mail/emails", input);
|
|
20960
20960
|
return data;
|
|
20961
20961
|
}
|
|
20962
20962
|
/**
|
|
@@ -20966,7 +20966,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
20966
20966
|
* @returns Paginated list of email log entries
|
|
20967
20967
|
*/
|
|
20968
20968
|
async list(params) {
|
|
20969
|
-
const { data } = await this.client.get("/protokol-mail/
|
|
20969
|
+
const { data } = await this.client.get("/v1/protokol-mail/emails", { params });
|
|
20970
20970
|
return data;
|
|
20971
20971
|
}
|
|
20972
20972
|
/**
|
|
@@ -20976,7 +20976,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
20976
20976
|
* @returns The full email log entry
|
|
20977
20977
|
*/
|
|
20978
20978
|
async get(messageId) {
|
|
20979
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
20979
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}`);
|
|
20980
20980
|
return data;
|
|
20981
20981
|
}
|
|
20982
20982
|
/**
|
|
@@ -20986,7 +20986,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
20986
20986
|
* @returns Confirmation with the message ID
|
|
20987
20987
|
*/
|
|
20988
20988
|
async resend(messageId) {
|
|
20989
|
-
const { data } = await this.client.post(`/protokol-mail/
|
|
20989
|
+
const { data } = await this.client.post(`/v1/protokol-mail/emails/${messageId}/resend`);
|
|
20990
20990
|
return data;
|
|
20991
20991
|
}
|
|
20992
20992
|
/**
|
|
@@ -20996,7 +20996,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
20996
20996
|
* @returns Array of attachment metadata entries
|
|
20997
20997
|
*/
|
|
20998
20998
|
async listAttachments(messageId) {
|
|
20999
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
20999
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments`);
|
|
21000
21000
|
return data;
|
|
21001
21001
|
}
|
|
21002
21002
|
/**
|
|
@@ -21007,7 +21007,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
21007
21007
|
* @returns The raw binary data as an ArrayBuffer
|
|
21008
21008
|
*/
|
|
21009
21009
|
async downloadAttachment(messageId, attachmentId) {
|
|
21010
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
21010
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments/${attachmentId}`, { responseType: "arraybuffer" });
|
|
21011
21011
|
return data;
|
|
21012
21012
|
}
|
|
21013
21013
|
}
|
package/dist/v0.9/index.esm.js
CHANGED
|
@@ -1987,7 +1987,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
1987
1987
|
* @returns The queued email's message ID and status
|
|
1988
1988
|
*/
|
|
1989
1989
|
async send(input) {
|
|
1990
|
-
const { data } = await this.client.post("/protokol-mail/
|
|
1990
|
+
const { data } = await this.client.post("/v1/protokol-mail/emails", input);
|
|
1991
1991
|
return data;
|
|
1992
1992
|
}
|
|
1993
1993
|
/**
|
|
@@ -1997,7 +1997,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
1997
1997
|
* @returns Paginated list of email log entries
|
|
1998
1998
|
*/
|
|
1999
1999
|
async list(params) {
|
|
2000
|
-
const { data } = await this.client.get("/protokol-mail/
|
|
2000
|
+
const { data } = await this.client.get("/v1/protokol-mail/emails", { params });
|
|
2001
2001
|
return data;
|
|
2002
2002
|
}
|
|
2003
2003
|
/**
|
|
@@ -2007,7 +2007,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
2007
2007
|
* @returns The full email log entry
|
|
2008
2008
|
*/
|
|
2009
2009
|
async get(messageId) {
|
|
2010
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
2010
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}`);
|
|
2011
2011
|
return data;
|
|
2012
2012
|
}
|
|
2013
2013
|
/**
|
|
@@ -2017,7 +2017,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
2017
2017
|
* @returns Confirmation with the message ID
|
|
2018
2018
|
*/
|
|
2019
2019
|
async resend(messageId) {
|
|
2020
|
-
const { data } = await this.client.post(`/protokol-mail/
|
|
2020
|
+
const { data } = await this.client.post(`/v1/protokol-mail/emails/${messageId}/resend`);
|
|
2021
2021
|
return data;
|
|
2022
2022
|
}
|
|
2023
2023
|
/**
|
|
@@ -2027,7 +2027,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
2027
2027
|
* @returns Array of attachment metadata entries
|
|
2028
2028
|
*/
|
|
2029
2029
|
async listAttachments(messageId) {
|
|
2030
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
2030
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments`);
|
|
2031
2031
|
return data;
|
|
2032
2032
|
}
|
|
2033
2033
|
/**
|
|
@@ -2038,7 +2038,7 @@ class Mail extends IntegrationsBaseClient {
|
|
|
2038
2038
|
* @returns The raw binary data as an ArrayBuffer
|
|
2039
2039
|
*/
|
|
2040
2040
|
async downloadAttachment(messageId, attachmentId) {
|
|
2041
|
-
const { data } = await this.client.get(`/protokol-mail/
|
|
2041
|
+
const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments/${attachmentId}`, { responseType: "arraybuffer" });
|
|
2042
2042
|
return data;
|
|
2043
2043
|
}
|
|
2044
2044
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import IntegrationsBaseClient from "../integrationsBaseClient";
|
|
2
|
-
import { AxiosResponse } from "axios";
|
|
3
|
-
import { GenerateIPSQrCodeRequest, IPSQrCodeResponse } from "../../types/integrations/serbiaUtits";
|
|
4
|
-
export default class SerbiaUtil extends IntegrationsBaseClient {
|
|
5
|
-
nbsSearch(params: any): Promise<AxiosResponse<any, any>>;
|
|
6
|
-
getNbsIpsQrCode(code: GenerateIPSQrCodeRequest, size: number, lang?: string): Promise<AxiosResponse<IPSQrCodeResponse>>;
|
|
7
|
-
validateNbsIpsQrCode(qrCodeString: string, lang?: string): Promise<AxiosResponse<IPSQrCodeResponse>>;
|
|
8
|
-
getReceiptFromUrl(url: string, source: string): Promise<AxiosResponse<any, any>>;
|
|
9
|
-
getContoList(): Promise<AxiosResponse<any, any>>;
|
|
10
|
-
services(method: string, endpoint: string, params?: any): Promise<AxiosResponse<any, any>>;
|
|
11
|
-
request(method: string, endpoint: string, params: any): Promise<AxiosResponse<any, any>>;
|
|
12
|
-
}
|
package/dist/v0.10/apiUser.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import PlatformBaseClient from "./platformBaseClient";
|
|
2
|
-
export default class APIUser extends PlatformBaseClient {
|
|
3
|
-
auth(username: string, password: string, project: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
|
-
newSecret(uuid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
-
revokeSecret(uuid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
-
edit(uuid: string, roles: string[]): Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
-
list(): Promise<any>;
|
|
8
|
-
get(uuid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
9
|
-
}
|
package/dist/v0.10/apps.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import PlatformBaseClient from "./platformBaseClient";
|
|
2
|
-
export default class Apps extends PlatformBaseClient {
|
|
3
|
-
private appType;
|
|
4
|
-
constructor(appType?: string);
|
|
5
|
-
updateSettings(updateValues: any, ref: string): Promise<any>;
|
|
6
|
-
download(ref: string, version: string): Promise<any>;
|
|
7
|
-
upload(formData: FormData): Promise<any>;
|
|
8
|
-
}
|