@apideck/unify 0.25.0 → 0.26.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.
Files changed (97) hide show
  1. package/README.md +7 -0
  2. package/docs/sdks/categories/README.md +181 -0
  3. package/funcs/accountingCategoriesGet.d.ts +18 -0
  4. package/funcs/accountingCategoriesGet.d.ts.map +1 -0
  5. package/funcs/accountingCategoriesGet.js +133 -0
  6. package/funcs/accountingCategoriesGet.js.map +1 -0
  7. package/funcs/accountingCategoriesList.d.ts +21 -0
  8. package/funcs/accountingCategoriesList.d.ts.map +1 -0
  9. package/funcs/accountingCategoriesList.js +151 -0
  10. package/funcs/accountingCategoriesList.js.map +1 -0
  11. package/jsr.json +1 -1
  12. package/lib/config.d.ts +4 -4
  13. package/lib/config.js +4 -4
  14. package/lib/files.d.ts +5 -0
  15. package/lib/files.d.ts.map +1 -1
  16. package/lib/files.js +41 -0
  17. package/lib/files.js.map +1 -1
  18. package/lib/security.d.ts +2 -2
  19. package/lib/security.d.ts.map +1 -1
  20. package/models/components/bill.d.ts +2 -2
  21. package/models/components/category.d.ts +114 -0
  22. package/models/components/category.d.ts.map +1 -0
  23. package/models/components/category.js +121 -0
  24. package/models/components/category.js.map +1 -0
  25. package/models/components/contact.d.ts +4 -4
  26. package/models/components/contact.d.ts.map +1 -1
  27. package/models/components/contact.js +4 -4
  28. package/models/components/contact.js.map +1 -1
  29. package/models/components/expense.d.ts +10 -0
  30. package/models/components/expense.d.ts.map +1 -1
  31. package/models/components/expense.js +4 -0
  32. package/models/components/expense.js.map +1 -1
  33. package/models/components/formfieldoption.d.ts +6 -6
  34. package/models/components/formfieldoption.d.ts.map +1 -1
  35. package/models/components/formfieldoption.js +4 -4
  36. package/models/components/formfieldoption.js.map +1 -1
  37. package/models/components/getcategoriesresponse.d.ts +79 -0
  38. package/models/components/getcategoriesresponse.d.ts.map +1 -0
  39. package/models/components/getcategoriesresponse.js +89 -0
  40. package/models/components/getcategoriesresponse.js.map +1 -0
  41. package/models/components/getcategoryresponse.d.ts +67 -0
  42. package/models/components/getcategoryresponse.d.ts.map +1 -0
  43. package/models/components/getcategoryresponse.js +83 -0
  44. package/models/components/getcategoryresponse.js.map +1 -0
  45. package/models/components/index.d.ts +3 -0
  46. package/models/components/index.d.ts.map +1 -1
  47. package/models/components/index.js +3 -0
  48. package/models/components/index.js.map +1 -1
  49. package/models/components/invoice.d.ts +2 -2
  50. package/models/components/supplier.d.ts +10 -0
  51. package/models/components/supplier.d.ts.map +1 -1
  52. package/models/components/supplier.js +8 -0
  53. package/models/components/supplier.js.map +1 -1
  54. package/models/operations/accountingcategoriesall.d.ts +131 -0
  55. package/models/operations/accountingcategoriesall.d.ts.map +1 -0
  56. package/models/operations/accountingcategoriesall.js +149 -0
  57. package/models/operations/accountingcategoriesall.js.map +1 -0
  58. package/models/operations/accountingcategoriesone.d.ts +126 -0
  59. package/models/operations/accountingcategoriesone.d.ts.map +1 -0
  60. package/models/operations/accountingcategoriesone.js +145 -0
  61. package/models/operations/accountingcategoriesone.js.map +1 -0
  62. package/models/operations/index.d.ts +2 -0
  63. package/models/operations/index.d.ts.map +1 -1
  64. package/models/operations/index.js +2 -0
  65. package/models/operations/index.js.map +1 -1
  66. package/package.json +1 -1
  67. package/sdk/accounting.d.ts +3 -0
  68. package/sdk/accounting.d.ts.map +1 -1
  69. package/sdk/accounting.js +4 -0
  70. package/sdk/accounting.js.map +1 -1
  71. package/sdk/categories.d.ts +22 -0
  72. package/sdk/categories.d.ts.map +1 -0
  73. package/sdk/categories.js +33 -0
  74. package/sdk/categories.js.map +1 -0
  75. package/src/__tests__/categories.test.ts +127 -0
  76. package/src/funcs/accountingCategoriesGet.ts +230 -0
  77. package/src/funcs/accountingCategoriesList.ts +288 -0
  78. package/src/lib/config.ts +4 -4
  79. package/src/lib/files.ts +42 -0
  80. package/src/lib/security.ts +2 -2
  81. package/src/models/components/bill.ts +2 -2
  82. package/src/models/components/category.ts +193 -0
  83. package/src/models/components/contact.ts +8 -8
  84. package/src/models/components/expense.ts +14 -0
  85. package/src/models/components/formfieldoption.ts +12 -12
  86. package/src/models/components/getcategoriesresponse.ts +154 -0
  87. package/src/models/components/getcategoryresponse.ts +128 -0
  88. package/src/models/components/index.ts +3 -0
  89. package/src/models/components/invoice.ts +2 -2
  90. package/src/models/components/supplier.ts +18 -0
  91. package/src/models/operations/accountingcategoriesall.ts +277 -0
  92. package/src/models/operations/accountingcategoriesone.ts +268 -0
  93. package/src/models/operations/index.ts +2 -0
  94. package/src/sdk/accounting.ts +6 -0
  95. package/src/sdk/categories.ts +48 -0
  96. package/src/types/constdatetime.ts +1 -1
  97. package/types/constdatetime.js +1 -1
@@ -0,0 +1,48 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { accountingCategoriesGet } from "../funcs/accountingCategoriesGet.js";
6
+ import { accountingCategoriesList } from "../funcs/accountingCategoriesList.js";
7
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { unwrapAsync } from "../types/fp.js";
10
+ import { PageIterator, unwrapResultIterator } from "../types/operations.js";
11
+
12
+ export class Categories extends ClientSDK {
13
+ /**
14
+ * List Categories
15
+ *
16
+ * @remarks
17
+ * List Categories
18
+ */
19
+ async list(
20
+ request: operations.AccountingCategoriesAllRequest,
21
+ options?: RequestOptions,
22
+ ): Promise<
23
+ PageIterator<operations.AccountingCategoriesAllResponse, { cursor: string }>
24
+ > {
25
+ return unwrapResultIterator(accountingCategoriesList(
26
+ this,
27
+ request,
28
+ options,
29
+ ));
30
+ }
31
+
32
+ /**
33
+ * Get Category
34
+ *
35
+ * @remarks
36
+ * Get Category
37
+ */
38
+ async get(
39
+ request: operations.AccountingCategoriesOneRequest,
40
+ options?: RequestOptions,
41
+ ): Promise<operations.AccountingCategoriesOneResponse> {
42
+ return unwrapAsync(accountingCategoriesGet(
43
+ this,
44
+ request,
45
+ options,
46
+ ));
47
+ }
48
+ }
@@ -11,5 +11,5 @@ export function constDateTime(
11
11
  return (
12
12
  typeof v === "string" && new Date(v).getTime() === new Date(val).getTime()
13
13
  );
14
- }, `Value must be equivelant to ${val}`);
14
+ }, `Value must be equivalent to ${val}`);
15
15
  }
@@ -31,6 +31,6 @@ const z = __importStar(require("zod"));
31
31
  function constDateTime(val) {
32
32
  return z.custom((v) => {
33
33
  return (typeof v === "string" && new Date(v).getTime() === new Date(val).getTime());
34
- }, `Value must be equivelant to ${val}`);
34
+ }, `Value must be equivalent to ${val}`);
35
35
  }
36
36
  //# sourceMappingURL=constdatetime.js.map