@whop/sdk 0.0.1-canary.0 → 0.0.2
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/client.d.mts +16 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +16 -3
- package/client.d.ts.map +1 -1
- package/client.js +7 -1
- package/client.js.map +1 -1
- package/client.mjs +7 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +16 -0
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +16 -0
- package/resources/apps.d.ts.map +1 -1
- package/resources/checkout-configurations.d.mts +21 -18
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +21 -18
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +1 -1
- package/resources/checkout-configurations.mjs +1 -1
- package/resources/experiences.d.mts +32 -0
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +32 -0
- package/resources/experiences.d.ts.map +1 -1
- package/resources/forums.d.mts +112 -0
- package/resources/forums.d.mts.map +1 -0
- package/resources/forums.d.ts +112 -0
- package/resources/forums.d.ts.map +1 -0
- package/resources/forums.js +41 -0
- package/resources/forums.js.map +1 -0
- package/resources/forums.mjs +37 -0
- package/resources/forums.mjs.map +1 -0
- package/resources/index.d.mts +3 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +5 -2
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +5 -2
- package/resources/invoices.d.ts.map +1 -1
- package/resources/members.d.mts +270 -0
- package/resources/members.d.mts.map +1 -0
- package/resources/members.d.ts +270 -0
- package/resources/members.d.ts.map +1 -0
- package/resources/members.js +35 -0
- package/resources/members.js.map +1 -0
- package/resources/members.mjs +31 -0
- package/resources/members.mjs.map +1 -0
- package/resources/plans.d.mts +5 -2
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +5 -2
- package/resources/plans.d.ts.map +1 -1
- package/resources/shared.d.mts +176 -11
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +176 -11
- package/resources/shared.d.ts.map +1 -1
- package/resources/users.d.mts +18 -1
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +18 -1
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/webhooks.d.mts +224 -2
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +224 -2
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +63 -2
- package/src/resources/apps.ts +18 -0
- package/src/resources/checkout-configurations.ts +21 -18
- package/src/resources/experiences.ts +36 -0
- package/src/resources/forums.ts +152 -0
- package/src/resources/index.ts +24 -0
- package/src/resources/invoices.ts +5 -2
- package/src/resources/members.ts +337 -0
- package/src/resources/plans.ts +5 -2
- package/src/resources/shared.ts +217 -11
- package/src/resources/users.ts +20 -1
- package/src/resources/webhooks.ts +293 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as Shared from "./shared.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.mjs";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
|
+
export declare class Members extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves a member of a company by ID
|
|
9
|
+
*
|
|
10
|
+
* Required permissions:
|
|
11
|
+
*
|
|
12
|
+
* - `member:basic:read`
|
|
13
|
+
* - `member:email:read`
|
|
14
|
+
* - `member:phone:read`
|
|
15
|
+
*/
|
|
16
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<MemberRetrieveResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* List the members of a company
|
|
19
|
+
*
|
|
20
|
+
* Required permissions:
|
|
21
|
+
*
|
|
22
|
+
* - `member:basic:read`
|
|
23
|
+
* - `member:email:read`
|
|
24
|
+
* - `member:phone:read`
|
|
25
|
+
*/
|
|
26
|
+
list(query: MemberListParams, options?: RequestOptions): PagePromise<MemberListResponsesCursorPage, MemberListResponse>;
|
|
27
|
+
}
|
|
28
|
+
export type MemberListResponsesCursorPage = CursorPage<MemberListResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* An object representing a connection between a creator and a user/company_buyer.
|
|
31
|
+
* This type should only be made visible to the user/company_buyer who is a part of
|
|
32
|
+
* the connection.
|
|
33
|
+
*/
|
|
34
|
+
export interface MemberRetrieveResponse {
|
|
35
|
+
/**
|
|
36
|
+
* The ID of the member
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* The access level of the product member. If its admin, the member is an
|
|
41
|
+
* authorized user of the access pass. If its customer, the member has a valid
|
|
42
|
+
* membership to the access pass. If its no_access, the member does not have access
|
|
43
|
+
* to the access pass.
|
|
44
|
+
*/
|
|
45
|
+
access_level: Shared.AccessLevel;
|
|
46
|
+
/**
|
|
47
|
+
* The company for the member.
|
|
48
|
+
*/
|
|
49
|
+
company: MemberRetrieveResponse.Company;
|
|
50
|
+
/**
|
|
51
|
+
* When the member was created
|
|
52
|
+
*/
|
|
53
|
+
created_at: string;
|
|
54
|
+
/**
|
|
55
|
+
* When the member joined the company
|
|
56
|
+
*/
|
|
57
|
+
joined_at: string;
|
|
58
|
+
/**
|
|
59
|
+
* The different most recent actions a member can have.
|
|
60
|
+
*/
|
|
61
|
+
most_recent_action: Shared.MemberMostRecentActions | null;
|
|
62
|
+
/**
|
|
63
|
+
* The time for the most recent action, if applicable.
|
|
64
|
+
*/
|
|
65
|
+
most_recent_action_at: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* The phone number for the member, if available.
|
|
68
|
+
*/
|
|
69
|
+
phone: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* The status of the member
|
|
72
|
+
*/
|
|
73
|
+
status: Shared.MemberStatuses;
|
|
74
|
+
/**
|
|
75
|
+
* The timestamp of when this member was last updated
|
|
76
|
+
*/
|
|
77
|
+
updated_at: string;
|
|
78
|
+
/**
|
|
79
|
+
* How much money this customer has spent on the company's products and plans
|
|
80
|
+
*/
|
|
81
|
+
usd_total_spent: number;
|
|
82
|
+
/**
|
|
83
|
+
* The user for this member, if any.
|
|
84
|
+
*/
|
|
85
|
+
user: MemberRetrieveResponse.User | null;
|
|
86
|
+
}
|
|
87
|
+
export declare namespace MemberRetrieveResponse {
|
|
88
|
+
/**
|
|
89
|
+
* The company for the member.
|
|
90
|
+
*/
|
|
91
|
+
interface Company {
|
|
92
|
+
/**
|
|
93
|
+
* The ID of the company
|
|
94
|
+
*/
|
|
95
|
+
id: string;
|
|
96
|
+
/**
|
|
97
|
+
* The slug/route of the company on the Whop site.
|
|
98
|
+
*/
|
|
99
|
+
route: string;
|
|
100
|
+
/**
|
|
101
|
+
* The written name of the company.
|
|
102
|
+
*/
|
|
103
|
+
title: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* The user for this member, if any.
|
|
107
|
+
*/
|
|
108
|
+
interface User {
|
|
109
|
+
/**
|
|
110
|
+
* The internal ID of the user account.
|
|
111
|
+
*/
|
|
112
|
+
id: string;
|
|
113
|
+
/**
|
|
114
|
+
* The digital mailing address of the user.
|
|
115
|
+
*/
|
|
116
|
+
email: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* The user's full name.
|
|
119
|
+
*/
|
|
120
|
+
name: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* The whop username.
|
|
123
|
+
*/
|
|
124
|
+
username: string;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* An object representing a connection between a creator and a user/company_buyer.
|
|
129
|
+
* This type should only be made visible to the user/company_buyer who is a part of
|
|
130
|
+
* the connection.
|
|
131
|
+
*/
|
|
132
|
+
export interface MemberListResponse {
|
|
133
|
+
/**
|
|
134
|
+
* The ID of the member
|
|
135
|
+
*/
|
|
136
|
+
id: string;
|
|
137
|
+
/**
|
|
138
|
+
* The access level of the product member. If its admin, the member is an
|
|
139
|
+
* authorized user of the access pass. If its customer, the member has a valid
|
|
140
|
+
* membership to the access pass. If its no_access, the member does not have access
|
|
141
|
+
* to the access pass.
|
|
142
|
+
*/
|
|
143
|
+
access_level: Shared.AccessLevel;
|
|
144
|
+
/**
|
|
145
|
+
* When the member was created
|
|
146
|
+
*/
|
|
147
|
+
created_at: string;
|
|
148
|
+
/**
|
|
149
|
+
* When the member joined the company
|
|
150
|
+
*/
|
|
151
|
+
joined_at: string;
|
|
152
|
+
/**
|
|
153
|
+
* The different most recent actions a member can have.
|
|
154
|
+
*/
|
|
155
|
+
most_recent_action: Shared.MemberMostRecentActions | null;
|
|
156
|
+
/**
|
|
157
|
+
* The time for the most recent action, if applicable.
|
|
158
|
+
*/
|
|
159
|
+
most_recent_action_at: string | null;
|
|
160
|
+
/**
|
|
161
|
+
* The phone number for the member, if available.
|
|
162
|
+
*/
|
|
163
|
+
phone: string | null;
|
|
164
|
+
/**
|
|
165
|
+
* The status of the member
|
|
166
|
+
*/
|
|
167
|
+
status: Shared.MemberStatuses;
|
|
168
|
+
/**
|
|
169
|
+
* The timestamp of when this member was last updated
|
|
170
|
+
*/
|
|
171
|
+
updated_at: string;
|
|
172
|
+
/**
|
|
173
|
+
* How much money this customer has spent on the company's products and plans
|
|
174
|
+
*/
|
|
175
|
+
usd_total_spent: number;
|
|
176
|
+
/**
|
|
177
|
+
* The user for this member, if any.
|
|
178
|
+
*/
|
|
179
|
+
user: MemberListResponse.User | null;
|
|
180
|
+
}
|
|
181
|
+
export declare namespace MemberListResponse {
|
|
182
|
+
/**
|
|
183
|
+
* The user for this member, if any.
|
|
184
|
+
*/
|
|
185
|
+
interface User {
|
|
186
|
+
/**
|
|
187
|
+
* The internal ID of the user account.
|
|
188
|
+
*/
|
|
189
|
+
id: string;
|
|
190
|
+
/**
|
|
191
|
+
* The digital mailing address of the user.
|
|
192
|
+
*/
|
|
193
|
+
email: string | null;
|
|
194
|
+
/**
|
|
195
|
+
* The user's full name.
|
|
196
|
+
*/
|
|
197
|
+
name: string | null;
|
|
198
|
+
/**
|
|
199
|
+
* The whop username.
|
|
200
|
+
*/
|
|
201
|
+
username: string;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
export interface MemberListParams extends CursorPageParams {
|
|
205
|
+
/**
|
|
206
|
+
* The ID of the company to list members for
|
|
207
|
+
*/
|
|
208
|
+
company_id: string;
|
|
209
|
+
/**
|
|
210
|
+
* The access level a given user (or company) has to an access pass or company.
|
|
211
|
+
*/
|
|
212
|
+
access_level?: Shared.AccessLevel | null;
|
|
213
|
+
/**
|
|
214
|
+
* The access pass IDs to filter the members by
|
|
215
|
+
*/
|
|
216
|
+
access_pass_ids?: Array<string> | null;
|
|
217
|
+
/**
|
|
218
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
219
|
+
*/
|
|
220
|
+
before?: string | null;
|
|
221
|
+
/**
|
|
222
|
+
* The minimum creation date to filter by
|
|
223
|
+
*/
|
|
224
|
+
created_after?: string | null;
|
|
225
|
+
/**
|
|
226
|
+
* The maximum creation date to filter by
|
|
227
|
+
*/
|
|
228
|
+
created_before?: string | null;
|
|
229
|
+
/**
|
|
230
|
+
* The direction of the sort.
|
|
231
|
+
*/
|
|
232
|
+
direction?: Shared.Direction | null;
|
|
233
|
+
/**
|
|
234
|
+
* Returns the first _n_ elements from the list.
|
|
235
|
+
*/
|
|
236
|
+
first?: number | null;
|
|
237
|
+
/**
|
|
238
|
+
* Returns the last _n_ elements from the list.
|
|
239
|
+
*/
|
|
240
|
+
last?: number | null;
|
|
241
|
+
/**
|
|
242
|
+
* The most recent actions to filter the members by
|
|
243
|
+
*/
|
|
244
|
+
most_recent_actions?: Array<Shared.MemberMostRecentActions> | null;
|
|
245
|
+
/**
|
|
246
|
+
* Which columns can be used to sort.
|
|
247
|
+
*/
|
|
248
|
+
order?: 'id' | 'usd_total_spent' | 'created_at' | 'joined_at' | 'most_recent_action' | null;
|
|
249
|
+
/**
|
|
250
|
+
* The plan IDs to filter the members by
|
|
251
|
+
*/
|
|
252
|
+
plan_ids?: Array<string> | null;
|
|
253
|
+
/**
|
|
254
|
+
* The promo code IDs to filter the members by
|
|
255
|
+
*/
|
|
256
|
+
promo_code_ids?: Array<string> | null;
|
|
257
|
+
/**
|
|
258
|
+
* The name, username, or email to filter the members by. The email filter will
|
|
259
|
+
* only apply if the current actor has the `member:email:read` permission.
|
|
260
|
+
*/
|
|
261
|
+
query?: string | null;
|
|
262
|
+
/**
|
|
263
|
+
* The statuses to filter the members by
|
|
264
|
+
*/
|
|
265
|
+
statuses?: Array<Shared.MemberStatuses> | null;
|
|
266
|
+
}
|
|
267
|
+
export declare namespace Members {
|
|
268
|
+
export { type MemberRetrieveResponse as MemberRetrieveResponse, type MemberListResponse as MemberListResponse, type MemberListResponsesCursorPage as MemberListResponsesCursorPage, type MemberListParams as MemberListParams, };
|
|
269
|
+
}
|
|
270
|
+
//# sourceMappingURL=members.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"members.d.mts","sourceRoot":"","sources":["../src/resources/members.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,qBAAa,OAA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ACH"}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as Shared from "./shared.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
6
|
+
export declare class Members extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves a member of a company by ID
|
|
9
|
+
*
|
|
10
|
+
* Required permissions:
|
|
11
|
+
*
|
|
12
|
+
* - `member:basic:read`
|
|
13
|
+
* - `member:email:read`
|
|
14
|
+
* - `member:phone:read`
|
|
15
|
+
*/
|
|
16
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<MemberRetrieveResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* List the members of a company
|
|
19
|
+
*
|
|
20
|
+
* Required permissions:
|
|
21
|
+
*
|
|
22
|
+
* - `member:basic:read`
|
|
23
|
+
* - `member:email:read`
|
|
24
|
+
* - `member:phone:read`
|
|
25
|
+
*/
|
|
26
|
+
list(query: MemberListParams, options?: RequestOptions): PagePromise<MemberListResponsesCursorPage, MemberListResponse>;
|
|
27
|
+
}
|
|
28
|
+
export type MemberListResponsesCursorPage = CursorPage<MemberListResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* An object representing a connection between a creator and a user/company_buyer.
|
|
31
|
+
* This type should only be made visible to the user/company_buyer who is a part of
|
|
32
|
+
* the connection.
|
|
33
|
+
*/
|
|
34
|
+
export interface MemberRetrieveResponse {
|
|
35
|
+
/**
|
|
36
|
+
* The ID of the member
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* The access level of the product member. If its admin, the member is an
|
|
41
|
+
* authorized user of the access pass. If its customer, the member has a valid
|
|
42
|
+
* membership to the access pass. If its no_access, the member does not have access
|
|
43
|
+
* to the access pass.
|
|
44
|
+
*/
|
|
45
|
+
access_level: Shared.AccessLevel;
|
|
46
|
+
/**
|
|
47
|
+
* The company for the member.
|
|
48
|
+
*/
|
|
49
|
+
company: MemberRetrieveResponse.Company;
|
|
50
|
+
/**
|
|
51
|
+
* When the member was created
|
|
52
|
+
*/
|
|
53
|
+
created_at: string;
|
|
54
|
+
/**
|
|
55
|
+
* When the member joined the company
|
|
56
|
+
*/
|
|
57
|
+
joined_at: string;
|
|
58
|
+
/**
|
|
59
|
+
* The different most recent actions a member can have.
|
|
60
|
+
*/
|
|
61
|
+
most_recent_action: Shared.MemberMostRecentActions | null;
|
|
62
|
+
/**
|
|
63
|
+
* The time for the most recent action, if applicable.
|
|
64
|
+
*/
|
|
65
|
+
most_recent_action_at: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* The phone number for the member, if available.
|
|
68
|
+
*/
|
|
69
|
+
phone: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* The status of the member
|
|
72
|
+
*/
|
|
73
|
+
status: Shared.MemberStatuses;
|
|
74
|
+
/**
|
|
75
|
+
* The timestamp of when this member was last updated
|
|
76
|
+
*/
|
|
77
|
+
updated_at: string;
|
|
78
|
+
/**
|
|
79
|
+
* How much money this customer has spent on the company's products and plans
|
|
80
|
+
*/
|
|
81
|
+
usd_total_spent: number;
|
|
82
|
+
/**
|
|
83
|
+
* The user for this member, if any.
|
|
84
|
+
*/
|
|
85
|
+
user: MemberRetrieveResponse.User | null;
|
|
86
|
+
}
|
|
87
|
+
export declare namespace MemberRetrieveResponse {
|
|
88
|
+
/**
|
|
89
|
+
* The company for the member.
|
|
90
|
+
*/
|
|
91
|
+
interface Company {
|
|
92
|
+
/**
|
|
93
|
+
* The ID of the company
|
|
94
|
+
*/
|
|
95
|
+
id: string;
|
|
96
|
+
/**
|
|
97
|
+
* The slug/route of the company on the Whop site.
|
|
98
|
+
*/
|
|
99
|
+
route: string;
|
|
100
|
+
/**
|
|
101
|
+
* The written name of the company.
|
|
102
|
+
*/
|
|
103
|
+
title: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* The user for this member, if any.
|
|
107
|
+
*/
|
|
108
|
+
interface User {
|
|
109
|
+
/**
|
|
110
|
+
* The internal ID of the user account.
|
|
111
|
+
*/
|
|
112
|
+
id: string;
|
|
113
|
+
/**
|
|
114
|
+
* The digital mailing address of the user.
|
|
115
|
+
*/
|
|
116
|
+
email: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* The user's full name.
|
|
119
|
+
*/
|
|
120
|
+
name: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* The whop username.
|
|
123
|
+
*/
|
|
124
|
+
username: string;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* An object representing a connection between a creator and a user/company_buyer.
|
|
129
|
+
* This type should only be made visible to the user/company_buyer who is a part of
|
|
130
|
+
* the connection.
|
|
131
|
+
*/
|
|
132
|
+
export interface MemberListResponse {
|
|
133
|
+
/**
|
|
134
|
+
* The ID of the member
|
|
135
|
+
*/
|
|
136
|
+
id: string;
|
|
137
|
+
/**
|
|
138
|
+
* The access level of the product member. If its admin, the member is an
|
|
139
|
+
* authorized user of the access pass. If its customer, the member has a valid
|
|
140
|
+
* membership to the access pass. If its no_access, the member does not have access
|
|
141
|
+
* to the access pass.
|
|
142
|
+
*/
|
|
143
|
+
access_level: Shared.AccessLevel;
|
|
144
|
+
/**
|
|
145
|
+
* When the member was created
|
|
146
|
+
*/
|
|
147
|
+
created_at: string;
|
|
148
|
+
/**
|
|
149
|
+
* When the member joined the company
|
|
150
|
+
*/
|
|
151
|
+
joined_at: string;
|
|
152
|
+
/**
|
|
153
|
+
* The different most recent actions a member can have.
|
|
154
|
+
*/
|
|
155
|
+
most_recent_action: Shared.MemberMostRecentActions | null;
|
|
156
|
+
/**
|
|
157
|
+
* The time for the most recent action, if applicable.
|
|
158
|
+
*/
|
|
159
|
+
most_recent_action_at: string | null;
|
|
160
|
+
/**
|
|
161
|
+
* The phone number for the member, if available.
|
|
162
|
+
*/
|
|
163
|
+
phone: string | null;
|
|
164
|
+
/**
|
|
165
|
+
* The status of the member
|
|
166
|
+
*/
|
|
167
|
+
status: Shared.MemberStatuses;
|
|
168
|
+
/**
|
|
169
|
+
* The timestamp of when this member was last updated
|
|
170
|
+
*/
|
|
171
|
+
updated_at: string;
|
|
172
|
+
/**
|
|
173
|
+
* How much money this customer has spent on the company's products and plans
|
|
174
|
+
*/
|
|
175
|
+
usd_total_spent: number;
|
|
176
|
+
/**
|
|
177
|
+
* The user for this member, if any.
|
|
178
|
+
*/
|
|
179
|
+
user: MemberListResponse.User | null;
|
|
180
|
+
}
|
|
181
|
+
export declare namespace MemberListResponse {
|
|
182
|
+
/**
|
|
183
|
+
* The user for this member, if any.
|
|
184
|
+
*/
|
|
185
|
+
interface User {
|
|
186
|
+
/**
|
|
187
|
+
* The internal ID of the user account.
|
|
188
|
+
*/
|
|
189
|
+
id: string;
|
|
190
|
+
/**
|
|
191
|
+
* The digital mailing address of the user.
|
|
192
|
+
*/
|
|
193
|
+
email: string | null;
|
|
194
|
+
/**
|
|
195
|
+
* The user's full name.
|
|
196
|
+
*/
|
|
197
|
+
name: string | null;
|
|
198
|
+
/**
|
|
199
|
+
* The whop username.
|
|
200
|
+
*/
|
|
201
|
+
username: string;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
export interface MemberListParams extends CursorPageParams {
|
|
205
|
+
/**
|
|
206
|
+
* The ID of the company to list members for
|
|
207
|
+
*/
|
|
208
|
+
company_id: string;
|
|
209
|
+
/**
|
|
210
|
+
* The access level a given user (or company) has to an access pass or company.
|
|
211
|
+
*/
|
|
212
|
+
access_level?: Shared.AccessLevel | null;
|
|
213
|
+
/**
|
|
214
|
+
* The access pass IDs to filter the members by
|
|
215
|
+
*/
|
|
216
|
+
access_pass_ids?: Array<string> | null;
|
|
217
|
+
/**
|
|
218
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
219
|
+
*/
|
|
220
|
+
before?: string | null;
|
|
221
|
+
/**
|
|
222
|
+
* The minimum creation date to filter by
|
|
223
|
+
*/
|
|
224
|
+
created_after?: string | null;
|
|
225
|
+
/**
|
|
226
|
+
* The maximum creation date to filter by
|
|
227
|
+
*/
|
|
228
|
+
created_before?: string | null;
|
|
229
|
+
/**
|
|
230
|
+
* The direction of the sort.
|
|
231
|
+
*/
|
|
232
|
+
direction?: Shared.Direction | null;
|
|
233
|
+
/**
|
|
234
|
+
* Returns the first _n_ elements from the list.
|
|
235
|
+
*/
|
|
236
|
+
first?: number | null;
|
|
237
|
+
/**
|
|
238
|
+
* Returns the last _n_ elements from the list.
|
|
239
|
+
*/
|
|
240
|
+
last?: number | null;
|
|
241
|
+
/**
|
|
242
|
+
* The most recent actions to filter the members by
|
|
243
|
+
*/
|
|
244
|
+
most_recent_actions?: Array<Shared.MemberMostRecentActions> | null;
|
|
245
|
+
/**
|
|
246
|
+
* Which columns can be used to sort.
|
|
247
|
+
*/
|
|
248
|
+
order?: 'id' | 'usd_total_spent' | 'created_at' | 'joined_at' | 'most_recent_action' | null;
|
|
249
|
+
/**
|
|
250
|
+
* The plan IDs to filter the members by
|
|
251
|
+
*/
|
|
252
|
+
plan_ids?: Array<string> | null;
|
|
253
|
+
/**
|
|
254
|
+
* The promo code IDs to filter the members by
|
|
255
|
+
*/
|
|
256
|
+
promo_code_ids?: Array<string> | null;
|
|
257
|
+
/**
|
|
258
|
+
* The name, username, or email to filter the members by. The email filter will
|
|
259
|
+
* only apply if the current actor has the `member:email:read` permission.
|
|
260
|
+
*/
|
|
261
|
+
query?: string | null;
|
|
262
|
+
/**
|
|
263
|
+
* The statuses to filter the members by
|
|
264
|
+
*/
|
|
265
|
+
statuses?: Array<Shared.MemberStatuses> | null;
|
|
266
|
+
}
|
|
267
|
+
export declare namespace Members {
|
|
268
|
+
export { type MemberRetrieveResponse as MemberRetrieveResponse, type MemberListResponse as MemberListResponse, type MemberListResponsesCursorPage as MemberListResponsesCursorPage, type MemberListParams as MemberListParams, };
|
|
269
|
+
}
|
|
270
|
+
//# sourceMappingURL=members.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"members.d.ts","sourceRoot":"","sources":["../src/resources/members.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,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIlF;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,EAAE,gBAAgB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,6BAA6B,EAAE,kBAAkB,CAAC;CAGlE;AAED,MAAM,MAAM,6BAA6B,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;AAE3E;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC,WAAW,CAAC;IAEjC;;OAEG;IACH,OAAO,EAAE,sBAAsB,CAAC,OAAO,CAAC;IAExC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC,uBAAuB,GAAG,IAAI,CAAC;IAE1D;;OAEG;IACH,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;IAE9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,EAAE,MA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ACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC;CAChD;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Members = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
class Members extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a member of a company by ID
|
|
11
|
+
*
|
|
12
|
+
* Required permissions:
|
|
13
|
+
*
|
|
14
|
+
* - `member:basic:read`
|
|
15
|
+
* - `member:email:read`
|
|
16
|
+
* - `member:phone:read`
|
|
17
|
+
*/
|
|
18
|
+
retrieve(id, options) {
|
|
19
|
+
return this._client.get((0, path_1.path) `/members/${id}`, options);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* List the members of a company
|
|
23
|
+
*
|
|
24
|
+
* Required permissions:
|
|
25
|
+
*
|
|
26
|
+
* - `member:basic:read`
|
|
27
|
+
* - `member:email:read`
|
|
28
|
+
* - `member:phone:read`
|
|
29
|
+
*/
|
|
30
|
+
list(query, options) {
|
|
31
|
+
return this._client.getAPIList('/members', (pagination_1.CursorPage), { query, ...options });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.Members = Members;
|
|
35
|
+
//# sourceMappingURL=members.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"members.js","sourceRoot":"","sources":["../src/resources/members.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,KAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,uBAA8B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;CACF;AA7BD,0BA6BC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { CursorPage } from "../core/pagination.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
export class Members extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves a member of a company by ID
|
|
8
|
+
*
|
|
9
|
+
* Required permissions:
|
|
10
|
+
*
|
|
11
|
+
* - `member:basic:read`
|
|
12
|
+
* - `member:email:read`
|
|
13
|
+
* - `member:phone:read`
|
|
14
|
+
*/
|
|
15
|
+
retrieve(id, options) {
|
|
16
|
+
return this._client.get(path `/members/${id}`, options);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* List the members of a company
|
|
20
|
+
*
|
|
21
|
+
* Required permissions:
|
|
22
|
+
*
|
|
23
|
+
* - `member:basic:read`
|
|
24
|
+
* - `member:email:read`
|
|
25
|
+
* - `member:phone:read`
|
|
26
|
+
*/
|
|
27
|
+
list(query, options) {
|
|
28
|
+
return this._client.getAPIList('/members', (CursorPage), { query, ...options });
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=members.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"members.mjs","sourceRoot":"","sources":["../src/resources/members.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,KAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,UAA8B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;CACF"}
|
package/resources/plans.d.mts
CHANGED
|
@@ -245,7 +245,9 @@ export interface PlanCreateParams {
|
|
|
245
245
|
*/
|
|
246
246
|
image?: PlanCreateParams.Image | null;
|
|
247
247
|
/**
|
|
248
|
-
* An additional amount charged upon first purchase.
|
|
248
|
+
* An additional amount charged upon first purchase. Use only if a one time payment
|
|
249
|
+
* OR you want to charge an additional amount on top of the renewal price. Provided
|
|
250
|
+
* as a number in dollars. Eg: 10.43 for $10.43
|
|
249
251
|
*/
|
|
250
252
|
initial_price?: number | null;
|
|
251
253
|
/**
|
|
@@ -266,7 +268,8 @@ export interface PlanCreateParams {
|
|
|
266
268
|
*/
|
|
267
269
|
release_method?: Shared.ReleaseMethod | null;
|
|
268
270
|
/**
|
|
269
|
-
* The amount the customer is charged every billing period.
|
|
271
|
+
* The amount the customer is charged every billing period. Use only if a recurring
|
|
272
|
+
* payment. Provided as a number in dollars. Eg: 10.43 for $10.43
|
|
270
273
|
*/
|
|
271
274
|
renewal_price?: number | null;
|
|
272
275
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.d.mts","sourceRoot":"","sources":["../src/resources/plans.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,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;IAIjF;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;IAIvE;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;IAI1B;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,KAAK,EAAE,cAAc,EACrB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,2BAA2B,EAAE,gBAAgB,CAAC;IAI7D;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAG7E;AAED,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;AAEv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