@unified-api/typescript-sdk 2.85.41 → 2.85.42
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 +2 -0
- package/dist/commonjs/funcs/accountingListAccountingExpenses.js +1 -0
- package/dist/commonjs/funcs/accountingListAccountingExpenses.js.map +1 -1
- package/dist/commonjs/funcs/taxonomyCreateHrisTaxonomy.d.ts +15 -0
- package/dist/commonjs/funcs/taxonomyCreateHrisTaxonomy.d.ts.map +1 -0
- package/dist/commonjs/funcs/taxonomyCreateHrisTaxonomy.js +123 -0
- package/dist/commonjs/funcs/taxonomyCreateHrisTaxonomy.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/sdk/hris.d.ts +4 -0
- package/dist/commonjs/sdk/hris.d.ts.map +1 -1
- package/dist/commonjs/sdk/hris.js +7 -0
- package/dist/commonjs/sdk/hris.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/createhristaxonomy.d.ts +49 -0
- package/dist/commonjs/sdk/models/operations/createhristaxonomy.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/createhristaxonomy.js +78 -0
- package/dist/commonjs/sdk/models/operations/createhristaxonomy.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/index.js +1 -0
- package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listaccountingexpenses.d.ts +5 -0
- package/dist/commonjs/sdk/models/operations/listaccountingexpenses.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listaccountingexpenses.js +2 -0
- package/dist/commonjs/sdk/models/operations/listaccountingexpenses.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/hristaxonomy.d.ts +25 -0
- package/dist/commonjs/sdk/models/shared/hristaxonomy.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/hristaxonomy.js +34 -1
- package/dist/commonjs/sdk/models/shared/hristaxonomy.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/integrationsupport.d.ts +18 -0
- package/dist/commonjs/sdk/models/shared/integrationsupport.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/integrationsupport.js +27 -8
- package/dist/commonjs/sdk/models/shared/integrationsupport.js.map +1 -1
- package/dist/commonjs/sdk/taxonomy.d.ts +4 -0
- package/dist/commonjs/sdk/taxonomy.d.ts.map +1 -1
- package/dist/commonjs/sdk/taxonomy.js +7 -0
- package/dist/commonjs/sdk/taxonomy.js.map +1 -1
- package/dist/esm/funcs/accountingListAccountingExpenses.js +1 -0
- package/dist/esm/funcs/accountingListAccountingExpenses.js.map +1 -1
- package/dist/esm/funcs/taxonomyCreateHrisTaxonomy.d.ts +15 -0
- package/dist/esm/funcs/taxonomyCreateHrisTaxonomy.d.ts.map +1 -0
- package/dist/esm/funcs/taxonomyCreateHrisTaxonomy.js +87 -0
- package/dist/esm/funcs/taxonomyCreateHrisTaxonomy.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/sdk/hris.d.ts +4 -0
- package/dist/esm/sdk/hris.d.ts.map +1 -1
- package/dist/esm/sdk/hris.js +7 -0
- package/dist/esm/sdk/hris.js.map +1 -1
- package/dist/esm/sdk/models/operations/createhristaxonomy.d.ts +49 -0
- package/dist/esm/sdk/models/operations/createhristaxonomy.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/createhristaxonomy.js +41 -0
- package/dist/esm/sdk/models/operations/createhristaxonomy.js.map +1 -0
- package/dist/esm/sdk/models/operations/index.d.ts +1 -0
- package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/index.js +1 -0
- package/dist/esm/sdk/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/models/operations/listaccountingexpenses.d.ts +5 -0
- package/dist/esm/sdk/models/operations/listaccountingexpenses.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listaccountingexpenses.js +2 -0
- package/dist/esm/sdk/models/operations/listaccountingexpenses.js.map +1 -1
- package/dist/esm/sdk/models/shared/hristaxonomy.d.ts +25 -0
- package/dist/esm/sdk/models/shared/hristaxonomy.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/hristaxonomy.js +32 -0
- package/dist/esm/sdk/models/shared/hristaxonomy.js.map +1 -1
- package/dist/esm/sdk/models/shared/integrationsupport.d.ts +18 -0
- package/dist/esm/sdk/models/shared/integrationsupport.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/integrationsupport.js +19 -0
- package/dist/esm/sdk/models/shared/integrationsupport.js.map +1 -1
- package/dist/esm/sdk/taxonomy.d.ts +4 -0
- package/dist/esm/sdk/taxonomy.d.ts.map +1 -1
- package/dist/esm/sdk/taxonomy.js +7 -0
- package/dist/esm/sdk/taxonomy.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/accountingListAccountingExpenses.ts +1 -0
- package/src/funcs/taxonomyCreateHrisTaxonomy.ts +171 -0
- package/src/lib/config.ts +3 -3
- package/src/sdk/hris.ts +15 -0
- package/src/sdk/models/operations/createhristaxonomy.ts +83 -0
- package/src/sdk/models/operations/index.ts +1 -0
- package/src/sdk/models/operations/listaccountingexpenses.ts +7 -0
- package/src/sdk/models/shared/hristaxonomy.ts +59 -0
- package/src/sdk/models/shared/integrationsupport.ts +37 -0
- package/src/sdk/taxonomy.ts +15 -0
|
@@ -40,6 +40,10 @@ export type ListAccountingExpensesQueryParamFields = ClosedEnum<
|
|
|
40
40
|
>;
|
|
41
41
|
|
|
42
42
|
export type ListAccountingExpensesRequest = {
|
|
43
|
+
/**
|
|
44
|
+
* The expense approver user/employee ID to filter by (reference to HrisEmployee)
|
|
45
|
+
*/
|
|
46
|
+
approverUserId?: string | undefined;
|
|
43
47
|
/**
|
|
44
48
|
* The category ID to filter by (reference to AccountingCategory)
|
|
45
49
|
*/
|
|
@@ -106,6 +110,7 @@ export const ListAccountingExpensesQueryParamFields$outboundSchema:
|
|
|
106
110
|
|
|
107
111
|
/** @internal */
|
|
108
112
|
export type ListAccountingExpensesRequest$Outbound = {
|
|
113
|
+
approver_user_id?: string | undefined;
|
|
109
114
|
category_id?: string | undefined;
|
|
110
115
|
connection_id: string;
|
|
111
116
|
contact_id?: string | undefined;
|
|
@@ -131,6 +136,7 @@ export const ListAccountingExpensesRequest$outboundSchema: z.ZodType<
|
|
|
131
136
|
z.ZodTypeDef,
|
|
132
137
|
ListAccountingExpensesRequest
|
|
133
138
|
> = z.object({
|
|
139
|
+
approverUserId: z.string().optional(),
|
|
134
140
|
categoryId: z.string().optional(),
|
|
135
141
|
connectionId: z.string(),
|
|
136
142
|
contactId: z.string().optional(),
|
|
@@ -151,6 +157,7 @@ export const ListAccountingExpensesRequest$outboundSchema: z.ZodType<
|
|
|
151
157
|
userId: z.string().optional(),
|
|
152
158
|
}).transform((v) => {
|
|
153
159
|
return remap$(v, {
|
|
160
|
+
approverUserId: "approver_user_id",
|
|
154
161
|
categoryId: "category_id",
|
|
155
162
|
connectionId: "connection_id",
|
|
156
163
|
contactId: "contact_id",
|
|
@@ -52,6 +52,12 @@ export const HrisTaxonomyType$inboundSchema: z.ZodType<
|
|
|
52
52
|
z.ZodTypeDef,
|
|
53
53
|
unknown
|
|
54
54
|
> = openEnums.inboundSchema(HrisTaxonomyType);
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const HrisTaxonomyType$outboundSchema: z.ZodType<
|
|
57
|
+
string,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
HrisTaxonomyType
|
|
60
|
+
> = openEnums.outboundSchema(HrisTaxonomyType);
|
|
55
61
|
|
|
56
62
|
/** @internal */
|
|
57
63
|
export const HrisTaxonomy$inboundSchema: z.ZodType<
|
|
@@ -86,7 +92,60 @@ export const HrisTaxonomy$inboundSchema: z.ZodType<
|
|
|
86
92
|
"updated_at": "updatedAt",
|
|
87
93
|
});
|
|
88
94
|
});
|
|
95
|
+
/** @internal */
|
|
96
|
+
export type HrisTaxonomy$Outbound = {
|
|
97
|
+
alternative_names?: Array<string> | undefined;
|
|
98
|
+
category?: string | undefined;
|
|
99
|
+
created_at?: string | undefined;
|
|
100
|
+
description?: string | undefined;
|
|
101
|
+
domain?: string | undefined;
|
|
102
|
+
id?: string | undefined;
|
|
103
|
+
is_active?: boolean | undefined;
|
|
104
|
+
name?: string | undefined;
|
|
105
|
+
parent_id?: string | undefined;
|
|
106
|
+
raw?: { [k: string]: any } | undefined;
|
|
107
|
+
role_ids?: Array<string> | undefined;
|
|
108
|
+
subcategory?: string | undefined;
|
|
109
|
+
type?: string | undefined;
|
|
110
|
+
updated_at?: string | undefined;
|
|
111
|
+
url?: string | undefined;
|
|
112
|
+
};
|
|
89
113
|
|
|
114
|
+
/** @internal */
|
|
115
|
+
export const HrisTaxonomy$outboundSchema: z.ZodType<
|
|
116
|
+
HrisTaxonomy$Outbound,
|
|
117
|
+
z.ZodTypeDef,
|
|
118
|
+
HrisTaxonomy
|
|
119
|
+
> = z.object({
|
|
120
|
+
alternativeNames: z.array(z.string()).optional(),
|
|
121
|
+
category: z.string().optional(),
|
|
122
|
+
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
123
|
+
description: z.string().optional(),
|
|
124
|
+
domain: z.string().optional(),
|
|
125
|
+
id: z.string().optional(),
|
|
126
|
+
isActive: z.boolean().optional(),
|
|
127
|
+
name: z.string().optional(),
|
|
128
|
+
parentId: z.string().optional(),
|
|
129
|
+
raw: z.record(z.any()).optional(),
|
|
130
|
+
roleIds: z.array(z.string()).optional(),
|
|
131
|
+
subcategory: z.string().optional(),
|
|
132
|
+
type: HrisTaxonomyType$outboundSchema.optional(),
|
|
133
|
+
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
134
|
+
url: z.string().optional(),
|
|
135
|
+
}).transform((v) => {
|
|
136
|
+
return remap$(v, {
|
|
137
|
+
alternativeNames: "alternative_names",
|
|
138
|
+
createdAt: "created_at",
|
|
139
|
+
isActive: "is_active",
|
|
140
|
+
parentId: "parent_id",
|
|
141
|
+
roleIds: "role_ids",
|
|
142
|
+
updatedAt: "updated_at",
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
export function hrisTaxonomyToJSON(hrisTaxonomy: HrisTaxonomy): string {
|
|
147
|
+
return JSON.stringify(HrisTaxonomy$outboundSchema.parse(hrisTaxonomy));
|
|
148
|
+
}
|
|
90
149
|
export function hrisTaxonomyFromJSON(
|
|
91
150
|
jsonString: string,
|
|
92
151
|
): SafeParseResult<HrisTaxonomy, SDKValidationError> {
|
|
@@ -42,6 +42,13 @@ export const ListApplicationId = {
|
|
|
42
42
|
} as const;
|
|
43
43
|
export type ListApplicationId = OpenEnum<typeof ListApplicationId>;
|
|
44
44
|
|
|
45
|
+
export const ListApproverUserId = {
|
|
46
|
+
SupportedRequired: "supported-required",
|
|
47
|
+
Supported: "supported",
|
|
48
|
+
NotSupported: "not-supported",
|
|
49
|
+
} as const;
|
|
50
|
+
export type ListApproverUserId = OpenEnum<typeof ListApproverUserId>;
|
|
51
|
+
|
|
45
52
|
export const ListAssignedUserId = {
|
|
46
53
|
SupportedRequired: "supported-required",
|
|
47
54
|
Supported: "supported",
|
|
@@ -898,6 +905,15 @@ export type VirtualWebhookApplicationId = OpenEnum<
|
|
|
898
905
|
typeof VirtualWebhookApplicationId
|
|
899
906
|
>;
|
|
900
907
|
|
|
908
|
+
export const VirtualWebhookApproverUserId = {
|
|
909
|
+
SupportedRequired: "supported-required",
|
|
910
|
+
Supported: "supported",
|
|
911
|
+
NotSupported: "not-supported",
|
|
912
|
+
} as const;
|
|
913
|
+
export type VirtualWebhookApproverUserId = OpenEnum<
|
|
914
|
+
typeof VirtualWebhookApproverUserId
|
|
915
|
+
>;
|
|
916
|
+
|
|
901
917
|
export const VirtualWebhookAssignedUserId = {
|
|
902
918
|
SupportedRequired: "supported-required",
|
|
903
919
|
Supported: "supported",
|
|
@@ -1393,6 +1409,7 @@ export type IntegrationSupport = {
|
|
|
1393
1409
|
listAccountId?: ListAccountId | undefined;
|
|
1394
1410
|
listAdId?: ListAdId | undefined;
|
|
1395
1411
|
listApplicationId?: ListApplicationId | undefined;
|
|
1412
|
+
listApproverUserId?: ListApproverUserId | undefined;
|
|
1396
1413
|
listAssignedUserId?: ListAssignedUserId | undefined;
|
|
1397
1414
|
listBankfeedaccountId?: ListBankfeedaccountId | undefined;
|
|
1398
1415
|
listBenefitId?: ListBenefitId | undefined;
|
|
@@ -1522,6 +1539,7 @@ export type IntegrationSupport = {
|
|
|
1522
1539
|
virtualWebhookAccountId?: VirtualWebhookAccountId | undefined;
|
|
1523
1540
|
virtualWebhookAdId?: VirtualWebhookAdId | undefined;
|
|
1524
1541
|
virtualWebhookApplicationId?: VirtualWebhookApplicationId | undefined;
|
|
1542
|
+
virtualWebhookApproverUserId?: VirtualWebhookApproverUserId | undefined;
|
|
1525
1543
|
virtualWebhookAssignedUserId?: VirtualWebhookAssignedUserId | undefined;
|
|
1526
1544
|
virtualWebhookBankfeedaccountId?: VirtualWebhookBankfeedaccountId | undefined;
|
|
1527
1545
|
virtualWebhookBenefitId?: VirtualWebhookBenefitId | undefined;
|
|
@@ -1618,6 +1636,13 @@ export const ListApplicationId$inboundSchema: z.ZodType<
|
|
|
1618
1636
|
unknown
|
|
1619
1637
|
> = openEnums.inboundSchema(ListApplicationId);
|
|
1620
1638
|
|
|
1639
|
+
/** @internal */
|
|
1640
|
+
export const ListApproverUserId$inboundSchema: z.ZodType<
|
|
1641
|
+
ListApproverUserId,
|
|
1642
|
+
z.ZodTypeDef,
|
|
1643
|
+
unknown
|
|
1644
|
+
> = openEnums.inboundSchema(ListApproverUserId);
|
|
1645
|
+
|
|
1621
1646
|
/** @internal */
|
|
1622
1647
|
export const ListAssignedUserId$inboundSchema: z.ZodType<
|
|
1623
1648
|
ListAssignedUserId,
|
|
@@ -2472,6 +2497,13 @@ export const VirtualWebhookApplicationId$inboundSchema: z.ZodType<
|
|
|
2472
2497
|
unknown
|
|
2473
2498
|
> = openEnums.inboundSchema(VirtualWebhookApplicationId);
|
|
2474
2499
|
|
|
2500
|
+
/** @internal */
|
|
2501
|
+
export const VirtualWebhookApproverUserId$inboundSchema: z.ZodType<
|
|
2502
|
+
VirtualWebhookApproverUserId,
|
|
2503
|
+
z.ZodTypeDef,
|
|
2504
|
+
unknown
|
|
2505
|
+
> = openEnums.inboundSchema(VirtualWebhookApproverUserId);
|
|
2506
|
+
|
|
2475
2507
|
/** @internal */
|
|
2476
2508
|
export const VirtualWebhookAssignedUserId$inboundSchema: z.ZodType<
|
|
2477
2509
|
VirtualWebhookAssignedUserId,
|
|
@@ -2938,6 +2970,7 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
|
|
|
2938
2970
|
list_account_id: ListAccountId$inboundSchema.optional(),
|
|
2939
2971
|
list_ad_id: ListAdId$inboundSchema.optional(),
|
|
2940
2972
|
list_application_id: ListApplicationId$inboundSchema.optional(),
|
|
2973
|
+
list_approver_user_id: ListApproverUserId$inboundSchema.optional(),
|
|
2941
2974
|
list_assigned_user_id: ListAssignedUserId$inboundSchema.optional(),
|
|
2942
2975
|
list_bankfeedaccount_id: ListBankfeedaccountId$inboundSchema.optional(),
|
|
2943
2976
|
list_benefit_id: ListBenefitId$inboundSchema.optional(),
|
|
@@ -3065,6 +3098,8 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
|
|
|
3065
3098
|
virtual_webhook_ad_id: VirtualWebhookAdId$inboundSchema.optional(),
|
|
3066
3099
|
virtual_webhook_application_id: VirtualWebhookApplicationId$inboundSchema
|
|
3067
3100
|
.optional(),
|
|
3101
|
+
virtual_webhook_approver_user_id: VirtualWebhookApproverUserId$inboundSchema
|
|
3102
|
+
.optional(),
|
|
3068
3103
|
virtual_webhook_assigned_user_id: VirtualWebhookAssignedUserId$inboundSchema
|
|
3069
3104
|
.optional(),
|
|
3070
3105
|
virtual_webhook_bankfeedaccount_id:
|
|
@@ -3156,6 +3191,7 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
|
|
|
3156
3191
|
"list_account_id": "listAccountId",
|
|
3157
3192
|
"list_ad_id": "listAdId",
|
|
3158
3193
|
"list_application_id": "listApplicationId",
|
|
3194
|
+
"list_approver_user_id": "listApproverUserId",
|
|
3159
3195
|
"list_assigned_user_id": "listAssignedUserId",
|
|
3160
3196
|
"list_bankfeedaccount_id": "listBankfeedaccountId",
|
|
3161
3197
|
"list_benefit_id": "listBenefitId",
|
|
@@ -3281,6 +3317,7 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
|
|
|
3281
3317
|
"virtual_webhook_account_id": "virtualWebhookAccountId",
|
|
3282
3318
|
"virtual_webhook_ad_id": "virtualWebhookAdId",
|
|
3283
3319
|
"virtual_webhook_application_id": "virtualWebhookApplicationId",
|
|
3320
|
+
"virtual_webhook_approver_user_id": "virtualWebhookApproverUserId",
|
|
3284
3321
|
"virtual_webhook_assigned_user_id": "virtualWebhookAssignedUserId",
|
|
3285
3322
|
"virtual_webhook_bankfeedaccount_id": "virtualWebhookBankfeedaccountId",
|
|
3286
3323
|
"virtual_webhook_benefit_id": "virtualWebhookBenefitId",
|
package/src/sdk/taxonomy.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { crmListCrmTaxonomies } from "../funcs/crmListCrmTaxonomies.js";
|
|
6
|
+
import { taxonomyCreateHrisTaxonomy } from "../funcs/taxonomyCreateHrisTaxonomy.js";
|
|
6
7
|
import { taxonomyGetHrisTaxonomy } from "../funcs/taxonomyGetHrisTaxonomy.js";
|
|
7
8
|
import { taxonomyListHrisTaxonomies } from "../funcs/taxonomyListHrisTaxonomies.js";
|
|
8
9
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
@@ -11,6 +12,20 @@ import * as shared from "./models/shared/index.js";
|
|
|
11
12
|
import { unwrapAsync } from "./types/fp.js";
|
|
12
13
|
|
|
13
14
|
export class Taxonomy extends ClientSDK {
|
|
15
|
+
/**
|
|
16
|
+
* Create a taxonomy
|
|
17
|
+
*/
|
|
18
|
+
async createHrisTaxonomy(
|
|
19
|
+
request: operations.CreateHrisTaxonomyRequest,
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): Promise<shared.HrisTaxonomy> {
|
|
22
|
+
return unwrapAsync(taxonomyCreateHrisTaxonomy(
|
|
23
|
+
this,
|
|
24
|
+
request,
|
|
25
|
+
options,
|
|
26
|
+
));
|
|
27
|
+
}
|
|
28
|
+
|
|
14
29
|
/**
|
|
15
30
|
* Retrieve a taxonomy
|
|
16
31
|
*/
|