@cargo-ai/api 1.0.2 → 1.0.4
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/README.md +42 -5
- package/build/src/api/ai/index.d.ts +1 -1
- package/build/src/api/ai/index.d.ts.map +1 -1
- package/build/src/api/ai/index.js +1 -1
- package/build/src/api/billing/index.d.ts +1 -1
- package/build/src/api/billing/index.d.ts.map +1 -1
- package/build/src/api/billing/index.js +1 -1
- package/build/src/api/connection/index.d.ts +1 -1
- package/build/src/api/connection/index.d.ts.map +1 -1
- package/build/src/api/connection/index.js +1 -1
- package/build/src/api/expression/index.d.ts +1 -1
- package/build/src/api/expression/index.d.ts.map +1 -1
- package/build/src/api/expression/index.js +1 -1
- package/build/src/api/index.d.ts +3 -3
- package/build/src/api/index.d.ts.map +1 -1
- package/build/src/api/orchestration/index.d.ts +1 -1
- package/build/src/api/orchestration/index.d.ts.map +1 -1
- package/build/src/api/orchestration/index.js +2 -2
- package/build/src/api/revenueOrganization/index.d.ts +1 -1
- package/build/src/api/revenueOrganization/index.d.ts.map +1 -1
- package/build/src/api/revenueOrganization/index.js +1 -1
- package/build/src/api/segmentation/index.d.ts +1 -1
- package/build/src/api/segmentation/index.d.ts.map +1 -1
- package/build/src/api/segmentation/index.js +2 -2
- package/build/src/api/storage/index.d.ts +2 -1
- package/build/src/api/storage/index.d.ts.map +1 -1
- package/build/src/api/storage/index.js +19 -1
- package/build/src/api/systemOfRecordIntegration/index.d.ts +1 -1
- package/build/src/api/systemOfRecordIntegration/index.d.ts.map +1 -1
- package/build/src/api/systemOfRecordIntegration/index.js +1 -1
- package/build/src/api/userManagement/index.d.ts +1 -1
- package/build/src/api/userManagement/index.d.ts.map +1 -1
- package/build/src/api/userManagement/index.js +1 -1
- package/build/src/api/workspaceManagement/index.d.ts +1 -1
- package/build/src/api/workspaceManagement/index.d.ts.map +1 -1
- package/build/src/api/workspaceManagement/index.js +1 -1
- package/build/src/{store → domains}/ai.d.ts +42 -50
- package/build/src/domains/ai.d.ts.map +1 -0
- package/build/src/{store → domains}/ai.js +1 -24
- package/build/src/{store → domains}/billing.d.ts +11 -19
- package/build/src/domains/billing.d.ts.map +1 -0
- package/build/src/{store → domains}/billing.js +0 -9
- package/build/src/{store → domains}/connection.d.ts +21 -33
- package/build/src/domains/connection.d.ts.map +1 -0
- package/build/src/{store → domains}/connection.js +0 -25
- package/build/src/{store → domains}/expression.d.ts +8 -8
- package/build/src/domains/expression.d.ts.map +1 -0
- package/build/src/{store → domains}/expression.js +1 -1
- package/build/src/domains/index.d.ts +12 -0
- package/build/src/domains/index.d.ts.map +1 -0
- package/build/src/domains/index.js +11 -0
- package/build/src/{store → domains}/orchestration.d.ts +46 -58
- package/build/src/domains/orchestration.d.ts.map +1 -0
- package/build/src/{store → domains}/orchestration.js +1 -31
- package/build/src/{store → domains}/revenueOrganization.d.ts +11 -23
- package/build/src/domains/revenueOrganization.d.ts.map +1 -0
- package/build/src/{store → domains}/revenueOrganization.js +0 -23
- package/build/src/{store → domains}/segmentation.d.ts +35 -43
- package/build/src/domains/segmentation.d.ts.map +1 -0
- package/build/src/{store → domains}/segmentation.js +0 -9
- package/build/src/{store → domains}/storage.d.ts +66 -68
- package/build/src/domains/storage.d.ts.map +1 -0
- package/build/src/{store → domains}/storage.js +6 -23
- package/build/src/{store → domains}/systemOfRecordIntegration.d.ts +8 -18
- package/build/src/domains/systemOfRecordIntegration.d.ts.map +1 -0
- package/build/src/{store → domains}/systemOfRecordIntegration.js +0 -16
- package/build/src/{store → domains}/userManagement.d.ts +3 -11
- package/build/src/domains/userManagement.d.ts.map +1 -0
- package/build/src/{store → domains}/userManagement.js +0 -9
- package/build/src/{store → domains}/workspaceManagement.d.ts +12 -32
- package/build/src/domains/workspaceManagement.d.ts.map +1 -0
- package/build/src/{store → domains}/workspaceManagement.js +0 -51
- package/build/src/fetcher/index.d.ts +3 -2
- package/build/src/fetcher/index.d.ts.map +1 -1
- package/build/src/fetcher/index.js +3 -3
- package/build/src/index.d.ts +2 -1
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js +1 -1
- package/build/src/types.d.ts +2 -2
- package/build/src/types.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/build/src/client.d.ts +0 -5
- package/build/src/client.d.ts.map +0 -1
- package/build/src/client.js +0 -24
- package/build/src/store/ai.d.ts.map +0 -1
- package/build/src/store/billing.d.ts.map +0 -1
- package/build/src/store/connection.d.ts.map +0 -1
- package/build/src/store/expression.d.ts.map +0 -1
- package/build/src/store/index.d.ts +0 -14
- package/build/src/store/index.d.ts.map +0 -1
- package/build/src/store/index.js +0 -25
- package/build/src/store/orchestration.d.ts.map +0 -1
- package/build/src/store/revenueOrganization.d.ts.map +0 -1
- package/build/src/store/segmentation.d.ts.map +0 -1
- package/build/src/store/storage.d.ts.map +0 -1
- package/build/src/store/systemOfRecordIntegration.d.ts.map +0 -1
- package/build/src/store/userManagement.d.ts.map +0 -1
- package/build/src/store/workspaceManagement.d.ts.map +0 -1
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import type { StorageTypes } from "cargo-
|
|
1
|
+
import type { StorageTypes } from "@cargo-ai/types";
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
|
-
import type {
|
|
4
|
-
import type { BackendToFrontend, DateToString } from "../types.js";
|
|
3
|
+
import type { ApiType, DateToString } from "../types.js";
|
|
5
4
|
export declare namespace Storage {
|
|
6
|
-
type Column =
|
|
7
|
-
type ColumnType =
|
|
8
|
-
type Run =
|
|
9
|
-
type RunStatus =
|
|
10
|
-
type Dataset =
|
|
11
|
-
type Model =
|
|
12
|
-
type ModelOriginalColumn =
|
|
13
|
-
type ModelComputedColumn =
|
|
14
|
-
type ModelCustomColumn =
|
|
15
|
-
type ModelMetricColumn =
|
|
16
|
-
type ModelLookupColumn =
|
|
17
|
-
type ModelAdditionalColumn =
|
|
18
|
-
type ModelColumn =
|
|
19
|
-
type ModelScheduleCron =
|
|
20
|
-
type ModelScheduleDbt =
|
|
21
|
-
type ModelSchedule =
|
|
22
|
-
type ModelUnification =
|
|
23
|
-
type ModelUnificationColumn =
|
|
24
|
-
type ModelUnificationReference =
|
|
25
|
-
type ModelUnificationReshaper =
|
|
26
|
-
type ModelUnificationType =
|
|
27
|
-
type Relationship =
|
|
28
|
-
type RelationshipRelation =
|
|
29
|
-
type AggregationFunction =
|
|
5
|
+
type Column = ApiType<StorageTypes.Column>;
|
|
6
|
+
type ColumnType = ApiType<StorageTypes.ColumnType>;
|
|
7
|
+
type Run = ApiType<StorageTypes.Run>;
|
|
8
|
+
type RunStatus = ApiType<StorageTypes.RunStatus>;
|
|
9
|
+
type Dataset = ApiType<StorageTypes.Dataset>;
|
|
10
|
+
type Model = ApiType<StorageTypes.Model>;
|
|
11
|
+
type ModelOriginalColumn = ApiType<StorageTypes.ModelOriginalColumn>;
|
|
12
|
+
type ModelComputedColumn = ApiType<StorageTypes.ModelComputedColumn>;
|
|
13
|
+
type ModelCustomColumn = ApiType<StorageTypes.ModelCustomColumn>;
|
|
14
|
+
type ModelMetricColumn = ApiType<StorageTypes.ModelMetricColumn>;
|
|
15
|
+
type ModelLookupColumn = ApiType<StorageTypes.ModelLookupColumn>;
|
|
16
|
+
type ModelAdditionalColumn = ApiType<StorageTypes.ModelAdditionalColumn>;
|
|
17
|
+
type ModelColumn = ApiType<StorageTypes.ModelColumn>;
|
|
18
|
+
type ModelScheduleCron = ApiType<StorageTypes.ModelScheduleCron>;
|
|
19
|
+
type ModelScheduleDbt = ApiType<StorageTypes.ModelScheduleDbt>;
|
|
20
|
+
type ModelSchedule = ApiType<StorageTypes.ModelSchedule>;
|
|
21
|
+
type ModelUnification = ApiType<StorageTypes.ModelUnification>;
|
|
22
|
+
type ModelUnificationColumn = ApiType<StorageTypes.ModelUnificationColumn>;
|
|
23
|
+
type ModelUnificationReference = ApiType<StorageTypes.ModelUnificationReference>;
|
|
24
|
+
type ModelUnificationReshaper = ApiType<StorageTypes.ModelUnificationReshaper>;
|
|
25
|
+
type ModelUnificationType = ApiType<StorageTypes.ModelUnificationType>;
|
|
26
|
+
type Relationship = ApiType<StorageTypes.Relationship>;
|
|
27
|
+
type RelationshipRelation = ApiType<StorageTypes.RelationshipRelation>;
|
|
28
|
+
type AggregationFunction = ApiType<StorageTypes.AggregationFunction>;
|
|
30
29
|
namespace Api {
|
|
31
30
|
type CreateColumnPayload = DateToString<{
|
|
32
31
|
modelUuid: string;
|
|
@@ -170,6 +169,16 @@ export declare namespace Storage {
|
|
|
170
169
|
type ModelColumnExistsBySlugResult = {
|
|
171
170
|
exists: boolean;
|
|
172
171
|
};
|
|
172
|
+
type GetModelDdlResult = {
|
|
173
|
+
ddl: string;
|
|
174
|
+
language: string;
|
|
175
|
+
};
|
|
176
|
+
const zodGetModelDdlErrorReason: z.ZodEnum<{
|
|
177
|
+
modelNotFound: "modelNotFound";
|
|
178
|
+
datasetNotFound: "datasetNotFound";
|
|
179
|
+
clientNotFound: "clientNotFound";
|
|
180
|
+
failedToGetDdl: "failedToGetDdl";
|
|
181
|
+
}>;
|
|
173
182
|
type AllRelationshipsResult = {
|
|
174
183
|
relationships: Relationship[];
|
|
175
184
|
};
|
|
@@ -341,13 +350,13 @@ export declare namespace Storage {
|
|
|
341
350
|
kind: "computed";
|
|
342
351
|
expression: {
|
|
343
352
|
expression: string;
|
|
344
|
-
instructTo: import("cargo-
|
|
345
|
-
kind: import("cargo-
|
|
353
|
+
instructTo: import("@cargo-ai/types").ExpressionTypes.ExpressionInstructTo;
|
|
354
|
+
kind: import("@cargo-ai/types").ExpressionTypes.ExpressionKind;
|
|
346
355
|
fromRecipe: false;
|
|
347
356
|
} | {
|
|
348
357
|
expression: string;
|
|
349
|
-
instructTo: import("cargo-
|
|
350
|
-
kind: import("cargo-
|
|
358
|
+
instructTo: import("@cargo-ai/types").ExpressionTypes.ExpressionInstructTo;
|
|
359
|
+
kind: import("@cargo-ai/types").ExpressionTypes.ExpressionKind;
|
|
351
360
|
fromRecipe: true;
|
|
352
361
|
recipe: {
|
|
353
362
|
uuid: string;
|
|
@@ -378,9 +387,9 @@ export declare namespace Storage {
|
|
|
378
387
|
columnSlug: string;
|
|
379
388
|
};
|
|
380
389
|
filter?: {
|
|
381
|
-
conjonction: import("cargo-
|
|
390
|
+
conjonction: import("@cargo-ai/types").SystemOfRecordIntegrationTypes.FilterConjonction;
|
|
382
391
|
groups: {
|
|
383
|
-
conjonction: import("cargo-
|
|
392
|
+
conjonction: import("@cargo-ai/types").SystemOfRecordIntegrationTypes.FilterConjonction;
|
|
384
393
|
conditions: ({
|
|
385
394
|
kind: "string";
|
|
386
395
|
relatedModelUuid?: string | undefined;
|
|
@@ -422,7 +431,7 @@ export declare namespace Storage {
|
|
|
422
431
|
relatedModelUuid?: string | undefined;
|
|
423
432
|
columnSlug: string;
|
|
424
433
|
propertyName: string;
|
|
425
|
-
operator: "isNull" | "isNotNull";
|
|
434
|
+
operator: "isNull" | "isNotNull" | "isEmpty" | "isNotEmpty";
|
|
426
435
|
} | {
|
|
427
436
|
kind: "objectProperty";
|
|
428
437
|
relatedModelUuid?: string | undefined;
|
|
@@ -446,7 +455,7 @@ export declare namespace Storage {
|
|
|
446
455
|
relatedModelUuid?: string | undefined;
|
|
447
456
|
columnSlug: string;
|
|
448
457
|
operator: "matchConditions";
|
|
449
|
-
conjonction: import("cargo-
|
|
458
|
+
conjonction: import("@cargo-ai/types").SystemOfRecordIntegrationTypes.FilterConjonction;
|
|
450
459
|
propertyConditions: ({
|
|
451
460
|
kind: "objectProperty";
|
|
452
461
|
relatedModelUuid?: string | undefined;
|
|
@@ -459,7 +468,7 @@ export declare namespace Storage {
|
|
|
459
468
|
relatedModelUuid?: string | undefined;
|
|
460
469
|
columnSlug: string;
|
|
461
470
|
propertyName: string;
|
|
462
|
-
operator: "isNull" | "isNotNull";
|
|
471
|
+
operator: "isNull" | "isNotNull" | "isEmpty" | "isNotEmpty";
|
|
463
472
|
} | {
|
|
464
473
|
kind: "objectProperty";
|
|
465
474
|
relatedModelUuid?: string | undefined;
|
|
@@ -484,7 +493,7 @@ export declare namespace Storage {
|
|
|
484
493
|
relatedModelUuid?: string | undefined;
|
|
485
494
|
columnSlug: string;
|
|
486
495
|
operator: "matchConditions";
|
|
487
|
-
conjonction: import("cargo-
|
|
496
|
+
conjonction: import("@cargo-ai/types").SystemOfRecordIntegrationTypes.FilterConjonction;
|
|
488
497
|
propertyConditions: ({
|
|
489
498
|
kind: "objectProperty";
|
|
490
499
|
relatedModelUuid?: string | undefined;
|
|
@@ -497,7 +506,7 @@ export declare namespace Storage {
|
|
|
497
506
|
relatedModelUuid?: string | undefined;
|
|
498
507
|
columnSlug: string;
|
|
499
508
|
propertyName: string;
|
|
500
|
-
operator: "isNull" | "isNotNull";
|
|
509
|
+
operator: "isNull" | "isNotNull" | "isEmpty" | "isNotEmpty";
|
|
501
510
|
} | {
|
|
502
511
|
kind: "objectProperty";
|
|
503
512
|
relatedModelUuid?: string | undefined;
|
|
@@ -558,7 +567,7 @@ export declare namespace Storage {
|
|
|
558
567
|
value: number;
|
|
559
568
|
unit: "day";
|
|
560
569
|
};
|
|
561
|
-
conjonction: import("cargo-
|
|
570
|
+
conjonction: import("@cargo-ai/types").SystemOfRecordIntegrationTypes.FilterConjonction;
|
|
562
571
|
conditions: ({
|
|
563
572
|
kind: "string";
|
|
564
573
|
relatedModelUuid?: string | undefined;
|
|
@@ -603,7 +612,7 @@ export declare namespace Storage {
|
|
|
603
612
|
relatedModelUuid?: string | undefined;
|
|
604
613
|
columnSlug: string;
|
|
605
614
|
operator: "matchConditions";
|
|
606
|
-
conjonction: import("cargo-
|
|
615
|
+
conjonction: import("@cargo-ai/types").SystemOfRecordIntegrationTypes.FilterConjonction;
|
|
607
616
|
propertyConditions: ({
|
|
608
617
|
kind: "objectProperty";
|
|
609
618
|
relatedModelUuid?: string | undefined;
|
|
@@ -616,7 +625,7 @@ export declare namespace Storage {
|
|
|
616
625
|
relatedModelUuid?: string | undefined;
|
|
617
626
|
columnSlug: string;
|
|
618
627
|
propertyName: string;
|
|
619
|
-
operator: "isNull" | "isNotNull";
|
|
628
|
+
operator: "isNull" | "isNotNull" | "isEmpty" | "isNotEmpty";
|
|
620
629
|
} | {
|
|
621
630
|
kind: "objectProperty";
|
|
622
631
|
relatedModelUuid?: string | undefined;
|
|
@@ -641,7 +650,7 @@ export declare namespace Storage {
|
|
|
641
650
|
relatedModelUuid?: string | undefined;
|
|
642
651
|
columnSlug: string;
|
|
643
652
|
operator: "matchConditions";
|
|
644
|
-
conjonction: import("cargo-
|
|
653
|
+
conjonction: import("@cargo-ai/types").SystemOfRecordIntegrationTypes.FilterConjonction;
|
|
645
654
|
propertyConditions: ({
|
|
646
655
|
kind: "objectProperty";
|
|
647
656
|
relatedModelUuid?: string | undefined;
|
|
@@ -654,7 +663,7 @@ export declare namespace Storage {
|
|
|
654
663
|
relatedModelUuid?: string | undefined;
|
|
655
664
|
columnSlug: string;
|
|
656
665
|
propertyName: string;
|
|
657
|
-
operator: "isNull" | "isNotNull";
|
|
666
|
+
operator: "isNull" | "isNotNull" | "isEmpty" | "isNotEmpty";
|
|
658
667
|
} | {
|
|
659
668
|
kind: "objectProperty";
|
|
660
669
|
relatedModelUuid?: string | undefined;
|
|
@@ -701,7 +710,7 @@ export declare namespace Storage {
|
|
|
701
710
|
} | {
|
|
702
711
|
kind: "enrollment";
|
|
703
712
|
workflowUuid: string;
|
|
704
|
-
activityKind: import("cargo-
|
|
713
|
+
activityKind: import("@cargo-ai/types").SystemOfRecordIntegrationTypes.FilterConditionEnrollmentActivityKind;
|
|
705
714
|
nodeSlug?: string | undefined;
|
|
706
715
|
frequency: {
|
|
707
716
|
operator: "not";
|
|
@@ -735,9 +744,9 @@ export declare namespace Storage {
|
|
|
735
744
|
};
|
|
736
745
|
extractColumnSlug: string;
|
|
737
746
|
filter?: {
|
|
738
|
-
conjonction: import("cargo-
|
|
747
|
+
conjonction: import("@cargo-ai/types").SystemOfRecordIntegrationTypes.FilterConjonction;
|
|
739
748
|
groups: {
|
|
740
|
-
conjonction: import("cargo-
|
|
749
|
+
conjonction: import("@cargo-ai/types").SystemOfRecordIntegrationTypes.FilterConjonction;
|
|
741
750
|
conditions: ({
|
|
742
751
|
kind: "string";
|
|
743
752
|
relatedModelUuid?: string | undefined;
|
|
@@ -779,7 +788,7 @@ export declare namespace Storage {
|
|
|
779
788
|
relatedModelUuid?: string | undefined;
|
|
780
789
|
columnSlug: string;
|
|
781
790
|
propertyName: string;
|
|
782
|
-
operator: "isNull" | "isNotNull";
|
|
791
|
+
operator: "isNull" | "isNotNull" | "isEmpty" | "isNotEmpty";
|
|
783
792
|
} | {
|
|
784
793
|
kind: "objectProperty";
|
|
785
794
|
relatedModelUuid?: string | undefined;
|
|
@@ -803,7 +812,7 @@ export declare namespace Storage {
|
|
|
803
812
|
relatedModelUuid?: string | undefined;
|
|
804
813
|
columnSlug: string;
|
|
805
814
|
operator: "matchConditions";
|
|
806
|
-
conjonction: import("cargo-
|
|
815
|
+
conjonction: import("@cargo-ai/types").SystemOfRecordIntegrationTypes.FilterConjonction;
|
|
807
816
|
propertyConditions: ({
|
|
808
817
|
kind: "objectProperty";
|
|
809
818
|
relatedModelUuid?: string | undefined;
|
|
@@ -816,7 +825,7 @@ export declare namespace Storage {
|
|
|
816
825
|
relatedModelUuid?: string | undefined;
|
|
817
826
|
columnSlug: string;
|
|
818
827
|
propertyName: string;
|
|
819
|
-
operator: "isNull" | "isNotNull";
|
|
828
|
+
operator: "isNull" | "isNotNull" | "isEmpty" | "isNotEmpty";
|
|
820
829
|
} | {
|
|
821
830
|
kind: "objectProperty";
|
|
822
831
|
relatedModelUuid?: string | undefined;
|
|
@@ -841,7 +850,7 @@ export declare namespace Storage {
|
|
|
841
850
|
relatedModelUuid?: string | undefined;
|
|
842
851
|
columnSlug: string;
|
|
843
852
|
operator: "matchConditions";
|
|
844
|
-
conjonction: import("cargo-
|
|
853
|
+
conjonction: import("@cargo-ai/types").SystemOfRecordIntegrationTypes.FilterConjonction;
|
|
845
854
|
propertyConditions: ({
|
|
846
855
|
kind: "objectProperty";
|
|
847
856
|
relatedModelUuid?: string | undefined;
|
|
@@ -854,7 +863,7 @@ export declare namespace Storage {
|
|
|
854
863
|
relatedModelUuid?: string | undefined;
|
|
855
864
|
columnSlug: string;
|
|
856
865
|
propertyName: string;
|
|
857
|
-
operator: "isNull" | "isNotNull";
|
|
866
|
+
operator: "isNull" | "isNotNull" | "isEmpty" | "isNotEmpty";
|
|
858
867
|
} | {
|
|
859
868
|
kind: "objectProperty";
|
|
860
869
|
relatedModelUuid?: string | undefined;
|
|
@@ -915,7 +924,7 @@ export declare namespace Storage {
|
|
|
915
924
|
value: number;
|
|
916
925
|
unit: "day";
|
|
917
926
|
};
|
|
918
|
-
conjonction: import("cargo-
|
|
927
|
+
conjonction: import("@cargo-ai/types").SystemOfRecordIntegrationTypes.FilterConjonction;
|
|
919
928
|
conditions: ({
|
|
920
929
|
kind: "string";
|
|
921
930
|
relatedModelUuid?: string | undefined;
|
|
@@ -960,7 +969,7 @@ export declare namespace Storage {
|
|
|
960
969
|
relatedModelUuid?: string | undefined;
|
|
961
970
|
columnSlug: string;
|
|
962
971
|
operator: "matchConditions";
|
|
963
|
-
conjonction: import("cargo-
|
|
972
|
+
conjonction: import("@cargo-ai/types").SystemOfRecordIntegrationTypes.FilterConjonction;
|
|
964
973
|
propertyConditions: ({
|
|
965
974
|
kind: "objectProperty";
|
|
966
975
|
relatedModelUuid?: string | undefined;
|
|
@@ -973,7 +982,7 @@ export declare namespace Storage {
|
|
|
973
982
|
relatedModelUuid?: string | undefined;
|
|
974
983
|
columnSlug: string;
|
|
975
984
|
propertyName: string;
|
|
976
|
-
operator: "isNull" | "isNotNull";
|
|
985
|
+
operator: "isNull" | "isNotNull" | "isEmpty" | "isNotEmpty";
|
|
977
986
|
} | {
|
|
978
987
|
kind: "objectProperty";
|
|
979
988
|
relatedModelUuid?: string | undefined;
|
|
@@ -998,7 +1007,7 @@ export declare namespace Storage {
|
|
|
998
1007
|
relatedModelUuid?: string | undefined;
|
|
999
1008
|
columnSlug: string;
|
|
1000
1009
|
operator: "matchConditions";
|
|
1001
|
-
conjonction: import("cargo-
|
|
1010
|
+
conjonction: import("@cargo-ai/types").SystemOfRecordIntegrationTypes.FilterConjonction;
|
|
1002
1011
|
propertyConditions: ({
|
|
1003
1012
|
kind: "objectProperty";
|
|
1004
1013
|
relatedModelUuid?: string | undefined;
|
|
@@ -1011,7 +1020,7 @@ export declare namespace Storage {
|
|
|
1011
1020
|
relatedModelUuid?: string | undefined;
|
|
1012
1021
|
columnSlug: string;
|
|
1013
1022
|
propertyName: string;
|
|
1014
|
-
operator: "isNull" | "isNotNull";
|
|
1023
|
+
operator: "isNull" | "isNotNull" | "isEmpty" | "isNotEmpty";
|
|
1015
1024
|
} | {
|
|
1016
1025
|
kind: "objectProperty";
|
|
1017
1026
|
relatedModelUuid?: string | undefined;
|
|
@@ -1058,7 +1067,7 @@ export declare namespace Storage {
|
|
|
1058
1067
|
} | {
|
|
1059
1068
|
kind: "enrollment";
|
|
1060
1069
|
workflowUuid: string;
|
|
1061
|
-
activityKind: import("cargo-
|
|
1070
|
+
activityKind: import("@cargo-ai/types").SystemOfRecordIntegrationTypes.FilterConditionEnrollmentActivityKind;
|
|
1062
1071
|
nodeSlug?: string | undefined;
|
|
1063
1072
|
frequency: {
|
|
1064
1073
|
operator: "not";
|
|
@@ -1082,15 +1091,4 @@ export declare namespace Storage {
|
|
|
1082
1091
|
}];
|
|
1083
1092
|
};
|
|
1084
1093
|
}
|
|
1085
|
-
export interface StorageSlice {
|
|
1086
|
-
datasets: Storage.Dataset[];
|
|
1087
|
-
setDatasets: (datasets: Storage.Dataset[]) => void;
|
|
1088
|
-
models: Storage.Model[];
|
|
1089
|
-
setModels: (datasets: Storage.Model[]) => void;
|
|
1090
|
-
relationships: Storage.Relationship[];
|
|
1091
|
-
setRelationships: (relationships: Storage.Relationship[]) => void;
|
|
1092
|
-
}
|
|
1093
|
-
export declare const createStorageSlice: StateCreator<StorageSlice, [
|
|
1094
|
-
], [
|
|
1095
|
-
], StorageSlice>;
|
|
1096
1094
|
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/domains/storage.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGzD,yBAAiB,OAAO,CAAC;IACvB,KAAY,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IAClD,KAAY,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IAC1D,KAAY,GAAG,GAAG,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAC5C,KAAY,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IACxD,KAAY,OAAO,GAAG,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACpD,KAAY,KAAK,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAChD,KAAY,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC;IAC5E,KAAY,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC;IAC5E,KAAY,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;IACxE,KAAY,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;IACxE,KAAY,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;IACxE,KAAY,qBAAqB,GAC/B,OAAO,CAAC,YAAY,CAA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
|
|
|
72
72
|
"integrationNotFound",
|
|
73
73
|
"invalidConfig",
|
|
74
74
|
]);
|
|
75
|
+
Api.zodGetModelDdlErrorReason = z.enum([
|
|
76
|
+
"modelNotFound",
|
|
77
|
+
"datasetNotFound",
|
|
78
|
+
"clientNotFound",
|
|
79
|
+
"failedToGetDdl",
|
|
80
|
+
]);
|
|
75
81
|
Api.zodSetRelationshipsErrorReason = z.enum([
|
|
76
82
|
"datasetNotFound",
|
|
77
83
|
"datasetNotCompatible",
|
|
@@ -149,26 +155,3 @@ export var Storage;
|
|
|
149
155
|
autocomplete: (workspaceUuid, payload) => ["autocomplete", workspaceUuid, payload],
|
|
150
156
|
};
|
|
151
157
|
})(Storage || (Storage = {}));
|
|
152
|
-
export const createStorageSlice = (set) => ({
|
|
153
|
-
datasets: [],
|
|
154
|
-
setDatasets: (datasets) => {
|
|
155
|
-
set((state) => ({
|
|
156
|
-
...state,
|
|
157
|
-
datasets,
|
|
158
|
-
}));
|
|
159
|
-
},
|
|
160
|
-
models: [],
|
|
161
|
-
setModels: (models) => {
|
|
162
|
-
set((state) => ({
|
|
163
|
-
...state,
|
|
164
|
-
models,
|
|
165
|
-
}));
|
|
166
|
-
},
|
|
167
|
-
relationships: [],
|
|
168
|
-
setRelationships: (relationships) => {
|
|
169
|
-
set((state) => ({
|
|
170
|
-
...state,
|
|
171
|
-
relationships,
|
|
172
|
-
}));
|
|
173
|
-
},
|
|
174
|
-
});
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import type { SystemOfRecordIntegrationTypes } from "cargo-
|
|
1
|
+
import type { SystemOfRecordIntegrationTypes } from "@cargo-ai/types";
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
|
-
import type {
|
|
4
|
-
import type { BackendToFrontend, DateToString } from "../types.js";
|
|
3
|
+
import type { ApiType, DateToString } from "../types.js";
|
|
5
4
|
export declare namespace SystemOfRecordIntegration {
|
|
6
|
-
type Column =
|
|
7
|
-
type SystemOfRecord =
|
|
8
|
-
type Client =
|
|
9
|
-
type Log =
|
|
10
|
-
type LogStatus =
|
|
11
|
-
type Usage =
|
|
5
|
+
type Column = ApiType<SystemOfRecordIntegrationTypes.Column>;
|
|
6
|
+
type SystemOfRecord = ApiType<SystemOfRecordIntegrationTypes.SystemOfRecord>;
|
|
7
|
+
type Client = ApiType<SystemOfRecordIntegrationTypes.ClientManifest>;
|
|
8
|
+
type Log = ApiType<SystemOfRecordIntegrationTypes.Log>;
|
|
9
|
+
type LogStatus = ApiType<SystemOfRecordIntegrationTypes.LogStatus>;
|
|
10
|
+
type Usage = ApiType<SystemOfRecordIntegrationTypes.Usage>;
|
|
12
11
|
namespace Api {
|
|
13
12
|
type CreateSystemOfRecordPayload = DateToString<{
|
|
14
13
|
kind: string;
|
|
@@ -110,13 +109,4 @@ export declare namespace SystemOfRecordIntegration {
|
|
|
110
109
|
}];
|
|
111
110
|
};
|
|
112
111
|
}
|
|
113
|
-
export interface SystemOfRecordIntegrationSlice {
|
|
114
|
-
systemOfRecords: SystemOfRecordIntegration.SystemOfRecord[];
|
|
115
|
-
setSystemOfRecords: (systemOfRecords: SystemOfRecordIntegration.SystemOfRecord[]) => void;
|
|
116
|
-
clients: SystemOfRecordIntegration.Client[];
|
|
117
|
-
setClients: (clients: SystemOfRecordIntegration.Client[]) => void;
|
|
118
|
-
}
|
|
119
|
-
export declare const createSystemOfRecordIntegrationSlice: StateCreator<SystemOfRecordIntegrationSlice, [
|
|
120
|
-
], [
|
|
121
|
-
], SystemOfRecordIntegrationSlice>;
|
|
122
112
|
//# sourceMappingURL=systemOfRecordIntegration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systemOfRecordIntegration.d.ts","sourceRoot":"","sources":["../../../src/domains/systemOfRecordIntegration.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,O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AM,CAAC;SACd,CAAC;KACH;IAEM,MAAM,kBAAkB;6BACR,MAAM;6BACN,MAAM,QAAQ,MAAM;KAE1C,CAAC;IAEK,MAAM,WAAW;;yBAEL,MAAM;iCACE,MAAM;KAChC,CAAC;IAEK,MAAM,QAAQ;kCACO,MAAM;mCACL,MAAM,WAAW,IAAI,eAAe;;;;;;oCAEnC,MAAM,WAAW,IAAI,qBAAqB;kBAjC9D,MAAM;gBACR,MAAM;;KAkCb,CAAC;CACH"}
|
|
@@ -35,19 +35,3 @@ export var SystemOfRecordIntegration;
|
|
|
35
35
|
getMetrics: (workspaceUuid, payload) => [...SystemOfRecordIntegration.logsKeys.all(workspaceUuid), "getMetrics", payload],
|
|
36
36
|
};
|
|
37
37
|
})(SystemOfRecordIntegration || (SystemOfRecordIntegration = {}));
|
|
38
|
-
export const createSystemOfRecordIntegrationSlice = (set) => ({
|
|
39
|
-
systemOfRecords: [],
|
|
40
|
-
setSystemOfRecords: (systemOfRecords) => {
|
|
41
|
-
set((state) => ({
|
|
42
|
-
...state,
|
|
43
|
-
systemOfRecords,
|
|
44
|
-
}));
|
|
45
|
-
},
|
|
46
|
-
clients: [],
|
|
47
|
-
setClients: (clients) => {
|
|
48
|
-
set((state) => ({
|
|
49
|
-
...state,
|
|
50
|
-
clients,
|
|
51
|
-
}));
|
|
52
|
-
},
|
|
53
|
-
});
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { UserManagementTypes } from "cargo-
|
|
1
|
+
import type { UserManagementTypes } from "@cargo-ai/types";
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
|
-
import type {
|
|
4
|
-
import type { BackendToFrontend, DateToString } from "../types.js";
|
|
3
|
+
import type { ApiType, DateToString } from "../types.js";
|
|
5
4
|
export declare namespace UserManagement {
|
|
6
|
-
type User =
|
|
5
|
+
type User = ApiType<UserManagementTypes.User>;
|
|
7
6
|
namespace Api {
|
|
8
7
|
type GetCurrentUserResult = {
|
|
9
8
|
user: User;
|
|
@@ -24,11 +23,4 @@ export declare namespace UserManagement {
|
|
|
24
23
|
getCurrent: () => readonly ["users", "getCurrent"];
|
|
25
24
|
};
|
|
26
25
|
}
|
|
27
|
-
export interface UserManagementSlice {
|
|
28
|
-
currentUser?: UserManagement.User;
|
|
29
|
-
setCurrentUser: (user?: UserManagement.User) => void;
|
|
30
|
-
}
|
|
31
|
-
export declare const createUserManagementSlice: StateCreator<UserManagementSlice, [
|
|
32
|
-
], [
|
|
33
|
-
], UserManagementSlice>;
|
|
34
26
|
//# sourceMappingURL=userManagement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userManagement.d.ts","sourceRoot":"","sources":["../../../src/domains/userManagement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGzD,yBAAiB,cAAc,CAAC;IAC9B,KAAY,IAAI,GAAG,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAGrD,UAAiB,GAAG,CAAC;QACnB,KAAY,oBAAoB,GAAG;YACjC,IAAI,EAAE,IAAI,CAAC;SACZ,CAAC;QAEF,KAAY,wBAAwB,GAAG,YAAY,CAAC;YAClD,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,oBAAoB,CAAC;SAC7D,CAAC,CAAC;QAEH,KAAY,uBAAuB,GAAG;YACpC,IAAI,EAAE,IAAI,CAAC;SACZ,CAAC;QAEK,MAAM,wBAAwB;;UAA2B,CAAC;KAClE;IAEM,MAAM,QAAQ;;KAEpB,CAAC;CACH"}
|
|
@@ -11,12 +11,3 @@ export var UserManagement;
|
|
|
11
11
|
getCurrent: () => ["users", "getCurrent"],
|
|
12
12
|
};
|
|
13
13
|
})(UserManagement || (UserManagement = {}));
|
|
14
|
-
export const createUserManagementSlice = (set) => ({
|
|
15
|
-
currentUser: undefined,
|
|
16
|
-
setCurrentUser(currentUser) {
|
|
17
|
-
set((state) => ({
|
|
18
|
-
...state,
|
|
19
|
-
currentUser,
|
|
20
|
-
}));
|
|
21
|
-
},
|
|
22
|
-
});
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import type { WorkspaceManagementTypes } from "cargo-
|
|
1
|
+
import type { WorkspaceManagementTypes } from "@cargo-ai/types";
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
|
-
import type {
|
|
4
|
-
import type { BackendToFrontend, DateToString } from "../types.js";
|
|
3
|
+
import type { ApiType, DateToString } from "../types.js";
|
|
5
4
|
export declare namespace WorkspaceManagement {
|
|
6
|
-
type Workspace =
|
|
7
|
-
type WorkspaceSync =
|
|
8
|
-
type Role =
|
|
9
|
-
type Permission =
|
|
10
|
-
type Action =
|
|
11
|
-
type PermissionLevel =
|
|
12
|
-
type Token =
|
|
13
|
-
type User =
|
|
14
|
-
type Folder =
|
|
15
|
-
type FolderKind =
|
|
5
|
+
type Workspace = ApiType<WorkspaceManagementTypes.Workspace>;
|
|
6
|
+
type WorkspaceSync = ApiType<WorkspaceManagementTypes.WorkspaceSync>;
|
|
7
|
+
type Role = ApiType<WorkspaceManagementTypes.Role>;
|
|
8
|
+
type Permission = ApiType<WorkspaceManagementTypes.Permission>;
|
|
9
|
+
type Action = ApiType<WorkspaceManagementTypes.Action>;
|
|
10
|
+
type PermissionLevel = ApiType<WorkspaceManagementTypes.PermissionLevel>;
|
|
11
|
+
type Token = ApiType<WorkspaceManagementTypes.Token>;
|
|
12
|
+
type User = ApiType<WorkspaceManagementTypes.User>;
|
|
13
|
+
type Folder = ApiType<WorkspaceManagementTypes.Folder>;
|
|
14
|
+
type FolderKind = ApiType<WorkspaceManagementTypes.FolderKind>;
|
|
16
15
|
namespace Api {
|
|
17
16
|
type AllWorkspacesPayload = DateToString<{
|
|
18
17
|
refresh: boolean;
|
|
@@ -193,23 +192,4 @@ export declare namespace WorkspaceManagement {
|
|
|
193
192
|
all: (workspaceUuid: string) => readonly ["folders", string];
|
|
194
193
|
};
|
|
195
194
|
}
|
|
196
|
-
export interface WorkspaceManagementSlice {
|
|
197
|
-
workspace?: WorkspaceManagement.Workspace;
|
|
198
|
-
users: WorkspaceManagement.User[];
|
|
199
|
-
tokens: WorkspaceManagement.Token[];
|
|
200
|
-
roles: WorkspaceManagement.Role[];
|
|
201
|
-
currentRole?: WorkspaceManagement.Role;
|
|
202
|
-
currentPermissions: WorkspaceManagement.Permission[];
|
|
203
|
-
setWorkspace: (workspace?: WorkspaceManagement.Workspace) => void;
|
|
204
|
-
setUsers: (users: WorkspaceManagement.User[]) => void;
|
|
205
|
-
setTokens: (tokens: WorkspaceManagement.Token[]) => void;
|
|
206
|
-
setRoles: (roles: WorkspaceManagement.Role[]) => void;
|
|
207
|
-
folders: WorkspaceManagement.Folder[];
|
|
208
|
-
setFolders: (folders: WorkspaceManagement.Folder[]) => void;
|
|
209
|
-
setCurrentRole: (role?: WorkspaceManagement.Role) => void;
|
|
210
|
-
setCurrentPermissions: (permissions: WorkspaceManagement.Permission[]) => void;
|
|
211
|
-
}
|
|
212
|
-
export declare const createWorkspaceManagementSlice: StateCreator<WorkspaceManagementSlice, [
|
|
213
|
-
], [
|
|
214
|
-
], WorkspaceManagementSlice>;
|
|
215
195
|
//# sourceMappingURL=workspaceManagement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceManagement.d.ts","sourceRoot":"","sources":["../../../src/domains/workspaceManagement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,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;IAEK,MAAM,QAAQ;6BACE,MAAM;KAC5B,CAAC;IAEK,MAAM,WAAW;6BACD,MAAM;KAC5B,CAAC;CACH"}
|
|
@@ -50,54 +50,3 @@ export var WorkspaceManagement;
|
|
|
50
50
|
all: (workspaceUuid) => ["folders", workspaceUuid],
|
|
51
51
|
};
|
|
52
52
|
})(WorkspaceManagement || (WorkspaceManagement = {}));
|
|
53
|
-
export const createWorkspaceManagementSlice = (set) => ({
|
|
54
|
-
workspace: undefined,
|
|
55
|
-
currentRole: undefined,
|
|
56
|
-
currentPermissions: [],
|
|
57
|
-
users: [],
|
|
58
|
-
tokens: [],
|
|
59
|
-
roles: [],
|
|
60
|
-
setWorkspace: (workspace) => {
|
|
61
|
-
set((state) => ({
|
|
62
|
-
...state,
|
|
63
|
-
workspace,
|
|
64
|
-
}));
|
|
65
|
-
},
|
|
66
|
-
setUsers(users) {
|
|
67
|
-
set((state) => ({
|
|
68
|
-
...state,
|
|
69
|
-
users,
|
|
70
|
-
}));
|
|
71
|
-
},
|
|
72
|
-
setTokens(tokens) {
|
|
73
|
-
set((state) => ({
|
|
74
|
-
...state,
|
|
75
|
-
tokens,
|
|
76
|
-
}));
|
|
77
|
-
},
|
|
78
|
-
setRoles: (roles) => {
|
|
79
|
-
set((state) => ({
|
|
80
|
-
...state,
|
|
81
|
-
roles,
|
|
82
|
-
}));
|
|
83
|
-
},
|
|
84
|
-
folders: [],
|
|
85
|
-
setFolders: (folders) => {
|
|
86
|
-
set((state) => ({
|
|
87
|
-
...state,
|
|
88
|
-
folders,
|
|
89
|
-
}));
|
|
90
|
-
},
|
|
91
|
-
setCurrentRole(role) {
|
|
92
|
-
set((state) => ({
|
|
93
|
-
...state,
|
|
94
|
-
currentRole: role,
|
|
95
|
-
}));
|
|
96
|
-
},
|
|
97
|
-
setCurrentPermissions(permissions) {
|
|
98
|
-
set((state) => ({
|
|
99
|
-
...state,
|
|
100
|
-
currentPermissions: permissions,
|
|
101
|
-
}));
|
|
102
|
-
},
|
|
103
|
-
});
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ApiType } from "../types.js";
|
|
3
3
|
import type { FetcherRequest } from "./fetcher.js";
|
|
4
4
|
export { determineIfIsFetcherError, type FetcherError, FetcherRequestErrorClass, getErrorWithReasonErrorMessage, } from "./error.js";
|
|
5
5
|
export type FetcherDependencies = {
|
|
6
6
|
baseUrl: string;
|
|
7
7
|
workspaceUuid?: string;
|
|
8
8
|
getAccessToken?: (refresh?: boolean) => Promise<string>;
|
|
9
|
+
accessToken?: string;
|
|
9
10
|
};
|
|
10
11
|
export type FetcherUploadFilePayload = {
|
|
11
12
|
formData: FormData;
|
|
@@ -28,7 +29,7 @@ export type Fetcher = {
|
|
|
28
29
|
}): Promise<TResult>;
|
|
29
30
|
fetch<TResult>(request: FetcherRequest & {
|
|
30
31
|
replaceNullByUndefined?: true | undefined;
|
|
31
|
-
}): Promise<
|
|
32
|
+
}): Promise<ApiType<TResult>>;
|
|
32
33
|
};
|
|
33
34
|
export declare const buildFetcher: (dependencies: FetcherDependencies) => Fetcher;
|
|
34
35
|
//# sourceMappingURL=index.d.ts.map
|