postgrid-node 0.3.0 → 0.4.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.
- package/CHANGELOG.md +21 -0
- package/README.md +31 -0
- package/client.d.mts +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js +8 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +60 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +60 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +107 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +101 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- 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/print-mail/bank-accounts.d.mts +9 -14
- package/resources/print-mail/bank-accounts.d.mts.map +1 -1
- package/resources/print-mail/bank-accounts.d.ts +9 -14
- package/resources/print-mail/bank-accounts.d.ts.map +1 -1
- package/resources/print-mail/bank-accounts.js +9 -3
- package/resources/print-mail/bank-accounts.js.map +1 -1
- package/resources/print-mail/bank-accounts.mjs +9 -3
- package/resources/print-mail/bank-accounts.mjs.map +1 -1
- package/resources/print-mail/boxes.d.mts +14 -566
- package/resources/print-mail/boxes.d.mts.map +1 -1
- package/resources/print-mail/boxes.d.ts +14 -566
- package/resources/print-mail/boxes.d.ts.map +1 -1
- package/resources/print-mail/boxes.js +6 -2
- package/resources/print-mail/boxes.js.map +1 -1
- package/resources/print-mail/boxes.mjs +6 -2
- package/resources/print-mail/boxes.mjs.map +1 -1
- package/resources/print-mail/campaigns.d.mts +9 -16
- package/resources/print-mail/campaigns.d.mts.map +1 -1
- package/resources/print-mail/campaigns.d.ts +9 -16
- package/resources/print-mail/campaigns.d.ts.map +1 -1
- package/resources/print-mail/campaigns.js +6 -2
- package/resources/print-mail/campaigns.js.map +1 -1
- package/resources/print-mail/campaigns.mjs +6 -2
- package/resources/print-mail/campaigns.mjs.map +1 -1
- package/resources/print-mail/cheques.d.mts +13 -426
- package/resources/print-mail/cheques.d.mts.map +1 -1
- package/resources/print-mail/cheques.d.ts +13 -426
- package/resources/print-mail/cheques.d.ts.map +1 -1
- package/resources/print-mail/cheques.js +6 -2
- package/resources/print-mail/cheques.js.map +1 -1
- package/resources/print-mail/cheques.mjs +6 -2
- package/resources/print-mail/cheques.mjs.map +1 -1
- package/resources/print-mail/contacts.d.mts +11 -152
- package/resources/print-mail/contacts.d.mts.map +1 -1
- package/resources/print-mail/contacts.d.ts +11 -152
- package/resources/print-mail/contacts.d.ts.map +1 -1
- package/resources/print-mail/contacts.js +6 -2
- package/resources/print-mail/contacts.js.map +1 -1
- package/resources/print-mail/contacts.mjs +6 -2
- package/resources/print-mail/contacts.mjs.map +1 -1
- package/resources/print-mail/index.d.mts +14 -14
- package/resources/print-mail/index.d.mts.map +1 -1
- package/resources/print-mail/index.d.ts +14 -14
- package/resources/print-mail/index.d.ts.map +1 -1
- package/resources/print-mail/index.js.map +1 -1
- package/resources/print-mail/index.mjs.map +1 -1
- package/resources/print-mail/letters.d.mts +14 -565
- package/resources/print-mail/letters.d.mts.map +1 -1
- package/resources/print-mail/letters.d.ts +14 -565
- package/resources/print-mail/letters.d.ts.map +1 -1
- package/resources/print-mail/letters.js +6 -2
- package/resources/print-mail/letters.js.map +1 -1
- package/resources/print-mail/letters.mjs +6 -2
- package/resources/print-mail/letters.mjs.map +1 -1
- package/resources/print-mail/mailing-list-imports.d.mts +9 -17
- package/resources/print-mail/mailing-list-imports.d.mts.map +1 -1
- package/resources/print-mail/mailing-list-imports.d.ts +9 -17
- package/resources/print-mail/mailing-list-imports.d.ts.map +1 -1
- package/resources/print-mail/mailing-list-imports.js +6 -3
- package/resources/print-mail/mailing-list-imports.js.map +1 -1
- package/resources/print-mail/mailing-list-imports.mjs +6 -3
- package/resources/print-mail/mailing-list-imports.mjs.map +1 -1
- package/resources/print-mail/mailing-lists.d.mts +9 -17
- package/resources/print-mail/mailing-lists.d.mts.map +1 -1
- package/resources/print-mail/mailing-lists.d.ts +9 -17
- package/resources/print-mail/mailing-lists.d.ts.map +1 -1
- package/resources/print-mail/mailing-lists.js +9 -3
- package/resources/print-mail/mailing-lists.js.map +1 -1
- package/resources/print-mail/mailing-lists.mjs +9 -3
- package/resources/print-mail/mailing-lists.mjs.map +1 -1
- package/resources/print-mail/order-profiles/cheques.d.mts +80 -90
- package/resources/print-mail/order-profiles/cheques.d.mts.map +1 -1
- package/resources/print-mail/order-profiles/cheques.d.ts +80 -90
- package/resources/print-mail/order-profiles/cheques.d.ts.map +1 -1
- package/resources/print-mail/order-profiles/cheques.js +9 -3
- package/resources/print-mail/order-profiles/cheques.js.map +1 -1
- package/resources/print-mail/order-profiles/cheques.mjs +9 -3
- package/resources/print-mail/order-profiles/cheques.mjs.map +1 -1
- package/resources/print-mail/order-profiles/index.d.mts +4 -4
- package/resources/print-mail/order-profiles/index.d.mts.map +1 -1
- package/resources/print-mail/order-profiles/index.d.ts +4 -4
- package/resources/print-mail/order-profiles/index.d.ts.map +1 -1
- package/resources/print-mail/order-profiles/index.js.map +1 -1
- package/resources/print-mail/order-profiles/index.mjs.map +1 -1
- package/resources/print-mail/order-profiles/letters.d.mts +9 -17
- package/resources/print-mail/order-profiles/letters.d.mts.map +1 -1
- package/resources/print-mail/order-profiles/letters.d.ts +9 -17
- package/resources/print-mail/order-profiles/letters.d.ts.map +1 -1
- package/resources/print-mail/order-profiles/letters.js +9 -3
- package/resources/print-mail/order-profiles/letters.js.map +1 -1
- package/resources/print-mail/order-profiles/letters.mjs +9 -3
- package/resources/print-mail/order-profiles/letters.mjs.map +1 -1
- package/resources/print-mail/order-profiles/order-profiles.d.mts +8 -8
- package/resources/print-mail/order-profiles/order-profiles.d.mts.map +1 -1
- package/resources/print-mail/order-profiles/order-profiles.d.ts +8 -8
- package/resources/print-mail/order-profiles/order-profiles.d.ts.map +1 -1
- package/resources/print-mail/order-profiles/order-profiles.js.map +1 -1
- package/resources/print-mail/order-profiles/order-profiles.mjs.map +1 -1
- package/resources/print-mail/order-profiles/postcards.d.mts +9 -17
- package/resources/print-mail/order-profiles/postcards.d.mts.map +1 -1
- package/resources/print-mail/order-profiles/postcards.d.ts +9 -17
- package/resources/print-mail/order-profiles/postcards.d.ts.map +1 -1
- package/resources/print-mail/order-profiles/postcards.js +9 -3
- package/resources/print-mail/order-profiles/postcards.js.map +1 -1
- package/resources/print-mail/order-profiles/postcards.mjs +9 -3
- package/resources/print-mail/order-profiles/postcards.mjs.map +1 -1
- package/resources/print-mail/order-profiles/self-mailers.d.mts +9 -17
- package/resources/print-mail/order-profiles/self-mailers.d.mts.map +1 -1
- package/resources/print-mail/order-profiles/self-mailers.d.ts +9 -17
- package/resources/print-mail/order-profiles/self-mailers.d.ts.map +1 -1
- package/resources/print-mail/order-profiles/self-mailers.js +6 -3
- package/resources/print-mail/order-profiles/self-mailers.js.map +1 -1
- package/resources/print-mail/order-profiles/self-mailers.mjs +6 -3
- package/resources/print-mail/order-profiles/self-mailers.mjs.map +1 -1
- package/resources/print-mail/postcards.d.mts +16 -841
- package/resources/print-mail/postcards.d.mts.map +1 -1
- package/resources/print-mail/postcards.d.ts +16 -841
- package/resources/print-mail/postcards.d.ts.map +1 -1
- package/resources/print-mail/postcards.js +6 -2
- package/resources/print-mail/postcards.js.map +1 -1
- package/resources/print-mail/postcards.mjs +6 -2
- package/resources/print-mail/postcards.mjs.map +1 -1
- package/resources/print-mail/print-mail.d.mts +163 -26
- package/resources/print-mail/print-mail.d.mts.map +1 -1
- package/resources/print-mail/print-mail.d.ts +163 -26
- package/resources/print-mail/print-mail.d.ts.map +1 -1
- package/resources/print-mail/print-mail.js.map +1 -1
- package/resources/print-mail/print-mail.mjs.map +1 -1
- package/resources/print-mail/reports/index.d.mts +1 -1
- package/resources/print-mail/reports/index.d.mts.map +1 -1
- package/resources/print-mail/reports/index.d.ts +1 -1
- package/resources/print-mail/reports/index.d.ts.map +1 -1
- package/resources/print-mail/reports/reports.d.mts +9 -16
- package/resources/print-mail/reports/reports.d.mts.map +1 -1
- package/resources/print-mail/reports/reports.d.ts +9 -16
- package/resources/print-mail/reports/reports.d.ts.map +1 -1
- package/resources/print-mail/reports/reports.js +6 -2
- package/resources/print-mail/reports/reports.js.map +1 -1
- package/resources/print-mail/reports/reports.mjs +6 -2
- package/resources/print-mail/reports/reports.mjs.map +1 -1
- package/resources/print-mail/self-mailers.d.mts +16 -842
- package/resources/print-mail/self-mailers.d.mts.map +1 -1
- package/resources/print-mail/self-mailers.d.ts +16 -842
- package/resources/print-mail/self-mailers.d.ts.map +1 -1
- package/resources/print-mail/self-mailers.js +9 -3
- package/resources/print-mail/self-mailers.js.map +1 -1
- package/resources/print-mail/self-mailers.mjs +9 -3
- package/resources/print-mail/self-mailers.mjs.map +1 -1
- package/resources/print-mail/sub-organizations.d.mts +9 -14
- package/resources/print-mail/sub-organizations.d.mts.map +1 -1
- package/resources/print-mail/sub-organizations.d.ts +9 -14
- package/resources/print-mail/sub-organizations.d.ts.map +1 -1
- package/resources/print-mail/sub-organizations.js +9 -3
- package/resources/print-mail/sub-organizations.js.map +1 -1
- package/resources/print-mail/sub-organizations.mjs +9 -3
- package/resources/print-mail/sub-organizations.mjs.map +1 -1
- package/resources/print-mail/templates.d.mts +9 -13
- package/resources/print-mail/templates.d.mts.map +1 -1
- package/resources/print-mail/templates.d.ts +9 -13
- package/resources/print-mail/templates.d.ts.map +1 -1
- package/resources/print-mail/templates.js +6 -2
- package/resources/print-mail/templates.js.map +1 -1
- package/resources/print-mail/templates.mjs +6 -2
- package/resources/print-mail/templates.mjs.map +1 -1
- package/src/client.ts +34 -2
- package/src/core/pagination.ts +171 -0
- package/src/index.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/index.ts +5 -1
- package/src/resources/print-mail/bank-accounts.ts +14 -22
- package/src/resources/print-mail/boxes.ts +19 -686
- package/src/resources/print-mail/campaigns.ts +11 -24
- package/src/resources/print-mail/cheques.ts +15 -527
- package/src/resources/print-mail/contacts.ts +14 -189
- package/src/resources/print-mail/index.ts +14 -14
- package/src/resources/print-mail/letters.ts +16 -697
- package/src/resources/print-mail/mailing-list-imports.ts +15 -25
- package/src/resources/print-mail/mailing-lists.ts +14 -25
- package/src/resources/print-mail/order-profiles/cheques.ts +91 -103
- package/src/resources/print-mail/order-profiles/index.ts +4 -3
- package/src/resources/print-mail/order-profiles/letters.ts +14 -25
- package/src/resources/print-mail/order-profiles/order-profiles.ts +8 -6
- package/src/resources/print-mail/order-profiles/postcards.ts +14 -25
- package/src/resources/print-mail/order-profiles/self-mailers.ts +15 -25
- package/src/resources/print-mail/postcards.ts +18 -1035
- package/src/resources/print-mail/print-mail.ts +195 -26
- package/src/resources/print-mail/reports/index.ts +1 -1
- package/src/resources/print-mail/reports/reports.ts +11 -24
- package/src/resources/print-mail/self-mailers.ts +21 -1036
- package/src/resources/print-mail/sub-organizations.ts +14 -22
- package/src/resources/print-mail/templates.ts +11 -21
- 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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { SkipLimit } from "../../../core/pagination.mjs";
|
|
3
4
|
import { path } from "../../../internal/utils/path.mjs";
|
|
4
5
|
export class Postcards extends APIResource {
|
|
5
6
|
/**
|
|
@@ -62,12 +63,17 @@ export class Postcards extends APIResource {
|
|
|
62
63
|
*
|
|
63
64
|
* @example
|
|
64
65
|
* ```ts
|
|
65
|
-
*
|
|
66
|
-
*
|
|
66
|
+
* // Automatically fetches more pages as needed.
|
|
67
|
+
* for await (const postcardProfile of client.printMail.orderProfiles.postcards.list()) {
|
|
68
|
+
* // ...
|
|
69
|
+
* }
|
|
67
70
|
* ```
|
|
68
71
|
*/
|
|
69
72
|
list(query = {}, options) {
|
|
70
|
-
return this._client.
|
|
73
|
+
return this._client.getAPIList('/print-mail/v1/order_profiles/postcards', (SkipLimit), {
|
|
74
|
+
query,
|
|
75
|
+
...options,
|
|
76
|
+
});
|
|
71
77
|
}
|
|
72
78
|
/**
|
|
73
79
|
* Deletes a Postcard Profile.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postcards.mjs","sourceRoot":"","sources":["../../../src/resources/print-mail/order-profiles/postcards.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"postcards.mjs","sourceRoot":"","sources":["../../../src/resources/print-mail/order-profiles/postcards.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAe,SAAS,EAAwB;OAEhD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAA4B,EAAE,OAAwB;QAC3D,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yCAAyC,EAAE;YAClE,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,EAAU,EACV,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2CAA2C,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,MAA4B,EAAE,OAAwB;QACvE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,2CAA2C,EAAE,EAAE,EAAE;YAC5E,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yCAAyC,EAAE,CAAA,SAA0B,CAAA,EAAE;YACpG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,2CAA2C,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as BoxesAPI from "../boxes.mjs";
|
|
3
3
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
|
+
import { PagePromise, SkipLimit, type SkipLimitParams } from "../../../core/pagination.mjs";
|
|
4
5
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
6
|
export declare class SelfMailers extends APIResource {
|
|
6
7
|
/**
|
|
@@ -48,11 +49,13 @@ export declare class SelfMailers extends APIResource {
|
|
|
48
49
|
*
|
|
49
50
|
* @example
|
|
50
51
|
* ```ts
|
|
51
|
-
*
|
|
52
|
-
*
|
|
52
|
+
* // Automatically fetches more pages as needed.
|
|
53
|
+
* for await (const selfMailerProfile of client.printMail.orderProfiles.selfMailers.list()) {
|
|
54
|
+
* // ...
|
|
55
|
+
* }
|
|
53
56
|
* ```
|
|
54
57
|
*/
|
|
55
|
-
list(query?: SelfMailerListParams | null | undefined, options?: RequestOptions):
|
|
58
|
+
list(query?: SelfMailerListParams | null | undefined, options?: RequestOptions): PagePromise<SelfMailerProfilesSkipLimit, SelfMailerProfile>;
|
|
56
59
|
/**
|
|
57
60
|
* Deletes a Self-Mailer Profile.
|
|
58
61
|
*
|
|
@@ -66,6 +69,7 @@ export declare class SelfMailers extends APIResource {
|
|
|
66
69
|
*/
|
|
67
70
|
delete(id: string, options?: RequestOptions): APIPromise<SelfMailerDeleteResponse>;
|
|
68
71
|
}
|
|
72
|
+
export type SelfMailerProfilesSkipLimit = SkipLimit<SelfMailerProfile>;
|
|
69
73
|
/**
|
|
70
74
|
* Represents a Self-Mailer Profile resource.
|
|
71
75
|
*/
|
|
@@ -131,16 +135,6 @@ export interface SelfMailerProfile {
|
|
|
131
135
|
* Enum representing the supported self-mailer sizes.
|
|
132
136
|
*/
|
|
133
137
|
export type SelfMailerSize = '8.5x11_bifold' | '8.5x11_trifold' | '9.5x16_trifold';
|
|
134
|
-
/**
|
|
135
|
-
* Represents a list of Self-Mailer Profiles.
|
|
136
|
-
*/
|
|
137
|
-
export interface SelfMailerListResponse {
|
|
138
|
-
data: Array<SelfMailerProfile>;
|
|
139
|
-
limit: number;
|
|
140
|
-
object: 'list';
|
|
141
|
-
skip: number;
|
|
142
|
-
totalCount: number;
|
|
143
|
-
}
|
|
144
138
|
export interface SelfMailerDeleteResponse {
|
|
145
139
|
/**
|
|
146
140
|
* Unique identifier for the order profile.
|
|
@@ -250,8 +244,7 @@ export interface SelfMailerUpdateParams {
|
|
|
250
244
|
*/
|
|
251
245
|
pdf?: string;
|
|
252
246
|
}
|
|
253
|
-
export interface SelfMailerListParams {
|
|
254
|
-
limit?: number;
|
|
247
|
+
export interface SelfMailerListParams extends SkipLimitParams {
|
|
255
248
|
/**
|
|
256
249
|
* You can supply any string to help narrow down the list of resources. For
|
|
257
250
|
* example, if you pass `"New York"` (quoted), it will return resources that have
|
|
@@ -260,9 +253,8 @@ export interface SelfMailerListParams {
|
|
|
260
253
|
* more details.
|
|
261
254
|
*/
|
|
262
255
|
search?: string;
|
|
263
|
-
skip?: number;
|
|
264
256
|
}
|
|
265
257
|
export declare namespace SelfMailers {
|
|
266
|
-
export { type SelfMailerProfile as SelfMailerProfile, type SelfMailerSize as SelfMailerSize, type
|
|
258
|
+
export { type SelfMailerProfile as SelfMailerProfile, type SelfMailerSize as SelfMailerSize, type SelfMailerDeleteResponse as SelfMailerDeleteResponse, type SelfMailerProfilesSkipLimit as SelfMailerProfilesSkipLimit, type SelfMailerCreateParams as SelfMailerCreateParams, type SelfMailerRetrieveParams as SelfMailerRetrieveParams, type SelfMailerUpdateParams as SelfMailerUpdateParams, type SelfMailerListParams as SelfMailerListParams, };
|
|
267
259
|
}
|
|
268
260
|
//# sourceMappingURL=self-mailers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"self-mailers.d.mts","sourceRoot":"","sources":["../../../src/resources/print-mail/order-profiles/self-mailers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAM,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAS/F;;;;;;;;;;OAUG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAIhC;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAShC
|
|
1
|
+
{"version":3,"file":"self-mailers.d.mts","sourceRoot":"","sources":["../../../src/resources/print-mail/order-profiles/self-mailers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE;OAChD,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAM,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAS/F;;;;;;;;;;OAUG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAIhC;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAShC;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW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AG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAE5C;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as BoxesAPI from "../boxes.js";
|
|
3
3
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
|
+
import { PagePromise, SkipLimit, type SkipLimitParams } from "../../../core/pagination.js";
|
|
4
5
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
6
|
export declare class SelfMailers extends APIResource {
|
|
6
7
|
/**
|
|
@@ -48,11 +49,13 @@ export declare class SelfMailers extends APIResource {
|
|
|
48
49
|
*
|
|
49
50
|
* @example
|
|
50
51
|
* ```ts
|
|
51
|
-
*
|
|
52
|
-
*
|
|
52
|
+
* // Automatically fetches more pages as needed.
|
|
53
|
+
* for await (const selfMailerProfile of client.printMail.orderProfiles.selfMailers.list()) {
|
|
54
|
+
* // ...
|
|
55
|
+
* }
|
|
53
56
|
* ```
|
|
54
57
|
*/
|
|
55
|
-
list(query?: SelfMailerListParams | null | undefined, options?: RequestOptions):
|
|
58
|
+
list(query?: SelfMailerListParams | null | undefined, options?: RequestOptions): PagePromise<SelfMailerProfilesSkipLimit, SelfMailerProfile>;
|
|
56
59
|
/**
|
|
57
60
|
* Deletes a Self-Mailer Profile.
|
|
58
61
|
*
|
|
@@ -66,6 +69,7 @@ export declare class SelfMailers extends APIResource {
|
|
|
66
69
|
*/
|
|
67
70
|
delete(id: string, options?: RequestOptions): APIPromise<SelfMailerDeleteResponse>;
|
|
68
71
|
}
|
|
72
|
+
export type SelfMailerProfilesSkipLimit = SkipLimit<SelfMailerProfile>;
|
|
69
73
|
/**
|
|
70
74
|
* Represents a Self-Mailer Profile resource.
|
|
71
75
|
*/
|
|
@@ -131,16 +135,6 @@ export interface SelfMailerProfile {
|
|
|
131
135
|
* Enum representing the supported self-mailer sizes.
|
|
132
136
|
*/
|
|
133
137
|
export type SelfMailerSize = '8.5x11_bifold' | '8.5x11_trifold' | '9.5x16_trifold';
|
|
134
|
-
/**
|
|
135
|
-
* Represents a list of Self-Mailer Profiles.
|
|
136
|
-
*/
|
|
137
|
-
export interface SelfMailerListResponse {
|
|
138
|
-
data: Array<SelfMailerProfile>;
|
|
139
|
-
limit: number;
|
|
140
|
-
object: 'list';
|
|
141
|
-
skip: number;
|
|
142
|
-
totalCount: number;
|
|
143
|
-
}
|
|
144
138
|
export interface SelfMailerDeleteResponse {
|
|
145
139
|
/**
|
|
146
140
|
* Unique identifier for the order profile.
|
|
@@ -250,8 +244,7 @@ export interface SelfMailerUpdateParams {
|
|
|
250
244
|
*/
|
|
251
245
|
pdf?: string;
|
|
252
246
|
}
|
|
253
|
-
export interface SelfMailerListParams {
|
|
254
|
-
limit?: number;
|
|
247
|
+
export interface SelfMailerListParams extends SkipLimitParams {
|
|
255
248
|
/**
|
|
256
249
|
* You can supply any string to help narrow down the list of resources. For
|
|
257
250
|
* example, if you pass `"New York"` (quoted), it will return resources that have
|
|
@@ -260,9 +253,8 @@ export interface SelfMailerListParams {
|
|
|
260
253
|
* more details.
|
|
261
254
|
*/
|
|
262
255
|
search?: string;
|
|
263
|
-
skip?: number;
|
|
264
256
|
}
|
|
265
257
|
export declare namespace SelfMailers {
|
|
266
|
-
export { type SelfMailerProfile as SelfMailerProfile, type SelfMailerSize as SelfMailerSize, type
|
|
258
|
+
export { type SelfMailerProfile as SelfMailerProfile, type SelfMailerSize as SelfMailerSize, type SelfMailerDeleteResponse as SelfMailerDeleteResponse, type SelfMailerProfilesSkipLimit as SelfMailerProfilesSkipLimit, type SelfMailerCreateParams as SelfMailerCreateParams, type SelfMailerRetrieveParams as SelfMailerRetrieveParams, type SelfMailerUpdateParams as SelfMailerUpdateParams, type SelfMailerListParams as SelfMailerListParams, };
|
|
267
259
|
}
|
|
268
260
|
//# sourceMappingURL=self-mailers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"self-mailers.d.ts","sourceRoot":"","sources":["../../../src/resources/print-mail/order-profiles/self-mailers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAM,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAS/F;;;;;;;;;;OAUG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAIhC;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAShC
|
|
1
|
+
{"version":3,"file":"self-mailers.d.ts","sourceRoot":"","sources":["../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AI,2BAA2B,EAC/D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.SelfMailers = void 0;
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../../core/pagination.js");
|
|
6
7
|
const path_1 = require("../../../internal/utils/path.js");
|
|
7
8
|
class SelfMailers extends resource_1.APIResource {
|
|
8
9
|
/**
|
|
@@ -66,12 +67,14 @@ class SelfMailers extends resource_1.APIResource {
|
|
|
66
67
|
*
|
|
67
68
|
* @example
|
|
68
69
|
* ```ts
|
|
69
|
-
*
|
|
70
|
-
*
|
|
70
|
+
* // Automatically fetches more pages as needed.
|
|
71
|
+
* for await (const selfMailerProfile of client.printMail.orderProfiles.selfMailers.list()) {
|
|
72
|
+
* // ...
|
|
73
|
+
* }
|
|
71
74
|
* ```
|
|
72
75
|
*/
|
|
73
76
|
list(query = {}, options) {
|
|
74
|
-
return this._client.
|
|
77
|
+
return this._client.getAPIList('/print-mail/v1/order_profiles/self_mailers', (pagination_1.SkipLimit), { query, ...options });
|
|
75
78
|
}
|
|
76
79
|
/**
|
|
77
80
|
* Deletes a Self-Mailer Profile.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"self-mailers.js","sourceRoot":"","sources":["../../../src/resources/print-mail/order-profiles/self-mailers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"self-mailers.js","sourceRoot":"","sources":["../../../src/resources/print-mail/order-profiles/self-mailers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,4DAAwF;AAExF,0DAAoD;AAEpD,MAAa,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AAO,CAAC,CAAC;IAC9F,CAAC;CACF;AAxGD,kCAwGC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { SkipLimit } from "../../../core/pagination.mjs";
|
|
3
4
|
import { path } from "../../../internal/utils/path.mjs";
|
|
4
5
|
export class SelfMailers extends APIResource {
|
|
5
6
|
/**
|
|
@@ -63,12 +64,14 @@ export class SelfMailers extends APIResource {
|
|
|
63
64
|
*
|
|
64
65
|
* @example
|
|
65
66
|
* ```ts
|
|
66
|
-
*
|
|
67
|
-
*
|
|
67
|
+
* // Automatically fetches more pages as needed.
|
|
68
|
+
* for await (const selfMailerProfile of client.printMail.orderProfiles.selfMailers.list()) {
|
|
69
|
+
* // ...
|
|
70
|
+
* }
|
|
68
71
|
* ```
|
|
69
72
|
*/
|
|
70
73
|
list(query = {}, options) {
|
|
71
|
-
return this._client.
|
|
74
|
+
return this._client.getAPIList('/print-mail/v1/order_profiles/self_mailers', (SkipLimit), { query, ...options });
|
|
72
75
|
}
|
|
73
76
|
/**
|
|
74
77
|
* Deletes a Self-Mailer Profile.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"self-mailers.mjs","sourceRoot":"","sources":["../../../src/resources/print-mail/order-profiles/self-mailers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"self-mailers.mjs","sourceRoot":"","sources":["../../../src/resources/print-mail/order-profiles/self-mailers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAe,SAAS,EAAwB;OAEhD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAA8B,EAAE,OAAwB;QAC7D,MAAM,EAAE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