@selfcommunity/types 0.7.7-payments.169 → 0.8.0-alpha.0
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/lib/cjs/index.d.ts +4 -4
- package/lib/cjs/index.js +1 -7
- package/lib/cjs/types/category.d.ts +1 -2
- package/lib/cjs/types/course.d.ts +1 -6
- package/lib/cjs/types/device.d.ts +1 -1
- package/lib/cjs/types/event.d.ts +1 -2
- package/lib/cjs/types/feature.d.ts +0 -1
- package/lib/cjs/types/feature.js +0 -1
- package/lib/cjs/types/feed.d.ts +1 -1
- package/lib/cjs/types/group.d.ts +1 -2
- package/lib/cjs/types/index.d.ts +1 -3
- package/lib/cjs/types/index.js +1 -7
- package/lib/cjs/types/preference.d.ts +1 -4
- package/lib/cjs/types/preference.js +0 -3
- package/lib/esm/index.d.ts +4 -4
- package/lib/esm/index.js +2 -2
- package/lib/esm/types/category.d.ts +1 -2
- package/lib/esm/types/course.d.ts +1 -6
- package/lib/esm/types/device.d.ts +1 -1
- package/lib/esm/types/event.d.ts +1 -2
- package/lib/esm/types/feature.d.ts +0 -1
- package/lib/esm/types/feature.js +0 -1
- package/lib/esm/types/feed.d.ts +1 -1
- package/lib/esm/types/group.d.ts +1 -2
- package/lib/esm/types/index.d.ts +1 -3
- package/lib/esm/types/index.js +1 -2
- package/lib/esm/types/preference.d.ts +1 -4
- package/lib/esm/types/preference.js +0 -3
- package/lib/umd/types.js +1 -1
- package/package.json +2 -2
- package/lib/cjs/types/community.d.ts +0 -19
- package/lib/cjs/types/community.js +0 -2
- package/lib/cjs/types/payment.d.ts +0 -220
- package/lib/cjs/types/payment.js +0 -35
- package/lib/esm/types/community.d.ts +0 -19
- package/lib/esm/types/community.js +0 -1
- package/lib/esm/types/payment.d.ts +0 -220
- package/lib/esm/types/payment.js +0 -32
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import { SCUserType } from './user';
|
|
2
|
-
import { SCEventType } from './event';
|
|
3
|
-
import { SCCourseType } from './course';
|
|
4
|
-
import { SCGroupType } from './group';
|
|
5
|
-
import { SCCategoryType } from './category';
|
|
6
|
-
import { SCCommunityType } from './community';
|
|
7
|
-
export interface SCPaywall {
|
|
8
|
-
/**
|
|
9
|
-
* Id product
|
|
10
|
-
*/
|
|
11
|
-
id: number;
|
|
12
|
-
/**
|
|
13
|
-
* Content type
|
|
14
|
-
*/
|
|
15
|
-
content_type: SCContentType;
|
|
16
|
-
/**
|
|
17
|
-
* Content event
|
|
18
|
-
*/
|
|
19
|
-
event?: SCEventType;
|
|
20
|
-
/**
|
|
21
|
-
* Content course
|
|
22
|
-
*/
|
|
23
|
-
course?: SCCourseType;
|
|
24
|
-
/**
|
|
25
|
-
* Content group
|
|
26
|
-
*/
|
|
27
|
-
group?: SCGroupType;
|
|
28
|
-
/**
|
|
29
|
-
* Content category
|
|
30
|
-
*/
|
|
31
|
-
category?: SCCategoryType;
|
|
32
|
-
/**
|
|
33
|
-
* Content community
|
|
34
|
-
*/
|
|
35
|
-
community?: SCCommunityType;
|
|
36
|
-
/**
|
|
37
|
-
* Active or not
|
|
38
|
-
*/
|
|
39
|
-
active?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Payment product
|
|
42
|
-
*/
|
|
43
|
-
payment_product: SCPaymentProduct;
|
|
44
|
-
}
|
|
45
|
-
export interface SCPaymentProduct {
|
|
46
|
-
/**
|
|
47
|
-
* Id product
|
|
48
|
-
*/
|
|
49
|
-
id: number;
|
|
50
|
-
/**
|
|
51
|
-
* Product name
|
|
52
|
-
*/
|
|
53
|
-
name: string;
|
|
54
|
-
/**
|
|
55
|
-
* Description name
|
|
56
|
-
*/
|
|
57
|
-
description?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Active or not
|
|
60
|
-
*/
|
|
61
|
-
active?: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Stripe product id
|
|
64
|
-
*/
|
|
65
|
-
stripe_product_id: string;
|
|
66
|
-
/**
|
|
67
|
-
* Stripe default price id
|
|
68
|
-
*/
|
|
69
|
-
stripe_default_price_id?: string;
|
|
70
|
-
/**
|
|
71
|
-
* Stripe prices
|
|
72
|
-
*/
|
|
73
|
-
payment_prices: SCPaymentPrice[];
|
|
74
|
-
}
|
|
75
|
-
export declare enum SCPaymentProductTemplateType {
|
|
76
|
-
DETAIL = "detail"
|
|
77
|
-
}
|
|
78
|
-
export interface SCPaymentPrice {
|
|
79
|
-
/**
|
|
80
|
-
* Id product
|
|
81
|
-
*/
|
|
82
|
-
id: number;
|
|
83
|
-
/**
|
|
84
|
-
* Description name
|
|
85
|
-
*/
|
|
86
|
-
description?: string;
|
|
87
|
-
/**
|
|
88
|
-
* Active or not
|
|
89
|
-
*/
|
|
90
|
-
active?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Stripe price id
|
|
93
|
-
*/
|
|
94
|
-
stripe_price_id: string;
|
|
95
|
-
/**
|
|
96
|
-
* Price
|
|
97
|
-
*/
|
|
98
|
-
unit_amount?: number;
|
|
99
|
-
/**
|
|
100
|
-
* Currency
|
|
101
|
-
*/
|
|
102
|
-
currency?: SCPaymentPriceCurrencyType;
|
|
103
|
-
/**
|
|
104
|
-
* Recurring interval
|
|
105
|
-
*/
|
|
106
|
-
recurring_interval?: string;
|
|
107
|
-
/**
|
|
108
|
-
* Payment product id associated
|
|
109
|
-
*/
|
|
110
|
-
payment_product_id?: number;
|
|
111
|
-
/**
|
|
112
|
-
* Payment product associated
|
|
113
|
-
*/
|
|
114
|
-
payment_product?: SCPaymentProduct;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* SCCurrencyPriceType enum
|
|
118
|
-
*/
|
|
119
|
-
export declare enum SCPaymentPriceCurrencyType {
|
|
120
|
-
EUR = "EUR"
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Paywalls Content types
|
|
124
|
-
*/
|
|
125
|
-
export declare enum SCContentType {
|
|
126
|
-
EVENT = "event",
|
|
127
|
-
COURSE = "course",
|
|
128
|
-
CATEGORY = "category",
|
|
129
|
-
GROUP = "group",
|
|
130
|
-
COMMUNITY = "community"
|
|
131
|
-
}
|
|
132
|
-
export interface SCPurchasableContent {
|
|
133
|
-
id?: number;
|
|
134
|
-
payment_order?: SCPaymentOrder;
|
|
135
|
-
paywalls?: SCPaymentProduct[];
|
|
136
|
-
product_ids?: number[];
|
|
137
|
-
}
|
|
138
|
-
export interface SCCheckoutSessionDetail {
|
|
139
|
-
status?: string;
|
|
140
|
-
metadata?: {
|
|
141
|
-
content_id: string;
|
|
142
|
-
content_type: SCContentType;
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
export interface SCCheckoutSessionComplete {
|
|
146
|
-
id: number;
|
|
147
|
-
content_id: number;
|
|
148
|
-
content_type: SCContentType;
|
|
149
|
-
event?: SCEventType;
|
|
150
|
-
course?: SCCourseType;
|
|
151
|
-
group?: SCGroupType;
|
|
152
|
-
category?: SCCategoryType;
|
|
153
|
-
created_at: Date;
|
|
154
|
-
expire_at: Date;
|
|
155
|
-
payment_price: SCPaymentPrice;
|
|
156
|
-
user: SCUserType;
|
|
157
|
-
}
|
|
158
|
-
export interface SCCheckoutSession {
|
|
159
|
-
/**
|
|
160
|
-
* Session id
|
|
161
|
-
*/
|
|
162
|
-
id?: string;
|
|
163
|
-
/**
|
|
164
|
-
* Client secret
|
|
165
|
-
*/
|
|
166
|
-
client_secret: string;
|
|
167
|
-
}
|
|
168
|
-
export declare enum SCCheckoutSessionStatus {
|
|
169
|
-
COMPLETE = "complete",
|
|
170
|
-
OPEN = "open"
|
|
171
|
-
}
|
|
172
|
-
export declare enum SCCheckoutSessionUIMode {
|
|
173
|
-
HOSTED = "hosted",
|
|
174
|
-
EMBEDDED = "embedded"
|
|
175
|
-
}
|
|
176
|
-
export interface SCPaymentOrder {
|
|
177
|
-
/**
|
|
178
|
-
* Order id
|
|
179
|
-
*/
|
|
180
|
-
id: number;
|
|
181
|
-
/**
|
|
182
|
-
* Price
|
|
183
|
-
*/
|
|
184
|
-
payment_price?: SCPaymentPrice;
|
|
185
|
-
/**
|
|
186
|
-
* Content type
|
|
187
|
-
*/
|
|
188
|
-
content_type: SCContentType;
|
|
189
|
-
/**
|
|
190
|
-
* Content event
|
|
191
|
-
*/
|
|
192
|
-
event?: SCEventType;
|
|
193
|
-
/**
|
|
194
|
-
* Content course
|
|
195
|
-
*/
|
|
196
|
-
course?: SCCourseType;
|
|
197
|
-
/**
|
|
198
|
-
* Content group
|
|
199
|
-
*/
|
|
200
|
-
group?: SCGroupType;
|
|
201
|
-
/**
|
|
202
|
-
* Content category
|
|
203
|
-
*/
|
|
204
|
-
category?: SCCategoryType;
|
|
205
|
-
/**
|
|
206
|
-
* Content community
|
|
207
|
-
*/
|
|
208
|
-
community?: SCCommunityType;
|
|
209
|
-
/**
|
|
210
|
-
* Created at
|
|
211
|
-
*/
|
|
212
|
-
created_at?: Date;
|
|
213
|
-
/**
|
|
214
|
-
* Expired at
|
|
215
|
-
*/
|
|
216
|
-
expire_at?: Date;
|
|
217
|
-
}
|
|
218
|
-
export interface SCPaymentsCustomerPortalSession {
|
|
219
|
-
url: string;
|
|
220
|
-
}
|
package/lib/esm/types/payment.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export var SCPaymentProductTemplateType;
|
|
2
|
-
(function (SCPaymentProductTemplateType) {
|
|
3
|
-
SCPaymentProductTemplateType["DETAIL"] = "detail";
|
|
4
|
-
})(SCPaymentProductTemplateType || (SCPaymentProductTemplateType = {}));
|
|
5
|
-
/**
|
|
6
|
-
* SCCurrencyPriceType enum
|
|
7
|
-
*/
|
|
8
|
-
export var SCPaymentPriceCurrencyType;
|
|
9
|
-
(function (SCPaymentPriceCurrencyType) {
|
|
10
|
-
SCPaymentPriceCurrencyType["EUR"] = "EUR";
|
|
11
|
-
})(SCPaymentPriceCurrencyType || (SCPaymentPriceCurrencyType = {}));
|
|
12
|
-
/**
|
|
13
|
-
* Paywalls Content types
|
|
14
|
-
*/
|
|
15
|
-
export var SCContentType;
|
|
16
|
-
(function (SCContentType) {
|
|
17
|
-
SCContentType["EVENT"] = "event";
|
|
18
|
-
SCContentType["COURSE"] = "course";
|
|
19
|
-
SCContentType["CATEGORY"] = "category";
|
|
20
|
-
SCContentType["GROUP"] = "group";
|
|
21
|
-
SCContentType["COMMUNITY"] = "community";
|
|
22
|
-
})(SCContentType || (SCContentType = {}));
|
|
23
|
-
export var SCCheckoutSessionStatus;
|
|
24
|
-
(function (SCCheckoutSessionStatus) {
|
|
25
|
-
SCCheckoutSessionStatus["COMPLETE"] = "complete";
|
|
26
|
-
SCCheckoutSessionStatus["OPEN"] = "open";
|
|
27
|
-
})(SCCheckoutSessionStatus || (SCCheckoutSessionStatus = {}));
|
|
28
|
-
export var SCCheckoutSessionUIMode;
|
|
29
|
-
(function (SCCheckoutSessionUIMode) {
|
|
30
|
-
SCCheckoutSessionUIMode["HOSTED"] = "hosted";
|
|
31
|
-
SCCheckoutSessionUIMode["EMBEDDED"] = "embedded";
|
|
32
|
-
})(SCCheckoutSessionUIMode || (SCCheckoutSessionUIMode = {}));
|