dodopayments 1.22.0 → 1.25.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 +21 -0
- package/package.json +1 -1
- package/resources/subscriptions.d.ts +1 -0
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/_shims/auto/runtime-bun.ts +1 -1
- package/src/_shims/auto/runtime-node.ts +1 -1
- package/src/_shims/auto/runtime.ts +1 -1
- package/src/_shims/auto/types-node.ts +1 -1
- package/src/_shims/bun-runtime.ts +2 -2
- package/src/_shims/index.d.ts +3 -3
- package/src/_shims/index.mjs +1 -1
- package/src/_shims/node-runtime.ts +3 -3
- package/src/_shims/registry.ts +1 -1
- package/src/_shims/web-runtime.ts +3 -3
- package/src/core.ts +5 -5
- package/src/error.ts +1 -1
- package/src/index.ts +24 -24
- package/src/pagination.ts +1 -1
- package/src/resource.ts +1 -1
- package/src/resources/addons.ts +5 -5
- package/src/resources/customers/customer-portal.ts +4 -4
- package/src/resources/customers/customers.ts +6 -6
- package/src/resources/customers/index.ts +2 -2
- package/src/resources/customers.ts +1 -1
- package/src/resources/discounts.ts +4 -4
- package/src/resources/disputes.ts +5 -5
- package/src/resources/index.ts +15 -15
- package/src/resources/invoices/index.ts +2 -2
- package/src/resources/invoices/invoices.ts +3 -3
- package/src/resources/invoices/payments.ts +3 -3
- package/src/resources/invoices.ts +1 -1
- package/src/resources/license-key-instances.ts +4 -4
- package/src/resources/license-keys.ts +4 -4
- package/src/resources/licenses.ts +3 -3
- package/src/resources/misc.ts +2 -2
- package/src/resources/payments.ts +7 -7
- package/src/resources/payouts.ts +5 -5
- package/src/resources/products/images.ts +3 -3
- package/src/resources/products/index.ts +2 -2
- package/src/resources/products/products.ts +8 -8
- package/src/resources/products.ts +1 -1
- package/src/resources/refunds.ts +5 -5
- package/src/resources/subscriptions.ts +8 -6
- package/src/resources/webhook-events.ts +4 -4
- package/src/resources.ts +1 -1
- package/src/shims/node.ts +3 -3
- package/src/shims/web.ts +3 -3
- package/src/uploads.ts +4 -4
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.25.0 (2025-05-17)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.22.0...v1.25.0](https://github.com/dodopayments/dodopayments-node/compare/v1.22.0...v1.25.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** updated openapi spec ([cb27d71](https://github.com/dodopayments/dodopayments-node/commit/cb27d718d2faccbe1d5636c73ab98246a21d2c55))
|
|
10
|
+
* **mcp:** support dynamically discovering and invoking tools for APIs with many endpoints ([ed124f7](https://github.com/dodopayments/dodopayments-node/commit/ed124f74107ad4352ae2bd88b4c56d9d65d668d2))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **mcp:** explicitly include zod and zod-to-json-schema in package.json ([487260a](https://github.com/dodopayments/dodopayments-node/commit/487260a023d319d98a7a53fd2f17ccc27a0c8115))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Chores
|
|
19
|
+
|
|
20
|
+
* **build:** automatically build subpackages if present ([a324a69](https://github.com/dodopayments/dodopayments-node/commit/a324a693d1c3ceaabacf80970b203315c3db3259))
|
|
21
|
+
* **internal:** codegen related update ([50a6899](https://github.com/dodopayments/dodopayments-node/commit/50a6899676806c1ce8b64d17f13b120edf5fbf72))
|
|
22
|
+
* **tests:** use node 22 for CI tests ([b7aa91b](https://github.com/dodopayments/dodopayments-node/commit/b7aa91b4aabb0676412c8f38aabb2254712a18e1))
|
|
23
|
+
|
|
3
24
|
## 1.22.0 (2025-05-09)
|
|
4
25
|
|
|
5
26
|
Full Changelog: [v1.20.0...v1.22.0](https://github.com/dodopayments/dodopayments-node/compare/v1.20.0...v1.22.0)
|
package/package.json
CHANGED
|
@@ -331,6 +331,7 @@ export interface SubscriptionChargeParams {
|
|
|
331
331
|
* cents for USD). For example, to charge $1.00, pass `100`.
|
|
332
332
|
*/
|
|
333
333
|
product_price: number;
|
|
334
|
+
metadata?: Record<string, string> | null;
|
|
334
335
|
}
|
|
335
336
|
export declare namespace Subscriptions {
|
|
336
337
|
export { type AddonCartResponseItem as AddonCartResponseItem, type Subscription as Subscription, type SubscriptionStatus as SubscriptionStatus, type TimeInterval as TimeInterval, type SubscriptionCreateResponse as SubscriptionCreateResponse, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionChargeResponse as SubscriptionChargeResponse, SubscriptionListResponsesDefaultPageNumberPagination as SubscriptionListResponsesDefaultPageNumberPagination, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionChangePlanParams as SubscriptionChangePlanParams, type SubscriptionChargeParams as SubscriptionChargeParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../src/resources/subscriptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,WAAW,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,2BAA2B,EAAE,KAAK,iCAAiC,EAAE,MAAM,eAAe,CAAC;AAEpG,qBAAa,aAAc,SAAQ,WAAW;IAC5C,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAI9C,QAAQ,CAAC,cAAc,EAA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,MAAM,CACJ,cAAsB,EACtB,IAA8B,EAC9B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,cAAc,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF;AAED,MAAM,OAAO,oDAAqD,SAAQ,2BAAqD;CAAG;AAwblI,aAAa,CAAC,oDAAoD;IAChE,oDAAoD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
3
|
*/
|
|
4
|
-
import { type Shims } from
|
|
5
|
-
import { getRuntime as getWebRuntime } from
|
|
4
|
+
import { type Shims } from "./registry.js";
|
|
5
|
+
import { getRuntime as getWebRuntime } from "./web-runtime.js";
|
|
6
6
|
import { ReadStream as FsReadStream } from 'node:fs';
|
|
7
7
|
|
|
8
8
|
export function getRuntime(): Shims {
|
package/src/_shims/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
3
|
*/
|
|
4
|
-
import { manual } from
|
|
5
|
-
import * as auto from "./auto/types";
|
|
6
|
-
import { type RequestOptions } from
|
|
4
|
+
import { manual } from "./manual-types.js";
|
|
5
|
+
import * as auto from "./auto/types.js";
|
|
6
|
+
import { type RequestOptions } from "../core.js";
|
|
7
7
|
|
|
8
8
|
type SelectType<Manual, Auto> = unknown extends Manual ? Auto : Manual;
|
|
9
9
|
|
package/src/_shims/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
3
|
*/
|
|
4
4
|
import * as shims from './registry.mjs';
|
|
5
|
-
import * as auto from "./auto/runtime";
|
|
5
|
+
import * as auto from "./auto/runtime.mjs";
|
|
6
6
|
export const init = () => {
|
|
7
7
|
if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true });
|
|
8
8
|
};
|
|
@@ -10,9 +10,9 @@ import { ReadStream as FsReadStream } from 'node:fs';
|
|
|
10
10
|
import { type Agent } from 'node:http';
|
|
11
11
|
import { FormDataEncoder } from 'form-data-encoder';
|
|
12
12
|
import { Readable } from 'node:stream';
|
|
13
|
-
import { type RequestOptions } from
|
|
14
|
-
import { MultipartBody } from
|
|
15
|
-
import { type Shims } from
|
|
13
|
+
import { type RequestOptions } from "../core.js";
|
|
14
|
+
import { MultipartBody } from "./MultipartBody.js";
|
|
15
|
+
import { type Shims } from "./registry.js";
|
|
16
16
|
import { ReadableStream } from 'node:stream/web';
|
|
17
17
|
|
|
18
18
|
type FileFromPathOptions = Omit<FilePropertyBag, 'lastModified'>;
|
package/src/_shims/registry.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
3
|
*/
|
|
4
|
-
import { MultipartBody } from
|
|
5
|
-
import { type RequestOptions } from
|
|
6
|
-
import { type Shims } from
|
|
4
|
+
import { MultipartBody } from "./MultipartBody.js";
|
|
5
|
+
import { type RequestOptions } from "../core.js";
|
|
6
|
+
import { type Shims } from "./registry.js";
|
|
7
7
|
|
|
8
8
|
export function getRuntime({ manuallyImported }: { manuallyImported?: boolean } = {}): Shims {
|
|
9
9
|
const recommendation =
|
package/src/core.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { VERSION } from
|
|
1
|
+
import { VERSION } from "./version.js";
|
|
2
2
|
import {
|
|
3
3
|
DodoPaymentsError,
|
|
4
4
|
APIError,
|
|
5
5
|
APIConnectionError,
|
|
6
6
|
APIConnectionTimeoutError,
|
|
7
7
|
APIUserAbortError,
|
|
8
|
-
} from
|
|
8
|
+
} from "./error.js";
|
|
9
9
|
import {
|
|
10
10
|
kind as shimsKind,
|
|
11
11
|
type Readable,
|
|
@@ -17,19 +17,19 @@ import {
|
|
|
17
17
|
type Response,
|
|
18
18
|
type HeadersInit,
|
|
19
19
|
init,
|
|
20
|
-
} from
|
|
20
|
+
} from "./_shims/index.js";
|
|
21
21
|
|
|
22
22
|
// try running side effects outside of _shims/index to workaround https://github.com/vercel/next.js/issues/76881
|
|
23
23
|
init();
|
|
24
24
|
|
|
25
25
|
export { type Response };
|
|
26
|
-
import { BlobLike, isBlobLike, isMultipartBody } from
|
|
26
|
+
import { BlobLike, isBlobLike, isMultipartBody } from "./uploads.js";
|
|
27
27
|
export {
|
|
28
28
|
maybeMultipartFormRequestOptions,
|
|
29
29
|
multipartFormRequestOptions,
|
|
30
30
|
createForm,
|
|
31
31
|
type Uploadable,
|
|
32
|
-
} from
|
|
32
|
+
} from "./uploads.js";
|
|
33
33
|
|
|
34
34
|
export type Fetch = (url: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
35
35
|
|
package/src/error.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { type Agent } from
|
|
4
|
-
import * as Core from
|
|
5
|
-
import * as Errors from
|
|
6
|
-
import * as Pagination from
|
|
7
|
-
import { type DefaultPageNumberPaginationParams, DefaultPageNumberPaginationResponse } from
|
|
8
|
-
import * as Uploads from
|
|
9
|
-
import * as API from
|
|
3
|
+
import { type Agent } from "./_shims/index.js";
|
|
4
|
+
import * as Core from "./core.js";
|
|
5
|
+
import * as Errors from "./error.js";
|
|
6
|
+
import * as Pagination from "./pagination.js";
|
|
7
|
+
import { type DefaultPageNumberPaginationParams, DefaultPageNumberPaginationResponse } from "./pagination.js";
|
|
8
|
+
import * as Uploads from "./uploads.js";
|
|
9
|
+
import * as API from "./resources/index.js";
|
|
10
10
|
import {
|
|
11
11
|
AddonCreateParams,
|
|
12
12
|
AddonListParams,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
AddonUpdateImagesResponse,
|
|
16
16
|
AddonUpdateParams,
|
|
17
17
|
Addons,
|
|
18
|
-
} from
|
|
18
|
+
} from "./resources/addons.js";
|
|
19
19
|
import {
|
|
20
20
|
Discount,
|
|
21
21
|
DiscountCreateParams,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
DiscountUpdateParams,
|
|
25
25
|
Discounts,
|
|
26
26
|
DiscountsDefaultPageNumberPagination,
|
|
27
|
-
} from
|
|
27
|
+
} from "./resources/discounts.js";
|
|
28
28
|
import {
|
|
29
29
|
Dispute,
|
|
30
30
|
DisputeListParams,
|
|
@@ -34,14 +34,14 @@ import {
|
|
|
34
34
|
DisputeStage,
|
|
35
35
|
DisputeStatus,
|
|
36
36
|
Disputes,
|
|
37
|
-
} from
|
|
37
|
+
} from "./resources/disputes.js";
|
|
38
38
|
import {
|
|
39
39
|
LicenseKeyInstance,
|
|
40
40
|
LicenseKeyInstanceListParams,
|
|
41
41
|
LicenseKeyInstanceUpdateParams,
|
|
42
42
|
LicenseKeyInstances,
|
|
43
43
|
LicenseKeyInstancesDefaultPageNumberPagination,
|
|
44
|
-
} from
|
|
44
|
+
} from "./resources/license-key-instances.js";
|
|
45
45
|
import {
|
|
46
46
|
LicenseKey,
|
|
47
47
|
LicenseKeyListParams,
|
|
@@ -49,21 +49,21 @@ import {
|
|
|
49
49
|
LicenseKeyUpdateParams,
|
|
50
50
|
LicenseKeys,
|
|
51
51
|
LicenseKeysDefaultPageNumberPagination,
|
|
52
|
-
} from
|
|
52
|
+
} from "./resources/license-keys.js";
|
|
53
53
|
import {
|
|
54
54
|
LicenseActivateParams,
|
|
55
55
|
LicenseDeactivateParams,
|
|
56
56
|
LicenseValidateParams,
|
|
57
57
|
LicenseValidateResponse,
|
|
58
58
|
Licenses,
|
|
59
|
-
} from
|
|
59
|
+
} from "./resources/licenses.js";
|
|
60
60
|
import {
|
|
61
61
|
CountryCode,
|
|
62
62
|
Currency,
|
|
63
63
|
Misc,
|
|
64
64
|
MiscListSupportedCountriesResponse,
|
|
65
65
|
TaxCategory,
|
|
66
|
-
} from
|
|
66
|
+
} from "./resources/misc.js";
|
|
67
67
|
import {
|
|
68
68
|
AttachExistingCustomer,
|
|
69
69
|
BillingAddress,
|
|
@@ -79,13 +79,13 @@ import {
|
|
|
79
79
|
PaymentListResponse,
|
|
80
80
|
PaymentListResponsesDefaultPageNumberPagination,
|
|
81
81
|
Payments,
|
|
82
|
-
} from
|
|
82
|
+
} from "./resources/payments.js";
|
|
83
83
|
import {
|
|
84
84
|
PayoutListParams,
|
|
85
85
|
PayoutListResponse,
|
|
86
86
|
PayoutListResponsesDefaultPageNumberPagination,
|
|
87
87
|
Payouts,
|
|
88
|
-
} from
|
|
88
|
+
} from "./resources/payouts.js";
|
|
89
89
|
import {
|
|
90
90
|
Refund,
|
|
91
91
|
RefundCreateParams,
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
RefundStatus,
|
|
94
94
|
Refunds,
|
|
95
95
|
RefundsDefaultPageNumberPagination,
|
|
96
|
-
} from
|
|
96
|
+
} from "./resources/refunds.js";
|
|
97
97
|
import {
|
|
98
98
|
AddonCartResponseItem,
|
|
99
99
|
Subscription,
|
|
@@ -109,13 +109,13 @@ import {
|
|
|
109
109
|
SubscriptionUpdateParams,
|
|
110
110
|
Subscriptions,
|
|
111
111
|
TimeInterval,
|
|
112
|
-
} from
|
|
112
|
+
} from "./resources/subscriptions.js";
|
|
113
113
|
import {
|
|
114
114
|
WebhookEvent,
|
|
115
115
|
WebhookEventListParams,
|
|
116
116
|
WebhookEvents,
|
|
117
117
|
WebhookEventsDefaultPageNumberPagination,
|
|
118
|
-
} from
|
|
118
|
+
} from "./resources/webhook-events.js";
|
|
119
119
|
import {
|
|
120
120
|
Customer,
|
|
121
121
|
CustomerCreateParams,
|
|
@@ -124,8 +124,8 @@ import {
|
|
|
124
124
|
CustomerUpdateParams,
|
|
125
125
|
Customers,
|
|
126
126
|
CustomersDefaultPageNumberPagination,
|
|
127
|
-
} from
|
|
128
|
-
import { Invoices } from
|
|
127
|
+
} from "./resources/customers/customers.js";
|
|
128
|
+
import { Invoices } from "./resources/invoices/invoices.js";
|
|
129
129
|
import {
|
|
130
130
|
LicenseKeyDuration,
|
|
131
131
|
Price,
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
ProductListResponsesDefaultPageNumberPagination,
|
|
137
137
|
ProductUpdateParams,
|
|
138
138
|
Products,
|
|
139
|
-
} from
|
|
139
|
+
} from "./resources/products/products.js";
|
|
140
140
|
|
|
141
141
|
const environments = {
|
|
142
142
|
live_mode: 'https://live.dodopayments.com',
|
|
@@ -512,7 +512,7 @@ export declare namespace DodoPayments {
|
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
514
|
|
|
515
|
-
export { toFile, fileFromPath } from
|
|
515
|
+
export { toFile, fileFromPath } from "./uploads.js";
|
|
516
516
|
export {
|
|
517
517
|
DodoPaymentsError,
|
|
518
518
|
APIError,
|
|
@@ -527,6 +527,6 @@ export {
|
|
|
527
527
|
InternalServerError,
|
|
528
528
|
PermissionDeniedError,
|
|
529
529
|
UnprocessableEntityError,
|
|
530
|
-
} from
|
|
530
|
+
} from "./error.js";
|
|
531
531
|
|
|
532
532
|
export default DodoPayments;
|
package/src/pagination.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from
|
|
3
|
+
import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from "./core.js";
|
|
4
4
|
|
|
5
5
|
export interface DefaultPageNumberPaginationResponse<Item> {
|
|
6
6
|
items: Array<Item>;
|
package/src/resource.ts
CHANGED
package/src/resources/addons.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
6
|
-
import * as MiscAPI from
|
|
7
|
-
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from
|
|
3
|
+
import { APIResource } from "../resource.js";
|
|
4
|
+
import { isRequestOptions } from "../core.js";
|
|
5
|
+
import * as Core from "../core.js";
|
|
6
|
+
import * as MiscAPI from "./misc.js";
|
|
7
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from "../pagination.js";
|
|
8
8
|
|
|
9
9
|
export class Addons extends APIResource {
|
|
10
10
|
create(body: AddonCreateParams, options?: Core.RequestOptions): Core.APIPromise<AddonResponse> {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
6
|
-
import * as CustomersAPI from
|
|
3
|
+
import { APIResource } from "../../resource.js";
|
|
4
|
+
import { isRequestOptions } from "../../core.js";
|
|
5
|
+
import * as Core from "../../core.js";
|
|
6
|
+
import * as CustomersAPI from "./customers.js";
|
|
7
7
|
|
|
8
8
|
export class CustomerPortal extends APIResource {
|
|
9
9
|
create(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
6
|
-
import * as CustomerPortalAPI from
|
|
7
|
-
import { CustomerPortal, CustomerPortalCreateParams } from
|
|
8
|
-
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from
|
|
3
|
+
import { APIResource } from "../../resource.js";
|
|
4
|
+
import { isRequestOptions } from "../../core.js";
|
|
5
|
+
import * as Core from "../../core.js";
|
|
6
|
+
import * as CustomerPortalAPI from "./customer-portal.js";
|
|
7
|
+
import { CustomerPortal, CustomerPortalCreateParams } from "./customer-portal.js";
|
|
8
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from "../../pagination.js";
|
|
9
9
|
|
|
10
10
|
export class Customers extends APIResource {
|
|
11
11
|
customerPortal: CustomerPortalAPI.CustomerPortal = new CustomerPortalAPI.CustomerPortal(this._client);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { CustomerPortal, type CustomerPortalCreateParams } from
|
|
3
|
+
export { CustomerPortal, type CustomerPortalCreateParams } from "./customer-portal.js";
|
|
4
4
|
export {
|
|
5
5
|
CustomersDefaultPageNumberPagination,
|
|
6
6
|
Customers,
|
|
@@ -9,4 +9,4 @@ export {
|
|
|
9
9
|
type CustomerCreateParams,
|
|
10
10
|
type CustomerUpdateParams,
|
|
11
11
|
type CustomerListParams,
|
|
12
|
-
} from
|
|
12
|
+
} from "./customers.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
6
|
-
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from
|
|
3
|
+
import { APIResource } from "../resource.js";
|
|
4
|
+
import { isRequestOptions } from "../core.js";
|
|
5
|
+
import * as Core from "../core.js";
|
|
6
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from "../pagination.js";
|
|
7
7
|
|
|
8
8
|
export class Discounts extends APIResource {
|
|
9
9
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
6
|
-
import * as PaymentsAPI from
|
|
7
|
-
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from
|
|
3
|
+
import { APIResource } from "../resource.js";
|
|
4
|
+
import { isRequestOptions } from "../core.js";
|
|
5
|
+
import * as Core from "../core.js";
|
|
6
|
+
import * as PaymentsAPI from "./payments.js";
|
|
7
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from "../pagination.js";
|
|
8
8
|
|
|
9
9
|
export class Disputes extends APIResource {
|
|
10
10
|
retrieve(disputeId: string, options?: Core.RequestOptions): Core.APIPromise<DisputeRetrieveResponse> {
|
package/src/resources/index.ts
CHANGED
|
@@ -8,7 +8,7 @@ export {
|
|
|
8
8
|
type AddonCreateParams,
|
|
9
9
|
type AddonUpdateParams,
|
|
10
10
|
type AddonListParams,
|
|
11
|
-
} from
|
|
11
|
+
} from "./addons.js";
|
|
12
12
|
export {
|
|
13
13
|
CustomersDefaultPageNumberPagination,
|
|
14
14
|
Customers,
|
|
@@ -17,7 +17,7 @@ export {
|
|
|
17
17
|
type CustomerCreateParams,
|
|
18
18
|
type CustomerUpdateParams,
|
|
19
19
|
type CustomerListParams,
|
|
20
|
-
} from
|
|
20
|
+
} from "./customers/customers.js";
|
|
21
21
|
export {
|
|
22
22
|
DiscountsDefaultPageNumberPagination,
|
|
23
23
|
Discounts,
|
|
@@ -26,7 +26,7 @@ export {
|
|
|
26
26
|
type DiscountCreateParams,
|
|
27
27
|
type DiscountUpdateParams,
|
|
28
28
|
type DiscountListParams,
|
|
29
|
-
} from
|
|
29
|
+
} from "./discounts.js";
|
|
30
30
|
export {
|
|
31
31
|
DisputeListResponsesDefaultPageNumberPagination,
|
|
32
32
|
Disputes,
|
|
@@ -36,15 +36,15 @@ export {
|
|
|
36
36
|
type DisputeRetrieveResponse,
|
|
37
37
|
type DisputeListResponse,
|
|
38
38
|
type DisputeListParams,
|
|
39
|
-
} from
|
|
40
|
-
export { Invoices } from
|
|
39
|
+
} from "./disputes.js";
|
|
40
|
+
export { Invoices } from "./invoices/invoices.js";
|
|
41
41
|
export {
|
|
42
42
|
LicenseKeyInstancesDefaultPageNumberPagination,
|
|
43
43
|
LicenseKeyInstances,
|
|
44
44
|
type LicenseKeyInstance,
|
|
45
45
|
type LicenseKeyInstanceUpdateParams,
|
|
46
46
|
type LicenseKeyInstanceListParams,
|
|
47
|
-
} from
|
|
47
|
+
} from "./license-key-instances.js";
|
|
48
48
|
export {
|
|
49
49
|
LicenseKeysDefaultPageNumberPagination,
|
|
50
50
|
LicenseKeys,
|
|
@@ -52,21 +52,21 @@ export {
|
|
|
52
52
|
type LicenseKeyStatus,
|
|
53
53
|
type LicenseKeyUpdateParams,
|
|
54
54
|
type LicenseKeyListParams,
|
|
55
|
-
} from
|
|
55
|
+
} from "./license-keys.js";
|
|
56
56
|
export {
|
|
57
57
|
Licenses,
|
|
58
58
|
type LicenseValidateResponse,
|
|
59
59
|
type LicenseActivateParams,
|
|
60
60
|
type LicenseDeactivateParams,
|
|
61
61
|
type LicenseValidateParams,
|
|
62
|
-
} from
|
|
62
|
+
} from "./licenses.js";
|
|
63
63
|
export {
|
|
64
64
|
Misc,
|
|
65
65
|
type CountryCode,
|
|
66
66
|
type Currency,
|
|
67
67
|
type TaxCategory,
|
|
68
68
|
type MiscListSupportedCountriesResponse,
|
|
69
|
-
} from
|
|
69
|
+
} from "./misc.js";
|
|
70
70
|
export {
|
|
71
71
|
PaymentListResponsesDefaultPageNumberPagination,
|
|
72
72
|
Payments,
|
|
@@ -82,13 +82,13 @@ export {
|
|
|
82
82
|
type PaymentListResponse,
|
|
83
83
|
type PaymentCreateParams,
|
|
84
84
|
type PaymentListParams,
|
|
85
|
-
} from
|
|
85
|
+
} from "./payments.js";
|
|
86
86
|
export {
|
|
87
87
|
PayoutListResponsesDefaultPageNumberPagination,
|
|
88
88
|
Payouts,
|
|
89
89
|
type PayoutListResponse,
|
|
90
90
|
type PayoutListParams,
|
|
91
|
-
} from
|
|
91
|
+
} from "./payouts.js";
|
|
92
92
|
export {
|
|
93
93
|
ProductListResponsesDefaultPageNumberPagination,
|
|
94
94
|
Products,
|
|
@@ -99,7 +99,7 @@ export {
|
|
|
99
99
|
type ProductCreateParams,
|
|
100
100
|
type ProductUpdateParams,
|
|
101
101
|
type ProductListParams,
|
|
102
|
-
} from
|
|
102
|
+
} from "./products/products.js";
|
|
103
103
|
export {
|
|
104
104
|
RefundsDefaultPageNumberPagination,
|
|
105
105
|
Refunds,
|
|
@@ -107,7 +107,7 @@ export {
|
|
|
107
107
|
type RefundStatus,
|
|
108
108
|
type RefundCreateParams,
|
|
109
109
|
type RefundListParams,
|
|
110
|
-
} from
|
|
110
|
+
} from "./refunds.js";
|
|
111
111
|
export {
|
|
112
112
|
SubscriptionListResponsesDefaultPageNumberPagination,
|
|
113
113
|
Subscriptions,
|
|
@@ -123,10 +123,10 @@ export {
|
|
|
123
123
|
type SubscriptionListParams,
|
|
124
124
|
type SubscriptionChangePlanParams,
|
|
125
125
|
type SubscriptionChargeParams,
|
|
126
|
-
} from
|
|
126
|
+
} from "./subscriptions.js";
|
|
127
127
|
export {
|
|
128
128
|
WebhookEventsDefaultPageNumberPagination,
|
|
129
129
|
WebhookEvents,
|
|
130
130
|
type WebhookEvent,
|
|
131
131
|
type WebhookEventListParams,
|
|
132
|
-
} from
|
|
132
|
+
} from "./webhook-events.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import * as PaymentsAPI from
|
|
5
|
-
import { Payments } from
|
|
3
|
+
import { APIResource } from "../../resource.js";
|
|
4
|
+
import * as PaymentsAPI from "./payments.js";
|
|
5
|
+
import { Payments } from "./payments.js";
|
|
6
6
|
|
|
7
7
|
export class Invoices extends APIResource {
|
|
8
8
|
payments: PaymentsAPI.Payments = new PaymentsAPI.Payments(this._client);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import * as Core from
|
|
5
|
-
import { type Response } from
|
|
3
|
+
import { APIResource } from "../../resource.js";
|
|
4
|
+
import * as Core from "../../core.js";
|
|
5
|
+
import { type Response } from "../../_shims/index.js";
|
|
6
6
|
|
|
7
7
|
export class Payments extends APIResource {
|
|
8
8
|
retrieve(paymentId: string, options?: Core.RequestOptions): Core.APIPromise<Response> {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
6
|
-
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from
|
|
3
|
+
import { APIResource } from "../resource.js";
|
|
4
|
+
import { isRequestOptions } from "../core.js";
|
|
5
|
+
import * as Core from "../core.js";
|
|
6
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from "../pagination.js";
|
|
7
7
|
|
|
8
8
|
export class LicenseKeyInstances extends APIResource {
|
|
9
9
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
6
|
-
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from
|
|
3
|
+
import { APIResource } from "../resource.js";
|
|
4
|
+
import { isRequestOptions } from "../core.js";
|
|
5
|
+
import * as Core from "../core.js";
|
|
6
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from "../pagination.js";
|
|
7
7
|
|
|
8
8
|
export class LicenseKeys extends APIResource {
|
|
9
9
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import * as Core from
|
|
5
|
-
import * as LicenseKeyInstancesAPI from
|
|
3
|
+
import { APIResource } from "../resource.js";
|
|
4
|
+
import * as Core from "../core.js";
|
|
5
|
+
import * as LicenseKeyInstancesAPI from "./license-key-instances.js";
|
|
6
6
|
|
|
7
7
|
export class Licenses extends APIResource {
|
|
8
8
|
/**
|
package/src/resources/misc.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import * as Core from
|
|
3
|
+
import { APIResource } from "../resource.js";
|
|
4
|
+
import * as Core from "../core.js";
|
|
5
5
|
|
|
6
6
|
export class Misc extends APIResource {
|
|
7
7
|
listSupportedCountries(options?: Core.RequestOptions): Core.APIPromise<MiscListSupportedCountriesResponse> {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
6
|
-
import * as DisputesAPI from
|
|
7
|
-
import * as MiscAPI from
|
|
8
|
-
import * as RefundsAPI from
|
|
9
|
-
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from
|
|
3
|
+
import { APIResource } from "../resource.js";
|
|
4
|
+
import { isRequestOptions } from "../core.js";
|
|
5
|
+
import * as Core from "../core.js";
|
|
6
|
+
import * as DisputesAPI from "./disputes.js";
|
|
7
|
+
import * as MiscAPI from "./misc.js";
|
|
8
|
+
import * as RefundsAPI from "./refunds.js";
|
|
9
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from "../pagination.js";
|
|
10
10
|
|
|
11
11
|
export class Payments extends APIResource {
|
|
12
12
|
create(body: PaymentCreateParams, options?: Core.RequestOptions): Core.APIPromise<PaymentCreateResponse> {
|
package/src/resources/payouts.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
6
|
-
import * as MiscAPI from
|
|
7
|
-
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from
|
|
3
|
+
import { APIResource } from "../resource.js";
|
|
4
|
+
import { isRequestOptions } from "../core.js";
|
|
5
|
+
import * as Core from "../core.js";
|
|
6
|
+
import * as MiscAPI from "./misc.js";
|
|
7
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from "../pagination.js";
|
|
8
8
|
|
|
9
9
|
export class Payouts extends APIResource {
|
|
10
10
|
list(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
3
|
+
import { APIResource } from "../../resource.js";
|
|
4
|
+
import { isRequestOptions } from "../../core.js";
|
|
5
|
+
import * as Core from "../../core.js";
|
|
6
6
|
|
|
7
7
|
export class Images extends APIResource {
|
|
8
8
|
update(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Images, type ImageUpdateResponse, type ImageUpdateParams } from
|
|
3
|
+
export { Images, type ImageUpdateResponse, type ImageUpdateParams } from "./images.js";
|
|
4
4
|
export {
|
|
5
5
|
ProductListResponsesDefaultPageNumberPagination,
|
|
6
6
|
Products,
|
|
@@ -11,4 +11,4 @@ export {
|
|
|
11
11
|
type ProductCreateParams,
|
|
12
12
|
type ProductUpdateParams,
|
|
13
13
|
type ProductListParams,
|
|
14
|
-
} from
|
|
14
|
+
} from "./products.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
6
|
-
import * as MiscAPI from
|
|
7
|
-
import * as SubscriptionsAPI from
|
|
8
|
-
import * as ImagesAPI from
|
|
9
|
-
import { ImageUpdateParams, ImageUpdateResponse, Images } from
|
|
10
|
-
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from
|
|
3
|
+
import { APIResource } from "../../resource.js";
|
|
4
|
+
import { isRequestOptions } from "../../core.js";
|
|
5
|
+
import * as Core from "../../core.js";
|
|
6
|
+
import * as MiscAPI from "../misc.js";
|
|
7
|
+
import * as SubscriptionsAPI from "../subscriptions.js";
|
|
8
|
+
import * as ImagesAPI from "./images.js";
|
|
9
|
+
import { ImageUpdateParams, ImageUpdateResponse, Images } from "./images.js";
|
|
10
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from "../../pagination.js";
|
|
11
11
|
|
|
12
12
|
export class Products extends APIResource {
|
|
13
13
|
images: ImagesAPI.Images = new ImagesAPI.Images(this._client);
|
package/src/resources/refunds.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
6
|
-
import * as MiscAPI from
|
|
7
|
-
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from
|
|
3
|
+
import { APIResource } from "../resource.js";
|
|
4
|
+
import { isRequestOptions } from "../core.js";
|
|
5
|
+
import * as Core from "../core.js";
|
|
6
|
+
import * as MiscAPI from "./misc.js";
|
|
7
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from "../pagination.js";
|
|
8
8
|
|
|
9
9
|
export class Refunds extends APIResource {
|
|
10
10
|
create(body: RefundCreateParams, options?: Core.RequestOptions): Core.APIPromise<Refund> {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
6
|
-
import * as MiscAPI from
|
|
7
|
-
import * as PaymentsAPI from
|
|
8
|
-
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from
|
|
3
|
+
import { APIResource } from "../resource.js";
|
|
4
|
+
import { isRequestOptions } from "../core.js";
|
|
5
|
+
import * as Core from "../core.js";
|
|
6
|
+
import * as MiscAPI from "./misc.js";
|
|
7
|
+
import * as PaymentsAPI from "./payments.js";
|
|
8
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from "../pagination.js";
|
|
9
9
|
|
|
10
10
|
export class Subscriptions extends APIResource {
|
|
11
11
|
create(
|
|
@@ -504,6 +504,8 @@ export interface SubscriptionChargeParams {
|
|
|
504
504
|
* cents for USD). For example, to charge $1.00, pass `100`.
|
|
505
505
|
*/
|
|
506
506
|
product_price: number;
|
|
507
|
+
|
|
508
|
+
metadata?: Record<string, string> | null;
|
|
507
509
|
}
|
|
508
510
|
|
|
509
511
|
Subscriptions.SubscriptionListResponsesDefaultPageNumberPagination =
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
6
|
-
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from
|
|
3
|
+
import { APIResource } from "../resource.js";
|
|
4
|
+
import { isRequestOptions } from "../core.js";
|
|
5
|
+
import * as Core from "../core.js";
|
|
6
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from "../pagination.js";
|
|
7
7
|
|
|
8
8
|
export class WebhookEvents extends APIResource {
|
|
9
9
|
retrieve(webhookEventId: string, options?: Core.RequestOptions): Core.APIPromise<WebhookEvent> {
|
package/src/resources.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./resources/index.js";
|
package/src/shims/node.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
|
-
import * as types from
|
|
3
|
-
import { setShims } from
|
|
4
|
-
import { getRuntime } from
|
|
2
|
+
import * as types from "../_shims/node-types.js";
|
|
3
|
+
import { setShims } from "../_shims/registry.js";
|
|
4
|
+
import { getRuntime } from "../_shims/node-runtime.js";
|
|
5
5
|
setShims(getRuntime());
|
|
6
6
|
|
|
7
7
|
declare module '../_shims/manual-types' {
|
package/src/shims/web.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
|
-
import * as types from
|
|
3
|
-
import { setShims } from
|
|
4
|
-
import { getRuntime } from
|
|
2
|
+
import * as types from "../_shims/web-types.js";
|
|
3
|
+
import { setShims } from "../_shims/registry.js";
|
|
4
|
+
import { getRuntime } from "../_shims/web-runtime.js";
|
|
5
5
|
setShims(getRuntime({ manuallyImported: true }));
|
|
6
6
|
|
|
7
7
|
declare module '../_shims/manual-types' {
|
package/src/uploads.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type RequestOptions } from
|
|
1
|
+
import { type RequestOptions } from "./core.js";
|
|
2
2
|
import {
|
|
3
3
|
FormData,
|
|
4
4
|
File,
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
getMultipartRequestOptions,
|
|
8
8
|
type FsReadStream,
|
|
9
9
|
isFsReadStream,
|
|
10
|
-
} from
|
|
11
|
-
import { MultipartBody } from
|
|
12
|
-
export { fileFromPath } from
|
|
10
|
+
} from "./_shims/index.js";
|
|
11
|
+
import { MultipartBody } from "./_shims/MultipartBody.js";
|
|
12
|
+
export { fileFromPath } from "./_shims/index.js";
|
|
13
13
|
|
|
14
14
|
type BlobLikePart = string | ArrayBuffer | ArrayBufferView | BlobLike | Uint8Array | DataView;
|
|
15
15
|
export type BlobPart = string | ArrayBuffer | ArrayBufferView | Blob | Uint8Array | DataView;
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.25.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.25.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.25.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|