@whop/sdk 0.0.8 → 0.0.9
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 +17 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-links.d.mts +59 -0
- package/resources/account-links.d.mts.map +1 -0
- package/resources/account-links.d.ts +59 -0
- package/resources/account-links.d.ts.map +1 -0
- package/resources/account-links.js +27 -0
- package/resources/account-links.js.map +1 -0
- package/resources/account-links.mjs +23 -0
- package/resources/account-links.mjs.map +1 -0
- package/resources/app-builds.d.mts +8 -0
- package/resources/app-builds.d.mts.map +1 -1
- package/resources/app-builds.d.ts +8 -0
- package/resources/app-builds.d.ts.map +1 -1
- package/resources/apps.d.mts +1 -1
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +1 -1
- package/resources/apps.d.ts.map +1 -1
- package/resources/authorized-users.d.mts +8 -0
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +8 -0
- package/resources/authorized-users.d.ts.map +1 -1
- package/resources/checkout-configurations.d.mts +8 -0
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +8 -0
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/companies.d.mts +8 -0
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +8 -0
- package/resources/companies.d.ts.map +1 -1
- package/resources/disputes.d.mts +8 -0
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +8 -0
- package/resources/disputes.d.ts.map +1 -1
- package/resources/entries.d.mts +8 -0
- package/resources/entries.d.mts.map +1 -1
- package/resources/entries.d.ts +8 -0
- package/resources/entries.d.ts.map +1 -1
- package/resources/experiences.d.mts +8 -0
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +8 -0
- package/resources/experiences.d.ts.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +8 -0
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +8 -0
- package/resources/invoices.d.ts.map +1 -1
- package/resources/payments.d.mts +1 -1
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +1 -1
- package/resources/payments.d.ts.map +1 -1
- package/resources/plans.d.mts +9 -11
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +9 -11
- package/resources/plans.d.ts.map +1 -1
- package/resources/products.d.mts +8 -26
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +8 -26
- package/resources/products.d.ts.map +1 -1
- package/resources/promo-codes.d.mts +8 -0
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +8 -0
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/refunds.d.mts +8 -0
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +8 -0
- package/resources/refunds.d.ts.map +1 -1
- package/resources/reviews.d.mts +8 -0
- package/resources/reviews.d.mts.map +1 -1
- package/resources/reviews.d.ts +8 -0
- package/resources/reviews.d.ts.map +1 -1
- package/resources/transfers.d.mts +8 -0
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +8 -0
- package/resources/transfers.d.ts.map +1 -1
- package/src/client.ts +9 -0
- package/src/resources/account-links.ts +73 -0
- package/src/resources/app-builds.ts +10 -0
- package/src/resources/apps.ts +1 -0
- package/src/resources/authorized-users.ts +10 -0
- package/src/resources/checkout-configurations.ts +10 -0
- package/src/resources/companies.ts +10 -0
- package/src/resources/disputes.ts +10 -0
- package/src/resources/entries.ts +10 -0
- package/src/resources/experiences.ts +10 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/invoices.ts +10 -0
- package/src/resources/payments.ts +1 -0
- package/src/resources/plans.ts +11 -13
- package/src/resources/products.ts +10 -32
- package/src/resources/promo-codes.ts +10 -0
- package/src/resources/refunds.ts +10 -0
- package/src/resources/reviews.ts +10 -0
- package/src/resources/transfers.ts +10 -0
- 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
|
@@ -146,6 +146,16 @@ export interface AuthorizedUserListParams extends CursorPageParams {
|
|
|
146
146
|
*/
|
|
147
147
|
before?: string | null;
|
|
148
148
|
|
|
149
|
+
/**
|
|
150
|
+
* The minimum creation date to filter by
|
|
151
|
+
*/
|
|
152
|
+
created_after?: string | null;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The maximum creation date to filter by
|
|
156
|
+
*/
|
|
157
|
+
created_before?: string | null;
|
|
158
|
+
|
|
149
159
|
/**
|
|
150
160
|
* Returns the first _n_ elements from the list.
|
|
151
161
|
*/
|
|
@@ -684,6 +684,16 @@ export interface CheckoutConfigurationListParams extends CursorPageParams {
|
|
|
684
684
|
*/
|
|
685
685
|
before?: string | null;
|
|
686
686
|
|
|
687
|
+
/**
|
|
688
|
+
* The minimum creation date to filter by
|
|
689
|
+
*/
|
|
690
|
+
created_after?: string | null;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* The maximum creation date to filter by
|
|
694
|
+
*/
|
|
695
|
+
created_before?: string | null;
|
|
696
|
+
|
|
687
697
|
/**
|
|
688
698
|
* The direction of the sort.
|
|
689
699
|
*/
|
|
@@ -190,6 +190,16 @@ export interface CompanyListParams extends CursorPageParams {
|
|
|
190
190
|
*/
|
|
191
191
|
before?: string | null;
|
|
192
192
|
|
|
193
|
+
/**
|
|
194
|
+
* The minimum creation date to filter by
|
|
195
|
+
*/
|
|
196
|
+
created_after?: string | null;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* The maximum creation date to filter by
|
|
200
|
+
*/
|
|
201
|
+
created_before?: string | null;
|
|
202
|
+
|
|
193
203
|
/**
|
|
194
204
|
* The direction of the sort.
|
|
195
205
|
*/
|
|
@@ -663,6 +663,16 @@ export interface DisputeListParams extends CursorPageParams {
|
|
|
663
663
|
*/
|
|
664
664
|
before?: string | null;
|
|
665
665
|
|
|
666
|
+
/**
|
|
667
|
+
* The minimum creation date to filter by
|
|
668
|
+
*/
|
|
669
|
+
created_after?: string | null;
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* The maximum creation date to filter by
|
|
673
|
+
*/
|
|
674
|
+
created_before?: string | null;
|
|
675
|
+
|
|
666
676
|
/**
|
|
667
677
|
* The direction of the sort.
|
|
668
678
|
*/
|
package/src/resources/entries.ts
CHANGED
|
@@ -170,6 +170,16 @@ export interface EntryListParams extends CursorPageParams {
|
|
|
170
170
|
*/
|
|
171
171
|
before?: string | null;
|
|
172
172
|
|
|
173
|
+
/**
|
|
174
|
+
* The minimum creation date to filter by
|
|
175
|
+
*/
|
|
176
|
+
created_after?: string | null;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* The maximum creation date to filter by
|
|
180
|
+
*/
|
|
181
|
+
created_before?: string | null;
|
|
182
|
+
|
|
173
183
|
/**
|
|
174
184
|
* The direction of the sort.
|
|
175
185
|
*/
|
|
@@ -376,6 +376,16 @@ export interface ExperienceListParams extends CursorPageParams {
|
|
|
376
376
|
*/
|
|
377
377
|
before?: string | null;
|
|
378
378
|
|
|
379
|
+
/**
|
|
380
|
+
* The minimum creation date to filter by
|
|
381
|
+
*/
|
|
382
|
+
created_after?: string | null;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* The maximum creation date to filter by
|
|
386
|
+
*/
|
|
387
|
+
created_before?: string | null;
|
|
388
|
+
|
|
379
389
|
/**
|
|
380
390
|
* Returns the first _n_ elements from the list.
|
|
381
391
|
*/
|
package/src/resources/index.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
export * from './shared';
|
|
4
4
|
export { AccessTokens, type AccessTokenCreateResponse, type AccessTokenCreateParams } from './access-tokens';
|
|
5
|
+
export { AccountLinks, type AccountLinkCreateResponse, type AccountLinkCreateParams } from './account-links';
|
|
5
6
|
export {
|
|
6
7
|
AppBuilds,
|
|
7
8
|
type AppBuildListResponse,
|
|
@@ -783,6 +783,16 @@ export interface InvoiceListParams extends CursorPageParams {
|
|
|
783
783
|
*/
|
|
784
784
|
collection_methods?: Array<Shared.CollectionMethod> | null;
|
|
785
785
|
|
|
786
|
+
/**
|
|
787
|
+
* The minimum creation date to filter by
|
|
788
|
+
*/
|
|
789
|
+
created_after?: string | null;
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* The maximum creation date to filter by
|
|
793
|
+
*/
|
|
794
|
+
created_before?: string | null;
|
|
795
|
+
|
|
786
796
|
/**
|
|
787
797
|
* The direction of the sort.
|
|
788
798
|
*/
|
package/src/resources/plans.ts
CHANGED
|
@@ -344,7 +344,7 @@ export interface PlanCreateParams {
|
|
|
344
344
|
description?: string | null;
|
|
345
345
|
|
|
346
346
|
/**
|
|
347
|
-
* The interval at which the plan
|
|
347
|
+
* The interval at which the plan expires and revokes access (expiration plans).
|
|
348
348
|
*/
|
|
349
349
|
expiration_days?: number | null;
|
|
350
350
|
|
|
@@ -398,18 +398,6 @@ export interface PlanCreateParams {
|
|
|
398
398
|
*/
|
|
399
399
|
stock?: number | null;
|
|
400
400
|
|
|
401
|
-
/**
|
|
402
|
-
* The price to display with a strikethrough for the initial price. Provided as a
|
|
403
|
-
* number in dollars. Eg: 19.99 for $19.99
|
|
404
|
-
*/
|
|
405
|
-
strike_through_initial_price?: number | null;
|
|
406
|
-
|
|
407
|
-
/**
|
|
408
|
-
* The price to display with a strikethrough for the renewal price. Provided as a
|
|
409
|
-
* number in dollars. Eg: 19.99 for $19.99
|
|
410
|
-
*/
|
|
411
|
-
strike_through_renewal_price?: number | null;
|
|
412
|
-
|
|
413
401
|
/**
|
|
414
402
|
* The title of the plan. This will be visible on the product page to customers.
|
|
415
403
|
*/
|
|
@@ -713,6 +701,16 @@ export interface PlanListParams extends CursorPageParams {
|
|
|
713
701
|
*/
|
|
714
702
|
before?: string | null;
|
|
715
703
|
|
|
704
|
+
/**
|
|
705
|
+
* The minimum creation date to filter by
|
|
706
|
+
*/
|
|
707
|
+
created_after?: string | null;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* The maximum creation date to filter by
|
|
711
|
+
*/
|
|
712
|
+
created_before?: string | null;
|
|
713
|
+
|
|
716
714
|
/**
|
|
717
715
|
* The direction of the sort.
|
|
718
716
|
*/
|
|
@@ -330,14 +330,6 @@ export namespace ProductCreateParams {
|
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
export interface ProductUpdateParams {
|
|
333
|
-
/**
|
|
334
|
-
* A banner image for the product in png, jpeg format
|
|
335
|
-
*/
|
|
336
|
-
banner_image?:
|
|
337
|
-
| ProductUpdateParams.AttachmentInputWithDirectUploadID
|
|
338
|
-
| ProductUpdateParams.AttachmentInputWithID
|
|
339
|
-
| null;
|
|
340
|
-
|
|
341
333
|
/**
|
|
342
334
|
* The different business types a company can be.
|
|
343
335
|
*/
|
|
@@ -432,30 +424,6 @@ export interface ProductUpdateParams {
|
|
|
432
424
|
}
|
|
433
425
|
|
|
434
426
|
export namespace ProductUpdateParams {
|
|
435
|
-
/**
|
|
436
|
-
* Input for an attachment
|
|
437
|
-
*/
|
|
438
|
-
export interface AttachmentInputWithDirectUploadID {
|
|
439
|
-
/**
|
|
440
|
-
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
441
|
-
* the direct upload that was created when uploading the file to S3 via the
|
|
442
|
-
* mediaDirectUpload mutation.
|
|
443
|
-
*/
|
|
444
|
-
direct_upload_id: string;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
* Input for an attachment
|
|
449
|
-
*/
|
|
450
|
-
export interface AttachmentInputWithID {
|
|
451
|
-
/**
|
|
452
|
-
* The ID of an existing attachment object. Use this when updating a resource and
|
|
453
|
-
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
454
|
-
* doing.
|
|
455
|
-
*/
|
|
456
|
-
id: string;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
427
|
/**
|
|
460
428
|
* Configuration for a product on the company's store page.
|
|
461
429
|
*/
|
|
@@ -483,6 +451,16 @@ export interface ProductListParams extends CursorPageParams {
|
|
|
483
451
|
*/
|
|
484
452
|
before?: string | null;
|
|
485
453
|
|
|
454
|
+
/**
|
|
455
|
+
* The minimum creation date to filter by
|
|
456
|
+
*/
|
|
457
|
+
created_after?: string | null;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* The maximum creation date to filter by
|
|
461
|
+
*/
|
|
462
|
+
created_before?: string | null;
|
|
463
|
+
|
|
486
464
|
/**
|
|
487
465
|
* The direction of the sort.
|
|
488
466
|
*/
|
|
@@ -450,6 +450,16 @@ export interface PromoCodeListParams extends CursorPageParams {
|
|
|
450
450
|
*/
|
|
451
451
|
before?: string | null;
|
|
452
452
|
|
|
453
|
+
/**
|
|
454
|
+
* The minimum creation date to filter by
|
|
455
|
+
*/
|
|
456
|
+
created_after?: string | null;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* The maximum creation date to filter by
|
|
460
|
+
*/
|
|
461
|
+
created_before?: string | null;
|
|
462
|
+
|
|
453
463
|
/**
|
|
454
464
|
* Returns the first _n_ elements from the list.
|
|
455
465
|
*/
|
package/src/resources/refunds.ts
CHANGED
|
@@ -353,6 +353,16 @@ export interface RefundListParams extends CursorPageParams {
|
|
|
353
353
|
*/
|
|
354
354
|
before?: string | null;
|
|
355
355
|
|
|
356
|
+
/**
|
|
357
|
+
* The minimum creation date to filter by
|
|
358
|
+
*/
|
|
359
|
+
created_after?: string | null;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* The maximum creation date to filter by
|
|
363
|
+
*/
|
|
364
|
+
created_before?: string | null;
|
|
365
|
+
|
|
356
366
|
/**
|
|
357
367
|
* The direction of the sort.
|
|
358
368
|
*/
|
package/src/resources/reviews.ts
CHANGED
|
@@ -316,6 +316,16 @@ export interface ReviewListParams extends CursorPageParams {
|
|
|
316
316
|
*/
|
|
317
317
|
before?: string | null;
|
|
318
318
|
|
|
319
|
+
/**
|
|
320
|
+
* The minimum creation date to filter by
|
|
321
|
+
*/
|
|
322
|
+
created_after?: string | null;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* The maximum creation date to filter by
|
|
326
|
+
*/
|
|
327
|
+
created_before?: string | null;
|
|
328
|
+
|
|
319
329
|
/**
|
|
320
330
|
* Returns the first _n_ elements from the list.
|
|
321
331
|
*/
|
|
@@ -167,6 +167,16 @@ export interface TransferListParams extends CursorPageParams {
|
|
|
167
167
|
*/
|
|
168
168
|
before?: string | null;
|
|
169
169
|
|
|
170
|
+
/**
|
|
171
|
+
* The minimum creation date to filter by
|
|
172
|
+
*/
|
|
173
|
+
created_after?: string | null;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The maximum creation date to filter by
|
|
177
|
+
*/
|
|
178
|
+
created_before?: string | null;
|
|
179
|
+
|
|
170
180
|
/**
|
|
171
181
|
* Filter transfers to only those that were sent to this destination account.
|
|
172
182
|
* (user_xxx, biz_xxx, ldgr_xxx)
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.0.
|
|
1
|
+
export const VERSION = '0.0.9'; // 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.9";
|
|
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.9";
|
|
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.9'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|