@stigg/typescript 0.1.0-alpha.7 → 0.1.0-alpha.8
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 +33 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +7 -0
- package/client.js.map +1 -1
- package/client.mjs +7 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/v1/coupons.d.mts +25 -1
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +25 -1
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +12 -0
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +12 -0
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +2 -2
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +2 -2
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +1 -1
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +1 -1
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +155 -9
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +155 -9
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +11 -4
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +11 -4
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/events/addons/addons.d.mts +605 -0
- package/resources/v1/events/addons/addons.d.mts.map +1 -0
- package/resources/v1/events/addons/addons.d.ts +605 -0
- package/resources/v1/events/addons/addons.d.ts.map +1 -0
- package/resources/v1/events/addons/addons.js +60 -0
- package/resources/v1/events/addons/addons.js.map +1 -0
- package/resources/v1/events/addons/addons.mjs +55 -0
- package/resources/v1/events/addons/addons.mjs.map +1 -0
- package/resources/v1/events/addons/draft.d.mts +121 -0
- package/resources/v1/events/addons/draft.d.mts.map +1 -0
- package/resources/v1/events/addons/draft.d.ts +121 -0
- package/resources/v1/events/addons/draft.d.ts.map +1 -0
- package/resources/v1/events/addons/draft.js +22 -0
- package/resources/v1/events/addons/draft.js.map +1 -0
- package/resources/v1/events/addons/draft.mjs +18 -0
- package/resources/v1/events/addons/draft.mjs.map +1 -0
- package/resources/v1/events/addons/index.d.mts +3 -0
- package/resources/v1/events/addons/index.d.mts.map +1 -0
- package/resources/v1/events/addons/index.d.ts +3 -0
- package/resources/v1/events/addons/index.d.ts.map +1 -0
- package/resources/v1/events/addons/index.js +9 -0
- package/resources/v1/events/addons/index.js.map +1 -0
- package/resources/v1/events/addons/index.mjs +4 -0
- package/resources/v1/events/addons/index.mjs.map +1 -0
- package/resources/v1/events/addons.d.mts +2 -0
- package/resources/v1/events/addons.d.mts.map +1 -0
- package/resources/v1/events/addons.d.ts +2 -0
- package/resources/v1/events/addons.d.ts.map +1 -0
- package/resources/v1/events/addons.js +6 -0
- package/resources/v1/events/addons.js.map +1 -0
- package/resources/v1/events/addons.mjs +3 -0
- package/resources/v1/events/addons.mjs.map +1 -0
- package/resources/v1/events/events.d.mts +75 -0
- package/resources/v1/events/events.d.mts.map +1 -0
- package/resources/v1/events/events.d.ts +75 -0
- package/resources/v1/events/events.d.ts.map +1 -0
- package/resources/v1/events/events.js +32 -0
- package/resources/v1/events/events.js.map +1 -0
- package/resources/v1/events/events.mjs +27 -0
- package/resources/v1/events/events.mjs.map +1 -0
- package/resources/v1/events/features.d.mts +856 -0
- package/resources/v1/events/features.d.mts.map +1 -0
- package/resources/v1/events/features.d.ts +856 -0
- package/resources/v1/events/features.d.ts.map +1 -0
- package/resources/v1/events/features.js +51 -0
- package/resources/v1/events/features.js.map +1 -0
- package/resources/v1/events/features.mjs +47 -0
- package/resources/v1/events/features.mjs.map +1 -0
- package/resources/v1/events/index.d.mts +5 -0
- package/resources/v1/events/index.d.mts.map +1 -0
- package/resources/v1/events/index.d.ts +5 -0
- package/resources/v1/events/index.d.ts.map +1 -0
- package/resources/v1/events/index.js +13 -0
- package/resources/v1/events/index.js.map +1 -0
- package/resources/v1/events/index.mjs +6 -0
- package/resources/v1/events/index.mjs.map +1 -0
- package/resources/v1/events/plans.d.mts +348 -0
- package/resources/v1/events/plans.d.mts.map +1 -0
- package/resources/v1/events/plans.d.ts +348 -0
- package/resources/v1/events/plans.d.ts.map +1 -0
- package/resources/v1/events/plans.js +30 -0
- package/resources/v1/events/plans.js.map +1 -0
- package/resources/v1/events/plans.mjs +26 -0
- package/resources/v1/events/plans.mjs.map +1 -0
- package/resources/v1/events.d.mts +1 -62
- package/resources/v1/events.d.mts.map +1 -1
- package/resources/v1/events.d.ts +1 -62
- package/resources/v1/events.d.ts.map +1 -1
- package/resources/v1/events.js +2 -12
- package/resources/v1/events.js.map +1 -1
- package/resources/v1/events.mjs +1 -10
- package/resources/v1/events.mjs.map +1 -1
- package/resources/v1/index.d.mts +3 -3
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +3 -3
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +4 -4
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/products.d.mts +547 -1
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +547 -1
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +33 -0
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +33 -0
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts +2 -0
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +2 -0
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js +5 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +2 -0
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +34 -0
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -0
- package/resources/v1/subscriptions/invoice.d.ts +34 -0
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -0
- package/resources/v1/subscriptions/invoice.js +17 -0
- package/resources/v1/subscriptions/invoice.js.map +1 -0
- package/resources/v1/subscriptions/invoice.mjs +13 -0
- package/resources/v1/subscriptions/invoice.mjs.map +1 -0
- package/resources/v1/subscriptions/subscriptions.d.mts +15 -7
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +15 -7
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +8 -0
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +8 -0
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +98 -0
- package/resources/v1/subscriptions/usage.d.mts.map +1 -0
- package/resources/v1/subscriptions/usage.d.ts +98 -0
- package/resources/v1/subscriptions/usage.d.ts.map +1 -0
- package/resources/v1/subscriptions/usage.js +24 -0
- package/resources/v1/subscriptions/usage.js.map +1 -0
- package/resources/v1/subscriptions/usage.mjs +20 -0
- package/resources/v1/subscriptions/usage.mjs.map +1 -0
- package/resources/v1/v1.d.mts +6 -6
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +6 -6
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +2 -2
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +2 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +8 -0
- package/src/resources/v1/coupons.ts +32 -0
- package/src/resources/v1/customers/customers.ts +10 -4
- package/src/resources/v1/customers/index.ts +5 -2
- package/src/resources/v1/customers/promotional-entitlements.ts +217 -16
- package/src/resources/v1/events/addons/addons.ts +761 -0
- package/src/resources/v1/events/addons/draft.ts +151 -0
- package/src/resources/v1/events/addons/index.ts +17 -0
- package/src/resources/v1/events/addons.ts +3 -0
- package/src/resources/v1/events/events.ts +160 -0
- package/src/resources/v1/events/features.ts +1066 -0
- package/src/resources/v1/events/index.ts +39 -0
- package/src/resources/v1/events/plans.ts +429 -0
- package/src/resources/v1/events.ts +1 -72
- package/src/resources/v1/index.ts +10 -1
- package/src/resources/v1/products.ts +667 -0
- package/src/resources/v1/subscriptions/index.ts +7 -0
- package/src/resources/v1/subscriptions/invoice.ts +42 -0
- package/src/resources/v1/subscriptions/subscriptions.ts +24 -7
- package/src/resources/v1/subscriptions/usage.ts +126 -0
- package/src/resources/v1/v1.ts +20 -2
- 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
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
6
|
+
import { path } from '../../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Invoice extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Marks the latest invoice of a subscription as paid in the billing provider. The
|
|
11
|
+
* invoice must exist and have an OPEN status.
|
|
12
|
+
*/
|
|
13
|
+
markAsPaid(id: string, options?: RequestOptions): APIPromise<InvoiceMarkAsPaidResponse> {
|
|
14
|
+
return this._client.post(path`/api/v1/subscriptions/${id}/invoice/paid`, options);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Response object
|
|
20
|
+
*/
|
|
21
|
+
export interface InvoiceMarkAsPaidResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Result of marking a subscription invoice as paid.
|
|
24
|
+
*/
|
|
25
|
+
data: InvoiceMarkAsPaidResponse.Data;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export namespace InvoiceMarkAsPaidResponse {
|
|
29
|
+
/**
|
|
30
|
+
* Result of marking a subscription invoice as paid.
|
|
31
|
+
*/
|
|
32
|
+
export interface Data {
|
|
33
|
+
/**
|
|
34
|
+
* The subscription ID whose invoice was marked as paid
|
|
35
|
+
*/
|
|
36
|
+
id: string;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export declare namespace Invoice {
|
|
41
|
+
export { type InvoiceMarkAsPaidResponse as InvoiceMarkAsPaidResponse };
|
|
42
|
+
}
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as FutureUpdateAPI from './future-update';
|
|
5
5
|
import { CancelSubscription, FutureUpdate } from './future-update';
|
|
6
|
+
import * as InvoiceAPI from './invoice';
|
|
7
|
+
import { Invoice, InvoiceMarkAsPaidResponse } from './invoice';
|
|
8
|
+
import * as UsageAPI from './usage';
|
|
9
|
+
import { Usage, UsageChargeUsageParams, UsageChargeUsageResponse, UsageSyncResponse } from './usage';
|
|
6
10
|
import { APIPromise } from '../../../core/api-promise';
|
|
7
11
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../core/pagination';
|
|
8
12
|
import { RequestOptions } from '../../../internal/request-options';
|
|
@@ -10,6 +14,8 @@ import { path } from '../../../internal/utils/path';
|
|
|
10
14
|
|
|
11
15
|
export class Subscriptions extends APIResource {
|
|
12
16
|
futureUpdate: FutureUpdateAPI.FutureUpdate = new FutureUpdateAPI.FutureUpdate(this._client);
|
|
17
|
+
usage: UsageAPI.Usage = new UsageAPI.Usage(this._client);
|
|
18
|
+
invoice: InvoiceAPI.Invoice = new InvoiceAPI.Invoice(this._client);
|
|
13
19
|
|
|
14
20
|
/**
|
|
15
21
|
* Retrieves a subscription by its unique identifier, including plan details,
|
|
@@ -787,7 +793,7 @@ export namespace SubscriptionProvisionResponse {
|
|
|
787
793
|
*/
|
|
788
794
|
id: string;
|
|
789
795
|
|
|
790
|
-
entitlements: Array<Data.
|
|
796
|
+
entitlements: Array<Data.UnionObjectVariant0 | Data.UnionObjectVariant1> | null;
|
|
791
797
|
|
|
792
798
|
/**
|
|
793
799
|
* Provision status: SUCCESS or PAYMENT_REQUIRED
|
|
@@ -816,7 +822,7 @@ export namespace SubscriptionProvisionResponse {
|
|
|
816
822
|
}
|
|
817
823
|
|
|
818
824
|
export namespace Data {
|
|
819
|
-
export interface
|
|
825
|
+
export interface UnionObjectVariant0 {
|
|
820
826
|
accessDeniedReason:
|
|
821
827
|
| 'FeatureNotFound'
|
|
822
828
|
| 'CustomerNotFound'
|
|
@@ -845,7 +851,7 @@ export namespace SubscriptionProvisionResponse {
|
|
|
845
851
|
*/
|
|
846
852
|
entitlementUpdatedAt?: string;
|
|
847
853
|
|
|
848
|
-
feature?:
|
|
854
|
+
feature?: UnionObjectVariant0.Feature;
|
|
849
855
|
|
|
850
856
|
hasUnlimitedUsage?: boolean;
|
|
851
857
|
|
|
@@ -877,7 +883,7 @@ export namespace SubscriptionProvisionResponse {
|
|
|
877
883
|
validUntil?: string;
|
|
878
884
|
}
|
|
879
885
|
|
|
880
|
-
export namespace
|
|
886
|
+
export namespace UnionObjectVariant0 {
|
|
881
887
|
export interface Feature {
|
|
882
888
|
/**
|
|
883
889
|
* The human-readable name of the entitlement, shown in UI elements.
|
|
@@ -901,7 +907,7 @@ export namespace SubscriptionProvisionResponse {
|
|
|
901
907
|
}
|
|
902
908
|
}
|
|
903
909
|
|
|
904
|
-
export interface
|
|
910
|
+
export interface UnionObjectVariant1 {
|
|
905
911
|
accessDeniedReason:
|
|
906
912
|
| 'FeatureNotFound'
|
|
907
913
|
| 'CustomerNotFound'
|
|
@@ -922,7 +928,7 @@ export namespace SubscriptionProvisionResponse {
|
|
|
922
928
|
/**
|
|
923
929
|
* The currency associated with a credit entitlement.
|
|
924
930
|
*/
|
|
925
|
-
currency:
|
|
931
|
+
currency: UnionObjectVariant1.Currency;
|
|
926
932
|
|
|
927
933
|
currentUsage: number;
|
|
928
934
|
|
|
@@ -953,7 +959,7 @@ export namespace SubscriptionProvisionResponse {
|
|
|
953
959
|
validUntil?: string;
|
|
954
960
|
}
|
|
955
961
|
|
|
956
|
-
export namespace
|
|
962
|
+
export namespace UnionObjectVariant1 {
|
|
957
963
|
/**
|
|
958
964
|
* The currency associated with a credit entitlement.
|
|
959
965
|
*/
|
|
@@ -3907,6 +3913,8 @@ export interface SubscriptionTransferParams {
|
|
|
3907
3913
|
}
|
|
3908
3914
|
|
|
3909
3915
|
Subscriptions.FutureUpdate = FutureUpdate;
|
|
3916
|
+
Subscriptions.Usage = Usage;
|
|
3917
|
+
Subscriptions.Invoice = Invoice;
|
|
3910
3918
|
|
|
3911
3919
|
export declare namespace Subscriptions {
|
|
3912
3920
|
export {
|
|
@@ -3928,4 +3936,13 @@ export declare namespace Subscriptions {
|
|
|
3928
3936
|
};
|
|
3929
3937
|
|
|
3930
3938
|
export { FutureUpdate as FutureUpdate, type CancelSubscription as CancelSubscription };
|
|
3939
|
+
|
|
3940
|
+
export {
|
|
3941
|
+
Usage as Usage,
|
|
3942
|
+
type UsageChargeUsageResponse as UsageChargeUsageResponse,
|
|
3943
|
+
type UsageSyncResponse as UsageSyncResponse,
|
|
3944
|
+
type UsageChargeUsageParams as UsageChargeUsageParams,
|
|
3945
|
+
};
|
|
3946
|
+
|
|
3947
|
+
export { Invoice as Invoice, type InvoiceMarkAsPaidResponse as InvoiceMarkAsPaidResponse };
|
|
3931
3948
|
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
6
|
+
import { path } from '../../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Usage extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Immediately charges usage for a subscription via the billing integration.
|
|
11
|
+
* Calculates usage since the last charge and creates an invoice.
|
|
12
|
+
*/
|
|
13
|
+
chargeUsage(
|
|
14
|
+
id: string,
|
|
15
|
+
body: UsageChargeUsageParams,
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): APIPromise<UsageChargeUsageResponse> {
|
|
18
|
+
return this._client.post(path`/api/v1/subscriptions/${id}/usage/charge`, { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Triggers a usage sync for a subscription, reporting current usage to the billing
|
|
23
|
+
* provider.
|
|
24
|
+
*/
|
|
25
|
+
sync(id: string, options?: RequestOptions): APIPromise<UsageSyncResponse> {
|
|
26
|
+
return this._client.post(path`/api/v1/subscriptions/${id}/usage/sync`, options);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Response object
|
|
32
|
+
*/
|
|
33
|
+
export interface UsageChargeUsageResponse {
|
|
34
|
+
/**
|
|
35
|
+
* Result of charging subscription usage including the billing period and charged
|
|
36
|
+
* items.
|
|
37
|
+
*/
|
|
38
|
+
data: UsageChargeUsageResponse.Data;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export namespace UsageChargeUsageResponse {
|
|
42
|
+
/**
|
|
43
|
+
* Result of charging subscription usage including the billing period and charged
|
|
44
|
+
* items.
|
|
45
|
+
*/
|
|
46
|
+
export interface Data {
|
|
47
|
+
/**
|
|
48
|
+
* The invoice ID in the billing integration
|
|
49
|
+
*/
|
|
50
|
+
invoiceBillingId: string | null;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* End of the usage billing period
|
|
54
|
+
*/
|
|
55
|
+
periodEnd: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Start of the usage billing period
|
|
59
|
+
*/
|
|
60
|
+
periodStart: string;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The subscription ID for which usage was charged
|
|
64
|
+
*/
|
|
65
|
+
subscriptionId: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Usage items that were charged
|
|
69
|
+
*/
|
|
70
|
+
usageCharged: Array<Data.UsageCharged>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export namespace Data {
|
|
74
|
+
/**
|
|
75
|
+
* A single usage item that was charged.
|
|
76
|
+
*/
|
|
77
|
+
export interface UsageCharged {
|
|
78
|
+
/**
|
|
79
|
+
* The feature ID for which usage was charged
|
|
80
|
+
*/
|
|
81
|
+
featureId: string | null;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The number of units charged
|
|
85
|
+
*/
|
|
86
|
+
usageAmount: number;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Response object
|
|
93
|
+
*/
|
|
94
|
+
export interface UsageSyncResponse {
|
|
95
|
+
/**
|
|
96
|
+
* Result of triggering a subscription usage sync.
|
|
97
|
+
*/
|
|
98
|
+
data: UsageSyncResponse.Data;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export namespace UsageSyncResponse {
|
|
102
|
+
/**
|
|
103
|
+
* Result of triggering a subscription usage sync.
|
|
104
|
+
*/
|
|
105
|
+
export interface Data {
|
|
106
|
+
/**
|
|
107
|
+
* Whether usage was synced to the billing provider
|
|
108
|
+
*/
|
|
109
|
+
triggered: boolean;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface UsageChargeUsageParams {
|
|
114
|
+
/**
|
|
115
|
+
* Cutoff date for usage calculation. If not provided, the current time is used.
|
|
116
|
+
*/
|
|
117
|
+
untilDate?: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export declare namespace Usage {
|
|
121
|
+
export {
|
|
122
|
+
type UsageChargeUsageResponse as UsageChargeUsageResponse,
|
|
123
|
+
type UsageSyncResponse as UsageSyncResponse,
|
|
124
|
+
type UsageChargeUsageParams as UsageChargeUsageParams,
|
|
125
|
+
};
|
|
126
|
+
}
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -8,15 +8,22 @@ import {
|
|
|
8
8
|
CouponListParams,
|
|
9
9
|
CouponListResponse,
|
|
10
10
|
CouponListResponsesMyCursorIDPage,
|
|
11
|
+
CouponUpdateCouponParams,
|
|
11
12
|
Coupons,
|
|
12
13
|
} from './coupons';
|
|
13
|
-
import * as EventsAPI from './events';
|
|
14
|
-
import { EventReportParams, EventReportResponse, Events } from './events';
|
|
15
14
|
import * as ProductsAPI from './products';
|
|
16
15
|
import {
|
|
16
|
+
ProductArchiveProductResponse,
|
|
17
|
+
ProductCreateProductParams,
|
|
18
|
+
ProductCreateProductResponse,
|
|
19
|
+
ProductDuplicateProductParams,
|
|
20
|
+
ProductDuplicateProductResponse,
|
|
17
21
|
ProductListProductsParams,
|
|
18
22
|
ProductListProductsResponse,
|
|
19
23
|
ProductListProductsResponsesMyCursorIDPage,
|
|
24
|
+
ProductUnarchiveProductResponse,
|
|
25
|
+
ProductUpdateProductParams,
|
|
26
|
+
ProductUpdateProductResponse,
|
|
20
27
|
Products,
|
|
21
28
|
} from './products';
|
|
22
29
|
import * as UsageAPI from './usage';
|
|
@@ -42,6 +49,8 @@ import {
|
|
|
42
49
|
CustomerUpdateParams,
|
|
43
50
|
Customers,
|
|
44
51
|
} from './customers/customers';
|
|
52
|
+
import * as EventsAPI from './events/events';
|
|
53
|
+
import { EventReportParams, EventReportResponse, Events } from './events/events';
|
|
45
54
|
import * as SubscriptionsAPI from './subscriptions/subscriptions';
|
|
46
55
|
import {
|
|
47
56
|
Subscription,
|
|
@@ -120,6 +129,7 @@ export declare namespace V1 {
|
|
|
120
129
|
type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage,
|
|
121
130
|
type CouponCreateParams as CouponCreateParams,
|
|
122
131
|
type CouponListParams as CouponListParams,
|
|
132
|
+
type CouponUpdateCouponParams as CouponUpdateCouponParams,
|
|
123
133
|
};
|
|
124
134
|
|
|
125
135
|
export {
|
|
@@ -138,8 +148,16 @@ export declare namespace V1 {
|
|
|
138
148
|
|
|
139
149
|
export {
|
|
140
150
|
Products as Products,
|
|
151
|
+
type ProductArchiveProductResponse as ProductArchiveProductResponse,
|
|
152
|
+
type ProductCreateProductResponse as ProductCreateProductResponse,
|
|
153
|
+
type ProductDuplicateProductResponse as ProductDuplicateProductResponse,
|
|
141
154
|
type ProductListProductsResponse as ProductListProductsResponse,
|
|
155
|
+
type ProductUnarchiveProductResponse as ProductUnarchiveProductResponse,
|
|
156
|
+
type ProductUpdateProductResponse as ProductUpdateProductResponse,
|
|
142
157
|
type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage,
|
|
158
|
+
type ProductCreateProductParams as ProductCreateProductParams,
|
|
159
|
+
type ProductDuplicateProductParams as ProductDuplicateProductParams,
|
|
143
160
|
type ProductListProductsParams as ProductListProductsParams,
|
|
161
|
+
type ProductUpdateProductParams as ProductUpdateProductParams,
|
|
144
162
|
};
|
|
145
163
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.8'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.8";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.8";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.8'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.8'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|