@epilot/cli 0.1.83 → 0.1.84

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/README.md CHANGED
@@ -29,7 +29,7 @@ npm install -g @epilot/cli
29
29
 
30
30
  <!-- usage-help -->
31
31
  ```
32
- epilot v0.1.83 — CLI for epilot APIs
32
+ epilot v0.1.84 — CLI for epilot APIs
33
33
 
34
34
  USAGE
35
35
  epilot <api> <operationId> [params...] [flags]
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Pricing API",
5
5
  "description": "The `pricing-api` hub sets the foundations for the following Pricing APIs:\n\n### Order API\nThis api enables the management of orders in epilot 360, providing features such as:\n - Automatic calculation of totals and price breakdowns for taxes on the Order entity\n - Product and pricing data validation\n\n### Shopping Cart API\nUsed to interact with a cart during a customer's checkout session, providing:\n - An unified data model to model a Shopping Cart\n - Product and pricing data validation\n - Checkout a cart into an order or quote\n\n### Catalog API\nProvides a way to query the entire catalog of products and prices.\n\n### Availability API\nProvides endpoints for querying products availability by a set of predefined dimensions.\n\n### Spot Market API\nProvides endpoints to fetch (historic) spot market price data.\n\n### External Integrations API\nProvides endpoints for external integrations. E.g. GetAG.\n\n### External Catalog API\nProvides endpoints for external catalog.\n\n### Product Recommendations API\nProvides endpoints for product recommendations.\n",
6
- "version": "1.1.0",
6
+ "version": "1.2.0",
7
7
  "termsOfService": "https://epilot.cloud/agb",
8
8
  "contact": {
9
9
  "name": "Support",
@@ -3430,6 +3430,22 @@
3430
3430
  "external-catalog"
3431
3431
  ]
3432
3432
  },
3433
+ "ConditionalPricingErrorCode": {
3434
+ "type": "string",
3435
+ "description": "Machine-readable failure mode of a conditional-pricing operation, allowing clients\nto branch on the kind of failure instead of parsing the error message.\n\n- `NOT_FOUND` (404): the addressed entity, variant or version does not exist\n- `AMBIGUOUS_RESOLUTION` (409): several variants match the given context while a single result was requested\n- `TUPLE_CONFLICT` (409): the condition tuple is already claimed by another variant\n- `VERSION_CONFLICT` (409): a version already exists at the given `valid_from` on that variant\n- `SUPERSEDED_VERSION` (409): the addressed version has been superseded\n- `CONDITION_UNDEFINED` (400): the context names a condition the entity's schema does not define\n- `OPERATOR_UNSUPPORTED` (400): the requested operator is not applicable to the condition's type\n- `CONTEXT_FORMAT_INVALID` (400): a context value is malformed for its condition type\n- `TOO_MANY_MATCHES` (400): a multi-match resolve exceeded its result cap\n- `WRITE_CONFLICT` (409): transient write contention, retryable unlike `TUPLE_CONFLICT`\n\nEach code is emitted with the HTTP status shown above, and only with that status.\n",
3436
+ "enum": [
3437
+ "NOT_FOUND",
3438
+ "AMBIGUOUS_RESOLUTION",
3439
+ "TUPLE_CONFLICT",
3440
+ "VERSION_CONFLICT",
3441
+ "SUPERSEDED_VERSION",
3442
+ "CONDITION_UNDEFINED",
3443
+ "OPERATOR_UNSUPPORTED",
3444
+ "CONTEXT_FORMAT_INVALID",
3445
+ "TOO_MANY_MATCHES",
3446
+ "WRITE_CONFLICT"
3447
+ ]
3448
+ },
3433
3449
  "Error": {
3434
3450
  "required": [
3435
3451
  "message"
@@ -3449,6 +3465,31 @@
3449
3465
  }
3450
3466
  }
3451
3467
  },
3468
+ "ConditionalPricingError": {
3469
+ "description": "An error from a conditional-pricing operation, carrying a machine-readable `code`\nfrom the conditional-pricing vocabulary plus any structured data about the failure,\nso a client can branch on the kind of failure rather than parse the message.\nReferenced only by the operations that emit these codes; every other operation\nkeeps the plain `Error` shape.\n",
3470
+ "allOf": [
3471
+ {
3472
+ "$ref": "#/components/schemas/Error"
3473
+ },
3474
+ {
3475
+ "type": "object",
3476
+ "properties": {
3477
+ "error": {
3478
+ "type": "string",
3479
+ "description": "The error message. Carries the same string as `message`, which the shared `Error`\nschema requires — `error` is the field responses have always used, and every caller\nto date reads. Declared here rather than on the shared `Error` because a request\nvalidation failure puts a list of validation errors in this field instead of a\nstring, and those responses reference `Error` directly.\n"
3480
+ },
3481
+ "code": {
3482
+ "$ref": "#/components/schemas/ConditionalPricingErrorCode"
3483
+ },
3484
+ "details": {
3485
+ "type": "object",
3486
+ "additionalProperties": true,
3487
+ "description": "Structured data about the failure, shaped by the accompanying `code`\n(e.g. the candidate variants of an `ambiguous-resolution`). Only present\nwhen the failure has structured data to report, and never without a `code`.\n"
3488
+ }
3489
+ }
3490
+ }
3491
+ ]
3492
+ },
3452
3493
  "Product": {
3453
3494
  "type": "object",
3454
3495
  "description": "The product entity",
@@ -6967,7 +7008,14 @@
6967
7008
  "description": "The deprecated tax rate applied.\nThis field has been deprecated in favor of the new Tax Management. You should use the new tax fields pointing to a proper tax entity.\n"
6968
7009
  },
6969
7010
  "tax": {
6970
- "$ref": "#/components/schemas/Tax"
7011
+ "oneOf": [
7012
+ {
7013
+ "$ref": "#/components/schemas/Tax"
7014
+ },
7015
+ {
7016
+ "$ref": "#/components/schemas/TaxItem"
7017
+ }
7018
+ ]
6971
7019
  }
6972
7020
  }
6973
7021
  },
@@ -8443,6 +8491,37 @@
8443
8491
  "_updated_at": "2021-02-09T12:41:43.662Z"
8444
8492
  }
8445
8493
  },
8494
+ "TaxItem": {
8495
+ "type": "object",
8496
+ "description": "A minimal, ad-hoc tax rate for line items with no backing tax entity\nin the catalog (e.g. a fully custom/composite price component built\nby a client with no product/price reference to resolve tax from).\nMirrors how PriceItem relates to Price: unlike Tax, this has no\nentity identity — it isn't persisted and can't be looked up by _id,\nso it can't be shared/reused across price items the way a catalog\nTax can.\n",
8497
+ "additionalProperties": false,
8498
+ "required": [
8499
+ "type",
8500
+ "rate"
8501
+ ],
8502
+ "properties": {
8503
+ "type": {
8504
+ "type": "string",
8505
+ "enum": [
8506
+ "VAT",
8507
+ "GST",
8508
+ "Custom"
8509
+ ]
8510
+ },
8511
+ "rate": {
8512
+ "type": "number",
8513
+ "nullable": true
8514
+ },
8515
+ "description": {
8516
+ "type": "string"
8517
+ }
8518
+ },
8519
+ "example": {
8520
+ "rate": 19,
8521
+ "type": "VAT",
8522
+ "description": "Custom 19% VAT"
8523
+ }
8524
+ },
8446
8525
  "TaxBreakdownInfo": {
8447
8526
  "type": "object",
8448
8527
  "properties": {
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
11
11
  var main = defineCommand({
12
12
  meta: {
13
13
  name: "epilot",
14
- version: "0.1.83",
14
+ version: "0.1.84",
15
15
  description: "CLI for epilot APIs"
16
16
  },
17
17
  args: {
@@ -31,7 +31,7 @@ var main = defineCommand({
31
31
  profile: () => import("../profile-OZJL5ZPT.js").then((m) => m.default),
32
32
  config: () => import("../config-DGZIMLZK.js").then((m) => m.default),
33
33
  completion: () => import("../completion-N6A4VCAE.js").then((m) => m.default),
34
- upgrade: () => import("../upgrade-5RN2XG2M.js").then((m) => m.default),
34
+ upgrade: () => import("../upgrade-OBVI55D5.js").then((m) => m.default),
35
35
  "access-token": () => import("../access-token-WWE6BDJH.js").then((m) => m.default),
36
36
  address: () => import("../address-EH3C4CVB.js").then((m) => m.default),
37
37
  "address-suggestions": () => import("../address-suggestions-RRSLOBFW.js").then((m) => m.default),
@@ -134,7 +134,7 @@ process.stderr.on("error", (err) => {
134
134
  if (err.code === "EPIPE") process.exit(0);
135
135
  throw err;
136
136
  });
137
- var VERSION = true ? "0.1.83" : (await null).default.version;
137
+ var VERSION = true ? "0.1.84" : (await null).default.version;
138
138
  var reorderedArgv = hoistFlagsAfterSubcommand(process.argv.slice(2));
139
139
  process.argv = [process.argv[0], process.argv[1], ...reorderedArgv];
140
140
  var args = process.argv.slice(2);
@@ -72,7 +72,7 @@ ${GREEN}${BOLD}Upgraded to @epilot/cli@${latest}${RESET}
72
72
  }
73
73
  });
74
74
  var getCurrentVersion = () => {
75
- if (true) return "0.1.83";
75
+ if (true) return "0.1.84";
76
76
  try {
77
77
  const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
78
78
  encoding: "utf-8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/cli",
3
- "version": "0.1.83",
3
+ "version": "0.1.84",
4
4
  "description": "CLI for epilot APIs",
5
5
  "type": "module",
6
6
  "bin": {