bundlesocial 2.2.1 → 2.4.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 +162 -99
- package/dist/index.d.ts +162 -99
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -78,10 +78,9 @@ 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
|
-
defaultPaymentMethodFilled?: boolean;
|
|
84
|
-
billingAddressFilled?: boolean;
|
|
85
84
|
apiAccess?: boolean;
|
|
86
85
|
ref?: string | null;
|
|
87
86
|
createdAt: string | null;
|
|
@@ -110,9 +109,11 @@ type OrganizationGetOrganizationResponse = {
|
|
|
110
109
|
updatedAt: string | null;
|
|
111
110
|
deletedAt?: string | null;
|
|
112
111
|
};
|
|
113
|
-
|
|
112
|
+
subscription?: {
|
|
114
113
|
id: string;
|
|
115
114
|
organizationId: string;
|
|
115
|
+
couponId?: string | null;
|
|
116
|
+
promotionCodeId?: string | null;
|
|
116
117
|
stripeSubscriptionId: string;
|
|
117
118
|
stripeSubscriptionItems?: Array<{
|
|
118
119
|
id: string;
|
|
@@ -121,6 +122,8 @@ type OrganizationGetOrganizationResponse = {
|
|
|
121
122
|
}> | null;
|
|
122
123
|
status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
|
|
123
124
|
metadata?: unknown;
|
|
125
|
+
stripePriceId: string;
|
|
126
|
+
tier: 'PRO' | 'BUSINESS';
|
|
124
127
|
cancelAtPeriodEnd: boolean;
|
|
125
128
|
created: string | null;
|
|
126
129
|
currentPeriodStart: string | null;
|
|
@@ -130,20 +133,87 @@ type OrganizationGetOrganizationResponse = {
|
|
|
130
133
|
canceledAt?: string | null;
|
|
131
134
|
trialStart?: string | null;
|
|
132
135
|
trialEnd?: string | null;
|
|
136
|
+
maxMonthlyPosts: number;
|
|
137
|
+
discountStart?: string | null;
|
|
138
|
+
discountEnd?: string | null;
|
|
133
139
|
createdAt: string | null;
|
|
134
140
|
updatedAt: string | null;
|
|
135
|
-
|
|
141
|
+
coupon?: {
|
|
136
142
|
id: string;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
+
name?: string | null;
|
|
144
|
+
amountOff?: number | null;
|
|
145
|
+
percentOff?: number | null;
|
|
146
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
147
|
+
durationInMonths?: number | null;
|
|
148
|
+
maxRedemptions?: number | null;
|
|
149
|
+
valid: boolean;
|
|
150
|
+
createdAt: string | null;
|
|
151
|
+
updatedAt: string | null;
|
|
152
|
+
promotionCodes: Array<{
|
|
153
|
+
id: string;
|
|
154
|
+
couponId: string;
|
|
155
|
+
code: string;
|
|
156
|
+
active: boolean;
|
|
157
|
+
expiresAt?: string | null;
|
|
158
|
+
maxRedemptions?: number | null;
|
|
159
|
+
firstTimeTransaction: boolean;
|
|
160
|
+
minimumAmount?: number | null;
|
|
161
|
+
createdAt: string | null;
|
|
162
|
+
updatedAt: string | null;
|
|
163
|
+
}>;
|
|
164
|
+
} | null;
|
|
165
|
+
promotionCode?: {
|
|
166
|
+
id: string;
|
|
167
|
+
couponId: string;
|
|
168
|
+
code: string;
|
|
169
|
+
active: boolean;
|
|
170
|
+
expiresAt?: string | null;
|
|
171
|
+
maxRedemptions?: number | null;
|
|
172
|
+
firstTimeTransaction: boolean;
|
|
173
|
+
minimumAmount?: number | null;
|
|
143
174
|
createdAt: string | null;
|
|
144
175
|
updatedAt: string | null;
|
|
176
|
+
coupon: {
|
|
177
|
+
id: string;
|
|
178
|
+
name?: string | null;
|
|
179
|
+
amountOff?: number | null;
|
|
180
|
+
percentOff?: number | null;
|
|
181
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
182
|
+
durationInMonths?: number | null;
|
|
183
|
+
maxRedemptions?: number | null;
|
|
184
|
+
valid: boolean;
|
|
185
|
+
createdAt: string | null;
|
|
186
|
+
updatedAt: string | null;
|
|
187
|
+
};
|
|
145
188
|
} | null;
|
|
146
189
|
} | null;
|
|
190
|
+
promotionCode?: {
|
|
191
|
+
id: string;
|
|
192
|
+
couponId: string;
|
|
193
|
+
code: string;
|
|
194
|
+
active: boolean;
|
|
195
|
+
expiresAt?: string | null;
|
|
196
|
+
maxRedemptions?: number | null;
|
|
197
|
+
firstTimeTransaction: boolean;
|
|
198
|
+
minimumAmount?: number | null;
|
|
199
|
+
createdAt: string | null;
|
|
200
|
+
updatedAt: string | null;
|
|
201
|
+
coupon: {
|
|
202
|
+
id: string;
|
|
203
|
+
name?: string | null;
|
|
204
|
+
amountOff?: number | null;
|
|
205
|
+
percentOff?: number | null;
|
|
206
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
207
|
+
durationInMonths?: number | null;
|
|
208
|
+
maxRedemptions?: number | null;
|
|
209
|
+
valid: boolean;
|
|
210
|
+
createdAt: string | null;
|
|
211
|
+
updatedAt: string | null;
|
|
212
|
+
};
|
|
213
|
+
} | null;
|
|
214
|
+
usage: {
|
|
215
|
+
monthlyPosts: number;
|
|
216
|
+
};
|
|
147
217
|
};
|
|
148
218
|
type TeamGetTeamData = {
|
|
149
219
|
id: string;
|
|
@@ -160,10 +230,9 @@ type TeamGetTeamResponse = {
|
|
|
160
230
|
organization: {
|
|
161
231
|
id: string;
|
|
162
232
|
createdById: string;
|
|
233
|
+
promotionCodeId?: string | null;
|
|
163
234
|
name?: string | null;
|
|
164
235
|
avatarUrl?: string | null;
|
|
165
|
-
defaultPaymentMethodFilled?: boolean;
|
|
166
|
-
billingAddressFilled?: boolean;
|
|
167
236
|
apiAccess?: boolean;
|
|
168
237
|
ref?: string | null;
|
|
169
238
|
createdAt: string | null;
|
|
@@ -217,9 +286,6 @@ type TeamGetTeamResponse = {
|
|
|
217
286
|
updatedAt: string | null;
|
|
218
287
|
deletedAt?: string | null;
|
|
219
288
|
}>;
|
|
220
|
-
usage: {
|
|
221
|
-
monthlyPosts: number;
|
|
222
|
-
};
|
|
223
289
|
bio?: {
|
|
224
290
|
id: string;
|
|
225
291
|
username: string;
|
|
@@ -257,40 +323,6 @@ type TeamGetTeamResponse = {
|
|
|
257
323
|
}>;
|
|
258
324
|
}>;
|
|
259
325
|
} | null;
|
|
260
|
-
teamPlan?: {
|
|
261
|
-
id: string;
|
|
262
|
-
organizationSubscriptionId: string;
|
|
263
|
-
teamId: string;
|
|
264
|
-
stripePriceId: string;
|
|
265
|
-
tier: 'PRO' | 'CUSTOM';
|
|
266
|
-
maxMonthlyPosts: number;
|
|
267
|
-
maxDailyPosts: number;
|
|
268
|
-
createdAt: string | null;
|
|
269
|
-
updatedAt: string | null;
|
|
270
|
-
organizationSubscription?: {
|
|
271
|
-
id: string;
|
|
272
|
-
organizationId: string;
|
|
273
|
-
stripeSubscriptionId: string;
|
|
274
|
-
stripeSubscriptionItems?: Array<{
|
|
275
|
-
id: string;
|
|
276
|
-
price: string;
|
|
277
|
-
quantity: number;
|
|
278
|
-
}> | null;
|
|
279
|
-
status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
|
|
280
|
-
metadata?: unknown;
|
|
281
|
-
cancelAtPeriodEnd: boolean;
|
|
282
|
-
created: string | null;
|
|
283
|
-
currentPeriodStart: string | null;
|
|
284
|
-
currentPeriodEnd: string | null;
|
|
285
|
-
endedAt?: string | null;
|
|
286
|
-
cancelAt?: string | null;
|
|
287
|
-
canceledAt?: string | null;
|
|
288
|
-
trialStart?: string | null;
|
|
289
|
-
trialEnd?: string | null;
|
|
290
|
-
createdAt: string | null;
|
|
291
|
-
updatedAt: string | null;
|
|
292
|
-
} | null;
|
|
293
|
-
} | null;
|
|
294
326
|
};
|
|
295
327
|
type TeamUpdateTeamData = {
|
|
296
328
|
id: string;
|
|
@@ -331,7 +363,6 @@ type TeamCreateTeamData = {
|
|
|
331
363
|
*/
|
|
332
364
|
requestBody?: {
|
|
333
365
|
name: string;
|
|
334
|
-
tier: 'FREE' | 'PRO';
|
|
335
366
|
avatarUrl?: string | null;
|
|
336
367
|
};
|
|
337
368
|
};
|
|
@@ -2210,10 +2241,9 @@ type $OpenApiTs = {
|
|
|
2210
2241
|
200: {
|
|
2211
2242
|
id: string;
|
|
2212
2243
|
createdById: string;
|
|
2244
|
+
promotionCodeId?: string | null;
|
|
2213
2245
|
name?: string | null;
|
|
2214
2246
|
avatarUrl?: string | null;
|
|
2215
|
-
defaultPaymentMethodFilled?: boolean;
|
|
2216
|
-
billingAddressFilled?: boolean;
|
|
2217
2247
|
apiAccess?: boolean;
|
|
2218
2248
|
ref?: string | null;
|
|
2219
2249
|
createdAt: string | null;
|
|
@@ -2242,9 +2272,11 @@ type $OpenApiTs = {
|
|
|
2242
2272
|
updatedAt: string | null;
|
|
2243
2273
|
deletedAt?: string | null;
|
|
2244
2274
|
};
|
|
2245
|
-
|
|
2275
|
+
subscription?: {
|
|
2246
2276
|
id: string;
|
|
2247
2277
|
organizationId: string;
|
|
2278
|
+
couponId?: string | null;
|
|
2279
|
+
promotionCodeId?: string | null;
|
|
2248
2280
|
stripeSubscriptionId: string;
|
|
2249
2281
|
stripeSubscriptionItems?: Array<{
|
|
2250
2282
|
id: string;
|
|
@@ -2253,6 +2285,8 @@ type $OpenApiTs = {
|
|
|
2253
2285
|
}> | null;
|
|
2254
2286
|
status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
|
|
2255
2287
|
metadata?: unknown;
|
|
2288
|
+
stripePriceId: string;
|
|
2289
|
+
tier: 'PRO' | 'BUSINESS';
|
|
2256
2290
|
cancelAtPeriodEnd: boolean;
|
|
2257
2291
|
created: string | null;
|
|
2258
2292
|
currentPeriodStart: string | null;
|
|
@@ -2262,20 +2296,87 @@ type $OpenApiTs = {
|
|
|
2262
2296
|
canceledAt?: string | null;
|
|
2263
2297
|
trialStart?: string | null;
|
|
2264
2298
|
trialEnd?: string | null;
|
|
2299
|
+
maxMonthlyPosts: number;
|
|
2300
|
+
discountStart?: string | null;
|
|
2301
|
+
discountEnd?: string | null;
|
|
2265
2302
|
createdAt: string | null;
|
|
2266
2303
|
updatedAt: string | null;
|
|
2267
|
-
|
|
2304
|
+
coupon?: {
|
|
2268
2305
|
id: string;
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2306
|
+
name?: string | null;
|
|
2307
|
+
amountOff?: number | null;
|
|
2308
|
+
percentOff?: number | null;
|
|
2309
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
2310
|
+
durationInMonths?: number | null;
|
|
2311
|
+
maxRedemptions?: number | null;
|
|
2312
|
+
valid: boolean;
|
|
2313
|
+
createdAt: string | null;
|
|
2314
|
+
updatedAt: string | null;
|
|
2315
|
+
promotionCodes: Array<{
|
|
2316
|
+
id: string;
|
|
2317
|
+
couponId: string;
|
|
2318
|
+
code: string;
|
|
2319
|
+
active: boolean;
|
|
2320
|
+
expiresAt?: string | null;
|
|
2321
|
+
maxRedemptions?: number | null;
|
|
2322
|
+
firstTimeTransaction: boolean;
|
|
2323
|
+
minimumAmount?: number | null;
|
|
2324
|
+
createdAt: string | null;
|
|
2325
|
+
updatedAt: string | null;
|
|
2326
|
+
}>;
|
|
2327
|
+
} | null;
|
|
2328
|
+
promotionCode?: {
|
|
2329
|
+
id: string;
|
|
2330
|
+
couponId: string;
|
|
2331
|
+
code: string;
|
|
2332
|
+
active: boolean;
|
|
2333
|
+
expiresAt?: string | null;
|
|
2334
|
+
maxRedemptions?: number | null;
|
|
2335
|
+
firstTimeTransaction: boolean;
|
|
2336
|
+
minimumAmount?: number | null;
|
|
2275
2337
|
createdAt: string | null;
|
|
2276
2338
|
updatedAt: string | null;
|
|
2339
|
+
coupon: {
|
|
2340
|
+
id: string;
|
|
2341
|
+
name?: string | null;
|
|
2342
|
+
amountOff?: number | null;
|
|
2343
|
+
percentOff?: number | null;
|
|
2344
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
2345
|
+
durationInMonths?: number | null;
|
|
2346
|
+
maxRedemptions?: number | null;
|
|
2347
|
+
valid: boolean;
|
|
2348
|
+
createdAt: string | null;
|
|
2349
|
+
updatedAt: string | null;
|
|
2350
|
+
};
|
|
2277
2351
|
} | null;
|
|
2278
2352
|
} | null;
|
|
2353
|
+
promotionCode?: {
|
|
2354
|
+
id: string;
|
|
2355
|
+
couponId: string;
|
|
2356
|
+
code: string;
|
|
2357
|
+
active: boolean;
|
|
2358
|
+
expiresAt?: string | null;
|
|
2359
|
+
maxRedemptions?: number | null;
|
|
2360
|
+
firstTimeTransaction: boolean;
|
|
2361
|
+
minimumAmount?: number | null;
|
|
2362
|
+
createdAt: string | null;
|
|
2363
|
+
updatedAt: string | null;
|
|
2364
|
+
coupon: {
|
|
2365
|
+
id: string;
|
|
2366
|
+
name?: string | null;
|
|
2367
|
+
amountOff?: number | null;
|
|
2368
|
+
percentOff?: number | null;
|
|
2369
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
2370
|
+
durationInMonths?: number | null;
|
|
2371
|
+
maxRedemptions?: number | null;
|
|
2372
|
+
valid: boolean;
|
|
2373
|
+
createdAt: string | null;
|
|
2374
|
+
updatedAt: string | null;
|
|
2375
|
+
};
|
|
2376
|
+
} | null;
|
|
2377
|
+
usage: {
|
|
2378
|
+
monthlyPosts: number;
|
|
2379
|
+
};
|
|
2279
2380
|
};
|
|
2280
2381
|
/**
|
|
2281
2382
|
* 400
|
|
@@ -2339,10 +2440,9 @@ type $OpenApiTs = {
|
|
|
2339
2440
|
organization: {
|
|
2340
2441
|
id: string;
|
|
2341
2442
|
createdById: string;
|
|
2443
|
+
promotionCodeId?: string | null;
|
|
2342
2444
|
name?: string | null;
|
|
2343
2445
|
avatarUrl?: string | null;
|
|
2344
|
-
defaultPaymentMethodFilled?: boolean;
|
|
2345
|
-
billingAddressFilled?: boolean;
|
|
2346
2446
|
apiAccess?: boolean;
|
|
2347
2447
|
ref?: string | null;
|
|
2348
2448
|
createdAt: string | null;
|
|
@@ -2396,9 +2496,6 @@ type $OpenApiTs = {
|
|
|
2396
2496
|
updatedAt: string | null;
|
|
2397
2497
|
deletedAt?: string | null;
|
|
2398
2498
|
}>;
|
|
2399
|
-
usage: {
|
|
2400
|
-
monthlyPosts: number;
|
|
2401
|
-
};
|
|
2402
2499
|
bio?: {
|
|
2403
2500
|
id: string;
|
|
2404
2501
|
username: string;
|
|
@@ -2436,40 +2533,6 @@ type $OpenApiTs = {
|
|
|
2436
2533
|
}>;
|
|
2437
2534
|
}>;
|
|
2438
2535
|
} | null;
|
|
2439
|
-
teamPlan?: {
|
|
2440
|
-
id: string;
|
|
2441
|
-
organizationSubscriptionId: string;
|
|
2442
|
-
teamId: string;
|
|
2443
|
-
stripePriceId: string;
|
|
2444
|
-
tier: 'PRO' | 'CUSTOM';
|
|
2445
|
-
maxMonthlyPosts: number;
|
|
2446
|
-
maxDailyPosts: number;
|
|
2447
|
-
createdAt: string | null;
|
|
2448
|
-
updatedAt: string | null;
|
|
2449
|
-
organizationSubscription?: {
|
|
2450
|
-
id: string;
|
|
2451
|
-
organizationId: string;
|
|
2452
|
-
stripeSubscriptionId: string;
|
|
2453
|
-
stripeSubscriptionItems?: Array<{
|
|
2454
|
-
id: string;
|
|
2455
|
-
price: string;
|
|
2456
|
-
quantity: number;
|
|
2457
|
-
}> | null;
|
|
2458
|
-
status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
|
|
2459
|
-
metadata?: unknown;
|
|
2460
|
-
cancelAtPeriodEnd: boolean;
|
|
2461
|
-
created: string | null;
|
|
2462
|
-
currentPeriodStart: string | null;
|
|
2463
|
-
currentPeriodEnd: string | null;
|
|
2464
|
-
endedAt?: string | null;
|
|
2465
|
-
cancelAt?: string | null;
|
|
2466
|
-
canceledAt?: string | null;
|
|
2467
|
-
trialStart?: string | null;
|
|
2468
|
-
trialEnd?: string | null;
|
|
2469
|
-
createdAt: string | null;
|
|
2470
|
-
updatedAt: string | null;
|
|
2471
|
-
} | null;
|
|
2472
|
-
} | null;
|
|
2473
2536
|
};
|
|
2474
2537
|
/**
|
|
2475
2538
|
* 400
|
package/dist/index.d.ts
CHANGED
|
@@ -78,10 +78,9 @@ 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
|
-
defaultPaymentMethodFilled?: boolean;
|
|
84
|
-
billingAddressFilled?: boolean;
|
|
85
84
|
apiAccess?: boolean;
|
|
86
85
|
ref?: string | null;
|
|
87
86
|
createdAt: string | null;
|
|
@@ -110,9 +109,11 @@ type OrganizationGetOrganizationResponse = {
|
|
|
110
109
|
updatedAt: string | null;
|
|
111
110
|
deletedAt?: string | null;
|
|
112
111
|
};
|
|
113
|
-
|
|
112
|
+
subscription?: {
|
|
114
113
|
id: string;
|
|
115
114
|
organizationId: string;
|
|
115
|
+
couponId?: string | null;
|
|
116
|
+
promotionCodeId?: string | null;
|
|
116
117
|
stripeSubscriptionId: string;
|
|
117
118
|
stripeSubscriptionItems?: Array<{
|
|
118
119
|
id: string;
|
|
@@ -121,6 +122,8 @@ type OrganizationGetOrganizationResponse = {
|
|
|
121
122
|
}> | null;
|
|
122
123
|
status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
|
|
123
124
|
metadata?: unknown;
|
|
125
|
+
stripePriceId: string;
|
|
126
|
+
tier: 'PRO' | 'BUSINESS';
|
|
124
127
|
cancelAtPeriodEnd: boolean;
|
|
125
128
|
created: string | null;
|
|
126
129
|
currentPeriodStart: string | null;
|
|
@@ -130,20 +133,87 @@ type OrganizationGetOrganizationResponse = {
|
|
|
130
133
|
canceledAt?: string | null;
|
|
131
134
|
trialStart?: string | null;
|
|
132
135
|
trialEnd?: string | null;
|
|
136
|
+
maxMonthlyPosts: number;
|
|
137
|
+
discountStart?: string | null;
|
|
138
|
+
discountEnd?: string | null;
|
|
133
139
|
createdAt: string | null;
|
|
134
140
|
updatedAt: string | null;
|
|
135
|
-
|
|
141
|
+
coupon?: {
|
|
136
142
|
id: string;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
+
name?: string | null;
|
|
144
|
+
amountOff?: number | null;
|
|
145
|
+
percentOff?: number | null;
|
|
146
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
147
|
+
durationInMonths?: number | null;
|
|
148
|
+
maxRedemptions?: number | null;
|
|
149
|
+
valid: boolean;
|
|
150
|
+
createdAt: string | null;
|
|
151
|
+
updatedAt: string | null;
|
|
152
|
+
promotionCodes: Array<{
|
|
153
|
+
id: string;
|
|
154
|
+
couponId: string;
|
|
155
|
+
code: string;
|
|
156
|
+
active: boolean;
|
|
157
|
+
expiresAt?: string | null;
|
|
158
|
+
maxRedemptions?: number | null;
|
|
159
|
+
firstTimeTransaction: boolean;
|
|
160
|
+
minimumAmount?: number | null;
|
|
161
|
+
createdAt: string | null;
|
|
162
|
+
updatedAt: string | null;
|
|
163
|
+
}>;
|
|
164
|
+
} | null;
|
|
165
|
+
promotionCode?: {
|
|
166
|
+
id: string;
|
|
167
|
+
couponId: string;
|
|
168
|
+
code: string;
|
|
169
|
+
active: boolean;
|
|
170
|
+
expiresAt?: string | null;
|
|
171
|
+
maxRedemptions?: number | null;
|
|
172
|
+
firstTimeTransaction: boolean;
|
|
173
|
+
minimumAmount?: number | null;
|
|
143
174
|
createdAt: string | null;
|
|
144
175
|
updatedAt: string | null;
|
|
176
|
+
coupon: {
|
|
177
|
+
id: string;
|
|
178
|
+
name?: string | null;
|
|
179
|
+
amountOff?: number | null;
|
|
180
|
+
percentOff?: number | null;
|
|
181
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
182
|
+
durationInMonths?: number | null;
|
|
183
|
+
maxRedemptions?: number | null;
|
|
184
|
+
valid: boolean;
|
|
185
|
+
createdAt: string | null;
|
|
186
|
+
updatedAt: string | null;
|
|
187
|
+
};
|
|
145
188
|
} | null;
|
|
146
189
|
} | null;
|
|
190
|
+
promotionCode?: {
|
|
191
|
+
id: string;
|
|
192
|
+
couponId: string;
|
|
193
|
+
code: string;
|
|
194
|
+
active: boolean;
|
|
195
|
+
expiresAt?: string | null;
|
|
196
|
+
maxRedemptions?: number | null;
|
|
197
|
+
firstTimeTransaction: boolean;
|
|
198
|
+
minimumAmount?: number | null;
|
|
199
|
+
createdAt: string | null;
|
|
200
|
+
updatedAt: string | null;
|
|
201
|
+
coupon: {
|
|
202
|
+
id: string;
|
|
203
|
+
name?: string | null;
|
|
204
|
+
amountOff?: number | null;
|
|
205
|
+
percentOff?: number | null;
|
|
206
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
207
|
+
durationInMonths?: number | null;
|
|
208
|
+
maxRedemptions?: number | null;
|
|
209
|
+
valid: boolean;
|
|
210
|
+
createdAt: string | null;
|
|
211
|
+
updatedAt: string | null;
|
|
212
|
+
};
|
|
213
|
+
} | null;
|
|
214
|
+
usage: {
|
|
215
|
+
monthlyPosts: number;
|
|
216
|
+
};
|
|
147
217
|
};
|
|
148
218
|
type TeamGetTeamData = {
|
|
149
219
|
id: string;
|
|
@@ -160,10 +230,9 @@ type TeamGetTeamResponse = {
|
|
|
160
230
|
organization: {
|
|
161
231
|
id: string;
|
|
162
232
|
createdById: string;
|
|
233
|
+
promotionCodeId?: string | null;
|
|
163
234
|
name?: string | null;
|
|
164
235
|
avatarUrl?: string | null;
|
|
165
|
-
defaultPaymentMethodFilled?: boolean;
|
|
166
|
-
billingAddressFilled?: boolean;
|
|
167
236
|
apiAccess?: boolean;
|
|
168
237
|
ref?: string | null;
|
|
169
238
|
createdAt: string | null;
|
|
@@ -217,9 +286,6 @@ type TeamGetTeamResponse = {
|
|
|
217
286
|
updatedAt: string | null;
|
|
218
287
|
deletedAt?: string | null;
|
|
219
288
|
}>;
|
|
220
|
-
usage: {
|
|
221
|
-
monthlyPosts: number;
|
|
222
|
-
};
|
|
223
289
|
bio?: {
|
|
224
290
|
id: string;
|
|
225
291
|
username: string;
|
|
@@ -257,40 +323,6 @@ type TeamGetTeamResponse = {
|
|
|
257
323
|
}>;
|
|
258
324
|
}>;
|
|
259
325
|
} | null;
|
|
260
|
-
teamPlan?: {
|
|
261
|
-
id: string;
|
|
262
|
-
organizationSubscriptionId: string;
|
|
263
|
-
teamId: string;
|
|
264
|
-
stripePriceId: string;
|
|
265
|
-
tier: 'PRO' | 'CUSTOM';
|
|
266
|
-
maxMonthlyPosts: number;
|
|
267
|
-
maxDailyPosts: number;
|
|
268
|
-
createdAt: string | null;
|
|
269
|
-
updatedAt: string | null;
|
|
270
|
-
organizationSubscription?: {
|
|
271
|
-
id: string;
|
|
272
|
-
organizationId: string;
|
|
273
|
-
stripeSubscriptionId: string;
|
|
274
|
-
stripeSubscriptionItems?: Array<{
|
|
275
|
-
id: string;
|
|
276
|
-
price: string;
|
|
277
|
-
quantity: number;
|
|
278
|
-
}> | null;
|
|
279
|
-
status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
|
|
280
|
-
metadata?: unknown;
|
|
281
|
-
cancelAtPeriodEnd: boolean;
|
|
282
|
-
created: string | null;
|
|
283
|
-
currentPeriodStart: string | null;
|
|
284
|
-
currentPeriodEnd: string | null;
|
|
285
|
-
endedAt?: string | null;
|
|
286
|
-
cancelAt?: string | null;
|
|
287
|
-
canceledAt?: string | null;
|
|
288
|
-
trialStart?: string | null;
|
|
289
|
-
trialEnd?: string | null;
|
|
290
|
-
createdAt: string | null;
|
|
291
|
-
updatedAt: string | null;
|
|
292
|
-
} | null;
|
|
293
|
-
} | null;
|
|
294
326
|
};
|
|
295
327
|
type TeamUpdateTeamData = {
|
|
296
328
|
id: string;
|
|
@@ -331,7 +363,6 @@ type TeamCreateTeamData = {
|
|
|
331
363
|
*/
|
|
332
364
|
requestBody?: {
|
|
333
365
|
name: string;
|
|
334
|
-
tier: 'FREE' | 'PRO';
|
|
335
366
|
avatarUrl?: string | null;
|
|
336
367
|
};
|
|
337
368
|
};
|
|
@@ -2210,10 +2241,9 @@ type $OpenApiTs = {
|
|
|
2210
2241
|
200: {
|
|
2211
2242
|
id: string;
|
|
2212
2243
|
createdById: string;
|
|
2244
|
+
promotionCodeId?: string | null;
|
|
2213
2245
|
name?: string | null;
|
|
2214
2246
|
avatarUrl?: string | null;
|
|
2215
|
-
defaultPaymentMethodFilled?: boolean;
|
|
2216
|
-
billingAddressFilled?: boolean;
|
|
2217
2247
|
apiAccess?: boolean;
|
|
2218
2248
|
ref?: string | null;
|
|
2219
2249
|
createdAt: string | null;
|
|
@@ -2242,9 +2272,11 @@ type $OpenApiTs = {
|
|
|
2242
2272
|
updatedAt: string | null;
|
|
2243
2273
|
deletedAt?: string | null;
|
|
2244
2274
|
};
|
|
2245
|
-
|
|
2275
|
+
subscription?: {
|
|
2246
2276
|
id: string;
|
|
2247
2277
|
organizationId: string;
|
|
2278
|
+
couponId?: string | null;
|
|
2279
|
+
promotionCodeId?: string | null;
|
|
2248
2280
|
stripeSubscriptionId: string;
|
|
2249
2281
|
stripeSubscriptionItems?: Array<{
|
|
2250
2282
|
id: string;
|
|
@@ -2253,6 +2285,8 @@ type $OpenApiTs = {
|
|
|
2253
2285
|
}> | null;
|
|
2254
2286
|
status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
|
|
2255
2287
|
metadata?: unknown;
|
|
2288
|
+
stripePriceId: string;
|
|
2289
|
+
tier: 'PRO' | 'BUSINESS';
|
|
2256
2290
|
cancelAtPeriodEnd: boolean;
|
|
2257
2291
|
created: string | null;
|
|
2258
2292
|
currentPeriodStart: string | null;
|
|
@@ -2262,20 +2296,87 @@ type $OpenApiTs = {
|
|
|
2262
2296
|
canceledAt?: string | null;
|
|
2263
2297
|
trialStart?: string | null;
|
|
2264
2298
|
trialEnd?: string | null;
|
|
2299
|
+
maxMonthlyPosts: number;
|
|
2300
|
+
discountStart?: string | null;
|
|
2301
|
+
discountEnd?: string | null;
|
|
2265
2302
|
createdAt: string | null;
|
|
2266
2303
|
updatedAt: string | null;
|
|
2267
|
-
|
|
2304
|
+
coupon?: {
|
|
2268
2305
|
id: string;
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2306
|
+
name?: string | null;
|
|
2307
|
+
amountOff?: number | null;
|
|
2308
|
+
percentOff?: number | null;
|
|
2309
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
2310
|
+
durationInMonths?: number | null;
|
|
2311
|
+
maxRedemptions?: number | null;
|
|
2312
|
+
valid: boolean;
|
|
2313
|
+
createdAt: string | null;
|
|
2314
|
+
updatedAt: string | null;
|
|
2315
|
+
promotionCodes: Array<{
|
|
2316
|
+
id: string;
|
|
2317
|
+
couponId: string;
|
|
2318
|
+
code: string;
|
|
2319
|
+
active: boolean;
|
|
2320
|
+
expiresAt?: string | null;
|
|
2321
|
+
maxRedemptions?: number | null;
|
|
2322
|
+
firstTimeTransaction: boolean;
|
|
2323
|
+
minimumAmount?: number | null;
|
|
2324
|
+
createdAt: string | null;
|
|
2325
|
+
updatedAt: string | null;
|
|
2326
|
+
}>;
|
|
2327
|
+
} | null;
|
|
2328
|
+
promotionCode?: {
|
|
2329
|
+
id: string;
|
|
2330
|
+
couponId: string;
|
|
2331
|
+
code: string;
|
|
2332
|
+
active: boolean;
|
|
2333
|
+
expiresAt?: string | null;
|
|
2334
|
+
maxRedemptions?: number | null;
|
|
2335
|
+
firstTimeTransaction: boolean;
|
|
2336
|
+
minimumAmount?: number | null;
|
|
2275
2337
|
createdAt: string | null;
|
|
2276
2338
|
updatedAt: string | null;
|
|
2339
|
+
coupon: {
|
|
2340
|
+
id: string;
|
|
2341
|
+
name?: string | null;
|
|
2342
|
+
amountOff?: number | null;
|
|
2343
|
+
percentOff?: number | null;
|
|
2344
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
2345
|
+
durationInMonths?: number | null;
|
|
2346
|
+
maxRedemptions?: number | null;
|
|
2347
|
+
valid: boolean;
|
|
2348
|
+
createdAt: string | null;
|
|
2349
|
+
updatedAt: string | null;
|
|
2350
|
+
};
|
|
2277
2351
|
} | null;
|
|
2278
2352
|
} | null;
|
|
2353
|
+
promotionCode?: {
|
|
2354
|
+
id: string;
|
|
2355
|
+
couponId: string;
|
|
2356
|
+
code: string;
|
|
2357
|
+
active: boolean;
|
|
2358
|
+
expiresAt?: string | null;
|
|
2359
|
+
maxRedemptions?: number | null;
|
|
2360
|
+
firstTimeTransaction: boolean;
|
|
2361
|
+
minimumAmount?: number | null;
|
|
2362
|
+
createdAt: string | null;
|
|
2363
|
+
updatedAt: string | null;
|
|
2364
|
+
coupon: {
|
|
2365
|
+
id: string;
|
|
2366
|
+
name?: string | null;
|
|
2367
|
+
amountOff?: number | null;
|
|
2368
|
+
percentOff?: number | null;
|
|
2369
|
+
duration: 'forever' | 'once' | 'repeating';
|
|
2370
|
+
durationInMonths?: number | null;
|
|
2371
|
+
maxRedemptions?: number | null;
|
|
2372
|
+
valid: boolean;
|
|
2373
|
+
createdAt: string | null;
|
|
2374
|
+
updatedAt: string | null;
|
|
2375
|
+
};
|
|
2376
|
+
} | null;
|
|
2377
|
+
usage: {
|
|
2378
|
+
monthlyPosts: number;
|
|
2379
|
+
};
|
|
2279
2380
|
};
|
|
2280
2381
|
/**
|
|
2281
2382
|
* 400
|
|
@@ -2339,10 +2440,9 @@ type $OpenApiTs = {
|
|
|
2339
2440
|
organization: {
|
|
2340
2441
|
id: string;
|
|
2341
2442
|
createdById: string;
|
|
2443
|
+
promotionCodeId?: string | null;
|
|
2342
2444
|
name?: string | null;
|
|
2343
2445
|
avatarUrl?: string | null;
|
|
2344
|
-
defaultPaymentMethodFilled?: boolean;
|
|
2345
|
-
billingAddressFilled?: boolean;
|
|
2346
2446
|
apiAccess?: boolean;
|
|
2347
2447
|
ref?: string | null;
|
|
2348
2448
|
createdAt: string | null;
|
|
@@ -2396,9 +2496,6 @@ type $OpenApiTs = {
|
|
|
2396
2496
|
updatedAt: string | null;
|
|
2397
2497
|
deletedAt?: string | null;
|
|
2398
2498
|
}>;
|
|
2399
|
-
usage: {
|
|
2400
|
-
monthlyPosts: number;
|
|
2401
|
-
};
|
|
2402
2499
|
bio?: {
|
|
2403
2500
|
id: string;
|
|
2404
2501
|
username: string;
|
|
@@ -2436,40 +2533,6 @@ type $OpenApiTs = {
|
|
|
2436
2533
|
}>;
|
|
2437
2534
|
}>;
|
|
2438
2535
|
} | null;
|
|
2439
|
-
teamPlan?: {
|
|
2440
|
-
id: string;
|
|
2441
|
-
organizationSubscriptionId: string;
|
|
2442
|
-
teamId: string;
|
|
2443
|
-
stripePriceId: string;
|
|
2444
|
-
tier: 'PRO' | 'CUSTOM';
|
|
2445
|
-
maxMonthlyPosts: number;
|
|
2446
|
-
maxDailyPosts: number;
|
|
2447
|
-
createdAt: string | null;
|
|
2448
|
-
updatedAt: string | null;
|
|
2449
|
-
organizationSubscription?: {
|
|
2450
|
-
id: string;
|
|
2451
|
-
organizationId: string;
|
|
2452
|
-
stripeSubscriptionId: string;
|
|
2453
|
-
stripeSubscriptionItems?: Array<{
|
|
2454
|
-
id: string;
|
|
2455
|
-
price: string;
|
|
2456
|
-
quantity: number;
|
|
2457
|
-
}> | null;
|
|
2458
|
-
status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
|
|
2459
|
-
metadata?: unknown;
|
|
2460
|
-
cancelAtPeriodEnd: boolean;
|
|
2461
|
-
created: string | null;
|
|
2462
|
-
currentPeriodStart: string | null;
|
|
2463
|
-
currentPeriodEnd: string | null;
|
|
2464
|
-
endedAt?: string | null;
|
|
2465
|
-
cancelAt?: string | null;
|
|
2466
|
-
canceledAt?: string | null;
|
|
2467
|
-
trialStart?: string | null;
|
|
2468
|
-
trialEnd?: string | null;
|
|
2469
|
-
createdAt: string | null;
|
|
2470
|
-
updatedAt: string | null;
|
|
2471
|
-
} | null;
|
|
2472
|
-
} | null;
|
|
2473
2536
|
};
|
|
2474
2537
|
/**
|
|
2475
2538
|
* 400
|