@hyperline/cli 0.1.0-build.1.0f48d6f → 0.1.0-build.1.0f6880f

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.
@@ -33833,7 +33833,7 @@ var require_shared = __commonJS({
33833
33833
  getNameForCurrency: () => getNameForCurrency,
33834
33834
  getNaturalNumber: () => getNaturalNumber,
33835
33835
  getSymbolForCurrency: () => getSymbolForCurrency,
33836
- getTimezoneByName: () => getTimezoneByName,
33836
+ getTimezoneByName: () => getTimezoneByName2,
33837
33837
  getTimezoneOffsetName: () => getTimezoneOffsetName,
33838
33838
  getTimezones: () => getTimezones2,
33839
33839
  getValidTimezonesNames: () => getValidTimezonesNames,
@@ -33850,7 +33850,7 @@ var require_shared = __commonJS({
33850
33850
  subtract: () => subtract,
33851
33851
  sum: () => sum2,
33852
33852
  toLocalTime: () => toLocalTime3,
33853
- toUtc: () => toUtc2,
33853
+ toUtc: () => toUtc3,
33854
33854
  useDebounce: () => useDebounce
33855
33855
  });
33856
33856
  module.exports = __toCommonJS(shared_exports);
@@ -36557,14 +36557,14 @@ var require_shared = __commonJS({
36557
36557
  function getTimezones2() {
36558
36558
  return timezones;
36559
36559
  }
36560
- function getTimezoneByName(tz) {
36560
+ function getTimezoneByName2(tz) {
36561
36561
  var _a2;
36562
36562
  if (tz === "UTC") {
36563
36563
  return timezones.find(({ name }) => name === "Etc/UTC");
36564
36564
  }
36565
36565
  return (_a2 = timezones.find(({ name }) => name === tz)) != null ? _a2 : timezones.find(({ group }) => group.includes(tz));
36566
36566
  }
36567
- function toUtc2(date5, timezone) {
36567
+ function toUtc3(date5, timezone) {
36568
36568
  return (0, import_date_fns_tz.fromZonedTime)(date5, timezone);
36569
36569
  }
36570
36570
  function toLocalTime3(date5, localTimezone) {
@@ -36575,7 +36575,7 @@ var require_shared = __commonJS({
36575
36575
  );
36576
36576
  var constructDateFromTimezoneToLocal = (date5, timezone) => {
36577
36577
  if (!timezone) return date5;
36578
- const timezoneObj = getTimezoneByName(timezone);
36578
+ const timezoneObj = getTimezoneByName2(timezone);
36579
36579
  if (!timezoneObj) return date5;
36580
36580
  const dateAtTimezone = new Date(
36581
36581
  date5.getFullYear(),
@@ -40756,7 +40756,7 @@ Examples:
40756
40756
  queryParamKeys: []
40757
40757
  });
40758
40758
  });
40759
- resource.command("create-custom-property").description(`Create a new custom property definition with a name, type (string, number, boolean, date, select), and optional default value.`).requiredOption("--name <value>", `name`).requiredOption("--type <value>", `type`).requiredOption("--slug <value>", `slug`).requiredOption("--entities <json>", `entities`).option("--api-only", `api_only`).option("--required", `required`).option("--authorized-values <json>", `authorized_values`).addHelpText("after", `
40759
+ resource.command("create-custom-property").description(`Create a new custom property definition with a name, type (text, number, boolean, date, select, multi_select), and optional default value.`).requiredOption("--name <value>", `name`).requiredOption("--type <value>", `type`).requiredOption("--slug <value>", `slug`).requiredOption("--entities <json>", `entities`).option("--api-only", `api_only`).option("--required", `required`).option("--authorized-values <json>", `authorized_values`).option("--default-value <json>", `Value set on entities created without an explicit value for this custom property. On existing entities without a value, it also satisfies \`required\`. Must match the custom property type, and one of \`authorized_values\` for \`select\` and \`multi_select\` types. Dates are ISO 8601 strings. Null means no default value.`).addHelpText("after", `
40760
40760
  Examples:
40761
40761
  hyperline custom-properties create-custom-property --name <name> --type <type> --slug <slug> --entities <entities>
40762
40762
  hyperline custom-properties create-custom-property --name <name> --type <type> --slug <slug> --entities <entities> --api-only --required
@@ -40781,6 +40781,8 @@ Examples:
40781
40781
  args.entities = JSON.parse(opts.entities);
40782
40782
  if (opts.authorizedValues !== void 0)
40783
40783
  args.authorized_values = JSON.parse(opts.authorizedValues);
40784
+ if (opts.defaultValue !== void 0)
40785
+ args.default_value = JSON.parse(opts.defaultValue);
40784
40786
  await ctx.execute({
40785
40787
  method: "POST",
40786
40788
  path: "/v1/custom-properties",
@@ -40788,7 +40790,7 @@ Examples:
40788
40790
  queryParamKeys: []
40789
40791
  });
40790
40792
  });
40791
- resource.command("update-custom-property").description(`Update an existing custom property definition by ID.`).requiredOption("--id <value>", `id parameter`).requiredOption("--name <value>", `name`).requiredOption("--type <value>", `type`).requiredOption("--slug <value>", `slug`).requiredOption("--entities <json>", `entities`).option("--api-only", `api_only`).option("--required", `required`).option("--authorized-values <json>", `authorized_values`).addHelpText("after", `
40793
+ resource.command("update-custom-property").description(`Update an existing custom property definition by ID.`).requiredOption("--id <value>", `id parameter`).requiredOption("--name <value>", `name`).requiredOption("--type <value>", `type`).requiredOption("--slug <value>", `slug`).requiredOption("--entities <json>", `entities`).option("--api-only", `api_only`).option("--required", `required`).option("--authorized-values <json>", `authorized_values`).option("--default-value <json>", `Value set on entities created without an explicit value for this custom property. On existing entities without a value, it also satisfies \`required\`. Must match the custom property type, and one of \`authorized_values\` for \`select\` and \`multi_select\` types. Dates are ISO 8601 strings. Null means no default value.`).addHelpText("after", `
40792
40794
  Examples:
40793
40795
  hyperline custom-properties update-custom-property --id <id> --name <name> --type <type> --slug <slug> --entities <entities>
40794
40796
  hyperline custom-properties update-custom-property --id <id> --name <name> --type <type> --slug <slug> --entities <entities> --api-only --required
@@ -40815,6 +40817,8 @@ Examples:
40815
40817
  args.entities = JSON.parse(opts.entities);
40816
40818
  if (opts.authorizedValues !== void 0)
40817
40819
  args.authorized_values = JSON.parse(opts.authorizedValues);
40820
+ if (opts.defaultValue !== void 0)
40821
+ args.default_value = JSON.parse(opts.defaultValue);
40818
40822
  await ctx.execute({
40819
40823
  method: "PUT",
40820
40824
  path: "/v1/custom-properties/{id}",
@@ -41846,7 +41850,7 @@ Examples:
41846
41850
  queryParamKeys: []
41847
41851
  });
41848
41852
  });
41849
- resource.command("list-customer-credit-transactions").description(`List all transactions (purchases, topups, usages) for a specific credit product. Paginated with take/skip and optional filters.`).requiredOption("--id <value>", `id parameter`).requiredOption("--product-id <value>", `productId parameter`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--type <value>", `type`).option("--invoice-id <value>", `invoice_id`).option("--created-at <value>", `created_at`).addHelpText("after", `
41853
+ resource.command("list-customer-credit-transactions").description(`List all transactions (topups, usages, expirations) for a specific credit product. Paginated with take/skip and optional filters.`).requiredOption("--id <value>", `id parameter`).requiredOption("--product-id <value>", `productId parameter`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--type <value>", `type`).option("--invoice-id <value>", `invoice_id`).option("--created-at <value>", `created_at`).addHelpText("after", `
41850
41854
  Examples:
41851
41855
  hyperline customers-credits list-customer-credit-transactions --id <id> --product-id <productId>
41852
41856
  hyperline customers-credits list-customer-credit-transactions --id <id> --product-id <productId> --take <take> --type <type>`).action(async (opts) => {
@@ -65877,6 +65881,8 @@ var usStates = [
65877
65881
 
65878
65882
  // ../hyperline-lib/build/utils/dates.js
65879
65883
  var import_shared2 = __toESM(require_shared(), 1);
65884
+ var PERIOD_BOUND_DRIFT_TOLERANCE_MS = 2 * 60 * 1e3;
65885
+ var DST_SHIFT_MS = 60 * 60 * 1e3;
65880
65886
 
65881
65887
  // ../hyperline-lib/build/utils/document.js
65882
65888
  var import_shared3 = __toESM(require_shared(), 1);
@@ -65888,6 +65894,11 @@ import * as https from "node:https";
65888
65894
  import { createHash as createHash2 } from "node:crypto";
65889
65895
  import { deepEqual } from "fast-equals";
65890
65896
 
65897
+ // ../hyperline-lib/build/utils/realignDatesToTimezone.js
65898
+ var import_shared4 = __toESM(require_shared(), 1);
65899
+ var MILLISECONDS_PER_DAY = 24 * 60 * 60 * 1e3;
65900
+ var LAST_MILLISECOND_OF_DAY = MILLISECONDS_PER_DAY - 1;
65901
+
65891
65902
  // ../hyperline-lib/build/utils/api/filterBuilder.js
65892
65903
  var baseAuthorizedOperators = ["not", "isNull", "isNotNull"];
65893
65904
  var booleanAuthorizedOperators = [
@@ -65954,7 +65965,7 @@ var isAxiosError = axios.isAxiosError;
65954
65965
 
65955
65966
  // ../hyperline-lib/build/httpClient/httpClient.js
65956
65967
  import axios2 from "axios";
65957
- import axiosRetry, { isNetworkOrIdempotentRequestError } from "axios-retry";
65968
+ import axiosRetry, { isNetworkOrIdempotentRequestError, retryAfter } from "axios-retry";
65958
65969
  import { AxiosError } from "axios";
65959
65970
  var recommendedRetryConfig = {
65960
65971
  retries: 3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperline/cli",
3
- "version": "0.1.0-build.1.0f48d6f",
3
+ "version": "0.1.0-build.1.0f6880f",
4
4
  "description": "Agent-first CLI for Hyperline API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",