increase 0.538.0 → 0.540.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 +27 -0
- package/bin/cli +5 -12
- package/client.d.mts +6 -12
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -12
- package/client.d.ts.map +1 -1
- package/client.js +6 -12
- package/client.js.map +1 -1
- package/client.mjs +6 -12
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/check-deposits.d.mts +4 -3
- package/resources/check-deposits.d.mts.map +1 -1
- package/resources/check-deposits.d.ts +4 -3
- package/resources/check-deposits.d.ts.map +1 -1
- package/resources/inbound-mail-items.d.mts +19 -7
- package/resources/inbound-mail-items.d.mts.map +1 -1
- package/resources/inbound-mail-items.d.ts +19 -7
- package/resources/inbound-mail-items.d.ts.map +1 -1
- package/resources/index.d.mts +2 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +6 -10
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -4
- package/resources/index.mjs.map +1 -1
- package/resources/lockbox-addresses.d.mts +184 -0
- package/resources/lockbox-addresses.d.mts.map +1 -0
- package/resources/lockbox-addresses.d.ts +184 -0
- package/resources/lockbox-addresses.d.ts.map +1 -0
- package/resources/lockbox-addresses.js +64 -0
- package/resources/lockbox-addresses.js.map +1 -0
- package/resources/lockbox-addresses.mjs +60 -0
- package/resources/lockbox-addresses.mjs.map +1 -0
- package/resources/lockbox-recipients.d.mts +202 -0
- package/resources/lockbox-recipients.d.mts.map +1 -0
- package/resources/lockbox-recipients.d.ts +202 -0
- package/resources/lockbox-recipients.d.ts.map +1 -0
- package/resources/lockbox-recipients.js +69 -0
- package/resources/lockbox-recipients.js.map +1 -0
- package/resources/lockbox-recipients.mjs +65 -0
- package/resources/lockbox-recipients.mjs.map +1 -0
- package/resources/simulations/inbound-mail-items.d.mts +9 -5
- package/resources/simulations/inbound-mail-items.d.mts.map +1 -1
- package/resources/simulations/inbound-mail-items.d.ts +9 -5
- package/resources/simulations/inbound-mail-items.d.ts.map +1 -1
- package/resources/simulations/inbound-mail-items.js +0 -1
- package/resources/simulations/inbound-mail-items.js.map +1 -1
- package/resources/simulations/inbound-mail-items.mjs +0 -1
- package/resources/simulations/inbound-mail-items.mjs.map +1 -1
- package/src/client.ts +34 -70
- package/src/resources/check-deposits.ts +4 -3
- package/src/resources/inbound-mail-items.ts +27 -7
- package/src/resources/index.ts +15 -30
- package/src/resources/lockbox-addresses.ts +235 -0
- package/src/resources/lockbox-recipients.ts +257 -0
- package/src/resources/simulations/inbound-mail-items.ts +12 -6
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/bookkeeping-accounts.d.mts +0 -164
- package/resources/bookkeeping-accounts.d.mts.map +0 -1
- package/resources/bookkeeping-accounts.d.ts +0 -164
- package/resources/bookkeeping-accounts.d.ts.map +0 -1
- package/resources/bookkeeping-accounts.js +0 -71
- package/resources/bookkeeping-accounts.js.map +0 -1
- package/resources/bookkeeping-accounts.mjs +0 -67
- package/resources/bookkeeping-accounts.mjs.map +0 -1
- package/resources/bookkeeping-entries.d.mts +0 -74
- package/resources/bookkeeping-entries.d.mts.map +0 -1
- package/resources/bookkeeping-entries.d.ts +0 -74
- package/resources/bookkeeping-entries.d.ts.map +0 -1
- package/resources/bookkeeping-entries.js +0 -39
- package/resources/bookkeeping-entries.js.map +0 -1
- package/resources/bookkeeping-entries.mjs +0 -35
- package/resources/bookkeeping-entries.mjs.map +0 -1
- package/resources/bookkeeping-entry-sets.d.mts +0 -156
- package/resources/bookkeeping-entry-sets.d.mts.map +0 -1
- package/resources/bookkeeping-entry-sets.d.ts +0 -156
- package/resources/bookkeeping-entry-sets.d.ts.map +0 -1
- package/resources/bookkeeping-entry-sets.js +0 -67
- package/resources/bookkeeping-entry-sets.js.map +0 -1
- package/resources/bookkeeping-entry-sets.mjs +0 -63
- package/resources/bookkeeping-entry-sets.mjs.map +0 -1
- package/resources/lockboxes.d.mts +0 -217
- package/resources/lockboxes.d.mts.map +0 -1
- package/resources/lockboxes.d.ts +0 -217
- package/resources/lockboxes.d.ts.map +0 -1
- package/resources/lockboxes.js +0 -64
- package/resources/lockboxes.js.map +0 -1
- package/resources/lockboxes.mjs +0 -60
- package/resources/lockboxes.mjs.map +0 -1
- package/src/resources/bookkeeping-accounts.ts +0 -220
- package/src/resources/bookkeeping-entries.ts +0 -98
- package/src/resources/bookkeeping-entry-sets.ts +0 -198
- package/src/resources/lockboxes.ts +0 -273
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { Page, type PageParams, PagePromise } from "../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class LockboxRecipients extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a Lockbox Recipient
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const lockboxRecipient =
|
|
12
|
+
* await client.lockboxRecipients.create({
|
|
13
|
+
* account_id: 'account_in71c4amph0vgo2qllky',
|
|
14
|
+
* lockbox_address_id:
|
|
15
|
+
* 'lockbox_address_lw6sbzl9ol5dfd8hdml6',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(body: LockboxRecipientCreateParams, options?: RequestOptions): APIPromise<LockboxRecipient>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve a Lockbox Recipient
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const lockboxRecipient =
|
|
26
|
+
* await client.lockboxRecipients.retrieve(
|
|
27
|
+
* 'lockbox_3xt21ok13q19advds4t5',
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
retrieve(lockboxRecipientID: string, options?: RequestOptions): APIPromise<LockboxRecipient>;
|
|
32
|
+
/**
|
|
33
|
+
* Update a Lockbox Recipient
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const lockboxRecipient =
|
|
38
|
+
* await client.lockboxRecipients.update(
|
|
39
|
+
* 'lockbox_3xt21ok13q19advds4t5',
|
|
40
|
+
* );
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
update(lockboxRecipientID: string, body: LockboxRecipientUpdateParams, options?: RequestOptions): APIPromise<LockboxRecipient>;
|
|
44
|
+
/**
|
|
45
|
+
* List Lockbox Recipients
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* // Automatically fetches more pages as needed.
|
|
50
|
+
* for await (const lockboxRecipient of client.lockboxRecipients.list()) {
|
|
51
|
+
* // ...
|
|
52
|
+
* }
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
list(query?: LockboxRecipientListParams | null | undefined, options?: RequestOptions): PagePromise<LockboxRecipientsPage, LockboxRecipient>;
|
|
56
|
+
}
|
|
57
|
+
export type LockboxRecipientsPage = Page<LockboxRecipient>;
|
|
58
|
+
/**
|
|
59
|
+
* Lockbox Recipients represent an inbox at a Lockbox Address. Checks received for
|
|
60
|
+
* a Lockbox Recipient are deposited into its associated Account.
|
|
61
|
+
*/
|
|
62
|
+
export interface LockboxRecipient {
|
|
63
|
+
/**
|
|
64
|
+
* The Lockbox Recipient identifier.
|
|
65
|
+
*/
|
|
66
|
+
id: string;
|
|
67
|
+
/**
|
|
68
|
+
* The identifier for the Account that checks sent to this Lockbox Recipient will
|
|
69
|
+
* be deposited into.
|
|
70
|
+
*/
|
|
71
|
+
account_id: string;
|
|
72
|
+
/**
|
|
73
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
|
|
74
|
+
* Recipient was created.
|
|
75
|
+
*/
|
|
76
|
+
created_at: string;
|
|
77
|
+
/**
|
|
78
|
+
* The description of the Lockbox Recipient.
|
|
79
|
+
*/
|
|
80
|
+
description: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* The idempotency key you chose for this object. This value is unique across
|
|
83
|
+
* Increase and is used to ensure that a request is only processed once. Learn more
|
|
84
|
+
* about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
85
|
+
*/
|
|
86
|
+
idempotency_key: string | null;
|
|
87
|
+
/**
|
|
88
|
+
* The identifier for the Lockbox Address where this Lockbox Recipient may receive
|
|
89
|
+
* physical mail.
|
|
90
|
+
*/
|
|
91
|
+
lockbox_address_id: string;
|
|
92
|
+
/**
|
|
93
|
+
* The mail stop code uniquely identifying this Lockbox Recipient at its Lockbox
|
|
94
|
+
* Address. It should be included in the mailing address intended for this Lockbox
|
|
95
|
+
* Recipient.
|
|
96
|
+
*/
|
|
97
|
+
mail_stop_code: string;
|
|
98
|
+
/**
|
|
99
|
+
* The name of the Lockbox Recipient.
|
|
100
|
+
*/
|
|
101
|
+
recipient_name: string | null;
|
|
102
|
+
/**
|
|
103
|
+
* The status of the Lockbox Recipient.
|
|
104
|
+
*
|
|
105
|
+
* - `active` - This Lockbox Recipient is active.
|
|
106
|
+
* - `disabled` - This Lockbox Recipient is disabled. Checks mailed to this Lockbox
|
|
107
|
+
* Recipient will be rejected.
|
|
108
|
+
* - `canceled` - This Lockbox Recipient is canceled and cannot be modified. Checks
|
|
109
|
+
* mailed to this Lockbox Recipient will be rejected.
|
|
110
|
+
*/
|
|
111
|
+
status: 'active' | 'disabled' | 'canceled' | null;
|
|
112
|
+
/**
|
|
113
|
+
* A constant representing the object's type. For this resource it will always be
|
|
114
|
+
* `lockbox_recipient`.
|
|
115
|
+
*/
|
|
116
|
+
type: 'lockbox_recipient';
|
|
117
|
+
}
|
|
118
|
+
export interface LockboxRecipientCreateParams {
|
|
119
|
+
/**
|
|
120
|
+
* The Account that checks sent to this Lockbox Recipient should be deposited into.
|
|
121
|
+
*/
|
|
122
|
+
account_id: string;
|
|
123
|
+
/**
|
|
124
|
+
* The Lockbox Address where this Lockbox Recipient may receive mail.
|
|
125
|
+
*/
|
|
126
|
+
lockbox_address_id: string;
|
|
127
|
+
/**
|
|
128
|
+
* The description you choose for the Lockbox Recipient.
|
|
129
|
+
*/
|
|
130
|
+
description?: string;
|
|
131
|
+
/**
|
|
132
|
+
* The name of the Lockbox Recipient
|
|
133
|
+
*/
|
|
134
|
+
recipient_name?: string;
|
|
135
|
+
[k: string]: unknown;
|
|
136
|
+
}
|
|
137
|
+
export interface LockboxRecipientUpdateParams {
|
|
138
|
+
/**
|
|
139
|
+
* The description you choose for the Lockbox Recipient.
|
|
140
|
+
*/
|
|
141
|
+
description?: string;
|
|
142
|
+
/**
|
|
143
|
+
* The name of the Lockbox Recipient.
|
|
144
|
+
*/
|
|
145
|
+
recipient_name?: string;
|
|
146
|
+
/**
|
|
147
|
+
* The status of the Lockbox Recipient.
|
|
148
|
+
*
|
|
149
|
+
* - `active` - This Lockbox Recipient is active.
|
|
150
|
+
* - `disabled` - This Lockbox Recipient is disabled. Checks mailed to this Lockbox
|
|
151
|
+
* Recipient will be rejected.
|
|
152
|
+
* - `canceled` - This Lockbox Recipient is canceled and cannot be modified. Checks
|
|
153
|
+
* mailed to this Lockbox Recipient will be rejected.
|
|
154
|
+
*/
|
|
155
|
+
status?: 'active' | 'disabled' | 'canceled';
|
|
156
|
+
}
|
|
157
|
+
export interface LockboxRecipientListParams extends PageParams {
|
|
158
|
+
/**
|
|
159
|
+
* Filter Lockbox Recipients to those associated with the provided Account.
|
|
160
|
+
*/
|
|
161
|
+
account_id?: string;
|
|
162
|
+
created_at?: LockboxRecipientListParams.CreatedAt;
|
|
163
|
+
/**
|
|
164
|
+
* Filter records to the one with the specified `idempotency_key` you chose for
|
|
165
|
+
* that object. This value is unique across Increase and is used to ensure that a
|
|
166
|
+
* request is only processed once. Learn more about
|
|
167
|
+
* [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
168
|
+
*/
|
|
169
|
+
idempotency_key?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Filter Lockbox Recipients to those associated with the provided Lockbox Address.
|
|
172
|
+
*/
|
|
173
|
+
lockbox_address_id?: string;
|
|
174
|
+
}
|
|
175
|
+
export declare namespace LockboxRecipientListParams {
|
|
176
|
+
interface CreatedAt {
|
|
177
|
+
/**
|
|
178
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
179
|
+
* timestamp.
|
|
180
|
+
*/
|
|
181
|
+
after?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
184
|
+
* timestamp.
|
|
185
|
+
*/
|
|
186
|
+
before?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Return results on or after this
|
|
189
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
190
|
+
*/
|
|
191
|
+
on_or_after?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Return results on or before this
|
|
194
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
195
|
+
*/
|
|
196
|
+
on_or_before?: string;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
export declare namespace LockboxRecipients {
|
|
200
|
+
export { type LockboxRecipient as LockboxRecipient, type LockboxRecipientsPage as LockboxRecipientsPage, type LockboxRecipientCreateParams as LockboxRecipientCreateParams, type LockboxRecipientUpdateParams as LockboxRecipientUpdateParams, type LockboxRecipientListParams as LockboxRecipientListParams, };
|
|
201
|
+
}
|
|
202
|
+
//# sourceMappingURL=lockbox-recipients.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lockbox-recipients.d.mts","sourceRoot":"","sources":["../src/resources/lockbox-recipients.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EA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AK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { Page, type PageParams, PagePromise } from "../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class LockboxRecipients extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a Lockbox Recipient
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const lockboxRecipient =
|
|
12
|
+
* await client.lockboxRecipients.create({
|
|
13
|
+
* account_id: 'account_in71c4amph0vgo2qllky',
|
|
14
|
+
* lockbox_address_id:
|
|
15
|
+
* 'lockbox_address_lw6sbzl9ol5dfd8hdml6',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(body: LockboxRecipientCreateParams, options?: RequestOptions): APIPromise<LockboxRecipient>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve a Lockbox Recipient
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const lockboxRecipient =
|
|
26
|
+
* await client.lockboxRecipients.retrieve(
|
|
27
|
+
* 'lockbox_3xt21ok13q19advds4t5',
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
retrieve(lockboxRecipientID: string, options?: RequestOptions): APIPromise<LockboxRecipient>;
|
|
32
|
+
/**
|
|
33
|
+
* Update a Lockbox Recipient
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const lockboxRecipient =
|
|
38
|
+
* await client.lockboxRecipients.update(
|
|
39
|
+
* 'lockbox_3xt21ok13q19advds4t5',
|
|
40
|
+
* );
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
update(lockboxRecipientID: string, body: LockboxRecipientUpdateParams, options?: RequestOptions): APIPromise<LockboxRecipient>;
|
|
44
|
+
/**
|
|
45
|
+
* List Lockbox Recipients
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* // Automatically fetches more pages as needed.
|
|
50
|
+
* for await (const lockboxRecipient of client.lockboxRecipients.list()) {
|
|
51
|
+
* // ...
|
|
52
|
+
* }
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
list(query?: LockboxRecipientListParams | null | undefined, options?: RequestOptions): PagePromise<LockboxRecipientsPage, LockboxRecipient>;
|
|
56
|
+
}
|
|
57
|
+
export type LockboxRecipientsPage = Page<LockboxRecipient>;
|
|
58
|
+
/**
|
|
59
|
+
* Lockbox Recipients represent an inbox at a Lockbox Address. Checks received for
|
|
60
|
+
* a Lockbox Recipient are deposited into its associated Account.
|
|
61
|
+
*/
|
|
62
|
+
export interface LockboxRecipient {
|
|
63
|
+
/**
|
|
64
|
+
* The Lockbox Recipient identifier.
|
|
65
|
+
*/
|
|
66
|
+
id: string;
|
|
67
|
+
/**
|
|
68
|
+
* The identifier for the Account that checks sent to this Lockbox Recipient will
|
|
69
|
+
* be deposited into.
|
|
70
|
+
*/
|
|
71
|
+
account_id: string;
|
|
72
|
+
/**
|
|
73
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
|
|
74
|
+
* Recipient was created.
|
|
75
|
+
*/
|
|
76
|
+
created_at: string;
|
|
77
|
+
/**
|
|
78
|
+
* The description of the Lockbox Recipient.
|
|
79
|
+
*/
|
|
80
|
+
description: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* The idempotency key you chose for this object. This value is unique across
|
|
83
|
+
* Increase and is used to ensure that a request is only processed once. Learn more
|
|
84
|
+
* about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
85
|
+
*/
|
|
86
|
+
idempotency_key: string | null;
|
|
87
|
+
/**
|
|
88
|
+
* The identifier for the Lockbox Address where this Lockbox Recipient may receive
|
|
89
|
+
* physical mail.
|
|
90
|
+
*/
|
|
91
|
+
lockbox_address_id: string;
|
|
92
|
+
/**
|
|
93
|
+
* The mail stop code uniquely identifying this Lockbox Recipient at its Lockbox
|
|
94
|
+
* Address. It should be included in the mailing address intended for this Lockbox
|
|
95
|
+
* Recipient.
|
|
96
|
+
*/
|
|
97
|
+
mail_stop_code: string;
|
|
98
|
+
/**
|
|
99
|
+
* The name of the Lockbox Recipient.
|
|
100
|
+
*/
|
|
101
|
+
recipient_name: string | null;
|
|
102
|
+
/**
|
|
103
|
+
* The status of the Lockbox Recipient.
|
|
104
|
+
*
|
|
105
|
+
* - `active` - This Lockbox Recipient is active.
|
|
106
|
+
* - `disabled` - This Lockbox Recipient is disabled. Checks mailed to this Lockbox
|
|
107
|
+
* Recipient will be rejected.
|
|
108
|
+
* - `canceled` - This Lockbox Recipient is canceled and cannot be modified. Checks
|
|
109
|
+
* mailed to this Lockbox Recipient will be rejected.
|
|
110
|
+
*/
|
|
111
|
+
status: 'active' | 'disabled' | 'canceled' | null;
|
|
112
|
+
/**
|
|
113
|
+
* A constant representing the object's type. For this resource it will always be
|
|
114
|
+
* `lockbox_recipient`.
|
|
115
|
+
*/
|
|
116
|
+
type: 'lockbox_recipient';
|
|
117
|
+
}
|
|
118
|
+
export interface LockboxRecipientCreateParams {
|
|
119
|
+
/**
|
|
120
|
+
* The Account that checks sent to this Lockbox Recipient should be deposited into.
|
|
121
|
+
*/
|
|
122
|
+
account_id: string;
|
|
123
|
+
/**
|
|
124
|
+
* The Lockbox Address where this Lockbox Recipient may receive mail.
|
|
125
|
+
*/
|
|
126
|
+
lockbox_address_id: string;
|
|
127
|
+
/**
|
|
128
|
+
* The description you choose for the Lockbox Recipient.
|
|
129
|
+
*/
|
|
130
|
+
description?: string;
|
|
131
|
+
/**
|
|
132
|
+
* The name of the Lockbox Recipient
|
|
133
|
+
*/
|
|
134
|
+
recipient_name?: string;
|
|
135
|
+
[k: string]: unknown;
|
|
136
|
+
}
|
|
137
|
+
export interface LockboxRecipientUpdateParams {
|
|
138
|
+
/**
|
|
139
|
+
* The description you choose for the Lockbox Recipient.
|
|
140
|
+
*/
|
|
141
|
+
description?: string;
|
|
142
|
+
/**
|
|
143
|
+
* The name of the Lockbox Recipient.
|
|
144
|
+
*/
|
|
145
|
+
recipient_name?: string;
|
|
146
|
+
/**
|
|
147
|
+
* The status of the Lockbox Recipient.
|
|
148
|
+
*
|
|
149
|
+
* - `active` - This Lockbox Recipient is active.
|
|
150
|
+
* - `disabled` - This Lockbox Recipient is disabled. Checks mailed to this Lockbox
|
|
151
|
+
* Recipient will be rejected.
|
|
152
|
+
* - `canceled` - This Lockbox Recipient is canceled and cannot be modified. Checks
|
|
153
|
+
* mailed to this Lockbox Recipient will be rejected.
|
|
154
|
+
*/
|
|
155
|
+
status?: 'active' | 'disabled' | 'canceled';
|
|
156
|
+
}
|
|
157
|
+
export interface LockboxRecipientListParams extends PageParams {
|
|
158
|
+
/**
|
|
159
|
+
* Filter Lockbox Recipients to those associated with the provided Account.
|
|
160
|
+
*/
|
|
161
|
+
account_id?: string;
|
|
162
|
+
created_at?: LockboxRecipientListParams.CreatedAt;
|
|
163
|
+
/**
|
|
164
|
+
* Filter records to the one with the specified `idempotency_key` you chose for
|
|
165
|
+
* that object. This value is unique across Increase and is used to ensure that a
|
|
166
|
+
* request is only processed once. Learn more about
|
|
167
|
+
* [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
168
|
+
*/
|
|
169
|
+
idempotency_key?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Filter Lockbox Recipients to those associated with the provided Lockbox Address.
|
|
172
|
+
*/
|
|
173
|
+
lockbox_address_id?: string;
|
|
174
|
+
}
|
|
175
|
+
export declare namespace LockboxRecipientListParams {
|
|
176
|
+
interface CreatedAt {
|
|
177
|
+
/**
|
|
178
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
179
|
+
* timestamp.
|
|
180
|
+
*/
|
|
181
|
+
after?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
184
|
+
* timestamp.
|
|
185
|
+
*/
|
|
186
|
+
before?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Return results on or after this
|
|
189
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
190
|
+
*/
|
|
191
|
+
on_or_after?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Return results on or before this
|
|
194
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
195
|
+
*/
|
|
196
|
+
on_or_before?: string;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
export declare namespace LockboxRecipients {
|
|
200
|
+
export { type LockboxRecipient as LockboxRecipient, type LockboxRecipientsPage as LockboxRecipientsPage, type LockboxRecipientCreateParams as LockboxRecipientCreateParams, type LockboxRecipientUpdateParams as LockboxRecipientUpdateParams, type LockboxRecipientListParams as LockboxRecipientListParams, };
|
|
201
|
+
}
|
|
202
|
+
//# sourceMappingURL=lockbox-recipients.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lockbox-recipients.d.ts","sourceRoot":"","sources":["../src/resources/lockbox-recipients.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,WAAW,EAAE;OACtC,EAAE,cAAc,EAAE;AAGzB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,4BAA4B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAIlG;;;;;;;;;;OAUG;IACH,QAAQ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Ac,CAAC,EAAE,MAAM,CAAC;IAExB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;CAC7C;AAED,MAAM,WAAW,0BAA2B,SAAQ,UAAU;IAC5D;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,0BAA0B,CAAC,SAAS,CAAC;IAElD;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,SAAS;QACxB;;;WAGG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;WAGG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;;WAGG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,iBAAiB,CAAC;IACzC,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,69 @@
|
|
|
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.LockboxRecipients = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
class LockboxRecipients extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a Lockbox Recipient
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const lockboxRecipient =
|
|
15
|
+
* await client.lockboxRecipients.create({
|
|
16
|
+
* account_id: 'account_in71c4amph0vgo2qllky',
|
|
17
|
+
* lockbox_address_id:
|
|
18
|
+
* 'lockbox_address_lw6sbzl9ol5dfd8hdml6',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(body, options) {
|
|
23
|
+
return this._client.post('/lockbox_recipients', { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Retrieve a Lockbox Recipient
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const lockboxRecipient =
|
|
31
|
+
* await client.lockboxRecipients.retrieve(
|
|
32
|
+
* 'lockbox_3xt21ok13q19advds4t5',
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
retrieve(lockboxRecipientID, options) {
|
|
37
|
+
return this._client.get((0, path_1.path) `/lockbox_recipients/${lockboxRecipientID}`, options);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Update a Lockbox Recipient
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const lockboxRecipient =
|
|
45
|
+
* await client.lockboxRecipients.update(
|
|
46
|
+
* 'lockbox_3xt21ok13q19advds4t5',
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
update(lockboxRecipientID, body, options) {
|
|
51
|
+
return this._client.patch((0, path_1.path) `/lockbox_recipients/${lockboxRecipientID}`, { body, ...options });
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* List Lockbox Recipients
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* // Automatically fetches more pages as needed.
|
|
59
|
+
* for await (const lockboxRecipient of client.lockboxRecipients.list()) {
|
|
60
|
+
* // ...
|
|
61
|
+
* }
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
list(query = {}, options) {
|
|
65
|
+
return this._client.getAPIList('/lockbox_recipients', (pagination_1.Page), { query, ...options });
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.LockboxRecipients = LockboxRecipients;
|
|
69
|
+
//# sourceMappingURL=lockbox-recipients.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lockbox-recipients.js","sourceRoot":"","sources":["../src/resources/lockbox-recipients.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAwE;AAExE,oDAA8C;AAE9C,MAAa,iBAAkB,SAAQ,sBAAW;IAChD;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAkC,EAAE,OAAwB;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,kBAA0B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,kBAAkB,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,kBAA0B,EAC1B,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,uBAAuB,kBAAkB,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAA,iBAAsB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AArED,8CAqEC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { Page } from "../core/pagination.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
export class LockboxRecipients extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a Lockbox Recipient
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const lockboxRecipient =
|
|
12
|
+
* await client.lockboxRecipients.create({
|
|
13
|
+
* account_id: 'account_in71c4amph0vgo2qllky',
|
|
14
|
+
* lockbox_address_id:
|
|
15
|
+
* 'lockbox_address_lw6sbzl9ol5dfd8hdml6',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(body, options) {
|
|
20
|
+
return this._client.post('/lockbox_recipients', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve a Lockbox Recipient
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const lockboxRecipient =
|
|
28
|
+
* await client.lockboxRecipients.retrieve(
|
|
29
|
+
* 'lockbox_3xt21ok13q19advds4t5',
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
retrieve(lockboxRecipientID, options) {
|
|
34
|
+
return this._client.get(path `/lockbox_recipients/${lockboxRecipientID}`, options);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Update a Lockbox Recipient
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const lockboxRecipient =
|
|
42
|
+
* await client.lockboxRecipients.update(
|
|
43
|
+
* 'lockbox_3xt21ok13q19advds4t5',
|
|
44
|
+
* );
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
update(lockboxRecipientID, body, options) {
|
|
48
|
+
return this._client.patch(path `/lockbox_recipients/${lockboxRecipientID}`, { body, ...options });
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* List Lockbox Recipients
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* // Automatically fetches more pages as needed.
|
|
56
|
+
* for await (const lockboxRecipient of client.lockboxRecipients.list()) {
|
|
57
|
+
* // ...
|
|
58
|
+
* }
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
list(query = {}, options) {
|
|
62
|
+
return this._client.getAPIList('/lockbox_recipients', (Page), { query, ...options });
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=lockbox-recipients.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lockbox-recipients.mjs","sourceRoot":"","sources":["../src/resources/lockbox-recipients.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,IAAI,EAAgC;OAEtC,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAkC,EAAE,OAAwB;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,kBAA0B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,kBAAkB,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,kBAA0B,EAC1B,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,uBAAuB,kBAAkB,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAA,IAAsB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF"}
|
|
@@ -12,7 +12,6 @@ export declare class InboundMailItems extends APIResource {
|
|
|
12
12
|
* const inboundMailItem =
|
|
13
13
|
* await client.simulations.inboundMailItems.create({
|
|
14
14
|
* amount: 1000,
|
|
15
|
-
* lockbox_id: 'lockbox_3xt21ok13q19advds4t5',
|
|
16
15
|
* });
|
|
17
16
|
* ```
|
|
18
17
|
*/
|
|
@@ -23,15 +22,20 @@ export interface InboundMailItemCreateParams {
|
|
|
23
22
|
* The amount of the check to be simulated, in cents.
|
|
24
23
|
*/
|
|
25
24
|
amount: number;
|
|
26
|
-
/**
|
|
27
|
-
* The identifier of the Lockbox to simulate inbound mail to.
|
|
28
|
-
*/
|
|
29
|
-
lockbox_id: string;
|
|
30
25
|
/**
|
|
31
26
|
* The file containing the PDF contents. If not present, a default check image file
|
|
32
27
|
* will be used.
|
|
33
28
|
*/
|
|
34
29
|
contents_file_id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The identifier of the Lockbox Address to simulate inbound mail to.
|
|
32
|
+
*/
|
|
33
|
+
lockbox_address_id?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The identifier of the Lockbox Recipient to simulate inbound mail to.
|
|
36
|
+
*/
|
|
37
|
+
lockbox_recipient_id?: string;
|
|
38
|
+
[k: string]: unknown;
|
|
35
39
|
}
|
|
36
40
|
export declare namespace InboundMailItems {
|
|
37
41
|
export { type InboundMailItemCreateParams as InboundMailItemCreateParams };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-mail-items.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/inbound-mail-items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"inbound-mail-items.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/inbound-mail-items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC,eAAe,CAAC;CAGnD;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CAC5E"}
|
|
@@ -12,7 +12,6 @@ export declare class InboundMailItems extends APIResource {
|
|
|
12
12
|
* const inboundMailItem =
|
|
13
13
|
* await client.simulations.inboundMailItems.create({
|
|
14
14
|
* amount: 1000,
|
|
15
|
-
* lockbox_id: 'lockbox_3xt21ok13q19advds4t5',
|
|
16
15
|
* });
|
|
17
16
|
* ```
|
|
18
17
|
*/
|
|
@@ -23,15 +22,20 @@ export interface InboundMailItemCreateParams {
|
|
|
23
22
|
* The amount of the check to be simulated, in cents.
|
|
24
23
|
*/
|
|
25
24
|
amount: number;
|
|
26
|
-
/**
|
|
27
|
-
* The identifier of the Lockbox to simulate inbound mail to.
|
|
28
|
-
*/
|
|
29
|
-
lockbox_id: string;
|
|
30
25
|
/**
|
|
31
26
|
* The file containing the PDF contents. If not present, a default check image file
|
|
32
27
|
* will be used.
|
|
33
28
|
*/
|
|
34
29
|
contents_file_id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The identifier of the Lockbox Address to simulate inbound mail to.
|
|
32
|
+
*/
|
|
33
|
+
lockbox_address_id?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The identifier of the Lockbox Recipient to simulate inbound mail to.
|
|
36
|
+
*/
|
|
37
|
+
lockbox_recipient_id?: string;
|
|
38
|
+
[k: string]: unknown;
|
|
35
39
|
}
|
|
36
40
|
export declare namespace InboundMailItems {
|
|
37
41
|
export { type InboundMailItemCreateParams as InboundMailItemCreateParams };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-mail-items.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/inbound-mail-items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"inbound-mail-items.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/inbound-mail-items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC,eAAe,CAAC;CAGnD;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CAC5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-mail-items.js","sourceRoot":"","sources":["../../src/resources/simulations/inbound-mail-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"inbound-mail-items.js","sourceRoot":"","sources":["../../src/resources/simulations/inbound-mail-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AAnBD,4CAmBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-mail-items.mjs","sourceRoot":"","sources":["../../src/resources/simulations/inbound-mail-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"inbound-mail-items.mjs","sourceRoot":"","sources":["../../src/resources/simulations/inbound-mail-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF"}
|