wapi-client 0.12.0-beta.3 → 0.12.3

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.
Files changed (75) hide show
  1. package/dist/api/ws-client.cjs +1 -1
  2. package/dist/api/ws-client.js +1 -1
  3. package/dist/client.cjs +1 -1
  4. package/dist/client.js +1 -1
  5. package/dist/db/consts.browser.cjs +0 -2
  6. package/dist/db/consts.browser.js +0 -2
  7. package/dist/db/consts.cjs +0 -2
  8. package/dist/db/consts.d.ts +1 -1
  9. package/dist/db/consts.js +0 -2
  10. package/dist/fns/consts.enums.d.ts +1 -2
  11. package/dist/fns/export-tokens/export-tokens.browser.cjs +23 -1
  12. package/dist/fns/export-tokens/export-tokens.browser.js +27 -2
  13. package/dist/fns/export-tokens/export-tokens.cjs +23 -1
  14. package/dist/fns/export-tokens/export-tokens.js +27 -2
  15. package/dist/fns/export-transfer-groups/export-transfer-groups.browser.cjs +24 -2
  16. package/dist/fns/export-transfer-groups/export-transfer-groups.browser.js +28 -3
  17. package/dist/fns/export-transfer-groups/export-transfer-groups.cjs +24 -2
  18. package/dist/fns/export-transfer-groups/export-transfer-groups.js +28 -3
  19. package/dist/fns/export-transfers/export-transfers.browser.cjs +23 -2
  20. package/dist/fns/export-transfers/export-transfers.browser.js +27 -3
  21. package/dist/fns/export-transfers/export-transfers.cjs +23 -2
  22. package/dist/fns/export-transfers/export-transfers.js +27 -3
  23. package/dist/fns/export-wallets/export-wallets.browser.cjs +7 -15
  24. package/dist/fns/export-wallets/export-wallets.browser.js +8 -17
  25. package/dist/fns/export-wallets/export-wallets.cjs +7 -15
  26. package/dist/fns/export-wallets/export-wallets.js +8 -17
  27. package/dist/fns/find-balances/find-balances.browser.cjs +23 -1
  28. package/dist/fns/find-balances/find-balances.browser.js +27 -2
  29. package/dist/fns/find-balances/find-balances.cjs +23 -1
  30. package/dist/fns/find-balances/find-balances.js +27 -2
  31. package/dist/fns/find-tokens/find-tokens.browser.cjs +23 -1
  32. package/dist/fns/find-tokens/find-tokens.browser.js +27 -2
  33. package/dist/fns/find-tokens/find-tokens.cjs +23 -1
  34. package/dist/fns/find-tokens/find-tokens.js +27 -2
  35. package/dist/fns/find-transfer-groups/find-transfer-groups.browser.cjs +23 -1
  36. package/dist/fns/find-transfer-groups/find-transfer-groups.browser.js +27 -2
  37. package/dist/fns/find-transfer-groups/find-transfer-groups.cjs +23 -1
  38. package/dist/fns/find-transfer-groups/find-transfer-groups.js +27 -2
  39. package/dist/fns/find-transfers/find-transfers.browser.cjs +18 -28
  40. package/dist/fns/find-transfers/find-transfers.browser.js +19 -29
  41. package/dist/fns/find-transfers/find-transfers.cjs +18 -28
  42. package/dist/fns/find-transfers/find-transfers.js +19 -29
  43. package/dist/fns/find-wallets/find-wallets.browser.cjs +6 -14
  44. package/dist/fns/find-wallets/find-wallets.browser.js +7 -16
  45. package/dist/fns/find-wallets/find-wallets.cjs +6 -14
  46. package/dist/fns/find-wallets/find-wallets.js +7 -16
  47. package/dist/fns/fn-types.d.ts +43 -43
  48. package/dist/fns/list-exports/list-exports.browser.cjs +4 -2
  49. package/dist/fns/list-exports/list-exports.browser.js +5 -3
  50. package/dist/fns/list-exports/list-exports.cjs +4 -2
  51. package/dist/fns/list-exports/list-exports.js +5 -3
  52. package/dist/index.browser.cjs +2 -0
  53. package/dist/index.browser.js +2 -0
  54. package/dist/index.cjs +2 -0
  55. package/dist/index.js +2 -0
  56. package/dist/lib/polyfill.browser.cjs +43 -0
  57. package/dist/lib/polyfill.browser.js +23 -0
  58. package/dist/lib/polyfill.cjs +47 -0
  59. package/dist/lib/polyfill.d.ts +1 -0
  60. package/dist/lib/polyfill.js +23 -0
  61. package/dist/lib/ts-utils.browser.cjs +5 -1
  62. package/dist/lib/ts-utils.browser.js +5 -1
  63. package/dist/lib/ts-utils.cjs +7 -2
  64. package/dist/lib/ts-utils.d.ts +5 -0
  65. package/dist/lib/ts-utils.js +5 -1
  66. package/dist/lib/utils.browser.cjs +20 -20
  67. package/dist/lib/utils.browser.js +20 -22
  68. package/dist/lib/utils.cjs +22 -19
  69. package/dist/lib/utils.d.ts +5 -3
  70. package/dist/lib/utils.js +20 -18
  71. package/dist/txs/tx-types.d.ts +51 -51
  72. package/dist/types/index.d.ts +16 -6
  73. package/dist/wapi-client-web.iife.js +1 -1
  74. package/dist/wapi-client.iife.js +1 -1
  75. package/package.json +1 -1
@@ -21,18 +21,6 @@ var __spreadValues = (a, b) => {
21
21
  return a;
22
22
  };
23
23
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
- var __objRest = (source, exclude) => {
25
- var target = {};
26
- for (var prop in source)
27
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
28
- target[prop] = source[prop];
29
- if (source != null && __getOwnPropSymbols)
30
- for (var prop of __getOwnPropSymbols(source)) {
31
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
32
- target[prop] = source[prop];
33
- }
34
- return target;
35
- };
36
24
  var __commonJS = (cb, mod) => function __require() {
37
25
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
38
26
  };
@@ -650,6 +638,7 @@ var require_cjs = __commonJS({
650
638
  var utils_exports = {};
651
639
  __export(utils_exports, {
652
640
  checkCopyObject: () => checkCopyObject,
641
+ checkFnOptionsOrderBy: () => checkFnOptionsOrderBy,
653
642
  convertToNumber: () => convertToNumber,
654
643
  convertToString: () => convertToString,
655
644
  copyObject: () => copyObject,
@@ -664,8 +653,8 @@ __export(utils_exports, {
664
653
  isDate: () => isDate,
665
654
  isDateTime: () => isDateTime,
666
655
  isFutureDate: () => isFutureDate,
667
- mergeFnOptionsOrderBy: () => mergeFnOptionsOrderBy,
668
656
  modifyObject: () => modifyObject,
657
+ omit: () => omit,
669
658
  orderByToOrder: () => orderByToOrder,
670
659
  toQueryString: () => toQueryString,
671
660
  wait: () => wait
@@ -754,6 +743,11 @@ function checkCopyObject(input, property, value) {
754
743
  copy[property] = value;
755
744
  return copy;
756
745
  }
746
+ function omit(input, omitKey) {
747
+ const copy = copyObject(input);
748
+ delete copy[omitKey];
749
+ return copy;
750
+ }
757
751
  function getForeign(value) {
758
752
  const stringValue = inputToString(value);
759
753
  if (stringValue === void 0 || stringValue === null) {
@@ -827,12 +821,20 @@ function orderByToOrder(orderBy) {
827
821
  };
828
822
  });
829
823
  }
830
- function mergeFnOptionsOrderBy(options) {
831
- const _a = options, { order_by: orderBy } = _a, outputOptions = __objRest(_a, ["order_by"]);
832
- if (!outputOptions.order && orderBy) {
833
- outputOptions.order = orderByToOrder(orderBy);
824
+ function checkFnOptionsOrderBy(input) {
825
+ if (!input) {
826
+ return void 0;
827
+ }
828
+ if (!input.order_by) {
829
+ return input;
830
+ }
831
+ const orderBy = input.order_by;
832
+ delete input.order_by;
833
+ if (input.order) {
834
+ return input;
834
835
  }
835
- return outputOptions;
836
+ input.order = orderByToOrder(orderBy);
837
+ return input;
836
838
  }
837
839
  function convertToString(input) {
838
840
  if (input === void 0 || input === null) {
@@ -883,6 +885,7 @@ function isDateTime(str) {
883
885
  // Annotate the CommonJS export names for ESM import in node:
884
886
  0 && (module.exports = {
885
887
  checkCopyObject,
888
+ checkFnOptionsOrderBy,
886
889
  convertToNumber,
887
890
  convertToString,
888
891
  copyObject,
@@ -897,8 +900,8 @@ function isDateTime(str) {
897
900
  isDate,
898
901
  isDateTime,
899
902
  isFutureDate,
900
- mergeFnOptionsOrderBy,
901
903
  modifyObject,
904
+ omit,
902
905
  orderByToOrder,
903
906
  toQueryString,
904
907
  wait
@@ -11,6 +11,7 @@ export declare function wait(time: number): Promise<void>;
11
11
  export declare function getIdentifier(): string;
12
12
  export declare function copyObject<T>(input: T): T;
13
13
  export declare function checkCopyObject<T>(input: T, property: string, value: unknown): T;
14
+ export declare function omit<InputObject, OmitKey extends string>(input: InputObject, omitKey: OmitKey): Omit<InputObject, OmitKey>;
14
15
  type ForeignType = {
15
16
  foreign: string;
16
17
  };
@@ -35,10 +36,11 @@ export declare function modifyObject<R>(orig: unknown, modifications: {
35
36
  [k: string]: string | ((i: any) => any);
36
37
  }): R;
37
38
  export declare function orderByToOrder(orderBy: string): ITxOrderingInput[];
38
- export declare function mergeFnOptionsOrderBy<T extends {
39
- order_by?: string | undefined;
39
+ export declare function checkFnOptionsOrderBy<T extends undefined>(input?: T): undefined;
40
+ export declare function checkFnOptionsOrderBy<T extends {
41
+ order_by?: string;
40
42
  order?: ITxOrderingInput[];
41
- }>(options: T): Omit<T, 'order_by'>;
43
+ }>(input?: T): Omit<T, 'order_by'>;
42
44
  export declare function convertToString(input?: unknown): string | undefined;
43
45
  export declare function convertToNumber(input: string | number): number;
44
46
  export declare function isFutureDate(dateString: string): boolean;
package/dist/lib/utils.js CHANGED
@@ -27,18 +27,6 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
27
27
  if (typeof require !== "undefined") return require.apply(this, arguments);
28
28
  throw Error('Dynamic require of "' + x + '" is not supported');
29
29
  });
30
- var __objRest = (source, exclude) => {
31
- var target = {};
32
- for (var prop in source)
33
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
34
- target[prop] = source[prop];
35
- if (source != null && __getOwnPropSymbols)
36
- for (var prop of __getOwnPropSymbols(source)) {
37
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
38
- target[prop] = source[prop];
39
- }
40
- return target;
41
- };
42
30
  var __commonJS = (cb, mod) => function __require2() {
43
31
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
44
32
  };
@@ -731,6 +719,11 @@ function checkCopyObject(input, property, value) {
731
719
  copy[property] = value;
732
720
  return copy;
733
721
  }
722
+ function omit(input, omitKey) {
723
+ const copy = copyObject(input);
724
+ delete copy[omitKey];
725
+ return copy;
726
+ }
734
727
  function getForeign(value) {
735
728
  const stringValue = inputToString(value);
736
729
  if (stringValue === void 0 || stringValue === null) {
@@ -804,12 +797,20 @@ function orderByToOrder(orderBy) {
804
797
  };
805
798
  });
806
799
  }
807
- function mergeFnOptionsOrderBy(options) {
808
- const _a = options, { order_by: orderBy } = _a, outputOptions = __objRest(_a, ["order_by"]);
809
- if (!outputOptions.order && orderBy) {
810
- outputOptions.order = orderByToOrder(orderBy);
800
+ function checkFnOptionsOrderBy(input) {
801
+ if (!input) {
802
+ return void 0;
803
+ }
804
+ if (!input.order_by) {
805
+ return input;
806
+ }
807
+ const orderBy = input.order_by;
808
+ delete input.order_by;
809
+ if (input.order) {
810
+ return input;
811
811
  }
812
- return outputOptions;
812
+ input.order = orderByToOrder(orderBy);
813
+ return input;
813
814
  }
814
815
  function convertToString(input) {
815
816
  if (input === void 0 || input === null) {
@@ -859,6 +860,7 @@ function isDateTime(str) {
859
860
  }
860
861
  export {
861
862
  checkCopyObject,
863
+ checkFnOptionsOrderBy,
862
864
  convertToNumber,
863
865
  convertToString,
864
866
  copyObject,
@@ -873,8 +875,8 @@ export {
873
875
  isDate,
874
876
  isDateTime,
875
877
  isFutureDate,
876
- mergeFnOptionsOrderBy,
877
878
  modifyObject,
879
+ omit,
878
880
  orderByToOrder,
879
881
  toQueryString,
880
882
  wait
@@ -1,51 +1,51 @@
1
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/aggregate-transfer-many/aggregate-transfer-many.enums';
2
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/authentication-check/authentication-check.enums';
3
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/create-access-token/create-access-token.enums';
4
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/create-contract/create-contract.enums';
5
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/create-deposit/create-deposit.enums';
6
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/create-distribution/create-distribution.enums';
7
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/create-token/create-token.enums';
8
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/create-transfer/create-transfer.enums';
9
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/create-transfer-group/create-transfer-group.enums';
10
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/create-transfer-many/create-transfer-many.enums';
11
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/create-wallet/create-wallet.enums';
12
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/create-withdrawal/create-withdrawal.enums';
13
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/export-balance-history/export-balance-history.enums';
14
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/export-token-many/export-token-many.enums';
15
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/export-transfer-group-many/export-transfer-group-many.enums';
16
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/export-transfer-many/export-transfer-many.enums';
17
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/export-wallet-many/export-wallet-many.enums';
18
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/find-balance-many/find-balance-many.enums';
19
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/find-token-many/find-token-many.enums';
20
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/find-transfer-group-many/find-transfer-group-many.enums';
21
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/find-transfer-many/find-transfer-many.enums';
22
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/find-wallet-many/find-wallet-many.enums';
23
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/finish-transaction/finish-transaction.enums';
24
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/get-balance/get-balance.enums';
25
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/get-balance-history/get-balance-history.enums';
26
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/get-export/get-export.enums';
27
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/get-flags/get-flags.enums';
28
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/get-statistics/get-statistics.enums';
29
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/get-token/get-token.enums';
30
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/get-token-many/get-token-many.enums';
31
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/get-transfer/get-transfer.enums';
32
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/get-transfer-group/get-transfer-group.enums';
33
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/get-wallet/get-wallet.enums';
34
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/get-wallet-many/get-wallet-many.enums';
35
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/healthcheck/healthcheck.enums';
36
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/import-actions/import-actions.enums';
37
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/list-export-many/list-export-many.enums';
38
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/query-logs/query-logs.enums';
39
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/reset-database/reset-database.enums';
40
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/reverse-transfer/reverse-transfer.enums';
41
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/reverse-transfer-group/reverse-transfer-group.enums';
42
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/reverse-transfer-group-many/reverse-transfer-group-many.enums';
43
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/reverse-transfer-many/reverse-transfer-many.enums';
44
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/set-flags/set-flags.enums';
45
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/start-transaction/start-transaction.enums';
46
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/update-token/update-token.enums';
47
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/update-transfer/update-transfer.enums';
48
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/update-transfer-group/update-transfer-group.enums';
49
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/update-transfer-group-many/update-transfer-group-many.enums';
50
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/update-transfer-many/update-transfer-many.enums';
51
- export * from '/Users/karl/Documents/www/wapi/wapi-client/src/txs/update-wallet/update-wallet.enums';
1
+ export * from './aggregate-transfer-many/aggregate-transfer-many.enums';
2
+ export * from './authentication-check/authentication-check.enums';
3
+ export * from './create-access-token/create-access-token.enums';
4
+ export * from './create-contract/create-contract.enums';
5
+ export * from './create-deposit/create-deposit.enums';
6
+ export * from './create-distribution/create-distribution.enums';
7
+ export * from './create-token/create-token.enums';
8
+ export * from './create-transfer/create-transfer.enums';
9
+ export * from './create-transfer-group/create-transfer-group.enums';
10
+ export * from './create-transfer-many/create-transfer-many.enums';
11
+ export * from './create-wallet/create-wallet.enums';
12
+ export * from './create-withdrawal/create-withdrawal.enums';
13
+ export * from './export-balance-history/export-balance-history.enums';
14
+ export * from './export-token-many/export-token-many.enums';
15
+ export * from './export-transfer-group-many/export-transfer-group-many.enums';
16
+ export * from './export-transfer-many/export-transfer-many.enums';
17
+ export * from './export-wallet-many/export-wallet-many.enums';
18
+ export * from './find-balance-many/find-balance-many.enums';
19
+ export * from './find-token-many/find-token-many.enums';
20
+ export * from './find-transfer-group-many/find-transfer-group-many.enums';
21
+ export * from './find-transfer-many/find-transfer-many.enums';
22
+ export * from './find-wallet-many/find-wallet-many.enums';
23
+ export * from './finish-transaction/finish-transaction.enums';
24
+ export * from './get-balance/get-balance.enums';
25
+ export * from './get-balance-history/get-balance-history.enums';
26
+ export * from './get-export/get-export.enums';
27
+ export * from './get-flags/get-flags.enums';
28
+ export * from './get-statistics/get-statistics.enums';
29
+ export * from './get-token/get-token.enums';
30
+ export * from './get-token-many/get-token-many.enums';
31
+ export * from './get-transfer/get-transfer.enums';
32
+ export * from './get-transfer-group/get-transfer-group.enums';
33
+ export * from './get-wallet/get-wallet.enums';
34
+ export * from './get-wallet-many/get-wallet-many.enums';
35
+ export * from './healthcheck/healthcheck.enums';
36
+ export * from './import-actions/import-actions.enums';
37
+ export * from './list-export-many/list-export-many.enums';
38
+ export * from './query-logs/query-logs.enums';
39
+ export * from './reset-database/reset-database.enums';
40
+ export * from './reverse-transfer/reverse-transfer.enums';
41
+ export * from './reverse-transfer-group/reverse-transfer-group.enums';
42
+ export * from './reverse-transfer-group-many/reverse-transfer-group-many.enums';
43
+ export * from './reverse-transfer-many/reverse-transfer-many.enums';
44
+ export * from './set-flags/set-flags.enums';
45
+ export * from './start-transaction/start-transaction.enums';
46
+ export * from './update-token/update-token.enums';
47
+ export * from './update-transfer/update-transfer.enums';
48
+ export * from './update-transfer-group/update-transfer-group.enums';
49
+ export * from './update-transfer-group-many/update-transfer-group-many.enums';
50
+ export * from './update-transfer-many/update-transfer-many.enums';
51
+ export * from './update-wallet/update-wallet.enums';
@@ -1831,6 +1831,11 @@ declare module 'wapi-client/lib/errors' {
1831
1831
  };
1832
1832
  }
1833
1833
  declare module 'wapi-client/lib/ts-utils' {
1834
+ export type Mutable<T> = {
1835
+ -readonly [P in keyof T]: Mutable<T[P]>;
1836
+ };
1837
+ export type RemoveFromTuple<T extends unknown[], U extends unknown[]> = T extends [infer A, ...infer B] ? A extends U[number] ? RemoveFromTuple<B, U> : [A, ...RemoveFromTuple<B, U>] : [];
1838
+ export function toMutable<T>(inp: T): Mutable<T>;
1834
1839
  export function createEnumFromTuple<T extends readonly string[]>(tuple: T): Readonly<{
1835
1840
  [K in T[number]]: K;
1836
1841
  }>;
@@ -1838,7 +1843,7 @@ declare module 'wapi-client/lib/ts-utils' {
1838
1843
  declare module 'wapi-client/db/consts' {
1839
1844
  import z from 'zod';
1840
1845
  export type Metadata = {
1841
- [key: string]: string | boolean | number | null | Metadata | undefined | (string | boolean | number | null | Metadata | undefined)[];
1846
+ [key: string]: string | boolean | number | null | Metadata | (string | boolean | number | null | Metadata)[];
1842
1847
  } | null;
1843
1848
  export const MetadataSchema: z.ZodType<Metadata>;
1844
1849
  export const DatetimeSchema: z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString]>;
@@ -2945,6 +2950,7 @@ declare module 'wapi-client/lib/utils' {
2945
2950
  export function getIdentifier(): string;
2946
2951
  export function copyObject<T>(input: T): T;
2947
2952
  export function checkCopyObject<T>(input: T, property: string, value: unknown): T;
2953
+ export function omit<InputObject, OmitKey extends string>(input: InputObject, omitKey: OmitKey): Omit<InputObject, OmitKey>;
2948
2954
  type ForeignType = {
2949
2955
  foreign: string;
2950
2956
  };
@@ -2969,10 +2975,11 @@ declare module 'wapi-client/lib/utils' {
2969
2975
  [k: string]: string | ((i: any) => any);
2970
2976
  }): R;
2971
2977
  export function orderByToOrder(orderBy: string): ITxOrderingInput[];
2972
- export function mergeFnOptionsOrderBy<T extends {
2973
- order_by?: string | undefined;
2978
+ export function checkFnOptionsOrderBy<T extends undefined>(input?: T): undefined;
2979
+ export function checkFnOptionsOrderBy<T extends {
2980
+ order_by?: string;
2974
2981
  order?: ITxOrderingInput[];
2975
- }>(options: T): Omit<T, 'order_by'>;
2982
+ }>(input?: T): Omit<T, 'order_by'>;
2976
2983
  export function convertToString(input?: unknown): string | undefined;
2977
2984
  export function convertToNumber(input: string | number): number;
2978
2985
  export function isFutureDate(dateString: string): boolean;
@@ -3084,6 +3091,9 @@ declare module 'wapi-client/lib/stream-promise-input' {
3084
3091
  input(inputStream: ReadStream): this;
3085
3092
  }
3086
3093
  }
3094
+ declare module 'wapi-client/lib/polyfill' {
3095
+ export function initPolyfills(): void;
3096
+ }
3087
3097
  declare module 'wapi-client/lib/log' {
3088
3098
  export const QUERYABLE: {};
3089
3099
  }
@@ -65468,10 +65478,9 @@ declare module 'wapi-client/fns/index' {
65468
65478
  }
65469
65479
  declare module 'wapi-client/fns/consts.enums' {
65470
65480
  import z from 'zod';
65471
- import { iFnFindOptionsExtraSchema, iFnFindOptionsSchema, allowedStringPositiveNumericSchema, allowedStringIntSchema, allowedStringNumberSchema } from 'wapi-client/fns/consts';
65481
+ import { iFnFindOptionsExtraSchema, iFnFindOptionsSchema, allowedStringIntSchema, allowedStringNumberSchema } from 'wapi-client/fns/consts';
65472
65482
  export type IFnFindOptionsExtra = z.infer<typeof iFnFindOptionsExtraSchema>;
65473
65483
  export type IFnFindOptions = z.infer<typeof iFnFindOptionsSchema>;
65474
- export type AllowedStringPositiveNumeric = z.infer<typeof allowedStringPositiveNumericSchema>;
65475
65484
  export type AllowedStringInt = z.infer<typeof allowedStringIntSchema>;
65476
65485
  export type AllowedStringNumber = z.infer<typeof allowedStringNumberSchema>;
65477
65486
  }
@@ -69338,6 +69347,7 @@ export * from 'wapi-client/lib/utils';
69338
69347
  export * from 'wapi-client/lib/isomorphic/node/streams';
69339
69348
  export * from 'wapi-client/lib/stream-promise';
69340
69349
  export * from 'wapi-client/lib/stream-promise-input';
69350
+ export * from 'wapi-client/lib/polyfill';
69341
69351
  export * from 'wapi-client/lib/log';
69342
69352
  export * from 'wapi-client/lib/validation';
69343
69353
  export * from 'wapi-client/fns/consts';