@whop/sdk 0.0.2 → 0.0.3
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 +23 -0
- package/client.d.mts +23 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +23 -8
- package/client.d.ts.map +1 -1
- package/client.js +16 -1
- package/client.js.map +1 -1
- package/client.mjs +16 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/checkout-configurations.d.mts +76 -2
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +76 -2
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +2 -0
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +2 -0
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/course-chapters.d.mts +185 -0
- package/resources/course-chapters.d.mts.map +1 -0
- package/resources/course-chapters.d.ts +185 -0
- package/resources/course-chapters.d.ts.map +1 -0
- package/resources/course-chapters.js +103 -0
- package/resources/course-chapters.js.map +1 -0
- package/resources/course-chapters.mjs +99 -0
- package/resources/course-chapters.mjs.map +1 -0
- package/resources/course-lessons.d.mts +523 -0
- package/resources/course-lessons.d.mts.map +1 -0
- package/resources/course-lessons.d.ts +523 -0
- package/resources/course-lessons.d.ts.map +1 -0
- package/resources/course-lessons.js +101 -0
- package/resources/course-lessons.js.map +1 -0
- package/resources/course-lessons.mjs +97 -0
- package/resources/course-lessons.mjs.map +1 -0
- package/resources/courses.d.mts +465 -0
- package/resources/courses.d.mts.map +1 -0
- package/resources/courses.d.ts +465 -0
- package/resources/courses.d.ts.map +1 -0
- package/resources/courses.js +98 -0
- package/resources/courses.js.map +1 -0
- package/resources/courses.mjs +94 -0
- package/resources/courses.mjs.map +1 -0
- package/resources/experiences.d.mts +27 -1
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +27 -1
- package/resources/experiences.d.ts.map +1 -1
- package/resources/experiences.js +22 -0
- package/resources/experiences.js.map +1 -1
- package/resources/experiences.mjs +22 -0
- package/resources/experiences.mjs.map +1 -1
- package/resources/forum-posts.d.mts +56 -1
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +56 -1
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forum-posts.js +11 -0
- package/resources/forum-posts.js.map +1 -1
- package/resources/forum-posts.mjs +11 -0
- package/resources/forum-posts.mjs.map +1 -1
- package/resources/index.d.mts +9 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +11 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -0
- package/resources/index.mjs.map +1 -1
- package/resources/ledger-accounts.d.mts +1 -1
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +1 -1
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/members.d.mts +4 -0
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +4 -0
- package/resources/members.d.ts.map +1 -1
- package/resources/memberships.d.mts +26 -5
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +26 -5
- package/resources/memberships.d.ts.map +1 -1
- package/resources/memberships.js +1 -1
- package/resources/memberships.js.map +1 -1
- package/resources/memberships.mjs +1 -1
- package/resources/memberships.mjs.map +1 -1
- package/resources/messages.d.mts +38 -1
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +38 -1
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +6 -0
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +6 -0
- package/resources/messages.mjs.map +1 -1
- package/resources/payments.d.mts +28 -13
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +28 -13
- package/resources/payments.d.ts.map +1 -1
- package/resources/plans.d.mts +49 -1
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +49 -1
- package/resources/plans.d.ts.map +1 -1
- package/resources/products.d.mts +17 -25
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +17 -25
- package/resources/products.d.ts.map +1 -1
- package/resources/promo-codes.d.mts +394 -0
- package/resources/promo-codes.d.mts.map +1 -0
- package/resources/promo-codes.d.ts +394 -0
- package/resources/promo-codes.d.ts.map +1 -0
- package/resources/promo-codes.js +91 -0
- package/resources/promo-codes.js.map +1 -0
- package/resources/promo-codes.mjs +87 -0
- package/resources/promo-codes.mjs.map +1 -0
- package/resources/reviews.d.mts +277 -0
- package/resources/reviews.d.mts.map +1 -0
- package/resources/reviews.d.ts +277 -0
- package/resources/reviews.d.ts.map +1 -0
- package/resources/reviews.js +23 -0
- package/resources/reviews.js.map +1 -0
- package/resources/reviews.mjs +19 -0
- package/resources/reviews.mjs.map +1 -0
- package/resources/shared.d.mts +70 -14
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +70 -14
- package/resources/shared.d.ts.map +1 -1
- package/src/client.ts +134 -1
- package/src/resources/checkout-configurations.ts +91 -2
- package/src/resources/course-chapters.ts +236 -0
- package/src/resources/course-lessons.ts +646 -0
- package/src/resources/courses.ts +594 -0
- package/src/resources/experiences.ts +35 -0
- package/src/resources/forum-posts.ts +71 -0
- package/src/resources/index.ts +59 -0
- package/src/resources/ledger-accounts.ts +13 -1
- package/src/resources/members.ts +5 -0
- package/src/resources/memberships.ts +31 -6
- package/src/resources/messages.ts +50 -0
- package/src/resources/payments.ts +139 -19
- package/src/resources/plans.ts +60 -1
- package/src/resources/products.ts +20 -29
- package/src/resources/promo-codes.ts +490 -0
- package/src/resources/reviews.ts +348 -0
- package/src/resources/shared.ts +80 -14
- 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
package/resources/products.d.ts
CHANGED
|
@@ -100,14 +100,6 @@ export interface ProductCreateParams {
|
|
|
100
100
|
* The title of the product.
|
|
101
101
|
*/
|
|
102
102
|
title: string;
|
|
103
|
-
/**
|
|
104
|
-
* The different types an access pass can be.
|
|
105
|
-
*/
|
|
106
|
-
access_pass_type?: Shared.AccessPassType | null;
|
|
107
|
-
/**
|
|
108
|
-
* A banner image for the product in png, jpeg format
|
|
109
|
-
*/
|
|
110
|
-
banner_image?: ProductCreateParams.BannerImage | null;
|
|
111
103
|
/**
|
|
112
104
|
* The different business types a company can be.
|
|
113
105
|
*/
|
|
@@ -188,23 +180,6 @@ export interface ProductCreateParams {
|
|
|
188
180
|
visibility?: Shared.Visibility | null;
|
|
189
181
|
}
|
|
190
182
|
export declare namespace ProductCreateParams {
|
|
191
|
-
/**
|
|
192
|
-
* A banner image for the product in png, jpeg format
|
|
193
|
-
*/
|
|
194
|
-
interface BannerImage {
|
|
195
|
-
/**
|
|
196
|
-
* The ID of an existing attachment object. Use this when updating a resource and
|
|
197
|
-
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
198
|
-
* doing.
|
|
199
|
-
*/
|
|
200
|
-
id?: string | null;
|
|
201
|
-
/**
|
|
202
|
-
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
203
|
-
* the direct upload that was created when uploading the file to S3 via the
|
|
204
|
-
* mediaDirectUpload mutation.
|
|
205
|
-
*/
|
|
206
|
-
direct_upload_id?: string | null;
|
|
207
|
-
}
|
|
208
183
|
/**
|
|
209
184
|
* The details to assign an autogenerated plan.
|
|
210
185
|
*/
|
|
@@ -356,6 +331,10 @@ export interface ProductUpdateParams {
|
|
|
356
331
|
* The route of the product.
|
|
357
332
|
*/
|
|
358
333
|
route?: string | null;
|
|
334
|
+
/**
|
|
335
|
+
* Configuration for a product on the company's store page.
|
|
336
|
+
*/
|
|
337
|
+
store_page_config?: ProductUpdateParams.StorePageConfig | null;
|
|
359
338
|
/**
|
|
360
339
|
* The title of the product.
|
|
361
340
|
*/
|
|
@@ -383,6 +362,19 @@ export declare namespace ProductUpdateParams {
|
|
|
383
362
|
*/
|
|
384
363
|
direct_upload_id?: string | null;
|
|
385
364
|
}
|
|
365
|
+
/**
|
|
366
|
+
* Configuration for a product on the company's store page.
|
|
367
|
+
*/
|
|
368
|
+
interface StorePageConfig {
|
|
369
|
+
/**
|
|
370
|
+
* Custom call-to-action text for the product's store page.
|
|
371
|
+
*/
|
|
372
|
+
custom_cta?: string | null;
|
|
373
|
+
/**
|
|
374
|
+
* Whether or not to show the price on the product's store page.
|
|
375
|
+
*/
|
|
376
|
+
show_price?: boolean | null;
|
|
377
|
+
}
|
|
386
378
|
}
|
|
387
379
|
export interface ProductListParams extends CursorPageParams {
|
|
388
380
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../src/resources/products.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,0BAA0B,EAAE;OAC9B,EAAE,UAAU,EAAE;OACd,EAAc,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;IAIvF;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;IAI1E;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;IAI7B;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,KAAK,EAAE,iBAAiB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,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AAI,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,0BAA0B,GAAG,YAAY,GAAG,SAAS,GAAG,iBAAiB,GAAG,IAAI,CAAC;IAEzF;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC;IAEpD;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;CACtD;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH;AAED,OAAO,EAAE,KAAK,0BAA0B,EAAE,CAAC"}
|
|
@@ -0,0 +1,394 @@
|
|
|
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 PromoCodes extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Create a new promo code for a product or plan
|
|
9
|
+
*
|
|
10
|
+
* Required permissions:
|
|
11
|
+
*
|
|
12
|
+
* - `promo_code:create`
|
|
13
|
+
* - `access_pass:basic:read`
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const promoCode = await client.promoCodes.create({
|
|
18
|
+
* amount_off: 6.9,
|
|
19
|
+
* base_currency: 'usd',
|
|
20
|
+
* code: 'code',
|
|
21
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
22
|
+
* new_users_only: true,
|
|
23
|
+
* promo_duration_months: 42,
|
|
24
|
+
* promo_type: 'percentage',
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
create(body: PromoCodeCreateParams, options?: RequestOptions): APIPromise<PromoCode>;
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves a promo code by ID
|
|
31
|
+
*
|
|
32
|
+
* Required permissions:
|
|
33
|
+
*
|
|
34
|
+
* - `promo_code:basic:read`
|
|
35
|
+
* - `access_pass:basic:read`
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const promoCode = await client.promoCodes.retrieve(
|
|
40
|
+
* 'promo_xxxxxxxxxxxx',
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<PromoCode>;
|
|
45
|
+
/**
|
|
46
|
+
* Lists promo codes for a company
|
|
47
|
+
*
|
|
48
|
+
* Required permissions:
|
|
49
|
+
*
|
|
50
|
+
* - `promo_code:basic:read`
|
|
51
|
+
* - `access_pass:basic:read`
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* // Automatically fetches more pages as needed.
|
|
56
|
+
* for await (const promoCodeListResponse of client.promoCodes.list(
|
|
57
|
+
* { company_id: 'biz_xxxxxxxxxxxxxx' },
|
|
58
|
+
* )) {
|
|
59
|
+
* // ...
|
|
60
|
+
* }
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
list(query: PromoCodeListParams, options?: RequestOptions): PagePromise<PromoCodeListResponsesCursorPage, PromoCodeListResponse>;
|
|
64
|
+
/**
|
|
65
|
+
* Archive a promo code, preventing further use
|
|
66
|
+
*
|
|
67
|
+
* Required permissions:
|
|
68
|
+
*
|
|
69
|
+
* - `promo_code:delete`
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* const promoCode = await client.promoCodes.delete(
|
|
74
|
+
* 'promo_xxxxxxxxxxxx',
|
|
75
|
+
* );
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
delete(id: string, options?: RequestOptions): APIPromise<PromoCodeDeleteResponse>;
|
|
79
|
+
}
|
|
80
|
+
export type PromoCodeListResponsesCursorPage = CursorPage<PromoCodeListResponse>;
|
|
81
|
+
/**
|
|
82
|
+
* An object representing a promo code for a plan.
|
|
83
|
+
*/
|
|
84
|
+
export interface PromoCode {
|
|
85
|
+
/**
|
|
86
|
+
* The ID of the promo.
|
|
87
|
+
*/
|
|
88
|
+
id: string;
|
|
89
|
+
/**
|
|
90
|
+
* The amount off (% or flat amount) for the promo.
|
|
91
|
+
*/
|
|
92
|
+
amount_off: number;
|
|
93
|
+
/**
|
|
94
|
+
* Restricts promo use to only users who have churned from the company before.
|
|
95
|
+
*/
|
|
96
|
+
churned_users_only: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* The specific code used to apply the promo at checkout.
|
|
99
|
+
*/
|
|
100
|
+
code: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* The company for the promo code.
|
|
103
|
+
*/
|
|
104
|
+
company: PromoCode.Company;
|
|
105
|
+
/**
|
|
106
|
+
* The timestamp of when the promo was created.
|
|
107
|
+
*/
|
|
108
|
+
created_at: string;
|
|
109
|
+
/**
|
|
110
|
+
* The monetary currency of the promo code.
|
|
111
|
+
*/
|
|
112
|
+
currency: Shared.Currency;
|
|
113
|
+
/**
|
|
114
|
+
* The duration setting for the promo code
|
|
115
|
+
*/
|
|
116
|
+
duration: PromoDuration | null;
|
|
117
|
+
/**
|
|
118
|
+
* Restricts promo use to only be applied to already purchased memberships.
|
|
119
|
+
*/
|
|
120
|
+
existing_memberships_only: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* The date/time of when the promo expires.
|
|
123
|
+
*/
|
|
124
|
+
expires_at: string | null;
|
|
125
|
+
/**
|
|
126
|
+
* Restricts promo use to only users who have never purchased from the company
|
|
127
|
+
* before.
|
|
128
|
+
*/
|
|
129
|
+
new_users_only: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Restricts promo use to only be applied once per customer.
|
|
132
|
+
*/
|
|
133
|
+
one_per_customer: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* The access pass associated with the promo code.
|
|
136
|
+
*/
|
|
137
|
+
product: PromoCode.Product | null;
|
|
138
|
+
/**
|
|
139
|
+
* The number of months the promo is applied for.
|
|
140
|
+
*/
|
|
141
|
+
promo_duration_months: number | null;
|
|
142
|
+
/**
|
|
143
|
+
* The type (% or flat amount) of the promo.
|
|
144
|
+
*/
|
|
145
|
+
promo_type: Shared.PromoType;
|
|
146
|
+
/**
|
|
147
|
+
* Indicates if the promo code is live or disabled.
|
|
148
|
+
*/
|
|
149
|
+
status: PromoCodeStatus;
|
|
150
|
+
/**
|
|
151
|
+
* The quantity limit on the number of uses.
|
|
152
|
+
*/
|
|
153
|
+
stock: number;
|
|
154
|
+
/**
|
|
155
|
+
* Whether or not the promo code has unlimited stock.
|
|
156
|
+
*/
|
|
157
|
+
unlimited_stock: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* The amount of times the promo codes has been used.
|
|
160
|
+
*/
|
|
161
|
+
uses: number;
|
|
162
|
+
}
|
|
163
|
+
export declare namespace PromoCode {
|
|
164
|
+
/**
|
|
165
|
+
* The company for the promo code.
|
|
166
|
+
*/
|
|
167
|
+
interface Company {
|
|
168
|
+
/**
|
|
169
|
+
* The ID of the company
|
|
170
|
+
*/
|
|
171
|
+
id: string;
|
|
172
|
+
/**
|
|
173
|
+
* The written name of the company.
|
|
174
|
+
*/
|
|
175
|
+
title: string;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* The access pass associated with the promo code.
|
|
179
|
+
*/
|
|
180
|
+
interface Product {
|
|
181
|
+
/**
|
|
182
|
+
* The internal ID of the public product.
|
|
183
|
+
*/
|
|
184
|
+
id: string;
|
|
185
|
+
/**
|
|
186
|
+
* The title of the product. Use for Whop 4.0.
|
|
187
|
+
*/
|
|
188
|
+
title: string;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Statuses for promo codes
|
|
193
|
+
*/
|
|
194
|
+
export type PromoCodeStatus = 'active' | 'inactive' | 'archived';
|
|
195
|
+
/**
|
|
196
|
+
* The duration setting for the promo code
|
|
197
|
+
*/
|
|
198
|
+
export type PromoDuration = 'forever' | 'once' | 'repeating';
|
|
199
|
+
/**
|
|
200
|
+
* An object representing a promo code for a plan.
|
|
201
|
+
*/
|
|
202
|
+
export interface PromoCodeListResponse {
|
|
203
|
+
/**
|
|
204
|
+
* The ID of the promo.
|
|
205
|
+
*/
|
|
206
|
+
id: string;
|
|
207
|
+
/**
|
|
208
|
+
* The amount off (% or flat amount) for the promo.
|
|
209
|
+
*/
|
|
210
|
+
amount_off: number;
|
|
211
|
+
/**
|
|
212
|
+
* Restricts promo use to only users who have churned from the company before.
|
|
213
|
+
*/
|
|
214
|
+
churned_users_only: boolean;
|
|
215
|
+
/**
|
|
216
|
+
* The specific code used to apply the promo at checkout.
|
|
217
|
+
*/
|
|
218
|
+
code: string | null;
|
|
219
|
+
/**
|
|
220
|
+
* The timestamp of when the promo was created.
|
|
221
|
+
*/
|
|
222
|
+
created_at: string;
|
|
223
|
+
/**
|
|
224
|
+
* The monetary currency of the promo code.
|
|
225
|
+
*/
|
|
226
|
+
currency: Shared.Currency;
|
|
227
|
+
/**
|
|
228
|
+
* The duration setting for the promo code
|
|
229
|
+
*/
|
|
230
|
+
duration: PromoDuration | null;
|
|
231
|
+
/**
|
|
232
|
+
* Restricts promo use to only be applied to already purchased memberships.
|
|
233
|
+
*/
|
|
234
|
+
existing_memberships_only: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* The date/time of when the promo expires.
|
|
237
|
+
*/
|
|
238
|
+
expires_at: string | null;
|
|
239
|
+
/**
|
|
240
|
+
* Restricts promo use to only users who have never purchased from the company
|
|
241
|
+
* before.
|
|
242
|
+
*/
|
|
243
|
+
new_users_only: boolean;
|
|
244
|
+
/**
|
|
245
|
+
* Restricts promo use to only be applied once per customer.
|
|
246
|
+
*/
|
|
247
|
+
one_per_customer: boolean;
|
|
248
|
+
/**
|
|
249
|
+
* The access pass associated with the promo code.
|
|
250
|
+
*/
|
|
251
|
+
product: PromoCodeListResponse.Product | null;
|
|
252
|
+
/**
|
|
253
|
+
* The number of months the promo is applied for.
|
|
254
|
+
*/
|
|
255
|
+
promo_duration_months: number | null;
|
|
256
|
+
/**
|
|
257
|
+
* The type (% or flat amount) of the promo.
|
|
258
|
+
*/
|
|
259
|
+
promo_type: Shared.PromoType;
|
|
260
|
+
/**
|
|
261
|
+
* Indicates if the promo code is live or disabled.
|
|
262
|
+
*/
|
|
263
|
+
status: PromoCodeStatus;
|
|
264
|
+
/**
|
|
265
|
+
* The quantity limit on the number of uses.
|
|
266
|
+
*/
|
|
267
|
+
stock: number;
|
|
268
|
+
/**
|
|
269
|
+
* Whether or not the promo code has unlimited stock.
|
|
270
|
+
*/
|
|
271
|
+
unlimited_stock: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* The amount of times the promo codes has been used.
|
|
274
|
+
*/
|
|
275
|
+
uses: number;
|
|
276
|
+
}
|
|
277
|
+
export declare namespace PromoCodeListResponse {
|
|
278
|
+
/**
|
|
279
|
+
* The access pass associated with the promo code.
|
|
280
|
+
*/
|
|
281
|
+
interface Product {
|
|
282
|
+
/**
|
|
283
|
+
* The internal ID of the public product.
|
|
284
|
+
*/
|
|
285
|
+
id: string;
|
|
286
|
+
/**
|
|
287
|
+
* The title of the product. Use for Whop 4.0.
|
|
288
|
+
*/
|
|
289
|
+
title: string;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Represents `true` or `false` values.
|
|
294
|
+
*/
|
|
295
|
+
export type PromoCodeDeleteResponse = boolean;
|
|
296
|
+
export interface PromoCodeCreateParams {
|
|
297
|
+
/**
|
|
298
|
+
* The amount off (% or flat amount) for the promo.
|
|
299
|
+
*/
|
|
300
|
+
amount_off: number;
|
|
301
|
+
/**
|
|
302
|
+
* The monetary currency of the promo code.
|
|
303
|
+
*/
|
|
304
|
+
base_currency: Shared.Currency;
|
|
305
|
+
/**
|
|
306
|
+
* The specific code used to apply the promo at checkout.
|
|
307
|
+
*/
|
|
308
|
+
code: string;
|
|
309
|
+
/**
|
|
310
|
+
* The id of the company to create the promo code for.
|
|
311
|
+
*/
|
|
312
|
+
company_id: string;
|
|
313
|
+
/**
|
|
314
|
+
* Restricts promo use to only users who have never purchased from the company
|
|
315
|
+
* before.
|
|
316
|
+
*/
|
|
317
|
+
new_users_only: boolean;
|
|
318
|
+
/**
|
|
319
|
+
* The number of months this promo code is applied and valid for.
|
|
320
|
+
*/
|
|
321
|
+
promo_duration_months: number;
|
|
322
|
+
/**
|
|
323
|
+
* The type (% or flat amount) of the promo.
|
|
324
|
+
*/
|
|
325
|
+
promo_type: Shared.PromoType;
|
|
326
|
+
/**
|
|
327
|
+
* Restricts promo use to only users who have churned from the company before.
|
|
328
|
+
*/
|
|
329
|
+
churned_users_only?: boolean | null;
|
|
330
|
+
/**
|
|
331
|
+
* Whether this promo code is for existing memberships only (cancelations)
|
|
332
|
+
*/
|
|
333
|
+
existing_memberships_only?: boolean | null;
|
|
334
|
+
/**
|
|
335
|
+
* The date/time of when the promo expires.
|
|
336
|
+
*/
|
|
337
|
+
expires_at?: string | null;
|
|
338
|
+
/**
|
|
339
|
+
* Restricts promo use to only be applied once per customer.
|
|
340
|
+
*/
|
|
341
|
+
one_per_customer?: boolean | null;
|
|
342
|
+
/**
|
|
343
|
+
* The IDs of the plans that the promo code applies to. If product_id is provided,
|
|
344
|
+
* it will only apply to plans attached to that product
|
|
345
|
+
*/
|
|
346
|
+
plan_ids?: Array<string> | null;
|
|
347
|
+
/**
|
|
348
|
+
* The product to lock the promo code to, if any. If provided will filter out any
|
|
349
|
+
* plan ids not attached to this product
|
|
350
|
+
*/
|
|
351
|
+
product_id?: string | null;
|
|
352
|
+
/**
|
|
353
|
+
* The quantity limit on the number of uses.
|
|
354
|
+
*/
|
|
355
|
+
stock?: number | null;
|
|
356
|
+
/**
|
|
357
|
+
* Whether or not the promo code should have unlimited stock.
|
|
358
|
+
*/
|
|
359
|
+
unlimited_stock?: boolean | null;
|
|
360
|
+
}
|
|
361
|
+
export interface PromoCodeListParams extends CursorPageParams {
|
|
362
|
+
/**
|
|
363
|
+
* The ID of the company to list promo codes for
|
|
364
|
+
*/
|
|
365
|
+
company_id: string;
|
|
366
|
+
/**
|
|
367
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
368
|
+
*/
|
|
369
|
+
before?: string | null;
|
|
370
|
+
/**
|
|
371
|
+
* Returns the first _n_ elements from the list.
|
|
372
|
+
*/
|
|
373
|
+
first?: number | null;
|
|
374
|
+
/**
|
|
375
|
+
* Returns the last _n_ elements from the list.
|
|
376
|
+
*/
|
|
377
|
+
last?: number | null;
|
|
378
|
+
/**
|
|
379
|
+
* Filter promo codes by plan ID(s)
|
|
380
|
+
*/
|
|
381
|
+
plan_ids?: Array<string> | null;
|
|
382
|
+
/**
|
|
383
|
+
* Filter promo codes by product ID(s)
|
|
384
|
+
*/
|
|
385
|
+
product_ids?: Array<string> | null;
|
|
386
|
+
/**
|
|
387
|
+
* Statuses for promo codes
|
|
388
|
+
*/
|
|
389
|
+
status?: PromoCodeStatus | null;
|
|
390
|
+
}
|
|
391
|
+
export declare namespace PromoCodes {
|
|
392
|
+
export { type PromoCode as PromoCode, type PromoCodeStatus as PromoCodeStatus, type PromoDuration as PromoDuration, type PromoCodeListResponse as PromoCodeListResponse, type PromoCodeDeleteResponse as PromoCodeDeleteResponse, type PromoCodeListResponsesCursorPage as PromoCodeListResponsesCursorPage, type PromoCodeCreateParams as PromoCodeCreateParams, type PromoCodeListParams as PromoCodeListParams, };
|
|
393
|
+
}
|
|
394
|
+
//# sourceMappingURL=promo-codes.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promo-codes.d.m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