@trycourier/courier 7.9.0 → 7.10.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.
Files changed (75) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/client.d.mts +4 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/internal/utils/env.js +2 -2
  9. package/internal/utils/env.js.map +1 -1
  10. package/internal/utils/env.mjs +2 -2
  11. package/internal/utils/env.mjs.map +1 -1
  12. package/package.json +1 -1
  13. package/resources/index.d.mts +2 -2
  14. package/resources/index.d.mts.map +1 -1
  15. package/resources/index.d.ts +2 -2
  16. package/resources/index.d.ts.map +1 -1
  17. package/resources/index.js.map +1 -1
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/notifications/index.d.mts +1 -2
  20. package/resources/notifications/index.d.mts.map +1 -1
  21. package/resources/notifications/index.d.ts +1 -2
  22. package/resources/notifications/index.d.ts.map +1 -1
  23. package/resources/notifications/index.js +1 -3
  24. package/resources/notifications/index.js.map +1 -1
  25. package/resources/notifications/index.mjs +0 -1
  26. package/resources/notifications/index.mjs.map +1 -1
  27. package/resources/notifications/notifications.d.mts +305 -30
  28. package/resources/notifications/notifications.d.mts.map +1 -1
  29. package/resources/notifications/notifications.d.ts +305 -30
  30. package/resources/notifications/notifications.d.ts.map +1 -1
  31. package/resources/notifications/notifications.js +73 -10
  32. package/resources/notifications/notifications.js.map +1 -1
  33. package/resources/notifications/notifications.mjs +73 -10
  34. package/resources/notifications/notifications.mjs.map +1 -1
  35. package/resources/providers/providers.d.mts +7 -4
  36. package/resources/providers/providers.d.mts.map +1 -1
  37. package/resources/providers/providers.d.ts +7 -4
  38. package/resources/providers/providers.d.ts.map +1 -1
  39. package/resources/providers/providers.js +6 -4
  40. package/resources/providers/providers.js.map +1 -1
  41. package/resources/providers/providers.mjs +6 -4
  42. package/resources/providers/providers.mjs.map +1 -1
  43. package/resources/routing-strategies.d.mts +34 -14
  44. package/resources/routing-strategies.d.mts.map +1 -1
  45. package/resources/routing-strategies.d.ts +34 -14
  46. package/resources/routing-strategies.d.ts.map +1 -1
  47. package/resources/routing-strategies.js +15 -2
  48. package/resources/routing-strategies.js.map +1 -1
  49. package/resources/routing-strategies.mjs +15 -2
  50. package/resources/routing-strategies.mjs.map +1 -1
  51. package/src/client.ts +28 -4
  52. package/src/internal/utils/env.ts +2 -2
  53. package/src/resources/index.ts +14 -2
  54. package/src/resources/notifications/index.ts +12 -2
  55. package/src/resources/notifications/notifications.ts +390 -36
  56. package/src/resources/providers/providers.ts +8 -5
  57. package/src/resources/routing-strategies.ts +46 -15
  58. package/src/version.ts +1 -1
  59. package/version.d.mts +1 -1
  60. package/version.d.mts.map +1 -1
  61. package/version.d.ts +1 -1
  62. package/version.d.ts.map +1 -1
  63. package/version.js +1 -1
  64. package/version.js.map +1 -1
  65. package/version.mjs +1 -1
  66. package/version.mjs.map +1 -1
  67. package/resources/notifications/draft.d.mts +0 -15
  68. package/resources/notifications/draft.d.mts.map +0 -1
  69. package/resources/notifications/draft.d.ts +0 -15
  70. package/resources/notifications/draft.d.ts.map +0 -1
  71. package/resources/notifications/draft.js +0 -20
  72. package/resources/notifications/draft.js.map +0 -1
  73. package/resources/notifications/draft.mjs +0 -16
  74. package/resources/notifications/draft.mjs.map +0 -1
  75. package/src/resources/notifications/draft.ts +0 -20
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "7.9.0";
1
+ export declare const VERSION = "7.10.1";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "7.9.0";
1
+ export declare const VERSION = "7.10.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '7.9.0'; // x-release-please-version
4
+ exports.VERSION = '7.10.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '7.9.0'; // x-release-please-version
1
+ export const VERSION = '7.10.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
package/version.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
@@ -1,15 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import * as NotificationsAPI from "./notifications.mjs";
3
- import { APIPromise } from "../../core/api-promise.mjs";
4
- import { RequestOptions } from "../../internal/request-options.mjs";
5
- export declare class Draft extends APIResource {
6
- /**
7
- * @example
8
- * ```ts
9
- * const notificationGetContent =
10
- * await client.notifications.draft.retrieveContent('id');
11
- * ```
12
- */
13
- retrieveContent(id: string, options?: RequestOptions): APIPromise<NotificationsAPI.NotificationGetContent>;
14
- }
15
- //# sourceMappingURL=draft.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draft.d.mts","sourceRoot":"","sources":["../../src/resources/notifications/draft.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC,sBAAsB,CAAC;CAG3G"}
@@ -1,15 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as NotificationsAPI from "./notifications.js";
3
- import { APIPromise } from "../../core/api-promise.js";
4
- import { RequestOptions } from "../../internal/request-options.js";
5
- export declare class Draft extends APIResource {
6
- /**
7
- * @example
8
- * ```ts
9
- * const notificationGetContent =
10
- * await client.notifications.draft.retrieveContent('id');
11
- * ```
12
- */
13
- retrieveContent(id: string, options?: RequestOptions): APIPromise<NotificationsAPI.NotificationGetContent>;
14
- }
15
- //# sourceMappingURL=draft.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/resources/notifications/draft.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC,sBAAsB,CAAC;CAG3G"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Draft = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const path_1 = require("../../internal/utils/path.js");
7
- class Draft extends resource_1.APIResource {
8
- /**
9
- * @example
10
- * ```ts
11
- * const notificationGetContent =
12
- * await client.notifications.draft.retrieveContent('id');
13
- * ```
14
- */
15
- retrieveContent(id, options) {
16
- return this._client.get((0, path_1.path) `/notifications/${id}/draft/content`, options);
17
- }
18
- }
19
- exports.Draft = Draft;
20
- //# sourceMappingURL=draft.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draft.js","sourceRoot":"","sources":["../../src/resources/notifications/draft.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;OAMG;IACH,eAAe,CAAC,EAAU,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF;AAXD,sBAWC"}
@@ -1,16 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import { path } from "../../internal/utils/path.mjs";
4
- export class Draft extends APIResource {
5
- /**
6
- * @example
7
- * ```ts
8
- * const notificationGetContent =
9
- * await client.notifications.draft.retrieveContent('id');
10
- * ```
11
- */
12
- retrieveContent(id, options) {
13
- return this._client.get(path `/notifications/${id}/draft/content`, options);
14
- }
15
- }
16
- //# sourceMappingURL=draft.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draft.mjs","sourceRoot":"","sources":["../../src/resources/notifications/draft.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;OAMG;IACH,eAAe,CAAC,EAAU,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF"}
@@ -1,20 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../core/resource';
4
- import * as NotificationsAPI from './notifications';
5
- import { APIPromise } from '../../core/api-promise';
6
- import { RequestOptions } from '../../internal/request-options';
7
- import { path } from '../../internal/utils/path';
8
-
9
- export class Draft extends APIResource {
10
- /**
11
- * @example
12
- * ```ts
13
- * const notificationGetContent =
14
- * await client.notifications.draft.retrieveContent('id');
15
- * ```
16
- */
17
- retrieveContent(id: string, options?: RequestOptions): APIPromise<NotificationsAPI.NotificationGetContent> {
18
- return this._client.get(path`/notifications/${id}/draft/content`, options);
19
- }
20
- }