@iblai/iblai-api 4.194.2-core → 4.195.0-core
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/dist/index.cjs.js +1163 -185
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1163 -186
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1163 -185
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +18 -1
- package/dist/types/models/CheckoutSessionCreate.d.ts +6 -0
- package/dist/types/models/CheckoutSessionResponse.d.ts +13 -0
- package/dist/types/models/GrandfatheringStrategyEnum.d.ts +8 -0
- package/dist/types/models/IntervalEnum.d.ts +10 -0
- package/dist/types/models/ItemAccessCheckResponse.d.ts +7 -2
- package/dist/types/models/ItemPaywallConfig.d.ts +52 -0
- package/dist/types/models/ItemPaywallConfigCreate.d.ts +8 -0
- package/dist/types/models/ItemPrice.d.ts +46 -0
- package/dist/types/models/ItemPriceCreate.d.ts +36 -0
- package/dist/types/models/ItemSubscription.d.ts +67 -0
- package/dist/types/models/ItemSubscriptionList.d.ts +34 -0
- package/dist/types/models/ItemType5d7Enum.d.ts +10 -0
- package/dist/types/models/{ItemAccessCheckResponseItemTypeEnum.d.ts → ItemTypeC6bEnum.d.ts} +1 -1
- package/dist/types/models/PaginatedItemSubscriptionList.d.ts +7 -0
- package/dist/types/models/PaginatedItemSubscriptionListList.d.ts +7 -0
- package/dist/types/models/PortalUrlResponse.d.ts +9 -0
- package/dist/types/models/PublicItemPricing.d.ts +11 -0
- package/dist/types/models/Status0e3Enum.d.ts +18 -0
- package/dist/types/services/BillingService.d.ts +271 -0
- package/dist/types/services/PlatformsService.d.ts +275 -0
- package/package.json +1 -1
- package/sdk_schema.yml +7861 -5691
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +18 -1
- package/src/models/CheckoutSessionCreate.ts +11 -0
- package/src/models/CheckoutSessionResponse.ts +18 -0
- package/src/models/GrandfatheringStrategyEnum.ts +12 -0
- package/src/models/IntervalEnum.ts +14 -0
- package/src/models/ItemAccessCheckResponse.ts +7 -2
- package/src/models/ItemPaywallConfig.ts +57 -0
- package/src/models/ItemPaywallConfigCreate.ts +13 -0
- package/src/models/ItemPrice.ts +51 -0
- package/src/models/ItemPriceCreate.ts +41 -0
- package/src/models/ItemSubscription.ts +72 -0
- package/src/models/ItemSubscriptionList.ts +39 -0
- package/src/models/ItemType5d7Enum.ts +14 -0
- package/src/models/{ItemAccessCheckResponseItemTypeEnum.ts → ItemTypeC6bEnum.ts} +1 -1
- package/src/models/PaginatedItemSubscriptionList.ts +12 -0
- package/src/models/PaginatedItemSubscriptionListList.ts +12 -0
- package/src/models/PortalUrlResponse.ts +14 -0
- package/src/models/PublicItemPricing.ts +16 -0
- package/src/models/Status0e3Enum.ts +22 -0
- package/src/services/BillingService.ts +591 -0
- package/src/services/PlatformsService.ts +601 -0
package/src/core/OpenAPI.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -57,6 +57,8 @@ export type { CeleryHeartbeat } from './models/CeleryHeartbeat';
|
|
|
57
57
|
export type { CeleryHeartbeatFail } from './models/CeleryHeartbeatFail';
|
|
58
58
|
export { CeleryHeartbeatFailStatusEnum } from './models/CeleryHeartbeatFailStatusEnum';
|
|
59
59
|
export { CeleryHeartbeatStatusEnum } from './models/CeleryHeartbeatStatusEnum';
|
|
60
|
+
export type { CheckoutSessionCreate } from './models/CheckoutSessionCreate';
|
|
61
|
+
export type { CheckoutSessionResponse } from './models/CheckoutSessionResponse';
|
|
60
62
|
export type { Company } from './models/Company';
|
|
61
63
|
export type { ConfigurationItem } from './models/ConfigurationItem';
|
|
62
64
|
export type { ConsumerChannel } from './models/ConsumerChannel';
|
|
@@ -155,16 +157,25 @@ export { GooglePayAccountResponseStatusEnum } from './models/GooglePayAccountRes
|
|
|
155
157
|
export type { GooglePayVerifyToken } from './models/GooglePayVerifyToken';
|
|
156
158
|
export type { GradingPerUser } from './models/GradingPerUser';
|
|
157
159
|
export type { GradingPerUserData } from './models/GradingPerUserData';
|
|
160
|
+
export { GrandfatheringStrategyEnum } from './models/GrandfatheringStrategyEnum';
|
|
158
161
|
export type { GroupList } from './models/GroupList';
|
|
159
162
|
export type { GroupListData } from './models/GroupListData';
|
|
160
163
|
export { HumanSupportRecipientModeEnum } from './models/HumanSupportRecipientModeEnum';
|
|
161
164
|
export type { ImageUpload } from './models/ImageUpload';
|
|
162
165
|
export type { Institution } from './models/Institution';
|
|
163
166
|
export { InstitutionTypeEnum } from './models/InstitutionTypeEnum';
|
|
167
|
+
export { IntervalEnum } from './models/IntervalEnum';
|
|
164
168
|
export type { Issuer } from './models/Issuer';
|
|
165
169
|
export type { IssuerAuthority } from './models/IssuerAuthority';
|
|
166
170
|
export type { ItemAccessCheckResponse } from './models/ItemAccessCheckResponse';
|
|
167
|
-
export {
|
|
171
|
+
export type { ItemPaywallConfig } from './models/ItemPaywallConfig';
|
|
172
|
+
export type { ItemPaywallConfigCreate } from './models/ItemPaywallConfigCreate';
|
|
173
|
+
export type { ItemPrice } from './models/ItemPrice';
|
|
174
|
+
export type { ItemPriceCreate } from './models/ItemPriceCreate';
|
|
175
|
+
export type { ItemSubscription } from './models/ItemSubscription';
|
|
176
|
+
export type { ItemSubscriptionList } from './models/ItemSubscriptionList';
|
|
177
|
+
export { ItemType5d7Enum } from './models/ItemType5d7Enum';
|
|
178
|
+
export { ItemTypeC6bEnum } from './models/ItemTypeC6bEnum';
|
|
168
179
|
export type { ItemTypeCommission } from './models/ItemTypeCommission';
|
|
169
180
|
export type { LauncherViewPostRequest } from './models/LauncherViewPostRequest';
|
|
170
181
|
export type { LearnerAnalyticsResponse } from './models/LearnerAnalyticsResponse';
|
|
@@ -223,6 +234,8 @@ export type { PaginatedCourseLicense } from './models/PaginatedCourseLicense';
|
|
|
223
234
|
export type { PaginatedCourseLicenseAssignment } from './models/PaginatedCourseLicenseAssignment';
|
|
224
235
|
export type { PaginatedCourseLicenseGroupAssignment } from './models/PaginatedCourseLicenseGroupAssignment';
|
|
225
236
|
export type { PaginatedCourseSuggestion } from './models/PaginatedCourseSuggestion';
|
|
237
|
+
export type { PaginatedItemSubscriptionList } from './models/PaginatedItemSubscriptionList';
|
|
238
|
+
export type { PaginatedItemSubscriptionListList } from './models/PaginatedItemSubscriptionListList';
|
|
226
239
|
export type { PaginatedPathwayGroupSuggestion } from './models/PaginatedPathwayGroupSuggestion';
|
|
227
240
|
export type { PaginatedPathwaySuggestion } from './models/PaginatedPathwaySuggestion';
|
|
228
241
|
export type { PaginatedPlatformInvitation } from './models/PaginatedPlatformInvitation';
|
|
@@ -324,6 +337,7 @@ export type { PlatformSummary } from './models/PlatformSummary';
|
|
|
324
337
|
export type { PlatformUpdatePostRequest } from './models/PlatformUpdatePostRequest';
|
|
325
338
|
export type { PointsMetric } from './models/PointsMetric';
|
|
326
339
|
export type { PointsPercentile } from './models/PointsPercentile';
|
|
340
|
+
export type { PortalUrlResponse } from './models/PortalUrlResponse';
|
|
327
341
|
export type { PreviewResponse } from './models/PreviewResponse';
|
|
328
342
|
export type { Program } from './models/Program';
|
|
329
343
|
export type { ProgramCompletion } from './models/ProgramCompletion';
|
|
@@ -358,6 +372,7 @@ export type { ProgramSuggestionBulkCreate } from './models/ProgramSuggestionBulk
|
|
|
358
372
|
export type { ProgramSuggestionCreate } from './models/ProgramSuggestionCreate';
|
|
359
373
|
export type { ProgramSuggestionDetail } from './models/ProgramSuggestionDetail';
|
|
360
374
|
export { ProgramTypeEnum } from './models/ProgramTypeEnum';
|
|
375
|
+
export type { PublicItemPricing } from './models/PublicItemPricing';
|
|
361
376
|
export type { RbacBaseRole } from './models/RbacBaseRole';
|
|
362
377
|
export type { RbacGroup } from './models/RbacGroup';
|
|
363
378
|
export type { RbacPlatform } from './models/RbacPlatform';
|
|
@@ -411,6 +426,7 @@ export type { SkillsMetric } from './models/SkillsMetric';
|
|
|
411
426
|
export type { SkillThreshold } from './models/SkillThreshold';
|
|
412
427
|
export type { Spa } from './models/Spa';
|
|
413
428
|
export { StateEnum } from './models/StateEnum';
|
|
429
|
+
export { Status0e3Enum } from './models/Status0e3Enum';
|
|
414
430
|
export { Status3daEnum } from './models/Status3daEnum';
|
|
415
431
|
export type { StripeBillingPageIdentifierResponse } from './models/StripeBillingPageIdentifierResponse';
|
|
416
432
|
export type { StripeCheckoutSessionRequest } from './models/StripeCheckoutSessionRequest';
|
|
@@ -529,6 +545,7 @@ export { CustomDomainsService } from './services/CustomDomainsService';
|
|
|
529
545
|
export { FeaturesService } from './services/FeaturesService';
|
|
530
546
|
export { MediaService } from './services/MediaService';
|
|
531
547
|
export { NotificationsService } from './services/NotificationsService';
|
|
548
|
+
export { PlatformsService } from './services/PlatformsService';
|
|
532
549
|
export { RecommendationsService } from './services/RecommendationsService';
|
|
533
550
|
export { ReportsService } from './services/ReportsService';
|
|
534
551
|
export { ScimService } from './services/ScimService';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type CheckoutSessionCreate = {
|
|
6
|
+
price_id: string;
|
|
7
|
+
success_url?: string | null;
|
|
8
|
+
cancel_url?: string | null;
|
|
9
|
+
email?: string | null;
|
|
10
|
+
};
|
|
11
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Response returned after creating a Stripe checkout session.
|
|
7
|
+
*/
|
|
8
|
+
export type CheckoutSessionResponse = {
|
|
9
|
+
/**
|
|
10
|
+
* Stripe-hosted checkout page URL.
|
|
11
|
+
*/
|
|
12
|
+
checkout_url: string;
|
|
13
|
+
/**
|
|
14
|
+
* Stripe checkout session ID.
|
|
15
|
+
*/
|
|
16
|
+
session_id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* * `free_forever` - Free Forever - Existing users get unlimited free access
|
|
7
|
+
* * `require_subscription` - Require Subscription - All users must subscribe (no grandfathering)
|
|
8
|
+
*/
|
|
9
|
+
export enum GrandfatheringStrategyEnum {
|
|
10
|
+
FREE_FOREVER = 'free_forever',
|
|
11
|
+
REQUIRE_SUBSCRIPTION = 'require_subscription',
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* * `month` - Monthly
|
|
7
|
+
* * `year` - Yearly
|
|
8
|
+
* * `one_time` - One Time
|
|
9
|
+
*/
|
|
10
|
+
export enum IntervalEnum {
|
|
11
|
+
MONTH = 'month',
|
|
12
|
+
YEAR = 'year',
|
|
13
|
+
ONE_TIME = 'one_time',
|
|
14
|
+
}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
import type {
|
|
5
|
+
import type { ItemSubscription } from './ItemSubscription';
|
|
6
|
+
import type { ItemTypeC6bEnum } from './ItemTypeC6bEnum';
|
|
6
7
|
/**
|
|
7
8
|
* Response for the generic item access check endpoint.
|
|
8
9
|
*
|
|
@@ -21,7 +22,7 @@ export type ItemAccessCheckResponse = {
|
|
|
21
22
|
* * `course` - course
|
|
22
23
|
* * `program` - program
|
|
23
24
|
*/
|
|
24
|
-
item_type:
|
|
25
|
+
item_type: ItemTypeC6bEnum;
|
|
25
26
|
/**
|
|
26
27
|
* ID of the item that was checked.
|
|
27
28
|
*/
|
|
@@ -42,5 +43,9 @@ export type ItemAccessCheckResponse = {
|
|
|
42
43
|
* Pricing details when access is denied (item name, tiers, amounts).
|
|
43
44
|
*/
|
|
44
45
|
pricing?: any;
|
|
46
|
+
/**
|
|
47
|
+
* Active subscription details when the user has access via subscription.
|
|
48
|
+
*/
|
|
49
|
+
subscription?: ItemSubscription | null;
|
|
45
50
|
};
|
|
46
51
|
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { GrandfatheringStrategyEnum } from './GrandfatheringStrategyEnum';
|
|
6
|
+
import type { ItemPrice } from './ItemPrice';
|
|
7
|
+
import type { ItemType5d7Enum } from './ItemType5d7Enum';
|
|
8
|
+
export type ItemPaywallConfig = {
|
|
9
|
+
/**
|
|
10
|
+
* Type of item being paywalled (e.g. mentor, course, program)
|
|
11
|
+
*
|
|
12
|
+
* * `mentor` - Mentor
|
|
13
|
+
* * `course` - Course
|
|
14
|
+
* * `program` - Program
|
|
15
|
+
*/
|
|
16
|
+
item_type: ItemType5d7Enum;
|
|
17
|
+
/**
|
|
18
|
+
* Identifier for the item (UUID for mentors, slug/key for others)
|
|
19
|
+
*/
|
|
20
|
+
item_id: string;
|
|
21
|
+
readonly item_name: string;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the paywall is enabled for this item
|
|
24
|
+
*/
|
|
25
|
+
is_enabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Marketing description shown to customers at checkout. If blank, a default is generated from the item name.
|
|
28
|
+
*/
|
|
29
|
+
description?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Whether to allow a free tier (bypasses checkout)
|
|
32
|
+
*/
|
|
33
|
+
allow_free_tier?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Stripe Product ID for this item (on the connected account)
|
|
36
|
+
*/
|
|
37
|
+
readonly stripe_product_id: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* Number of days for free trial (0 = no trial)
|
|
40
|
+
*/
|
|
41
|
+
trial_period_days?: number;
|
|
42
|
+
/**
|
|
43
|
+
* How to handle existing users when enabling the paywall
|
|
44
|
+
*
|
|
45
|
+
* * `free_forever` - Free Forever - Existing users get unlimited free access
|
|
46
|
+
* * `require_subscription` - Require Subscription - All users must subscribe (no grandfathering)
|
|
47
|
+
*/
|
|
48
|
+
grandfathering_strategy?: GrandfatheringStrategyEnum;
|
|
49
|
+
/**
|
|
50
|
+
* When the paywall was first enabled (for grandfathering cutoff)
|
|
51
|
+
*/
|
|
52
|
+
readonly paywall_enabled_at: string | null;
|
|
53
|
+
readonly prices: Array<ItemPrice>;
|
|
54
|
+
readonly created_at: string;
|
|
55
|
+
readonly updated_at: string;
|
|
56
|
+
};
|
|
57
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { GrandfatheringStrategyEnum } from './GrandfatheringStrategyEnum';
|
|
6
|
+
export type ItemPaywallConfigCreate = {
|
|
7
|
+
is_enabled?: boolean;
|
|
8
|
+
description?: string;
|
|
9
|
+
allow_free_tier?: boolean;
|
|
10
|
+
trial_period_days?: number;
|
|
11
|
+
grandfathering_strategy?: GrandfatheringStrategyEnum;
|
|
12
|
+
};
|
|
13
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { IntervalEnum } from './IntervalEnum';
|
|
6
|
+
export type ItemPrice = {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
/**
|
|
9
|
+
* Display name for this pricing tier (e.g., 'Basic', 'Premium')
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* Description of what's included in this tier
|
|
14
|
+
*/
|
|
15
|
+
description?: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Price amount in USD (e.g., 9.99 for $9.99, 0 for free)
|
|
18
|
+
*/
|
|
19
|
+
amount: string;
|
|
20
|
+
/**
|
|
21
|
+
* Currency code (e.g., 'usd', 'eur')
|
|
22
|
+
*/
|
|
23
|
+
currency?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Billing interval
|
|
26
|
+
*
|
|
27
|
+
* * `month` - Monthly
|
|
28
|
+
* * `year` - Yearly
|
|
29
|
+
* * `one_time` - One Time
|
|
30
|
+
*/
|
|
31
|
+
interval?: IntervalEnum;
|
|
32
|
+
/**
|
|
33
|
+
* Stripe Price ID (on the connected account)
|
|
34
|
+
*/
|
|
35
|
+
readonly stripe_price_id: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Whether this price is currently available for purchase
|
|
38
|
+
*/
|
|
39
|
+
is_active?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* List of features included in this tier
|
|
42
|
+
*/
|
|
43
|
+
features?: any;
|
|
44
|
+
/**
|
|
45
|
+
* Display order for this price tier
|
|
46
|
+
*/
|
|
47
|
+
sort_order?: number;
|
|
48
|
+
readonly created_at: string;
|
|
49
|
+
readonly updated_at: string;
|
|
50
|
+
};
|
|
51
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { IntervalEnum } from './IntervalEnum';
|
|
6
|
+
export type ItemPriceCreate = {
|
|
7
|
+
/**
|
|
8
|
+
* Display name for this pricing tier (e.g., 'Basic', 'Premium')
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* Description of what's included in this tier
|
|
13
|
+
*/
|
|
14
|
+
description?: string | null;
|
|
15
|
+
amount: string;
|
|
16
|
+
/**
|
|
17
|
+
* Currency code (e.g., 'usd', 'eur')
|
|
18
|
+
*/
|
|
19
|
+
currency?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Billing interval
|
|
22
|
+
*
|
|
23
|
+
* * `month` - Monthly
|
|
24
|
+
* * `year` - Yearly
|
|
25
|
+
* * `one_time` - One Time
|
|
26
|
+
*/
|
|
27
|
+
interval?: IntervalEnum;
|
|
28
|
+
/**
|
|
29
|
+
* Whether this price is currently available for purchase
|
|
30
|
+
*/
|
|
31
|
+
is_active?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* List of features included in this tier
|
|
34
|
+
*/
|
|
35
|
+
features?: any;
|
|
36
|
+
/**
|
|
37
|
+
* Display order for this price tier
|
|
38
|
+
*/
|
|
39
|
+
sort_order?: number;
|
|
40
|
+
};
|
|
41
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { ItemPrice } from './ItemPrice';
|
|
6
|
+
import type { ItemType5d7Enum } from './ItemType5d7Enum';
|
|
7
|
+
import type { Status0e3Enum } from './Status0e3Enum';
|
|
8
|
+
export type ItemSubscription = {
|
|
9
|
+
readonly unique_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* Type of item being subscribed to
|
|
12
|
+
*
|
|
13
|
+
* * `mentor` - Mentor
|
|
14
|
+
* * `course` - Course
|
|
15
|
+
* * `program` - Program
|
|
16
|
+
*/
|
|
17
|
+
item_type: ItemType5d7Enum;
|
|
18
|
+
/**
|
|
19
|
+
* Identifier for the item
|
|
20
|
+
*/
|
|
21
|
+
item_id: string;
|
|
22
|
+
readonly item_name: string;
|
|
23
|
+
/**
|
|
24
|
+
* Current subscription status
|
|
25
|
+
*
|
|
26
|
+
* * `active` - Active
|
|
27
|
+
* * `free` - Free Tier
|
|
28
|
+
* * `grandfathered` - Grandfathered
|
|
29
|
+
* * `trialing` - Trialing
|
|
30
|
+
* * `past_due` - Past Due
|
|
31
|
+
* * `canceled` - Canceled
|
|
32
|
+
* * `incomplete` - Incomplete
|
|
33
|
+
*/
|
|
34
|
+
status?: Status0e3Enum;
|
|
35
|
+
readonly price: ItemPrice;
|
|
36
|
+
/**
|
|
37
|
+
* Start of current billing period
|
|
38
|
+
*/
|
|
39
|
+
current_period_start?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* End of current billing period
|
|
42
|
+
*/
|
|
43
|
+
current_period_end?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* When the trial ends (if applicable)
|
|
46
|
+
*/
|
|
47
|
+
trial_end?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Whether subscription will cancel at period end
|
|
50
|
+
*/
|
|
51
|
+
cancel_at_period_end?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* When the subscription was canceled
|
|
54
|
+
*/
|
|
55
|
+
canceled_at?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Whether this is a grandfathered pre-paywall user
|
|
58
|
+
*/
|
|
59
|
+
is_grandfathered?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* When the user was grandfathered
|
|
62
|
+
*/
|
|
63
|
+
grandfathered_at?: string | null;
|
|
64
|
+
readonly billing_portal_url: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* Additional subscription metadata
|
|
67
|
+
*/
|
|
68
|
+
metadata?: any;
|
|
69
|
+
readonly created_at: string;
|
|
70
|
+
readonly updated_at: string;
|
|
71
|
+
};
|
|
72
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { ItemPrice } from './ItemPrice';
|
|
6
|
+
import type { ItemType5d7Enum } from './ItemType5d7Enum';
|
|
7
|
+
import type { Status0e3Enum } from './Status0e3Enum';
|
|
8
|
+
export type ItemSubscriptionList = {
|
|
9
|
+
readonly unique_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* Type of item being subscribed to
|
|
12
|
+
*
|
|
13
|
+
* * `mentor` - Mentor
|
|
14
|
+
* * `course` - Course
|
|
15
|
+
* * `program` - Program
|
|
16
|
+
*/
|
|
17
|
+
item_type: ItemType5d7Enum;
|
|
18
|
+
/**
|
|
19
|
+
* Identifier for the item
|
|
20
|
+
*/
|
|
21
|
+
item_id: string;
|
|
22
|
+
readonly item_name: string;
|
|
23
|
+
/**
|
|
24
|
+
* Current subscription status
|
|
25
|
+
*
|
|
26
|
+
* * `active` - Active
|
|
27
|
+
* * `free` - Free Tier
|
|
28
|
+
* * `grandfathered` - Grandfathered
|
|
29
|
+
* * `trialing` - Trialing
|
|
30
|
+
* * `past_due` - Past Due
|
|
31
|
+
* * `canceled` - Canceled
|
|
32
|
+
* * `incomplete` - Incomplete
|
|
33
|
+
*/
|
|
34
|
+
status?: Status0e3Enum;
|
|
35
|
+
readonly price: ItemPrice;
|
|
36
|
+
readonly created_at: string;
|
|
37
|
+
readonly updated_at: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* * `mentor` - Mentor
|
|
7
|
+
* * `course` - Course
|
|
8
|
+
* * `program` - Program
|
|
9
|
+
*/
|
|
10
|
+
export enum ItemType5d7Enum {
|
|
11
|
+
MENTOR = 'mentor',
|
|
12
|
+
COURSE = 'course',
|
|
13
|
+
PROGRAM = 'program',
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { ItemSubscription } from './ItemSubscription';
|
|
6
|
+
export type PaginatedItemSubscriptionList = {
|
|
7
|
+
count: number;
|
|
8
|
+
next?: string | null;
|
|
9
|
+
previous?: string | null;
|
|
10
|
+
results: Array<ItemSubscription>;
|
|
11
|
+
};
|
|
12
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { ItemSubscriptionList } from './ItemSubscriptionList';
|
|
6
|
+
export type PaginatedItemSubscriptionListList = {
|
|
7
|
+
count: number;
|
|
8
|
+
next?: string | null;
|
|
9
|
+
previous?: string | null;
|
|
10
|
+
results: Array<ItemSubscriptionList>;
|
|
11
|
+
};
|
|
12
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Response containing a Stripe customer portal URL for subscription management.
|
|
7
|
+
*/
|
|
8
|
+
export type PortalUrlResponse = {
|
|
9
|
+
/**
|
|
10
|
+
* Stripe customer portal URL.
|
|
11
|
+
*/
|
|
12
|
+
portal_url: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { ItemPrice } from './ItemPrice';
|
|
6
|
+
import type { ItemTypeC6bEnum } from './ItemTypeC6bEnum';
|
|
7
|
+
export type PublicItemPricing = {
|
|
8
|
+
item_type: ItemTypeC6bEnum;
|
|
9
|
+
item_id: string;
|
|
10
|
+
item_name: string;
|
|
11
|
+
is_paywalled: boolean;
|
|
12
|
+
allow_free_tier: boolean;
|
|
13
|
+
trial_period_days: number;
|
|
14
|
+
prices: Array<ItemPrice>;
|
|
15
|
+
};
|
|
16
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* * `active` - Active
|
|
7
|
+
* * `free` - Free Tier
|
|
8
|
+
* * `grandfathered` - Grandfathered
|
|
9
|
+
* * `trialing` - Trialing
|
|
10
|
+
* * `past_due` - Past Due
|
|
11
|
+
* * `canceled` - Canceled
|
|
12
|
+
* * `incomplete` - Incomplete
|
|
13
|
+
*/
|
|
14
|
+
export enum Status0e3Enum {
|
|
15
|
+
ACTIVE = 'active',
|
|
16
|
+
FREE = 'free',
|
|
17
|
+
GRANDFATHERED = 'grandfathered',
|
|
18
|
+
TRIALING = 'trialing',
|
|
19
|
+
PAST_DUE = 'past_due',
|
|
20
|
+
CANCELED = 'canceled',
|
|
21
|
+
INCOMPLETE = 'incomplete',
|
|
22
|
+
}
|