@voyantjs/pricing 0.26.0 → 0.26.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/dist/schema-catalogs.js +1 -1
- package/dist/schema-categories.js +1 -1
- package/dist/schema-option-rules.js +4 -4
- package/dist/schema-policies.js +1 -1
- package/dist/schema-relations.js +4 -4
- package/dist/schema.d.ts +6 -6
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +6 -6
- package/package.json +8 -8
package/dist/schema-catalogs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { typeId, typeIdRef } from "@voyantjs/db/lib/typeid-column";
|
|
2
2
|
import { boolean, date, index, integer, jsonb, pgTable, text, timestamp, uniqueIndex, } from "drizzle-orm/pg-core";
|
|
3
|
-
import { priceCatalogTypeEnum } from "./schema-shared";
|
|
3
|
+
import { priceCatalogTypeEnum } from "./schema-shared.js";
|
|
4
4
|
export const priceCatalogs = pgTable("price_catalogs", {
|
|
5
5
|
id: typeId("price_catalogs"),
|
|
6
6
|
code: text("code").notNull(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { typeId, typeIdRef } from "@voyantjs/db/lib/typeid-column";
|
|
2
2
|
import { boolean, index, integer, jsonb, pgTable, text, timestamp, uniqueIndex, } from "drizzle-orm/pg-core";
|
|
3
|
-
import { pricingCategoryTypeEnum, pricingDependencyTypeEnum } from "./schema-shared";
|
|
3
|
+
import { pricingCategoryTypeEnum, pricingDependencyTypeEnum } from "./schema-shared.js";
|
|
4
4
|
export const pricingCategories = pgTable("pricing_categories", {
|
|
5
5
|
id: typeId("pricing_categories"),
|
|
6
6
|
productId: text("product_id"),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { typeId, typeIdRef } from "@voyantjs/db/lib/typeid-column";
|
|
2
2
|
import { boolean, index, integer, jsonb, pgTable, text, timestamp, uniqueIndex, } from "drizzle-orm/pg-core";
|
|
3
|
-
import { priceCatalogs, priceSchedules } from "./schema-catalogs";
|
|
4
|
-
import { pricingCategories } from "./schema-categories";
|
|
5
|
-
import { cancellationPolicies } from "./schema-policies";
|
|
6
|
-
import { addonPricingModeEnum, optionPricingModeEnum, optionStartTimeRuleModeEnum, optionUnitPricingModeEnum, priceAdjustmentTypeEnum, } from "./schema-shared";
|
|
3
|
+
import { priceCatalogs, priceSchedules } from "./schema-catalogs.js";
|
|
4
|
+
import { pricingCategories } from "./schema-categories.js";
|
|
5
|
+
import { cancellationPolicies } from "./schema-policies.js";
|
|
6
|
+
import { addonPricingModeEnum, optionPricingModeEnum, optionStartTimeRuleModeEnum, optionUnitPricingModeEnum, priceAdjustmentTypeEnum, } from "./schema-shared.js";
|
|
7
7
|
export const optionPriceRules = pgTable("option_price_rules", {
|
|
8
8
|
id: typeId("option_price_rules"),
|
|
9
9
|
productId: text("product_id").notNull(),
|
package/dist/schema-policies.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { typeId, typeIdRef } from "@voyantjs/db/lib/typeid-column";
|
|
2
2
|
import { boolean, index, integer, jsonb, pgTable, text, timestamp, uniqueIndex, } from "drizzle-orm/pg-core";
|
|
3
|
-
import { cancellationChargeTypeEnum, cancellationPolicyTypeEnum } from "./schema-shared";
|
|
3
|
+
import { cancellationChargeTypeEnum, cancellationPolicyTypeEnum } from "./schema-shared.js";
|
|
4
4
|
export const cancellationPolicies = pgTable("cancellation_policies", {
|
|
5
5
|
id: typeId("cancellation_policies"),
|
|
6
6
|
code: text("code"),
|
package/dist/schema-relations.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { relations } from "drizzle-orm";
|
|
2
|
-
import { priceCatalogs, priceSchedules } from "./schema-catalogs";
|
|
3
|
-
import { pricingCategories, pricingCategoryDependencies } from "./schema-categories";
|
|
4
|
-
import { dropoffPriceRules, extraPriceRules, optionPriceRules, optionStartTimeRules, optionUnitPriceRules, optionUnitTiers, pickupPriceRules, } from "./schema-option-rules";
|
|
5
|
-
import { cancellationPolicies, cancellationPolicyRules } from "./schema-policies";
|
|
2
|
+
import { priceCatalogs, priceSchedules } from "./schema-catalogs.js";
|
|
3
|
+
import { pricingCategories, pricingCategoryDependencies } from "./schema-categories.js";
|
|
4
|
+
import { dropoffPriceRules, extraPriceRules, optionPriceRules, optionStartTimeRules, optionUnitPriceRules, optionUnitTiers, pickupPriceRules, } from "./schema-option-rules.js";
|
|
5
|
+
import { cancellationPolicies, cancellationPolicyRules } from "./schema-policies.js";
|
|
6
6
|
export const pricingCategoriesRelations = relations(pricingCategories, ({ many }) => ({
|
|
7
7
|
childDependencies: many(pricingCategoryDependencies, { relationName: "pricingCategoryChild" }),
|
|
8
8
|
masterDependencies: many(pricingCategoryDependencies, { relationName: "pricingCategoryMaster" }),
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./schema-catalogs";
|
|
2
|
-
export * from "./schema-categories";
|
|
3
|
-
export * from "./schema-option-rules";
|
|
4
|
-
export * from "./schema-policies";
|
|
5
|
-
export * from "./schema-relations";
|
|
6
|
-
export * from "./schema-shared";
|
|
1
|
+
export * from "./schema-catalogs.js";
|
|
2
|
+
export * from "./schema-categories.js";
|
|
3
|
+
export * from "./schema-option-rules.js";
|
|
4
|
+
export * from "./schema-policies.js";
|
|
5
|
+
export * from "./schema-relations.js";
|
|
6
|
+
export * from "./schema-shared.js";
|
|
7
7
|
//# sourceMappingURL=schema.d.ts.map
|
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA"}
|
package/dist/schema.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./schema-catalogs";
|
|
2
|
-
export * from "./schema-categories";
|
|
3
|
-
export * from "./schema-option-rules";
|
|
4
|
-
export * from "./schema-policies";
|
|
5
|
-
export * from "./schema-relations";
|
|
6
|
-
export * from "./schema-shared";
|
|
1
|
+
export * from "./schema-catalogs.js";
|
|
2
|
+
export * from "./schema-categories.js";
|
|
3
|
+
export * from "./schema-option-rules.js";
|
|
4
|
+
export * from "./schema-policies.js";
|
|
5
|
+
export * from "./schema-relations.js";
|
|
6
|
+
export * from "./schema-shared.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/pricing",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
"drizzle-orm": "^0.45.2",
|
|
40
40
|
"hono": "^4.12.10",
|
|
41
41
|
"zod": "^4.3.6",
|
|
42
|
-
"@voyantjs/availability": "0.26.
|
|
43
|
-
"@voyantjs/core": "0.26.
|
|
44
|
-
"@voyantjs/db": "0.26.
|
|
45
|
-
"@voyantjs/hono": "0.26.
|
|
46
|
-
"@voyantjs/products": "0.26.
|
|
42
|
+
"@voyantjs/availability": "0.26.1",
|
|
43
|
+
"@voyantjs/core": "0.26.1",
|
|
44
|
+
"@voyantjs/db": "0.26.1",
|
|
45
|
+
"@voyantjs/hono": "0.26.1",
|
|
46
|
+
"@voyantjs/products": "0.26.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"typescript": "^6.0.2",
|
|
50
|
-
"@voyantjs/extras": "0.26.
|
|
51
|
-
"@voyantjs/facilities": "0.26.
|
|
50
|
+
"@voyantjs/extras": "0.26.1",
|
|
51
|
+
"@voyantjs/facilities": "0.26.1",
|
|
52
52
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
53
53
|
},
|
|
54
54
|
"files": [
|