@whop/sdk 0.0.38 → 0.0.39
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 +20 -0
- package/package.json +1 -1
- package/resources/checkout-configurations.d.mts +4 -4
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +4 -4
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/invoices.d.mts +3 -3
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +3 -3
- package/resources/invoices.d.ts.map +1 -1
- package/resources/memberships.d.mts +6 -0
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +6 -0
- package/resources/memberships.d.ts.map +1 -1
- package/resources/payments.d.mts +6 -1
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +6 -1
- package/resources/payments.d.ts.map +1 -1
- package/resources/plans.d.mts +2 -2
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +2 -2
- package/resources/plans.d.ts.map +1 -1
- package/resources/shared.d.mts +11 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +11 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/support-channels.d.mts +11 -8
- package/resources/support-channels.d.mts.map +1 -1
- package/resources/support-channels.d.ts +11 -8
- package/resources/support-channels.d.ts.map +1 -1
- package/resources/support-channels.js +2 -4
- package/resources/support-channels.js.map +1 -1
- package/resources/support-channels.mjs +2 -4
- package/resources/support-channels.mjs.map +1 -1
- package/src/resources/checkout-configurations.ts +4 -4
- package/src/resources/files.ts +1 -1
- package/src/resources/invoices.ts +3 -3
- package/src/resources/memberships.ts +7 -0
- package/src/resources/payments.ts +7 -0
- package/src/resources/plans.ts +2 -2
- package/src/resources/shared.ts +13 -0
- package/src/resources/support-channels.ts +12 -8
- 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
|
@@ -49,14 +49,12 @@ export declare class SupportChannels extends APIResource {
|
|
|
49
49
|
* @example
|
|
50
50
|
* ```ts
|
|
51
51
|
* // Automatically fetches more pages as needed.
|
|
52
|
-
* for await (const supportChannelListResponse of client.supportChannels.list(
|
|
53
|
-
* { company_id: 'biz_xxxxxxxxxxxxxx' },
|
|
54
|
-
* )) {
|
|
52
|
+
* for await (const supportChannelListResponse of client.supportChannels.list()) {
|
|
55
53
|
* // ...
|
|
56
54
|
* }
|
|
57
55
|
* ```
|
|
58
56
|
*/
|
|
59
|
-
list(query
|
|
57
|
+
list(query?: SupportChannelListParams | null | undefined, options?: RequestOptions): PagePromise<SupportChannelListResponsesCursorPage, SupportChannelListResponse>;
|
|
60
58
|
}
|
|
61
59
|
export type SupportChannelListResponsesCursorPage = CursorPage<SupportChannelListResponse>;
|
|
62
60
|
/**
|
|
@@ -130,14 +128,15 @@ export interface SupportChannelCreateParams {
|
|
|
130
128
|
custom_name?: string | null;
|
|
131
129
|
}
|
|
132
130
|
export interface SupportChannelListParams extends CursorPageParams {
|
|
133
|
-
/**
|
|
134
|
-
* The unique identifier of the company to list support channels for.
|
|
135
|
-
*/
|
|
136
|
-
company_id: string;
|
|
137
131
|
/**
|
|
138
132
|
* Returns the elements in the list that come before the specified cursor.
|
|
139
133
|
*/
|
|
140
134
|
before?: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* The unique identifier of the company to list support channels for. When omitted,
|
|
137
|
+
* returns support channels across all companies the user has access to.
|
|
138
|
+
*/
|
|
139
|
+
company_id?: string | null;
|
|
141
140
|
/**
|
|
142
141
|
* The direction of the sort.
|
|
143
142
|
*/
|
|
@@ -159,6 +158,10 @@ export interface SupportChannelListParams extends CursorPageParams {
|
|
|
159
158
|
* Sort options for message channels
|
|
160
159
|
*/
|
|
161
160
|
order?: 'created_at' | 'last_post_sent_at' | null;
|
|
161
|
+
/**
|
|
162
|
+
* The perspective to filter support channels by.
|
|
163
|
+
*/
|
|
164
|
+
view?: 'all' | 'admin' | 'customer' | null;
|
|
162
165
|
}
|
|
163
166
|
export declare namespace SupportChannels {
|
|
164
167
|
export { type SupportChannelListResponse as SupportChannelListResponse, type SupportChannelListResponsesCursorPage as SupportChannelListResponsesCursorPage, type SupportChannelCreateParams as SupportChannelCreateParams, type SupportChannelListParams as SupportChannelListParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-channels.d.mts","sourceRoot":"","sources":["../src/resources/support-channels.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC;IAIrG;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC;IAIjF
|
|
1
|
+
{"version":3,"file":"support-channels.d.mts","sourceRoot":"","sources":["../src/resources/support-channels.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC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CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,YAAY,GAAG,mBAAmB,GAAG,IAAI,CAAC;IAElD;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,UAAU,GAAG,IAAI,CAAC;CAC5C;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -49,14 +49,12 @@ export declare class SupportChannels extends APIResource {
|
|
|
49
49
|
* @example
|
|
50
50
|
* ```ts
|
|
51
51
|
* // Automatically fetches more pages as needed.
|
|
52
|
-
* for await (const supportChannelListResponse of client.supportChannels.list(
|
|
53
|
-
* { company_id: 'biz_xxxxxxxxxxxxxx' },
|
|
54
|
-
* )) {
|
|
52
|
+
* for await (const supportChannelListResponse of client.supportChannels.list()) {
|
|
55
53
|
* // ...
|
|
56
54
|
* }
|
|
57
55
|
* ```
|
|
58
56
|
*/
|
|
59
|
-
list(query
|
|
57
|
+
list(query?: SupportChannelListParams | null | undefined, options?: RequestOptions): PagePromise<SupportChannelListResponsesCursorPage, SupportChannelListResponse>;
|
|
60
58
|
}
|
|
61
59
|
export type SupportChannelListResponsesCursorPage = CursorPage<SupportChannelListResponse>;
|
|
62
60
|
/**
|
|
@@ -130,14 +128,15 @@ export interface SupportChannelCreateParams {
|
|
|
130
128
|
custom_name?: string | null;
|
|
131
129
|
}
|
|
132
130
|
export interface SupportChannelListParams extends CursorPageParams {
|
|
133
|
-
/**
|
|
134
|
-
* The unique identifier of the company to list support channels for.
|
|
135
|
-
*/
|
|
136
|
-
company_id: string;
|
|
137
131
|
/**
|
|
138
132
|
* Returns the elements in the list that come before the specified cursor.
|
|
139
133
|
*/
|
|
140
134
|
before?: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* The unique identifier of the company to list support channels for. When omitted,
|
|
137
|
+
* returns support channels across all companies the user has access to.
|
|
138
|
+
*/
|
|
139
|
+
company_id?: string | null;
|
|
141
140
|
/**
|
|
142
141
|
* The direction of the sort.
|
|
143
142
|
*/
|
|
@@ -159,6 +158,10 @@ export interface SupportChannelListParams extends CursorPageParams {
|
|
|
159
158
|
* Sort options for message channels
|
|
160
159
|
*/
|
|
161
160
|
order?: 'created_at' | 'last_post_sent_at' | null;
|
|
161
|
+
/**
|
|
162
|
+
* The perspective to filter support channels by.
|
|
163
|
+
*/
|
|
164
|
+
view?: 'all' | 'admin' | 'customer' | null;
|
|
162
165
|
}
|
|
163
166
|
export declare namespace SupportChannels {
|
|
164
167
|
export { type SupportChannelListResponse as SupportChannelListResponse, type SupportChannelListResponsesCursorPage as SupportChannelListResponsesCursorPage, type SupportChannelCreateParams as SupportChannelCreateParams, type SupportChannelListParams as SupportChannelListParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-channels.d.ts","sourceRoot":"","sources":["../src/resources/support-channels.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,eAAgB,SAAQ,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,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -55,14 +55,12 @@ class SupportChannels extends resource_1.APIResource {
|
|
|
55
55
|
* @example
|
|
56
56
|
* ```ts
|
|
57
57
|
* // Automatically fetches more pages as needed.
|
|
58
|
-
* for await (const supportChannelListResponse of client.supportChannels.list(
|
|
59
|
-
* { company_id: 'biz_xxxxxxxxxxxxxx' },
|
|
60
|
-
* )) {
|
|
58
|
+
* for await (const supportChannelListResponse of client.supportChannels.list()) {
|
|
61
59
|
* // ...
|
|
62
60
|
* }
|
|
63
61
|
* ```
|
|
64
62
|
*/
|
|
65
|
-
list(query, options) {
|
|
63
|
+
list(query = {}, options) {
|
|
66
64
|
return this._client.getAPIList('/support_channels', (pagination_1.CursorPage), {
|
|
67
65
|
query,
|
|
68
66
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-channels.js","sourceRoot":"","sources":["../src/resources/support-channels.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAgC,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"support-channels.js","sourceRoot":"","sources":["../src/resources/support-channels.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAgC,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,uBAAsC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA/DD,0CA+DC"}
|
|
@@ -52,14 +52,12 @@ export class SupportChannels extends APIResource {
|
|
|
52
52
|
* @example
|
|
53
53
|
* ```ts
|
|
54
54
|
* // Automatically fetches more pages as needed.
|
|
55
|
-
* for await (const supportChannelListResponse of client.supportChannels.list(
|
|
56
|
-
* { company_id: 'biz_xxxxxxxxxxxxxx' },
|
|
57
|
-
* )) {
|
|
55
|
+
* for await (const supportChannelListResponse of client.supportChannels.list()) {
|
|
58
56
|
* // ...
|
|
59
57
|
* }
|
|
60
58
|
* ```
|
|
61
59
|
*/
|
|
62
|
-
list(query, options) {
|
|
60
|
+
list(query = {}, options) {
|
|
63
61
|
return this._client.getAPIList('/support_channels', (CursorPage), {
|
|
64
62
|
query,
|
|
65
63
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-channels.mjs","sourceRoot":"","sources":["../src/resources/support-channels.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAgC,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"support-channels.mjs","sourceRoot":"","sources":["../src/resources/support-channels.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAgC,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,UAAsC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -496,7 +496,7 @@ export declare namespace CheckoutConfigurationCreateParams {
|
|
|
496
496
|
* in this configuration. The full list of default payment methods can be found in
|
|
497
497
|
* the documentation at docs.whop.com/payments.
|
|
498
498
|
*/
|
|
499
|
-
include_platform_defaults
|
|
499
|
+
include_platform_defaults?: boolean | null;
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
/**
|
|
@@ -615,7 +615,7 @@ export declare namespace CheckoutConfigurationCreateParams {
|
|
|
615
615
|
* in this configuration. The full list of default payment methods can be found in
|
|
616
616
|
* the documentation at docs.whop.com/payments.
|
|
617
617
|
*/
|
|
618
|
-
include_platform_defaults
|
|
618
|
+
include_platform_defaults?: boolean | null;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
|
|
@@ -718,7 +718,7 @@ export declare namespace CheckoutConfigurationCreateParams {
|
|
|
718
718
|
* in this configuration. The full list of default payment methods can be found in
|
|
719
719
|
* the documentation at docs.whop.com/payments.
|
|
720
720
|
*/
|
|
721
|
-
include_platform_defaults
|
|
721
|
+
include_platform_defaults?: boolean | null;
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
724
|
|
|
@@ -816,7 +816,7 @@ export declare namespace CheckoutConfigurationCreateParams {
|
|
|
816
816
|
* in this configuration. The full list of default payment methods can be found in
|
|
817
817
|
* the documentation at docs.whop.com/payments.
|
|
818
818
|
*/
|
|
819
|
-
include_platform_defaults
|
|
819
|
+
include_platform_defaults?: boolean | null;
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
822
|
}
|
package/src/resources/files.ts
CHANGED
|
@@ -43,7 +43,7 @@ export class Files extends APIResource {
|
|
|
43
43
|
/**
|
|
44
44
|
* The upload status of a file
|
|
45
45
|
*/
|
|
46
|
-
export type UploadStatus = 'pending' | 'processing' | 'ready' | 'failed'
|
|
46
|
+
export type UploadStatus = 'pending' | 'processing' | 'ready' | 'failed'
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* A file that has been uploaded or is pending upload.
|
|
@@ -562,7 +562,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
562
562
|
* in this configuration. The full list of default payment methods can be found in
|
|
563
563
|
* the documentation at docs.whop.com/payments.
|
|
564
564
|
*/
|
|
565
|
-
include_platform_defaults
|
|
565
|
+
include_platform_defaults?: boolean | null;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
|
|
@@ -908,7 +908,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
908
908
|
* in this configuration. The full list of default payment methods can be found in
|
|
909
909
|
* the documentation at docs.whop.com/payments.
|
|
910
910
|
*/
|
|
911
|
-
include_platform_defaults
|
|
911
|
+
include_platform_defaults?: boolean | null;
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
914
|
|
|
@@ -1282,7 +1282,7 @@ export namespace InvoiceUpdateParams {
|
|
|
1282
1282
|
* in this configuration. The full list of default payment methods can be found in
|
|
1283
1283
|
* the documentation at docs.whop.com/payments.
|
|
1284
1284
|
*/
|
|
1285
|
-
include_platform_defaults
|
|
1285
|
+
include_platform_defaults?: boolean | null;
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
@@ -246,6 +246,13 @@ export interface MembershipListResponse {
|
|
|
246
246
|
*/
|
|
247
247
|
cancellation_reason: string | null;
|
|
248
248
|
|
|
249
|
+
/**
|
|
250
|
+
* The ID of the checkout session/configuration that produced this membership, if
|
|
251
|
+
* any. Use this to map memberships back to the checkout configuration that created
|
|
252
|
+
* them.
|
|
253
|
+
*/
|
|
254
|
+
checkout_configuration_id: string | null;
|
|
255
|
+
|
|
249
256
|
/**
|
|
250
257
|
* The company this membership belongs to.
|
|
251
258
|
*/
|
|
@@ -322,6 +322,7 @@ export type PaymentMethodTypes =
|
|
|
322
322
|
| 'interac'
|
|
323
323
|
| 'kakao_pay'
|
|
324
324
|
| 'klarna'
|
|
325
|
+
| 'klarna_pay_now'
|
|
325
326
|
| 'konbini'
|
|
326
327
|
| 'kr_card'
|
|
327
328
|
| 'kr_market'
|
|
@@ -436,6 +437,12 @@ export interface PaymentListResponse {
|
|
|
436
437
|
*/
|
|
437
438
|
card_last4: string | null;
|
|
438
439
|
|
|
440
|
+
/**
|
|
441
|
+
* The ID of the checkout session/configuration that produced this payment, if any.
|
|
442
|
+
* Use this to map payments back to the checkout configuration that created them.
|
|
443
|
+
*/
|
|
444
|
+
checkout_configuration_id: string | null;
|
|
445
|
+
|
|
439
446
|
/**
|
|
440
447
|
* The company for the payment.
|
|
441
448
|
*/
|
package/src/resources/plans.ts
CHANGED
|
@@ -578,7 +578,7 @@ export namespace PlanCreateParams {
|
|
|
578
578
|
* in this configuration. The full list of default payment methods can be found in
|
|
579
579
|
* the documentation at docs.whop.com/payments.
|
|
580
580
|
*/
|
|
581
|
-
include_platform_defaults
|
|
581
|
+
include_platform_defaults?: boolean | null;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
584
|
|
|
@@ -787,7 +787,7 @@ export namespace PlanUpdateParams {
|
|
|
787
787
|
* in this configuration. The full list of default payment methods can be found in
|
|
788
788
|
* the documentation at docs.whop.com/payments.
|
|
789
789
|
*/
|
|
790
|
-
include_platform_defaults
|
|
790
|
+
include_platform_defaults?: boolean | null;
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
793
|
|
package/src/resources/shared.ts
CHANGED
|
@@ -1872,6 +1872,13 @@ export interface Membership {
|
|
|
1872
1872
|
*/
|
|
1873
1873
|
cancellation_reason: string | null;
|
|
1874
1874
|
|
|
1875
|
+
/**
|
|
1876
|
+
* The ID of the checkout session/configuration that produced this membership, if
|
|
1877
|
+
* any. Use this to map memberships back to the checkout configuration that created
|
|
1878
|
+
* them.
|
|
1879
|
+
*/
|
|
1880
|
+
checkout_configuration_id: string | null;
|
|
1881
|
+
|
|
1875
1882
|
/**
|
|
1876
1883
|
* The company this membership belongs to.
|
|
1877
1884
|
*/
|
|
@@ -2339,6 +2346,12 @@ export interface Payment {
|
|
|
2339
2346
|
*/
|
|
2340
2347
|
card_last4: string | null;
|
|
2341
2348
|
|
|
2349
|
+
/**
|
|
2350
|
+
* The ID of the checkout session/configuration that produced this payment, if any.
|
|
2351
|
+
* Use this to map payments back to the checkout configuration that created them.
|
|
2352
|
+
*/
|
|
2353
|
+
checkout_configuration_id: string | null;
|
|
2354
|
+
|
|
2342
2355
|
/**
|
|
2343
2356
|
* The company for the payment.
|
|
2344
2357
|
*/
|
|
@@ -59,15 +59,13 @@ export class SupportChannels extends APIResource {
|
|
|
59
59
|
* @example
|
|
60
60
|
* ```ts
|
|
61
61
|
* // Automatically fetches more pages as needed.
|
|
62
|
-
* for await (const supportChannelListResponse of client.supportChannels.list(
|
|
63
|
-
* { company_id: 'biz_xxxxxxxxxxxxxx' },
|
|
64
|
-
* )) {
|
|
62
|
+
* for await (const supportChannelListResponse of client.supportChannels.list()) {
|
|
65
63
|
* // ...
|
|
66
64
|
* }
|
|
67
65
|
* ```
|
|
68
66
|
*/
|
|
69
67
|
list(
|
|
70
|
-
query: SupportChannelListParams,
|
|
68
|
+
query: SupportChannelListParams | null | undefined = {},
|
|
71
69
|
options?: RequestOptions,
|
|
72
70
|
): PagePromise<SupportChannelListResponsesCursorPage, SupportChannelListResponse> {
|
|
73
71
|
return this._client.getAPIList('/support_channels', CursorPage<SupportChannelListResponse>, {
|
|
@@ -163,14 +161,15 @@ export interface SupportChannelCreateParams {
|
|
|
163
161
|
|
|
164
162
|
export interface SupportChannelListParams extends CursorPageParams {
|
|
165
163
|
/**
|
|
166
|
-
*
|
|
164
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
167
165
|
*/
|
|
168
|
-
|
|
166
|
+
before?: string | null;
|
|
169
167
|
|
|
170
168
|
/**
|
|
171
|
-
*
|
|
169
|
+
* The unique identifier of the company to list support channels for. When omitted,
|
|
170
|
+
* returns support channels across all companies the user has access to.
|
|
172
171
|
*/
|
|
173
|
-
|
|
172
|
+
company_id?: string | null;
|
|
174
173
|
|
|
175
174
|
/**
|
|
176
175
|
* The direction of the sort.
|
|
@@ -197,6 +196,11 @@ export interface SupportChannelListParams extends CursorPageParams {
|
|
|
197
196
|
* Sort options for message channels
|
|
198
197
|
*/
|
|
199
198
|
order?: 'created_at' | 'last_post_sent_at' | null;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The perspective to filter support channels by.
|
|
202
|
+
*/
|
|
203
|
+
view?: 'all' | 'admin' | 'customer' | null;
|
|
200
204
|
}
|
|
201
205
|
|
|
202
206
|
export declare namespace SupportChannels {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.0.
|
|
1
|
+
export const VERSION = '0.0.39'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.39";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.39";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.0.
|
|
1
|
+
export const VERSION = '0.0.39'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|