@iblai/iblai-api 4.195.0-core → 4.196.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 +111 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +112 -20
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +111 -19
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +3 -2
- package/dist/types/models/ItemAccessCheckResponse.d.ts +3 -2
- package/dist/types/models/ItemPaywallConfig.d.ts +3 -2
- package/dist/types/models/ItemSubscription.d.ts +3 -2
- package/dist/types/models/ItemSubscriptionList.d.ts +3 -2
- package/dist/types/models/{ItemTypeC6bEnum.d.ts → ItemType3e2Enum.d.ts} +4 -2
- package/dist/types/models/{ItemType5d7Enum.d.ts → ItemType40fEnum.d.ts} +4 -2
- package/dist/types/models/PlatformRevenueSummary.d.ts +5 -0
- package/dist/types/models/PublicItemPricing.d.ts +2 -2
- package/dist/types/services/BillingService.d.ts +46 -1
- package/dist/types/services/PlatformsService.d.ts +46 -1
- package/package.json +1 -1
- package/sdk_schema.yml +229 -14
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +3 -2
- package/src/models/ItemAccessCheckResponse.ts +3 -2
- package/src/models/ItemPaywallConfig.ts +3 -2
- package/src/models/ItemSubscription.ts +3 -2
- package/src/models/ItemSubscriptionList.ts +3 -2
- package/src/models/{ItemTypeC6bEnum.ts → ItemType3e2Enum.ts} +3 -1
- package/src/models/{ItemType5d7Enum.ts → ItemType40fEnum.ts} +3 -1
- package/src/models/PlatformRevenueSummary.ts +10 -0
- package/src/models/PublicItemPricing.ts +2 -2
- package/src/services/BillingService.ts +76 -1
- package/src/services/PlatformsService.ts +76 -1
|
@@ -12,6 +12,7 @@ import type { ItemPriceCreate } from '../models/ItemPriceCreate';
|
|
|
12
12
|
import type { ItemSubscription } from '../models/ItemSubscription';
|
|
13
13
|
import type { PaginatedItemSubscriptionList } from '../models/PaginatedItemSubscriptionList';
|
|
14
14
|
import type { PaginatedItemSubscriptionListList } from '../models/PaginatedItemSubscriptionListList';
|
|
15
|
+
import type { PlatformRevenueSummary } from '../models/PlatformRevenueSummary';
|
|
15
16
|
import type { PortalUrlResponse } from '../models/PortalUrlResponse';
|
|
16
17
|
import type { PublicItemPricing } from '../models/PublicItemPricing';
|
|
17
18
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
@@ -563,8 +564,9 @@ export class PlatformsService {
|
|
|
563
564
|
* * `mentor` - mentor
|
|
564
565
|
* * `course` - course
|
|
565
566
|
* * `program` - program
|
|
567
|
+
* * `pathway` - pathway
|
|
566
568
|
*/
|
|
567
|
-
itemType?: 'mentor' | 'course' | 'program',
|
|
569
|
+
itemType?: 'mentor' | 'course' | 'program' | 'pathway',
|
|
568
570
|
/**
|
|
569
571
|
* A page number within the paginated result set.
|
|
570
572
|
*/
|
|
@@ -598,4 +600,77 @@ export class PlatformsService {
|
|
|
598
600
|
},
|
|
599
601
|
});
|
|
600
602
|
}
|
|
603
|
+
/**
|
|
604
|
+
* Platform sales summary
|
|
605
|
+
* Aggregate sales volume and count for a platform across all item types.
|
|
606
|
+
* @returns PlatformRevenueSummary
|
|
607
|
+
* @throws ApiError
|
|
608
|
+
*/
|
|
609
|
+
public static platformsRevenueRetrieve({
|
|
610
|
+
platformKey,
|
|
611
|
+
}: {
|
|
612
|
+
platformKey: string,
|
|
613
|
+
}): CancelablePromise<PlatformRevenueSummary> {
|
|
614
|
+
return __request(OpenAPI, {
|
|
615
|
+
method: 'GET',
|
|
616
|
+
url: '/platforms/{platform_key}/revenue/',
|
|
617
|
+
path: {
|
|
618
|
+
'platform_key': platformKey,
|
|
619
|
+
},
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* List all platform subscribers
|
|
624
|
+
* Paginated list of all subscribers across all items on a platform. Filterable by status and item_type.
|
|
625
|
+
* @returns PaginatedItemSubscriptionListList
|
|
626
|
+
* @throws ApiError
|
|
627
|
+
*/
|
|
628
|
+
public static platformsSubscribersList({
|
|
629
|
+
platformKey,
|
|
630
|
+
itemType,
|
|
631
|
+
page,
|
|
632
|
+
pageSize,
|
|
633
|
+
status,
|
|
634
|
+
}: {
|
|
635
|
+
platformKey: string,
|
|
636
|
+
/**
|
|
637
|
+
* * `mentor` - mentor
|
|
638
|
+
* * `course` - course
|
|
639
|
+
* * `program` - program
|
|
640
|
+
* * `pathway` - pathway
|
|
641
|
+
*/
|
|
642
|
+
itemType?: 'mentor' | 'course' | 'program' | 'pathway',
|
|
643
|
+
/**
|
|
644
|
+
* A page number within the paginated result set.
|
|
645
|
+
*/
|
|
646
|
+
page?: number,
|
|
647
|
+
/**
|
|
648
|
+
* Number of results to return per page.
|
|
649
|
+
*/
|
|
650
|
+
pageSize?: number,
|
|
651
|
+
/**
|
|
652
|
+
* * `active` - Active
|
|
653
|
+
* * `free` - Free Tier
|
|
654
|
+
* * `grandfathered` - Grandfathered
|
|
655
|
+
* * `trialing` - Trialing
|
|
656
|
+
* * `past_due` - Past Due
|
|
657
|
+
* * `canceled` - Canceled
|
|
658
|
+
* * `incomplete` - Incomplete
|
|
659
|
+
*/
|
|
660
|
+
status?: 'active' | 'free' | 'grandfathered' | 'trialing' | 'past_due' | 'canceled' | 'incomplete',
|
|
661
|
+
}): CancelablePromise<PaginatedItemSubscriptionListList> {
|
|
662
|
+
return __request(OpenAPI, {
|
|
663
|
+
method: 'GET',
|
|
664
|
+
url: '/platforms/{platform_key}/subscribers/',
|
|
665
|
+
path: {
|
|
666
|
+
'platform_key': platformKey,
|
|
667
|
+
},
|
|
668
|
+
query: {
|
|
669
|
+
'item_type': itemType,
|
|
670
|
+
'page': page,
|
|
671
|
+
'page_size': pageSize,
|
|
672
|
+
'status': status,
|
|
673
|
+
},
|
|
674
|
+
});
|
|
675
|
+
}
|
|
601
676
|
}
|