@voyant-travel/inventory 0.4.3 → 0.4.5
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/authoring/clone-content.d.ts +1 -0
- package/dist/authoring/clone-content.d.ts.map +1 -1
- package/dist/authoring/clone-content.js +35 -3
- package/dist/authoring/clone.d.ts.map +1 -1
- package/dist/authoring/clone.js +1 -0
- package/dist/interface.d.ts +299 -1
- package/dist/interface.d.ts.map +1 -1
- package/dist/routes-itinerary-translations.d.ts +301 -0
- package/dist/routes-itinerary-translations.d.ts.map +1 -0
- package/dist/routes-itinerary-translations.js +168 -0
- package/dist/routes-itinerary.d.ts +1 -1
- package/dist/routes.d.ts +299 -1
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +2 -0
- package/dist/schema-itinerary.d.ts +256 -0
- package/dist/schema-itinerary.d.ts.map +1 -1
- package/dist/schema-itinerary.js +30 -0
- package/dist/schema-relations.d.ts +12 -0
- package/dist/schema-relations.d.ts.map +1 -1
- package/dist/schema-relations.js +20 -2
- package/dist/service-content-owned.d.ts +2 -6
- package/dist/service-content-owned.d.ts.map +1 -1
- package/dist/service-content-owned.js +80 -20
- package/dist/service-itinerary-translations.d.ts +122 -0
- package/dist/service-itinerary-translations.d.ts.map +1 -0
- package/dist/service-itinerary-translations.js +176 -0
- package/dist/service-option-translations.d.ts +1 -1
- package/dist/service.d.ts +136 -1
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +2 -0
- package/migrations/0001_inventory_baseline.sql +28 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +9 -9
|
@@ -12,6 +12,7 @@ export interface CloneContext {
|
|
|
12
12
|
}[]>;
|
|
13
13
|
itineraryIdMap: Map<string, string>;
|
|
14
14
|
dayIdMap: Map<string, string>;
|
|
15
|
+
serviceIdMap: Map<string, string>;
|
|
15
16
|
startTimeIdMap: Map<string, string>;
|
|
16
17
|
ruleIdMap: Map<string, string>;
|
|
17
18
|
slotIdMap: Map<string, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-content.d.ts","sourceRoot":"","sources":["../../src/authoring/clone-content.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"clone-content.d.ts","sourceRoot":"","sources":["../../src/authoring/clone-content.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AA4BjE,+EAA+E;AAC/E,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,kBAAkB,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,OAAO,CAAA;IACvB,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC,CAAA;IAC/C,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACnC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7B,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACjC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACnC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,oBAAoB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzC,wBAAwB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,oBAAoB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACtC,sBAAsB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC5C;AAED,KAAK,aAAa,GAAG;IACnB,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,aAAa,EAAE,GAAG,EAAE,CAAC,6CAGnE;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA6HzE"}
|
|
@@ -2,7 +2,7 @@ import { pricingCategories, pricingCategoryDependencies } from "@voyant-travel/c
|
|
|
2
2
|
import { productOptionResourceTemplates } from "@voyant-travel/operations";
|
|
3
3
|
import { eq, inArray } from "drizzle-orm";
|
|
4
4
|
import { optionExtraConfigs, productExtras } from "../extras.js";
|
|
5
|
-
import { optionUnits, optionUnitTranslations, productActivationSettings, productCapabilities, productCategoryProducts, productDayServices, productDays, productDayTranslations, productDeliveryFormats, productDestinations, productFaqs, productFeatures, productItineraries, productLocations, productMedia, productOptions, productOptionTranslations, productTagProducts, productTicketSettings, productTranslations, productVisibilitySettings, } from "../schema.js";
|
|
5
|
+
import { optionUnits, optionUnitTranslations, productActivationSettings, productCapabilities, productCategoryProducts, productDayServices, productDayServiceTranslations, productDays, productDayTranslations, productDeliveryFormats, productDestinations, productFaqs, productFeatures, productItineraries, productItineraryTranslations, productLocations, productMedia, productOptions, productOptionTranslations, productTagProducts, productTicketSettings, productTranslations, productVisibilitySettings, } from "../schema.js";
|
|
6
6
|
export function withoutSystemColumns(row) {
|
|
7
7
|
const { id: _id, createdAt: _createdAt, updatedAt: _updatedAt, ...values } = row;
|
|
8
8
|
return values;
|
|
@@ -247,7 +247,7 @@ async function copyPricingCategories(ctx) {
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
async function copyItinerary(ctx) {
|
|
250
|
-
const { tx, sourceId, targetId, itineraryIdMap, dayIdMap } = ctx;
|
|
250
|
+
const { tx, sourceId, targetId, itineraryIdMap, dayIdMap, serviceIdMap } = ctx;
|
|
251
251
|
const sourceItineraries = await tx
|
|
252
252
|
.select()
|
|
253
253
|
.from(productItineraries)
|
|
@@ -267,6 +267,18 @@ async function copyItinerary(ctx) {
|
|
|
267
267
|
return;
|
|
268
268
|
}
|
|
269
269
|
const sourceItineraryIds = sourceItineraries.map((row) => row.id);
|
|
270
|
+
const itineraryTranslationRows = await tx
|
|
271
|
+
.select()
|
|
272
|
+
.from(productItineraryTranslations)
|
|
273
|
+
.where(inArray(productItineraryTranslations.itineraryId, sourceItineraryIds));
|
|
274
|
+
for (const row of itineraryTranslationRows) {
|
|
275
|
+
const targetItineraryId = itineraryIdMap.get(row.itineraryId);
|
|
276
|
+
if (!targetItineraryId)
|
|
277
|
+
continue;
|
|
278
|
+
await tx
|
|
279
|
+
.insert(productItineraryTranslations)
|
|
280
|
+
.values({ ...withoutSystemColumns(row), itineraryId: targetItineraryId });
|
|
281
|
+
}
|
|
270
282
|
const sourceDays = await tx
|
|
271
283
|
.select()
|
|
272
284
|
.from(productDays)
|
|
@@ -293,7 +305,27 @@ async function copyItinerary(ctx) {
|
|
|
293
305
|
const targetDayId = dayIdMap.get(row.dayId);
|
|
294
306
|
if (!targetDayId)
|
|
295
307
|
continue;
|
|
296
|
-
|
|
308
|
+
const [copy] = await tx
|
|
309
|
+
.insert(productDayServices)
|
|
310
|
+
.values({ ...withoutSystemColumns(row), dayId: targetDayId })
|
|
311
|
+
.returning();
|
|
312
|
+
if (copy)
|
|
313
|
+
serviceIdMap.set(row.id, copy.id);
|
|
314
|
+
}
|
|
315
|
+
const sourceServiceIds = dayServiceRows.map((row) => row.id);
|
|
316
|
+
if (sourceServiceIds.length > 0) {
|
|
317
|
+
const dayServiceTranslationRows = await tx
|
|
318
|
+
.select()
|
|
319
|
+
.from(productDayServiceTranslations)
|
|
320
|
+
.where(inArray(productDayServiceTranslations.serviceId, sourceServiceIds));
|
|
321
|
+
for (const row of dayServiceTranslationRows) {
|
|
322
|
+
const targetServiceId = serviceIdMap.get(row.serviceId);
|
|
323
|
+
if (!targetServiceId)
|
|
324
|
+
continue;
|
|
325
|
+
await tx
|
|
326
|
+
.insert(productDayServiceTranslations)
|
|
327
|
+
.values({ ...withoutSystemColumns(row), serviceId: targetServiceId });
|
|
328
|
+
}
|
|
297
329
|
}
|
|
298
330
|
const dayTranslationRows = await tx
|
|
299
331
|
.select()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone.d.ts","sourceRoot":"","sources":["../../src/authoring/clone.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,EAA+B,QAAQ,EAAE,MAAM,cAAc,CAAA;AAMpE,KAAK,OAAO,GAAG,OAAO,QAAQ,CAAC,YAAY,CAAA;AAE3C,MAAM,WAAW,mBAAmB;IAClC,2FAA2F;IAC3F,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+CAA+C;IAC/C,MAAM,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;IAC1B,wDAAwD;IACxD,UAAU,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;IAClC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,6FAA6F;IAC7F,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CACxB;AAED,MAAM,MAAM,mBAAmB,G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AE,MAAM,EACvB,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,mBAAmB,CAAC,CAqD9B"}
|
package/dist/authoring/clone.js
CHANGED
package/dist/interface.d.ts
CHANGED
|
@@ -4366,10 +4366,10 @@ export declare const inventoryProductRoutes: import("hono/hono-base").HonoBase<i
|
|
|
4366
4366
|
createdAt: string;
|
|
4367
4367
|
description: string | null;
|
|
4368
4368
|
updatedAt: string;
|
|
4369
|
+
languageTag: string;
|
|
4369
4370
|
title: string | null;
|
|
4370
4371
|
location: string | null;
|
|
4371
4372
|
dayId: string;
|
|
4372
|
-
languageTag: string;
|
|
4373
4373
|
};
|
|
4374
4374
|
};
|
|
4375
4375
|
outputFormat: "json";
|
|
@@ -4563,6 +4563,304 @@ export declare const inventoryProductRoutes: import("hono/hono-base").HonoBase<i
|
|
|
4563
4563
|
status: 201;
|
|
4564
4564
|
};
|
|
4565
4565
|
};
|
|
4566
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
4567
|
+
"/:id/itineraries/:itineraryId/translations": {
|
|
4568
|
+
$get: {
|
|
4569
|
+
input: {
|
|
4570
|
+
param: {
|
|
4571
|
+
id: string;
|
|
4572
|
+
} & {
|
|
4573
|
+
itineraryId: string;
|
|
4574
|
+
};
|
|
4575
|
+
};
|
|
4576
|
+
output: {
|
|
4577
|
+
data: {
|
|
4578
|
+
id: string;
|
|
4579
|
+
itineraryId: string;
|
|
4580
|
+
languageTag: string;
|
|
4581
|
+
name: string;
|
|
4582
|
+
createdAt: string;
|
|
4583
|
+
updatedAt: string;
|
|
4584
|
+
}[];
|
|
4585
|
+
total: number;
|
|
4586
|
+
limit: number;
|
|
4587
|
+
offset: number;
|
|
4588
|
+
};
|
|
4589
|
+
outputFormat: "json";
|
|
4590
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4591
|
+
};
|
|
4592
|
+
};
|
|
4593
|
+
} & {
|
|
4594
|
+
"/:id/itineraries/:itineraryId/translations": {
|
|
4595
|
+
$post: {
|
|
4596
|
+
input: {
|
|
4597
|
+
param: {
|
|
4598
|
+
id: string;
|
|
4599
|
+
} & {
|
|
4600
|
+
itineraryId: string;
|
|
4601
|
+
};
|
|
4602
|
+
};
|
|
4603
|
+
output: {
|
|
4604
|
+
error: string;
|
|
4605
|
+
};
|
|
4606
|
+
outputFormat: "json";
|
|
4607
|
+
status: 404;
|
|
4608
|
+
} | {
|
|
4609
|
+
input: {
|
|
4610
|
+
param: {
|
|
4611
|
+
id: string;
|
|
4612
|
+
} & {
|
|
4613
|
+
itineraryId: string;
|
|
4614
|
+
};
|
|
4615
|
+
};
|
|
4616
|
+
output: {
|
|
4617
|
+
data: {
|
|
4618
|
+
id: string;
|
|
4619
|
+
name: string;
|
|
4620
|
+
createdAt: string;
|
|
4621
|
+
updatedAt: string;
|
|
4622
|
+
itineraryId: string;
|
|
4623
|
+
languageTag: string;
|
|
4624
|
+
};
|
|
4625
|
+
};
|
|
4626
|
+
outputFormat: "json";
|
|
4627
|
+
status: 201;
|
|
4628
|
+
};
|
|
4629
|
+
};
|
|
4630
|
+
} & {
|
|
4631
|
+
"/:id/itineraries/:itineraryId/translations/:translationId": {
|
|
4632
|
+
$patch: {
|
|
4633
|
+
input: {
|
|
4634
|
+
param: {
|
|
4635
|
+
id: string;
|
|
4636
|
+
} & {
|
|
4637
|
+
itineraryId: string;
|
|
4638
|
+
} & {
|
|
4639
|
+
translationId: string;
|
|
4640
|
+
};
|
|
4641
|
+
};
|
|
4642
|
+
output: {
|
|
4643
|
+
error: string;
|
|
4644
|
+
};
|
|
4645
|
+
outputFormat: "json";
|
|
4646
|
+
status: 404;
|
|
4647
|
+
} | {
|
|
4648
|
+
input: {
|
|
4649
|
+
param: {
|
|
4650
|
+
id: string;
|
|
4651
|
+
} & {
|
|
4652
|
+
itineraryId: string;
|
|
4653
|
+
} & {
|
|
4654
|
+
translationId: string;
|
|
4655
|
+
};
|
|
4656
|
+
};
|
|
4657
|
+
output: {
|
|
4658
|
+
data: {
|
|
4659
|
+
id: string;
|
|
4660
|
+
itineraryId: string;
|
|
4661
|
+
languageTag: string;
|
|
4662
|
+
name: string;
|
|
4663
|
+
createdAt: string;
|
|
4664
|
+
updatedAt: string;
|
|
4665
|
+
};
|
|
4666
|
+
};
|
|
4667
|
+
outputFormat: "json";
|
|
4668
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4669
|
+
};
|
|
4670
|
+
};
|
|
4671
|
+
} & {
|
|
4672
|
+
"/:id/itineraries/:itineraryId/translations/:translationId": {
|
|
4673
|
+
$delete: {
|
|
4674
|
+
input: {
|
|
4675
|
+
param: {
|
|
4676
|
+
id: string;
|
|
4677
|
+
} & {
|
|
4678
|
+
itineraryId: string;
|
|
4679
|
+
} & {
|
|
4680
|
+
translationId: string;
|
|
4681
|
+
};
|
|
4682
|
+
};
|
|
4683
|
+
output: {
|
|
4684
|
+
error: string;
|
|
4685
|
+
};
|
|
4686
|
+
outputFormat: "json";
|
|
4687
|
+
status: 404;
|
|
4688
|
+
} | {
|
|
4689
|
+
input: {
|
|
4690
|
+
param: {
|
|
4691
|
+
id: string;
|
|
4692
|
+
} & {
|
|
4693
|
+
itineraryId: string;
|
|
4694
|
+
} & {
|
|
4695
|
+
translationId: string;
|
|
4696
|
+
};
|
|
4697
|
+
};
|
|
4698
|
+
output: {
|
|
4699
|
+
success: true;
|
|
4700
|
+
};
|
|
4701
|
+
outputFormat: "json";
|
|
4702
|
+
status: 200;
|
|
4703
|
+
};
|
|
4704
|
+
};
|
|
4705
|
+
} & {
|
|
4706
|
+
"/:id/days/:dayId/services/:serviceId/translations": {
|
|
4707
|
+
$get: {
|
|
4708
|
+
input: {
|
|
4709
|
+
param: {
|
|
4710
|
+
id: string;
|
|
4711
|
+
} & {
|
|
4712
|
+
dayId: string;
|
|
4713
|
+
} & {
|
|
4714
|
+
serviceId: string;
|
|
4715
|
+
};
|
|
4716
|
+
};
|
|
4717
|
+
output: {
|
|
4718
|
+
data: {
|
|
4719
|
+
id: string;
|
|
4720
|
+
serviceId: string;
|
|
4721
|
+
languageTag: string;
|
|
4722
|
+
name: string;
|
|
4723
|
+
description: string | null;
|
|
4724
|
+
notes: string | null;
|
|
4725
|
+
createdAt: string;
|
|
4726
|
+
updatedAt: string;
|
|
4727
|
+
}[];
|
|
4728
|
+
total: number;
|
|
4729
|
+
limit: number;
|
|
4730
|
+
offset: number;
|
|
4731
|
+
};
|
|
4732
|
+
outputFormat: "json";
|
|
4733
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4734
|
+
};
|
|
4735
|
+
};
|
|
4736
|
+
} & {
|
|
4737
|
+
"/:id/days/:dayId/services/:serviceId/translations": {
|
|
4738
|
+
$post: {
|
|
4739
|
+
input: {
|
|
4740
|
+
param: {
|
|
4741
|
+
id: string;
|
|
4742
|
+
} & {
|
|
4743
|
+
dayId: string;
|
|
4744
|
+
} & {
|
|
4745
|
+
serviceId: string;
|
|
4746
|
+
};
|
|
4747
|
+
};
|
|
4748
|
+
output: {
|
|
4749
|
+
error: string;
|
|
4750
|
+
};
|
|
4751
|
+
outputFormat: "json";
|
|
4752
|
+
status: 404;
|
|
4753
|
+
} | {
|
|
4754
|
+
input: {
|
|
4755
|
+
param: {
|
|
4756
|
+
id: string;
|
|
4757
|
+
} & {
|
|
4758
|
+
dayId: string;
|
|
4759
|
+
} & {
|
|
4760
|
+
serviceId: string;
|
|
4761
|
+
};
|
|
4762
|
+
};
|
|
4763
|
+
output: {
|
|
4764
|
+
data: {
|
|
4765
|
+
id: string;
|
|
4766
|
+
name: string;
|
|
4767
|
+
createdAt: string;
|
|
4768
|
+
description: string | null;
|
|
4769
|
+
updatedAt: string;
|
|
4770
|
+
languageTag: string;
|
|
4771
|
+
notes: string | null;
|
|
4772
|
+
serviceId: string;
|
|
4773
|
+
};
|
|
4774
|
+
};
|
|
4775
|
+
outputFormat: "json";
|
|
4776
|
+
status: 201;
|
|
4777
|
+
};
|
|
4778
|
+
};
|
|
4779
|
+
} & {
|
|
4780
|
+
"/:id/days/:dayId/services/:serviceId/translations/:translationId": {
|
|
4781
|
+
$patch: {
|
|
4782
|
+
input: {
|
|
4783
|
+
param: {
|
|
4784
|
+
id: string;
|
|
4785
|
+
} & {
|
|
4786
|
+
dayId: string;
|
|
4787
|
+
} & {
|
|
4788
|
+
serviceId: string;
|
|
4789
|
+
} & {
|
|
4790
|
+
translationId: string;
|
|
4791
|
+
};
|
|
4792
|
+
};
|
|
4793
|
+
output: {
|
|
4794
|
+
error: string;
|
|
4795
|
+
};
|
|
4796
|
+
outputFormat: "json";
|
|
4797
|
+
status: 404;
|
|
4798
|
+
} | {
|
|
4799
|
+
input: {
|
|
4800
|
+
param: {
|
|
4801
|
+
id: string;
|
|
4802
|
+
} & {
|
|
4803
|
+
dayId: string;
|
|
4804
|
+
} & {
|
|
4805
|
+
serviceId: string;
|
|
4806
|
+
} & {
|
|
4807
|
+
translationId: string;
|
|
4808
|
+
};
|
|
4809
|
+
};
|
|
4810
|
+
output: {
|
|
4811
|
+
data: {
|
|
4812
|
+
id: string;
|
|
4813
|
+
serviceId: string;
|
|
4814
|
+
languageTag: string;
|
|
4815
|
+
name: string;
|
|
4816
|
+
description: string | null;
|
|
4817
|
+
notes: string | null;
|
|
4818
|
+
createdAt: string;
|
|
4819
|
+
updatedAt: string;
|
|
4820
|
+
};
|
|
4821
|
+
};
|
|
4822
|
+
outputFormat: "json";
|
|
4823
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4824
|
+
};
|
|
4825
|
+
};
|
|
4826
|
+
} & {
|
|
4827
|
+
"/:id/days/:dayId/services/:serviceId/translations/:translationId": {
|
|
4828
|
+
$delete: {
|
|
4829
|
+
input: {
|
|
4830
|
+
param: {
|
|
4831
|
+
id: string;
|
|
4832
|
+
} & {
|
|
4833
|
+
dayId: string;
|
|
4834
|
+
} & {
|
|
4835
|
+
serviceId: string;
|
|
4836
|
+
} & {
|
|
4837
|
+
translationId: string;
|
|
4838
|
+
};
|
|
4839
|
+
};
|
|
4840
|
+
output: {
|
|
4841
|
+
error: string;
|
|
4842
|
+
};
|
|
4843
|
+
outputFormat: "json";
|
|
4844
|
+
status: 404;
|
|
4845
|
+
} | {
|
|
4846
|
+
input: {
|
|
4847
|
+
param: {
|
|
4848
|
+
id: string;
|
|
4849
|
+
} & {
|
|
4850
|
+
dayId: string;
|
|
4851
|
+
} & {
|
|
4852
|
+
serviceId: string;
|
|
4853
|
+
} & {
|
|
4854
|
+
translationId: string;
|
|
4855
|
+
};
|
|
4856
|
+
};
|
|
4857
|
+
output: {
|
|
4858
|
+
success: true;
|
|
4859
|
+
};
|
|
4860
|
+
outputFormat: "json";
|
|
4861
|
+
status: 200;
|
|
4862
|
+
};
|
|
4863
|
+
};
|
|
4566
4864
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
4567
4865
|
"/:id/categories": {
|
|
4568
4866
|
$get: {
|
package/dist/interface.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../src/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAM5D,eAAO,MAAM,wBAAwB,EAAE,kBAKtC,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,MAK7B,CAAA;AAED,eAAO,MAAM,qCAAqC,EAAE,kBAKnD,CAAA;AASD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAKjC,CAAA;AAED,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../src/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAM5D,eAAO,M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