@voyant-travel/quotes 0.119.2 → 0.119.3
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/booking-extension.d.ts +2 -2
- package/dist/routes/index.d.ts +52 -52
- package/dist/routes/pipelines.d.ts +6 -6
- package/dist/routes/quote-versions.d.ts +33 -33
- package/dist/routes/quotes.d.ts +13 -13
- package/dist/schema-sales.d.ts +1 -1
- package/dist/service/index.d.ts +49 -49
- package/dist/service/pipelines.d.ts +6 -6
- package/dist/service/quote-versions.d.ts +21 -21
- package/dist/service/quotes.d.ts +15 -15
- package/dist/validation.d.ts +1 -1
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +1 -1
- package/package.json +3 -3
|
@@ -108,11 +108,11 @@ export declare const bookingQuoteExtensionService: {
|
|
|
108
108
|
updatedAt: Date;
|
|
109
109
|
} | null>;
|
|
110
110
|
upsert(db: PostgresJsDatabase, bookingId: string, data: z.infer<typeof bookingQuoteDetailSchema>): Promise<{
|
|
111
|
+
createdAt: Date;
|
|
112
|
+
updatedAt: Date;
|
|
111
113
|
bookingId: string;
|
|
112
114
|
quoteId: string | null;
|
|
113
115
|
quoteVersionId: string | null;
|
|
114
|
-
createdAt: Date;
|
|
115
|
-
updatedAt: Date;
|
|
116
116
|
} | null>;
|
|
117
117
|
remove(db: PostgresJsDatabase, bookingId: string): Promise<{
|
|
118
118
|
bookingId: string;
|
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: "
|
|
15
|
+
entityType: "organization" | "person" | "quote" | "activity";
|
|
16
16
|
name: string;
|
|
17
17
|
isDefault: boolean;
|
|
18
18
|
sortOrder: number;
|
|
@@ -33,11 +33,11 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
33
33
|
input: {};
|
|
34
34
|
output: {
|
|
35
35
|
data: {
|
|
36
|
+
id: string;
|
|
36
37
|
name: string;
|
|
37
38
|
createdAt: string;
|
|
38
39
|
updatedAt: string;
|
|
39
|
-
|
|
40
|
-
entityType: "quote" | "organization" | "person" | "activity";
|
|
40
|
+
entityType: "organization" | "person" | "quote" | "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: "
|
|
71
|
+
entityType: "organization" | "person" | "quote" | "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: "
|
|
105
|
+
entityType: "organization" | "person" | "quote" | "activity";
|
|
106
106
|
name: string;
|
|
107
107
|
isDefault: boolean;
|
|
108
108
|
sortOrder: number;
|
|
@@ -171,10 +171,10 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
171
171
|
input: {};
|
|
172
172
|
output: {
|
|
173
173
|
data: {
|
|
174
|
+
id: string;
|
|
174
175
|
name: string;
|
|
175
176
|
createdAt: string;
|
|
176
177
|
updatedAt: string;
|
|
177
|
-
id: string;
|
|
178
178
|
sortOrder: number;
|
|
179
179
|
pipelineId: string;
|
|
180
180
|
probability: number | null;
|
|
@@ -328,24 +328,24 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
328
328
|
input: {};
|
|
329
329
|
output: {
|
|
330
330
|
data: {
|
|
331
|
+
source: string | null;
|
|
332
|
+
id: string;
|
|
333
|
+
status: "open" | "won" | "lost" | "archived";
|
|
331
334
|
createdAt: string;
|
|
335
|
+
tags: string[];
|
|
332
336
|
updatedAt: string;
|
|
333
|
-
|
|
337
|
+
organizationId: string | null;
|
|
334
338
|
title: string;
|
|
335
339
|
pipelineId: string;
|
|
336
340
|
personId: string | null;
|
|
337
|
-
organizationId: string | null;
|
|
338
341
|
stageId: string;
|
|
339
342
|
ownerId: string | null;
|
|
340
|
-
status: "open" | "won" | "lost" | "archived";
|
|
341
343
|
acceptedVersionId: string | null;
|
|
342
344
|
valueAmountCents: number | null;
|
|
343
345
|
valueCurrency: string | null;
|
|
344
346
|
expectedCloseDate: string | null;
|
|
345
|
-
source: string | null;
|
|
346
347
|
sourceRef: string | null;
|
|
347
348
|
lostReason: string | null;
|
|
348
|
-
tags: string[];
|
|
349
349
|
stageChangedAt: string;
|
|
350
350
|
closedAt: string | null;
|
|
351
351
|
} | undefined;
|
|
@@ -487,7 +487,7 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
487
487
|
id: string;
|
|
488
488
|
quoteId: string;
|
|
489
489
|
personId: string;
|
|
490
|
-
role: "
|
|
490
|
+
role: "other" | "finance" | "traveler" | "booker" | "decision_maker";
|
|
491
491
|
isPrimary: boolean;
|
|
492
492
|
createdAt: string;
|
|
493
493
|
}[];
|
|
@@ -506,11 +506,11 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
506
506
|
};
|
|
507
507
|
output: {
|
|
508
508
|
data: {
|
|
509
|
-
quoteId: string;
|
|
510
|
-
createdAt: string;
|
|
511
509
|
id: string;
|
|
510
|
+
createdAt: string;
|
|
511
|
+
role: "other" | "finance" | "traveler" | "booker" | "decision_maker";
|
|
512
|
+
quoteId: string;
|
|
512
513
|
personId: string;
|
|
513
|
-
role: "traveler" | "booker" | "decision_maker" | "finance" | "other";
|
|
514
514
|
isPrimary: boolean;
|
|
515
515
|
} | undefined;
|
|
516
516
|
};
|
|
@@ -583,18 +583,18 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
583
583
|
};
|
|
584
584
|
output: {
|
|
585
585
|
data: {
|
|
586
|
-
|
|
586
|
+
id: string;
|
|
587
587
|
createdAt: string;
|
|
588
|
-
updatedAt: string;
|
|
589
588
|
description: string | null;
|
|
590
|
-
|
|
589
|
+
updatedAt: string;
|
|
590
|
+
currency: string | null;
|
|
591
|
+
quoteId: string;
|
|
591
592
|
productId: string | null;
|
|
592
593
|
supplierServiceId: string | null;
|
|
593
594
|
nameSnapshot: string;
|
|
594
595
|
quantity: number;
|
|
595
596
|
unitPriceAmountCents: number | null;
|
|
596
597
|
costAmountCents: number | null;
|
|
597
|
-
currency: string | null;
|
|
598
598
|
discountAmountCents: number | null;
|
|
599
599
|
} | undefined;
|
|
600
600
|
};
|
|
@@ -677,7 +677,7 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
677
677
|
id: string;
|
|
678
678
|
quoteId: string;
|
|
679
679
|
label: string | null;
|
|
680
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded"
|
|
680
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
681
681
|
supersedesId: string | null;
|
|
682
682
|
tripSnapshotId: string | null;
|
|
683
683
|
validUntil: string | null;
|
|
@@ -711,12 +711,13 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
711
711
|
};
|
|
712
712
|
output: {
|
|
713
713
|
data: {
|
|
714
|
-
|
|
714
|
+
id: string;
|
|
715
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
715
716
|
createdAt: string;
|
|
716
717
|
updatedAt: string;
|
|
717
|
-
id: string;
|
|
718
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded" | "expired";
|
|
719
718
|
currency: string;
|
|
719
|
+
notes: string | null;
|
|
720
|
+
quoteId: string;
|
|
720
721
|
label: string | null;
|
|
721
722
|
supersedesId: string | null;
|
|
722
723
|
tripSnapshotId: string | null;
|
|
@@ -724,7 +725,6 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
724
725
|
subtotalAmountCents: number;
|
|
725
726
|
taxAmountCents: number;
|
|
726
727
|
totalAmountCents: number;
|
|
727
|
-
notes: string | null;
|
|
728
728
|
sentAt: string | null;
|
|
729
729
|
viewedAt: string | null;
|
|
730
730
|
decidedAt: string | null;
|
|
@@ -755,7 +755,7 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
755
755
|
id: string;
|
|
756
756
|
quoteId: string;
|
|
757
757
|
label: string | null;
|
|
758
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded"
|
|
758
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
759
759
|
supersedesId: string | null;
|
|
760
760
|
tripSnapshotId: string | null;
|
|
761
761
|
validUntil: string | null;
|
|
@@ -800,7 +800,7 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
800
800
|
id: string;
|
|
801
801
|
quoteId: string;
|
|
802
802
|
label: string | null;
|
|
803
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded"
|
|
803
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
804
804
|
supersedesId: string | null;
|
|
805
805
|
tripSnapshotId: string | null;
|
|
806
806
|
validUntil: string | null;
|
|
@@ -845,7 +845,7 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
845
845
|
id: string;
|
|
846
846
|
quoteId: string;
|
|
847
847
|
label: string | null;
|
|
848
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded"
|
|
848
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
849
849
|
supersedesId: string | null;
|
|
850
850
|
tripSnapshotId: string | null;
|
|
851
851
|
validUntil: string | null;
|
|
@@ -939,7 +939,7 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
939
939
|
id: string;
|
|
940
940
|
quoteId: string;
|
|
941
941
|
label: string | null;
|
|
942
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded"
|
|
942
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
943
943
|
supersedesId: string | null;
|
|
944
944
|
tripSnapshotId: string | null;
|
|
945
945
|
validUntil: string | null;
|
|
@@ -956,16 +956,16 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
956
956
|
archivedAt: string | null;
|
|
957
957
|
};
|
|
958
958
|
lines: {
|
|
959
|
-
|
|
959
|
+
id: string;
|
|
960
960
|
createdAt: string;
|
|
961
|
-
updatedAt: string;
|
|
962
961
|
description: string;
|
|
963
|
-
|
|
962
|
+
updatedAt: string;
|
|
963
|
+
currency: string;
|
|
964
|
+
quoteVersionId: string;
|
|
964
965
|
productId: string | null;
|
|
965
966
|
supplierServiceId: string | null;
|
|
966
967
|
quantity: number;
|
|
967
968
|
unitPriceAmountCents: number;
|
|
968
|
-
currency: string;
|
|
969
969
|
totalAmountCents: number;
|
|
970
970
|
}[];
|
|
971
971
|
};
|
|
@@ -1009,7 +1009,7 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
1009
1009
|
id: string;
|
|
1010
1010
|
quoteId: string;
|
|
1011
1011
|
label: string | null;
|
|
1012
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded"
|
|
1012
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
1013
1013
|
supersedesId: string | null;
|
|
1014
1014
|
tripSnapshotId: string | null;
|
|
1015
1015
|
validUntil: string | null;
|
|
@@ -1065,7 +1065,7 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
1065
1065
|
id: string;
|
|
1066
1066
|
quoteId: string;
|
|
1067
1067
|
label: string | null;
|
|
1068
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded"
|
|
1068
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
1069
1069
|
supersedesId: string | null;
|
|
1070
1070
|
tripSnapshotId: string | null;
|
|
1071
1071
|
validUntil: string | null;
|
|
@@ -1108,34 +1108,35 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
1108
1108
|
output: {
|
|
1109
1109
|
data: {
|
|
1110
1110
|
quote: {
|
|
1111
|
+
source: string | null;
|
|
1112
|
+
id: string;
|
|
1113
|
+
status: "open" | "won" | "lost" | "archived";
|
|
1111
1114
|
createdAt: string;
|
|
1115
|
+
tags: string[];
|
|
1112
1116
|
updatedAt: string;
|
|
1113
|
-
|
|
1117
|
+
organizationId: string | null;
|
|
1114
1118
|
title: string;
|
|
1115
1119
|
pipelineId: string;
|
|
1116
1120
|
personId: string | null;
|
|
1117
|
-
organizationId: string | null;
|
|
1118
1121
|
stageId: string;
|
|
1119
1122
|
ownerId: string | null;
|
|
1120
|
-
status: "open" | "won" | "lost" | "archived";
|
|
1121
1123
|
acceptedVersionId: string | null;
|
|
1122
1124
|
valueAmountCents: number | null;
|
|
1123
1125
|
valueCurrency: string | null;
|
|
1124
1126
|
expectedCloseDate: string | null;
|
|
1125
|
-
source: string | null;
|
|
1126
1127
|
sourceRef: string | null;
|
|
1127
1128
|
lostReason: string | null;
|
|
1128
|
-
tags: string[];
|
|
1129
1129
|
stageChangedAt: string;
|
|
1130
1130
|
closedAt: string | null;
|
|
1131
1131
|
};
|
|
1132
1132
|
quoteVersion: {
|
|
1133
|
-
|
|
1133
|
+
id: string;
|
|
1134
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
1134
1135
|
createdAt: string;
|
|
1135
1136
|
updatedAt: string;
|
|
1136
|
-
id: string;
|
|
1137
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded" | "expired";
|
|
1138
1137
|
currency: string;
|
|
1138
|
+
notes: string | null;
|
|
1139
|
+
quoteId: string;
|
|
1139
1140
|
label: string | null;
|
|
1140
1141
|
supersedesId: string | null;
|
|
1141
1142
|
tripSnapshotId: string | null;
|
|
@@ -1143,19 +1144,19 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
1143
1144
|
subtotalAmountCents: number;
|
|
1144
1145
|
taxAmountCents: number;
|
|
1145
1146
|
totalAmountCents: number;
|
|
1146
|
-
notes: string | null;
|
|
1147
1147
|
sentAt: string | null;
|
|
1148
1148
|
viewedAt: string | null;
|
|
1149
1149
|
decidedAt: string | null;
|
|
1150
1150
|
archivedAt: string | null;
|
|
1151
1151
|
};
|
|
1152
1152
|
closedQuoteVersions: {
|
|
1153
|
-
|
|
1153
|
+
id: string;
|
|
1154
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
1154
1155
|
createdAt: string;
|
|
1155
1156
|
updatedAt: string;
|
|
1156
|
-
id: string;
|
|
1157
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded" | "expired";
|
|
1158
1157
|
currency: string;
|
|
1158
|
+
notes: string | null;
|
|
1159
|
+
quoteId: string;
|
|
1159
1160
|
label: string | null;
|
|
1160
1161
|
supersedesId: string | null;
|
|
1161
1162
|
tripSnapshotId: string | null;
|
|
@@ -1163,7 +1164,6 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
1163
1164
|
subtotalAmountCents: number;
|
|
1164
1165
|
taxAmountCents: number;
|
|
1165
1166
|
totalAmountCents: number;
|
|
1166
|
-
notes: string | null;
|
|
1167
1167
|
sentAt: string | null;
|
|
1168
1168
|
viewedAt: string | null;
|
|
1169
1169
|
decidedAt: string | null;
|
|
@@ -1210,7 +1210,7 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
1210
1210
|
id: string;
|
|
1211
1211
|
quoteId: string;
|
|
1212
1212
|
label: string | null;
|
|
1213
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded"
|
|
1213
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
1214
1214
|
supersedesId: string | null;
|
|
1215
1215
|
tripSnapshotId: string | null;
|
|
1216
1216
|
validUntil: string | null;
|
|
@@ -1290,16 +1290,16 @@ export declare const quotesRoutes: import("hono/hono-base").HonoBase<Env, import
|
|
|
1290
1290
|
};
|
|
1291
1291
|
output: {
|
|
1292
1292
|
data: {
|
|
1293
|
-
|
|
1293
|
+
id: string;
|
|
1294
1294
|
createdAt: string;
|
|
1295
|
-
updatedAt: string;
|
|
1296
1295
|
description: string;
|
|
1297
|
-
|
|
1296
|
+
updatedAt: string;
|
|
1297
|
+
currency: string;
|
|
1298
|
+
quoteVersionId: string;
|
|
1298
1299
|
productId: string | null;
|
|
1299
1300
|
supplierServiceId: string | null;
|
|
1300
1301
|
quantity: number;
|
|
1301
1302
|
unitPriceAmountCents: number;
|
|
1302
|
-
currency: string;
|
|
1303
1303
|
totalAmountCents: number;
|
|
1304
1304
|
};
|
|
1305
1305
|
};
|
|
@@ -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: "
|
|
15
|
+
entityType: "organization" | "person" | "quote" | "activity";
|
|
16
16
|
name: string;
|
|
17
17
|
isDefault: boolean;
|
|
18
18
|
sortOrder: number;
|
|
@@ -33,11 +33,11 @@ export declare const pipelineRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
33
33
|
input: {};
|
|
34
34
|
output: {
|
|
35
35
|
data: {
|
|
36
|
+
id: string;
|
|
36
37
|
name: string;
|
|
37
38
|
createdAt: string;
|
|
38
39
|
updatedAt: string;
|
|
39
|
-
|
|
40
|
-
entityType: "quote" | "organization" | "person" | "activity";
|
|
40
|
+
entityType: "organization" | "person" | "quote" | "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: "
|
|
71
|
+
entityType: "organization" | "person" | "quote" | "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: "
|
|
105
|
+
entityType: "organization" | "person" | "quote" | "activity";
|
|
106
106
|
name: string;
|
|
107
107
|
isDefault: boolean;
|
|
108
108
|
sortOrder: number;
|
|
@@ -171,10 +171,10 @@ export declare const pipelineRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
171
171
|
input: {};
|
|
172
172
|
output: {
|
|
173
173
|
data: {
|
|
174
|
+
id: string;
|
|
174
175
|
name: string;
|
|
175
176
|
createdAt: string;
|
|
176
177
|
updatedAt: string;
|
|
177
|
-
id: string;
|
|
178
178
|
sortOrder: number;
|
|
179
179
|
pipelineId: string;
|
|
180
180
|
probability: number | null;
|
|
@@ -14,7 +14,7 @@ export declare const quoteVersionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
14
14
|
id: string;
|
|
15
15
|
quoteId: string;
|
|
16
16
|
label: string | null;
|
|
17
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded"
|
|
17
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
18
18
|
supersedesId: string | null;
|
|
19
19
|
tripSnapshotId: string | null;
|
|
20
20
|
validUntil: string | null;
|
|
@@ -48,12 +48,13 @@ export declare const quoteVersionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
48
48
|
};
|
|
49
49
|
output: {
|
|
50
50
|
data: {
|
|
51
|
-
|
|
51
|
+
id: string;
|
|
52
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
52
53
|
createdAt: string;
|
|
53
54
|
updatedAt: string;
|
|
54
|
-
id: string;
|
|
55
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded" | "expired";
|
|
56
55
|
currency: string;
|
|
56
|
+
notes: string | null;
|
|
57
|
+
quoteId: string;
|
|
57
58
|
label: string | null;
|
|
58
59
|
supersedesId: string | null;
|
|
59
60
|
tripSnapshotId: string | null;
|
|
@@ -61,7 +62,6 @@ export declare const quoteVersionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
61
62
|
subtotalAmountCents: number;
|
|
62
63
|
taxAmountCents: number;
|
|
63
64
|
totalAmountCents: number;
|
|
64
|
-
notes: string | null;
|
|
65
65
|
sentAt: string | null;
|
|
66
66
|
viewedAt: string | null;
|
|
67
67
|
decidedAt: string | null;
|
|
@@ -92,7 +92,7 @@ export declare const quoteVersionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
92
92
|
id: string;
|
|
93
93
|
quoteId: string;
|
|
94
94
|
label: string | null;
|
|
95
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded"
|
|
95
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
96
96
|
supersedesId: string | null;
|
|
97
97
|
tripSnapshotId: string | null;
|
|
98
98
|
validUntil: string | null;
|
|
@@ -137,7 +137,7 @@ export declare const quoteVersionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
137
137
|
id: string;
|
|
138
138
|
quoteId: string;
|
|
139
139
|
label: string | null;
|
|
140
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded"
|
|
140
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
141
141
|
supersedesId: string | null;
|
|
142
142
|
tripSnapshotId: string | null;
|
|
143
143
|
validUntil: string | null;
|
|
@@ -182,7 +182,7 @@ export declare const quoteVersionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
182
182
|
id: string;
|
|
183
183
|
quoteId: string;
|
|
184
184
|
label: string | null;
|
|
185
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded"
|
|
185
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
186
186
|
supersedesId: string | null;
|
|
187
187
|
tripSnapshotId: string | null;
|
|
188
188
|
validUntil: string | null;
|
|
@@ -276,7 +276,7 @@ export declare const quoteVersionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
276
276
|
id: string;
|
|
277
277
|
quoteId: string;
|
|
278
278
|
label: string | null;
|
|
279
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded"
|
|
279
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
280
280
|
supersedesId: string | null;
|
|
281
281
|
tripSnapshotId: string | null;
|
|
282
282
|
validUntil: string | null;
|
|
@@ -293,16 +293,16 @@ export declare const quoteVersionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
293
293
|
archivedAt: string | null;
|
|
294
294
|
};
|
|
295
295
|
lines: {
|
|
296
|
-
|
|
296
|
+
id: string;
|
|
297
297
|
createdAt: string;
|
|
298
|
-
updatedAt: string;
|
|
299
298
|
description: string;
|
|
300
|
-
|
|
299
|
+
updatedAt: string;
|
|
300
|
+
currency: string;
|
|
301
|
+
quoteVersionId: string;
|
|
301
302
|
productId: string | null;
|
|
302
303
|
supplierServiceId: string | null;
|
|
303
304
|
quantity: number;
|
|
304
305
|
unitPriceAmountCents: number;
|
|
305
|
-
currency: string;
|
|
306
306
|
totalAmountCents: number;
|
|
307
307
|
}[];
|
|
308
308
|
};
|
|
@@ -346,7 +346,7 @@ export declare const quoteVersionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
346
346
|
id: string;
|
|
347
347
|
quoteId: string;
|
|
348
348
|
label: string | null;
|
|
349
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded"
|
|
349
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
350
350
|
supersedesId: string | null;
|
|
351
351
|
tripSnapshotId: string | null;
|
|
352
352
|
validUntil: string | null;
|
|
@@ -402,7 +402,7 @@ export declare const quoteVersionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
402
402
|
id: string;
|
|
403
403
|
quoteId: string;
|
|
404
404
|
label: string | null;
|
|
405
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded"
|
|
405
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
406
406
|
supersedesId: string | null;
|
|
407
407
|
tripSnapshotId: string | null;
|
|
408
408
|
validUntil: string | null;
|
|
@@ -445,34 +445,35 @@ export declare const quoteVersionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
445
445
|
output: {
|
|
446
446
|
data: {
|
|
447
447
|
quote: {
|
|
448
|
+
source: string | null;
|
|
449
|
+
id: string;
|
|
450
|
+
status: "open" | "won" | "lost" | "archived";
|
|
448
451
|
createdAt: string;
|
|
452
|
+
tags: string[];
|
|
449
453
|
updatedAt: string;
|
|
450
|
-
|
|
454
|
+
organizationId: string | null;
|
|
451
455
|
title: string;
|
|
452
456
|
pipelineId: string;
|
|
453
457
|
personId: string | null;
|
|
454
|
-
organizationId: string | null;
|
|
455
458
|
stageId: string;
|
|
456
459
|
ownerId: string | null;
|
|
457
|
-
status: "open" | "won" | "lost" | "archived";
|
|
458
460
|
acceptedVersionId: string | null;
|
|
459
461
|
valueAmountCents: number | null;
|
|
460
462
|
valueCurrency: string | null;
|
|
461
463
|
expectedCloseDate: string | null;
|
|
462
|
-
source: string | null;
|
|
463
464
|
sourceRef: string | null;
|
|
464
465
|
lostReason: string | null;
|
|
465
|
-
tags: string[];
|
|
466
466
|
stageChangedAt: string;
|
|
467
467
|
closedAt: string | null;
|
|
468
468
|
};
|
|
469
469
|
quoteVersion: {
|
|
470
|
-
|
|
470
|
+
id: string;
|
|
471
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
471
472
|
createdAt: string;
|
|
472
473
|
updatedAt: string;
|
|
473
|
-
id: string;
|
|
474
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded" | "expired";
|
|
475
474
|
currency: string;
|
|
475
|
+
notes: string | null;
|
|
476
|
+
quoteId: string;
|
|
476
477
|
label: string | null;
|
|
477
478
|
supersedesId: string | null;
|
|
478
479
|
tripSnapshotId: string | null;
|
|
@@ -480,19 +481,19 @@ export declare const quoteVersionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
480
481
|
subtotalAmountCents: number;
|
|
481
482
|
taxAmountCents: number;
|
|
482
483
|
totalAmountCents: number;
|
|
483
|
-
notes: string | null;
|
|
484
484
|
sentAt: string | null;
|
|
485
485
|
viewedAt: string | null;
|
|
486
486
|
decidedAt: string | null;
|
|
487
487
|
archivedAt: string | null;
|
|
488
488
|
};
|
|
489
489
|
closedQuoteVersions: {
|
|
490
|
-
|
|
490
|
+
id: string;
|
|
491
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
491
492
|
createdAt: string;
|
|
492
493
|
updatedAt: string;
|
|
493
|
-
id: string;
|
|
494
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded" | "expired";
|
|
495
494
|
currency: string;
|
|
495
|
+
notes: string | null;
|
|
496
|
+
quoteId: string;
|
|
496
497
|
label: string | null;
|
|
497
498
|
supersedesId: string | null;
|
|
498
499
|
tripSnapshotId: string | null;
|
|
@@ -500,7 +501,6 @@ export declare const quoteVersionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
500
501
|
subtotalAmountCents: number;
|
|
501
502
|
taxAmountCents: number;
|
|
502
503
|
totalAmountCents: number;
|
|
503
|
-
notes: string | null;
|
|
504
504
|
sentAt: string | null;
|
|
505
505
|
viewedAt: string | null;
|
|
506
506
|
decidedAt: string | null;
|
|
@@ -547,7 +547,7 @@ export declare const quoteVersionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
547
547
|
id: string;
|
|
548
548
|
quoteId: string;
|
|
549
549
|
label: string | null;
|
|
550
|
-
status: "draft" | "sent" | "accepted" | "declined" | "superseded"
|
|
550
|
+
status: "expired" | "draft" | "sent" | "accepted" | "declined" | "superseded";
|
|
551
551
|
supersedesId: string | null;
|
|
552
552
|
tripSnapshotId: string | null;
|
|
553
553
|
validUntil: string | null;
|
|
@@ -627,16 +627,16 @@ export declare const quoteVersionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
627
627
|
};
|
|
628
628
|
output: {
|
|
629
629
|
data: {
|
|
630
|
-
|
|
630
|
+
id: string;
|
|
631
631
|
createdAt: string;
|
|
632
|
-
updatedAt: string;
|
|
633
632
|
description: string;
|
|
634
|
-
|
|
633
|
+
updatedAt: string;
|
|
634
|
+
currency: string;
|
|
635
|
+
quoteVersionId: string;
|
|
635
636
|
productId: string | null;
|
|
636
637
|
supplierServiceId: string | null;
|
|
637
638
|
quantity: number;
|
|
638
639
|
unitPriceAmountCents: number;
|
|
639
|
-
currency: string;
|
|
640
640
|
totalAmountCents: number;
|
|
641
641
|
};
|
|
642
642
|
};
|