@voyant-travel/quotes 0.123.3 → 0.123.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/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -16
- package/dist/linkables.d.ts +8 -0
- package/dist/linkables.d.ts.map +1 -0
- package/dist/linkables.js +16 -0
- package/dist/routes/index.d.ts +4 -4
- package/dist/routes/pipelines.d.ts +4 -4
- package/dist/schema-sales.d.ts +1 -1
- package/dist/service/index.d.ts +7 -7
- package/dist/service/pipelines.d.ts +4 -4
- package/package.json +9 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Module } from "@voyant-travel/core";
|
|
2
2
|
import type { HonoModule } from "@voyant-travel/hono/module";
|
|
3
|
+
export { quoteLinkable, quotesLinkable, quoteVersionLinkable } from "./linkables.js";
|
|
3
4
|
export type { QuotesRoutes } from "./routes/index.js";
|
|
4
|
-
export declare const quoteLinkable: LinkableDefinition;
|
|
5
|
-
export declare const quoteVersionLinkable: LinkableDefinition;
|
|
6
5
|
export declare const quotesModule: Module;
|
|
7
6
|
export declare function createQuotesHonoModule(): HonoModule;
|
|
8
7
|
export declare const quotesHonoModule: HonoModule;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAK5D,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AACpF,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AwB,EACxB,iBAAiB,EACjB,4BAA4B,EAC5B,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,iBAAiB,EACjB,2BAA2B,EAC3B,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,4BAA4B,EAC5B,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,iBAAiB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,9 @@
|
|
|
1
|
+
import { quotesLinkable } from "./linkables.js";
|
|
1
2
|
import { quotesRoutes } from "./routes/index.js";
|
|
2
|
-
export
|
|
3
|
-
module: "quotes",
|
|
4
|
-
entity: "quote",
|
|
5
|
-
table: "quotes",
|
|
6
|
-
idPrefix: "quot",
|
|
7
|
-
};
|
|
8
|
-
export const quoteVersionLinkable = {
|
|
9
|
-
module: "quotes",
|
|
10
|
-
entity: "quoteVersion",
|
|
11
|
-
table: "quote_versions",
|
|
12
|
-
idPrefix: "qver",
|
|
13
|
-
};
|
|
3
|
+
export { quoteLinkable, quotesLinkable, quoteVersionLinkable } from "./linkables.js";
|
|
14
4
|
export const quotesModule = {
|
|
15
5
|
name: "quotes",
|
|
16
|
-
linkable:
|
|
17
|
-
quote: quoteLinkable,
|
|
18
|
-
quoteVersion: quoteVersionLinkable,
|
|
19
|
-
},
|
|
6
|
+
linkable: quotesLinkable,
|
|
20
7
|
requiresTransactionalDb: true,
|
|
21
8
|
};
|
|
22
9
|
export function createQuotesHonoModule() {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LinkableDefinition } from "@voyant-travel/core";
|
|
2
|
+
export declare const quoteLinkable: LinkableDefinition;
|
|
3
|
+
export declare const quoteVersionLinkable: LinkableDefinition;
|
|
4
|
+
export declare const quotesLinkable: {
|
|
5
|
+
quote: LinkableDefinition;
|
|
6
|
+
quoteVersion: LinkableDefinition;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=linkables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkables.d.ts","sourceRoot":"","sources":["../src/linkables.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAE7D,eAAO,MAAM,aAAa,EAAE,kBAK3B,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,kBAKlC,CAAA;AAED,eAAO,MAAM,cAAc;;;CAG1B,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const quoteLinkable = {
|
|
2
|
+
module: "quotes",
|
|
3
|
+
entity: "quote",
|
|
4
|
+
table: "quotes",
|
|
5
|
+
idPrefix: "quot",
|
|
6
|
+
};
|
|
7
|
+
export const quoteVersionLinkable = {
|
|
8
|
+
module: "quotes",
|
|
9
|
+
entity: "quoteVersion",
|
|
10
|
+
table: "quote_versions",
|
|
11
|
+
idPrefix: "qver",
|
|
12
|
+
};
|
|
13
|
+
export const quotesLinkable = {
|
|
14
|
+
quote: quoteLinkable,
|
|
15
|
+
quoteVersion: quoteVersionLinkable,
|
|
16
|
+
};
|
package/dist/routes/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
12
12
|
output: {
|
|
13
13
|
data: {
|
|
14
14
|
id: string;
|
|
15
|
-
entityType: "organization" | "
|
|
15
|
+
entityType: "organization" | "quote" | "person" | "activity";
|
|
16
16
|
name: string;
|
|
17
17
|
isDefault: boolean;
|
|
18
18
|
sortOrder: number;
|
|
@@ -37,7 +37,7 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
37
37
|
name: string;
|
|
38
38
|
createdAt: string;
|
|
39
39
|
updatedAt: string;
|
|
40
|
-
entityType: "organization" | "
|
|
40
|
+
entityType: "organization" | "quote" | "person" | "activity";
|
|
41
41
|
isDefault: boolean;
|
|
42
42
|
sortOrder: number;
|
|
43
43
|
} | undefined;
|
|
@@ -68,7 +68,7 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
68
68
|
output: {
|
|
69
69
|
data: {
|
|
70
70
|
id: string;
|
|
71
|
-
entityType: "organization" | "
|
|
71
|
+
entityType: "organization" | "quote" | "person" | "activity";
|
|
72
72
|
name: string;
|
|
73
73
|
isDefault: boolean;
|
|
74
74
|
sortOrder: number;
|
|
@@ -102,7 +102,7 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
102
102
|
output: {
|
|
103
103
|
data: {
|
|
104
104
|
id: string;
|
|
105
|
-
entityType: "organization" | "
|
|
105
|
+
entityType: "organization" | "quote" | "person" | "activity";
|
|
106
106
|
name: string;
|
|
107
107
|
isDefault: boolean;
|
|
108
108
|
sortOrder: number;
|
|
@@ -12,7 +12,7 @@ export declare const pipelineRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
12
12
|
output: {
|
|
13
13
|
data: {
|
|
14
14
|
id: string;
|
|
15
|
-
entityType: "organization" | "
|
|
15
|
+
entityType: "organization" | "quote" | "person" | "activity";
|
|
16
16
|
name: string;
|
|
17
17
|
isDefault: boolean;
|
|
18
18
|
sortOrder: number;
|
|
@@ -37,7 +37,7 @@ export declare const pipelineRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
37
37
|
name: string;
|
|
38
38
|
createdAt: string;
|
|
39
39
|
updatedAt: string;
|
|
40
|
-
entityType: "organization" | "
|
|
40
|
+
entityType: "organization" | "quote" | "person" | "activity";
|
|
41
41
|
isDefault: boolean;
|
|
42
42
|
sortOrder: number;
|
|
43
43
|
} | undefined;
|
|
@@ -68,7 +68,7 @@ export declare const pipelineRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
68
68
|
output: {
|
|
69
69
|
data: {
|
|
70
70
|
id: string;
|
|
71
|
-
entityType: "organization" | "
|
|
71
|
+
entityType: "organization" | "quote" | "person" | "activity";
|
|
72
72
|
name: string;
|
|
73
73
|
isDefault: boolean;
|
|
74
74
|
sortOrder: number;
|
|
@@ -102,7 +102,7 @@ export declare const pipelineRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
102
102
|
output: {
|
|
103
103
|
data: {
|
|
104
104
|
id: string;
|
|
105
|
-
entityType: "organization" | "
|
|
105
|
+
entityType: "organization" | "quote" | "person" | "activity";
|
|
106
106
|
name: string;
|
|
107
107
|
isDefault: boolean;
|
|
108
108
|
sortOrder: number;
|
package/dist/schema-sales.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare const pipelines: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
24
24
|
tableName: "pipelines";
|
|
25
25
|
dataType: "string";
|
|
26
26
|
columnType: "PgEnumColumn";
|
|
27
|
-
data: "organization" | "
|
|
27
|
+
data: "organization" | "quote" | "person" | "activity";
|
|
28
28
|
driverParam: string;
|
|
29
29
|
notNull: true;
|
|
30
30
|
hasDefault: true;
|
package/dist/service/index.d.ts
CHANGED
|
@@ -2100,10 +2100,10 @@ export declare const quotesService: {
|
|
|
2100
2100
|
listPipelines(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, query: {
|
|
2101
2101
|
limit: number;
|
|
2102
2102
|
offset: number;
|
|
2103
|
-
entityType?: "organization" | "
|
|
2103
|
+
entityType?: "organization" | "quote" | "person" | "activity" | undefined;
|
|
2104
2104
|
}): Promise<import("@voyant-travel/types").ListResponse<{
|
|
2105
2105
|
id: string;
|
|
2106
|
-
entityType: "organization" | "
|
|
2106
|
+
entityType: "organization" | "quote" | "person" | "activity";
|
|
2107
2107
|
name: string;
|
|
2108
2108
|
isDefault: boolean;
|
|
2109
2109
|
sortOrder: number;
|
|
@@ -2112,7 +2112,7 @@ export declare const quotesService: {
|
|
|
2112
2112
|
}>>;
|
|
2113
2113
|
getPipelineById(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string): Promise<{
|
|
2114
2114
|
id: string;
|
|
2115
|
-
entityType: "organization" | "
|
|
2115
|
+
entityType: "organization" | "quote" | "person" | "activity";
|
|
2116
2116
|
name: string;
|
|
2117
2117
|
isDefault: boolean;
|
|
2118
2118
|
sortOrder: number;
|
|
@@ -2120,7 +2120,7 @@ export declare const quotesService: {
|
|
|
2120
2120
|
updatedAt: Date;
|
|
2121
2121
|
} | null>;
|
|
2122
2122
|
createPipeline(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: {
|
|
2123
|
-
entityType: "organization" | "
|
|
2123
|
+
entityType: "organization" | "quote" | "person" | "activity";
|
|
2124
2124
|
name: string;
|
|
2125
2125
|
isDefault: boolean;
|
|
2126
2126
|
sortOrder: number;
|
|
@@ -2129,18 +2129,18 @@ export declare const quotesService: {
|
|
|
2129
2129
|
name: string;
|
|
2130
2130
|
createdAt: Date;
|
|
2131
2131
|
updatedAt: Date;
|
|
2132
|
-
entityType: "organization" | "
|
|
2132
|
+
entityType: "organization" | "quote" | "person" | "activity";
|
|
2133
2133
|
isDefault: boolean;
|
|
2134
2134
|
sortOrder: number;
|
|
2135
2135
|
} | undefined>;
|
|
2136
2136
|
updatePipeline(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: {
|
|
2137
|
-
entityType?: "organization" | "
|
|
2137
|
+
entityType?: "organization" | "quote" | "person" | "activity" | undefined;
|
|
2138
2138
|
name?: string | undefined;
|
|
2139
2139
|
isDefault?: boolean | undefined;
|
|
2140
2140
|
sortOrder?: number | undefined;
|
|
2141
2141
|
}): Promise<{
|
|
2142
2142
|
id: string;
|
|
2143
|
-
entityType: "organization" | "
|
|
2143
|
+
entityType: "organization" | "quote" | "person" | "activity";
|
|
2144
2144
|
name: string;
|
|
2145
2145
|
isDefault: boolean;
|
|
2146
2146
|
sortOrder: number;
|
|
@@ -10,7 +10,7 @@ type UpdateStageInput = z.infer<typeof updateStageSchema>;
|
|
|
10
10
|
export declare const pipelinesService: {
|
|
11
11
|
listPipelines(db: PostgresJsDatabase, query: PipelineListQuery): Promise<import("@voyant-travel/types").ListResponse<{
|
|
12
12
|
id: string;
|
|
13
|
-
entityType: "organization" | "
|
|
13
|
+
entityType: "organization" | "quote" | "person" | "activity";
|
|
14
14
|
name: string;
|
|
15
15
|
isDefault: boolean;
|
|
16
16
|
sortOrder: number;
|
|
@@ -19,7 +19,7 @@ export declare const pipelinesService: {
|
|
|
19
19
|
}>>;
|
|
20
20
|
getPipelineById(db: PostgresJsDatabase, id: string): Promise<{
|
|
21
21
|
id: string;
|
|
22
|
-
entityType: "organization" | "
|
|
22
|
+
entityType: "organization" | "quote" | "person" | "activity";
|
|
23
23
|
name: string;
|
|
24
24
|
isDefault: boolean;
|
|
25
25
|
sortOrder: number;
|
|
@@ -31,13 +31,13 @@ export declare const pipelinesService: {
|
|
|
31
31
|
name: string;
|
|
32
32
|
createdAt: Date;
|
|
33
33
|
updatedAt: Date;
|
|
34
|
-
entityType: "organization" | "
|
|
34
|
+
entityType: "organization" | "quote" | "person" | "activity";
|
|
35
35
|
isDefault: boolean;
|
|
36
36
|
sortOrder: number;
|
|
37
37
|
} | undefined>;
|
|
38
38
|
updatePipeline(db: PostgresJsDatabase, id: string, data: UpdatePipelineInput): Promise<{
|
|
39
39
|
id: string;
|
|
40
|
-
entityType: "organization" | "
|
|
40
|
+
entityType: "organization" | "quote" | "person" | "activity";
|
|
41
41
|
name: string;
|
|
42
42
|
isDefault: boolean;
|
|
43
43
|
sortOrder: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/quotes",
|
|
3
|
-
"version": "0.123.
|
|
3
|
+
"version": "0.123.4",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
"import": "./dist/index.js",
|
|
10
10
|
"default": "./dist/index.js"
|
|
11
11
|
},
|
|
12
|
+
"./linkables": {
|
|
13
|
+
"types": "./dist/linkables.d.ts",
|
|
14
|
+
"import": "./dist/linkables.js",
|
|
15
|
+
"default": "./dist/linkables.js"
|
|
16
|
+
},
|
|
12
17
|
"./schema": {
|
|
13
18
|
"types": "./dist/schema.d.ts",
|
|
14
19
|
"import": "./dist/schema.js",
|
|
@@ -40,11 +45,11 @@
|
|
|
40
45
|
"hono": "^4.12.10",
|
|
41
46
|
"zod": "^4.3.6",
|
|
42
47
|
"@voyant-travel/core": "^0.111.0",
|
|
48
|
+
"@voyant-travel/db": "^0.109.4",
|
|
43
49
|
"@voyant-travel/quotes-contracts": "^0.108.0",
|
|
44
|
-
"@voyant-travel/db": "^0.109.2",
|
|
45
50
|
"@voyant-travel/types": "^0.106.0",
|
|
46
|
-
"@voyant-travel/hono": "^0.116.
|
|
47
|
-
"@voyant-travel/trips": "^0.127.
|
|
51
|
+
"@voyant-travel/hono": "^0.116.2",
|
|
52
|
+
"@voyant-travel/trips": "^0.127.1"
|
|
48
53
|
},
|
|
49
54
|
"devDependencies": {
|
|
50
55
|
"drizzle-kit": "^0.31.10",
|