@fusebase/fusebase-gate-sdk 2.2.2-sdk.2 → 2.2.2-sdk.20

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.js CHANGED
@@ -19,15 +19,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
19
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.WorkspacesApi = exports.TokensApi = exports.SystemApi = exports.PortalsApi = exports.OrgUsersApi = exports.HealthApi = exports.EmailsApi = exports.AccessApi = void 0;
22
+ exports.WorkspacesApi = exports.TokensApi = exports.SystemApi = exports.PortalsApi = exports.OrgUsersApi = exports.NotesApi = exports.IsolatedStoresApi = exports.HealthApi = exports.EmailsApi = exports.BillingApi = exports.AccessApi = void 0;
23
23
  __exportStar(require("./runtime"), exports);
24
24
  __exportStar(require("./types"), exports);
25
25
  var AccessApi_1 = require("./apis/AccessApi");
26
26
  Object.defineProperty(exports, "AccessApi", { enumerable: true, get: function () { return AccessApi_1.AccessApi; } });
27
+ var BillingApi_1 = require("./apis/BillingApi");
28
+ Object.defineProperty(exports, "BillingApi", { enumerable: true, get: function () { return BillingApi_1.BillingApi; } });
27
29
  var EmailsApi_1 = require("./apis/EmailsApi");
28
30
  Object.defineProperty(exports, "EmailsApi", { enumerable: true, get: function () { return EmailsApi_1.EmailsApi; } });
29
31
  var HealthApi_1 = require("./apis/HealthApi");
30
32
  Object.defineProperty(exports, "HealthApi", { enumerable: true, get: function () { return HealthApi_1.HealthApi; } });
33
+ var IsolatedStoresApi_1 = require("./apis/IsolatedStoresApi");
34
+ Object.defineProperty(exports, "IsolatedStoresApi", { enumerable: true, get: function () { return IsolatedStoresApi_1.IsolatedStoresApi; } });
35
+ var NotesApi_1 = require("./apis/NotesApi");
36
+ Object.defineProperty(exports, "NotesApi", { enumerable: true, get: function () { return NotesApi_1.NotesApi; } });
31
37
  var OrgUsersApi_1 = require("./apis/OrgUsersApi");
32
38
  Object.defineProperty(exports, "OrgUsersApi", { enumerable: true, get: function () { return OrgUsersApi_1.OrgUsersApi; } });
33
39
  var PortalsApi_1 = require("./apis/PortalsApi");
@@ -0,0 +1,102 @@
1
+ export type StripeModeContract = "payment" | "subscription";
2
+ export type StripeIntervalContract = "day" | "week" | "month" | "year";
3
+ export interface StripeOauthLookupRequestContract {
4
+ stripeAccountId?: string | null;
5
+ }
6
+ export interface StripeOauthContract {
7
+ orgId?: string;
8
+ userId?: number;
9
+ stripeAccountId?: string;
10
+ }
11
+ export interface StripeOauthLookupResponseContract {
12
+ oauth: StripeOauthContract | null;
13
+ }
14
+ export interface StripeProductContract {
15
+ id?: number;
16
+ orgId?: string;
17
+ userId?: number;
18
+ stripeAccountId?: string;
19
+ mode?: StripeModeContract;
20
+ amountCents?: number;
21
+ currency?: string;
22
+ title?: string;
23
+ productId?: string | null;
24
+ priceId?: string | null;
25
+ interval?: StripeIntervalContract;
26
+ intervalCount?: number | null;
27
+ kind?: string;
28
+ kindId?: string;
29
+ deleted?: boolean;
30
+ createdAt?: number;
31
+ updatedAt?: number;
32
+ }
33
+ /**
34
+ * For mode=subscription, interval and intervalCount are required.
35
+ * For mode=payment, interval and intervalCount must be omitted.
36
+ */
37
+ export interface StripeProductCreateRequestContract {
38
+ stripeAccountId: string;
39
+ mode: StripeModeContract;
40
+ amountCents: number;
41
+ currency: string;
42
+ title: string;
43
+ kind: string;
44
+ kindId: string;
45
+ interval?: StripeIntervalContract;
46
+ intervalCount?: number;
47
+ }
48
+ export interface StripeProductFindRequestContract {
49
+ stripeAccountId?: string | null;
50
+ kind?: string | null;
51
+ kindId?: string | null;
52
+ mode?: StripeModeContract | null;
53
+ }
54
+ export interface StripeProductLookupResponseContract {
55
+ product: StripeProductContract | null;
56
+ }
57
+ export interface StripeProductMutationResponseContract {
58
+ product: StripeProductContract;
59
+ }
60
+ export interface StripeProductDeleteRequestContract {
61
+ kind: string;
62
+ kindId: string;
63
+ stripeAccountId?: string | null;
64
+ }
65
+ export interface StripeProductDeleteResponseContract {
66
+ deleted: boolean;
67
+ kind: string;
68
+ kindId: string;
69
+ stripeAccountId?: string | null;
70
+ }
71
+ export interface StripeCheckoutLinkRequestContract {
72
+ stripeAccountId: string;
73
+ kind: string;
74
+ kindId: string;
75
+ buyerId: number;
76
+ successUrl: string;
77
+ cancelUrl: string;
78
+ customerEmail?: string | null;
79
+ }
80
+ export interface StripeCheckoutLinkResponseContract {
81
+ url?: string | null;
82
+ }
83
+ export interface StripePaymentStateRequestContract {
84
+ stripeAccountId: string;
85
+ mode: StripeModeContract;
86
+ kind: string;
87
+ kindId: string;
88
+ buyerId: number;
89
+ }
90
+ export interface StripePaymentStateResponseContract {
91
+ active?: boolean | null;
92
+ }
93
+ export declare const StripeModeContract: {
94
+ readonly Payment: "payment";
95
+ readonly Subscription: "subscription";
96
+ };
97
+ export declare const StripeIntervalContract: {
98
+ readonly Day: "day";
99
+ readonly Week: "week";
100
+ readonly Month: "month";
101
+ readonly Year: "year";
102
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StripeIntervalContract = exports.StripeModeContract = void 0;
4
+ exports.StripeModeContract = {
5
+ Payment: "payment",
6
+ Subscription: "subscription"
7
+ };
8
+ exports.StripeIntervalContract = {
9
+ Day: "day",
10
+ Week: "week",
11
+ Month: "month",
12
+ Year: "year"
13
+ };
@@ -5,11 +5,14 @@
5
5
  * Generated by SDK codegen
6
6
  */
7
7
  export type { AuthenticatedUserSummaryContract, MyOrgAccessResponseContract } from "./access/access";
8
+ export * from "./billing/billing";
8
9
  export type { OrgEmailSendRequestContract, OrgEmailSendResponseContract } from "./email/email";
10
+ export * from "./isolated-store/isolated-store";
11
+ export * from "./note/note";
9
12
  export type { OrgInviteContract, OrgMagicLinkContract, OrgPortalContract, OrgPortalListResponseContract, OrgUserAddRequestContract, OrgUserAddResponseContract, OrgUserContract, OrgUserListResponseContract, OrgWorkspaceContract, OrgWorkspaceInviteContract, OrgWorkspaceListResponseContract, OrgWorkspaceMemberContract } from "./org-user/org-user";
10
13
  export * from "./shared/common";
11
14
  export * from "./shared/enums";
12
15
  export type { GetHealth200ResponseContract } from "./shared/health";
13
16
  export type { aliasInQueryOptional, aliasInQueryRequired, cacheStrategyInQueryOptional, copyDataInQueryRequired, copyRelationsInQueryRequired, copyTablesInQueryRequired, copyViewsInQueryRequired, createDefaultRowsInQuery, dashboardIdInPathRequired, databaseIdInQueryRequired, includeRows, limitInQueryOptional, mappingInQueryRequiredContract, nameInQueryOptional, orgIdInPathRequired, pageInQueryOptional, relationId, rootEntitiesInQueryOptional, rootEntityInQueryOptional, scopeIdInQueryRequired, scopeTypeInQueryRequired, scopeTypeOrgInQueryRequired, sectionKeyInQueryOptional, sectionKeyInQueryRequired, sectionTypeInQueryOptional, sectionTypeInQueryRequired, sourceDashboardIdInQueryRequired, sourceIndexInQueryRequired, targetDashboardIdInQueryRequired, templateIdInPathRequired, viewIdInPathRequired, viewIdInQueryOptional, viewIdInQueryRequired } from "./shared/parameters";
14
17
  export * from "./system/system";
15
- export type { CreateTokenRequestContract, CreateTokenResponseContract, ResourceScopeContract, ResourceScopeRuleContract, RevokeTokenResponseContract, TokenContract, TokenListResponseContract, TokenResponseContract, UpdateTokenRequestContract } from "./token/token";
18
+ export type { CreateTokenRequestContract, CreateTokenResponseContract, ResourceScopeContract, ResourceScopeRuleContract, RevokeTokenResponseContract, TokenContract, TokenListResponseContract, TokenMetaContract, TokenMetaIssuerContract, TokenResponseContract, UpdateTokenRequestContract } from "./token/token";
@@ -20,6 +20,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
20
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
21
  };
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
+ __exportStar(require("./billing/billing"), exports);
24
+ __exportStar(require("./isolated-store/isolated-store"), exports);
25
+ __exportStar(require("./note/note"), exports);
23
26
  __exportStar(require("./shared/common"), exports);
24
27
  __exportStar(require("./shared/enums"), exports);
25
28
  __exportStar(require("./system/system"), exports);
@@ -0,0 +1,415 @@
1
+ export type IsolatedStoreIdInPathRequired = string;
2
+ export type IsolatedStoreStageInPathRequired = "dev" | "prod";
3
+ export type IsolatedStoreRevisionIdInPathRequired = string;
4
+ export type IsolatedStoreSqlTableNameInPathRequired = string;
5
+ export type IsolatedStoreNoSqlCollectionNameInPathRequired = string;
6
+ export type IsolatedStoreNoSqlDocumentIdInPathRequired = string;
7
+ export type IsolatedStoreTypeContract = "sql" | "nosql";
8
+ export type IsolatedStoreEngineContract = "postgres" | "mongodb_atlas";
9
+ export type IsolatedStoreStatusContract = "active" | "disabled";
10
+ export type IsolatedStoreStageStatusContract = "provisioning" | "ready" | "failed" | "disabled";
11
+ export type IsolatedStoreRevisionKindContract = "checkpoint" | "promotion";
12
+ export type IsolatedStoreScopeTypeContract = "org" | "workspace" | "portal" | "user" | "client" | "block" | "tracker" | "parent_row" | "parent_table";
13
+ export interface IsolatedStoreScopeContract {
14
+ scopeType: IsolatedStoreScopeTypeContract;
15
+ scopeId: string;
16
+ }
17
+ export interface IsolatedStoreSourceScopeContract {
18
+ sourceType: string;
19
+ sourceId: string;
20
+ }
21
+ export interface IsolatedStoreContract {
22
+ globalId: string;
23
+ alias: string;
24
+ storeType: IsolatedStoreTypeContract;
25
+ engine: IsolatedStoreEngineContract;
26
+ status: IsolatedStoreStatusContract;
27
+ scopes: IsolatedStoreScopeContract[];
28
+ sourceScopes: IsolatedStoreSourceScopeContract[];
29
+ createdByUserId: string;
30
+ createdAt: string;
31
+ updatedAt: string;
32
+ }
33
+ /** Connection binding for a SQL/postgres isolated store stage (control plane + MCP). */
34
+ export interface IsolatedStorePostgresBindingConfigContract {
35
+ connectionMode?: "raw" | "server";
36
+ serverKey?: string;
37
+ host?: string;
38
+ port?: number | null;
39
+ database: string;
40
+ username?: string;
41
+ user?: string;
42
+ password?: string;
43
+ ssl?: boolean;
44
+ schema?: string;
45
+ }
46
+ export interface IsolatedStoreMongoBindingConfigContract {
47
+ connectionMode?: "uri" | "server";
48
+ serverKey?: string;
49
+ uri?: string;
50
+ database: string;
51
+ }
52
+ export type IsolatedStoreBindingConfigContract = IsolatedStorePostgresBindingConfigContract | IsolatedStoreMongoBindingConfigContract;
53
+ export interface IsolatedStoreStageInstanceContract {
54
+ globalId: string;
55
+ storeGlobalId: string;
56
+ stage: IsolatedStoreStageInPathRequired;
57
+ status: IsolatedStoreStageStatusContract;
58
+ bindingConfig?: IsolatedStoreBindingConfigContract | null;
59
+ provisioningMetadata?: Record<string, unknown> | null;
60
+ createdByUserId: string;
61
+ createdAt: string;
62
+ updatedAt: string;
63
+ }
64
+ export interface IsolatedStoreRevisionContract {
65
+ globalId: string;
66
+ storeGlobalId: string;
67
+ stage: IsolatedStoreStageInPathRequired;
68
+ revisionNumber: number;
69
+ kind: IsolatedStoreRevisionKindContract;
70
+ label?: string | null;
71
+ snapshotRef?: string | null;
72
+ metadata?: Record<string, unknown> | null;
73
+ createdByUserId: string;
74
+ createdAt: string;
75
+ updatedAt: string;
76
+ }
77
+ export type IsolatedStoreSqlSchemaNameInQueryOptional = string | null;
78
+ export interface IsolatedStoreSqlListTablesQueryContract {
79
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
80
+ }
81
+ export interface IsolatedStoreSqlDescribeTableQueryContract {
82
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
83
+ }
84
+ export interface IsolatedStoreSqlTableContract {
85
+ schemaName: string;
86
+ tableName: string;
87
+ tableType: string;
88
+ }
89
+ export interface IsolatedStoreSqlColumnContract {
90
+ columnName: string;
91
+ dataType: string;
92
+ udtName?: string | null;
93
+ isNullable: boolean;
94
+ defaultValue?: string | null;
95
+ ordinalPosition: number;
96
+ }
97
+ export interface IsolatedStoreSqlTableDescriptionContract {
98
+ schemaName: string;
99
+ tableName: string;
100
+ columns: IsolatedStoreSqlColumnContract[];
101
+ }
102
+ export interface IsolatedStoreSqlListTablesResponseContract {
103
+ tables: IsolatedStoreSqlTableContract[];
104
+ }
105
+ export interface IsolatedStoreSqlDescribeTableResponseContract {
106
+ table: IsolatedStoreSqlTableDescriptionContract;
107
+ }
108
+ export interface IsolatedStoreSqlQueryRequestContract {
109
+ sql: string;
110
+ params?: unknown[] | null;
111
+ }
112
+ export interface IsolatedStoreSqlQueryResultContract {
113
+ command: string;
114
+ rowCount: number;
115
+ columns: string[];
116
+ rows: Record<string, unknown>[];
117
+ }
118
+ export interface IsolatedStoreSqlQueryResponseContract {
119
+ result: IsolatedStoreSqlQueryResultContract;
120
+ }
121
+ export interface IsolatedStoreSqlExecuteRequestContract {
122
+ sql: string;
123
+ params?: unknown[] | null;
124
+ }
125
+ export interface IsolatedStoreSqlExecuteResponseContract {
126
+ result: IsolatedStoreSqlQueryResultContract;
127
+ }
128
+ export type IsolatedStoreSqlFilterOperatorContract = "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "like" | "ilike" | "in" | "is_null" | "is_not_null";
129
+ export type IsolatedStoreSqlSortDirectionContract = "asc" | "desc";
130
+ export interface IsolatedStoreSqlFilterContract {
131
+ column: string;
132
+ operator: IsolatedStoreSqlFilterOperatorContract;
133
+ value?: unknown;
134
+ }
135
+ export interface IsolatedStoreSqlSortContract {
136
+ column: string;
137
+ direction?: IsolatedStoreSqlSortDirectionContract;
138
+ }
139
+ export interface IsolatedStoreSqlCountRequestContract {
140
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
141
+ tableName: string;
142
+ filters?: IsolatedStoreSqlFilterContract[] | null;
143
+ }
144
+ export interface IsolatedStoreSqlCountResponseContract {
145
+ count: number;
146
+ }
147
+ export interface IsolatedStoreSqlSelectRequestContract {
148
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
149
+ tableName: string;
150
+ columns?: string[] | null;
151
+ filters?: IsolatedStoreSqlFilterContract[] | null;
152
+ sort?: IsolatedStoreSqlSortContract[] | null;
153
+ limit?: number | null;
154
+ offset?: number | null;
155
+ }
156
+ export interface IsolatedStoreSqlSelectResponseContract {
157
+ columns: string[];
158
+ rows: Record<string, unknown>[];
159
+ page: {
160
+ limit: number;
161
+ offset: number;
162
+ rowCount: number;
163
+ };
164
+ }
165
+ export interface IsolatedStoreSqlInsertRequestContract {
166
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
167
+ tableName: string;
168
+ values: Record<string, unknown>;
169
+ returning?: string[] | null;
170
+ }
171
+ export interface IsolatedStoreSqlInsertResponseContract {
172
+ rowCount: number;
173
+ rows: Record<string, unknown>[];
174
+ }
175
+ export interface IsolatedStoreSqlBatchInsertRequestContract {
176
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
177
+ tableName: string;
178
+ rows: Record<string, unknown>[];
179
+ returning?: string[] | null;
180
+ }
181
+ export interface IsolatedStoreSqlBatchInsertResponseContract {
182
+ rowCount: number;
183
+ rows: Record<string, unknown>[];
184
+ }
185
+ export type IsolatedStoreSqlImportFormatContract = "csv" | "tsv";
186
+ export interface IsolatedStoreSqlImportRequestContract {
187
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
188
+ tableName: string;
189
+ format: IsolatedStoreSqlImportFormatContract;
190
+ data: string;
191
+ columns?: string[] | null;
192
+ hasHeader?: boolean | null;
193
+ nullString?: string | null;
194
+ }
195
+ export interface IsolatedStoreSqlImportResponseContract {
196
+ imported: true;
197
+ tableName: string;
198
+ format: IsolatedStoreSqlImportFormatContract;
199
+ rowCount: number;
200
+ }
201
+ export interface IsolatedStoreSqlUpdateRequestContract {
202
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
203
+ tableName: string;
204
+ values: Record<string, unknown>;
205
+ filters?: IsolatedStoreSqlFilterContract[] | null;
206
+ allowAll?: boolean | null;
207
+ returning?: string[] | null;
208
+ }
209
+ export interface IsolatedStoreSqlUpdateResponseContract {
210
+ rowCount: number;
211
+ rows: Record<string, unknown>[];
212
+ }
213
+ export interface IsolatedStoreSqlDeleteRequestContract {
214
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
215
+ tableName: string;
216
+ filters?: IsolatedStoreSqlFilterContract[] | null;
217
+ allowAll?: boolean | null;
218
+ }
219
+ export interface IsolatedStoreSqlDeleteResponseContract {
220
+ rowCount: number;
221
+ }
222
+ export interface CreateIsolatedStoreRequestContract {
223
+ alias: string;
224
+ storeType: IsolatedStoreTypeContract;
225
+ engine: IsolatedStoreEngineContract;
226
+ source: IsolatedStoreSourceScopeContract;
227
+ }
228
+ export interface CreateIsolatedStoreResponseContract {
229
+ store: IsolatedStoreContract;
230
+ }
231
+ export interface IsolatedStoreListResponseContract {
232
+ stores: IsolatedStoreContract[];
233
+ }
234
+ export interface IsolatedStoreResponseContract {
235
+ store: IsolatedStoreContract;
236
+ }
237
+ export interface InitIsolatedStoreStageRequestContract {
238
+ stage: IsolatedStoreStageInPathRequired;
239
+ status?: IsolatedStoreStageStatusContract | null;
240
+ bindingConfig?: IsolatedStoreBindingConfigContract | null;
241
+ provisioningMetadata?: Record<string, unknown> | null;
242
+ }
243
+ export interface InitIsolatedStoreStageResponseContract {
244
+ stageInstance: IsolatedStoreStageInstanceContract;
245
+ }
246
+ export interface IsolatedStoreStageListResponseContract {
247
+ stages: IsolatedStoreStageInstanceContract[];
248
+ }
249
+ export interface DeleteIsolatedStoreStageResponseContract {
250
+ deleted: true;
251
+ stage: IsolatedStoreStageInPathRequired;
252
+ }
253
+ export interface CreateIsolatedStoreCheckpointRequestContract {
254
+ label?: string | null;
255
+ snapshotRef?: string | null;
256
+ metadata?: Record<string, unknown> | null;
257
+ }
258
+ export interface CreateIsolatedStoreCheckpointResponseContract {
259
+ revision: IsolatedStoreRevisionContract;
260
+ }
261
+ export interface IsolatedStoreRevisionListResponseContract {
262
+ revisions: IsolatedStoreRevisionContract[];
263
+ }
264
+ export interface RestoreIsolatedStoreRevisionResponseContract {
265
+ restored: true;
266
+ revision: IsolatedStoreRevisionContract;
267
+ stageInstance: IsolatedStoreStageInstanceContract;
268
+ }
269
+ export interface IsolatedStoreNoSqlCollectionContract {
270
+ collectionName: string;
271
+ }
272
+ export interface IsolatedStoreNoSqlListCollectionsResponseContract {
273
+ collections: IsolatedStoreNoSqlCollectionContract[];
274
+ }
275
+ export interface CreateIsolatedStoreNoSqlCollectionRequestContract {
276
+ collectionName: string;
277
+ }
278
+ export interface CreateIsolatedStoreNoSqlCollectionResponseContract {
279
+ collection: IsolatedStoreNoSqlCollectionContract;
280
+ }
281
+ export interface IsolatedStoreNoSqlDocumentResponseContract {
282
+ document: Record<string, unknown>;
283
+ }
284
+ export interface PutIsolatedStoreNoSqlDocumentRequestContract {
285
+ document: Record<string, unknown>;
286
+ }
287
+ export interface PutIsolatedStoreNoSqlDocumentResponseContract {
288
+ document: Record<string, unknown>;
289
+ upserted: boolean;
290
+ }
291
+ export interface DeleteIsolatedStoreNoSqlDocumentResponseContract {
292
+ deleted: boolean;
293
+ }
294
+ export type IsolatedStoreNoSqlFilterOperatorContract = "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "in" | "exists";
295
+ export type IsolatedStoreNoSqlSortDirectionContract = "asc" | "desc";
296
+ export interface IsolatedStoreNoSqlFilterContract {
297
+ field: string;
298
+ operator: IsolatedStoreNoSqlFilterOperatorContract;
299
+ value?: unknown;
300
+ }
301
+ export interface IsolatedStoreNoSqlSortContract {
302
+ field: string;
303
+ direction?: IsolatedStoreNoSqlSortDirectionContract;
304
+ }
305
+ export interface QueryIsolatedStoreNoSqlDocumentsRequestContract {
306
+ collectionName: string;
307
+ filters?: IsolatedStoreNoSqlFilterContract[] | null;
308
+ sort?: IsolatedStoreNoSqlSortContract[] | null;
309
+ limit?: number | null;
310
+ offset?: number | null;
311
+ }
312
+ export interface QueryIsolatedStoreNoSqlDocumentsResponseContract {
313
+ documents: Record<string, unknown>[];
314
+ page: {
315
+ limit: number;
316
+ offset: number;
317
+ rowCount: number;
318
+ };
319
+ }
320
+ export interface CountIsolatedStoreNoSqlDocumentsRequestContract {
321
+ collectionName: string;
322
+ filters?: IsolatedStoreNoSqlFilterContract[] | null;
323
+ }
324
+ export interface CountIsolatedStoreNoSqlDocumentsResponseContract {
325
+ count: number;
326
+ }
327
+ export type IsolatedStoreNoSqlImportModeContract = "insert" | "upsert";
328
+ export interface ImportIsolatedStoreNoSqlDocumentsRequestContract {
329
+ collectionName: string;
330
+ data: string;
331
+ mode?: IsolatedStoreNoSqlImportModeContract | null;
332
+ ordered?: boolean | null;
333
+ }
334
+ export interface ImportIsolatedStoreNoSqlDocumentsResponseContract {
335
+ imported: true;
336
+ collectionName: string;
337
+ mode: IsolatedStoreNoSqlImportModeContract;
338
+ lineCount: number;
339
+ insertedCount: number;
340
+ matchedCount: number;
341
+ modifiedCount: number;
342
+ upsertedCount: number;
343
+ }
344
+ export declare const IsolatedStoreTypeContract: {
345
+ readonly Sql: "sql";
346
+ readonly Nosql: "nosql";
347
+ };
348
+ export declare const IsolatedStoreEngineContract: {
349
+ readonly Postgres: "postgres";
350
+ readonly MongodbAtlas: "mongodb_atlas";
351
+ };
352
+ export declare const IsolatedStoreStatusContract: {
353
+ readonly Active: "active";
354
+ readonly Disabled: "disabled";
355
+ };
356
+ export declare const IsolatedStoreStageStatusContract: {
357
+ readonly Provisioning: "provisioning";
358
+ readonly Ready: "ready";
359
+ readonly Failed: "failed";
360
+ readonly Disabled: "disabled";
361
+ };
362
+ export declare const IsolatedStoreRevisionKindContract: {
363
+ readonly Checkpoint: "checkpoint";
364
+ readonly Promotion: "promotion";
365
+ };
366
+ export declare const IsolatedStoreScopeTypeContract: {
367
+ readonly Org: "org";
368
+ readonly Workspace: "workspace";
369
+ readonly Portal: "portal";
370
+ readonly User: "user";
371
+ readonly Client: "client";
372
+ readonly Block: "block";
373
+ readonly Tracker: "tracker";
374
+ readonly ParentRow: "parent_row";
375
+ readonly ParentTable: "parent_table";
376
+ };
377
+ export declare const IsolatedStoreSqlFilterOperatorContract: {
378
+ readonly Eq: "eq";
379
+ readonly Ne: "ne";
380
+ readonly Gt: "gt";
381
+ readonly Gte: "gte";
382
+ readonly Lt: "lt";
383
+ readonly Lte: "lte";
384
+ readonly Like: "like";
385
+ readonly Ilike: "ilike";
386
+ readonly In: "in";
387
+ readonly IsNull: "is_null";
388
+ readonly IsNotNull: "is_not_null";
389
+ };
390
+ export declare const IsolatedStoreSqlSortDirectionContract: {
391
+ readonly Asc: "asc";
392
+ readonly Desc: "desc";
393
+ };
394
+ export declare const IsolatedStoreSqlImportFormatContract: {
395
+ readonly Csv: "csv";
396
+ readonly Tsv: "tsv";
397
+ };
398
+ export declare const IsolatedStoreNoSqlFilterOperatorContract: {
399
+ readonly Eq: "eq";
400
+ readonly Ne: "ne";
401
+ readonly Gt: "gt";
402
+ readonly Gte: "gte";
403
+ readonly Lt: "lt";
404
+ readonly Lte: "lte";
405
+ readonly In: "in";
406
+ readonly Exists: "exists";
407
+ };
408
+ export declare const IsolatedStoreNoSqlSortDirectionContract: {
409
+ readonly Asc: "asc";
410
+ readonly Desc: "desc";
411
+ };
412
+ export declare const IsolatedStoreNoSqlImportModeContract: {
413
+ readonly Insert: "insert";
414
+ readonly Upsert: "upsert";
415
+ };
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IsolatedStoreNoSqlImportModeContract = exports.IsolatedStoreNoSqlSortDirectionContract = exports.IsolatedStoreNoSqlFilterOperatorContract = exports.IsolatedStoreSqlImportFormatContract = exports.IsolatedStoreSqlSortDirectionContract = exports.IsolatedStoreSqlFilterOperatorContract = exports.IsolatedStoreScopeTypeContract = exports.IsolatedStoreRevisionKindContract = exports.IsolatedStoreStageStatusContract = exports.IsolatedStoreStatusContract = exports.IsolatedStoreEngineContract = exports.IsolatedStoreTypeContract = void 0;
4
+ exports.IsolatedStoreTypeContract = {
5
+ Sql: "sql",
6
+ Nosql: "nosql"
7
+ };
8
+ exports.IsolatedStoreEngineContract = {
9
+ Postgres: "postgres",
10
+ MongodbAtlas: "mongodb_atlas"
11
+ };
12
+ exports.IsolatedStoreStatusContract = {
13
+ Active: "active",
14
+ Disabled: "disabled"
15
+ };
16
+ exports.IsolatedStoreStageStatusContract = {
17
+ Provisioning: "provisioning",
18
+ Ready: "ready",
19
+ Failed: "failed",
20
+ Disabled: "disabled"
21
+ };
22
+ exports.IsolatedStoreRevisionKindContract = {
23
+ Checkpoint: "checkpoint",
24
+ Promotion: "promotion"
25
+ };
26
+ exports.IsolatedStoreScopeTypeContract = {
27
+ Org: "org",
28
+ Workspace: "workspace",
29
+ Portal: "portal",
30
+ User: "user",
31
+ Client: "client",
32
+ Block: "block",
33
+ Tracker: "tracker",
34
+ ParentRow: "parent_row",
35
+ ParentTable: "parent_table"
36
+ };
37
+ exports.IsolatedStoreSqlFilterOperatorContract = {
38
+ Eq: "eq",
39
+ Ne: "ne",
40
+ Gt: "gt",
41
+ Gte: "gte",
42
+ Lt: "lt",
43
+ Lte: "lte",
44
+ Like: "like",
45
+ Ilike: "ilike",
46
+ In: "in",
47
+ IsNull: "is_null",
48
+ IsNotNull: "is_not_null"
49
+ };
50
+ exports.IsolatedStoreSqlSortDirectionContract = {
51
+ Asc: "asc",
52
+ Desc: "desc"
53
+ };
54
+ exports.IsolatedStoreSqlImportFormatContract = {
55
+ Csv: "csv",
56
+ Tsv: "tsv"
57
+ };
58
+ exports.IsolatedStoreNoSqlFilterOperatorContract = {
59
+ Eq: "eq",
60
+ Ne: "ne",
61
+ Gt: "gt",
62
+ Gte: "gte",
63
+ Lt: "lt",
64
+ Lte: "lte",
65
+ In: "in",
66
+ Exists: "exists"
67
+ };
68
+ exports.IsolatedStoreNoSqlSortDirectionContract = {
69
+ Asc: "asc",
70
+ Desc: "desc"
71
+ };
72
+ exports.IsolatedStoreNoSqlImportModeContract = {
73
+ Insert: "insert",
74
+ Upsert: "upsert"
75
+ };