bundlesocial 2.2.0 → 2.3.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/dist/index.d.mts +187 -15
- package/dist/index.d.ts +187 -15
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -78,6 +78,7 @@ type AppGetHealthResponse = {
|
|
|
78
78
|
type OrganizationGetOrganizationResponse = {
|
|
79
79
|
id: string;
|
|
80
80
|
createdById: string;
|
|
81
|
+
promotionCodeId?: string | null;
|
|
81
82
|
name?: string | null;
|
|
82
83
|
avatarUrl?: string | null;
|
|
83
84
|
defaultPaymentMethodFilled?: boolean;
|
|
@@ -110,9 +111,11 @@ type OrganizationGetOrganizationResponse = {
|
|
|
110
111
|
updatedAt: string | null;
|
|
111
112
|
deletedAt?: string | null;
|
|
112
113
|
};
|
|
113
|
-
|
|
114
|
+
subscription?: {
|
|
114
115
|
id: string;
|
|
115
116
|
organizationId: string;
|
|
117
|
+
couponId?: string | null;
|
|
118
|
+
promotionCodeId?: string | null;
|
|
116
119
|
stripeSubscriptionId: string;
|
|
117
120
|
stripeSubscriptionItems?: Array<{
|
|
118
121
|
id: string;
|
|
@@ -130,19 +133,95 @@ type OrganizationGetOrganizationResponse = {
|
|
|
130
133
|
canceledAt?: string | null;
|
|
131
134
|
trialStart?: string | null;
|
|
132
135
|
trialEnd?: string | null;
|
|
136
|
+
defaultMaxMonthlyPosts: number;
|
|
137
|
+
defaultMaxDailyPosts: number;
|
|
138
|
+
discountStart?: string | null;
|
|
139
|
+
discountEnd?: string | null;
|
|
133
140
|
createdAt: string | null;
|
|
134
141
|
updatedAt: string | null;
|
|
135
|
-
|
|
142
|
+
teamPlans: Array<{
|
|
136
143
|
id: string;
|
|
137
|
-
|
|
144
|
+
subscriptionId: string;
|
|
138
145
|
teamId: string;
|
|
139
146
|
stripePriceId: string;
|
|
140
|
-
tier: 'PRO'
|
|
147
|
+
tier: 'PRO';
|
|
141
148
|
maxMonthlyPosts: number;
|
|
142
149
|
maxDailyPosts: number;
|
|
143
150
|
createdAt: string | null;
|
|
144
151
|
updatedAt: string | null;
|
|
152
|
+
}>;
|
|
153
|
+
coupon?: {
|
|
154
|
+
id: string;
|
|
155
|
+
name?: string | null;
|
|
156
|
+
amountOff?: number | null;
|
|
157
|
+
percentOff?: number | null;
|
|
158
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
159
|
+
durationInMonths?: number | null;
|
|
160
|
+
maxRedemptions?: number | null;
|
|
161
|
+
valid: boolean;
|
|
162
|
+
createdAt: string | null;
|
|
163
|
+
updatedAt: string | null;
|
|
164
|
+
promotionCodes: Array<{
|
|
165
|
+
id: string;
|
|
166
|
+
couponId: string;
|
|
167
|
+
code: string;
|
|
168
|
+
active: boolean;
|
|
169
|
+
expiresAt?: string | null;
|
|
170
|
+
maxRedemptions?: number | null;
|
|
171
|
+
firstTimeTransaction: boolean;
|
|
172
|
+
minimumAmount?: number | null;
|
|
173
|
+
createdAt: string | null;
|
|
174
|
+
updatedAt: string | null;
|
|
175
|
+
}>;
|
|
145
176
|
} | null;
|
|
177
|
+
promotionCode?: {
|
|
178
|
+
id: string;
|
|
179
|
+
couponId: string;
|
|
180
|
+
code: string;
|
|
181
|
+
active: boolean;
|
|
182
|
+
expiresAt?: string | null;
|
|
183
|
+
maxRedemptions?: number | null;
|
|
184
|
+
firstTimeTransaction: boolean;
|
|
185
|
+
minimumAmount?: number | null;
|
|
186
|
+
createdAt: string | null;
|
|
187
|
+
updatedAt: string | null;
|
|
188
|
+
coupon: {
|
|
189
|
+
id: string;
|
|
190
|
+
name?: string | null;
|
|
191
|
+
amountOff?: number | null;
|
|
192
|
+
percentOff?: number | null;
|
|
193
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
194
|
+
durationInMonths?: number | null;
|
|
195
|
+
maxRedemptions?: number | null;
|
|
196
|
+
valid: boolean;
|
|
197
|
+
createdAt: string | null;
|
|
198
|
+
updatedAt: string | null;
|
|
199
|
+
};
|
|
200
|
+
} | null;
|
|
201
|
+
} | null;
|
|
202
|
+
promotionCode?: {
|
|
203
|
+
id: string;
|
|
204
|
+
couponId: string;
|
|
205
|
+
code: string;
|
|
206
|
+
active: boolean;
|
|
207
|
+
expiresAt?: string | null;
|
|
208
|
+
maxRedemptions?: number | null;
|
|
209
|
+
firstTimeTransaction: boolean;
|
|
210
|
+
minimumAmount?: number | null;
|
|
211
|
+
createdAt: string | null;
|
|
212
|
+
updatedAt: string | null;
|
|
213
|
+
coupon: {
|
|
214
|
+
id: string;
|
|
215
|
+
name?: string | null;
|
|
216
|
+
amountOff?: number | null;
|
|
217
|
+
percentOff?: number | null;
|
|
218
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
219
|
+
durationInMonths?: number | null;
|
|
220
|
+
maxRedemptions?: number | null;
|
|
221
|
+
valid: boolean;
|
|
222
|
+
createdAt: string | null;
|
|
223
|
+
updatedAt: string | null;
|
|
224
|
+
};
|
|
146
225
|
} | null;
|
|
147
226
|
};
|
|
148
227
|
type TeamGetTeamData = {
|
|
@@ -160,6 +239,7 @@ type TeamGetTeamResponse = {
|
|
|
160
239
|
organization: {
|
|
161
240
|
id: string;
|
|
162
241
|
createdById: string;
|
|
242
|
+
promotionCodeId?: string | null;
|
|
163
243
|
name?: string | null;
|
|
164
244
|
avatarUrl?: string | null;
|
|
165
245
|
defaultPaymentMethodFilled?: boolean;
|
|
@@ -259,17 +339,19 @@ type TeamGetTeamResponse = {
|
|
|
259
339
|
} | null;
|
|
260
340
|
teamPlan?: {
|
|
261
341
|
id: string;
|
|
262
|
-
|
|
342
|
+
subscriptionId: string;
|
|
263
343
|
teamId: string;
|
|
264
344
|
stripePriceId: string;
|
|
265
|
-
tier: 'PRO'
|
|
345
|
+
tier: 'PRO';
|
|
266
346
|
maxMonthlyPosts: number;
|
|
267
347
|
maxDailyPosts: number;
|
|
268
348
|
createdAt: string | null;
|
|
269
349
|
updatedAt: string | null;
|
|
270
|
-
|
|
350
|
+
subscription?: {
|
|
271
351
|
id: string;
|
|
272
352
|
organizationId: string;
|
|
353
|
+
couponId?: string | null;
|
|
354
|
+
promotionCodeId?: string | null;
|
|
273
355
|
stripeSubscriptionId: string;
|
|
274
356
|
stripeSubscriptionItems?: Array<{
|
|
275
357
|
id: string;
|
|
@@ -287,6 +369,10 @@ type TeamGetTeamResponse = {
|
|
|
287
369
|
canceledAt?: string | null;
|
|
288
370
|
trialStart?: string | null;
|
|
289
371
|
trialEnd?: string | null;
|
|
372
|
+
defaultMaxMonthlyPosts: number;
|
|
373
|
+
defaultMaxDailyPosts: number;
|
|
374
|
+
discountStart?: string | null;
|
|
375
|
+
discountEnd?: string | null;
|
|
290
376
|
createdAt: string | null;
|
|
291
377
|
updatedAt: string | null;
|
|
292
378
|
} | null;
|
|
@@ -331,7 +417,7 @@ type TeamCreateTeamData = {
|
|
|
331
417
|
*/
|
|
332
418
|
requestBody?: {
|
|
333
419
|
name: string;
|
|
334
|
-
tier: 'FREE' | 'PRO'
|
|
420
|
+
tier: 'FREE' | 'PRO';
|
|
335
421
|
avatarUrl?: string | null;
|
|
336
422
|
};
|
|
337
423
|
};
|
|
@@ -2210,6 +2296,7 @@ type $OpenApiTs = {
|
|
|
2210
2296
|
200: {
|
|
2211
2297
|
id: string;
|
|
2212
2298
|
createdById: string;
|
|
2299
|
+
promotionCodeId?: string | null;
|
|
2213
2300
|
name?: string | null;
|
|
2214
2301
|
avatarUrl?: string | null;
|
|
2215
2302
|
defaultPaymentMethodFilled?: boolean;
|
|
@@ -2242,9 +2329,11 @@ type $OpenApiTs = {
|
|
|
2242
2329
|
updatedAt: string | null;
|
|
2243
2330
|
deletedAt?: string | null;
|
|
2244
2331
|
};
|
|
2245
|
-
|
|
2332
|
+
subscription?: {
|
|
2246
2333
|
id: string;
|
|
2247
2334
|
organizationId: string;
|
|
2335
|
+
couponId?: string | null;
|
|
2336
|
+
promotionCodeId?: string | null;
|
|
2248
2337
|
stripeSubscriptionId: string;
|
|
2249
2338
|
stripeSubscriptionItems?: Array<{
|
|
2250
2339
|
id: string;
|
|
@@ -2262,19 +2351,95 @@ type $OpenApiTs = {
|
|
|
2262
2351
|
canceledAt?: string | null;
|
|
2263
2352
|
trialStart?: string | null;
|
|
2264
2353
|
trialEnd?: string | null;
|
|
2354
|
+
defaultMaxMonthlyPosts: number;
|
|
2355
|
+
defaultMaxDailyPosts: number;
|
|
2356
|
+
discountStart?: string | null;
|
|
2357
|
+
discountEnd?: string | null;
|
|
2265
2358
|
createdAt: string | null;
|
|
2266
2359
|
updatedAt: string | null;
|
|
2267
|
-
|
|
2360
|
+
teamPlans: Array<{
|
|
2268
2361
|
id: string;
|
|
2269
|
-
|
|
2362
|
+
subscriptionId: string;
|
|
2270
2363
|
teamId: string;
|
|
2271
2364
|
stripePriceId: string;
|
|
2272
|
-
tier: 'PRO'
|
|
2365
|
+
tier: 'PRO';
|
|
2273
2366
|
maxMonthlyPosts: number;
|
|
2274
2367
|
maxDailyPosts: number;
|
|
2275
2368
|
createdAt: string | null;
|
|
2276
2369
|
updatedAt: string | null;
|
|
2370
|
+
}>;
|
|
2371
|
+
coupon?: {
|
|
2372
|
+
id: string;
|
|
2373
|
+
name?: string | null;
|
|
2374
|
+
amountOff?: number | null;
|
|
2375
|
+
percentOff?: number | null;
|
|
2376
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
2377
|
+
durationInMonths?: number | null;
|
|
2378
|
+
maxRedemptions?: number | null;
|
|
2379
|
+
valid: boolean;
|
|
2380
|
+
createdAt: string | null;
|
|
2381
|
+
updatedAt: string | null;
|
|
2382
|
+
promotionCodes: Array<{
|
|
2383
|
+
id: string;
|
|
2384
|
+
couponId: string;
|
|
2385
|
+
code: string;
|
|
2386
|
+
active: boolean;
|
|
2387
|
+
expiresAt?: string | null;
|
|
2388
|
+
maxRedemptions?: number | null;
|
|
2389
|
+
firstTimeTransaction: boolean;
|
|
2390
|
+
minimumAmount?: number | null;
|
|
2391
|
+
createdAt: string | null;
|
|
2392
|
+
updatedAt: string | null;
|
|
2393
|
+
}>;
|
|
2277
2394
|
} | null;
|
|
2395
|
+
promotionCode?: {
|
|
2396
|
+
id: string;
|
|
2397
|
+
couponId: string;
|
|
2398
|
+
code: string;
|
|
2399
|
+
active: boolean;
|
|
2400
|
+
expiresAt?: string | null;
|
|
2401
|
+
maxRedemptions?: number | null;
|
|
2402
|
+
firstTimeTransaction: boolean;
|
|
2403
|
+
minimumAmount?: number | null;
|
|
2404
|
+
createdAt: string | null;
|
|
2405
|
+
updatedAt: string | null;
|
|
2406
|
+
coupon: {
|
|
2407
|
+
id: string;
|
|
2408
|
+
name?: string | null;
|
|
2409
|
+
amountOff?: number | null;
|
|
2410
|
+
percentOff?: number | null;
|
|
2411
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
2412
|
+
durationInMonths?: number | null;
|
|
2413
|
+
maxRedemptions?: number | null;
|
|
2414
|
+
valid: boolean;
|
|
2415
|
+
createdAt: string | null;
|
|
2416
|
+
updatedAt: string | null;
|
|
2417
|
+
};
|
|
2418
|
+
} | null;
|
|
2419
|
+
} | null;
|
|
2420
|
+
promotionCode?: {
|
|
2421
|
+
id: string;
|
|
2422
|
+
couponId: string;
|
|
2423
|
+
code: string;
|
|
2424
|
+
active: boolean;
|
|
2425
|
+
expiresAt?: string | null;
|
|
2426
|
+
maxRedemptions?: number | null;
|
|
2427
|
+
firstTimeTransaction: boolean;
|
|
2428
|
+
minimumAmount?: number | null;
|
|
2429
|
+
createdAt: string | null;
|
|
2430
|
+
updatedAt: string | null;
|
|
2431
|
+
coupon: {
|
|
2432
|
+
id: string;
|
|
2433
|
+
name?: string | null;
|
|
2434
|
+
amountOff?: number | null;
|
|
2435
|
+
percentOff?: number | null;
|
|
2436
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
2437
|
+
durationInMonths?: number | null;
|
|
2438
|
+
maxRedemptions?: number | null;
|
|
2439
|
+
valid: boolean;
|
|
2440
|
+
createdAt: string | null;
|
|
2441
|
+
updatedAt: string | null;
|
|
2442
|
+
};
|
|
2278
2443
|
} | null;
|
|
2279
2444
|
};
|
|
2280
2445
|
/**
|
|
@@ -2339,6 +2504,7 @@ type $OpenApiTs = {
|
|
|
2339
2504
|
organization: {
|
|
2340
2505
|
id: string;
|
|
2341
2506
|
createdById: string;
|
|
2507
|
+
promotionCodeId?: string | null;
|
|
2342
2508
|
name?: string | null;
|
|
2343
2509
|
avatarUrl?: string | null;
|
|
2344
2510
|
defaultPaymentMethodFilled?: boolean;
|
|
@@ -2438,17 +2604,19 @@ type $OpenApiTs = {
|
|
|
2438
2604
|
} | null;
|
|
2439
2605
|
teamPlan?: {
|
|
2440
2606
|
id: string;
|
|
2441
|
-
|
|
2607
|
+
subscriptionId: string;
|
|
2442
2608
|
teamId: string;
|
|
2443
2609
|
stripePriceId: string;
|
|
2444
|
-
tier: 'PRO'
|
|
2610
|
+
tier: 'PRO';
|
|
2445
2611
|
maxMonthlyPosts: number;
|
|
2446
2612
|
maxDailyPosts: number;
|
|
2447
2613
|
createdAt: string | null;
|
|
2448
2614
|
updatedAt: string | null;
|
|
2449
|
-
|
|
2615
|
+
subscription?: {
|
|
2450
2616
|
id: string;
|
|
2451
2617
|
organizationId: string;
|
|
2618
|
+
couponId?: string | null;
|
|
2619
|
+
promotionCodeId?: string | null;
|
|
2452
2620
|
stripeSubscriptionId: string;
|
|
2453
2621
|
stripeSubscriptionItems?: Array<{
|
|
2454
2622
|
id: string;
|
|
@@ -2466,6 +2634,10 @@ type $OpenApiTs = {
|
|
|
2466
2634
|
canceledAt?: string | null;
|
|
2467
2635
|
trialStart?: string | null;
|
|
2468
2636
|
trialEnd?: string | null;
|
|
2637
|
+
defaultMaxMonthlyPosts: number;
|
|
2638
|
+
defaultMaxDailyPosts: number;
|
|
2639
|
+
discountStart?: string | null;
|
|
2640
|
+
discountEnd?: string | null;
|
|
2469
2641
|
createdAt: string | null;
|
|
2470
2642
|
updatedAt: string | null;
|
|
2471
2643
|
} | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ type AppGetHealthResponse = {
|
|
|
78
78
|
type OrganizationGetOrganizationResponse = {
|
|
79
79
|
id: string;
|
|
80
80
|
createdById: string;
|
|
81
|
+
promotionCodeId?: string | null;
|
|
81
82
|
name?: string | null;
|
|
82
83
|
avatarUrl?: string | null;
|
|
83
84
|
defaultPaymentMethodFilled?: boolean;
|
|
@@ -110,9 +111,11 @@ type OrganizationGetOrganizationResponse = {
|
|
|
110
111
|
updatedAt: string | null;
|
|
111
112
|
deletedAt?: string | null;
|
|
112
113
|
};
|
|
113
|
-
|
|
114
|
+
subscription?: {
|
|
114
115
|
id: string;
|
|
115
116
|
organizationId: string;
|
|
117
|
+
couponId?: string | null;
|
|
118
|
+
promotionCodeId?: string | null;
|
|
116
119
|
stripeSubscriptionId: string;
|
|
117
120
|
stripeSubscriptionItems?: Array<{
|
|
118
121
|
id: string;
|
|
@@ -130,19 +133,95 @@ type OrganizationGetOrganizationResponse = {
|
|
|
130
133
|
canceledAt?: string | null;
|
|
131
134
|
trialStart?: string | null;
|
|
132
135
|
trialEnd?: string | null;
|
|
136
|
+
defaultMaxMonthlyPosts: number;
|
|
137
|
+
defaultMaxDailyPosts: number;
|
|
138
|
+
discountStart?: string | null;
|
|
139
|
+
discountEnd?: string | null;
|
|
133
140
|
createdAt: string | null;
|
|
134
141
|
updatedAt: string | null;
|
|
135
|
-
|
|
142
|
+
teamPlans: Array<{
|
|
136
143
|
id: string;
|
|
137
|
-
|
|
144
|
+
subscriptionId: string;
|
|
138
145
|
teamId: string;
|
|
139
146
|
stripePriceId: string;
|
|
140
|
-
tier: 'PRO'
|
|
147
|
+
tier: 'PRO';
|
|
141
148
|
maxMonthlyPosts: number;
|
|
142
149
|
maxDailyPosts: number;
|
|
143
150
|
createdAt: string | null;
|
|
144
151
|
updatedAt: string | null;
|
|
152
|
+
}>;
|
|
153
|
+
coupon?: {
|
|
154
|
+
id: string;
|
|
155
|
+
name?: string | null;
|
|
156
|
+
amountOff?: number | null;
|
|
157
|
+
percentOff?: number | null;
|
|
158
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
159
|
+
durationInMonths?: number | null;
|
|
160
|
+
maxRedemptions?: number | null;
|
|
161
|
+
valid: boolean;
|
|
162
|
+
createdAt: string | null;
|
|
163
|
+
updatedAt: string | null;
|
|
164
|
+
promotionCodes: Array<{
|
|
165
|
+
id: string;
|
|
166
|
+
couponId: string;
|
|
167
|
+
code: string;
|
|
168
|
+
active: boolean;
|
|
169
|
+
expiresAt?: string | null;
|
|
170
|
+
maxRedemptions?: number | null;
|
|
171
|
+
firstTimeTransaction: boolean;
|
|
172
|
+
minimumAmount?: number | null;
|
|
173
|
+
createdAt: string | null;
|
|
174
|
+
updatedAt: string | null;
|
|
175
|
+
}>;
|
|
145
176
|
} | null;
|
|
177
|
+
promotionCode?: {
|
|
178
|
+
id: string;
|
|
179
|
+
couponId: string;
|
|
180
|
+
code: string;
|
|
181
|
+
active: boolean;
|
|
182
|
+
expiresAt?: string | null;
|
|
183
|
+
maxRedemptions?: number | null;
|
|
184
|
+
firstTimeTransaction: boolean;
|
|
185
|
+
minimumAmount?: number | null;
|
|
186
|
+
createdAt: string | null;
|
|
187
|
+
updatedAt: string | null;
|
|
188
|
+
coupon: {
|
|
189
|
+
id: string;
|
|
190
|
+
name?: string | null;
|
|
191
|
+
amountOff?: number | null;
|
|
192
|
+
percentOff?: number | null;
|
|
193
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
194
|
+
durationInMonths?: number | null;
|
|
195
|
+
maxRedemptions?: number | null;
|
|
196
|
+
valid: boolean;
|
|
197
|
+
createdAt: string | null;
|
|
198
|
+
updatedAt: string | null;
|
|
199
|
+
};
|
|
200
|
+
} | null;
|
|
201
|
+
} | null;
|
|
202
|
+
promotionCode?: {
|
|
203
|
+
id: string;
|
|
204
|
+
couponId: string;
|
|
205
|
+
code: string;
|
|
206
|
+
active: boolean;
|
|
207
|
+
expiresAt?: string | null;
|
|
208
|
+
maxRedemptions?: number | null;
|
|
209
|
+
firstTimeTransaction: boolean;
|
|
210
|
+
minimumAmount?: number | null;
|
|
211
|
+
createdAt: string | null;
|
|
212
|
+
updatedAt: string | null;
|
|
213
|
+
coupon: {
|
|
214
|
+
id: string;
|
|
215
|
+
name?: string | null;
|
|
216
|
+
amountOff?: number | null;
|
|
217
|
+
percentOff?: number | null;
|
|
218
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
219
|
+
durationInMonths?: number | null;
|
|
220
|
+
maxRedemptions?: number | null;
|
|
221
|
+
valid: boolean;
|
|
222
|
+
createdAt: string | null;
|
|
223
|
+
updatedAt: string | null;
|
|
224
|
+
};
|
|
146
225
|
} | null;
|
|
147
226
|
};
|
|
148
227
|
type TeamGetTeamData = {
|
|
@@ -160,6 +239,7 @@ type TeamGetTeamResponse = {
|
|
|
160
239
|
organization: {
|
|
161
240
|
id: string;
|
|
162
241
|
createdById: string;
|
|
242
|
+
promotionCodeId?: string | null;
|
|
163
243
|
name?: string | null;
|
|
164
244
|
avatarUrl?: string | null;
|
|
165
245
|
defaultPaymentMethodFilled?: boolean;
|
|
@@ -259,17 +339,19 @@ type TeamGetTeamResponse = {
|
|
|
259
339
|
} | null;
|
|
260
340
|
teamPlan?: {
|
|
261
341
|
id: string;
|
|
262
|
-
|
|
342
|
+
subscriptionId: string;
|
|
263
343
|
teamId: string;
|
|
264
344
|
stripePriceId: string;
|
|
265
|
-
tier: 'PRO'
|
|
345
|
+
tier: 'PRO';
|
|
266
346
|
maxMonthlyPosts: number;
|
|
267
347
|
maxDailyPosts: number;
|
|
268
348
|
createdAt: string | null;
|
|
269
349
|
updatedAt: string | null;
|
|
270
|
-
|
|
350
|
+
subscription?: {
|
|
271
351
|
id: string;
|
|
272
352
|
organizationId: string;
|
|
353
|
+
couponId?: string | null;
|
|
354
|
+
promotionCodeId?: string | null;
|
|
273
355
|
stripeSubscriptionId: string;
|
|
274
356
|
stripeSubscriptionItems?: Array<{
|
|
275
357
|
id: string;
|
|
@@ -287,6 +369,10 @@ type TeamGetTeamResponse = {
|
|
|
287
369
|
canceledAt?: string | null;
|
|
288
370
|
trialStart?: string | null;
|
|
289
371
|
trialEnd?: string | null;
|
|
372
|
+
defaultMaxMonthlyPosts: number;
|
|
373
|
+
defaultMaxDailyPosts: number;
|
|
374
|
+
discountStart?: string | null;
|
|
375
|
+
discountEnd?: string | null;
|
|
290
376
|
createdAt: string | null;
|
|
291
377
|
updatedAt: string | null;
|
|
292
378
|
} | null;
|
|
@@ -331,7 +417,7 @@ type TeamCreateTeamData = {
|
|
|
331
417
|
*/
|
|
332
418
|
requestBody?: {
|
|
333
419
|
name: string;
|
|
334
|
-
tier: 'FREE' | 'PRO'
|
|
420
|
+
tier: 'FREE' | 'PRO';
|
|
335
421
|
avatarUrl?: string | null;
|
|
336
422
|
};
|
|
337
423
|
};
|
|
@@ -2210,6 +2296,7 @@ type $OpenApiTs = {
|
|
|
2210
2296
|
200: {
|
|
2211
2297
|
id: string;
|
|
2212
2298
|
createdById: string;
|
|
2299
|
+
promotionCodeId?: string | null;
|
|
2213
2300
|
name?: string | null;
|
|
2214
2301
|
avatarUrl?: string | null;
|
|
2215
2302
|
defaultPaymentMethodFilled?: boolean;
|
|
@@ -2242,9 +2329,11 @@ type $OpenApiTs = {
|
|
|
2242
2329
|
updatedAt: string | null;
|
|
2243
2330
|
deletedAt?: string | null;
|
|
2244
2331
|
};
|
|
2245
|
-
|
|
2332
|
+
subscription?: {
|
|
2246
2333
|
id: string;
|
|
2247
2334
|
organizationId: string;
|
|
2335
|
+
couponId?: string | null;
|
|
2336
|
+
promotionCodeId?: string | null;
|
|
2248
2337
|
stripeSubscriptionId: string;
|
|
2249
2338
|
stripeSubscriptionItems?: Array<{
|
|
2250
2339
|
id: string;
|
|
@@ -2262,19 +2351,95 @@ type $OpenApiTs = {
|
|
|
2262
2351
|
canceledAt?: string | null;
|
|
2263
2352
|
trialStart?: string | null;
|
|
2264
2353
|
trialEnd?: string | null;
|
|
2354
|
+
defaultMaxMonthlyPosts: number;
|
|
2355
|
+
defaultMaxDailyPosts: number;
|
|
2356
|
+
discountStart?: string | null;
|
|
2357
|
+
discountEnd?: string | null;
|
|
2265
2358
|
createdAt: string | null;
|
|
2266
2359
|
updatedAt: string | null;
|
|
2267
|
-
|
|
2360
|
+
teamPlans: Array<{
|
|
2268
2361
|
id: string;
|
|
2269
|
-
|
|
2362
|
+
subscriptionId: string;
|
|
2270
2363
|
teamId: string;
|
|
2271
2364
|
stripePriceId: string;
|
|
2272
|
-
tier: 'PRO'
|
|
2365
|
+
tier: 'PRO';
|
|
2273
2366
|
maxMonthlyPosts: number;
|
|
2274
2367
|
maxDailyPosts: number;
|
|
2275
2368
|
createdAt: string | null;
|
|
2276
2369
|
updatedAt: string | null;
|
|
2370
|
+
}>;
|
|
2371
|
+
coupon?: {
|
|
2372
|
+
id: string;
|
|
2373
|
+
name?: string | null;
|
|
2374
|
+
amountOff?: number | null;
|
|
2375
|
+
percentOff?: number | null;
|
|
2376
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
2377
|
+
durationInMonths?: number | null;
|
|
2378
|
+
maxRedemptions?: number | null;
|
|
2379
|
+
valid: boolean;
|
|
2380
|
+
createdAt: string | null;
|
|
2381
|
+
updatedAt: string | null;
|
|
2382
|
+
promotionCodes: Array<{
|
|
2383
|
+
id: string;
|
|
2384
|
+
couponId: string;
|
|
2385
|
+
code: string;
|
|
2386
|
+
active: boolean;
|
|
2387
|
+
expiresAt?: string | null;
|
|
2388
|
+
maxRedemptions?: number | null;
|
|
2389
|
+
firstTimeTransaction: boolean;
|
|
2390
|
+
minimumAmount?: number | null;
|
|
2391
|
+
createdAt: string | null;
|
|
2392
|
+
updatedAt: string | null;
|
|
2393
|
+
}>;
|
|
2277
2394
|
} | null;
|
|
2395
|
+
promotionCode?: {
|
|
2396
|
+
id: string;
|
|
2397
|
+
couponId: string;
|
|
2398
|
+
code: string;
|
|
2399
|
+
active: boolean;
|
|
2400
|
+
expiresAt?: string | null;
|
|
2401
|
+
maxRedemptions?: number | null;
|
|
2402
|
+
firstTimeTransaction: boolean;
|
|
2403
|
+
minimumAmount?: number | null;
|
|
2404
|
+
createdAt: string | null;
|
|
2405
|
+
updatedAt: string | null;
|
|
2406
|
+
coupon: {
|
|
2407
|
+
id: string;
|
|
2408
|
+
name?: string | null;
|
|
2409
|
+
amountOff?: number | null;
|
|
2410
|
+
percentOff?: number | null;
|
|
2411
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
2412
|
+
durationInMonths?: number | null;
|
|
2413
|
+
maxRedemptions?: number | null;
|
|
2414
|
+
valid: boolean;
|
|
2415
|
+
createdAt: string | null;
|
|
2416
|
+
updatedAt: string | null;
|
|
2417
|
+
};
|
|
2418
|
+
} | null;
|
|
2419
|
+
} | null;
|
|
2420
|
+
promotionCode?: {
|
|
2421
|
+
id: string;
|
|
2422
|
+
couponId: string;
|
|
2423
|
+
code: string;
|
|
2424
|
+
active: boolean;
|
|
2425
|
+
expiresAt?: string | null;
|
|
2426
|
+
maxRedemptions?: number | null;
|
|
2427
|
+
firstTimeTransaction: boolean;
|
|
2428
|
+
minimumAmount?: number | null;
|
|
2429
|
+
createdAt: string | null;
|
|
2430
|
+
updatedAt: string | null;
|
|
2431
|
+
coupon: {
|
|
2432
|
+
id: string;
|
|
2433
|
+
name?: string | null;
|
|
2434
|
+
amountOff?: number | null;
|
|
2435
|
+
percentOff?: number | null;
|
|
2436
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
2437
|
+
durationInMonths?: number | null;
|
|
2438
|
+
maxRedemptions?: number | null;
|
|
2439
|
+
valid: boolean;
|
|
2440
|
+
createdAt: string | null;
|
|
2441
|
+
updatedAt: string | null;
|
|
2442
|
+
};
|
|
2278
2443
|
} | null;
|
|
2279
2444
|
};
|
|
2280
2445
|
/**
|
|
@@ -2339,6 +2504,7 @@ type $OpenApiTs = {
|
|
|
2339
2504
|
organization: {
|
|
2340
2505
|
id: string;
|
|
2341
2506
|
createdById: string;
|
|
2507
|
+
promotionCodeId?: string | null;
|
|
2342
2508
|
name?: string | null;
|
|
2343
2509
|
avatarUrl?: string | null;
|
|
2344
2510
|
defaultPaymentMethodFilled?: boolean;
|
|
@@ -2438,17 +2604,19 @@ type $OpenApiTs = {
|
|
|
2438
2604
|
} | null;
|
|
2439
2605
|
teamPlan?: {
|
|
2440
2606
|
id: string;
|
|
2441
|
-
|
|
2607
|
+
subscriptionId: string;
|
|
2442
2608
|
teamId: string;
|
|
2443
2609
|
stripePriceId: string;
|
|
2444
|
-
tier: 'PRO'
|
|
2610
|
+
tier: 'PRO';
|
|
2445
2611
|
maxMonthlyPosts: number;
|
|
2446
2612
|
maxDailyPosts: number;
|
|
2447
2613
|
createdAt: string | null;
|
|
2448
2614
|
updatedAt: string | null;
|
|
2449
|
-
|
|
2615
|
+
subscription?: {
|
|
2450
2616
|
id: string;
|
|
2451
2617
|
organizationId: string;
|
|
2618
|
+
couponId?: string | null;
|
|
2619
|
+
promotionCodeId?: string | null;
|
|
2452
2620
|
stripeSubscriptionId: string;
|
|
2453
2621
|
stripeSubscriptionItems?: Array<{
|
|
2454
2622
|
id: string;
|
|
@@ -2466,6 +2634,10 @@ type $OpenApiTs = {
|
|
|
2466
2634
|
canceledAt?: string | null;
|
|
2467
2635
|
trialStart?: string | null;
|
|
2468
2636
|
trialEnd?: string | null;
|
|
2637
|
+
defaultMaxMonthlyPosts: number;
|
|
2638
|
+
defaultMaxDailyPosts: number;
|
|
2639
|
+
discountStart?: string | null;
|
|
2640
|
+
discountEnd?: string | null;
|
|
2469
2641
|
createdAt: string | null;
|
|
2470
2642
|
updatedAt: string | null;
|
|
2471
2643
|
} | null;
|