@cargo-ai/api 1.0.1
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/build/src/api/ai/index.d.ts +78 -0
- package/build/src/api/ai/index.d.ts.map +1 -0
- package/build/src/api/ai/index.js +530 -0
- package/build/src/api/billing/index.d.ts +25 -0
- package/build/src/api/billing/index.d.ts.map +1 -0
- package/build/src/api/billing/index.js +155 -0
- package/build/src/api/connection/index.d.ts +28 -0
- package/build/src/api/connection/index.d.ts.map +1 -0
- package/build/src/api/connection/index.js +172 -0
- package/build/src/api/expression/index.d.ts +26 -0
- package/build/src/api/expression/index.d.ts.map +1 -0
- package/build/src/api/expression/index.js +115 -0
- package/build/src/api/index.d.ts +72 -0
- package/build/src/api/index.d.ts.map +1 -0
- package/build/src/api/index.js +51 -0
- package/build/src/api/orchestration/index.d.ts +66 -0
- package/build/src/api/orchestration/index.d.ts.map +1 -0
- package/build/src/api/orchestration/index.js +625 -0
- package/build/src/api/revenueOrganization/index.d.ts +37 -0
- package/build/src/api/revenueOrganization/index.d.ts.map +1 -0
- package/build/src/api/revenueOrganization/index.js +241 -0
- package/build/src/api/segmentation/index.d.ts +28 -0
- package/build/src/api/segmentation/index.d.ts.map +1 -0
- package/build/src/api/segmentation/index.js +188 -0
- package/build/src/api/storage/index.d.ts +45 -0
- package/build/src/api/storage/index.d.ts.map +1 -0
- package/build/src/api/storage/index.js +402 -0
- package/build/src/api/systemOfRecordIntegration/index.d.ts +29 -0
- package/build/src/api/systemOfRecordIntegration/index.d.ts.map +1 -0
- package/build/src/api/systemOfRecordIntegration/index.js +151 -0
- package/build/src/api/userManagement/index.d.ts +14 -0
- package/build/src/api/userManagement/index.d.ts.map +1 -0
- package/build/src/api/userManagement/index.js +33 -0
- package/build/src/api/workspaceManagement/index.d.ts +43 -0
- package/build/src/api/workspaceManagement/index.d.ts.map +1 -0
- package/build/src/api/workspaceManagement/index.js +283 -0
- package/build/src/client.d.ts +5 -0
- package/build/src/client.d.ts.map +1 -0
- package/build/src/client.js +24 -0
- package/build/src/fetcher/client.d.ts +7 -0
- package/build/src/fetcher/client.d.ts.map +1 -0
- package/build/src/fetcher/client.js +9 -0
- package/build/src/fetcher/error.d.ts +101 -0
- package/build/src/fetcher/error.d.ts.map +1 -0
- package/build/src/fetcher/error.js +184 -0
- package/build/src/fetcher/fetcher.d.ts +12 -0
- package/build/src/fetcher/fetcher.d.ts.map +1 -0
- package/build/src/fetcher/fetcher.js +1 -0
- package/build/src/fetcher/index.d.ts +34 -0
- package/build/src/fetcher/index.d.ts.map +1 -0
- package/build/src/fetcher/index.js +78 -0
- package/build/src/index.d.ts +5 -0
- package/build/src/index.d.ts.map +1 -0
- package/build/src/index.js +3 -0
- package/build/src/store/ai.d.ts +481 -0
- package/build/src/store/ai.d.ts.map +1 -0
- package/build/src/store/ai.js +112 -0
- package/build/src/store/billing.d.ts +140 -0
- package/build/src/store/billing.d.ts.map +1 -0
- package/build/src/store/billing.js +62 -0
- package/build/src/store/connection.d.ts +183 -0
- package/build/src/store/connection.d.ts.map +1 -0
- package/build/src/store/connection.js +88 -0
- package/build/src/store/expression.d.ts +112 -0
- package/build/src/store/expression.d.ts.map +1 -0
- package/build/src/store/expression.js +27 -0
- package/build/src/store/index.d.ts +14 -0
- package/build/src/store/index.d.ts.map +1 -0
- package/build/src/store/index.js +25 -0
- package/build/src/store/orchestration.d.ts +942 -0
- package/build/src/store/orchestration.d.ts.map +1 -0
- package/build/src/store/orchestration.js +217 -0
- package/build/src/store/revenueOrganization.d.ts +201 -0
- package/build/src/store/revenueOrganization.d.ts.map +1 -0
- package/build/src/store/revenueOrganization.js +68 -0
- package/build/src/store/segmentation.d.ts +566 -0
- package/build/src/store/segmentation.d.ts.map +1 -0
- package/build/src/store/segmentation.js +103 -0
- package/build/src/store/storage.d.ts +1096 -0
- package/build/src/store/storage.d.ts.map +1 -0
- package/build/src/store/storage.js +174 -0
- package/build/src/store/systemOfRecordIntegration.d.ts +122 -0
- package/build/src/store/systemOfRecordIntegration.d.ts.map +1 -0
- package/build/src/store/systemOfRecordIntegration.js +53 -0
- package/build/src/store/userManagement.d.ts +34 -0
- package/build/src/store/userManagement.d.ts.map +1 -0
- package/build/src/store/userManagement.js +22 -0
- package/build/src/store/workspaceManagement.d.ts +215 -0
- package/build/src/store/workspaceManagement.d.ts.map +1 -0
- package/build/src/store/workspaceManagement.js +103 -0
- package/build/src/types.d.ts +6 -0
- package/build/src/types.d.ts.map +1 -0
- package/build/src/types.js +1 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { type ExpressionTypes } from "cargo-domain-types";
|
|
2
|
+
import { z } from "zod/v4";
|
|
3
|
+
import type { BackendToFrontend, DateToString } from "../types.js";
|
|
4
|
+
export declare namespace Expression {
|
|
5
|
+
type ExpressionInstructTo = BackendToFrontend<ExpressionTypes.ExpressionInstructTo>;
|
|
6
|
+
type ExpressionKind = BackendToFrontend<ExpressionTypes.ExpressionKind>;
|
|
7
|
+
type Expression = BackendToFrontend<ExpressionTypes.Expression>;
|
|
8
|
+
type RecipePlaceholder = BackendToFrontend<ExpressionTypes.RecipePlaceholder>;
|
|
9
|
+
type RecipeCategory = BackendToFrontend<ExpressionTypes.RecipeCategory>;
|
|
10
|
+
type Recipe = BackendToFrontend<ExpressionTypes.RecipeWithFavorite>;
|
|
11
|
+
const matchIsExpression: (value: any) => boolean;
|
|
12
|
+
namespace Api {
|
|
13
|
+
type CreateFavoriteRecipePayload = DateToString<{
|
|
14
|
+
recipeUuid: string;
|
|
15
|
+
}>;
|
|
16
|
+
type CreateFavoriteRecipeResult = object;
|
|
17
|
+
type DeleteFavoriteRecipePayload = DateToString<{
|
|
18
|
+
recipeUuid: string;
|
|
19
|
+
}>;
|
|
20
|
+
type DeleteFavoriteRecipeResult = object;
|
|
21
|
+
const zodDeleteFavoriteRecipeErrorReason: z.ZodEnum<{
|
|
22
|
+
alreadyArchived: "alreadyArchived";
|
|
23
|
+
recipeNotFound: "recipeNotFound";
|
|
24
|
+
recipeDoesNotBelongsToWorkspace: "recipeDoesNotBelongsToWorkspace";
|
|
25
|
+
}>;
|
|
26
|
+
type EvaluateExpressionPayload = DateToString<{
|
|
27
|
+
expression: Expression;
|
|
28
|
+
variables: Record<string, any>;
|
|
29
|
+
}>;
|
|
30
|
+
type EvaluateExpressionResult = {
|
|
31
|
+
data?: any;
|
|
32
|
+
errorMessage?: string;
|
|
33
|
+
};
|
|
34
|
+
type CreateRecipePayload = DateToString<{
|
|
35
|
+
name: string;
|
|
36
|
+
description: string;
|
|
37
|
+
category: RecipeCategory;
|
|
38
|
+
placeholders: RecipePlaceholder[];
|
|
39
|
+
isPublic: boolean;
|
|
40
|
+
kind: "jsExpression" | "templateExpression";
|
|
41
|
+
expression: string;
|
|
42
|
+
instructTo: ExpressionInstructTo;
|
|
43
|
+
}>;
|
|
44
|
+
type CreateRecipeResult = {
|
|
45
|
+
recipe: Recipe;
|
|
46
|
+
};
|
|
47
|
+
type CreateNewRecipeVersionPayload = DateToString<{
|
|
48
|
+
uuid: string;
|
|
49
|
+
name: string;
|
|
50
|
+
description: string;
|
|
51
|
+
category: RecipeCategory;
|
|
52
|
+
placeholders: RecipePlaceholder[];
|
|
53
|
+
isPublic: boolean;
|
|
54
|
+
expression: string;
|
|
55
|
+
}>;
|
|
56
|
+
type CreateNewRecipeVersionResult = {
|
|
57
|
+
recipe: Recipe;
|
|
58
|
+
};
|
|
59
|
+
const zodCreateNewRecipeVersionErrorReason: z.ZodEnum<{
|
|
60
|
+
recipeNotFound: "recipeNotFound";
|
|
61
|
+
}>;
|
|
62
|
+
type GetRecipeResult = {
|
|
63
|
+
recipe: Recipe;
|
|
64
|
+
};
|
|
65
|
+
type ListRecipesPayload = DateToString<{
|
|
66
|
+
tab?: "all" | "user" | "workspace" | "favorites";
|
|
67
|
+
uiTypes?: ("js" | "ai")[];
|
|
68
|
+
categories?: ("other" | "classification" | "cleaning" | "marketing" | "sales" | "event" | "copywriting")[];
|
|
69
|
+
name?: string;
|
|
70
|
+
limit?: number;
|
|
71
|
+
offset?: number;
|
|
72
|
+
}>;
|
|
73
|
+
type ListRecipesResult = {
|
|
74
|
+
recipes: Recipe[];
|
|
75
|
+
};
|
|
76
|
+
type UpdateRecipePayload = DateToString<{
|
|
77
|
+
uuid: string;
|
|
78
|
+
name?: string;
|
|
79
|
+
description?: string;
|
|
80
|
+
category?: RecipeCategory;
|
|
81
|
+
placeholders?: RecipePlaceholder[];
|
|
82
|
+
isPublic?: boolean;
|
|
83
|
+
expression: string;
|
|
84
|
+
}>;
|
|
85
|
+
type UpdateRecipeResult = {
|
|
86
|
+
recipe: Recipe;
|
|
87
|
+
};
|
|
88
|
+
type GenerateExpressionPayload = DateToString<{
|
|
89
|
+
prompt: string;
|
|
90
|
+
variables: Record<string, unknown>;
|
|
91
|
+
}>;
|
|
92
|
+
type GenerateExpressionResult = {
|
|
93
|
+
data?: any;
|
|
94
|
+
errorMessage?: string;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
const recipeKeys: {
|
|
98
|
+
all: (workspaceUuid: string) => readonly ["recipes", string];
|
|
99
|
+
get: (workspaceUuid: string, id: string, version: number) => readonly ["recipes", string, string, number];
|
|
100
|
+
getLastVersion: (workspaceUuid: string, id: string) => readonly ["recipes", string, "last", string];
|
|
101
|
+
list: (workspaceUuid: string, payload: Api.ListRecipesPayload) => readonly ["recipes", string, {
|
|
102
|
+
tab?: "workspace" | "user" | "all" | "favorites" | undefined;
|
|
103
|
+
uiTypes?: ("ai" | "js")[] | undefined;
|
|
104
|
+
categories?: ("marketing" | "sales" | "other" | "classification" | "cleaning" | "event" | "copywriting")[] | undefined;
|
|
105
|
+
name?: string | undefined;
|
|
106
|
+
limit?: number | undefined;
|
|
107
|
+
offset?: number | undefined;
|
|
108
|
+
}];
|
|
109
|
+
listFavorites: (workspaceUuid: string) => readonly ["list", string, "favorites"];
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=expression.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expression.d.ts","sourceRoot":"","sources":["../../../src/store/expression.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
import { ExpressionUtils } from "cargo-domain-types";
|
|
3
|
+
import { z } from "zod/v4";
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
5
|
+
export var Expression;
|
|
6
|
+
(function (Expression) {
|
|
7
|
+
Expression.matchIsExpression = ExpressionUtils.matchIsExpression;
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
9
|
+
let Api;
|
|
10
|
+
(function (Api) {
|
|
11
|
+
Api.zodDeleteFavoriteRecipeErrorReason = z.enum([
|
|
12
|
+
"alreadyArchived",
|
|
13
|
+
"recipeNotFound",
|
|
14
|
+
"recipeDoesNotBelongsToWorkspace",
|
|
15
|
+
]);
|
|
16
|
+
Api.zodCreateNewRecipeVersionErrorReason = z.enum([
|
|
17
|
+
"recipeNotFound",
|
|
18
|
+
]);
|
|
19
|
+
})(Api = Expression.Api || (Expression.Api = {}));
|
|
20
|
+
Expression.recipeKeys = {
|
|
21
|
+
all: (workspaceUuid) => ["recipes", workspaceUuid],
|
|
22
|
+
get: (workspaceUuid, id, version) => [...Expression.recipeKeys.all(workspaceUuid), id, version],
|
|
23
|
+
getLastVersion: (workspaceUuid, id) => [...Expression.recipeKeys.all(workspaceUuid), "last", id],
|
|
24
|
+
list: (workspaceUuid, payload) => [...Expression.recipeKeys.all(workspaceUuid), payload],
|
|
25
|
+
listFavorites: (workspaceUuid) => ["list", workspaceUuid, "favorites"],
|
|
26
|
+
};
|
|
27
|
+
})(Expression || (Expression = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Ai, type AiSlice } from "./ai.js";
|
|
2
|
+
import { Billing, type SubscriptionSlice } from "./billing.js";
|
|
3
|
+
import { Connection, type ConnectionSlice } from "./connection.js";
|
|
4
|
+
import { Expression } from "./expression.js";
|
|
5
|
+
import { Orchestration, type OrchestrationSlice } from "./orchestration.js";
|
|
6
|
+
import { RevenueOrganization, type RevenueOrganizationSlice } from "./revenueOrganization.js";
|
|
7
|
+
import { Segmentation, type SegmentationSlice } from "./segmentation.js";
|
|
8
|
+
import { Storage, type StorageSlice } from "./storage.js";
|
|
9
|
+
import { SystemOfRecordIntegration, type SystemOfRecordIntegrationSlice } from "./systemOfRecordIntegration.js";
|
|
10
|
+
import { UserManagement, type UserManagementSlice } from "./userManagement.js";
|
|
11
|
+
import { WorkspaceManagement, type WorkspaceManagementSlice } from "./workspaceManagement.js";
|
|
12
|
+
export { Ai, Billing, Connection, Expression, Orchestration, RevenueOrganization, Segmentation, Storage, SystemOfRecordIntegration, UserManagement, WorkspaceManagement, };
|
|
13
|
+
export declare const useStore: import("zustand").UseBoundStore<import("zustand").StoreApi<RevenueOrganizationSlice & WorkspaceManagementSlice & SegmentationSlice & SubscriptionSlice & StorageSlice & ConnectionSlice & AiSlice & SystemOfRecordIntegrationSlice & OrchestrationSlice & UserManagementSlice>>;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,KAAK,OAAO,EAAiB,MAAM,SAAS,CAAC;AAC1D,OAAO,EACL,OAAO,EAEP,KAAK,iBAAiB,EACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EAErB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAEL,aAAa,EACb,KAAK,kBAAkB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,mBAAmB,EACnB,KAAK,wBAAwB,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,YAAY,EACZ,KAAK,iBAAiB,EACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAsB,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAEL,yBAAyB,EACzB,KAAK,8BAA8B,EACpC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAEL,cAAc,EACd,KAAK,mBAAmB,EACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,mBAAmB,EACnB,KAAK,wBAAwB,EAC9B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,EAAE,EACF,OAAO,EACP,UAAU,EACV,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,OAAO,EACP,yBAAyB,EACzB,cAAc,EACd,mBAAmB,GACpB,CAAC;AAEF,eAAO,MAAM,QAAQ,iRAsBlB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { create } from "zustand";
|
|
2
|
+
import { Ai, createAiSlice } from "./ai.js";
|
|
3
|
+
import { Billing, createSubscriptionSlice, } from "./billing.js";
|
|
4
|
+
import { Connection, createConnectionSlice, } from "./connection.js";
|
|
5
|
+
import { Expression } from "./expression.js";
|
|
6
|
+
import { createOrchestrationSlice, Orchestration, } from "./orchestration.js";
|
|
7
|
+
import { createRevenueOrganizationSlice, RevenueOrganization, } from "./revenueOrganization.js";
|
|
8
|
+
import { createSegmentationSlice, Segmentation, } from "./segmentation.js";
|
|
9
|
+
import { createStorageSlice, Storage } from "./storage.js";
|
|
10
|
+
import { createSystemOfRecordIntegrationSlice, SystemOfRecordIntegration, } from "./systemOfRecordIntegration.js";
|
|
11
|
+
import { createUserManagementSlice, UserManagement, } from "./userManagement.js";
|
|
12
|
+
import { createWorkspaceManagementSlice, WorkspaceManagement, } from "./workspaceManagement.js";
|
|
13
|
+
export { Ai, Billing, Connection, Expression, Orchestration, RevenueOrganization, Segmentation, Storage, SystemOfRecordIntegration, UserManagement, WorkspaceManagement, };
|
|
14
|
+
export const useStore = create()((...a) => ({
|
|
15
|
+
...createRevenueOrganizationSlice(...a),
|
|
16
|
+
...createWorkspaceManagementSlice(...a),
|
|
17
|
+
...createSegmentationSlice(...a),
|
|
18
|
+
...createSubscriptionSlice(...a),
|
|
19
|
+
...createStorageSlice(...a),
|
|
20
|
+
...createConnectionSlice(...a),
|
|
21
|
+
...createAiSlice(...a),
|
|
22
|
+
...createSystemOfRecordIntegrationSlice(...a),
|
|
23
|
+
...createOrchestrationSlice(...a),
|
|
24
|
+
...createUserManagementSlice(...a),
|
|
25
|
+
}));
|