@trycourier/courier 6.7.0-alpha3 → 7.0.0
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/CHANGELOG.md +124 -0
- package/README.md +14 -8
- package/client.d.mts +35 -16
- package/client.d.mts.map +1 -1
- package/client.d.ts +35 -16
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/audiences.d.mts +4 -7
- package/resources/audiences.d.mts.map +1 -1
- package/resources/audiences.d.ts +4 -7
- package/resources/audiences.d.ts.map +1 -1
- package/resources/audiences.js.map +1 -1
- package/resources/audiences.mjs.map +1 -1
- package/resources/audit-events.d.mts +2 -2
- package/resources/audit-events.d.mts.map +1 -1
- package/resources/audit-events.d.ts +2 -2
- package/resources/audit-events.d.ts.map +1 -1
- package/resources/automations/automations.d.mts +6 -2
- package/resources/automations/automations.d.mts.map +1 -1
- package/resources/automations/automations.d.ts +6 -2
- package/resources/automations/automations.d.ts.map +1 -1
- package/resources/automations/automations.js.map +1 -1
- package/resources/automations/automations.mjs +1 -1
- package/resources/automations/automations.mjs.map +1 -1
- package/resources/automations/index.d.mts +2 -2
- package/resources/automations/index.d.mts.map +1 -1
- package/resources/automations/index.d.ts +2 -2
- package/resources/automations/index.d.ts.map +1 -1
- package/resources/automations/index.js.map +1 -1
- package/resources/automations/index.mjs +1 -1
- package/resources/automations/index.mjs.map +1 -1
- package/resources/automations/invoke.d.mts +4 -6
- package/resources/automations/invoke.d.mts.map +1 -1
- package/resources/automations/invoke.d.ts +4 -6
- package/resources/automations/invoke.d.ts.map +1 -1
- package/resources/automations/invoke.js.map +1 -1
- package/resources/automations/invoke.mjs.map +1 -1
- package/resources/brands.d.mts +2 -2
- package/resources/brands.d.mts.map +1 -1
- package/resources/brands.d.ts +2 -2
- package/resources/brands.d.ts.map +1 -1
- package/resources/bulk.d.mts +5 -45
- package/resources/bulk.d.mts.map +1 -1
- package/resources/bulk.d.ts +5 -45
- package/resources/bulk.d.ts.map +1 -1
- package/resources/bulk.js.map +1 -1
- package/resources/bulk.mjs.map +1 -1
- package/resources/index.d.mts +8 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/lists/index.d.mts +2 -2
- package/resources/lists/index.d.mts.map +1 -1
- package/resources/lists/index.d.ts +2 -2
- package/resources/lists/index.d.ts.map +1 -1
- package/resources/lists/index.js.map +1 -1
- package/resources/lists/index.mjs.map +1 -1
- package/resources/lists/lists.d.mts +13 -9
- package/resources/lists/lists.d.mts.map +1 -1
- package/resources/lists/lists.d.ts +13 -9
- package/resources/lists/lists.d.ts.map +1 -1
- package/resources/lists/lists.js.map +1 -1
- package/resources/lists/lists.mjs.map +1 -1
- package/resources/lists/subscriptions.d.mts +7 -26
- package/resources/lists/subscriptions.d.mts.map +1 -1
- package/resources/lists/subscriptions.d.ts +7 -26
- package/resources/lists/subscriptions.d.ts.map +1 -1
- package/resources/lists/subscriptions.js.map +1 -1
- package/resources/lists/subscriptions.mjs.map +1 -1
- package/resources/messages.d.mts +2 -2
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +2 -2
- package/resources/messages.d.ts.map +1 -1
- package/resources/notifications/checks.d.mts +5 -12
- package/resources/notifications/checks.d.mts.map +1 -1
- package/resources/notifications/checks.d.ts +5 -12
- package/resources/notifications/checks.d.ts.map +1 -1
- package/resources/notifications/checks.js.map +1 -1
- package/resources/notifications/checks.mjs.map +1 -1
- package/resources/notifications/index.d.mts +2 -2
- package/resources/notifications/index.d.mts.map +1 -1
- package/resources/notifications/index.d.ts +2 -2
- package/resources/notifications/index.d.ts.map +1 -1
- package/resources/notifications/index.js.map +1 -1
- package/resources/notifications/index.mjs.map +1 -1
- package/resources/notifications/notifications.d.mts +12 -5
- package/resources/notifications/notifications.d.mts.map +1 -1
- package/resources/notifications/notifications.d.ts +12 -5
- package/resources/notifications/notifications.d.ts.map +1 -1
- package/resources/notifications/notifications.js.map +1 -1
- package/resources/notifications/notifications.mjs.map +1 -1
- package/resources/profiles/index.d.mts +1 -1
- package/resources/profiles/index.d.mts.map +1 -1
- package/resources/profiles/index.d.ts +1 -1
- package/resources/profiles/index.d.ts.map +1 -1
- package/resources/profiles/index.js.map +1 -1
- package/resources/profiles/index.mjs.map +1 -1
- package/resources/profiles/lists.d.mts +5 -11
- package/resources/profiles/lists.d.mts.map +1 -1
- package/resources/profiles/lists.d.ts +5 -11
- package/resources/profiles/lists.d.ts.map +1 -1
- package/resources/profiles/profiles.d.mts +7 -3
- package/resources/profiles/profiles.d.mts.map +1 -1
- package/resources/profiles/profiles.d.ts +7 -3
- package/resources/profiles/profiles.d.ts.map +1 -1
- package/resources/profiles/profiles.js.map +1 -1
- package/resources/profiles/profiles.mjs.map +1 -1
- package/resources/send.d.mts +9 -175
- package/resources/send.d.mts.map +1 -1
- package/resources/send.d.ts +9 -175
- package/resources/send.d.ts.map +1 -1
- package/resources/send.js +2 -2
- package/resources/send.js.map +1 -1
- package/resources/send.mjs +2 -2
- package/resources/send.mjs.map +1 -1
- package/resources/shared.d.mts +215 -4
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +215 -4
- package/resources/shared.d.ts.map +1 -1
- package/resources/tenants/index.d.mts +3 -2
- package/resources/tenants/index.d.mts.map +1 -1
- package/resources/tenants/index.d.ts +3 -2
- package/resources/tenants/index.d.ts.map +1 -1
- package/resources/tenants/index.js +3 -1
- package/resources/tenants/index.js.map +1 -1
- package/resources/tenants/index.mjs +1 -0
- package/resources/tenants/index.mjs.map +1 -1
- package/resources/tenants/preferences/index.d.mts +3 -0
- package/resources/tenants/preferences/index.d.mts.map +1 -0
- package/resources/tenants/preferences/index.d.ts +3 -0
- package/resources/tenants/preferences/index.d.ts.map +1 -0
- package/resources/tenants/{default-preferences → preferences}/index.js +3 -3
- package/resources/tenants/preferences/index.js.map +1 -0
- package/resources/tenants/preferences/index.mjs +4 -0
- package/resources/tenants/preferences/index.mjs.map +1 -0
- package/resources/tenants/{default-preferences → preferences}/items.d.mts +12 -29
- package/resources/tenants/preferences/items.d.mts.map +1 -0
- package/resources/tenants/{default-preferences → preferences}/items.d.ts +12 -29
- package/resources/tenants/preferences/items.d.ts.map +1 -0
- package/resources/tenants/{default-preferences → preferences}/items.js +9 -13
- package/resources/tenants/preferences/items.js.map +1 -0
- package/resources/tenants/{default-preferences → preferences}/items.mjs +9 -13
- package/resources/tenants/preferences/items.mjs.map +1 -0
- package/resources/tenants/preferences/preferences.d.mts +10 -0
- package/resources/tenants/preferences/preferences.d.mts.map +1 -0
- package/resources/tenants/preferences/preferences.d.ts +10 -0
- package/resources/tenants/preferences/preferences.d.ts.map +1 -0
- package/resources/tenants/{default-preferences/default-preferences.js → preferences/preferences.js} +5 -5
- package/resources/tenants/preferences/preferences.js.map +1 -0
- package/resources/tenants/{default-preferences/default-preferences.mjs → preferences/preferences.mjs} +4 -4
- package/resources/tenants/preferences/preferences.mjs.map +1 -0
- package/resources/tenants/preferences.d.mts +2 -0
- package/resources/tenants/preferences.d.mts.map +1 -0
- package/resources/tenants/preferences.d.ts +2 -0
- package/resources/tenants/preferences.d.ts.map +1 -0
- package/resources/tenants/{default-preferences.js → preferences.js} +2 -2
- package/resources/tenants/preferences.js.map +1 -0
- package/resources/tenants/preferences.mjs +3 -0
- package/resources/tenants/preferences.mjs.map +1 -0
- package/resources/tenants/templates.d.mts +4 -35
- package/resources/tenants/templates.d.mts.map +1 -1
- package/resources/tenants/templates.d.ts +4 -35
- package/resources/tenants/templates.d.ts.map +1 -1
- package/resources/tenants/templates.js.map +1 -1
- package/resources/tenants/templates.mjs.map +1 -1
- package/resources/tenants/tenants.d.mts +64 -9
- package/resources/tenants/tenants.d.mts.map +1 -1
- package/resources/tenants/tenants.d.ts +64 -9
- package/resources/tenants/tenants.d.ts.map +1 -1
- package/resources/tenants/tenants.js +4 -2
- package/resources/tenants/tenants.js.map +1 -1
- package/resources/tenants/tenants.mjs +5 -3
- package/resources/tenants/tenants.mjs.map +1 -1
- package/resources/users/index.d.mts +2 -2
- package/resources/users/index.d.mts.map +1 -1
- package/resources/users/index.d.ts +2 -2
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/preferences.d.mts +8 -11
- package/resources/users/preferences.d.mts.map +1 -1
- package/resources/users/preferences.d.ts +8 -11
- package/resources/users/preferences.d.ts.map +1 -1
- package/resources/users/preferences.js.map +1 -1
- package/resources/users/preferences.mjs.map +1 -1
- package/resources/users/tenants.d.mts +4 -21
- package/resources/users/tenants.d.mts.map +1 -1
- package/resources/users/tenants.d.ts +4 -21
- package/resources/users/tenants.d.ts.map +1 -1
- package/resources/users/tenants.js.map +1 -1
- package/resources/users/tenants.mjs.map +1 -1
- package/resources/users/tokens.d.mts +18 -17
- package/resources/users/tokens.d.mts.map +1 -1
- package/resources/users/tokens.d.ts +18 -17
- package/resources/users/tokens.d.ts.map +1 -1
- package/resources/users/tokens.js +1 -0
- package/resources/users/tokens.js.map +1 -1
- package/resources/users/tokens.mjs +1 -0
- package/resources/users/tokens.mjs.map +1 -1
- package/resources/users/users.d.mts +4 -4
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +4 -4
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs.map +1 -1
- package/src/client.ts +38 -23
- package/src/resources/audiences.ts +3 -9
- package/src/resources/audit-events.ts +2 -2
- package/src/resources/automations/automations.ts +7 -7
- package/src/resources/automations/index.ts +2 -7
- package/src/resources/automations/invoke.ts +6 -7
- package/src/resources/brands.ts +2 -2
- package/src/resources/bulk.ts +4 -51
- package/src/resources/index.ts +10 -14
- package/src/resources/lists/index.ts +2 -4
- package/src/resources/lists/lists.ts +14 -13
- package/src/resources/lists/subscriptions.ts +6 -31
- package/src/resources/messages.ts +2 -2
- package/src/resources/notifications/checks.ts +4 -17
- package/src/resources/notifications/index.ts +2 -2
- package/src/resources/notifications/notifications.ts +15 -6
- package/src/resources/profiles/index.ts +1 -0
- package/src/resources/profiles/lists.ts +5 -13
- package/src/resources/profiles/profiles.ts +9 -2
- package/src/resources/send.ts +9 -216
- package/src/resources/shared.ts +258 -4
- package/src/resources/tenants/index.ts +4 -2
- package/src/resources/tenants/preferences/index.ts +4 -0
- package/src/resources/tenants/{default-preferences → preferences}/items.ts +12 -38
- package/src/resources/tenants/{default-preferences/default-preferences.ts → preferences/preferences.ts} +4 -12
- package/src/resources/tenants/{default-preferences.ts → preferences.ts} +1 -1
- package/src/resources/tenants/templates.ts +3 -44
- package/src/resources/tenants/tenants.ts +77 -18
- package/src/resources/users/index.ts +0 -2
- package/src/resources/users/preferences.ts +7 -12
- package/src/resources/users/tenants.ts +3 -23
- package/src/resources/users/tokens.ts +19 -18
- package/src/resources/users/users.ts +0 -4
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/tenants/default-preferences/default-preferences.d.mts +0 -10
- package/resources/tenants/default-preferences/default-preferences.d.mts.map +0 -1
- package/resources/tenants/default-preferences/default-preferences.d.ts +0 -10
- package/resources/tenants/default-preferences/default-preferences.d.ts.map +0 -1
- package/resources/tenants/default-preferences/default-preferences.js.map +0 -1
- package/resources/tenants/default-preferences/default-preferences.mjs.map +0 -1
- package/resources/tenants/default-preferences/index.d.mts +0 -3
- package/resources/tenants/default-preferences/index.d.mts.map +0 -1
- package/resources/tenants/default-preferences/index.d.ts +0 -3
- package/resources/tenants/default-preferences/index.d.ts.map +0 -1
- package/resources/tenants/default-preferences/index.js.map +0 -1
- package/resources/tenants/default-preferences/index.mjs +0 -4
- package/resources/tenants/default-preferences/index.mjs.map +0 -1
- package/resources/tenants/default-preferences/items.d.mts.map +0 -1
- package/resources/tenants/default-preferences/items.d.ts.map +0 -1
- package/resources/tenants/default-preferences/items.js.map +0 -1
- package/resources/tenants/default-preferences/items.mjs.map +0 -1
- package/resources/tenants/default-preferences.d.mts +0 -2
- package/resources/tenants/default-preferences.d.mts.map +0 -1
- package/resources/tenants/default-preferences.d.ts +0 -2
- package/resources/tenants/default-preferences.d.ts.map +0 -1
- package/resources/tenants/default-preferences.js.map +0 -1
- package/resources/tenants/default-preferences.mjs +0 -3
- package/resources/tenants/default-preferences.mjs.map +0 -1
- package/src/resources/tenants/default-preferences/index.ts +0 -10
package/resources/bulk.d.mts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
2
|
import * as BulkAPI from "./bulk.mjs";
|
|
3
|
-
import * as AudiencesAPI from "./audiences.mjs";
|
|
4
|
-
import * as SendAPI from "./send.mjs";
|
|
5
3
|
import * as Shared from "./shared.mjs";
|
|
6
|
-
import * as SubscriptionsAPI from "./lists/subscriptions.mjs";
|
|
7
|
-
import * as TemplatesAPI from "./tenants/templates.mjs";
|
|
8
4
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
9
5
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
10
6
|
export declare class Bulk extends APIResource {
|
|
@@ -51,7 +47,7 @@ export declare namespace InboundBulkMessage {
|
|
|
51
47
|
/**
|
|
52
48
|
* Syntactic sugar to provide a fast shorthand for Courier Elemental Blocks.
|
|
53
49
|
*/
|
|
54
|
-
content: Shared.ElementalContentSugar |
|
|
50
|
+
content: Shared.ElementalContentSugar | Shared.ElementalContent;
|
|
55
51
|
brand?: string | null;
|
|
56
52
|
data?: {
|
|
57
53
|
[key: string]: unknown;
|
|
@@ -69,53 +65,17 @@ export declare namespace InboundBulkMessage {
|
|
|
69
65
|
}
|
|
70
66
|
export interface InboundBulkMessageUser {
|
|
71
67
|
data?: unknown;
|
|
72
|
-
preferences?:
|
|
68
|
+
preferences?: Shared.RecipientPreferences | null;
|
|
73
69
|
profile?: unknown;
|
|
74
70
|
recipient?: string | null;
|
|
75
|
-
to?: UserRecipient | null;
|
|
76
|
-
}
|
|
77
|
-
export interface UserRecipient {
|
|
78
|
-
/**
|
|
79
|
-
* Use `tenant_id` instead.
|
|
80
|
-
*/
|
|
81
|
-
account_id?: string | null;
|
|
82
|
-
/**
|
|
83
|
-
* Context such as tenant_id to send the notification with.
|
|
84
|
-
*/
|
|
85
|
-
context?: SendAPI.MessageContext | null;
|
|
86
|
-
data?: {
|
|
87
|
-
[key: string]: unknown;
|
|
88
|
-
} | null;
|
|
89
|
-
email?: string | null;
|
|
90
|
-
/**
|
|
91
|
-
* The user's preferred ISO 639-1 language code.
|
|
92
|
-
*/
|
|
93
|
-
locale?: string | null;
|
|
94
|
-
phone_number?: string | null;
|
|
95
|
-
preferences?: UserRecipient.Preferences | null;
|
|
96
|
-
/**
|
|
97
|
-
* Tenant id. Will load brand, default preferences and base context data.
|
|
98
|
-
*/
|
|
99
|
-
tenant_id?: string | null;
|
|
100
|
-
user_id?: string | null;
|
|
101
|
-
}
|
|
102
|
-
export declare namespace UserRecipient {
|
|
103
|
-
interface Preferences {
|
|
104
|
-
notifications: {
|
|
105
|
-
[key: string]: Shared.Preference;
|
|
106
|
-
};
|
|
107
|
-
categories?: {
|
|
108
|
-
[key: string]: Shared.Preference;
|
|
109
|
-
} | null;
|
|
110
|
-
templateId?: string | null;
|
|
111
|
-
}
|
|
71
|
+
to?: Shared.UserRecipient | null;
|
|
112
72
|
}
|
|
113
73
|
export interface BulkCreateJobResponse {
|
|
114
74
|
jobId: string;
|
|
115
75
|
}
|
|
116
76
|
export interface BulkListUsersResponse {
|
|
117
77
|
items: Array<BulkListUsersResponse.Item>;
|
|
118
|
-
paging:
|
|
78
|
+
paging: Shared.Paging;
|
|
119
79
|
}
|
|
120
80
|
export declare namespace BulkListUsersResponse {
|
|
121
81
|
interface Item extends BulkAPI.InboundBulkMessageUser {
|
|
@@ -149,6 +109,6 @@ export interface BulkListUsersParams {
|
|
|
149
109
|
cursor?: string | null;
|
|
150
110
|
}
|
|
151
111
|
export declare namespace Bulk {
|
|
152
|
-
export { type InboundBulkMessage as InboundBulkMessage, type InboundBulkMessageUser as InboundBulkMessageUser, type
|
|
112
|
+
export { type InboundBulkMessage as InboundBulkMessage, type InboundBulkMessageUser as InboundBulkMessageUser, type BulkCreateJobResponse as BulkCreateJobResponse, type BulkListUsersResponse as BulkListUsersResponse, type BulkRetrieveJobResponse as BulkRetrieveJobResponse, type BulkAddUsersParams as BulkAddUsersParams, type BulkCreateJobParams as BulkCreateJobParams, type BulkListUsersParams as BulkListUsersParams, };
|
|
153
113
|
}
|
|
154
114
|
//# sourceMappingURL=bulk.d.mts.map
|
package/resources/bulk.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.d.mts","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,
|
|
1
|
+
{"version":3,"file":"bulk.d.mts","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ7F;;OAEG;IACH,SAAS,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjG;;OAEG;IACH,SAAS,CACP,KAAK,EAAE,MAAM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,EAAE,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC;KAC1D;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,kBAAkB,CAAC;CAC7B;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/bulk.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
import * as BulkAPI from "./bulk.js";
|
|
3
|
-
import * as AudiencesAPI from "./audiences.js";
|
|
4
|
-
import * as SendAPI from "./send.js";
|
|
5
3
|
import * as Shared from "./shared.js";
|
|
6
|
-
import * as SubscriptionsAPI from "./lists/subscriptions.js";
|
|
7
|
-
import * as TemplatesAPI from "./tenants/templates.js";
|
|
8
4
|
import { APIPromise } from "../core/api-promise.js";
|
|
9
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
10
6
|
export declare class Bulk extends APIResource {
|
|
@@ -51,7 +47,7 @@ export declare namespace InboundBulkMessage {
|
|
|
51
47
|
/**
|
|
52
48
|
* Syntactic sugar to provide a fast shorthand for Courier Elemental Blocks.
|
|
53
49
|
*/
|
|
54
|
-
content: Shared.ElementalContentSugar |
|
|
50
|
+
content: Shared.ElementalContentSugar | Shared.ElementalContent;
|
|
55
51
|
brand?: string | null;
|
|
56
52
|
data?: {
|
|
57
53
|
[key: string]: unknown;
|
|
@@ -69,53 +65,17 @@ export declare namespace InboundBulkMessage {
|
|
|
69
65
|
}
|
|
70
66
|
export interface InboundBulkMessageUser {
|
|
71
67
|
data?: unknown;
|
|
72
|
-
preferences?:
|
|
68
|
+
preferences?: Shared.RecipientPreferences | null;
|
|
73
69
|
profile?: unknown;
|
|
74
70
|
recipient?: string | null;
|
|
75
|
-
to?: UserRecipient | null;
|
|
76
|
-
}
|
|
77
|
-
export interface UserRecipient {
|
|
78
|
-
/**
|
|
79
|
-
* Use `tenant_id` instead.
|
|
80
|
-
*/
|
|
81
|
-
account_id?: string | null;
|
|
82
|
-
/**
|
|
83
|
-
* Context such as tenant_id to send the notification with.
|
|
84
|
-
*/
|
|
85
|
-
context?: SendAPI.MessageContext | null;
|
|
86
|
-
data?: {
|
|
87
|
-
[key: string]: unknown;
|
|
88
|
-
} | null;
|
|
89
|
-
email?: string | null;
|
|
90
|
-
/**
|
|
91
|
-
* The user's preferred ISO 639-1 language code.
|
|
92
|
-
*/
|
|
93
|
-
locale?: string | null;
|
|
94
|
-
phone_number?: string | null;
|
|
95
|
-
preferences?: UserRecipient.Preferences | null;
|
|
96
|
-
/**
|
|
97
|
-
* Tenant id. Will load brand, default preferences and base context data.
|
|
98
|
-
*/
|
|
99
|
-
tenant_id?: string | null;
|
|
100
|
-
user_id?: string | null;
|
|
101
|
-
}
|
|
102
|
-
export declare namespace UserRecipient {
|
|
103
|
-
interface Preferences {
|
|
104
|
-
notifications: {
|
|
105
|
-
[key: string]: Shared.Preference;
|
|
106
|
-
};
|
|
107
|
-
categories?: {
|
|
108
|
-
[key: string]: Shared.Preference;
|
|
109
|
-
} | null;
|
|
110
|
-
templateId?: string | null;
|
|
111
|
-
}
|
|
71
|
+
to?: Shared.UserRecipient | null;
|
|
112
72
|
}
|
|
113
73
|
export interface BulkCreateJobResponse {
|
|
114
74
|
jobId: string;
|
|
115
75
|
}
|
|
116
76
|
export interface BulkListUsersResponse {
|
|
117
77
|
items: Array<BulkListUsersResponse.Item>;
|
|
118
|
-
paging:
|
|
78
|
+
paging: Shared.Paging;
|
|
119
79
|
}
|
|
120
80
|
export declare namespace BulkListUsersResponse {
|
|
121
81
|
interface Item extends BulkAPI.InboundBulkMessageUser {
|
|
@@ -149,6 +109,6 @@ export interface BulkListUsersParams {
|
|
|
149
109
|
cursor?: string | null;
|
|
150
110
|
}
|
|
151
111
|
export declare namespace Bulk {
|
|
152
|
-
export { type InboundBulkMessage as InboundBulkMessage, type InboundBulkMessageUser as InboundBulkMessageUser, type
|
|
112
|
+
export { type InboundBulkMessage as InboundBulkMessage, type InboundBulkMessageUser as InboundBulkMessageUser, type BulkCreateJobResponse as BulkCreateJobResponse, type BulkListUsersResponse as BulkListUsersResponse, type BulkRetrieveJobResponse as BulkRetrieveJobResponse, type BulkAddUsersParams as BulkAddUsersParams, type BulkCreateJobParams as BulkCreateJobParams, type BulkListUsersParams as BulkListUsersParams, };
|
|
153
113
|
}
|
|
154
114
|
//# sourceMappingURL=bulk.d.ts.map
|
package/resources/bulk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.d.ts","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,
|
|
1
|
+
{"version":3,"file":"bulk.d.ts","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,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ClC;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,GAAG;QAClB,UAAU,EAAE,OAAO,CAAC,kBAAkB,CAAC;QAEvC,QAAQ,EAAE,MAAM,CAAC;QAEjB,QAAQ,EAAE,MAAM,CAAC;QAEjB,QAAQ,EAAE,MAAM,CAAC;QAEjB,MAAM,EAAE,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC;KAC1D;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,kBAAkB,CAAC;CAC7B;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/bulk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.js","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"bulk.js","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,QAAQ,CAAC,KAAa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file":"bulk.mjs","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"bulk.mjs","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,QAAQ,CAAC,KAAa,EAAE,IAAwB,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,SAAS,KAAK,EAAE,EAAE;YAC7C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,IAAyB,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,SAAS,CACP,KAAa,EACb,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,SAAS,KAAK,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,KAAa,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,SAAS,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAa,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,SAAS,KAAK,MAAM,EAAE;YACjD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export * from "./shared.mjs";
|
|
2
|
-
export { Audiences, type Audience, type Filter, type FilterConfig, type
|
|
2
|
+
export { Audiences, type Audience, type Filter, type FilterConfig, type AudienceUpdateResponse, type AudienceListResponse, type AudienceListMembersResponse, type AudienceUpdateParams, type AudienceListParams, type AudienceListMembersParams, } from "./audiences.mjs";
|
|
3
3
|
export { AuditEvents, type AuditEvent, type AuditEventListResponse, type AuditEventListParams, } from "./audit-events.mjs";
|
|
4
4
|
export { Auth, type AuthIssueTokenResponse, type AuthIssueTokenParams } from "./auth.mjs";
|
|
5
|
-
export { Automations } from "./automations/automations.mjs";
|
|
5
|
+
export { Automations, type AutomationInvokeResponse } from "./automations/automations.mjs";
|
|
6
6
|
export { Brands, type Brand, type BrandColors, type BrandSettings, type BrandSettingsEmail, type BrandSettingsInApp, type BrandSnippet, type BrandSnippets, type BrandTemplate, type EmailFooter, type EmailHead, type EmailHeader, type Icons, type Logo, type WidgetBackground, type BrandListResponse, type BrandCreateParams, type BrandUpdateParams, type BrandListParams, } from "./brands.mjs";
|
|
7
|
-
export { Bulk, type InboundBulkMessage, type InboundBulkMessageUser, type
|
|
7
|
+
export { Bulk, type InboundBulkMessage, type InboundBulkMessageUser, type BulkCreateJobResponse, type BulkListUsersResponse, type BulkRetrieveJobResponse, type BulkAddUsersParams, type BulkCreateJobParams, type BulkListUsersParams, } from "./bulk.mjs";
|
|
8
8
|
export { Inbound, type InboundTrackEventResponse, type InboundTrackEventParams } from "./inbound.mjs";
|
|
9
|
-
export { Lists, type
|
|
9
|
+
export { Lists, type PutSubscriptionsRecipient, type SubscriptionList, type ListListResponse, type ListUpdateParams, type ListListParams, type ListRestoreParams, } from "./lists/lists.mjs";
|
|
10
10
|
export { Messages, type MessageDetails, type MessageRetrieveResponse, type MessageListResponse, type MessageContentResponse, type MessageHistoryResponse, type MessageListParams, type MessageHistoryParams, } from "./messages.mjs";
|
|
11
|
-
export { Notifications, type NotificationGetContent, type NotificationListResponse, type NotificationListParams, } from "./notifications/notifications.mjs";
|
|
12
|
-
export { Profiles, type ProfileCreateResponse, type ProfileRetrieveResponse, type ProfileReplaceResponse, type ProfileCreateParams, type ProfileUpdateParams, type ProfileReplaceParams, } from "./profiles/profiles.mjs";
|
|
11
|
+
export { Notifications, type BaseCheck, type Check, type NotificationGetContent, type NotificationListResponse, type NotificationListParams, } from "./notifications/notifications.mjs";
|
|
12
|
+
export { Profiles, type SubscribeToListsRequestItem, type ProfileCreateResponse, type ProfileRetrieveResponse, type ProfileReplaceResponse, type ProfileCreateParams, type ProfileUpdateParams, type ProfileReplaceParams, } from "./profiles/profiles.mjs";
|
|
13
13
|
export { Requests } from "./requests.mjs";
|
|
14
|
-
export { Send, type
|
|
15
|
-
export { Tenants, type DefaultPreferences, type Tenant, type TenantListResponse, type TenantListUsersResponse, type TenantUpdateParams, type TenantListParams, type TenantListUsersParams, } from "./tenants/tenants.mjs";
|
|
14
|
+
export { Send, type SendMessageResponse, type SendMessageParams } from "./send.mjs";
|
|
15
|
+
export { Tenants, type BaseTemplateTenantAssociation, type DefaultPreferences, type SubscriptionTopicNew, type Tenant, type TenantAssociation, type TenantListResponse, type TenantListUsersResponse, type TenantUpdateParams, type TenantListParams, type TenantListUsersParams, } from "./tenants/tenants.mjs";
|
|
16
16
|
export { Translations, type TranslationRetrieveResponse, type TranslationRetrieveParams, type TranslationUpdateParams, } from "./translations.mjs";
|
|
17
17
|
export { Users } from "./users/users.mjs";
|
|
18
18
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,GAC/B;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B;OACM,EAAE,IAAI,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE;OAChE,EAAE,WAAW,EAAE,KAAK,wBAAwB,EAAE;OAC9C,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,KAAK,EACV,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB;OACM,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EAAE,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OACzE,EACL,KAAK,EACL,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB;OACM,EACL,QAAQ,EACR,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B;OACM,EACL,aAAa,EACb,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B;OACM,EACL,QAAQ,EACR,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B;OACM,EAAE,QAAQ,EAAE;OACZ,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE;OAC1D,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACX,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,GAC3B;OACM,EACL,YAAY,EACZ,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B;OACM,EAAE,KAAK,EAAE"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export * from "./shared.js";
|
|
2
|
-
export { Audiences, type Audience, type Filter, type FilterConfig, type
|
|
2
|
+
export { Audiences, type Audience, type Filter, type FilterConfig, type AudienceUpdateResponse, type AudienceListResponse, type AudienceListMembersResponse, type AudienceUpdateParams, type AudienceListParams, type AudienceListMembersParams, } from "./audiences.js";
|
|
3
3
|
export { AuditEvents, type AuditEvent, type AuditEventListResponse, type AuditEventListParams, } from "./audit-events.js";
|
|
4
4
|
export { Auth, type AuthIssueTokenResponse, type AuthIssueTokenParams } from "./auth.js";
|
|
5
|
-
export { Automations } from "./automations/automations.js";
|
|
5
|
+
export { Automations, type AutomationInvokeResponse } from "./automations/automations.js";
|
|
6
6
|
export { Brands, type Brand, type BrandColors, type BrandSettings, type BrandSettingsEmail, type BrandSettingsInApp, type BrandSnippet, type BrandSnippets, type BrandTemplate, type EmailFooter, type EmailHead, type EmailHeader, type Icons, type Logo, type WidgetBackground, type BrandListResponse, type BrandCreateParams, type BrandUpdateParams, type BrandListParams, } from "./brands.js";
|
|
7
|
-
export { Bulk, type InboundBulkMessage, type InboundBulkMessageUser, type
|
|
7
|
+
export { Bulk, type InboundBulkMessage, type InboundBulkMessageUser, type BulkCreateJobResponse, type BulkListUsersResponse, type BulkRetrieveJobResponse, type BulkAddUsersParams, type BulkCreateJobParams, type BulkListUsersParams, } from "./bulk.js";
|
|
8
8
|
export { Inbound, type InboundTrackEventResponse, type InboundTrackEventParams } from "./inbound.js";
|
|
9
|
-
export { Lists, type
|
|
9
|
+
export { Lists, type PutSubscriptionsRecipient, type SubscriptionList, type ListListResponse, type ListUpdateParams, type ListListParams, type ListRestoreParams, } from "./lists/lists.js";
|
|
10
10
|
export { Messages, type MessageDetails, type MessageRetrieveResponse, type MessageListResponse, type MessageContentResponse, type MessageHistoryResponse, type MessageListParams, type MessageHistoryParams, } from "./messages.js";
|
|
11
|
-
export { Notifications, type NotificationGetContent, type NotificationListResponse, type NotificationListParams, } from "./notifications/notifications.js";
|
|
12
|
-
export { Profiles, type ProfileCreateResponse, type ProfileRetrieveResponse, type ProfileReplaceResponse, type ProfileCreateParams, type ProfileUpdateParams, type ProfileReplaceParams, } from "./profiles/profiles.js";
|
|
11
|
+
export { Notifications, type BaseCheck, type Check, type NotificationGetContent, type NotificationListResponse, type NotificationListParams, } from "./notifications/notifications.js";
|
|
12
|
+
export { Profiles, type SubscribeToListsRequestItem, type ProfileCreateResponse, type ProfileRetrieveResponse, type ProfileReplaceResponse, type ProfileCreateParams, type ProfileUpdateParams, type ProfileReplaceParams, } from "./profiles/profiles.js";
|
|
13
13
|
export { Requests } from "./requests.js";
|
|
14
|
-
export { Send, type
|
|
15
|
-
export { Tenants, type DefaultPreferences, type Tenant, type TenantListResponse, type TenantListUsersResponse, type TenantUpdateParams, type TenantListParams, type TenantListUsersParams, } from "./tenants/tenants.js";
|
|
14
|
+
export { Send, type SendMessageResponse, type SendMessageParams } from "./send.js";
|
|
15
|
+
export { Tenants, type BaseTemplateTenantAssociation, type DefaultPreferences, type SubscriptionTopicNew, type Tenant, type TenantAssociation, type TenantListResponse, type TenantListUsersResponse, type TenantUpdateParams, type TenantListParams, type TenantListUsersParams, } from "./tenants/tenants.js";
|
|
16
16
|
export { Translations, type TranslationRetrieveResponse, type TranslationRetrieveParams, type TranslationUpdateParams, } from "./translations.js";
|
|
17
17
|
export { Users } from "./users/users.js";
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,GAC/B;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,K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,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B;OACM,EAAE,QAAQ,EAAE;OACZ,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE;OAC1D,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACX,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,GAC3B;OACM,EACL,YAAY,EACZ,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B;OACM,EAAE,KAAK,EAAE"}
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,4CAWqB;AAVnB,sGAAA,SAAS,OAAA;AAWX,kDAKwB;AAJtB,2GAAA,WAAW,OAAA;AAKb,kCAAsF;AAA7E,4FAAA,IAAI,OAAA;AACb,4DAAuF;AAA9E,0GAAA,WAAW,OAAA;AACpB,sCAoBkB;AAnBhB,gGAAA,MAAM,OAAA;AAoBR,kCAUgB;AATd,4FAAA,IAAI,OAAA;AAUN,wCAAkG;AAAzF,kGAAA,OAAO,OAAA;AAChB,0CAQuB;AAPrB,8FAAA,KAAK,OAAA;AAQP,0CASoB;AARlB,oGAAA,QAAQ,OAAA;AASV,kEAOuC;AANrC,8GAAA,aAAa,OAAA;AAOf,mDAS6B;AAR3B,oGAAA,QAAQ,OAAA;AASV,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,kCAAgF;AAAvE,4FAAA,IAAI,OAAA;AACb,gDAY2B;AAXzB,kGAAA,OAAO,OAAA;AAYT,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,0CAAsC;AAA7B,8FAAA,KAAK,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ export { Messages, } from "./messages.mjs";
|
|
|
12
12
|
export { Notifications, } from "./notifications/notifications.mjs";
|
|
13
13
|
export { Profiles, } from "./profiles/profiles.mjs";
|
|
14
14
|
export { Requests } from "./requests.mjs";
|
|
15
|
-
export { Send
|
|
15
|
+
export { Send } from "./send.mjs";
|
|
16
16
|
export { Tenants, } from "./tenants/tenants.mjs";
|
|
17
17
|
export { Translations, } from "./translations.mjs";
|
|
18
18
|
export { Users } from "./users/users.mjs";
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EACL,SAAS,GAUV;OACM,EACL,WAAW,GAIZ;OACM,EAAE,IAAI,EAA0D;OAChE,EAAE,WAAW,EAAiC;OAC9C,EACL,MAAM,GAmBP;OACM,EACL,IAAI,GASL;OACM,EAAE,OAAO,EAAgE;OACzE,EACL,KAAK,GAON;OACM,EACL,QAAQ,GAQT;OACM,EACL,aAAa,GAMd;OACM,EACL,QAAQ,GAQT;OACM,EAAE,QAAQ,EAAE;OACZ,EAAE,IAAI,EAAoD;OAC1D,EACL,OAAO,GAWR;OACM,EACL,YAAY,GAIb;OACM,EAAE,KAAK,EAAE"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Lists, type
|
|
2
|
-
export { Subscriptions, type
|
|
1
|
+
export { Lists, type PutSubscriptionsRecipient, type SubscriptionList, type ListListResponse, type ListUpdateParams, type ListListParams, type ListRestoreParams, } from "./lists.mjs";
|
|
2
|
+
export { Subscriptions, type SubscriptionListResponse, type SubscriptionListParams, type SubscriptionAddParams, type SubscriptionSubscribeParams, type SubscriptionSubscribeUserParams, type SubscriptionUnsubscribeUserParams, } from "./subscriptions.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/lists/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/lists/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB;OACM,EACL,aAAa,EACb,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,GACvC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Lists, type
|
|
2
|
-
export { Subscriptions, type
|
|
1
|
+
export { Lists, type PutSubscriptionsRecipient, type SubscriptionList, type ListListResponse, type ListUpdateParams, type ListListParams, type ListRestoreParams, } from "./lists.js";
|
|
2
|
+
export { Subscriptions, type SubscriptionListResponse, type SubscriptionListParams, type SubscriptionAddParams, type SubscriptionSubscribeParams, type SubscriptionSubscribeUserParams, type SubscriptionUnsubscribeUserParams, } from "./subscriptions.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/lists/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/lists/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB;OACM,EACL,aAAa,EACb,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,GACvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/lists/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/lists/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAQiB;AAPf,8FAAA,KAAK,OAAA;AAQP,oDAQyB;AAPvB,8GAAA,aAAa,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/lists/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/lists/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,GAON;OACM,EACL,aAAa,GAOd"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as Shared from "../shared.mjs";
|
|
3
3
|
import * as SubscriptionsAPI from "./subscriptions.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { SubscriptionAddParams, SubscriptionListParams, SubscriptionListResponse, SubscriptionSubscribeParams, SubscriptionSubscribeUserParams, SubscriptionUnsubscribeUserParams, Subscriptions } from "./subscriptions.mjs";
|
|
5
5
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
6
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
7
|
export declare class Lists extends APIResource {
|
|
@@ -9,7 +9,7 @@ export declare class Lists extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Returns a list based on the list ID provided.
|
|
11
11
|
*/
|
|
12
|
-
retrieve(listID: string, options?: RequestOptions): APIPromise<
|
|
12
|
+
retrieve(listID: string, options?: RequestOptions): APIPromise<SubscriptionList>;
|
|
13
13
|
/**
|
|
14
14
|
* Create or replace an existing list with the supplied values.
|
|
15
15
|
*/
|
|
@@ -27,19 +27,23 @@ export declare class Lists extends APIResource {
|
|
|
27
27
|
*/
|
|
28
28
|
restore(listID: string, body: ListRestoreParams, options?: RequestOptions): APIPromise<void>;
|
|
29
29
|
}
|
|
30
|
-
export interface
|
|
30
|
+
export interface PutSubscriptionsRecipient {
|
|
31
|
+
recipientId: string;
|
|
32
|
+
preferences?: Shared.RecipientPreferences | null;
|
|
33
|
+
}
|
|
34
|
+
export interface SubscriptionList {
|
|
31
35
|
id: string;
|
|
32
36
|
name: string;
|
|
33
37
|
created?: string | null;
|
|
34
38
|
updated?: string | null;
|
|
35
39
|
}
|
|
36
40
|
export interface ListListResponse {
|
|
37
|
-
items: Array<
|
|
38
|
-
paging:
|
|
41
|
+
items: Array<SubscriptionList>;
|
|
42
|
+
paging: Shared.Paging;
|
|
39
43
|
}
|
|
40
44
|
export interface ListUpdateParams {
|
|
41
45
|
name: string;
|
|
42
|
-
preferences?:
|
|
46
|
+
preferences?: Shared.RecipientPreferences | null;
|
|
43
47
|
}
|
|
44
48
|
export interface ListListParams {
|
|
45
49
|
/**
|
|
@@ -57,7 +61,7 @@ export interface ListListParams {
|
|
|
57
61
|
export interface ListRestoreParams {
|
|
58
62
|
}
|
|
59
63
|
export declare namespace Lists {
|
|
60
|
-
export { type
|
|
61
|
-
export { Subscriptions as Subscriptions, type
|
|
64
|
+
export { type PutSubscriptionsRecipient as PutSubscriptionsRecipient, type SubscriptionList as SubscriptionList, type ListListResponse as ListListResponse, type ListUpdateParams as ListUpdateParams, type ListListParams as ListListParams, type ListRestoreParams as ListRestoreParams, };
|
|
65
|
+
export { Subscriptions as Subscriptions, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionListParams as SubscriptionListParams, type SubscriptionAddParams as SubscriptionAddParams, type SubscriptionSubscribeParams as SubscriptionSubscribeParams, type SubscriptionSubscribeUserParams as SubscriptionSubscribeUserParams, type SubscriptionUnsubscribeUserParams as SubscriptionUnsubscribeUserParams, };
|
|
62
66
|
}
|
|
63
67
|
//# sourceMappingURL=lists.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lists.d.mts","sourceRoot":"","sources":["../../src/resources/lists/lists.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"lists.d.mts","sourceRoot":"","sources":["../../src/resources/lists/lists.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,gBAAgB;OACrB,EACL,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,+BAA+B,EAC/B,iCAAiC,EACjC,aAAa,EACd;OACM,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;IAEjG;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAIhF;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EA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AAK,CAAC;IAC7B,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as Shared from "../shared.js";
|
|
3
3
|
import * as SubscriptionsAPI from "./subscriptions.js";
|
|
4
|
-
import {
|
|
4
|
+
import { SubscriptionAddParams, SubscriptionListParams, SubscriptionListResponse, SubscriptionSubscribeParams, SubscriptionSubscribeUserParams, SubscriptionUnsubscribeUserParams, Subscriptions } from "./subscriptions.js";
|
|
5
5
|
import { APIPromise } from "../../core/api-promise.js";
|
|
6
6
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
7
|
export declare class Lists extends APIResource {
|
|
@@ -9,7 +9,7 @@ export declare class Lists extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Returns a list based on the list ID provided.
|
|
11
11
|
*/
|
|
12
|
-
retrieve(listID: string, options?: RequestOptions): APIPromise<
|
|
12
|
+
retrieve(listID: string, options?: RequestOptions): APIPromise<SubscriptionList>;
|
|
13
13
|
/**
|
|
14
14
|
* Create or replace an existing list with the supplied values.
|
|
15
15
|
*/
|
|
@@ -27,19 +27,23 @@ export declare class Lists extends APIResource {
|
|
|
27
27
|
*/
|
|
28
28
|
restore(listID: string, body: ListRestoreParams, options?: RequestOptions): APIPromise<void>;
|
|
29
29
|
}
|
|
30
|
-
export interface
|
|
30
|
+
export interface PutSubscriptionsRecipient {
|
|
31
|
+
recipientId: string;
|
|
32
|
+
preferences?: Shared.RecipientPreferences | null;
|
|
33
|
+
}
|
|
34
|
+
export interface SubscriptionList {
|
|
31
35
|
id: string;
|
|
32
36
|
name: string;
|
|
33
37
|
created?: string | null;
|
|
34
38
|
updated?: string | null;
|
|
35
39
|
}
|
|
36
40
|
export interface ListListResponse {
|
|
37
|
-
items: Array<
|
|
38
|
-
paging:
|
|
41
|
+
items: Array<SubscriptionList>;
|
|
42
|
+
paging: Shared.Paging;
|
|
39
43
|
}
|
|
40
44
|
export interface ListUpdateParams {
|
|
41
45
|
name: string;
|
|
42
|
-
preferences?:
|
|
46
|
+
preferences?: Shared.RecipientPreferences | null;
|
|
43
47
|
}
|
|
44
48
|
export interface ListListParams {
|
|
45
49
|
/**
|
|
@@ -57,7 +61,7 @@ export interface ListListParams {
|
|
|
57
61
|
export interface ListRestoreParams {
|
|
58
62
|
}
|
|
59
63
|
export declare namespace Lists {
|
|
60
|
-
export { type
|
|
61
|
-
export { Subscriptions as Subscriptions, type
|
|
64
|
+
export { type PutSubscriptionsRecipient as PutSubscriptionsRecipient, type SubscriptionList as SubscriptionList, type ListListResponse as ListListResponse, type ListUpdateParams as ListUpdateParams, type ListListParams as ListListParams, type ListRestoreParams as ListRestoreParams, };
|
|
65
|
+
export { Subscriptions as Subscriptions, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionListParams as SubscriptionListParams, type SubscriptionAddParams as SubscriptionAddParams, type SubscriptionSubscribeParams as SubscriptionSubscribeParams, type SubscriptionSubscribeUserParams as SubscriptionSubscribeUserParams, type SubscriptionUnsubscribeUserParams as SubscriptionUnsubscribeUserParams, };
|
|
62
66
|
}
|
|
63
67
|
//# sourceMappingURL=lists.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lists.d.ts","sourceRoot":"","sources":["../../src/resources/lists/lists.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"lists.d.ts","sourceRoot":"","sources":["../../src/resources/lists/lists.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,gBAAgB;OACrB,EACL,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,+BAA+B,EAC/B,iCAAiC,EACjC,aAAa,EACd;OACM,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;IAEjG;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAIhF;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ1F;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOlE;;OAEG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO7F;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,CAAC,EAAE,MAAM,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
1
|
-
{"version":3,"file":"lists.js","sourceRoot":"","sources":["../../src/resources/lists/lists.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,6EAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"lists.js","sourceRoot":"","sources":["../../src/resources/lists/lists.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,6EAAoD;AACpD,sDAQyB;AAEzB,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkDnG,CAAC;IAhDC;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,EAAE,EAAE;YAC9C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,EAAE,EAAE;YACjD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,MAAc,EAAE,IAAuB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,UAAU,EAAE;YACtD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAnDD,sBAmDC;AA+CD,KAAK,CAAC,aAAa,GAAG,6BAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lists.mjs","sourceRoot":"","sources":["../../src/resources/lists/lists.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,gBAAgB;OACrB,
|
|
1
|
+
{"version":3,"file":"lists.mjs","sourceRoot":"","sources":["../../src/resources/lists/lists.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,gBAAgB;OACrB,EAOL,aAAa,GACd;OAEM,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkDnG,CAAC;IAhDC;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,MAAM,EAAE,EAAE,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