@voyant-travel/commerce 0.1.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/LICENSE +201 -0
- package/README.md +145 -0
- package/dist/accepted-quote-version-reservation-golden-flow.test.d.ts +2 -0
- package/dist/accepted-quote-version-reservation-golden-flow.test.d.ts.map +1 -0
- package/dist/accepted-quote-version-reservation-golden-flow.test.js +398 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -0
- package/dist/interface.d.ts +18 -0
- package/dist/interface.d.ts.map +1 -0
- package/dist/interface.js +246 -0
- package/dist/interface.test.d.ts +2 -0
- package/dist/interface.test.d.ts.map +1 -0
- package/dist/interface.test.js +357 -0
- package/dist/markets/index.d.ts +11 -0
- package/dist/markets/index.d.ts.map +1 -0
- package/dist/markets/index.js +12 -0
- package/dist/markets/routes.d.ts +1182 -0
- package/dist/markets/routes.d.ts.map +1 -0
- package/dist/markets/routes.js +209 -0
- package/dist/markets/schema.d.ts +1527 -0
- package/dist/markets/schema.d.ts.map +1 -0
- package/dist/markets/schema.js +240 -0
- package/dist/markets/service-core.d.ts +253 -0
- package/dist/markets/service-core.d.ts.map +1 -0
- package/dist/markets/service-core.js +242 -0
- package/dist/markets/service-rules.d.ts +191 -0
- package/dist/markets/service-rules.d.ts.map +1 -0
- package/dist/markets/service-rules.js +155 -0
- package/dist/markets/service-shared.d.ts +36 -0
- package/dist/markets/service-shared.d.ts.map +1 -0
- package/dist/markets/service-shared.js +7 -0
- package/dist/markets/service.d.ts +43 -0
- package/dist/markets/service.d.ts.map +1 -0
- package/dist/markets/service.js +42 -0
- package/dist/markets/validation.d.ts +451 -0
- package/dist/markets/validation.d.ts.map +1 -0
- package/dist/markets/validation.js +160 -0
- package/dist/pricing/events.d.ts +53 -0
- package/dist/pricing/events.d.ts.map +1 -0
- package/dist/pricing/events.js +28 -0
- package/dist/pricing/index.d.ts +15 -0
- package/dist/pricing/index.d.ts.map +1 -0
- package/dist/pricing/index.js +18 -0
- package/dist/pricing/routes-core.d.ts +981 -0
- package/dist/pricing/routes-core.d.ts.map +1 -0
- package/dist/pricing/routes-core.js +102 -0
- package/dist/pricing/routes-public.d.ts +136 -0
- package/dist/pricing/routes-public.d.ts.map +1 -0
- package/dist/pricing/routes-public.js +14 -0
- package/dist/pricing/routes-rules.d.ts +1339 -0
- package/dist/pricing/routes-rules.d.ts.map +1 -0
- package/dist/pricing/routes-rules.js +138 -0
- package/dist/pricing/routes-shared.d.ts +14 -0
- package/dist/pricing/routes-shared.d.ts.map +1 -0
- package/dist/pricing/routes-shared.js +3 -0
- package/dist/pricing/routes.d.ts +7 -0
- package/dist/pricing/routes.d.ts.map +1 -0
- package/dist/pricing/routes.js +6 -0
- package/dist/pricing/schema-catalogs.d.ts +467 -0
- package/dist/pricing/schema-catalogs.d.ts.map +1 -0
- package/dist/pricing/schema-catalogs.js +47 -0
- package/dist/pricing/schema-categories.d.ts +497 -0
- package/dist/pricing/schema-categories.d.ts.map +1 -0
- package/dist/pricing/schema-categories.js +54 -0
- package/dist/pricing/schema-departure-overrides.d.ts +228 -0
- package/dist/pricing/schema-departure-overrides.d.ts.map +1 -0
- package/dist/pricing/schema-departure-overrides.js +36 -0
- package/dist/pricing/schema-option-rules.d.ts +1770 -0
- package/dist/pricing/schema-option-rules.d.ts.map +1 -0
- package/dist/pricing/schema-option-rules.js +181 -0
- package/dist/pricing/schema-policies.d.ts +395 -0
- package/dist/pricing/schema-policies.d.ts.map +1 -0
- package/dist/pricing/schema-policies.js +41 -0
- package/dist/pricing/schema-relations.d.ts +59 -0
- package/dist/pricing/schema-relations.d.ts.map +1 -0
- package/dist/pricing/schema-relations.js +111 -0
- package/dist/pricing/schema-shared.d.ts +11 -0
- package/dist/pricing/schema-shared.d.ts.map +1 -0
- package/dist/pricing/schema-shared.js +67 -0
- package/dist/pricing/schema.d.ts +8 -0
- package/dist/pricing/schema.d.ts.map +1 -0
- package/dist/pricing/schema.js +7 -0
- package/dist/pricing/service-catalog-plane-pricing.d.ts +95 -0
- package/dist/pricing/service-catalog-plane-pricing.d.ts.map +1 -0
- package/dist/pricing/service-catalog-plane-pricing.js +382 -0
- package/dist/pricing/service-catalogs.d.ts +139 -0
- package/dist/pricing/service-catalogs.d.ts.map +1 -0
- package/dist/pricing/service-catalogs.js +89 -0
- package/dist/pricing/service-categories.d.ts +147 -0
- package/dist/pricing/service-categories.d.ts.map +1 -0
- package/dist/pricing/service-categories.js +105 -0
- package/dist/pricing/service-departure-overrides.d.ts +67 -0
- package/dist/pricing/service-departure-overrides.d.ts.map +1 -0
- package/dist/pricing/service-departure-overrides.js +54 -0
- package/dist/pricing/service-option-rules.d.ts +321 -0
- package/dist/pricing/service-option-rules.d.ts.map +1 -0
- package/dist/pricing/service-option-rules.js +340 -0
- package/dist/pricing/service-policies.d.ts +123 -0
- package/dist/pricing/service-policies.d.ts.map +1 -0
- package/dist/pricing/service-policies.js +95 -0
- package/dist/pricing/service-public.d.ts +89 -0
- package/dist/pricing/service-public.d.ts.map +1 -0
- package/dist/pricing/service-public.js +473 -0
- package/dist/pricing/service-rule-resolver.d.ts +67 -0
- package/dist/pricing/service-rule-resolver.d.ts.map +1 -0
- package/dist/pricing/service-rule-resolver.js +204 -0
- package/dist/pricing/service-shared.d.ts +53 -0
- package/dist/pricing/service-shared.d.ts.map +1 -0
- package/dist/pricing/service-shared.js +4 -0
- package/dist/pricing/service-transfer-rules.d.ts +211 -0
- package/dist/pricing/service-transfer-rules.d.ts.map +1 -0
- package/dist/pricing/service-transfer-rules.js +139 -0
- package/dist/pricing/service.d.ts +79 -0
- package/dist/pricing/service.d.ts.map +1 -0
- package/dist/pricing/service.js +78 -0
- package/dist/pricing/validation-public.d.ts +412 -0
- package/dist/pricing/validation-public.d.ts.map +1 -0
- package/dist/pricing/validation-public.js +111 -0
- package/dist/pricing/validation-shared.d.ts +71 -0
- package/dist/pricing/validation-shared.d.ts.map +1 -0
- package/dist/pricing/validation-shared.js +63 -0
- package/dist/pricing/validation.d.ts +987 -0
- package/dist/pricing/validation.d.ts.map +1 -0
- package/dist/pricing/validation.js +307 -0
- package/dist/promotions/events.d.ts +38 -0
- package/dist/promotions/events.d.ts.map +1 -0
- package/dist/promotions/events.js +25 -0
- package/dist/promotions/index.d.ts +12 -0
- package/dist/promotions/index.d.ts.map +1 -0
- package/dist/promotions/index.js +17 -0
- package/dist/promotions/routes-shared.d.ts +14 -0
- package/dist/promotions/routes-shared.d.ts.map +1 -0
- package/dist/promotions/routes-shared.js +3 -0
- package/dist/promotions/routes.d.ts +395 -0
- package/dist/promotions/routes.d.ts.map +1 -0
- package/dist/promotions/routes.js +55 -0
- package/dist/promotions/schema.d.ts +675 -0
- package/dist/promotions/schema.d.ts.map +1 -0
- package/dist/promotions/schema.js +126 -0
- package/dist/promotions/service-booking-confirmed.d.ts +77 -0
- package/dist/promotions/service-booking-confirmed.d.ts.map +1 -0
- package/dist/promotions/service-booking-confirmed.js +134 -0
- package/dist/promotions/service-boundary-scheduler.d.ts +85 -0
- package/dist/promotions/service-boundary-scheduler.d.ts.map +1 -0
- package/dist/promotions/service-boundary-scheduler.js +141 -0
- package/dist/promotions/service-catalog-evaluator.d.ts +22 -0
- package/dist/promotions/service-catalog-evaluator.d.ts.map +1 -0
- package/dist/promotions/service-catalog-evaluator.js +33 -0
- package/dist/promotions/service-catalog-plane-promotions.d.ts +73 -0
- package/dist/promotions/service-catalog-plane-promotions.d.ts.map +1 -0
- package/dist/promotions/service-catalog-plane-promotions.js +118 -0
- package/dist/promotions/service-evaluator.d.ts +134 -0
- package/dist/promotions/service-evaluator.d.ts.map +1 -0
- package/dist/promotions/service-evaluator.js +302 -0
- package/dist/promotions/service-storefront.d.ts +147 -0
- package/dist/promotions/service-storefront.d.ts.map +1 -0
- package/dist/promotions/service-storefront.js +326 -0
- package/dist/promotions/service.d.ts +143 -0
- package/dist/promotions/service.d.ts.map +1 -0
- package/dist/promotions/service.js +359 -0
- package/dist/promotions/validation.d.ts +195 -0
- package/dist/promotions/validation.d.ts.map +1 -0
- package/dist/promotions/validation.js +167 -0
- package/dist/promotions/workflow-bulk-reindex.d.ts +36 -0
- package/dist/promotions/workflow-bulk-reindex.d.ts.map +1 -0
- package/dist/promotions/workflow-bulk-reindex.js +53 -0
- package/dist/promotions/workflow-runtime.d.ts +17 -0
- package/dist/promotions/workflow-runtime.d.ts.map +1 -0
- package/dist/promotions/workflow-runtime.js +9 -0
- package/dist/runtime.d.ts +18 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +27 -0
- package/dist/runtime.test.d.ts +2 -0
- package/dist/runtime.test.d.ts.map +1 -0
- package/dist/runtime.test.js +25 -0
- package/dist/schema.d.ts +5 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +4 -0
- package/dist/sellability/index.d.ts +13 -0
- package/dist/sellability/index.d.ts.map +1 -0
- package/dist/sellability/index.js +17 -0
- package/dist/sellability/routes.d.ts +2332 -0
- package/dist/sellability/routes.d.ts.map +1 -0
- package/dist/sellability/routes.js +166 -0
- package/dist/sellability/schema.d.ts +1716 -0
- package/dist/sellability/schema.d.ts.map +1 -0
- package/dist/sellability/schema.js +278 -0
- package/dist/sellability/service-records.d.ts +316 -0
- package/dist/sellability/service-records.d.ts.map +1 -0
- package/dist/sellability/service-records.js +253 -0
- package/dist/sellability/service-resolve.d.ts +72 -0
- package/dist/sellability/service-resolve.d.ts.map +1 -0
- package/dist/sellability/service-resolve.js +580 -0
- package/dist/sellability/service-shared.d.ts +124 -0
- package/dist/sellability/service-shared.d.ts.map +1 -0
- package/dist/sellability/service-shared.js +96 -0
- package/dist/sellability/service-snapshots.d.ts +191 -0
- package/dist/sellability/service-snapshots.d.ts.map +1 -0
- package/dist/sellability/service-snapshots.js +153 -0
- package/dist/sellability/service.d.ts +1038 -0
- package/dist/sellability/service.d.ts.map +1 -0
- package/dist/sellability/service.js +17 -0
- package/dist/sellability/validation.d.ts +477 -0
- package/dist/sellability/validation.d.ts.map +1 -0
- package/dist/sellability/validation.js +192 -0
- package/dist/types.d.ts +239 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { createPriceCatalog, createPriceSchedule, deletePriceCatalog, deletePriceSchedule, getPriceCatalogById, getPriceScheduleById, listPriceCatalogs, listPriceSchedules, updatePriceCatalog, updatePriceSchedule } from "./service-catalogs.js";
|
|
2
|
+
import { createPricingCategory, createPricingCategoryDependency, deletePricingCategory, deletePricingCategoryDependency, getPricingCategoryById, getPricingCategoryDependencyById, listPricingCategories, listPricingCategoryDependencies, updatePricingCategory, updatePricingCategoryDependency } from "./service-categories.js";
|
|
3
|
+
import { createDeparturePriceOverride, deleteDeparturePriceOverride, getDeparturePriceOverrideById, listDeparturePriceOverrides, updateDeparturePriceOverride } from "./service-departure-overrides.js";
|
|
4
|
+
import { createOptionPriceRule, createOptionStartTimeRule, createOptionUnitPriceRule, createOptionUnitTier, deleteOptionPriceRule, deleteOptionStartTimeRule, deleteOptionUnitPriceRule, deleteOptionUnitTier, getOptionPriceRuleById, getOptionStartTimeRuleById, getOptionUnitPriceRuleById, getOptionUnitTierById, listOptionPriceRules, listOptionStartTimeRules, listOptionUnitPriceRules, listOptionUnitTiers, updateOptionPriceRule, updateOptionStartTimeRule, updateOptionUnitPriceRule, updateOptionUnitTier } from "./service-option-rules.js";
|
|
5
|
+
import { createCancellationPolicy, createCancellationPolicyRule, deleteCancellationPolicy, deleteCancellationPolicyRule, getCancellationPolicyById, getCancellationPolicyRuleById, listCancellationPolicies, listCancellationPolicyRules, updateCancellationPolicy, updateCancellationPolicyRule } from "./service-policies.js";
|
|
6
|
+
import { createDropoffPriceRule, createExtraPriceRule, createPickupPriceRule, deleteDropoffPriceRule, deleteExtraPriceRule, deletePickupPriceRule, getDropoffPriceRuleById, getExtraPriceRuleById, getPickupPriceRuleById, listDropoffPriceRules, listExtraPriceRules, listPickupPriceRules, updateDropoffPriceRule, updateExtraPriceRule, updatePickupPriceRule } from "./service-transfer-rules.js";
|
|
7
|
+
export declare const pricingService: {
|
|
8
|
+
listPricingCategories: typeof listPricingCategories;
|
|
9
|
+
getPricingCategoryById: typeof getPricingCategoryById;
|
|
10
|
+
createPricingCategory: typeof createPricingCategory;
|
|
11
|
+
updatePricingCategory: typeof updatePricingCategory;
|
|
12
|
+
deletePricingCategory: typeof deletePricingCategory;
|
|
13
|
+
listPricingCategoryDependencies: typeof listPricingCategoryDependencies;
|
|
14
|
+
getPricingCategoryDependencyById: typeof getPricingCategoryDependencyById;
|
|
15
|
+
createPricingCategoryDependency: typeof createPricingCategoryDependency;
|
|
16
|
+
updatePricingCategoryDependency: typeof updatePricingCategoryDependency;
|
|
17
|
+
deletePricingCategoryDependency: typeof deletePricingCategoryDependency;
|
|
18
|
+
listCancellationPolicies: typeof listCancellationPolicies;
|
|
19
|
+
getCancellationPolicyById: typeof getCancellationPolicyById;
|
|
20
|
+
createCancellationPolicy: typeof createCancellationPolicy;
|
|
21
|
+
updateCancellationPolicy: typeof updateCancellationPolicy;
|
|
22
|
+
deleteCancellationPolicy: typeof deleteCancellationPolicy;
|
|
23
|
+
listCancellationPolicyRules: typeof listCancellationPolicyRules;
|
|
24
|
+
getCancellationPolicyRuleById: typeof getCancellationPolicyRuleById;
|
|
25
|
+
createCancellationPolicyRule: typeof createCancellationPolicyRule;
|
|
26
|
+
updateCancellationPolicyRule: typeof updateCancellationPolicyRule;
|
|
27
|
+
deleteCancellationPolicyRule: typeof deleteCancellationPolicyRule;
|
|
28
|
+
listPriceCatalogs: typeof listPriceCatalogs;
|
|
29
|
+
getPriceCatalogById: typeof getPriceCatalogById;
|
|
30
|
+
createPriceCatalog: typeof createPriceCatalog;
|
|
31
|
+
updatePriceCatalog: typeof updatePriceCatalog;
|
|
32
|
+
deletePriceCatalog: typeof deletePriceCatalog;
|
|
33
|
+
listPriceSchedules: typeof listPriceSchedules;
|
|
34
|
+
getPriceScheduleById: typeof getPriceScheduleById;
|
|
35
|
+
createPriceSchedule: typeof createPriceSchedule;
|
|
36
|
+
updatePriceSchedule: typeof updatePriceSchedule;
|
|
37
|
+
deletePriceSchedule: typeof deletePriceSchedule;
|
|
38
|
+
listOptionPriceRules: typeof listOptionPriceRules;
|
|
39
|
+
getOptionPriceRuleById: typeof getOptionPriceRuleById;
|
|
40
|
+
createOptionPriceRule: typeof createOptionPriceRule;
|
|
41
|
+
updateOptionPriceRule: typeof updateOptionPriceRule;
|
|
42
|
+
deleteOptionPriceRule: typeof deleteOptionPriceRule;
|
|
43
|
+
listOptionUnitPriceRules: typeof listOptionUnitPriceRules;
|
|
44
|
+
getOptionUnitPriceRuleById: typeof getOptionUnitPriceRuleById;
|
|
45
|
+
createOptionUnitPriceRule: typeof createOptionUnitPriceRule;
|
|
46
|
+
updateOptionUnitPriceRule: typeof updateOptionUnitPriceRule;
|
|
47
|
+
deleteOptionUnitPriceRule: typeof deleteOptionUnitPriceRule;
|
|
48
|
+
listOptionStartTimeRules: typeof listOptionStartTimeRules;
|
|
49
|
+
getOptionStartTimeRuleById: typeof getOptionStartTimeRuleById;
|
|
50
|
+
createOptionStartTimeRule: typeof createOptionStartTimeRule;
|
|
51
|
+
updateOptionStartTimeRule: typeof updateOptionStartTimeRule;
|
|
52
|
+
deleteOptionStartTimeRule: typeof deleteOptionStartTimeRule;
|
|
53
|
+
listOptionUnitTiers: typeof listOptionUnitTiers;
|
|
54
|
+
getOptionUnitTierById: typeof getOptionUnitTierById;
|
|
55
|
+
createOptionUnitTier: typeof createOptionUnitTier;
|
|
56
|
+
updateOptionUnitTier: typeof updateOptionUnitTier;
|
|
57
|
+
deleteOptionUnitTier: typeof deleteOptionUnitTier;
|
|
58
|
+
listPickupPriceRules: typeof listPickupPriceRules;
|
|
59
|
+
getPickupPriceRuleById: typeof getPickupPriceRuleById;
|
|
60
|
+
createPickupPriceRule: typeof createPickupPriceRule;
|
|
61
|
+
updatePickupPriceRule: typeof updatePickupPriceRule;
|
|
62
|
+
deletePickupPriceRule: typeof deletePickupPriceRule;
|
|
63
|
+
listDropoffPriceRules: typeof listDropoffPriceRules;
|
|
64
|
+
getDropoffPriceRuleById: typeof getDropoffPriceRuleById;
|
|
65
|
+
createDropoffPriceRule: typeof createDropoffPriceRule;
|
|
66
|
+
updateDropoffPriceRule: typeof updateDropoffPriceRule;
|
|
67
|
+
deleteDropoffPriceRule: typeof deleteDropoffPriceRule;
|
|
68
|
+
listExtraPriceRules: typeof listExtraPriceRules;
|
|
69
|
+
getExtraPriceRuleById: typeof getExtraPriceRuleById;
|
|
70
|
+
createExtraPriceRule: typeof createExtraPriceRule;
|
|
71
|
+
updateExtraPriceRule: typeof updateExtraPriceRule;
|
|
72
|
+
deleteExtraPriceRule: typeof deleteExtraPriceRule;
|
|
73
|
+
listDeparturePriceOverrides: typeof listDeparturePriceOverrides;
|
|
74
|
+
getDeparturePriceOverrideById: typeof getDeparturePriceOverrideById;
|
|
75
|
+
createDeparturePriceOverride: typeof createDeparturePriceOverride;
|
|
76
|
+
updateDeparturePriceOverride: typeof updateDeparturePriceOverride;
|
|
77
|
+
deleteDeparturePriceOverride: typeof deleteDeparturePriceOverride;
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/pricing/service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,qBAAqB,EACrB,+BAA+B,EAC/B,qBAAqB,EACrB,+BAA+B,EAC/B,sBAAsB,EACtB,gCAAgC,EAChC,qBAAqB,EACrB,+BAA+B,EAC/B,qBAAqB,EACrB,+BAA+B,EAChC,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,2BAA2B,EAC3B,4BAA4B,EAC7B,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,EACzB,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,EAC1B,0BAA0B,EAC1B,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,EACxB,2BAA2B,EAC3B,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,6BAA6B,CAAA;AAEpC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuE1B,CAAA"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { createPriceCatalog, createPriceSchedule, deletePriceCatalog, deletePriceSchedule, getPriceCatalogById, getPriceScheduleById, listPriceCatalogs, listPriceSchedules, updatePriceCatalog, updatePriceSchedule, } from "./service-catalogs.js";
|
|
2
|
+
import { createPricingCategory, createPricingCategoryDependency, deletePricingCategory, deletePricingCategoryDependency, getPricingCategoryById, getPricingCategoryDependencyById, listPricingCategories, listPricingCategoryDependencies, updatePricingCategory, updatePricingCategoryDependency, } from "./service-categories.js";
|
|
3
|
+
import { createDeparturePriceOverride, deleteDeparturePriceOverride, getDeparturePriceOverrideById, listDeparturePriceOverrides, updateDeparturePriceOverride, } from "./service-departure-overrides.js";
|
|
4
|
+
import { createOptionPriceRule, createOptionStartTimeRule, createOptionUnitPriceRule, createOptionUnitTier, deleteOptionPriceRule, deleteOptionStartTimeRule, deleteOptionUnitPriceRule, deleteOptionUnitTier, getOptionPriceRuleById, getOptionStartTimeRuleById, getOptionUnitPriceRuleById, getOptionUnitTierById, listOptionPriceRules, listOptionStartTimeRules, listOptionUnitPriceRules, listOptionUnitTiers, updateOptionPriceRule, updateOptionStartTimeRule, updateOptionUnitPriceRule, updateOptionUnitTier, } from "./service-option-rules.js";
|
|
5
|
+
import { createCancellationPolicy, createCancellationPolicyRule, deleteCancellationPolicy, deleteCancellationPolicyRule, getCancellationPolicyById, getCancellationPolicyRuleById, listCancellationPolicies, listCancellationPolicyRules, updateCancellationPolicy, updateCancellationPolicyRule, } from "./service-policies.js";
|
|
6
|
+
import { createDropoffPriceRule, createExtraPriceRule, createPickupPriceRule, deleteDropoffPriceRule, deleteExtraPriceRule, deletePickupPriceRule, getDropoffPriceRuleById, getExtraPriceRuleById, getPickupPriceRuleById, listDropoffPriceRules, listExtraPriceRules, listPickupPriceRules, updateDropoffPriceRule, updateExtraPriceRule, updatePickupPriceRule, } from "./service-transfer-rules.js";
|
|
7
|
+
export const pricingService = {
|
|
8
|
+
listPricingCategories,
|
|
9
|
+
getPricingCategoryById,
|
|
10
|
+
createPricingCategory,
|
|
11
|
+
updatePricingCategory,
|
|
12
|
+
deletePricingCategory,
|
|
13
|
+
listPricingCategoryDependencies,
|
|
14
|
+
getPricingCategoryDependencyById,
|
|
15
|
+
createPricingCategoryDependency,
|
|
16
|
+
updatePricingCategoryDependency,
|
|
17
|
+
deletePricingCategoryDependency,
|
|
18
|
+
listCancellationPolicies,
|
|
19
|
+
getCancellationPolicyById,
|
|
20
|
+
createCancellationPolicy,
|
|
21
|
+
updateCancellationPolicy,
|
|
22
|
+
deleteCancellationPolicy,
|
|
23
|
+
listCancellationPolicyRules,
|
|
24
|
+
getCancellationPolicyRuleById,
|
|
25
|
+
createCancellationPolicyRule,
|
|
26
|
+
updateCancellationPolicyRule,
|
|
27
|
+
deleteCancellationPolicyRule,
|
|
28
|
+
listPriceCatalogs,
|
|
29
|
+
getPriceCatalogById,
|
|
30
|
+
createPriceCatalog,
|
|
31
|
+
updatePriceCatalog,
|
|
32
|
+
deletePriceCatalog,
|
|
33
|
+
listPriceSchedules,
|
|
34
|
+
getPriceScheduleById,
|
|
35
|
+
createPriceSchedule,
|
|
36
|
+
updatePriceSchedule,
|
|
37
|
+
deletePriceSchedule,
|
|
38
|
+
listOptionPriceRules,
|
|
39
|
+
getOptionPriceRuleById,
|
|
40
|
+
createOptionPriceRule,
|
|
41
|
+
updateOptionPriceRule,
|
|
42
|
+
deleteOptionPriceRule,
|
|
43
|
+
listOptionUnitPriceRules,
|
|
44
|
+
getOptionUnitPriceRuleById,
|
|
45
|
+
createOptionUnitPriceRule,
|
|
46
|
+
updateOptionUnitPriceRule,
|
|
47
|
+
deleteOptionUnitPriceRule,
|
|
48
|
+
listOptionStartTimeRules,
|
|
49
|
+
getOptionStartTimeRuleById,
|
|
50
|
+
createOptionStartTimeRule,
|
|
51
|
+
updateOptionStartTimeRule,
|
|
52
|
+
deleteOptionStartTimeRule,
|
|
53
|
+
listOptionUnitTiers,
|
|
54
|
+
getOptionUnitTierById,
|
|
55
|
+
createOptionUnitTier,
|
|
56
|
+
updateOptionUnitTier,
|
|
57
|
+
deleteOptionUnitTier,
|
|
58
|
+
listPickupPriceRules,
|
|
59
|
+
getPickupPriceRuleById,
|
|
60
|
+
createPickupPriceRule,
|
|
61
|
+
updatePickupPriceRule,
|
|
62
|
+
deletePickupPriceRule,
|
|
63
|
+
listDropoffPriceRules,
|
|
64
|
+
getDropoffPriceRuleById,
|
|
65
|
+
createDropoffPriceRule,
|
|
66
|
+
updateDropoffPriceRule,
|
|
67
|
+
deleteDropoffPriceRule,
|
|
68
|
+
listExtraPriceRules,
|
|
69
|
+
getExtraPriceRuleById,
|
|
70
|
+
createExtraPriceRule,
|
|
71
|
+
updateExtraPriceRule,
|
|
72
|
+
deleteExtraPriceRule,
|
|
73
|
+
listDeparturePriceOverrides,
|
|
74
|
+
getDeparturePriceOverrideById,
|
|
75
|
+
createDeparturePriceOverride,
|
|
76
|
+
updateDeparturePriceOverride,
|
|
77
|
+
deleteDeparturePriceOverride,
|
|
78
|
+
};
|
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const publicProductPricingQuerySchema: z.ZodObject<{
|
|
3
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
4
|
+
optionId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
date: z.ZodOptional<z.ZodString>;
|
|
6
|
+
departureId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const publicAvailabilitySnapshotQuerySchema: z.ZodObject<{
|
|
9
|
+
optionId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
dateFrom: z.ZodOptional<z.ZodString>;
|
|
11
|
+
dateTo: z.ZodOptional<z.ZodString>;
|
|
12
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
cancelled: "cancelled";
|
|
14
|
+
open: "open";
|
|
15
|
+
closed: "closed";
|
|
16
|
+
sold_out: "sold_out";
|
|
17
|
+
}>>;
|
|
18
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
19
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const publicPriceCatalogSchema: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
code: z.ZodString;
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
currencyCode: z.ZodNullable<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export declare const publicPricingTierSchema: z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
minQuantity: z.ZodNumber;
|
|
30
|
+
maxQuantity: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
sortOrder: z.ZodNumber;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export declare const publicOptionUnitPriceSchema: z.ZodObject<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
unitId: z.ZodString;
|
|
37
|
+
unitName: z.ZodString;
|
|
38
|
+
unitType: z.ZodEnum<{
|
|
39
|
+
service: "service";
|
|
40
|
+
other: "other";
|
|
41
|
+
group: "group";
|
|
42
|
+
room: "room";
|
|
43
|
+
vehicle: "vehicle";
|
|
44
|
+
person: "person";
|
|
45
|
+
}>;
|
|
46
|
+
pricingMode: z.ZodEnum<{
|
|
47
|
+
on_request: "on_request";
|
|
48
|
+
per_person: "per_person";
|
|
49
|
+
per_booking: "per_booking";
|
|
50
|
+
free: "free";
|
|
51
|
+
per_unit: "per_unit";
|
|
52
|
+
included: "included";
|
|
53
|
+
}>;
|
|
54
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
minQuantity: z.ZodNullable<z.ZodNumber>;
|
|
56
|
+
maxQuantity: z.ZodNullable<z.ZodNumber>;
|
|
57
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
58
|
+
sortOrder: z.ZodNumber;
|
|
59
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
minQuantity: z.ZodNumber;
|
|
62
|
+
maxQuantity: z.ZodNullable<z.ZodNumber>;
|
|
63
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
64
|
+
sortOrder: z.ZodNumber;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export declare const publicStartTimeAdjustmentSchema: z.ZodObject<{
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
startTimeId: z.ZodString;
|
|
70
|
+
label: z.ZodNullable<z.ZodString>;
|
|
71
|
+
startTimeLocal: z.ZodString;
|
|
72
|
+
ruleMode: z.ZodEnum<{
|
|
73
|
+
override: "override";
|
|
74
|
+
included: "included";
|
|
75
|
+
excluded: "excluded";
|
|
76
|
+
adjustment: "adjustment";
|
|
77
|
+
}>;
|
|
78
|
+
adjustmentType: z.ZodNullable<z.ZodEnum<{
|
|
79
|
+
fixed: "fixed";
|
|
80
|
+
percentage: "percentage";
|
|
81
|
+
}>>;
|
|
82
|
+
sellAdjustmentCents: z.ZodNullable<z.ZodNumber>;
|
|
83
|
+
adjustmentBasisPoints: z.ZodNullable<z.ZodNumber>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export declare const publicOptionPricingRuleSchema: z.ZodObject<{
|
|
86
|
+
id: z.ZodString;
|
|
87
|
+
name: z.ZodString;
|
|
88
|
+
description: z.ZodNullable<z.ZodString>;
|
|
89
|
+
pricingMode: z.ZodEnum<{
|
|
90
|
+
on_request: "on_request";
|
|
91
|
+
per_person: "per_person";
|
|
92
|
+
per_booking: "per_booking";
|
|
93
|
+
starting_from: "starting_from";
|
|
94
|
+
free: "free";
|
|
95
|
+
}>;
|
|
96
|
+
baseSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
97
|
+
minPerBooking: z.ZodNullable<z.ZodNumber>;
|
|
98
|
+
maxPerBooking: z.ZodNullable<z.ZodNumber>;
|
|
99
|
+
isDefault: z.ZodBoolean;
|
|
100
|
+
cancellationPolicyId: z.ZodNullable<z.ZodString>;
|
|
101
|
+
unitPrices: z.ZodArray<z.ZodObject<{
|
|
102
|
+
id: z.ZodString;
|
|
103
|
+
unitId: z.ZodString;
|
|
104
|
+
unitName: z.ZodString;
|
|
105
|
+
unitType: z.ZodEnum<{
|
|
106
|
+
service: "service";
|
|
107
|
+
other: "other";
|
|
108
|
+
group: "group";
|
|
109
|
+
room: "room";
|
|
110
|
+
vehicle: "vehicle";
|
|
111
|
+
person: "person";
|
|
112
|
+
}>;
|
|
113
|
+
pricingMode: z.ZodEnum<{
|
|
114
|
+
on_request: "on_request";
|
|
115
|
+
per_person: "per_person";
|
|
116
|
+
per_booking: "per_booking";
|
|
117
|
+
free: "free";
|
|
118
|
+
per_unit: "per_unit";
|
|
119
|
+
included: "included";
|
|
120
|
+
}>;
|
|
121
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
122
|
+
minQuantity: z.ZodNullable<z.ZodNumber>;
|
|
123
|
+
maxQuantity: z.ZodNullable<z.ZodNumber>;
|
|
124
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
125
|
+
sortOrder: z.ZodNumber;
|
|
126
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
127
|
+
id: z.ZodString;
|
|
128
|
+
minQuantity: z.ZodNumber;
|
|
129
|
+
maxQuantity: z.ZodNullable<z.ZodNumber>;
|
|
130
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
131
|
+
sortOrder: z.ZodNumber;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
}, z.core.$strip>>;
|
|
134
|
+
startTimeAdjustments: z.ZodArray<z.ZodObject<{
|
|
135
|
+
id: z.ZodString;
|
|
136
|
+
startTimeId: z.ZodString;
|
|
137
|
+
label: z.ZodNullable<z.ZodString>;
|
|
138
|
+
startTimeLocal: z.ZodString;
|
|
139
|
+
ruleMode: z.ZodEnum<{
|
|
140
|
+
override: "override";
|
|
141
|
+
included: "included";
|
|
142
|
+
excluded: "excluded";
|
|
143
|
+
adjustment: "adjustment";
|
|
144
|
+
}>;
|
|
145
|
+
adjustmentType: z.ZodNullable<z.ZodEnum<{
|
|
146
|
+
fixed: "fixed";
|
|
147
|
+
percentage: "percentage";
|
|
148
|
+
}>>;
|
|
149
|
+
sellAdjustmentCents: z.ZodNullable<z.ZodNumber>;
|
|
150
|
+
adjustmentBasisPoints: z.ZodNullable<z.ZodNumber>;
|
|
151
|
+
}, z.core.$strip>>;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
export declare const publicPricedOptionSchema: z.ZodObject<{
|
|
154
|
+
id: z.ZodString;
|
|
155
|
+
name: z.ZodString;
|
|
156
|
+
description: z.ZodNullable<z.ZodString>;
|
|
157
|
+
status: z.ZodEnum<{
|
|
158
|
+
active: "active";
|
|
159
|
+
archived: "archived";
|
|
160
|
+
draft: "draft";
|
|
161
|
+
}>;
|
|
162
|
+
isDefault: z.ZodBoolean;
|
|
163
|
+
bookingMode: z.ZodEnum<{
|
|
164
|
+
date: "date";
|
|
165
|
+
other: "other";
|
|
166
|
+
date_time: "date_time";
|
|
167
|
+
open: "open";
|
|
168
|
+
stay: "stay";
|
|
169
|
+
transfer: "transfer";
|
|
170
|
+
itinerary: "itinerary";
|
|
171
|
+
}>;
|
|
172
|
+
capacityMode: z.ZodEnum<{
|
|
173
|
+
on_request: "on_request";
|
|
174
|
+
free_sale: "free_sale";
|
|
175
|
+
limited: "limited";
|
|
176
|
+
}>;
|
|
177
|
+
pricingRules: z.ZodArray<z.ZodObject<{
|
|
178
|
+
id: z.ZodString;
|
|
179
|
+
name: z.ZodString;
|
|
180
|
+
description: z.ZodNullable<z.ZodString>;
|
|
181
|
+
pricingMode: z.ZodEnum<{
|
|
182
|
+
on_request: "on_request";
|
|
183
|
+
per_person: "per_person";
|
|
184
|
+
per_booking: "per_booking";
|
|
185
|
+
starting_from: "starting_from";
|
|
186
|
+
free: "free";
|
|
187
|
+
}>;
|
|
188
|
+
baseSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
189
|
+
minPerBooking: z.ZodNullable<z.ZodNumber>;
|
|
190
|
+
maxPerBooking: z.ZodNullable<z.ZodNumber>;
|
|
191
|
+
isDefault: z.ZodBoolean;
|
|
192
|
+
cancellationPolicyId: z.ZodNullable<z.ZodString>;
|
|
193
|
+
unitPrices: z.ZodArray<z.ZodObject<{
|
|
194
|
+
id: z.ZodString;
|
|
195
|
+
unitId: z.ZodString;
|
|
196
|
+
unitName: z.ZodString;
|
|
197
|
+
unitType: z.ZodEnum<{
|
|
198
|
+
service: "service";
|
|
199
|
+
other: "other";
|
|
200
|
+
group: "group";
|
|
201
|
+
room: "room";
|
|
202
|
+
vehicle: "vehicle";
|
|
203
|
+
person: "person";
|
|
204
|
+
}>;
|
|
205
|
+
pricingMode: z.ZodEnum<{
|
|
206
|
+
on_request: "on_request";
|
|
207
|
+
per_person: "per_person";
|
|
208
|
+
per_booking: "per_booking";
|
|
209
|
+
free: "free";
|
|
210
|
+
per_unit: "per_unit";
|
|
211
|
+
included: "included";
|
|
212
|
+
}>;
|
|
213
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
214
|
+
minQuantity: z.ZodNullable<z.ZodNumber>;
|
|
215
|
+
maxQuantity: z.ZodNullable<z.ZodNumber>;
|
|
216
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
217
|
+
sortOrder: z.ZodNumber;
|
|
218
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
219
|
+
id: z.ZodString;
|
|
220
|
+
minQuantity: z.ZodNumber;
|
|
221
|
+
maxQuantity: z.ZodNullable<z.ZodNumber>;
|
|
222
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
223
|
+
sortOrder: z.ZodNumber;
|
|
224
|
+
}, z.core.$strip>>;
|
|
225
|
+
}, z.core.$strip>>;
|
|
226
|
+
startTimeAdjustments: z.ZodArray<z.ZodObject<{
|
|
227
|
+
id: z.ZodString;
|
|
228
|
+
startTimeId: z.ZodString;
|
|
229
|
+
label: z.ZodNullable<z.ZodString>;
|
|
230
|
+
startTimeLocal: z.ZodString;
|
|
231
|
+
ruleMode: z.ZodEnum<{
|
|
232
|
+
override: "override";
|
|
233
|
+
included: "included";
|
|
234
|
+
excluded: "excluded";
|
|
235
|
+
adjustment: "adjustment";
|
|
236
|
+
}>;
|
|
237
|
+
adjustmentType: z.ZodNullable<z.ZodEnum<{
|
|
238
|
+
fixed: "fixed";
|
|
239
|
+
percentage: "percentage";
|
|
240
|
+
}>>;
|
|
241
|
+
sellAdjustmentCents: z.ZodNullable<z.ZodNumber>;
|
|
242
|
+
adjustmentBasisPoints: z.ZodNullable<z.ZodNumber>;
|
|
243
|
+
}, z.core.$strip>>;
|
|
244
|
+
}, z.core.$strip>>;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
export declare const publicProductPricingSnapshotSchema: z.ZodObject<{
|
|
247
|
+
productId: z.ZodString;
|
|
248
|
+
catalog: z.ZodObject<{
|
|
249
|
+
id: z.ZodString;
|
|
250
|
+
code: z.ZodString;
|
|
251
|
+
name: z.ZodString;
|
|
252
|
+
currencyCode: z.ZodNullable<z.ZodString>;
|
|
253
|
+
}, z.core.$strip>;
|
|
254
|
+
options: z.ZodArray<z.ZodObject<{
|
|
255
|
+
id: z.ZodString;
|
|
256
|
+
name: z.ZodString;
|
|
257
|
+
description: z.ZodNullable<z.ZodString>;
|
|
258
|
+
status: z.ZodEnum<{
|
|
259
|
+
active: "active";
|
|
260
|
+
archived: "archived";
|
|
261
|
+
draft: "draft";
|
|
262
|
+
}>;
|
|
263
|
+
isDefault: z.ZodBoolean;
|
|
264
|
+
bookingMode: z.ZodEnum<{
|
|
265
|
+
date: "date";
|
|
266
|
+
other: "other";
|
|
267
|
+
date_time: "date_time";
|
|
268
|
+
open: "open";
|
|
269
|
+
stay: "stay";
|
|
270
|
+
transfer: "transfer";
|
|
271
|
+
itinerary: "itinerary";
|
|
272
|
+
}>;
|
|
273
|
+
capacityMode: z.ZodEnum<{
|
|
274
|
+
on_request: "on_request";
|
|
275
|
+
free_sale: "free_sale";
|
|
276
|
+
limited: "limited";
|
|
277
|
+
}>;
|
|
278
|
+
pricingRules: z.ZodArray<z.ZodObject<{
|
|
279
|
+
id: z.ZodString;
|
|
280
|
+
name: z.ZodString;
|
|
281
|
+
description: z.ZodNullable<z.ZodString>;
|
|
282
|
+
pricingMode: z.ZodEnum<{
|
|
283
|
+
on_request: "on_request";
|
|
284
|
+
per_person: "per_person";
|
|
285
|
+
per_booking: "per_booking";
|
|
286
|
+
starting_from: "starting_from";
|
|
287
|
+
free: "free";
|
|
288
|
+
}>;
|
|
289
|
+
baseSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
290
|
+
minPerBooking: z.ZodNullable<z.ZodNumber>;
|
|
291
|
+
maxPerBooking: z.ZodNullable<z.ZodNumber>;
|
|
292
|
+
isDefault: z.ZodBoolean;
|
|
293
|
+
cancellationPolicyId: z.ZodNullable<z.ZodString>;
|
|
294
|
+
unitPrices: z.ZodArray<z.ZodObject<{
|
|
295
|
+
id: z.ZodString;
|
|
296
|
+
unitId: z.ZodString;
|
|
297
|
+
unitName: z.ZodString;
|
|
298
|
+
unitType: z.ZodEnum<{
|
|
299
|
+
service: "service";
|
|
300
|
+
other: "other";
|
|
301
|
+
group: "group";
|
|
302
|
+
room: "room";
|
|
303
|
+
vehicle: "vehicle";
|
|
304
|
+
person: "person";
|
|
305
|
+
}>;
|
|
306
|
+
pricingMode: z.ZodEnum<{
|
|
307
|
+
on_request: "on_request";
|
|
308
|
+
per_person: "per_person";
|
|
309
|
+
per_booking: "per_booking";
|
|
310
|
+
free: "free";
|
|
311
|
+
per_unit: "per_unit";
|
|
312
|
+
included: "included";
|
|
313
|
+
}>;
|
|
314
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
315
|
+
minQuantity: z.ZodNullable<z.ZodNumber>;
|
|
316
|
+
maxQuantity: z.ZodNullable<z.ZodNumber>;
|
|
317
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
318
|
+
sortOrder: z.ZodNumber;
|
|
319
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
320
|
+
id: z.ZodString;
|
|
321
|
+
minQuantity: z.ZodNumber;
|
|
322
|
+
maxQuantity: z.ZodNullable<z.ZodNumber>;
|
|
323
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
324
|
+
sortOrder: z.ZodNumber;
|
|
325
|
+
}, z.core.$strip>>;
|
|
326
|
+
}, z.core.$strip>>;
|
|
327
|
+
startTimeAdjustments: z.ZodArray<z.ZodObject<{
|
|
328
|
+
id: z.ZodString;
|
|
329
|
+
startTimeId: z.ZodString;
|
|
330
|
+
label: z.ZodNullable<z.ZodString>;
|
|
331
|
+
startTimeLocal: z.ZodString;
|
|
332
|
+
ruleMode: z.ZodEnum<{
|
|
333
|
+
override: "override";
|
|
334
|
+
included: "included";
|
|
335
|
+
excluded: "excluded";
|
|
336
|
+
adjustment: "adjustment";
|
|
337
|
+
}>;
|
|
338
|
+
adjustmentType: z.ZodNullable<z.ZodEnum<{
|
|
339
|
+
fixed: "fixed";
|
|
340
|
+
percentage: "percentage";
|
|
341
|
+
}>>;
|
|
342
|
+
sellAdjustmentCents: z.ZodNullable<z.ZodNumber>;
|
|
343
|
+
adjustmentBasisPoints: z.ZodNullable<z.ZodNumber>;
|
|
344
|
+
}, z.core.$strip>>;
|
|
345
|
+
}, z.core.$strip>>;
|
|
346
|
+
}, z.core.$strip>>;
|
|
347
|
+
}, z.core.$strip>;
|
|
348
|
+
export declare const publicAvailabilityStartTimeSchema: z.ZodObject<{
|
|
349
|
+
id: z.ZodString;
|
|
350
|
+
label: z.ZodNullable<z.ZodString>;
|
|
351
|
+
startTimeLocal: z.ZodString;
|
|
352
|
+
durationMinutes: z.ZodNullable<z.ZodNumber>;
|
|
353
|
+
}, z.core.$strip>;
|
|
354
|
+
export declare const publicAvailabilitySlotSchema: z.ZodObject<{
|
|
355
|
+
id: z.ZodString;
|
|
356
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
357
|
+
dateLocal: z.ZodString;
|
|
358
|
+
startsAt: z.ZodString;
|
|
359
|
+
endsAt: z.ZodNullable<z.ZodString>;
|
|
360
|
+
timezone: z.ZodString;
|
|
361
|
+
status: z.ZodEnum<{
|
|
362
|
+
cancelled: "cancelled";
|
|
363
|
+
open: "open";
|
|
364
|
+
closed: "closed";
|
|
365
|
+
sold_out: "sold_out";
|
|
366
|
+
}>;
|
|
367
|
+
unlimited: z.ZodBoolean;
|
|
368
|
+
remainingPax: z.ZodNullable<z.ZodNumber>;
|
|
369
|
+
remainingResources: z.ZodNullable<z.ZodNumber>;
|
|
370
|
+
pastCutoff: z.ZodBoolean;
|
|
371
|
+
tooEarly: z.ZodBoolean;
|
|
372
|
+
startTime: z.ZodNullable<z.ZodObject<{
|
|
373
|
+
id: z.ZodString;
|
|
374
|
+
label: z.ZodNullable<z.ZodString>;
|
|
375
|
+
startTimeLocal: z.ZodString;
|
|
376
|
+
durationMinutes: z.ZodNullable<z.ZodNumber>;
|
|
377
|
+
}, z.core.$strip>>;
|
|
378
|
+
}, z.core.$strip>;
|
|
379
|
+
export declare const publicAvailabilitySnapshotSchema: z.ZodObject<{
|
|
380
|
+
productId: z.ZodString;
|
|
381
|
+
slots: z.ZodArray<z.ZodObject<{
|
|
382
|
+
id: z.ZodString;
|
|
383
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
384
|
+
dateLocal: z.ZodString;
|
|
385
|
+
startsAt: z.ZodString;
|
|
386
|
+
endsAt: z.ZodNullable<z.ZodString>;
|
|
387
|
+
timezone: z.ZodString;
|
|
388
|
+
status: z.ZodEnum<{
|
|
389
|
+
cancelled: "cancelled";
|
|
390
|
+
open: "open";
|
|
391
|
+
closed: "closed";
|
|
392
|
+
sold_out: "sold_out";
|
|
393
|
+
}>;
|
|
394
|
+
unlimited: z.ZodBoolean;
|
|
395
|
+
remainingPax: z.ZodNullable<z.ZodNumber>;
|
|
396
|
+
remainingResources: z.ZodNullable<z.ZodNumber>;
|
|
397
|
+
pastCutoff: z.ZodBoolean;
|
|
398
|
+
tooEarly: z.ZodBoolean;
|
|
399
|
+
startTime: z.ZodNullable<z.ZodObject<{
|
|
400
|
+
id: z.ZodString;
|
|
401
|
+
label: z.ZodNullable<z.ZodString>;
|
|
402
|
+
startTimeLocal: z.ZodString;
|
|
403
|
+
durationMinutes: z.ZodNullable<z.ZodNumber>;
|
|
404
|
+
}, z.core.$strip>>;
|
|
405
|
+
}, z.core.$strip>>;
|
|
406
|
+
total: z.ZodNumber;
|
|
407
|
+
limit: z.ZodNumber;
|
|
408
|
+
offset: z.ZodNumber;
|
|
409
|
+
}, z.core.$strip>;
|
|
410
|
+
export type PublicProductPricingQuery = z.infer<typeof publicProductPricingQuerySchema>;
|
|
411
|
+
export type PublicAvailabilitySnapshotQuery = z.infer<typeof publicAvailabilitySnapshotQuerySchema>;
|
|
412
|
+
//# sourceMappingURL=validation-public.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation-public.d.ts","sourceRoot":"","sources":["../../src/pricing/validation-public.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAavB,eAAO,MAAM,+BAA+B;;;;;iBAK1C,CAAA;AAEF,eAAO,MAAM,qCAAqC;;;;;;;;;;;;iBAOhD,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;iBAKnC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;iBAMlC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYtC,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;iBAS1C,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYxC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASnC,CAAA;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI7C,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;iBAK5C,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;iBAcvC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM3C,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AACvF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAA"}
|