@unified-api/typescript-sdk 2.52.0 → 2.56.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 +12 -0
- package/docs/sdks/device/README.md +519 -0
- package/docs/sdks/hris/README.md +512 -0
- package/funcs/accountingListAccountingReports.js +2 -0
- package/funcs/accountingListAccountingReports.js.map +1 -1
- package/funcs/deviceCreateHrisDevice.d.ts +14 -0
- package/funcs/deviceCreateHrisDevice.d.ts.map +1 -0
- package/funcs/deviceCreateHrisDevice.js +109 -0
- package/funcs/deviceCreateHrisDevice.js.map +1 -0
- package/funcs/deviceGetHrisDevice.d.ts +14 -0
- package/funcs/deviceGetHrisDevice.d.ts.map +1 -0
- package/funcs/deviceGetHrisDevice.js +112 -0
- package/funcs/deviceGetHrisDevice.js.map +1 -0
- package/funcs/deviceListHrisDevices.d.ts +14 -0
- package/funcs/deviceListHrisDevices.d.ts.map +1 -0
- package/funcs/deviceListHrisDevices.js +116 -0
- package/funcs/deviceListHrisDevices.js.map +1 -0
- package/funcs/devicePatchHrisDevice.d.ts +14 -0
- package/funcs/devicePatchHrisDevice.d.ts.map +1 -0
- package/funcs/devicePatchHrisDevice.js +113 -0
- package/funcs/devicePatchHrisDevice.js.map +1 -0
- package/funcs/deviceRemoveHrisDevice.d.ts +13 -0
- package/funcs/deviceRemoveHrisDevice.d.ts.map +1 -0
- package/funcs/deviceRemoveHrisDevice.js +110 -0
- package/funcs/deviceRemoveHrisDevice.js.map +1 -0
- package/funcs/deviceUpdateHrisDevice.d.ts +14 -0
- package/funcs/deviceUpdateHrisDevice.d.ts.map +1 -0
- package/funcs/deviceUpdateHrisDevice.js +113 -0
- package/funcs/deviceUpdateHrisDevice.js.map +1 -0
- package/funcs/fileListStorageFiles.js +1 -0
- package/funcs/fileListStorageFiles.js.map +1 -1
- package/funcs/hrisCreateHrisDevice.d.ts +14 -0
- package/funcs/hrisCreateHrisDevice.d.ts.map +1 -0
- package/funcs/hrisCreateHrisDevice.js +109 -0
- package/funcs/hrisCreateHrisDevice.js.map +1 -0
- package/funcs/hrisGetHrisDevice.d.ts +14 -0
- package/funcs/hrisGetHrisDevice.d.ts.map +1 -0
- package/funcs/hrisGetHrisDevice.js +112 -0
- package/funcs/hrisGetHrisDevice.js.map +1 -0
- package/funcs/hrisListHrisDevices.d.ts +14 -0
- package/funcs/hrisListHrisDevices.d.ts.map +1 -0
- package/funcs/hrisListHrisDevices.js +116 -0
- package/funcs/hrisListHrisDevices.js.map +1 -0
- package/funcs/hrisPatchHrisDevice.d.ts +14 -0
- package/funcs/hrisPatchHrisDevice.d.ts.map +1 -0
- package/funcs/hrisPatchHrisDevice.js +113 -0
- package/funcs/hrisPatchHrisDevice.js.map +1 -0
- package/funcs/hrisRemoveHrisDevice.d.ts +13 -0
- package/funcs/hrisRemoveHrisDevice.d.ts.map +1 -0
- package/funcs/hrisRemoveHrisDevice.js +110 -0
- package/funcs/hrisRemoveHrisDevice.js.map +1 -0
- package/funcs/hrisUpdateHrisDevice.d.ts +14 -0
- package/funcs/hrisUpdateHrisDevice.d.ts.map +1 -0
- package/funcs/hrisUpdateHrisDevice.js +113 -0
- package/funcs/hrisUpdateHrisDevice.js.map +1 -0
- package/funcs/reportListAccountingReports.js +2 -0
- package/funcs/reportListAccountingReports.js.map +1 -1
- package/funcs/storageListStorageFiles.js +1 -0
- package/funcs/storageListStorageFiles.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/package.json +1 -1
- package/sdk/device.d.ts +30 -0
- package/sdk/device.d.ts.map +1 -0
- package/sdk/device.js +54 -0
- package/sdk/device.js.map +1 -0
- package/sdk/hris.d.ts +24 -0
- package/sdk/hris.d.ts.map +1 -1
- package/sdk/hris.js +42 -0
- package/sdk/hris.js.map +1 -1
- package/sdk/models/operations/createhrisdevice.d.ts +40 -0
- package/sdk/models/operations/createhrisdevice.d.ts.map +1 -0
- package/sdk/models/operations/createhrisdevice.js +75 -0
- package/sdk/models/operations/createhrisdevice.js.map +1 -0
- package/sdk/models/operations/gethrisdevice.d.ts +42 -0
- package/sdk/models/operations/gethrisdevice.d.ts.map +1 -0
- package/sdk/models/operations/gethrisdevice.js +72 -0
- package/sdk/models/operations/gethrisdevice.js.map +1 -0
- package/sdk/models/operations/index.d.ts +6 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +6 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listaccountingreports.d.ts +4 -0
- package/sdk/models/operations/listaccountingreports.d.ts.map +1 -1
- package/sdk/models/operations/listaccountingreports.js +8 -0
- package/sdk/models/operations/listaccountingreports.js.map +1 -1
- package/sdk/models/operations/listhrisdevices.d.ts +57 -0
- package/sdk/models/operations/listhrisdevices.d.ts.map +1 -0
- package/sdk/models/operations/listhrisdevices.js +89 -0
- package/sdk/models/operations/listhrisdevices.js.map +1 -0
- package/sdk/models/operations/liststoragefiles.d.ts +2 -0
- package/sdk/models/operations/liststoragefiles.d.ts.map +1 -1
- package/sdk/models/operations/liststoragefiles.js +2 -0
- package/sdk/models/operations/liststoragefiles.js.map +1 -1
- package/sdk/models/operations/patchhrisdevice.d.ts +45 -0
- package/sdk/models/operations/patchhrisdevice.d.ts.map +1 -0
- package/sdk/models/operations/patchhrisdevice.js +77 -0
- package/sdk/models/operations/patchhrisdevice.js.map +1 -0
- package/sdk/models/operations/removehrisdevice.d.ts +66 -0
- package/sdk/models/operations/removehrisdevice.d.ts.map +1 -0
- package/sdk/models/operations/removehrisdevice.js +105 -0
- package/sdk/models/operations/removehrisdevice.js.map +1 -0
- package/sdk/models/operations/updatehrisdevice.d.ts +45 -0
- package/sdk/models/operations/updatehrisdevice.d.ts.map +1 -0
- package/sdk/models/operations/updatehrisdevice.js +77 -0
- package/sdk/models/operations/updatehrisdevice.js.map +1 -0
- package/sdk/models/shared/accountingassociatedcontact.d.ts +34 -0
- package/sdk/models/shared/accountingassociatedcontact.d.ts.map +1 -0
- package/sdk/models/shared/accountingassociatedcontact.js +64 -0
- package/sdk/models/shared/accountingassociatedcontact.js.map +1 -0
- package/sdk/models/shared/accountingbalancesheetitem.d.ts +36 -0
- package/sdk/models/shared/accountingbalancesheetitem.d.ts.map +1 -0
- package/sdk/models/shared/accountingbalancesheetitem.js +79 -0
- package/sdk/models/shared/accountingbalancesheetitem.js.map +1 -0
- package/sdk/models/shared/accountingcontact.d.ts +3 -0
- package/sdk/models/shared/accountingcontact.d.ts.map +1 -1
- package/sdk/models/shared/accountingcontact.js +7 -0
- package/sdk/models/shared/accountingcontact.js.map +1 -1
- package/sdk/models/shared/accountinginvoice.d.ts +2 -0
- package/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
- package/sdk/models/shared/accountinginvoice.js +2 -0
- package/sdk/models/shared/accountinginvoice.js.map +1 -1
- package/sdk/models/shared/accountingprofitandlosscategory.d.ts +34 -0
- package/sdk/models/shared/accountingprofitandlosscategory.d.ts.map +1 -0
- package/sdk/models/shared/accountingprofitandlosscategory.js +75 -0
- package/sdk/models/shared/accountingprofitandlosscategory.js.map +1 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.d.ts +33 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.d.ts.map +1 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.js +72 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.js.map +1 -0
- package/sdk/models/shared/accountingreport.d.ts +17 -10
- package/sdk/models/shared/accountingreport.d.ts.map +1 -1
- package/sdk/models/shared/accountingreport.js +31 -14
- package/sdk/models/shared/accountingreport.js.map +1 -1
- package/sdk/models/shared/accountingtrialbalancesubitem.d.ts +33 -0
- package/sdk/models/shared/accountingtrialbalancesubitem.d.ts.map +1 -0
- package/sdk/models/shared/accountingtrialbalancesubitem.js +74 -0
- package/sdk/models/shared/accountingtrialbalancesubitem.js.map +1 -0
- package/sdk/models/shared/atsjob.d.ts +3 -0
- package/sdk/models/shared/atsjob.d.ts.map +1 -1
- package/sdk/models/shared/atsjob.js +3 -0
- package/sdk/models/shared/atsjob.js.map +1 -1
- package/sdk/models/shared/atsjobopening.d.ts +63 -0
- package/sdk/models/shared/atsjobopening.d.ts.map +1 -0
- package/sdk/models/shared/atsjobopening.js +103 -0
- package/sdk/models/shared/atsjobopening.js.map +1 -0
- package/sdk/models/shared/hrisdevice.d.ts +74 -0
- package/sdk/models/shared/hrisdevice.d.ts.map +1 -0
- package/sdk/models/shared/hrisdevice.js +132 -0
- package/sdk/models/shared/hrisdevice.js.map +1 -0
- package/sdk/models/shared/index.d.ts +11 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +11 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.d.ts +25 -0
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.js +55 -0
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.js.map +1 -0
- package/sdk/models/shared/propertyaccountingreportbalancesheet.d.ts +36 -0
- package/sdk/models/shared/propertyaccountingreportbalancesheet.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingreportbalancesheet.js +75 -0
- package/sdk/models/shared/propertyaccountingreportbalancesheet.js.map +1 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts +38 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.js +83 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.js.map +1 -0
- package/sdk/models/shared/propertyaccountingreporttrialbalance.d.ts +34 -0
- package/sdk/models/shared/propertyaccountingreporttrialbalance.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingreporttrialbalance.js +77 -0
- package/sdk/models/shared/propertyaccountingreporttrialbalance.js.map +1 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
- package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/sdk/models/shared/webhook.d.ts +3 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +1 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/accountingListAccountingReports.ts +2 -0
- package/src/funcs/deviceCreateHrisDevice.ts +163 -0
- package/src/funcs/deviceGetHrisDevice.ts +166 -0
- package/src/funcs/deviceListHrisDevices.ts +170 -0
- package/src/funcs/devicePatchHrisDevice.ts +167 -0
- package/src/funcs/deviceRemoveHrisDevice.ts +169 -0
- package/src/funcs/deviceUpdateHrisDevice.ts +167 -0
- package/src/funcs/fileListStorageFiles.ts +1 -0
- package/src/funcs/hrisCreateHrisDevice.ts +163 -0
- package/src/funcs/hrisGetHrisDevice.ts +166 -0
- package/src/funcs/hrisListHrisDevices.ts +170 -0
- package/src/funcs/hrisPatchHrisDevice.ts +167 -0
- package/src/funcs/hrisRemoveHrisDevice.ts +169 -0
- package/src/funcs/hrisUpdateHrisDevice.ts +167 -0
- package/src/funcs/reportListAccountingReports.ts +2 -0
- package/src/funcs/storageListStorageFiles.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/device.ts +100 -0
- package/src/sdk/hris.ts +90 -0
- package/src/sdk/models/operations/createhrisdevice.ts +92 -0
- package/src/sdk/models/operations/gethrisdevice.ts +92 -0
- package/src/sdk/models/operations/index.ts +6 -0
- package/src/sdk/models/operations/listaccountingreports.ts +12 -0
- package/src/sdk/models/operations/listhrisdevices.ts +124 -0
- package/src/sdk/models/operations/liststoragefiles.ts +4 -0
- package/src/sdk/models/operations/patchhrisdevice.ts +99 -0
- package/src/sdk/models/operations/removehrisdevice.ts +151 -0
- package/src/sdk/models/operations/updatehrisdevice.ts +99 -0
- package/src/sdk/models/shared/accountingassociatedcontact.ts +82 -0
- package/src/sdk/models/shared/accountingbalancesheetitem.ts +99 -0
- package/src/sdk/models/shared/accountingcontact.ts +14 -0
- package/src/sdk/models/shared/accountinginvoice.ts +4 -0
- package/src/sdk/models/shared/accountingprofitandlosscategory.ts +93 -0
- package/src/sdk/models/shared/accountingprofitandlosssubcategory.ts +87 -0
- package/src/sdk/models/shared/accountingreport.ts +60 -24
- package/src/sdk/models/shared/accountingtrialbalancesubitem.ts +87 -0
- package/src/sdk/models/shared/atsjob.ts +10 -0
- package/src/sdk/models/shared/atsjobopening.ts +123 -0
- package/src/sdk/models/shared/hrisdevice.ts +176 -0
- package/src/sdk/models/shared/index.ts +11 -0
- package/src/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.ts +68 -0
- package/src/sdk/models/shared/propertyaccountingreportbalancesheet.ts +98 -0
- package/src/sdk/models/shared/propertyaccountingreportprofitandloss.ts +110 -0
- package/src/sdk/models/shared/propertyaccountingreporttrialbalance.ts +98 -0
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
- package/src/sdk/models/shared/webhook.ts +1 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type AccountingProfitAndLossSubcategory = {
|
|
12
|
+
amount?: number | undefined;
|
|
13
|
+
name?: string | undefined;
|
|
14
|
+
transactionIds?: Array<string> | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const AccountingProfitAndLossSubcategory$inboundSchema: z.ZodType<
|
|
19
|
+
AccountingProfitAndLossSubcategory,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
amount: z.number().optional(),
|
|
24
|
+
name: z.string().optional(),
|
|
25
|
+
transaction_ids: z.array(z.string()).optional(),
|
|
26
|
+
}).transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
"transaction_ids": "transactionIds",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type AccountingProfitAndLossSubcategory$Outbound = {
|
|
34
|
+
amount?: number | undefined;
|
|
35
|
+
name?: string | undefined;
|
|
36
|
+
transaction_ids?: Array<string> | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const AccountingProfitAndLossSubcategory$outboundSchema: z.ZodType<
|
|
41
|
+
AccountingProfitAndLossSubcategory$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
AccountingProfitAndLossSubcategory
|
|
44
|
+
> = z.object({
|
|
45
|
+
amount: z.number().optional(),
|
|
46
|
+
name: z.string().optional(),
|
|
47
|
+
transactionIds: z.array(z.string()).optional(),
|
|
48
|
+
}).transform((v) => {
|
|
49
|
+
return remap$(v, {
|
|
50
|
+
transactionIds: "transaction_ids",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export namespace AccountingProfitAndLossSubcategory$ {
|
|
59
|
+
/** @deprecated use `AccountingProfitAndLossSubcategory$inboundSchema` instead. */
|
|
60
|
+
export const inboundSchema = AccountingProfitAndLossSubcategory$inboundSchema;
|
|
61
|
+
/** @deprecated use `AccountingProfitAndLossSubcategory$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema =
|
|
63
|
+
AccountingProfitAndLossSubcategory$outboundSchema;
|
|
64
|
+
/** @deprecated use `AccountingProfitAndLossSubcategory$Outbound` instead. */
|
|
65
|
+
export type Outbound = AccountingProfitAndLossSubcategory$Outbound;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function accountingProfitAndLossSubcategoryToJSON(
|
|
69
|
+
accountingProfitAndLossSubcategory: AccountingProfitAndLossSubcategory,
|
|
70
|
+
): string {
|
|
71
|
+
return JSON.stringify(
|
|
72
|
+
AccountingProfitAndLossSubcategory$outboundSchema.parse(
|
|
73
|
+
accountingProfitAndLossSubcategory,
|
|
74
|
+
),
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function accountingProfitAndLossSubcategoryFromJSON(
|
|
79
|
+
jsonString: string,
|
|
80
|
+
): SafeParseResult<AccountingProfitAndLossSubcategory, SDKValidationError> {
|
|
81
|
+
return safeParse(
|
|
82
|
+
jsonString,
|
|
83
|
+
(x) =>
|
|
84
|
+
AccountingProfitAndLossSubcategory$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'AccountingProfitAndLossSubcategory' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
@@ -8,6 +8,24 @@ import { safeParse } from "../../../lib/schemas.js";
|
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
PropertyAccountingReportBalanceSheet,
|
|
13
|
+
PropertyAccountingReportBalanceSheet$inboundSchema,
|
|
14
|
+
PropertyAccountingReportBalanceSheet$Outbound,
|
|
15
|
+
PropertyAccountingReportBalanceSheet$outboundSchema,
|
|
16
|
+
} from "./propertyaccountingreportbalancesheet.js";
|
|
17
|
+
import {
|
|
18
|
+
PropertyAccountingReportProfitAndLoss,
|
|
19
|
+
PropertyAccountingReportProfitAndLoss$inboundSchema,
|
|
20
|
+
PropertyAccountingReportProfitAndLoss$Outbound,
|
|
21
|
+
PropertyAccountingReportProfitAndLoss$outboundSchema,
|
|
22
|
+
} from "./propertyaccountingreportprofitandloss.js";
|
|
23
|
+
import {
|
|
24
|
+
PropertyAccountingReportTrialBalance,
|
|
25
|
+
PropertyAccountingReportTrialBalance$inboundSchema,
|
|
26
|
+
PropertyAccountingReportTrialBalance$Outbound,
|
|
27
|
+
PropertyAccountingReportTrialBalance$outboundSchema,
|
|
28
|
+
} from "./propertyaccountingreporttrialbalance.js";
|
|
11
29
|
|
|
12
30
|
export const AccountingReportType = {
|
|
13
31
|
TrialBalance: "TRIAL_BALANCE",
|
|
@@ -17,14 +35,16 @@ export const AccountingReportType = {
|
|
|
17
35
|
export type AccountingReportType = ClosedEnum<typeof AccountingReportType>;
|
|
18
36
|
|
|
19
37
|
export type AccountingReport = {
|
|
20
|
-
|
|
21
|
-
amount?: number | undefined;
|
|
22
|
-
contactId?: string | undefined;
|
|
38
|
+
balanceSheet?: PropertyAccountingReportBalanceSheet | undefined;
|
|
23
39
|
createdAt?: Date | undefined;
|
|
24
|
-
|
|
40
|
+
currency?: string | undefined;
|
|
41
|
+
endAt?: Date | undefined;
|
|
25
42
|
id?: string | undefined;
|
|
43
|
+
name?: string | undefined;
|
|
44
|
+
profitAndLoss?: PropertyAccountingReportProfitAndLoss | undefined;
|
|
26
45
|
raw?: { [k: string]: any } | undefined;
|
|
27
|
-
|
|
46
|
+
startAt?: Date | undefined;
|
|
47
|
+
trialBalance?: PropertyAccountingReportTrialBalance | undefined;
|
|
28
48
|
type?: AccountingReportType | undefined;
|
|
29
49
|
updatedAt?: Date | undefined;
|
|
30
50
|
};
|
|
@@ -56,37 +76,47 @@ export const AccountingReport$inboundSchema: z.ZodType<
|
|
|
56
76
|
z.ZodTypeDef,
|
|
57
77
|
unknown
|
|
58
78
|
> = z.object({
|
|
59
|
-
|
|
60
|
-
amount: z.number().optional(),
|
|
61
|
-
contact_id: z.string().optional(),
|
|
79
|
+
balance_sheet: PropertyAccountingReportBalanceSheet$inboundSchema.optional(),
|
|
62
80
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
63
81
|
.optional(),
|
|
64
|
-
|
|
82
|
+
currency: z.string().optional(),
|
|
83
|
+
end_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
84
|
+
.optional(),
|
|
65
85
|
id: z.string().optional(),
|
|
86
|
+
name: z.string().optional(),
|
|
87
|
+
profit_and_loss: PropertyAccountingReportProfitAndLoss$inboundSchema
|
|
88
|
+
.optional(),
|
|
66
89
|
raw: z.record(z.any()).optional(),
|
|
67
|
-
|
|
90
|
+
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
91
|
+
.optional(),
|
|
92
|
+
trial_balance: PropertyAccountingReportTrialBalance$inboundSchema.optional(),
|
|
68
93
|
type: AccountingReportType$inboundSchema.optional(),
|
|
69
94
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
70
95
|
.optional(),
|
|
71
96
|
}).transform((v) => {
|
|
72
97
|
return remap$(v, {
|
|
73
|
-
"
|
|
74
|
-
"contact_id": "contactId",
|
|
98
|
+
"balance_sheet": "balanceSheet",
|
|
75
99
|
"created_at": "createdAt",
|
|
100
|
+
"end_at": "endAt",
|
|
101
|
+
"profit_and_loss": "profitAndLoss",
|
|
102
|
+
"start_at": "startAt",
|
|
103
|
+
"trial_balance": "trialBalance",
|
|
76
104
|
"updated_at": "updatedAt",
|
|
77
105
|
});
|
|
78
106
|
});
|
|
79
107
|
|
|
80
108
|
/** @internal */
|
|
81
109
|
export type AccountingReport$Outbound = {
|
|
82
|
-
|
|
83
|
-
amount?: number | undefined;
|
|
84
|
-
contact_id?: string | undefined;
|
|
110
|
+
balance_sheet?: PropertyAccountingReportBalanceSheet$Outbound | undefined;
|
|
85
111
|
created_at?: string | undefined;
|
|
86
|
-
|
|
112
|
+
currency?: string | undefined;
|
|
113
|
+
end_at?: string | undefined;
|
|
87
114
|
id?: string | undefined;
|
|
115
|
+
name?: string | undefined;
|
|
116
|
+
profit_and_loss?: PropertyAccountingReportProfitAndLoss$Outbound | undefined;
|
|
88
117
|
raw?: { [k: string]: any } | undefined;
|
|
89
|
-
|
|
118
|
+
start_at?: string | undefined;
|
|
119
|
+
trial_balance?: PropertyAccountingReportTrialBalance$Outbound | undefined;
|
|
90
120
|
type?: string | undefined;
|
|
91
121
|
updated_at?: string | undefined;
|
|
92
122
|
};
|
|
@@ -97,21 +127,27 @@ export const AccountingReport$outboundSchema: z.ZodType<
|
|
|
97
127
|
z.ZodTypeDef,
|
|
98
128
|
AccountingReport
|
|
99
129
|
> = z.object({
|
|
100
|
-
|
|
101
|
-
amount: z.number().optional(),
|
|
102
|
-
contactId: z.string().optional(),
|
|
130
|
+
balanceSheet: PropertyAccountingReportBalanceSheet$outboundSchema.optional(),
|
|
103
131
|
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
104
|
-
|
|
132
|
+
currency: z.string().optional(),
|
|
133
|
+
endAt: z.date().transform(v => v.toISOString()).optional(),
|
|
105
134
|
id: z.string().optional(),
|
|
135
|
+
name: z.string().optional(),
|
|
136
|
+
profitAndLoss: PropertyAccountingReportProfitAndLoss$outboundSchema
|
|
137
|
+
.optional(),
|
|
106
138
|
raw: z.record(z.any()).optional(),
|
|
107
|
-
|
|
139
|
+
startAt: z.date().transform(v => v.toISOString()).optional(),
|
|
140
|
+
trialBalance: PropertyAccountingReportTrialBalance$outboundSchema.optional(),
|
|
108
141
|
type: AccountingReportType$outboundSchema.optional(),
|
|
109
142
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
110
143
|
}).transform((v) => {
|
|
111
144
|
return remap$(v, {
|
|
112
|
-
|
|
113
|
-
contactId: "contact_id",
|
|
145
|
+
balanceSheet: "balance_sheet",
|
|
114
146
|
createdAt: "created_at",
|
|
147
|
+
endAt: "end_at",
|
|
148
|
+
profitAndLoss: "profit_and_loss",
|
|
149
|
+
startAt: "start_at",
|
|
150
|
+
trialBalance: "trial_balance",
|
|
115
151
|
updatedAt: "updated_at",
|
|
116
152
|
});
|
|
117
153
|
});
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type AccountingTrialBalanceSubItem = {
|
|
12
|
+
accountId?: string | undefined;
|
|
13
|
+
accountName?: string | undefined;
|
|
14
|
+
amount?: number | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const AccountingTrialBalanceSubItem$inboundSchema: z.ZodType<
|
|
19
|
+
AccountingTrialBalanceSubItem,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
account_id: z.string().optional(),
|
|
24
|
+
account_name: z.string().optional(),
|
|
25
|
+
amount: z.number().optional(),
|
|
26
|
+
}).transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
"account_id": "accountId",
|
|
29
|
+
"account_name": "accountName",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type AccountingTrialBalanceSubItem$Outbound = {
|
|
35
|
+
account_id?: string | undefined;
|
|
36
|
+
account_name?: string | undefined;
|
|
37
|
+
amount?: number | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const AccountingTrialBalanceSubItem$outboundSchema: z.ZodType<
|
|
42
|
+
AccountingTrialBalanceSubItem$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
AccountingTrialBalanceSubItem
|
|
45
|
+
> = z.object({
|
|
46
|
+
accountId: z.string().optional(),
|
|
47
|
+
accountName: z.string().optional(),
|
|
48
|
+
amount: z.number().optional(),
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
accountId: "account_id",
|
|
52
|
+
accountName: "account_name",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
export namespace AccountingTrialBalanceSubItem$ {
|
|
61
|
+
/** @deprecated use `AccountingTrialBalanceSubItem$inboundSchema` instead. */
|
|
62
|
+
export const inboundSchema = AccountingTrialBalanceSubItem$inboundSchema;
|
|
63
|
+
/** @deprecated use `AccountingTrialBalanceSubItem$outboundSchema` instead. */
|
|
64
|
+
export const outboundSchema = AccountingTrialBalanceSubItem$outboundSchema;
|
|
65
|
+
/** @deprecated use `AccountingTrialBalanceSubItem$Outbound` instead. */
|
|
66
|
+
export type Outbound = AccountingTrialBalanceSubItem$Outbound;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function accountingTrialBalanceSubItemToJSON(
|
|
70
|
+
accountingTrialBalanceSubItem: AccountingTrialBalanceSubItem,
|
|
71
|
+
): string {
|
|
72
|
+
return JSON.stringify(
|
|
73
|
+
AccountingTrialBalanceSubItem$outboundSchema.parse(
|
|
74
|
+
accountingTrialBalanceSubItem,
|
|
75
|
+
),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function accountingTrialBalanceSubItemFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<AccountingTrialBalanceSubItem, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => AccountingTrialBalanceSubItem$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'AccountingTrialBalanceSubItem' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
@@ -26,6 +26,12 @@ import {
|
|
|
26
26
|
AtsGroup$Outbound,
|
|
27
27
|
AtsGroup$outboundSchema,
|
|
28
28
|
} from "./atsgroup.js";
|
|
29
|
+
import {
|
|
30
|
+
AtsJobOpening,
|
|
31
|
+
AtsJobOpening$inboundSchema,
|
|
32
|
+
AtsJobOpening$Outbound,
|
|
33
|
+
AtsJobOpening$outboundSchema,
|
|
34
|
+
} from "./atsjobopening.js";
|
|
29
35
|
import {
|
|
30
36
|
AtsJobPosting,
|
|
31
37
|
AtsJobPosting$inboundSchema,
|
|
@@ -90,6 +96,7 @@ export type AtsJob = {
|
|
|
90
96
|
metadata?: Array<AtsMetadata> | undefined;
|
|
91
97
|
name?: string | undefined;
|
|
92
98
|
numberOfOpenings?: number | undefined;
|
|
99
|
+
openings?: Array<AtsJobOpening> | undefined;
|
|
93
100
|
/**
|
|
94
101
|
* Public job postings
|
|
95
102
|
*/
|
|
@@ -167,6 +174,7 @@ export const AtsJob$inboundSchema: z.ZodType<AtsJob, z.ZodTypeDef, unknown> = z
|
|
|
167
174
|
metadata: z.array(AtsMetadata$inboundSchema).optional(),
|
|
168
175
|
name: z.string().optional(),
|
|
169
176
|
number_of_openings: z.number().optional(),
|
|
177
|
+
openings: z.array(AtsJobOpening$inboundSchema).optional(),
|
|
170
178
|
postings: z.array(AtsJobPosting$inboundSchema).optional(),
|
|
171
179
|
public_job_urls: z.array(z.string()).optional(),
|
|
172
180
|
questions: z.array(AtsJobQuestion$inboundSchema).optional(),
|
|
@@ -209,6 +217,7 @@ export type AtsJob$Outbound = {
|
|
|
209
217
|
metadata?: Array<AtsMetadata$Outbound> | undefined;
|
|
210
218
|
name?: string | undefined;
|
|
211
219
|
number_of_openings?: number | undefined;
|
|
220
|
+
openings?: Array<AtsJobOpening$Outbound> | undefined;
|
|
212
221
|
postings?: Array<AtsJobPosting$Outbound> | undefined;
|
|
213
222
|
public_job_urls?: Array<string> | undefined;
|
|
214
223
|
questions?: Array<AtsJobQuestion$Outbound> | undefined;
|
|
@@ -240,6 +249,7 @@ export const AtsJob$outboundSchema: z.ZodType<
|
|
|
240
249
|
metadata: z.array(AtsMetadata$outboundSchema).optional(),
|
|
241
250
|
name: z.string().optional(),
|
|
242
251
|
numberOfOpenings: z.number().optional(),
|
|
252
|
+
openings: z.array(AtsJobOpening$outboundSchema).optional(),
|
|
243
253
|
postings: z.array(AtsJobPosting$outboundSchema).optional(),
|
|
244
254
|
publicJobUrls: z.array(z.string()).optional(),
|
|
245
255
|
questions: z.array(AtsJobQuestion$outboundSchema).optional(),
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export const AtsJobOpeningStatus = {
|
|
13
|
+
Open: "OPEN",
|
|
14
|
+
Closed: "CLOSED",
|
|
15
|
+
} as const;
|
|
16
|
+
export type AtsJobOpeningStatus = ClosedEnum<typeof AtsJobOpeningStatus>;
|
|
17
|
+
|
|
18
|
+
export type AtsJobOpening = {
|
|
19
|
+
applicationId?: string | undefined;
|
|
20
|
+
closeReason?: string | undefined;
|
|
21
|
+
closedAt?: Date | undefined;
|
|
22
|
+
openedAt?: Date | undefined;
|
|
23
|
+
status?: AtsJobOpeningStatus | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const AtsJobOpeningStatus$inboundSchema: z.ZodNativeEnum<
|
|
28
|
+
typeof AtsJobOpeningStatus
|
|
29
|
+
> = z.nativeEnum(AtsJobOpeningStatus);
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const AtsJobOpeningStatus$outboundSchema: z.ZodNativeEnum<
|
|
33
|
+
typeof AtsJobOpeningStatus
|
|
34
|
+
> = AtsJobOpeningStatus$inboundSchema;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
39
|
+
*/
|
|
40
|
+
export namespace AtsJobOpeningStatus$ {
|
|
41
|
+
/** @deprecated use `AtsJobOpeningStatus$inboundSchema` instead. */
|
|
42
|
+
export const inboundSchema = AtsJobOpeningStatus$inboundSchema;
|
|
43
|
+
/** @deprecated use `AtsJobOpeningStatus$outboundSchema` instead. */
|
|
44
|
+
export const outboundSchema = AtsJobOpeningStatus$outboundSchema;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const AtsJobOpening$inboundSchema: z.ZodType<
|
|
49
|
+
AtsJobOpening,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
unknown
|
|
52
|
+
> = z.object({
|
|
53
|
+
application_id: z.string().optional(),
|
|
54
|
+
close_reason: z.string().optional(),
|
|
55
|
+
closed_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
56
|
+
.optional(),
|
|
57
|
+
opened_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
58
|
+
.optional(),
|
|
59
|
+
status: AtsJobOpeningStatus$inboundSchema.optional(),
|
|
60
|
+
}).transform((v) => {
|
|
61
|
+
return remap$(v, {
|
|
62
|
+
"application_id": "applicationId",
|
|
63
|
+
"close_reason": "closeReason",
|
|
64
|
+
"closed_at": "closedAt",
|
|
65
|
+
"opened_at": "openedAt",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export type AtsJobOpening$Outbound = {
|
|
71
|
+
application_id?: string | undefined;
|
|
72
|
+
close_reason?: string | undefined;
|
|
73
|
+
closed_at?: string | undefined;
|
|
74
|
+
opened_at?: string | undefined;
|
|
75
|
+
status?: string | undefined;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const AtsJobOpening$outboundSchema: z.ZodType<
|
|
80
|
+
AtsJobOpening$Outbound,
|
|
81
|
+
z.ZodTypeDef,
|
|
82
|
+
AtsJobOpening
|
|
83
|
+
> = z.object({
|
|
84
|
+
applicationId: z.string().optional(),
|
|
85
|
+
closeReason: z.string().optional(),
|
|
86
|
+
closedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
87
|
+
openedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
88
|
+
status: AtsJobOpeningStatus$outboundSchema.optional(),
|
|
89
|
+
}).transform((v) => {
|
|
90
|
+
return remap$(v, {
|
|
91
|
+
applicationId: "application_id",
|
|
92
|
+
closeReason: "close_reason",
|
|
93
|
+
closedAt: "closed_at",
|
|
94
|
+
openedAt: "opened_at",
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
101
|
+
*/
|
|
102
|
+
export namespace AtsJobOpening$ {
|
|
103
|
+
/** @deprecated use `AtsJobOpening$inboundSchema` instead. */
|
|
104
|
+
export const inboundSchema = AtsJobOpening$inboundSchema;
|
|
105
|
+
/** @deprecated use `AtsJobOpening$outboundSchema` instead. */
|
|
106
|
+
export const outboundSchema = AtsJobOpening$outboundSchema;
|
|
107
|
+
/** @deprecated use `AtsJobOpening$Outbound` instead. */
|
|
108
|
+
export type Outbound = AtsJobOpening$Outbound;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function atsJobOpeningToJSON(atsJobOpening: AtsJobOpening): string {
|
|
112
|
+
return JSON.stringify(AtsJobOpening$outboundSchema.parse(atsJobOpening));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function atsJobOpeningFromJSON(
|
|
116
|
+
jsonString: string,
|
|
117
|
+
): SafeParseResult<AtsJobOpening, SDKValidationError> {
|
|
118
|
+
return safeParse(
|
|
119
|
+
jsonString,
|
|
120
|
+
(x) => AtsJobOpening$inboundSchema.parse(JSON.parse(x)),
|
|
121
|
+
`Failed to parse 'AtsJobOpening' from JSON`,
|
|
122
|
+
);
|
|
123
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type HrisDevice = {
|
|
12
|
+
adminUserIds?: Array<string> | undefined;
|
|
13
|
+
assetTag?: string | undefined;
|
|
14
|
+
createdAt?: Date | undefined;
|
|
15
|
+
hasAntivirus?: boolean | undefined;
|
|
16
|
+
hasFirewall?: boolean | undefined;
|
|
17
|
+
hasHdEncrypted?: boolean | undefined;
|
|
18
|
+
hasPasswordManager?: boolean | undefined;
|
|
19
|
+
hasScreenlock?: boolean | undefined;
|
|
20
|
+
id?: string | undefined;
|
|
21
|
+
isMissing?: boolean | undefined;
|
|
22
|
+
locationId?: string | undefined;
|
|
23
|
+
manufacturer?: string | undefined;
|
|
24
|
+
model?: string | undefined;
|
|
25
|
+
name: string;
|
|
26
|
+
os?: string | undefined;
|
|
27
|
+
osVersion?: string | undefined;
|
|
28
|
+
raw?: { [k: string]: any } | undefined;
|
|
29
|
+
updatedAt?: Date | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* users who have this device
|
|
32
|
+
*/
|
|
33
|
+
userIds?: Array<string> | undefined;
|
|
34
|
+
version?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const HrisDevice$inboundSchema: z.ZodType<
|
|
39
|
+
HrisDevice,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
admin_user_ids: z.array(z.string()).optional(),
|
|
44
|
+
asset_tag: z.string().optional(),
|
|
45
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
46
|
+
.optional(),
|
|
47
|
+
has_antivirus: z.boolean().optional(),
|
|
48
|
+
has_firewall: z.boolean().optional(),
|
|
49
|
+
has_hd_encrypted: z.boolean().optional(),
|
|
50
|
+
has_password_manager: z.boolean().optional(),
|
|
51
|
+
has_screenlock: z.boolean().optional(),
|
|
52
|
+
id: z.string().optional(),
|
|
53
|
+
is_missing: z.boolean().optional(),
|
|
54
|
+
location_id: z.string().optional(),
|
|
55
|
+
manufacturer: z.string().optional(),
|
|
56
|
+
model: z.string().optional(),
|
|
57
|
+
name: z.string(),
|
|
58
|
+
os: z.string().optional(),
|
|
59
|
+
os_version: z.string().optional(),
|
|
60
|
+
raw: z.record(z.any()).optional(),
|
|
61
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
62
|
+
.optional(),
|
|
63
|
+
user_ids: z.array(z.string()).optional(),
|
|
64
|
+
version: z.string().optional(),
|
|
65
|
+
}).transform((v) => {
|
|
66
|
+
return remap$(v, {
|
|
67
|
+
"admin_user_ids": "adminUserIds",
|
|
68
|
+
"asset_tag": "assetTag",
|
|
69
|
+
"created_at": "createdAt",
|
|
70
|
+
"has_antivirus": "hasAntivirus",
|
|
71
|
+
"has_firewall": "hasFirewall",
|
|
72
|
+
"has_hd_encrypted": "hasHdEncrypted",
|
|
73
|
+
"has_password_manager": "hasPasswordManager",
|
|
74
|
+
"has_screenlock": "hasScreenlock",
|
|
75
|
+
"is_missing": "isMissing",
|
|
76
|
+
"location_id": "locationId",
|
|
77
|
+
"os_version": "osVersion",
|
|
78
|
+
"updated_at": "updatedAt",
|
|
79
|
+
"user_ids": "userIds",
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
/** @internal */
|
|
84
|
+
export type HrisDevice$Outbound = {
|
|
85
|
+
admin_user_ids?: Array<string> | undefined;
|
|
86
|
+
asset_tag?: string | undefined;
|
|
87
|
+
created_at?: string | undefined;
|
|
88
|
+
has_antivirus?: boolean | undefined;
|
|
89
|
+
has_firewall?: boolean | undefined;
|
|
90
|
+
has_hd_encrypted?: boolean | undefined;
|
|
91
|
+
has_password_manager?: boolean | undefined;
|
|
92
|
+
has_screenlock?: boolean | undefined;
|
|
93
|
+
id?: string | undefined;
|
|
94
|
+
is_missing?: boolean | undefined;
|
|
95
|
+
location_id?: string | undefined;
|
|
96
|
+
manufacturer?: string | undefined;
|
|
97
|
+
model?: string | undefined;
|
|
98
|
+
name: string;
|
|
99
|
+
os?: string | undefined;
|
|
100
|
+
os_version?: string | undefined;
|
|
101
|
+
raw?: { [k: string]: any } | undefined;
|
|
102
|
+
updated_at?: string | undefined;
|
|
103
|
+
user_ids?: Array<string> | undefined;
|
|
104
|
+
version?: string | undefined;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/** @internal */
|
|
108
|
+
export const HrisDevice$outboundSchema: z.ZodType<
|
|
109
|
+
HrisDevice$Outbound,
|
|
110
|
+
z.ZodTypeDef,
|
|
111
|
+
HrisDevice
|
|
112
|
+
> = z.object({
|
|
113
|
+
adminUserIds: z.array(z.string()).optional(),
|
|
114
|
+
assetTag: z.string().optional(),
|
|
115
|
+
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
116
|
+
hasAntivirus: z.boolean().optional(),
|
|
117
|
+
hasFirewall: z.boolean().optional(),
|
|
118
|
+
hasHdEncrypted: z.boolean().optional(),
|
|
119
|
+
hasPasswordManager: z.boolean().optional(),
|
|
120
|
+
hasScreenlock: z.boolean().optional(),
|
|
121
|
+
id: z.string().optional(),
|
|
122
|
+
isMissing: z.boolean().optional(),
|
|
123
|
+
locationId: z.string().optional(),
|
|
124
|
+
manufacturer: z.string().optional(),
|
|
125
|
+
model: z.string().optional(),
|
|
126
|
+
name: z.string(),
|
|
127
|
+
os: z.string().optional(),
|
|
128
|
+
osVersion: z.string().optional(),
|
|
129
|
+
raw: z.record(z.any()).optional(),
|
|
130
|
+
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
131
|
+
userIds: z.array(z.string()).optional(),
|
|
132
|
+
version: z.string().optional(),
|
|
133
|
+
}).transform((v) => {
|
|
134
|
+
return remap$(v, {
|
|
135
|
+
adminUserIds: "admin_user_ids",
|
|
136
|
+
assetTag: "asset_tag",
|
|
137
|
+
createdAt: "created_at",
|
|
138
|
+
hasAntivirus: "has_antivirus",
|
|
139
|
+
hasFirewall: "has_firewall",
|
|
140
|
+
hasHdEncrypted: "has_hd_encrypted",
|
|
141
|
+
hasPasswordManager: "has_password_manager",
|
|
142
|
+
hasScreenlock: "has_screenlock",
|
|
143
|
+
isMissing: "is_missing",
|
|
144
|
+
locationId: "location_id",
|
|
145
|
+
osVersion: "os_version",
|
|
146
|
+
updatedAt: "updated_at",
|
|
147
|
+
userIds: "user_ids",
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @internal
|
|
153
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
154
|
+
*/
|
|
155
|
+
export namespace HrisDevice$ {
|
|
156
|
+
/** @deprecated use `HrisDevice$inboundSchema` instead. */
|
|
157
|
+
export const inboundSchema = HrisDevice$inboundSchema;
|
|
158
|
+
/** @deprecated use `HrisDevice$outboundSchema` instead. */
|
|
159
|
+
export const outboundSchema = HrisDevice$outboundSchema;
|
|
160
|
+
/** @deprecated use `HrisDevice$Outbound` instead. */
|
|
161
|
+
export type Outbound = HrisDevice$Outbound;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function hrisDeviceToJSON(hrisDevice: HrisDevice): string {
|
|
165
|
+
return JSON.stringify(HrisDevice$outboundSchema.parse(hrisDevice));
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function hrisDeviceFromJSON(
|
|
169
|
+
jsonString: string,
|
|
170
|
+
): SafeParseResult<HrisDevice, SDKValidationError> {
|
|
171
|
+
return safeParse(
|
|
172
|
+
jsonString,
|
|
173
|
+
(x) => HrisDevice$inboundSchema.parse(JSON.parse(x)),
|
|
174
|
+
`Failed to parse 'HrisDevice' from JSON`,
|
|
175
|
+
);
|
|
176
|
+
}
|