bundlesocial 2.3.0 → 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 CHANGED
@@ -81,8 +81,6 @@ type OrganizationGetOrganizationResponse = {
81
81
  promotionCodeId?: string | null;
82
82
  name?: string | null;
83
83
  avatarUrl?: string | null;
84
- defaultPaymentMethodFilled?: boolean;
85
- billingAddressFilled?: boolean;
86
84
  apiAccess?: boolean;
87
85
  ref?: string | null;
88
86
  createdAt: string | null;
@@ -124,6 +122,8 @@ type OrganizationGetOrganizationResponse = {
124
122
  }> | null;
125
123
  status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
126
124
  metadata?: unknown;
125
+ stripePriceId: string;
126
+ tier: 'PRO' | 'BUSINESS';
127
127
  cancelAtPeriodEnd: boolean;
128
128
  created: string | null;
129
129
  currentPeriodStart: string | null;
@@ -133,23 +133,11 @@ type OrganizationGetOrganizationResponse = {
133
133
  canceledAt?: string | null;
134
134
  trialStart?: string | null;
135
135
  trialEnd?: string | null;
136
- defaultMaxMonthlyPosts: number;
137
- defaultMaxDailyPosts: number;
136
+ maxMonthlyPosts: number;
138
137
  discountStart?: string | null;
139
138
  discountEnd?: string | null;
140
139
  createdAt: string | null;
141
140
  updatedAt: string | null;
142
- teamPlans: Array<{
143
- id: string;
144
- subscriptionId: string;
145
- teamId: string;
146
- stripePriceId: string;
147
- tier: 'PRO';
148
- maxMonthlyPosts: number;
149
- maxDailyPosts: number;
150
- createdAt: string | null;
151
- updatedAt: string | null;
152
- }>;
153
141
  coupon?: {
154
142
  id: string;
155
143
  name?: string | null;
@@ -223,6 +211,9 @@ type OrganizationGetOrganizationResponse = {
223
211
  updatedAt: string | null;
224
212
  };
225
213
  } | null;
214
+ usage: {
215
+ monthlyPosts: number;
216
+ };
226
217
  };
227
218
  type TeamGetTeamData = {
228
219
  id: string;
@@ -242,8 +233,6 @@ type TeamGetTeamResponse = {
242
233
  promotionCodeId?: string | null;
243
234
  name?: string | null;
244
235
  avatarUrl?: string | null;
245
- defaultPaymentMethodFilled?: boolean;
246
- billingAddressFilled?: boolean;
247
236
  apiAccess?: boolean;
248
237
  ref?: string | null;
249
238
  createdAt: string | null;
@@ -297,9 +286,6 @@ type TeamGetTeamResponse = {
297
286
  updatedAt: string | null;
298
287
  deletedAt?: string | null;
299
288
  }>;
300
- usage: {
301
- monthlyPosts: number;
302
- };
303
289
  bio?: {
304
290
  id: string;
305
291
  username: string;
@@ -337,46 +323,6 @@ type TeamGetTeamResponse = {
337
323
  }>;
338
324
  }>;
339
325
  } | null;
340
- teamPlan?: {
341
- id: string;
342
- subscriptionId: string;
343
- teamId: string;
344
- stripePriceId: string;
345
- tier: 'PRO';
346
- maxMonthlyPosts: number;
347
- maxDailyPosts: number;
348
- createdAt: string | null;
349
- updatedAt: string | null;
350
- subscription?: {
351
- id: string;
352
- organizationId: string;
353
- couponId?: string | null;
354
- promotionCodeId?: string | null;
355
- stripeSubscriptionId: string;
356
- stripeSubscriptionItems?: Array<{
357
- id: string;
358
- price: string;
359
- quantity: number;
360
- }> | null;
361
- status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
362
- metadata?: unknown;
363
- cancelAtPeriodEnd: boolean;
364
- created: string | null;
365
- currentPeriodStart: string | null;
366
- currentPeriodEnd: string | null;
367
- endedAt?: string | null;
368
- cancelAt?: string | null;
369
- canceledAt?: string | null;
370
- trialStart?: string | null;
371
- trialEnd?: string | null;
372
- defaultMaxMonthlyPosts: number;
373
- defaultMaxDailyPosts: number;
374
- discountStart?: string | null;
375
- discountEnd?: string | null;
376
- createdAt: string | null;
377
- updatedAt: string | null;
378
- } | null;
379
- } | null;
380
326
  };
381
327
  type TeamUpdateTeamData = {
382
328
  id: string;
@@ -417,7 +363,6 @@ type TeamCreateTeamData = {
417
363
  */
418
364
  requestBody?: {
419
365
  name: string;
420
- tier: 'FREE' | 'PRO';
421
366
  avatarUrl?: string | null;
422
367
  };
423
368
  };
@@ -2299,8 +2244,6 @@ type $OpenApiTs = {
2299
2244
  promotionCodeId?: string | null;
2300
2245
  name?: string | null;
2301
2246
  avatarUrl?: string | null;
2302
- defaultPaymentMethodFilled?: boolean;
2303
- billingAddressFilled?: boolean;
2304
2247
  apiAccess?: boolean;
2305
2248
  ref?: string | null;
2306
2249
  createdAt: string | null;
@@ -2342,6 +2285,8 @@ type $OpenApiTs = {
2342
2285
  }> | null;
2343
2286
  status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
2344
2287
  metadata?: unknown;
2288
+ stripePriceId: string;
2289
+ tier: 'PRO' | 'BUSINESS';
2345
2290
  cancelAtPeriodEnd: boolean;
2346
2291
  created: string | null;
2347
2292
  currentPeriodStart: string | null;
@@ -2351,23 +2296,11 @@ type $OpenApiTs = {
2351
2296
  canceledAt?: string | null;
2352
2297
  trialStart?: string | null;
2353
2298
  trialEnd?: string | null;
2354
- defaultMaxMonthlyPosts: number;
2355
- defaultMaxDailyPosts: number;
2299
+ maxMonthlyPosts: number;
2356
2300
  discountStart?: string | null;
2357
2301
  discountEnd?: string | null;
2358
2302
  createdAt: string | null;
2359
2303
  updatedAt: string | null;
2360
- teamPlans: Array<{
2361
- id: string;
2362
- subscriptionId: string;
2363
- teamId: string;
2364
- stripePriceId: string;
2365
- tier: 'PRO';
2366
- maxMonthlyPosts: number;
2367
- maxDailyPosts: number;
2368
- createdAt: string | null;
2369
- updatedAt: string | null;
2370
- }>;
2371
2304
  coupon?: {
2372
2305
  id: string;
2373
2306
  name?: string | null;
@@ -2441,6 +2374,9 @@ type $OpenApiTs = {
2441
2374
  updatedAt: string | null;
2442
2375
  };
2443
2376
  } | null;
2377
+ usage: {
2378
+ monthlyPosts: number;
2379
+ };
2444
2380
  };
2445
2381
  /**
2446
2382
  * 400
@@ -2507,8 +2443,6 @@ type $OpenApiTs = {
2507
2443
  promotionCodeId?: string | null;
2508
2444
  name?: string | null;
2509
2445
  avatarUrl?: string | null;
2510
- defaultPaymentMethodFilled?: boolean;
2511
- billingAddressFilled?: boolean;
2512
2446
  apiAccess?: boolean;
2513
2447
  ref?: string | null;
2514
2448
  createdAt: string | null;
@@ -2562,9 +2496,6 @@ type $OpenApiTs = {
2562
2496
  updatedAt: string | null;
2563
2497
  deletedAt?: string | null;
2564
2498
  }>;
2565
- usage: {
2566
- monthlyPosts: number;
2567
- };
2568
2499
  bio?: {
2569
2500
  id: string;
2570
2501
  username: string;
@@ -2602,46 +2533,6 @@ type $OpenApiTs = {
2602
2533
  }>;
2603
2534
  }>;
2604
2535
  } | null;
2605
- teamPlan?: {
2606
- id: string;
2607
- subscriptionId: string;
2608
- teamId: string;
2609
- stripePriceId: string;
2610
- tier: 'PRO';
2611
- maxMonthlyPosts: number;
2612
- maxDailyPosts: number;
2613
- createdAt: string | null;
2614
- updatedAt: string | null;
2615
- subscription?: {
2616
- id: string;
2617
- organizationId: string;
2618
- couponId?: string | null;
2619
- promotionCodeId?: string | null;
2620
- stripeSubscriptionId: string;
2621
- stripeSubscriptionItems?: Array<{
2622
- id: string;
2623
- price: string;
2624
- quantity: number;
2625
- }> | null;
2626
- status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
2627
- metadata?: unknown;
2628
- cancelAtPeriodEnd: boolean;
2629
- created: string | null;
2630
- currentPeriodStart: string | null;
2631
- currentPeriodEnd: string | null;
2632
- endedAt?: string | null;
2633
- cancelAt?: string | null;
2634
- canceledAt?: string | null;
2635
- trialStart?: string | null;
2636
- trialEnd?: string | null;
2637
- defaultMaxMonthlyPosts: number;
2638
- defaultMaxDailyPosts: number;
2639
- discountStart?: string | null;
2640
- discountEnd?: string | null;
2641
- createdAt: string | null;
2642
- updatedAt: string | null;
2643
- } | null;
2644
- } | null;
2645
2536
  };
2646
2537
  /**
2647
2538
  * 400
package/dist/index.d.ts CHANGED
@@ -81,8 +81,6 @@ type OrganizationGetOrganizationResponse = {
81
81
  promotionCodeId?: string | null;
82
82
  name?: string | null;
83
83
  avatarUrl?: string | null;
84
- defaultPaymentMethodFilled?: boolean;
85
- billingAddressFilled?: boolean;
86
84
  apiAccess?: boolean;
87
85
  ref?: string | null;
88
86
  createdAt: string | null;
@@ -124,6 +122,8 @@ type OrganizationGetOrganizationResponse = {
124
122
  }> | null;
125
123
  status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
126
124
  metadata?: unknown;
125
+ stripePriceId: string;
126
+ tier: 'PRO' | 'BUSINESS';
127
127
  cancelAtPeriodEnd: boolean;
128
128
  created: string | null;
129
129
  currentPeriodStart: string | null;
@@ -133,23 +133,11 @@ type OrganizationGetOrganizationResponse = {
133
133
  canceledAt?: string | null;
134
134
  trialStart?: string | null;
135
135
  trialEnd?: string | null;
136
- defaultMaxMonthlyPosts: number;
137
- defaultMaxDailyPosts: number;
136
+ maxMonthlyPosts: number;
138
137
  discountStart?: string | null;
139
138
  discountEnd?: string | null;
140
139
  createdAt: string | null;
141
140
  updatedAt: string | null;
142
- teamPlans: Array<{
143
- id: string;
144
- subscriptionId: string;
145
- teamId: string;
146
- stripePriceId: string;
147
- tier: 'PRO';
148
- maxMonthlyPosts: number;
149
- maxDailyPosts: number;
150
- createdAt: string | null;
151
- updatedAt: string | null;
152
- }>;
153
141
  coupon?: {
154
142
  id: string;
155
143
  name?: string | null;
@@ -223,6 +211,9 @@ type OrganizationGetOrganizationResponse = {
223
211
  updatedAt: string | null;
224
212
  };
225
213
  } | null;
214
+ usage: {
215
+ monthlyPosts: number;
216
+ };
226
217
  };
227
218
  type TeamGetTeamData = {
228
219
  id: string;
@@ -242,8 +233,6 @@ type TeamGetTeamResponse = {
242
233
  promotionCodeId?: string | null;
243
234
  name?: string | null;
244
235
  avatarUrl?: string | null;
245
- defaultPaymentMethodFilled?: boolean;
246
- billingAddressFilled?: boolean;
247
236
  apiAccess?: boolean;
248
237
  ref?: string | null;
249
238
  createdAt: string | null;
@@ -297,9 +286,6 @@ type TeamGetTeamResponse = {
297
286
  updatedAt: string | null;
298
287
  deletedAt?: string | null;
299
288
  }>;
300
- usage: {
301
- monthlyPosts: number;
302
- };
303
289
  bio?: {
304
290
  id: string;
305
291
  username: string;
@@ -337,46 +323,6 @@ type TeamGetTeamResponse = {
337
323
  }>;
338
324
  }>;
339
325
  } | null;
340
- teamPlan?: {
341
- id: string;
342
- subscriptionId: string;
343
- teamId: string;
344
- stripePriceId: string;
345
- tier: 'PRO';
346
- maxMonthlyPosts: number;
347
- maxDailyPosts: number;
348
- createdAt: string | null;
349
- updatedAt: string | null;
350
- subscription?: {
351
- id: string;
352
- organizationId: string;
353
- couponId?: string | null;
354
- promotionCodeId?: string | null;
355
- stripeSubscriptionId: string;
356
- stripeSubscriptionItems?: Array<{
357
- id: string;
358
- price: string;
359
- quantity: number;
360
- }> | null;
361
- status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
362
- metadata?: unknown;
363
- cancelAtPeriodEnd: boolean;
364
- created: string | null;
365
- currentPeriodStart: string | null;
366
- currentPeriodEnd: string | null;
367
- endedAt?: string | null;
368
- cancelAt?: string | null;
369
- canceledAt?: string | null;
370
- trialStart?: string | null;
371
- trialEnd?: string | null;
372
- defaultMaxMonthlyPosts: number;
373
- defaultMaxDailyPosts: number;
374
- discountStart?: string | null;
375
- discountEnd?: string | null;
376
- createdAt: string | null;
377
- updatedAt: string | null;
378
- } | null;
379
- } | null;
380
326
  };
381
327
  type TeamUpdateTeamData = {
382
328
  id: string;
@@ -417,7 +363,6 @@ type TeamCreateTeamData = {
417
363
  */
418
364
  requestBody?: {
419
365
  name: string;
420
- tier: 'FREE' | 'PRO';
421
366
  avatarUrl?: string | null;
422
367
  };
423
368
  };
@@ -2299,8 +2244,6 @@ type $OpenApiTs = {
2299
2244
  promotionCodeId?: string | null;
2300
2245
  name?: string | null;
2301
2246
  avatarUrl?: string | null;
2302
- defaultPaymentMethodFilled?: boolean;
2303
- billingAddressFilled?: boolean;
2304
2247
  apiAccess?: boolean;
2305
2248
  ref?: string | null;
2306
2249
  createdAt: string | null;
@@ -2342,6 +2285,8 @@ type $OpenApiTs = {
2342
2285
  }> | null;
2343
2286
  status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
2344
2287
  metadata?: unknown;
2288
+ stripePriceId: string;
2289
+ tier: 'PRO' | 'BUSINESS';
2345
2290
  cancelAtPeriodEnd: boolean;
2346
2291
  created: string | null;
2347
2292
  currentPeriodStart: string | null;
@@ -2351,23 +2296,11 @@ type $OpenApiTs = {
2351
2296
  canceledAt?: string | null;
2352
2297
  trialStart?: string | null;
2353
2298
  trialEnd?: string | null;
2354
- defaultMaxMonthlyPosts: number;
2355
- defaultMaxDailyPosts: number;
2299
+ maxMonthlyPosts: number;
2356
2300
  discountStart?: string | null;
2357
2301
  discountEnd?: string | null;
2358
2302
  createdAt: string | null;
2359
2303
  updatedAt: string | null;
2360
- teamPlans: Array<{
2361
- id: string;
2362
- subscriptionId: string;
2363
- teamId: string;
2364
- stripePriceId: string;
2365
- tier: 'PRO';
2366
- maxMonthlyPosts: number;
2367
- maxDailyPosts: number;
2368
- createdAt: string | null;
2369
- updatedAt: string | null;
2370
- }>;
2371
2304
  coupon?: {
2372
2305
  id: string;
2373
2306
  name?: string | null;
@@ -2441,6 +2374,9 @@ type $OpenApiTs = {
2441
2374
  updatedAt: string | null;
2442
2375
  };
2443
2376
  } | null;
2377
+ usage: {
2378
+ monthlyPosts: number;
2379
+ };
2444
2380
  };
2445
2381
  /**
2446
2382
  * 400
@@ -2507,8 +2443,6 @@ type $OpenApiTs = {
2507
2443
  promotionCodeId?: string | null;
2508
2444
  name?: string | null;
2509
2445
  avatarUrl?: string | null;
2510
- defaultPaymentMethodFilled?: boolean;
2511
- billingAddressFilled?: boolean;
2512
2446
  apiAccess?: boolean;
2513
2447
  ref?: string | null;
2514
2448
  createdAt: string | null;
@@ -2562,9 +2496,6 @@ type $OpenApiTs = {
2562
2496
  updatedAt: string | null;
2563
2497
  deletedAt?: string | null;
2564
2498
  }>;
2565
- usage: {
2566
- monthlyPosts: number;
2567
- };
2568
2499
  bio?: {
2569
2500
  id: string;
2570
2501
  username: string;
@@ -2602,46 +2533,6 @@ type $OpenApiTs = {
2602
2533
  }>;
2603
2534
  }>;
2604
2535
  } | null;
2605
- teamPlan?: {
2606
- id: string;
2607
- subscriptionId: string;
2608
- teamId: string;
2609
- stripePriceId: string;
2610
- tier: 'PRO';
2611
- maxMonthlyPosts: number;
2612
- maxDailyPosts: number;
2613
- createdAt: string | null;
2614
- updatedAt: string | null;
2615
- subscription?: {
2616
- id: string;
2617
- organizationId: string;
2618
- couponId?: string | null;
2619
- promotionCodeId?: string | null;
2620
- stripeSubscriptionId: string;
2621
- stripeSubscriptionItems?: Array<{
2622
- id: string;
2623
- price: string;
2624
- quantity: number;
2625
- }> | null;
2626
- status: 'trialing' | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'unpaid' | 'paused';
2627
- metadata?: unknown;
2628
- cancelAtPeriodEnd: boolean;
2629
- created: string | null;
2630
- currentPeriodStart: string | null;
2631
- currentPeriodEnd: string | null;
2632
- endedAt?: string | null;
2633
- cancelAt?: string | null;
2634
- canceledAt?: string | null;
2635
- trialStart?: string | null;
2636
- trialEnd?: string | null;
2637
- defaultMaxMonthlyPosts: number;
2638
- defaultMaxDailyPosts: number;
2639
- discountStart?: string | null;
2640
- discountEnd?: string | null;
2641
- createdAt: string | null;
2642
- updatedAt: string | null;
2643
- } | null;
2644
- } | null;
2645
2536
  };
2646
2537
  /**
2647
2538
  * 400
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bundlesocial",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "Node.js library for the bundle.social API",
5
5
  "keywords": [
6
6
  "bundle.social",