@epilot/cli 0.1.23 → 0.1.25

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.
@@ -2036,7 +2036,6 @@
2036
2036
  "unit_amount_gross_decimal": "25",
2037
2037
  "unit_amount_net": 25,
2038
2038
  "unit_amount_net_decimal": "25",
2039
- "billing_period": null,
2040
2039
  "type": "one_time",
2041
2040
  "taxes": [],
2042
2041
  "pricing_model": "per_unit",
@@ -2109,20 +2108,22 @@
2109
2108
  "amount_subtotal_decimal": "25",
2110
2109
  "amount_subtotal": 2500,
2111
2110
  "unit_amount": 25,
2112
- "unit_amount_gross": 29.75,
2111
+ "unit_amount_gross": 2975,
2113
2112
  "unit_amount_gross_decimal": "29.75",
2114
2113
  "unit_amount_net": 25,
2115
2114
  "unit_amount_net_decimal": "25",
2116
- "billing_period": null,
2117
2115
  "type": "one_time",
2118
2116
  "taxes": [
2119
2117
  {
2120
2118
  "tax": {
2121
- "_id": "tax-vat-19",
2122
- "name": "VAT",
2119
+ "_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
2120
+ "_title": "VAT 19%",
2121
+ "_org": "728",
2122
+ "_schema": "tax",
2123
+ "_created_at": "2024-01-01T00:00:00.000Z",
2124
+ "_updated_at": "2024-01-01T00:00:00.000Z",
2123
2125
  "type": "VAT",
2124
- "rate": 19,
2125
- "region": "DE"
2126
+ "rate": 19
2126
2127
  },
2127
2128
  "amount": 475
2128
2129
  }
@@ -2140,15 +2141,16 @@
2140
2141
  "is_composite_price": false,
2141
2142
  "pricing_model": "per_unit",
2142
2143
  "price_display_in_journeys": "show_price",
2143
- "tax": [
2144
- {
2145
- "_id": "tax-vat-19",
2146
- "name": "VAT",
2147
- "type": "VAT",
2148
- "rate": 19,
2149
- "region": "DE"
2150
- }
2151
- ]
2144
+ "tax": {
2145
+ "_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
2146
+ "_title": "VAT 19%",
2147
+ "_org": "728",
2148
+ "_schema": "tax",
2149
+ "_created_at": "2024-01-01T00:00:00.000Z",
2150
+ "_updated_at": "2024-01-01T00:00:00.000Z",
2151
+ "type": "VAT",
2152
+ "rate": 19
2153
+ }
2152
2154
  },
2153
2155
  "_product": {
2154
2156
  "_id": "product-93f857a4",
@@ -2168,11 +2170,14 @@
2168
2170
  "taxes": [
2169
2171
  {
2170
2172
  "tax": {
2171
- "_id": "tax-vat-19",
2172
- "name": "VAT",
2173
+ "_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
2174
+ "_title": "VAT 19%",
2175
+ "_org": "728",
2176
+ "_schema": "tax",
2177
+ "_created_at": "2024-01-01T00:00:00.000Z",
2178
+ "_updated_at": "2024-01-01T00:00:00.000Z",
2173
2179
  "type": "VAT",
2174
- "rate": 19,
2175
- "region": "DE"
2180
+ "rate": 19
2176
2181
  },
2177
2182
  "amount": 475
2178
2183
  }
@@ -2722,6 +2727,17 @@
2722
2727
  "tags": [
2723
2728
  "External Catalog API"
2724
2729
  ],
2730
+ "parameters": [
2731
+ {
2732
+ "in": "header",
2733
+ "name": "x-epilot-org-id",
2734
+ "schema": {
2735
+ "type": "string"
2736
+ },
2737
+ "required": false,
2738
+ "description": "Organization ID (required when not using EpilotPublicAuth token)"
2739
+ }
2740
+ ],
2725
2741
  "requestBody": {
2726
2742
  "required": true,
2727
2743
  "content": {
@@ -2872,6 +2888,17 @@
2872
2888
  "tags": [
2873
2889
  "External Catalog API"
2874
2890
  ],
2891
+ "parameters": [
2892
+ {
2893
+ "in": "header",
2894
+ "name": "x-epilot-org-id",
2895
+ "schema": {
2896
+ "type": "string"
2897
+ },
2898
+ "required": false,
2899
+ "description": "Organization ID (required when not using EpilotPublicAuth token)"
2900
+ }
2901
+ ],
2875
2902
  "requestBody": {
2876
2903
  "required": true,
2877
2904
  "content": {
@@ -3003,7 +3030,6 @@
3003
3030
  "unit_amount_gross_decimal": "25",
3004
3031
  "unit_amount_net": 25,
3005
3032
  "unit_amount_net_decimal": "25",
3006
- "billing_period": null,
3007
3033
  "type": "one_time",
3008
3034
  "taxes": [],
3009
3035
  "pricing_model": "per_unit",
@@ -3076,20 +3102,22 @@
3076
3102
  "amount_subtotal_decimal": "25",
3077
3103
  "amount_subtotal": 2500,
3078
3104
  "unit_amount": 25,
3079
- "unit_amount_gross": 29.75,
3105
+ "unit_amount_gross": 2975,
3080
3106
  "unit_amount_gross_decimal": "29.75",
3081
3107
  "unit_amount_net": 25,
3082
3108
  "unit_amount_net_decimal": "25",
3083
- "billing_period": null,
3084
3109
  "type": "one_time",
3085
3110
  "taxes": [
3086
3111
  {
3087
3112
  "tax": {
3088
- "_id": "tax-vat-19",
3089
- "name": "VAT",
3113
+ "_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
3114
+ "_title": "VAT 19%",
3115
+ "_org": "728",
3116
+ "_schema": "tax",
3117
+ "_created_at": "2024-01-01T00:00:00.000Z",
3118
+ "_updated_at": "2024-01-01T00:00:00.000Z",
3090
3119
  "type": "VAT",
3091
- "rate": 19,
3092
- "region": "DE"
3120
+ "rate": 19
3093
3121
  },
3094
3122
  "amount": 475
3095
3123
  }
@@ -3107,15 +3135,16 @@
3107
3135
  "is_composite_price": false,
3108
3136
  "pricing_model": "per_unit",
3109
3137
  "price_display_in_journeys": "show_price",
3110
- "tax": [
3111
- {
3112
- "_id": "tax-vat-19",
3113
- "name": "VAT",
3114
- "type": "VAT",
3115
- "rate": 19,
3116
- "region": "DE"
3117
- }
3118
- ]
3138
+ "tax": {
3139
+ "_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
3140
+ "_title": "VAT 19%",
3141
+ "_org": "728",
3142
+ "_schema": "tax",
3143
+ "_created_at": "2024-01-01T00:00:00.000Z",
3144
+ "_updated_at": "2024-01-01T00:00:00.000Z",
3145
+ "type": "VAT",
3146
+ "rate": 19
3147
+ }
3119
3148
  },
3120
3149
  "_product": {
3121
3150
  "_id": "product-93f857a4",
@@ -3135,11 +3164,14 @@
3135
3164
  "taxes": [
3136
3165
  {
3137
3166
  "tax": {
3138
- "_id": "tax-vat-19",
3139
- "name": "VAT",
3167
+ "_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
3168
+ "_title": "VAT 19%",
3169
+ "_org": "728",
3170
+ "_schema": "tax",
3171
+ "_created_at": "2024-01-01T00:00:00.000Z",
3172
+ "_updated_at": "2024-01-01T00:00:00.000Z",
3140
3173
  "type": "VAT",
3141
- "rate": 19,
3142
- "region": "DE"
3174
+ "rate": 19
3143
3175
  },
3144
3176
  "amount": 475
3145
3177
  }
@@ -7550,8 +7582,12 @@
7550
7582
  },
7551
7583
  "CashbackAmount": {
7552
7584
  "type": "object",
7553
- "description": "An amount associated with a specific cashback period.",
7585
+ "description": "A detail associated with a specific cashback.",
7554
7586
  "properties": {
7587
+ "cashback_name": {
7588
+ "type": "string",
7589
+ "description": "The name of the cashback."
7590
+ },
7555
7591
  "cashback_period": {
7556
7592
  "$ref": "#/components/schemas/CashbackPeriod"
7557
7593
  },
@@ -9112,8 +9148,8 @@
9112
9148
  "description": "Description of the contract"
9113
9149
  },
9114
9150
  "billing_account": {
9115
- "type": "string",
9116
- "description": "Billing Account relation ID"
9151
+ "type": "object",
9152
+ "description": "Billing Account relation"
9117
9153
  },
9118
9154
  "account_number": {
9119
9155
  "type": "string",
@@ -9121,14 +9157,7 @@
9121
9157
  },
9122
9158
  "branch": {
9123
9159
  "type": "string",
9124
- "description": "Branch/commodity type",
9125
- "enum": [
9126
- "power",
9127
- "gas",
9128
- "water",
9129
- "waste_water",
9130
- "district_heating"
9131
- ]
9160
+ "description": "Branch/commodity type (e.g. power, gas, water, waste_water, district_heating, or any custom value)"
9132
9161
  },
9133
9162
  "move_in_date": {
9134
9163
  "type": "string",
@@ -9141,12 +9170,15 @@
9141
9170
  "description": "Move Out Date"
9142
9171
  },
9143
9172
  "billing_address": {
9144
- "type": "object",
9145
- "description": "Billing Address"
9173
+ "description": "Billing Address",
9174
+ "type": "object"
9146
9175
  },
9147
9176
  "delivery_address": {
9148
- "type": "object",
9149
- "description": "Delivery Address"
9177
+ "description": "Delivery Address",
9178
+ "type": "array",
9179
+ "items": {
9180
+ "type": "object"
9181
+ }
9150
9182
  },
9151
9183
  "additional_addresses": {
9152
9184
  "type": "array",
@@ -9175,11 +9207,8 @@
9175
9207
  "description": "End Date"
9176
9208
  },
9177
9209
  "customer": {
9178
- "type": "array",
9179
- "description": "Customer relation (contact or account)",
9180
- "items": {
9181
- "type": "string"
9182
- }
9210
+ "type": "object",
9211
+ "description": "Customer relation (contact or account)"
9183
9212
  },
9184
9213
  "order": {
9185
9214
  "type": "string",
@@ -9265,30 +9294,11 @@
9265
9294
  "description": "Billing Due Day"
9266
9295
  },
9267
9296
  "installment_amount": {
9268
- "type": "object",
9269
- "description": "Installment Amount",
9270
- "properties": {
9271
- "value": {
9272
- "type": "number"
9273
- },
9274
- "currency": {
9275
- "type": "string",
9276
- "default": "EUR"
9277
- }
9278
- }
9297
+ "type": "number"
9279
9298
  },
9280
9299
  "balance": {
9281
- "type": "object",
9282
- "description": "Balance",
9283
- "properties": {
9284
- "value": {
9285
- "type": "number"
9286
- },
9287
- "currency": {
9288
- "type": "string",
9289
- "default": "EUR"
9290
- }
9291
- }
9300
+ "type": "number",
9301
+ "description": "Balance"
9292
9302
  },
9293
9303
  "meters": {
9294
9304
  "type": "array",
@@ -9298,8 +9308,8 @@
9298
9308
  }
9299
9309
  },
9300
9310
  "payment": {
9301
- "type": "string",
9302
- "description": "Payment Details relation ID"
9311
+ "type": "object",
9312
+ "description": "Payment Details relation"
9303
9313
  },
9304
9314
  "last_sync_at": {
9305
9315
  "type": "string",
@@ -9507,6 +9517,65 @@
9507
9517
  "readOnly": true
9508
9518
  }
9509
9519
  }
9520
+ },
9521
+ "availability_address": {
9522
+ "type": "object",
9523
+ "description": "Address to use for product availability checks. Include when the catalog should filter products by serviceable area (e.g. postal code coverage).\n",
9524
+ "properties": {
9525
+ "postal_code": {
9526
+ "type": "string",
9527
+ "description": "Postal Code"
9528
+ },
9529
+ "city": {
9530
+ "type": "string",
9531
+ "description": "City"
9532
+ },
9533
+ "street": {
9534
+ "type": "string",
9535
+ "description": "Street"
9536
+ },
9537
+ "street_number": {
9538
+ "type": "string",
9539
+ "description": "Street Number"
9540
+ },
9541
+ "journey_target_block": {
9542
+ "type": "string",
9543
+ "description": "The journey target block of the availability address <step_index>/<block_name>"
9544
+ }
9545
+ }
9546
+ },
9547
+ "variable_inputs": {
9548
+ "type": "array",
9549
+ "description": "Variable inputs (e.g. energy or water consumption) extracted/provided by the portal so the external catalog service can compute amounts for variable prices.\n",
9550
+ "items": {
9551
+ "type": "object",
9552
+ "properties": {
9553
+ "value": {
9554
+ "type": "number",
9555
+ "description": "The value of the variable input"
9556
+ },
9557
+ "unit": {
9558
+ "type": "string",
9559
+ "description": "The unit of the variable input"
9560
+ },
9561
+ "frequency_unit": {
9562
+ "type": "string",
9563
+ "description": "The frequency unit of the variable input",
9564
+ "enum": [
9565
+ "weekly",
9566
+ "monthly",
9567
+ "every_quarter",
9568
+ "every_6_months",
9569
+ "yearly",
9570
+ "one_time"
9571
+ ]
9572
+ },
9573
+ "journey_target_block": {
9574
+ "type": "string",
9575
+ "description": "The journey target block of the variable input <step_index>/<block_name>"
9576
+ }
9577
+ }
9578
+ }
9510
9579
  }
9511
9580
  },
9512
9581
  "required": [
@@ -9858,6 +9927,11 @@
9858
9927
  {
9859
9928
  "tax": {
9860
9929
  "_id": "936db2a1-3748-45b6-bb9d-04943280ceeb",
9930
+ "_title": "VAT 23%",
9931
+ "_org": "728",
9932
+ "_schema": "tax",
9933
+ "_created_at": "2021-09-24T15:06:13.859Z",
9934
+ "_updated_at": "2021-09-24T15:06:13.859Z",
9861
9935
  "type": "VAT",
9862
9936
  "rate": 23
9863
9937
  },
@@ -9866,6 +9940,11 @@
9866
9940
  {
9867
9941
  "tax": {
9868
9942
  "_id": "936db2a1-3748-45b6-bb9d-04943280cee4",
9943
+ "_title": "VAT 7%",
9944
+ "_org": "728",
9945
+ "_schema": "tax",
9946
+ "_created_at": "2021-09-24T15:06:13.859Z",
9947
+ "_updated_at": "2021-09-24T15:06:13.859Z",
9869
9948
  "type": "VAT",
9870
9949
  "rate": 7
9871
9950
  },
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  API_LIST
4
- } from "../chunk-U5JW65I3.js";
4
+ } from "../chunk-SGI6WZ57.js";
5
5
 
6
6
  // bin/epilot.ts
7
7
  import { runMain } from "citty";
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
11
11
  var main = defineCommand({
12
12
  meta: {
13
13
  name: "epilot",
14
- version: "0.1.23",
14
+ version: "0.1.25",
15
15
  description: "CLI for epilot APIs"
16
16
  },
17
17
  args: {
@@ -30,8 +30,8 @@ var main = defineCommand({
30
30
  auth: () => import("../auth-CN5EFFDE.js").then((m) => m.default),
31
31
  profile: () => import("../profile-OZJL5ZPT.js").then((m) => m.default),
32
32
  config: () => import("../config-DGZIMLZK.js").then((m) => m.default),
33
- completion: () => import("../completion-76TTN5FM.js").then((m) => m.default),
34
- upgrade: () => import("../upgrade-D2KGUAYC.js").then((m) => m.default),
33
+ completion: () => import("../completion-W6JFZKZI.js").then((m) => m.default),
34
+ upgrade: () => import("../upgrade-EZO5QXKC.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),
@@ -41,6 +41,7 @@ var main = defineCommand({
41
41
  automation: () => import("../automation-4DEE3TUI.js").then((m) => m.default),
42
42
  billing: () => import("../billing-XX4VVOPI.js").then((m) => m.default),
43
43
  "blueprint-manifest": () => import("../blueprint-manifest-V5MJ3GCA.js").then((m) => m.default),
44
+ calendar: () => import("../calendar-IHVASAEY.js").then((m) => m.default),
44
45
  "configuration-hub": () => import("../configuration-hub-ZSYHJZXF.js").then((m) => m.default),
45
46
  consent: () => import("../consent-QICGZLMO.js").then((m) => m.default),
46
47
  "customer-portal": () => import("../customer-portal-UCDUZO6G.js").then((m) => m.default),
@@ -132,13 +133,13 @@ process.stderr.on("error", (err) => {
132
133
  if (err.code === "EPIPE") process.exit(0);
133
134
  throw err;
134
135
  });
135
- var VERSION = true ? "0.1.23" : (await null).default.version;
136
+ var VERSION = true ? "0.1.25" : (await null).default.version;
136
137
  var reorderedArgv = hoistFlagsAfterSubcommand(process.argv.slice(2));
137
138
  process.argv = [process.argv[0], process.argv[1], ...reorderedArgv];
138
139
  var args = process.argv.slice(2);
139
140
  var completionsIdx = args.indexOf("--_completions");
140
141
  if (completionsIdx >= 0) {
141
- const { handleCompletions } = await import("../completion-76TTN5FM.js");
142
+ const { handleCompletions } = await import("../completion-W6JFZKZI.js");
142
143
  handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
143
144
  process.exit(0);
144
145
  }
@@ -0,0 +1,56 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ callApi
4
+ } from "./chunk-5ZFPCFKV.js";
5
+ import "./chunk-IOLKUHUB.js";
6
+ import "./chunk-M3M3C5WH.js";
7
+ import "./chunk-YHQA2AVG.js";
8
+ import "./chunk-7ZQ666ZQ.js";
9
+
10
+ // src/commands/apis/calendar.ts
11
+ import { defineCommand } from "citty";
12
+ var calendar_default = defineCommand({
13
+ meta: { name: "calendar", description: "Calendar API" },
14
+ args: {
15
+ operation: { type: "positional", description: "operationId to call", required: false },
16
+ param: { type: "string", alias: "p", description: "Parameter key=value" },
17
+ data: { type: "string", alias: "d", description: "Request body JSON" },
18
+ header: { type: "string", alias: "H", description: "Custom header" },
19
+ include: { type: "boolean", alias: "i", description: "Include response headers" },
20
+ definition: { type: "string", description: "Override OpenAPI spec file/URL" },
21
+ server: { type: "string", alias: "s", description: "Override server base URL" },
22
+ "use-dev": { type: "boolean", description: "Target dev environment" },
23
+ "use-staging": { type: "boolean", description: "Target staging environment" },
24
+ profile: { type: "string", description: "Use a named profile" },
25
+ token: { type: "string", alias: "t", description: "Bearer token" },
26
+ json: { type: "boolean", description: "Output raw JSON" },
27
+ verbose: { type: "boolean", alias: "v", description: "Verbose output" },
28
+ guided: { type: "boolean", description: "Prompt for all parameters interactively" },
29
+ interactive: { type: "boolean", description: "Interactive mode" },
30
+ jsonata: { type: "string", description: "JSONata expression to transform response" },
31
+ _ophelp: { type: "boolean", description: "Show operation help", required: false },
32
+ _apihelp: { type: "boolean", description: "Show API help", required: false }
33
+ },
34
+ run: ({ args, rawArgs }) => {
35
+ const positionalArgs = [];
36
+ if (args.operation && rawArgs) {
37
+ const opIdx = rawArgs.indexOf(args.operation);
38
+ if (opIdx >= 0) {
39
+ for (let i = opIdx + 1; i < rawArgs.length; i++) {
40
+ const arg = rawArgs[i];
41
+ if (arg.startsWith("-")) break;
42
+ positionalArgs.push(arg);
43
+ }
44
+ }
45
+ }
46
+ return callApi("calendar", {
47
+ ...args,
48
+ help: !!args._ophelp,
49
+ _apihelp: !!args._apihelp,
50
+ _args: positionalArgs
51
+ });
52
+ }
53
+ });
54
+ export {
55
+ calendar_default as default
56
+ };
@@ -60,7 +60,7 @@ var API_LIST = [
60
60
  kebabName: "app",
61
61
  title: "App API",
62
62
  serverUrl: "https://app.sls.epilot.io",
63
- operationCount: 30,
63
+ operationCount: 32,
64
64
  operationIds: [
65
65
  "getPublicFacingComponent",
66
66
  "listConfigurations",
@@ -91,7 +91,9 @@ var API_LIST = [
91
91
  "patchInstallation",
92
92
  "uninstall",
93
93
  "promoteVersion",
94
- "ingestEvent"
94
+ "ingestEvent",
95
+ "publicProxyGet",
96
+ "publicProxyPost"
95
97
  ]
96
98
  },
97
99
  {
@@ -203,6 +205,14 @@ var API_LIST = [
203
205
  "getBlueprintLineageV3"
204
206
  ]
205
207
  },
208
+ {
209
+ apiName: "calendar",
210
+ kebabName: "calendar",
211
+ title: "Calendar API",
212
+ serverUrl: "https://calendar.sls.epilot.io",
213
+ operationCount: 4,
214
+ operationIds: ["listCalendars", "getCalendar", "listEvents", "getEvent"]
215
+ },
206
216
  {
207
217
  apiName: "configurationHub",
208
218
  kebabName: "configuration-hub",
@@ -231,7 +241,7 @@ var API_LIST = [
231
241
  kebabName: "customer-portal",
232
242
  title: "Portal API",
233
243
  serverUrl: "https://customer-portal-api.sls.epilot.io",
234
- operationCount: 142,
244
+ operationCount: 143,
235
245
  operationIds: [
236
246
  "upsertPortal",
237
247
  "createUser",
@@ -246,6 +256,7 @@ var API_LIST = [
246
256
  "getPortalExtensionsV3",
247
257
  "getPublicPortalExtensionDetailsV3",
248
258
  "getConsumption",
259
+ "prepareVisualizationExport",
249
260
  "getCosts",
250
261
  "getPrices",
251
262
  "getExternalLinks",
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  API_LIST
4
- } from "./chunk-U5JW65I3.js";
4
+ } from "./chunk-SGI6WZ57.js";
5
5
  import {
6
6
  DIM,
7
7
  GREEN,
@@ -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.23";
75
+ if (true) return "0.1.25";
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.23",
3
+ "version": "0.1.25",
4
4
  "description": "CLI for epilot APIs",
5
5
  "type": "module",
6
6
  "bin": {