@mediahub-bg/ott-objects 0.7.16 → 0.7.18
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/package.json +1 -1
- package/web/types.ts +61 -0
package/package.json
CHANGED
package/web/types.ts
CHANGED
|
@@ -7,6 +7,16 @@ export interface PubPromoPic {
|
|
|
7
7
|
position: string;
|
|
8
8
|
url: string;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* subscriptions reference item price ids, not item ids
|
|
12
|
+
*/
|
|
13
|
+
export interface PubBillingItemPrice {
|
|
14
|
+
id: string;
|
|
15
|
+
period: number /* int64 */;
|
|
16
|
+
periodUnit: string;
|
|
17
|
+
price: number /* int64 */;
|
|
18
|
+
currencyCode: string;
|
|
19
|
+
}
|
|
10
20
|
export interface PubBillingAddon {
|
|
11
21
|
id: string;
|
|
12
22
|
name: string;
|
|
@@ -24,6 +34,7 @@ export interface PubBillingAddon {
|
|
|
24
34
|
unit?: string;
|
|
25
35
|
cfMaxAmount?: number /* int64 */;
|
|
26
36
|
CfBit: string;
|
|
37
|
+
itemPrices?: PubBillingItemPrice[];
|
|
27
38
|
expire?: number /* int64 */;
|
|
28
39
|
trial?: number /* int64 */;
|
|
29
40
|
paid?: boolean;
|
|
@@ -48,6 +59,8 @@ export interface PubBillingPlan {
|
|
|
48
59
|
cfPeriod: number /* int64 */;
|
|
49
60
|
cfBit: string;
|
|
50
61
|
cfDetailedView?: boolean;
|
|
62
|
+
cfSlots?: number /* int64 */; // family slots, the master included
|
|
63
|
+
itemPrices?: PubBillingItemPrice[];
|
|
51
64
|
cfFrontendColor?: string;
|
|
52
65
|
cfFrontendOrder?: number /* int */;
|
|
53
66
|
cfHdChannels?: number /* int */;
|
|
@@ -232,6 +245,12 @@ export interface PubSubscription {
|
|
|
232
245
|
planId: string;
|
|
233
246
|
totalDues: number /* int64 */;
|
|
234
247
|
addons: PubBillingAddon[];
|
|
248
|
+
/**
|
|
249
|
+
* product catalog 2.0 only
|
|
250
|
+
*/
|
|
251
|
+
planPriceId?: string;
|
|
252
|
+
billingPeriod?: number /* int64 */;
|
|
253
|
+
billingPeriodUnit?: string;
|
|
235
254
|
}
|
|
236
255
|
export interface PubBillingPlanDetails {
|
|
237
256
|
isPaid?: boolean;
|
|
@@ -297,10 +316,23 @@ export interface CustomerInfo extends CustomBillingFields {
|
|
|
297
316
|
*/
|
|
298
317
|
automaticPayment?: boolean;
|
|
299
318
|
}
|
|
319
|
+
export interface InOneTimePurchase {
|
|
320
|
+
itemPriceId: string;
|
|
321
|
+
quantity?: number /* int32 */;
|
|
322
|
+
idempotencyKey: string; // new for every purchase attempt
|
|
323
|
+
}
|
|
324
|
+
export interface PubOneTimePurchase {
|
|
325
|
+
invoiceId: string;
|
|
326
|
+
status: string; // chargebee invoice status, paid once collected
|
|
327
|
+
}
|
|
300
328
|
export interface InAddon {
|
|
301
329
|
id: string;
|
|
302
330
|
quantity: number /* int32 */;
|
|
303
331
|
recurring: boolean;
|
|
332
|
+
/**
|
|
333
|
+
* bill the addon only until the base term ends
|
|
334
|
+
*/
|
|
335
|
+
untilTermEnd?: boolean;
|
|
304
336
|
}
|
|
305
337
|
export interface InPlan {
|
|
306
338
|
id: string;
|
|
@@ -563,6 +595,35 @@ export interface PubUserFavorite {
|
|
|
563
595
|
addts: number /* uint64 */;
|
|
564
596
|
}
|
|
565
597
|
|
|
598
|
+
//////////
|
|
599
|
+
// source: family_pub.go
|
|
600
|
+
|
|
601
|
+
export const FAMILY_SLOT_FREE = "free";
|
|
602
|
+
export const FAMILY_SLOT_INVITED = "invited";
|
|
603
|
+
export const FAMILY_SLOT_JOINED = "joined";
|
|
604
|
+
export interface PubFamilySlot {
|
|
605
|
+
email: string; // invitee while invited, member otherwise
|
|
606
|
+
state: string;
|
|
607
|
+
filled?: number /* int64 */; // when the last member accepted
|
|
608
|
+
freeAt?: number /* int64 */;
|
|
609
|
+
expires?: number /* int64 */;
|
|
610
|
+
}
|
|
611
|
+
export interface PubFamily {
|
|
612
|
+
planId?: string;
|
|
613
|
+
slots: number /* int64 */; // cfSlots of the plan, the master included
|
|
614
|
+
seats: number /* int64 */;
|
|
615
|
+
member: boolean;
|
|
616
|
+
owner?: string; // owner email, set for members
|
|
617
|
+
roster: PubFamilySlot[];
|
|
618
|
+
}
|
|
619
|
+
export interface InFamilyInvite {
|
|
620
|
+
email: string;
|
|
621
|
+
}
|
|
622
|
+
export interface InFamilyAccept {
|
|
623
|
+
owner: string;
|
|
624
|
+
secret: string;
|
|
625
|
+
}
|
|
626
|
+
|
|
566
627
|
//////////
|
|
567
628
|
// source: ia_pub.go
|
|
568
629
|
/*
|