shoal-web-sdk 1.0.91 → 1.0.92

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.
@@ -116,7 +116,10 @@ export type PaymentMethodSummary = {
116
116
  readonly expYear: number;
117
117
  readonly isDefault: boolean;
118
118
  };
119
+ export type CustomerStatus = 'incomplete' | 'incomplete_expired' | 'trialing' | 'active' | 'past_due' | 'canceled' | 'unpaid' | 'paused' | 'onboarding';
119
120
  export type CustomerResponse = {
121
+ id: string;
122
+ status: CustomerStatus;
120
123
  currentPlan: CustomerPlanResponse;
121
124
  pendingPlan?: CustomerPlanResponse;
122
125
  readonly currentPeriodEnd: number;
@@ -161,6 +164,8 @@ export type CustomerPlanResponseWritable = {
161
164
  interval?: BillingInterval;
162
165
  };
163
166
  export type CustomerResponseWritable = {
167
+ id: string;
168
+ status: CustomerStatus;
164
169
  currentPlan: CustomerPlanResponseWritable;
165
170
  };
166
171
  /**
@@ -438,7 +438,30 @@ export declare const zPaymentMethodSummary: z.ZodObject<{
438
438
  expYear: z.ZodReadonly<z.ZodInt>;
439
439
  isDefault: z.ZodReadonly<z.ZodBoolean>;
440
440
  }, z.core.$strip>;
441
+ export declare const zCustomerStatus: z.ZodEnum<{
442
+ active: "active";
443
+ paused: "paused";
444
+ incomplete: "incomplete";
445
+ incomplete_expired: "incomplete_expired";
446
+ trialing: "trialing";
447
+ past_due: "past_due";
448
+ canceled: "canceled";
449
+ unpaid: "unpaid";
450
+ onboarding: "onboarding";
451
+ }>;
441
452
  export declare const zCustomerResponse: z.ZodObject<{
453
+ id: z.ZodUUID;
454
+ status: z.ZodEnum<{
455
+ active: "active";
456
+ paused: "paused";
457
+ incomplete: "incomplete";
458
+ incomplete_expired: "incomplete_expired";
459
+ trialing: "trialing";
460
+ past_due: "past_due";
461
+ canceled: "canceled";
462
+ unpaid: "unpaid";
463
+ onboarding: "onboarding";
464
+ }>;
442
465
  currentPlan: z.ZodObject<{
443
466
  key: z.ZodReadonly<z.ZodString>;
444
467
  displayName: z.ZodReadonly<z.ZodString>;
@@ -685,6 +708,18 @@ export declare const zCustomerPlanResponseWritable: z.ZodObject<{
685
708
  }>>;
686
709
  }, z.core.$strip>;
687
710
  export declare const zCustomerResponseWritable: z.ZodObject<{
711
+ id: z.ZodUUID;
712
+ status: z.ZodEnum<{
713
+ active: "active";
714
+ paused: "paused";
715
+ incomplete: "incomplete";
716
+ incomplete_expired: "incomplete_expired";
717
+ trialing: "trialing";
718
+ past_due: "past_due";
719
+ canceled: "canceled";
720
+ unpaid: "unpaid";
721
+ onboarding: "onboarding";
722
+ }>;
688
723
  currentPlan: z.ZodObject<{
689
724
  interval: z.ZodOptional<z.ZodEnum<{
690
725
  monthly: "monthly";
@@ -711,6 +746,18 @@ export declare const zGetCustomerData: z.ZodObject<{
711
746
  * Customer billing state
712
747
  */
713
748
  export declare const zGetCustomerResponse: z.ZodObject<{
749
+ id: z.ZodUUID;
750
+ status: z.ZodEnum<{
751
+ active: "active";
752
+ paused: "paused";
753
+ incomplete: "incomplete";
754
+ incomplete_expired: "incomplete_expired";
755
+ trialing: "trialing";
756
+ past_due: "past_due";
757
+ canceled: "canceled";
758
+ unpaid: "unpaid";
759
+ onboarding: "onboarding";
760
+ }>;
714
761
  currentPlan: z.ZodObject<{
715
762
  key: z.ZodReadonly<z.ZodString>;
716
763
  displayName: z.ZodReadonly<z.ZodString>;
@@ -1073,6 +1120,18 @@ export declare const zM2mGetCustomerData: z.ZodObject<{
1073
1120
  * Customer billing state
1074
1121
  */
1075
1122
  export declare const zM2mGetCustomerResponse: z.ZodObject<{
1123
+ id: z.ZodUUID;
1124
+ status: z.ZodEnum<{
1125
+ active: "active";
1126
+ paused: "paused";
1127
+ incomplete: "incomplete";
1128
+ incomplete_expired: "incomplete_expired";
1129
+ trialing: "trialing";
1130
+ past_due: "past_due";
1131
+ canceled: "canceled";
1132
+ unpaid: "unpaid";
1133
+ onboarding: "onboarding";
1134
+ }>;
1076
1135
  currentPlan: z.ZodObject<{
1077
1136
  key: z.ZodReadonly<z.ZodString>;
1078
1137
  displayName: z.ZodReadonly<z.ZodString>;
@@ -131,7 +131,20 @@ export const zPaymentMethodSummary = z.object({
131
131
  expYear: z.int().readonly(),
132
132
  isDefault: z.boolean().readonly()
133
133
  });
134
+ export const zCustomerStatus = z.enum([
135
+ 'incomplete',
136
+ 'incomplete_expired',
137
+ 'trialing',
138
+ 'active',
139
+ 'past_due',
140
+ 'canceled',
141
+ 'unpaid',
142
+ 'paused',
143
+ 'onboarding'
144
+ ]);
134
145
  export const zCustomerResponse = z.object({
146
+ id: z.uuid(),
147
+ status: zCustomerStatus,
135
148
  currentPlan: zCustomerPlanResponse,
136
149
  pendingPlan: z.optional(zCustomerPlanResponse),
137
150
  currentPeriodEnd: z.int().readonly(),
@@ -177,6 +190,8 @@ export const zCustomerPlanResponseWritable = z.object({
177
190
  interval: z.optional(zBillingInterval)
178
191
  });
179
192
  export const zCustomerResponseWritable = z.object({
193
+ id: z.uuid(),
194
+ status: zCustomerStatus,
180
195
  currentPlan: zCustomerPlanResponseWritable
181
196
  });
182
197
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoal-web-sdk",
3
- "version": "1.0.91",
3
+ "version": "1.0.92",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build-hooks": "npx tsx tanstack-codegen/generator.ts",