@ptkl/sdk 1.3.0 → 1.3.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.
@@ -2218,7 +2218,7 @@ var ProtokolSDK010 = (function (exports, axios) {
2218
2218
  * ```
2219
2219
  */
2220
2220
  async send(input) {
2221
- const { data } = await this.client.post("/protokol-mail/v1/emails", input);
2221
+ const { data } = await this.client.post("/v1/protokol-mail/emails", input);
2222
2222
  return data;
2223
2223
  }
2224
2224
  /**
@@ -2237,7 +2237,7 @@ var ProtokolSDK010 = (function (exports, axios) {
2237
2237
  * ```
2238
2238
  */
2239
2239
  async list(params) {
2240
- const { data } = await this.client.get("/protokol-mail/v1/emails", { params });
2240
+ const { data } = await this.client.get("/v1/protokol-mail/emails", { params });
2241
2241
  return data;
2242
2242
  }
2243
2243
  /**
@@ -2253,7 +2253,7 @@ var ProtokolSDK010 = (function (exports, axios) {
2253
2253
  * ```
2254
2254
  */
2255
2255
  async get(messageId) {
2256
- const { data } = await this.client.get(`/protokol-mail/v1/emails/${messageId}`);
2256
+ const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}`);
2257
2257
  return data;
2258
2258
  }
2259
2259
  /**
@@ -2269,7 +2269,7 @@ var ProtokolSDK010 = (function (exports, axios) {
2269
2269
  * ```
2270
2270
  */
2271
2271
  async resend(messageId) {
2272
- const { data } = await this.client.post(`/protokol-mail/v1/emails/${messageId}/resend`);
2272
+ const { data } = await this.client.post(`/v1/protokol-mail/emails/${messageId}/resend`);
2273
2273
  return data;
2274
2274
  }
2275
2275
  /**
@@ -2285,7 +2285,7 @@ var ProtokolSDK010 = (function (exports, axios) {
2285
2285
  * ```
2286
2286
  */
2287
2287
  async listAttachments(messageId) {
2288
- const { data } = await this.client.get(`/protokol-mail/v1/emails/${messageId}/attachments`);
2288
+ const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments`);
2289
2289
  return data;
2290
2290
  }
2291
2291
  /**
@@ -2304,7 +2304,7 @@ var ProtokolSDK010 = (function (exports, axios) {
2304
2304
  * ```
2305
2305
  */
2306
2306
  async downloadAttachment(messageId, attachmentId) {
2307
- const { data } = await this.client.get(`/protokol-mail/v1/emails/${messageId}/attachments/${attachmentId}`, { responseType: "arraybuffer" });
2307
+ const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments/${attachmentId}`, { responseType: "arraybuffer" });
2308
2308
  return data;
2309
2309
  }
2310
2310
  }
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/v1/emails", input);
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/v1/emails", { params });
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/v1/emails/${messageId}`);
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/v1/emails/${messageId}/resend`);
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/v1/emails/${messageId}/attachments`);
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/v1/emails/${messageId}/attachments/${attachmentId}`, { responseType: "arraybuffer" });
2042
+ const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments/${attachmentId}`, { responseType: "arraybuffer" });
2043
2043
  return data;
2044
2044
  }
2045
2045
  }
@@ -21184,7 +21184,7 @@ class Mail extends IntegrationsBaseClient {
21184
21184
  * ```
21185
21185
  */
21186
21186
  async send(input) {
21187
- const { data } = await this.client.post("/protokol-mail/v1/emails", input);
21187
+ const { data } = await this.client.post("/v1/protokol-mail/emails", input);
21188
21188
  return data;
21189
21189
  }
21190
21190
  /**
@@ -21203,7 +21203,7 @@ class Mail extends IntegrationsBaseClient {
21203
21203
  * ```
21204
21204
  */
21205
21205
  async list(params) {
21206
- const { data } = await this.client.get("/protokol-mail/v1/emails", { params });
21206
+ const { data } = await this.client.get("/v1/protokol-mail/emails", { params });
21207
21207
  return data;
21208
21208
  }
21209
21209
  /**
@@ -21219,7 +21219,7 @@ class Mail extends IntegrationsBaseClient {
21219
21219
  * ```
21220
21220
  */
21221
21221
  async get(messageId) {
21222
- const { data } = await this.client.get(`/protokol-mail/v1/emails/${messageId}`);
21222
+ const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}`);
21223
21223
  return data;
21224
21224
  }
21225
21225
  /**
@@ -21235,7 +21235,7 @@ class Mail extends IntegrationsBaseClient {
21235
21235
  * ```
21236
21236
  */
21237
21237
  async resend(messageId) {
21238
- const { data } = await this.client.post(`/protokol-mail/v1/emails/${messageId}/resend`);
21238
+ const { data } = await this.client.post(`/v1/protokol-mail/emails/${messageId}/resend`);
21239
21239
  return data;
21240
21240
  }
21241
21241
  /**
@@ -21251,7 +21251,7 @@ class Mail extends IntegrationsBaseClient {
21251
21251
  * ```
21252
21252
  */
21253
21253
  async listAttachments(messageId) {
21254
- const { data } = await this.client.get(`/protokol-mail/v1/emails/${messageId}/attachments`);
21254
+ const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments`);
21255
21255
  return data;
21256
21256
  }
21257
21257
  /**
@@ -21270,7 +21270,7 @@ class Mail extends IntegrationsBaseClient {
21270
21270
  * ```
21271
21271
  */
21272
21272
  async downloadAttachment(messageId, attachmentId) {
21273
- const { data } = await this.client.get(`/protokol-mail/v1/emails/${messageId}/attachments/${attachmentId}`, { responseType: "arraybuffer" });
21273
+ const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments/${attachmentId}`, { responseType: "arraybuffer" });
21274
21274
  return data;
21275
21275
  }
21276
21276
  }
@@ -2217,7 +2217,7 @@ class Mail extends IntegrationsBaseClient {
2217
2217
  * ```
2218
2218
  */
2219
2219
  async send(input) {
2220
- const { data } = await this.client.post("/protokol-mail/v1/emails", input);
2220
+ const { data } = await this.client.post("/v1/protokol-mail/emails", input);
2221
2221
  return data;
2222
2222
  }
2223
2223
  /**
@@ -2236,7 +2236,7 @@ class Mail extends IntegrationsBaseClient {
2236
2236
  * ```
2237
2237
  */
2238
2238
  async list(params) {
2239
- const { data } = await this.client.get("/protokol-mail/v1/emails", { params });
2239
+ const { data } = await this.client.get("/v1/protokol-mail/emails", { params });
2240
2240
  return data;
2241
2241
  }
2242
2242
  /**
@@ -2252,7 +2252,7 @@ class Mail extends IntegrationsBaseClient {
2252
2252
  * ```
2253
2253
  */
2254
2254
  async get(messageId) {
2255
- const { data } = await this.client.get(`/protokol-mail/v1/emails/${messageId}`);
2255
+ const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}`);
2256
2256
  return data;
2257
2257
  }
2258
2258
  /**
@@ -2268,7 +2268,7 @@ class Mail extends IntegrationsBaseClient {
2268
2268
  * ```
2269
2269
  */
2270
2270
  async resend(messageId) {
2271
- const { data } = await this.client.post(`/protokol-mail/v1/emails/${messageId}/resend`);
2271
+ const { data } = await this.client.post(`/v1/protokol-mail/emails/${messageId}/resend`);
2272
2272
  return data;
2273
2273
  }
2274
2274
  /**
@@ -2284,7 +2284,7 @@ class Mail extends IntegrationsBaseClient {
2284
2284
  * ```
2285
2285
  */
2286
2286
  async listAttachments(messageId) {
2287
- const { data } = await this.client.get(`/protokol-mail/v1/emails/${messageId}/attachments`);
2287
+ const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments`);
2288
2288
  return data;
2289
2289
  }
2290
2290
  /**
@@ -2303,7 +2303,7 @@ class Mail extends IntegrationsBaseClient {
2303
2303
  * ```
2304
2304
  */
2305
2305
  async downloadAttachment(messageId, attachmentId) {
2306
- const { data } = await this.client.get(`/protokol-mail/v1/emails/${messageId}/attachments/${attachmentId}`, { responseType: "arraybuffer" });
2306
+ const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments/${attachmentId}`, { responseType: "arraybuffer" });
2307
2307
  return data;
2308
2308
  }
2309
2309
  }
@@ -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/v1/emails", input);
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/v1/emails", { params });
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/v1/emails/${messageId}`);
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/v1/emails/${messageId}/resend`);
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/v1/emails/${messageId}/attachments`);
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/v1/emails/${messageId}/attachments/${attachmentId}`, { responseType: "arraybuffer" });
21010
+ const { data } = await this.client.get(`/v1/protokol-mail/emails/${messageId}/attachments/${attachmentId}`, { responseType: "arraybuffer" });
21011
21011
  return data;
21012
21012
  }
21013
21013
  }
@@ -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/v1/emails", input);
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/v1/emails", { params });
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/v1/emails/${messageId}`);
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/v1/emails/${messageId}/resend`);
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/v1/emails/${messageId}/attachments`);
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/v1/emails/${messageId}/attachments/${attachmentId}`, { responseType: "arraybuffer" });
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptkl/sdk",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "scripts": {
5
5
  "build": "rollup -c",
6
6
  "build:monaco": "npm run build && node scripts/generate-monaco-types.cjs",