shoal-web-sdk 0.0.43 → 0.0.45

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.
@@ -6,7 +6,7 @@ export type HealthResponse = {
6
6
  };
7
7
  export type ErrorResponse = {
8
8
  message: string;
9
- internalCode: unknown;
9
+ internalCode: number;
10
10
  };
11
11
  export type CreateProject = {
12
12
  name: string;
@@ -49,7 +49,7 @@ export type EnvironmentOverview = {
49
49
  description?: string;
50
50
  createdAt: string;
51
51
  updatedAt: string;
52
- versions: unknown;
52
+ versions: number;
53
53
  };
54
54
  export type AccountIdentity = {
55
55
  id: string;
@@ -57,7 +57,7 @@ export type AccountIdentity = {
57
57
  is_confirmed: boolean;
58
58
  created_on: string;
59
59
  last_login_on: string;
60
- total_logins: unknown;
60
+ total_logins: number;
61
61
  name: string;
62
62
  email: string;
63
63
  is_primary: boolean;
@@ -73,57 +73,40 @@ export type AccountProfile = {
73
73
  lastName: string;
74
74
  isSuspended: boolean;
75
75
  picture: string;
76
- totalSignIns: unknown;
77
- failedSignIns: unknown;
76
+ totalSignIns: number;
77
+ failedSignIns: number;
78
78
  lastSignedIn: string;
79
79
  createdOn: string;
80
80
  };
81
- export type BillingAgreements = {
81
+ export type BillingAgreement = {
82
82
  /**
83
- * Response code.
83
+ * The friendly id of an agreement
84
84
  */
85
- code?: string;
85
+ id?: string;
86
86
  /**
87
- * Response message.
87
+ * The plan code the billing customer is subscribed to
88
88
  */
89
- message?: string;
89
+ plan_code?: string;
90
90
  /**
91
- * Whether more records exist.
91
+ * The date the agreement expired (and was no longer active)
92
92
  */
93
- has_more?: boolean;
93
+ expires_on?: string;
94
94
  /**
95
- * A list of billing agreements
95
+ * The friendly id of the billing group this agreement's plan is part of
96
96
  */
97
- agreements?: Array<{
98
- /**
99
- * The friendly id of an agreement
100
- */
101
- id?: string;
102
- /**
103
- * The plan code the billing customer is subscribed to
104
- */
105
- plan_code?: string;
106
- /**
107
- * The date the agreement expired (and was no longer active)
108
- */
109
- expires_on?: string;
97
+ billing_group_id?: string;
98
+ /**
99
+ * A list of billing entitlements that is part of this agreement
100
+ */
101
+ entitlements?: Array<{
110
102
  /**
111
- * The friendly id of the billing group this agreement's plan is part of
103
+ * The feature code of the feature corresponding to this entitlement
112
104
  */
113
- billing_group_id?: string;
105
+ feature_code?: string;
114
106
  /**
115
- * A list of billing entitlements that is part of this agreement
107
+ * The friendly id of an entitlement
116
108
  */
117
- entitlements?: Array<{
118
- /**
119
- * The feature code of the feature corresponding to this entitlement
120
- */
121
- feature_code?: string;
122
- /**
123
- * The friendly id of an entitlement
124
- */
125
- entitlement_id?: string;
126
- }>;
109
+ entitlement_id?: string;
127
110
  }>;
128
111
  };
129
112
  export type EdgeVertices = {
@@ -143,8 +126,8 @@ export type RemoveNodes = {
143
126
  ids: Array<string>;
144
127
  };
145
128
  export type CreateNode = {
146
- x: unknown;
147
- y: unknown;
129
+ x: number;
130
+ y: number;
148
131
  typ: NodeType;
149
132
  };
150
133
  export type NodeType = 'cache' | 'comment' | 'container' | 'cronjob' | 'database' | 'function' | 'message_queue' | 'proxy' | 'vm';
@@ -188,8 +171,8 @@ export type BaseNode = {
188
171
  versionId: string;
189
172
  name: string;
190
173
  description: string;
191
- x: unknown;
192
- y: unknown;
174
+ x: number;
175
+ y: number;
193
176
  edges: Array<Edge>;
194
177
  };
195
178
  export type CommentNode = BaseNode & {
@@ -229,23 +212,23 @@ export type VmNode = BaseNode & {
229
212
  props: VmNodeProps;
230
213
  };
231
214
  export type Node = ({
232
- typ: 'CommentNode';
215
+ typ: 'comment';
233
216
  } & CommentNode) | ({
234
- typ: 'CacheNode';
217
+ typ: 'cache';
235
218
  } & CacheNode) | ({
236
- typ: 'ContainerNode';
219
+ typ: 'container';
237
220
  } & ContainerNode) | ({
238
- typ: 'CronJobNode';
221
+ typ: 'cronjob';
239
222
  } & CronJobNode) | ({
240
- typ: 'DatabaseNode';
223
+ typ: 'database';
241
224
  } & DatabaseNode) | ({
242
- typ: 'FunctionNode';
225
+ typ: 'function';
243
226
  } & FunctionNode) | ({
244
- typ: 'MessageQueueNode';
227
+ typ: 'message_queue';
245
228
  } & MessageQueueNode) | ({
246
- typ: 'ProxyNode';
229
+ typ: 'proxy';
247
230
  } & ProxyNode) | ({
248
- typ: 'VMNode';
231
+ typ: 'vm';
249
232
  } & VmNode);
250
233
  /**
251
234
  * A version number with in an environment.
@@ -462,7 +445,7 @@ export type GetSpaceBillingAgreementsResponses = {
462
445
  /**
463
446
  * A list of the space's billing agreements.
464
447
  */
465
- 200: BillingAgreements;
448
+ 200: Array<BillingAgreement>;
466
449
  };
467
450
  export type GetSpaceBillingAgreementsResponse = GetSpaceBillingAgreementsResponses[keyof GetSpaceBillingAgreementsResponses];
468
451
  export type CreateProjectData = {
@@ -25,7 +25,7 @@ export declare const useGetSpaceOverview: (options: Omit<GetSpaceOverviewData, "
25
25
  }) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").SpaceOverview | undefined, Error>;
26
26
  export declare const useGetSpaceBillingAgreements: (options: Omit<GetSpaceBillingAgreementsData, "url"> & {
27
27
  enabled?: boolean;
28
- }) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").BillingAgreements | undefined, Error>;
28
+ }) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").BillingAgreement[] | undefined, Error>;
29
29
  export declare const useCreateProject: (config?: {
30
30
  onSuccess?: (data: GetSuccessResponse<CreateProjectResponses>) => void;
31
31
  onError?: Parameters<typeof useMutation>["0"]["onError"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoal-web-sdk",
3
- "version": "0.0.43",
3
+ "version": "0.0.45",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build-hooks": "npx tsx tanstack-codegen/generator.ts",