@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.
- package/README.md +7 -0
- package/docs/sdks/categories/README.md +181 -0
- package/funcs/accountingCategoriesGet.d.ts +18 -0
- package/funcs/accountingCategoriesGet.d.ts.map +1 -0
- package/funcs/accountingCategoriesGet.js +133 -0
- package/funcs/accountingCategoriesGet.js.map +1 -0
- package/funcs/accountingCategoriesList.d.ts +21 -0
- package/funcs/accountingCategoriesList.d.ts.map +1 -0
- package/funcs/accountingCategoriesList.js +151 -0
- package/funcs/accountingCategoriesList.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/files.d.ts +5 -0
- package/lib/files.d.ts.map +1 -1
- package/lib/files.js +41 -0
- package/lib/files.js.map +1 -1
- package/lib/security.d.ts +2 -2
- package/lib/security.d.ts.map +1 -1
- package/models/components/bill.d.ts +2 -2
- package/models/components/category.d.ts +114 -0
- package/models/components/category.d.ts.map +1 -0
- package/models/components/category.js +121 -0
- package/models/components/category.js.map +1 -0
- package/models/components/contact.d.ts +4 -4
- package/models/components/contact.d.ts.map +1 -1
- package/models/components/contact.js +4 -4
- package/models/components/contact.js.map +1 -1
- package/models/components/expense.d.ts +10 -0
- package/models/components/expense.d.ts.map +1 -1
- package/models/components/expense.js +4 -0
- package/models/components/expense.js.map +1 -1
- package/models/components/formfieldoption.d.ts +6 -6
- package/models/components/formfieldoption.d.ts.map +1 -1
- package/models/components/formfieldoption.js +4 -4
- package/models/components/formfieldoption.js.map +1 -1
- package/models/components/getcategoriesresponse.d.ts +79 -0
- package/models/components/getcategoriesresponse.d.ts.map +1 -0
- package/models/components/getcategoriesresponse.js +89 -0
- package/models/components/getcategoriesresponse.js.map +1 -0
- package/models/components/getcategoryresponse.d.ts +67 -0
- package/models/components/getcategoryresponse.d.ts.map +1 -0
- package/models/components/getcategoryresponse.js +83 -0
- package/models/components/getcategoryresponse.js.map +1 -0
- package/models/components/index.d.ts +3 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invoice.d.ts +2 -2
- package/models/components/supplier.d.ts +10 -0
- package/models/components/supplier.d.ts.map +1 -1
- package/models/components/supplier.js +8 -0
- package/models/components/supplier.js.map +1 -1
- package/models/operations/accountingcategoriesall.d.ts +131 -0
- package/models/operations/accountingcategoriesall.d.ts.map +1 -0
- package/models/operations/accountingcategoriesall.js +149 -0
- package/models/operations/accountingcategoriesall.js.map +1 -0
- package/models/operations/accountingcategoriesone.d.ts +126 -0
- package/models/operations/accountingcategoriesone.d.ts.map +1 -0
- package/models/operations/accountingcategoriesone.js +145 -0
- package/models/operations/accountingcategoriesone.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/accounting.d.ts +3 -0
- package/sdk/accounting.d.ts.map +1 -1
- package/sdk/accounting.js +4 -0
- package/sdk/accounting.js.map +1 -1
- package/sdk/categories.d.ts +22 -0
- package/sdk/categories.d.ts.map +1 -0
- package/sdk/categories.js +33 -0
- package/sdk/categories.js.map +1 -0
- package/src/__tests__/categories.test.ts +127 -0
- package/src/funcs/accountingCategoriesGet.ts +230 -0
- package/src/funcs/accountingCategoriesList.ts +288 -0
- package/src/lib/config.ts +4 -4
- package/src/lib/files.ts +42 -0
- package/src/lib/security.ts +2 -2
- package/src/models/components/bill.ts +2 -2
- package/src/models/components/category.ts +193 -0
- package/src/models/components/contact.ts +8 -8
- package/src/models/components/expense.ts +14 -0
- package/src/models/components/formfieldoption.ts +12 -12
- package/src/models/components/getcategoriesresponse.ts +154 -0
- package/src/models/components/getcategoryresponse.ts +128 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/invoice.ts +2 -2
- package/src/models/components/supplier.ts +18 -0
- package/src/models/operations/accountingcategoriesall.ts +277 -0
- package/src/models/operations/accountingcategoriesone.ts +268 -0
- package/src/models/operations/index.ts +2 -0
- package/src/sdk/accounting.ts +6 -0
- package/src/sdk/categories.ts +48 -0
- package/src/types/constdatetime.ts +1 -1
- 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
|
+
}
|
package/types/constdatetime.js
CHANGED
|
@@ -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
|
|
34
|
+
}, `Value must be equivalent to ${val}`);
|
|
35
35
|
}
|
|
36
36
|
//# sourceMappingURL=constdatetime.js.map
|