@voyantjs/sellability 0.28.1 → 0.29.0

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/routes.d.ts CHANGED
@@ -404,7 +404,7 @@ export declare const sellabilityRoutes: import("hono/hono-base").HonoBase<Env, {
404
404
  offerId: string;
405
405
  personId: string | null;
406
406
  participantType: "staff" | "other" | "traveler" | "occupant";
407
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
407
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
408
408
  firstName: string;
409
409
  lastName: string;
410
410
  email: string | null;
@@ -659,8 +659,8 @@ export declare const sellabilityRoutes: import("hono/hono-base").HonoBase<Env, {
659
659
  metadata: {
660
660
  [x: string]: import("hono/utils/types").JSONValue;
661
661
  } | null;
662
- id: string;
663
662
  name: string;
663
+ id: string;
664
664
  createdAt: string;
665
665
  updatedAt: string;
666
666
  scope: "channel" | "product" | "option" | "market" | "global";
@@ -968,7 +968,7 @@ export declare const sellabilityRoutes: import("hono/hono-base").HonoBase<Env, {
968
968
  id: string;
969
969
  offerId: string;
970
970
  snapshotId: string | null;
971
- status: "pending" | "failed" | "expired" | "running" | "completed";
971
+ status: "pending" | "running" | "completed" | "failed" | "expired";
972
972
  startedAt: string;
973
973
  completedAt: string | null;
974
974
  notes: string | null;
@@ -998,7 +998,7 @@ export declare const sellabilityRoutes: import("hono/hono-base").HonoBase<Env, {
998
998
  id: string;
999
999
  createdAt: string;
1000
1000
  updatedAt: string;
1001
- status: "pending" | "failed" | "expired" | "running" | "completed";
1001
+ status: "pending" | "running" | "completed" | "failed" | "expired";
1002
1002
  notes: string | null;
1003
1003
  startedAt: string;
1004
1004
  completedAt: string | null;
@@ -1034,7 +1034,7 @@ export declare const sellabilityRoutes: import("hono/hono-base").HonoBase<Env, {
1034
1034
  id: string;
1035
1035
  offerId: string;
1036
1036
  snapshotId: string | null;
1037
- status: "pending" | "failed" | "expired" | "running" | "completed";
1037
+ status: "pending" | "running" | "completed" | "failed" | "expired";
1038
1038
  startedAt: string;
1039
1039
  completedAt: string | null;
1040
1040
  notes: string | null;
@@ -1073,7 +1073,7 @@ export declare const sellabilityRoutes: import("hono/hono-base").HonoBase<Env, {
1073
1073
  id: string;
1074
1074
  offerId: string;
1075
1075
  snapshotId: string | null;
1076
- status: "pending" | "failed" | "expired" | "running" | "completed";
1076
+ status: "pending" | "running" | "completed" | "failed" | "expired";
1077
1077
  startedAt: string;
1078
1078
  completedAt: string | null;
1079
1079
  notes: string | null;
package/dist/schema.d.ts CHANGED
@@ -1211,7 +1211,7 @@ export declare const offerRefreshRuns: import("drizzle-orm/pg-core").PgTableWith
1211
1211
  tableName: "offer_refresh_runs";
1212
1212
  dataType: "string";
1213
1213
  columnType: "PgEnumColumn";
1214
- data: "pending" | "failed" | "expired" | "running" | "completed";
1214
+ data: "pending" | "running" | "completed" | "failed" | "expired";
1215
1215
  driverParam: string;
1216
1216
  notNull: true;
1217
1217
  hasDefault: true;
package/dist/service.d.ts CHANGED
@@ -192,7 +192,7 @@ export declare const sellabilityService: {
192
192
  offerId: string;
193
193
  personId: string | null;
194
194
  participantType: "staff" | "other" | "traveler" | "occupant";
195
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
195
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
196
196
  firstName: string;
197
197
  lastName: string;
198
198
  email: string | null;
@@ -477,8 +477,8 @@ export declare const sellabilityService: {
477
477
  } | null>;
478
478
  createPolicy(db: PostgresJsDatabase, data: CreateSellabilityPolicyInput): Promise<{
479
479
  metadata: Record<string, unknown> | null;
480
- id: string;
481
480
  name: string;
481
+ id: string;
482
482
  createdAt: Date;
483
483
  updatedAt: Date;
484
484
  scope: "channel" | "product" | "option" | "market" | "global";
@@ -571,7 +571,7 @@ export declare const sellabilityService: {
571
571
  id: string;
572
572
  offerId: string;
573
573
  snapshotId: string | null;
574
- status: "pending" | "failed" | "expired" | "running" | "completed";
574
+ status: "pending" | "running" | "completed" | "failed" | "expired";
575
575
  startedAt: Date;
576
576
  completedAt: Date | null;
577
577
  notes: string | null;
@@ -587,7 +587,7 @@ export declare const sellabilityService: {
587
587
  id: string;
588
588
  offerId: string;
589
589
  snapshotId: string | null;
590
- status: "pending" | "failed" | "expired" | "running" | "completed";
590
+ status: "pending" | "running" | "completed" | "failed" | "expired";
591
591
  startedAt: Date;
592
592
  completedAt: Date | null;
593
593
  notes: string | null;
@@ -600,7 +600,7 @@ export declare const sellabilityService: {
600
600
  id: string;
601
601
  createdAt: Date;
602
602
  updatedAt: Date;
603
- status: "pending" | "failed" | "expired" | "running" | "completed";
603
+ status: "pending" | "running" | "completed" | "failed" | "expired";
604
604
  notes: string | null;
605
605
  startedAt: Date;
606
606
  completedAt: Date | null;
@@ -611,7 +611,7 @@ export declare const sellabilityService: {
611
611
  id: string;
612
612
  offerId: string;
613
613
  snapshotId: string | null;
614
- status: "pending" | "failed" | "expired" | "running" | "completed";
614
+ status: "pending" | "running" | "completed" | "failed" | "expired";
615
615
  startedAt: Date;
616
616
  completedAt: Date | null;
617
617
  notes: string | null;
@@ -53,10 +53,10 @@ export declare const sellabilityPolicyResultStatusSchema: z.ZodEnum<{
53
53
  }>;
54
54
  export declare const offerRefreshRunStatusSchema: z.ZodEnum<{
55
55
  pending: "pending";
56
- failed: "failed";
57
- expired: "expired";
58
56
  running: "running";
59
57
  completed: "completed";
58
+ failed: "failed";
59
+ expired: "expired";
60
60
  }>;
61
61
  export declare const offerExpirationEventStatusSchema: z.ZodEnum<{
62
62
  cancelled: "cancelled";
@@ -82,9 +82,9 @@ export declare const sellabilityOfferParticipantSchema: z.ZodObject<{
82
82
  occupant: "occupant";
83
83
  }>>;
84
84
  travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
85
+ child: "child";
85
86
  other: "other";
86
87
  adult: "adult";
87
- child: "child";
88
88
  infant: "infant";
89
89
  senior: "senior";
90
90
  }>>>;
@@ -182,9 +182,9 @@ export declare const sellabilityConstructOfferSchema: z.ZodObject<{
182
182
  occupant: "occupant";
183
183
  }>>;
184
184
  travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
185
+ child: "child";
185
186
  other: "other";
186
187
  adult: "adult";
187
- child: "child";
188
188
  infant: "infant";
189
189
  senior: "senior";
190
190
  }>>>;
@@ -450,10 +450,10 @@ export declare const offerRefreshRunCoreSchema: z.ZodObject<{
450
450
  snapshotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
451
451
  status: z.ZodDefault<z.ZodEnum<{
452
452
  pending: "pending";
453
- failed: "failed";
454
- expired: "expired";
455
453
  running: "running";
456
454
  completed: "completed";
455
+ failed: "failed";
456
+ expired: "expired";
457
457
  }>>;
458
458
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
459
459
  completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -465,10 +465,10 @@ export declare const insertOfferRefreshRunSchema: z.ZodObject<{
465
465
  snapshotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
466
466
  status: z.ZodDefault<z.ZodEnum<{
467
467
  pending: "pending";
468
- failed: "failed";
469
- expired: "expired";
470
468
  running: "running";
471
469
  completed: "completed";
470
+ failed: "failed";
471
+ expired: "expired";
472
472
  }>>;
473
473
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
474
474
  completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -480,10 +480,10 @@ export declare const updateOfferRefreshRunSchema: z.ZodObject<{
480
480
  snapshotId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
481
481
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
482
482
  pending: "pending";
483
- failed: "failed";
484
- expired: "expired";
485
483
  running: "running";
486
484
  completed: "completed";
485
+ failed: "failed";
486
+ expired: "expired";
487
487
  }>>>;
488
488
  startedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
489
489
  completedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -497,10 +497,10 @@ export declare const offerRefreshRunListQuerySchema: z.ZodObject<{
497
497
  snapshotId: z.ZodOptional<z.ZodString>;
498
498
  status: z.ZodOptional<z.ZodEnum<{
499
499
  pending: "pending";
500
- failed: "failed";
501
- expired: "expired";
502
500
  running: "running";
503
501
  completed: "completed";
502
+ failed: "failed";
503
+ expired: "expired";
504
504
  }>>;
505
505
  }, z.core.$strip>;
506
506
  export declare const offerExpirationEventCoreSchema: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/sellability",
3
- "version": "0.28.1",
3
+ "version": "0.29.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -29,15 +29,15 @@
29
29
  "drizzle-orm": "^0.45.2",
30
30
  "hono": "^4.12.10",
31
31
  "zod": "^4.3.6",
32
- "@voyantjs/availability": "0.28.1",
33
- "@voyantjs/core": "0.28.1",
34
- "@voyantjs/db": "0.28.1",
35
- "@voyantjs/distribution": "0.28.1",
36
- "@voyantjs/hono": "0.28.1",
37
- "@voyantjs/markets": "0.28.1",
38
- "@voyantjs/pricing": "0.28.1",
39
- "@voyantjs/products": "0.28.1",
40
- "@voyantjs/transactions": "0.28.1"
32
+ "@voyantjs/availability": "0.29.0",
33
+ "@voyantjs/core": "0.29.0",
34
+ "@voyantjs/db": "0.29.0",
35
+ "@voyantjs/distribution": "0.29.0",
36
+ "@voyantjs/hono": "0.29.0",
37
+ "@voyantjs/markets": "0.29.0",
38
+ "@voyantjs/pricing": "0.29.0",
39
+ "@voyantjs/products": "0.29.0",
40
+ "@voyantjs/transactions": "0.29.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "typescript": "^6.0.2",