shoal-web-sdk 1.0.99 → 1.0.100

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.
@@ -14,12 +14,14 @@ export type IntegerPlanFeatureResponse = ({
14
14
  type: 'unlimited';
15
15
  } & UnlimitedIntegerPlanFeatureResponse);
16
16
  export type LimitedIntegerPlanFeatureResponse = PlanFeatureResponse & {
17
- type: 'limited';
17
+ type: LimitedIntegerPlanFeatureType;
18
18
  value: number;
19
19
  };
20
20
  export type UnlimitedIntegerPlanFeatureResponse = PlanFeatureResponse & {
21
- type: 'unlimited';
21
+ type: UnlimitedIntegerPlanFeatureType;
22
22
  };
23
+ export type UnlimitedIntegerPlanFeatureType = 'unlimited';
24
+ export type LimitedIntegerPlanFeatureType = 'limited';
23
25
  export type BooleanPlanFeatureResponse = ({
24
26
  type: 'enabled';
25
27
  } & EnabledBooleanPlanFeatureResponse) | ({
@@ -33,17 +35,26 @@ export type EnabledBooleanPlanFeatureResponse = PlanFeatureResponse & {
33
35
  export type DisabledBooleanPlanFeatureResponse = PlanFeatureResponse & {
34
36
  type: DisabledBooleanPlanFeatureType;
35
37
  };
38
+ export type Features = {
39
+ maximumSeats?: IntegerPlanFeatureResponse;
40
+ maximumProjects?: IntegerPlanFeatureResponse;
41
+ maximumEnvironments?: IntegerPlanFeatureResponse;
42
+ githubOrganizationIntegration?: BooleanPlanFeatureResponse;
43
+ shoalAISupport?: BooleanPlanFeatureResponse;
44
+ maximumContainerNodes?: IntegerPlanFeatureResponse;
45
+ maximumFunctionNodes?: IntegerPlanFeatureResponse;
46
+ maximumGatewayNodes?: IntegerPlanFeatureResponse;
47
+ maximumCloudSQLNodes?: IntegerPlanFeatureResponse;
48
+ maximumSchedulerNodes?: IntegerPlanFeatureResponse;
49
+ maximumVMNodes?: IntegerPlanFeatureResponse;
50
+ maximumQueueNodes?: IntegerPlanFeatureResponse;
51
+ };
36
52
  export type PlanResponse = {
37
53
  readonly key: string;
38
54
  readonly rank: number;
39
55
  readonly displayName: string;
40
56
  readonly displayDescription?: string;
41
- features: {
42
- maximumSeats?: IntegerPlanFeatureResponse;
43
- maximumProjects?: IntegerPlanFeatureResponse;
44
- maximumEnvironments?: IntegerPlanFeatureResponse;
45
- githubOrganizationIntegration?: BooleanPlanFeatureResponse;
46
- };
57
+ features: Features;
47
58
  pricing?: PricesResponse;
48
59
  trial?: PlanTrialResponse;
49
60
  readonly isSelfServe: boolean;
@@ -60,8 +71,8 @@ export type PlanPriceResponse = {
60
71
  };
61
72
  export type PlanTrialResponse = {
62
73
  readonly lengthInDays: number;
63
- readonly startingBonusCents: number;
64
- readonly trialConvertBonusCents: number;
74
+ readonly startingBonusCents?: number;
75
+ readonly trialConvertBonusCents?: number;
65
76
  };
66
77
  export type PlanFeatureResponse = {
67
78
  readonly displayDescription?: string;
@@ -110,12 +121,7 @@ export type CustomerPlanResponse = {
110
121
  interval?: BillingInterval;
111
122
  readonly currency?: string;
112
123
  readonly unitAmountCents?: number;
113
- readonly features: {
114
- maximumSeats?: IntegerPlanFeatureResponse;
115
- maximumProjects?: IntegerPlanFeatureResponse;
116
- maximumEnvironments?: IntegerPlanFeatureResponse;
117
- githubOrganizationIntegration?: BooleanPlanFeatureResponse;
118
- };
124
+ features: unknown;
119
125
  };
120
126
  export type PaymentMethodSummary = {
121
127
  readonly id: string;
@@ -168,11 +174,11 @@ export type IntegerPlanFeatureResponseWritable = ({
168
174
  type: 'UnlimitedIntegerPlanFeatureResponseWritable';
169
175
  } & UnlimitedIntegerPlanFeatureResponseWritable);
170
176
  export type LimitedIntegerPlanFeatureResponseWritable = {
171
- type: 'limited';
177
+ type: LimitedIntegerPlanFeatureType;
172
178
  value: number;
173
179
  };
174
180
  export type UnlimitedIntegerPlanFeatureResponseWritable = {
175
- type: 'unlimited';
181
+ type: UnlimitedIntegerPlanFeatureType;
176
182
  };
177
183
  export type BooleanPlanFeatureResponseWritable = ({
178
184
  type: 'EnabledBooleanPlanFeatureResponseWritable';
@@ -185,19 +191,29 @@ export type EnabledBooleanPlanFeatureResponseWritable = {
185
191
  export type DisabledBooleanPlanFeatureResponseWritable = {
186
192
  type: DisabledBooleanPlanFeatureType;
187
193
  };
194
+ export type FeaturesWritable = {
195
+ maximumSeats?: IntegerPlanFeatureResponseWritable;
196
+ maximumProjects?: IntegerPlanFeatureResponseWritable;
197
+ maximumEnvironments?: IntegerPlanFeatureResponseWritable;
198
+ githubOrganizationIntegration?: BooleanPlanFeatureResponseWritable;
199
+ shoalAISupport?: BooleanPlanFeatureResponseWritable;
200
+ maximumContainerNodes?: IntegerPlanFeatureResponseWritable;
201
+ maximumFunctionNodes?: IntegerPlanFeatureResponseWritable;
202
+ maximumGatewayNodes?: IntegerPlanFeatureResponseWritable;
203
+ maximumCloudSQLNodes?: IntegerPlanFeatureResponseWritable;
204
+ maximumSchedulerNodes?: IntegerPlanFeatureResponseWritable;
205
+ maximumVMNodes?: IntegerPlanFeatureResponseWritable;
206
+ maximumQueueNodes?: IntegerPlanFeatureResponseWritable;
207
+ };
188
208
  export type PlanResponseWritable = {
189
- features: {
190
- maximumSeats?: IntegerPlanFeatureResponseWritable;
191
- maximumProjects?: IntegerPlanFeatureResponseWritable;
192
- maximumEnvironments?: IntegerPlanFeatureResponseWritable;
193
- githubOrganizationIntegration?: BooleanPlanFeatureResponseWritable;
194
- };
209
+ features: FeaturesWritable;
195
210
  };
196
211
  export type PricesResponseWritable = {
197
212
  [key: string]: unknown;
198
213
  };
199
214
  export type CustomerPlanResponseWritable = {
200
215
  interval?: BillingInterval;
216
+ features: unknown;
201
217
  };
202
218
  export type CustomerResponseWritable = {
203
219
  id: string;