@apideck/unify 0.29.6 → 0.29.8
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 +10 -0
- package/docs/sdks/connectionconsent/README.md +100 -0
- package/docs/sdks/connectionconsents/README.md +92 -0
- package/docs/sdks/expenses/README.md +8 -0
- package/examples/package-lock.json +1 -1
- package/funcs/accountingAttachmentsList.js +3 -0
- package/funcs/accountingAttachmentsList.js.map +1 -1
- package/funcs/accountingBankFeedAccountsList.js +3 -0
- package/funcs/accountingBankFeedAccountsList.js.map +1 -1
- package/funcs/accountingBankFeedStatementsList.js +3 -0
- package/funcs/accountingBankFeedStatementsList.js.map +1 -1
- package/funcs/accountingBillPaymentsList.js +3 -0
- package/funcs/accountingBillPaymentsList.js.map +1 -1
- package/funcs/accountingBillsList.js +3 -0
- package/funcs/accountingBillsList.js.map +1 -1
- package/funcs/accountingCategoriesList.js +3 -0
- package/funcs/accountingCategoriesList.js.map +1 -1
- package/funcs/accountingCreditNotesList.js +3 -0
- package/funcs/accountingCreditNotesList.js.map +1 -1
- package/funcs/accountingCustomersList.js +3 -0
- package/funcs/accountingCustomersList.js.map +1 -1
- package/funcs/accountingDepartmentsList.js +3 -0
- package/funcs/accountingDepartmentsList.js.map +1 -1
- package/funcs/accountingExpensesList.d.ts.map +1 -1
- package/funcs/accountingExpensesList.js +7 -2
- package/funcs/accountingExpensesList.js.map +1 -1
- package/funcs/accountingInvoiceItemsList.js +3 -0
- package/funcs/accountingInvoiceItemsList.js.map +1 -1
- package/funcs/accountingInvoicesList.js +3 -0
- package/funcs/accountingInvoicesList.js.map +1 -1
- package/funcs/accountingJournalEntriesList.js +3 -0
- package/funcs/accountingJournalEntriesList.js.map +1 -1
- package/funcs/accountingLedgerAccountsList.js +3 -0
- package/funcs/accountingLedgerAccountsList.js.map +1 -1
- package/funcs/accountingLocationsList.js +3 -0
- package/funcs/accountingLocationsList.js.map +1 -1
- package/funcs/accountingPaymentsList.js +3 -0
- package/funcs/accountingPaymentsList.js.map +1 -1
- package/funcs/accountingPurchaseOrdersList.js +3 -0
- package/funcs/accountingPurchaseOrdersList.js.map +1 -1
- package/funcs/accountingQuotesList.js +3 -0
- package/funcs/accountingQuotesList.js.map +1 -1
- package/funcs/accountingSubsidiariesList.js +3 -0
- package/funcs/accountingSubsidiariesList.js.map +1 -1
- package/funcs/accountingSuppliersList.js +3 -0
- package/funcs/accountingSuppliersList.js.map +1 -1
- package/funcs/accountingTaxRatesList.js +3 -0
- package/funcs/accountingTaxRatesList.js.map +1 -1
- package/funcs/accountingTrackingCategoriesList.js +3 -0
- package/funcs/accountingTrackingCategoriesList.js.map +1 -1
- package/funcs/atsApplicantsList.js +3 -0
- package/funcs/atsApplicantsList.js.map +1 -1
- package/funcs/atsApplicationsList.js +3 -0
- package/funcs/atsApplicationsList.js.map +1 -1
- package/funcs/atsJobsList.js +3 -0
- package/funcs/atsJobsList.js.map +1 -1
- package/funcs/connectorApisList.js +3 -0
- package/funcs/connectorApisList.js.map +1 -1
- package/funcs/connectorConnectorsList.js +3 -0
- package/funcs/connectorConnectorsList.js.map +1 -1
- package/funcs/crmActivitiesList.js +3 -0
- package/funcs/crmActivitiesList.js.map +1 -1
- package/funcs/crmCompaniesList.js +3 -0
- package/funcs/crmCompaniesList.js.map +1 -1
- package/funcs/crmContactsList.js +3 -0
- package/funcs/crmContactsList.js.map +1 -1
- package/funcs/crmCustomObjectSchemasList.js +3 -0
- package/funcs/crmCustomObjectSchemasList.js.map +1 -1
- package/funcs/crmCustomObjectsList.js +3 -0
- package/funcs/crmCustomObjectsList.js.map +1 -1
- package/funcs/crmLeadsList.js +3 -0
- package/funcs/crmLeadsList.js.map +1 -1
- package/funcs/crmNotesList.js +3 -0
- package/funcs/crmNotesList.js.map +1 -1
- package/funcs/crmOpportunitiesList.js +3 -0
- package/funcs/crmOpportunitiesList.js.map +1 -1
- package/funcs/crmPipelinesList.js +3 -0
- package/funcs/crmPipelinesList.js.map +1 -1
- package/funcs/crmUsersList.js +3 -0
- package/funcs/crmUsersList.js.map +1 -1
- package/funcs/ecommerceCustomersList.js +3 -0
- package/funcs/ecommerceCustomersList.js.map +1 -1
- package/funcs/ecommerceOrdersList.js +3 -0
- package/funcs/ecommerceOrdersList.js.map +1 -1
- package/funcs/ecommerceProductsList.js +3 -0
- package/funcs/ecommerceProductsList.js.map +1 -1
- package/funcs/fileStorageDriveGroupsList.js +3 -0
- package/funcs/fileStorageDriveGroupsList.js.map +1 -1
- package/funcs/fileStorageDrivesList.js +3 -0
- package/funcs/fileStorageDrivesList.js.map +1 -1
- package/funcs/fileStorageFilesList.js +3 -0
- package/funcs/fileStorageFilesList.js.map +1 -1
- package/funcs/fileStorageSharedLinksList.js +3 -0
- package/funcs/fileStorageSharedLinksList.js.map +1 -1
- package/funcs/hrisCompaniesList.js +3 -0
- package/funcs/hrisCompaniesList.js.map +1 -1
- package/funcs/hrisDepartmentsList.js +3 -0
- package/funcs/hrisDepartmentsList.js.map +1 -1
- package/funcs/hrisEmployeesList.js +3 -0
- package/funcs/hrisEmployeesList.js.map +1 -1
- package/funcs/hrisTimeOffRequestsList.js +3 -0
- package/funcs/hrisTimeOffRequestsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTagsList.js +3 -0
- package/funcs/issueTrackingCollectionTagsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsGet.js +3 -0
- package/funcs/issueTrackingCollectionTicketCommentsGet.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsList.js +3 -0
- package/funcs/issueTrackingCollectionTicketCommentsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketsList.js +3 -0
- package/funcs/issueTrackingCollectionTicketsList.js.map +1 -1
- package/funcs/issueTrackingCollectionUsersList.js +3 -0
- package/funcs/issueTrackingCollectionUsersList.js.map +1 -1
- package/funcs/issueTrackingCollectionsList.js +3 -0
- package/funcs/issueTrackingCollectionsList.js.map +1 -1
- package/funcs/smsMessagesList.js +3 -0
- package/funcs/smsMessagesList.js.map +1 -1
- package/funcs/vaultConnectionConsentUpdate.d.ts +18 -0
- package/funcs/vaultConnectionConsentUpdate.d.ts.map +1 -0
- package/funcs/vaultConnectionConsentUpdate.js +144 -0
- package/funcs/vaultConnectionConsentUpdate.js.map +1 -0
- package/funcs/vaultConnectionConsentsList.d.ts +18 -0
- package/funcs/vaultConnectionConsentsList.d.ts.map +1 -0
- package/funcs/vaultConnectionConsentsList.js +141 -0
- package/funcs/vaultConnectionConsentsList.js.map +1 -0
- package/funcs/vaultConsumersList.js +3 -0
- package/funcs/vaultConsumersList.js.map +1 -1
- package/funcs/vaultLogsList.js +3 -0
- package/funcs/vaultLogsList.js.map +1 -1
- package/funcs/webhookEventLogsList.js +3 -0
- package/funcs/webhookEventLogsList.js.map +1 -1
- package/funcs/webhookWebhooksList.js +3 -0
- package/funcs/webhookWebhooksList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/models/components/companyinfo.d.ts +42 -0
- package/models/components/companyinfo.d.ts.map +1 -1
- package/models/components/companyinfo.js +29 -1
- package/models/components/companyinfo.js.map +1 -1
- package/models/components/connection.d.ts +28 -0
- package/models/components/connection.d.ts.map +1 -1
- package/models/components/connection.js +31 -0
- package/models/components/connection.js.map +1 -1
- package/models/components/consentrecord.d.ts +48 -0
- package/models/components/consentrecord.d.ts.map +1 -0
- package/models/components/consentrecord.js +85 -0
- package/models/components/consentrecord.js.map +1 -0
- package/models/components/consentrecordinput.d.ts +38 -0
- package/models/components/consentrecordinput.d.ts.map +1 -0
- package/models/components/consentrecordinput.js +72 -0
- package/models/components/consentrecordinput.js.map +1 -0
- package/models/components/consentstate.d.ts +46 -0
- package/models/components/consentstate.d.ts.map +1 -0
- package/models/components/consentstate.js +67 -0
- package/models/components/consentstate.js.map +1 -0
- package/models/components/datascopes.d.ts +43 -0
- package/models/components/datascopes.d.ts.map +1 -0
- package/models/components/datascopes.js +83 -0
- package/models/components/datascopes.js.map +1 -0
- package/models/components/datascopesinput.d.ts +38 -0
- package/models/components/datascopesinput.d.ts.map +1 -0
- package/models/components/datascopesinput.js +72 -0
- package/models/components/datascopesinput.js.map +1 -0
- package/models/components/datascopesresources.d.ts +98 -0
- package/models/components/datascopesresources.d.ts.map +1 -0
- package/models/components/datascopesresources.js +121 -0
- package/models/components/datascopesresources.js.map +1 -0
- package/models/components/expense.d.ts +41 -0
- package/models/components/expense.d.ts.map +1 -1
- package/models/components/expense.js +27 -1
- package/models/components/expense.js.map +1 -1
- package/models/components/expensesfilter.d.ts +75 -0
- package/models/components/expensesfilter.d.ts.map +1 -0
- package/models/components/expensesfilter.js +105 -0
- package/models/components/expensesfilter.js.map +1 -0
- package/models/components/formfield.d.ts +3 -0
- package/models/components/formfield.d.ts.map +1 -1
- package/models/components/formfield.js +1 -0
- package/models/components/formfield.js.map +1 -1
- package/models/components/getconsentrecordsresponse.d.ts +52 -0
- package/models/components/getconsentrecordsresponse.d.ts.map +1 -0
- package/models/components/getconsentrecordsresponse.js +87 -0
- package/models/components/getconsentrecordsresponse.js.map +1 -0
- package/models/components/index.d.ts +10 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +10 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invoiceitem.d.ts +11 -0
- package/models/components/invoiceitem.d.ts.map +1 -1
- package/models/components/invoiceitem.js +5 -0
- package/models/components/invoiceitem.js.map +1 -1
- package/models/components/journalentriesfilter.d.ts +46 -0
- package/models/components/journalentriesfilter.d.ts.map +1 -1
- package/models/components/journalentriesfilter.js +28 -1
- package/models/components/journalentriesfilter.js.map +1 -1
- package/models/components/timeoffrequestsfilter.d.ts +2 -2
- package/models/components/trackingcategory.d.ts +10 -0
- package/models/components/trackingcategory.d.ts.map +1 -1
- package/models/components/trackingcategory.js +8 -0
- package/models/components/trackingcategory.js.map +1 -1
- package/models/components/updateconsentrequest.d.ts +133 -0
- package/models/components/updateconsentrequest.d.ts.map +1 -0
- package/models/components/updateconsentrequest.js +158 -0
- package/models/components/updateconsentrequest.js.map +1 -0
- package/models/components/updateconsentresponse.d.ts +52 -0
- package/models/components/updateconsentresponse.d.ts.map +1 -0
- package/models/components/updateconsentresponse.js +87 -0
- package/models/components/updateconsentresponse.js.map +1 -0
- package/models/components/webhookeventtype.d.ts +6 -6
- package/models/components/webhookeventtype.js +2 -2
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/operations/accountingexpensesall.d.ts +5 -0
- package/models/operations/accountingexpensesall.d.ts.map +1 -1
- package/models/operations/accountingexpensesall.js +2 -0
- package/models/operations/accountingexpensesall.js.map +1 -1
- 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/models/operations/vaultconnectionconsentsall.d.ts +116 -0
- package/models/operations/vaultconnectionconsentsall.d.ts.map +1 -0
- package/models/operations/vaultconnectionconsentsall.js +163 -0
- package/models/operations/vaultconnectionconsentsall.js.map +1 -0
- package/models/operations/vaultconnectionconsentupdate.d.ts +121 -0
- package/models/operations/vaultconnectionconsentupdate.d.ts.map +1 -0
- package/models/operations/vaultconnectionconsentupdate.js +167 -0
- package/models/operations/vaultconnectionconsentupdate.js.map +1 -0
- package/package.json +1 -1
- package/sdk/connectionconsent.d.ts +12 -0
- package/sdk/connectionconsent.d.ts.map +1 -0
- package/sdk/connectionconsent.js +22 -0
- package/sdk/connectionconsent.js.map +1 -0
- package/sdk/connectionconsents.d.ts +12 -0
- package/sdk/connectionconsents.d.ts.map +1 -0
- package/sdk/connectionconsents.js +22 -0
- package/sdk/connectionconsents.js.map +1 -0
- package/sdk/vault.d.ts +6 -0
- package/sdk/vault.d.ts.map +1 -1
- package/sdk/vault.js +8 -0
- package/sdk/vault.js.map +1 -1
- package/src/__tests__/connectionconsent.test.ts +89 -0
- package/src/__tests__/connectionconsents.test.ts +31 -0
- package/src/funcs/accountingAttachmentsList.ts +3 -0
- package/src/funcs/accountingBankFeedAccountsList.ts +3 -0
- package/src/funcs/accountingBankFeedStatementsList.ts +3 -0
- package/src/funcs/accountingBillPaymentsList.ts +3 -0
- package/src/funcs/accountingBillsList.ts +3 -0
- package/src/funcs/accountingCategoriesList.ts +3 -0
- package/src/funcs/accountingCreditNotesList.ts +3 -0
- package/src/funcs/accountingCustomersList.ts +3 -0
- package/src/funcs/accountingDepartmentsList.ts +3 -0
- package/src/funcs/accountingExpensesList.ts +19 -6
- package/src/funcs/accountingInvoiceItemsList.ts +3 -0
- package/src/funcs/accountingInvoicesList.ts +3 -0
- package/src/funcs/accountingJournalEntriesList.ts +3 -0
- package/src/funcs/accountingLedgerAccountsList.ts +3 -0
- package/src/funcs/accountingLocationsList.ts +3 -0
- package/src/funcs/accountingPaymentsList.ts +3 -0
- package/src/funcs/accountingPurchaseOrdersList.ts +3 -0
- package/src/funcs/accountingQuotesList.ts +3 -0
- package/src/funcs/accountingSubsidiariesList.ts +3 -0
- package/src/funcs/accountingSuppliersList.ts +3 -0
- package/src/funcs/accountingTaxRatesList.ts +3 -0
- package/src/funcs/accountingTrackingCategoriesList.ts +3 -0
- package/src/funcs/atsApplicantsList.ts +3 -0
- package/src/funcs/atsApplicationsList.ts +3 -0
- package/src/funcs/atsJobsList.ts +3 -0
- package/src/funcs/connectorApisList.ts +3 -0
- package/src/funcs/connectorConnectorsList.ts +3 -0
- package/src/funcs/crmActivitiesList.ts +3 -0
- package/src/funcs/crmCompaniesList.ts +3 -0
- package/src/funcs/crmContactsList.ts +3 -0
- package/src/funcs/crmCustomObjectSchemasList.ts +3 -0
- package/src/funcs/crmCustomObjectsList.ts +3 -0
- package/src/funcs/crmLeadsList.ts +3 -0
- package/src/funcs/crmNotesList.ts +3 -0
- package/src/funcs/crmOpportunitiesList.ts +3 -0
- package/src/funcs/crmPipelinesList.ts +3 -0
- package/src/funcs/crmUsersList.ts +3 -0
- package/src/funcs/ecommerceCustomersList.ts +3 -0
- package/src/funcs/ecommerceOrdersList.ts +3 -0
- package/src/funcs/ecommerceProductsList.ts +3 -0
- package/src/funcs/fileStorageDriveGroupsList.ts +3 -0
- package/src/funcs/fileStorageDrivesList.ts +3 -0
- package/src/funcs/fileStorageFilesList.ts +3 -0
- package/src/funcs/fileStorageSharedLinksList.ts +3 -0
- package/src/funcs/hrisCompaniesList.ts +3 -0
- package/src/funcs/hrisDepartmentsList.ts +3 -0
- package/src/funcs/hrisEmployeesList.ts +3 -0
- package/src/funcs/hrisTimeOffRequestsList.ts +3 -0
- package/src/funcs/issueTrackingCollectionTagsList.ts +3 -0
- package/src/funcs/issueTrackingCollectionTicketCommentsGet.ts +3 -0
- package/src/funcs/issueTrackingCollectionTicketCommentsList.ts +3 -0
- package/src/funcs/issueTrackingCollectionTicketsList.ts +3 -0
- package/src/funcs/issueTrackingCollectionUsersList.ts +3 -0
- package/src/funcs/issueTrackingCollectionsList.ts +3 -0
- package/src/funcs/smsMessagesList.ts +3 -0
- package/src/funcs/vaultConnectionConsentUpdate.ts +230 -0
- package/src/funcs/vaultConnectionConsentsList.ts +225 -0
- package/src/funcs/vaultConsumersList.ts +3 -0
- package/src/funcs/vaultLogsList.ts +3 -0
- package/src/funcs/webhookEventLogsList.ts +3 -0
- package/src/funcs/webhookWebhooksList.ts +3 -0
- package/src/lib/config.ts +4 -4
- package/src/models/components/companyinfo.ts +44 -0
- package/src/models/components/connection.ts +78 -0
- package/src/models/components/consentrecord.ts +101 -0
- package/src/models/components/consentrecordinput.ts +82 -0
- package/src/models/components/consentstate.ts +41 -0
- package/src/models/components/datascopes.ts +94 -0
- package/src/models/components/datascopesinput.ts +80 -0
- package/src/models/components/datascopesresources.ts +172 -0
- package/src/models/components/expense.ts +47 -0
- package/src/models/components/expensesfilter.ts +111 -0
- package/src/models/components/formfield.ts +1 -0
- package/src/models/components/getconsentrecordsresponse.ts +107 -0
- package/src/models/components/index.ts +10 -0
- package/src/models/components/invoiceitem.ts +19 -0
- package/src/models/components/journalentriesfilter.ts +40 -0
- package/src/models/components/timeoffrequestsfilter.ts +2 -2
- package/src/models/components/trackingcategory.ts +18 -0
- package/src/models/components/updateconsentrequest.ts +229 -0
- package/src/models/components/updateconsentresponse.ts +107 -0
- package/src/models/components/webhookeventtype.ts +2 -2
- package/src/models/operations/accountingexpensesall.ts +7 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/vaultconnectionconsentsall.ts +272 -0
- package/src/models/operations/vaultconnectionconsentupdate.ts +284 -0
- package/src/sdk/connectionconsent.ts +27 -0
- package/src/sdk/connectionconsents.ts +27 -0
- package/src/sdk/vault.ts +12 -0
|
@@ -5,13 +5,50 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
|
|
12
|
+
export const JournalEntriesFilterStatus = {
|
|
13
|
+
Draft: "draft",
|
|
14
|
+
PendingApproval: "pending_approval",
|
|
15
|
+
Approved: "approved",
|
|
16
|
+
Posted: "posted",
|
|
17
|
+
Voided: "voided",
|
|
18
|
+
Rejected: "rejected",
|
|
19
|
+
Deleted: "deleted",
|
|
20
|
+
Other: "other",
|
|
21
|
+
} as const;
|
|
22
|
+
export type JournalEntriesFilterStatus = ClosedEnum<
|
|
23
|
+
typeof JournalEntriesFilterStatus
|
|
24
|
+
>;
|
|
25
|
+
|
|
11
26
|
export type JournalEntriesFilter = {
|
|
12
27
|
updatedSince?: Date | undefined;
|
|
28
|
+
status?: JournalEntriesFilterStatus | undefined;
|
|
13
29
|
};
|
|
14
30
|
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const JournalEntriesFilterStatus$inboundSchema: z.ZodNativeEnum<
|
|
33
|
+
typeof JournalEntriesFilterStatus
|
|
34
|
+
> = z.nativeEnum(JournalEntriesFilterStatus);
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const JournalEntriesFilterStatus$outboundSchema: z.ZodNativeEnum<
|
|
38
|
+
typeof JournalEntriesFilterStatus
|
|
39
|
+
> = JournalEntriesFilterStatus$inboundSchema;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
+
*/
|
|
45
|
+
export namespace JournalEntriesFilterStatus$ {
|
|
46
|
+
/** @deprecated use `JournalEntriesFilterStatus$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = JournalEntriesFilterStatus$inboundSchema;
|
|
48
|
+
/** @deprecated use `JournalEntriesFilterStatus$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = JournalEntriesFilterStatus$outboundSchema;
|
|
50
|
+
}
|
|
51
|
+
|
|
15
52
|
/** @internal */
|
|
16
53
|
export const JournalEntriesFilter$inboundSchema: z.ZodType<
|
|
17
54
|
JournalEntriesFilter,
|
|
@@ -21,6 +58,7 @@ export const JournalEntriesFilter$inboundSchema: z.ZodType<
|
|
|
21
58
|
updated_since: z.string().datetime({ offset: true }).transform(v =>
|
|
22
59
|
new Date(v)
|
|
23
60
|
).optional(),
|
|
61
|
+
status: JournalEntriesFilterStatus$inboundSchema.optional(),
|
|
24
62
|
}).transform((v) => {
|
|
25
63
|
return remap$(v, {
|
|
26
64
|
"updated_since": "updatedSince",
|
|
@@ -30,6 +68,7 @@ export const JournalEntriesFilter$inboundSchema: z.ZodType<
|
|
|
30
68
|
/** @internal */
|
|
31
69
|
export type JournalEntriesFilter$Outbound = {
|
|
32
70
|
updated_since?: string | undefined;
|
|
71
|
+
status?: string | undefined;
|
|
33
72
|
};
|
|
34
73
|
|
|
35
74
|
/** @internal */
|
|
@@ -39,6 +78,7 @@ export const JournalEntriesFilter$outboundSchema: z.ZodType<
|
|
|
39
78
|
JournalEntriesFilter
|
|
40
79
|
> = z.object({
|
|
41
80
|
updatedSince: z.date().transform(v => v.toISOString()).optional(),
|
|
81
|
+
status: JournalEntriesFilterStatus$outboundSchema.optional(),
|
|
42
82
|
}).transform((v) => {
|
|
43
83
|
return remap$(v, {
|
|
44
84
|
updatedSince: "updated_since",
|
|
@@ -27,11 +27,11 @@ export type TimeOffRequestStatus = ClosedEnum<typeof TimeOffRequestStatus>;
|
|
|
27
27
|
|
|
28
28
|
export type TimeOffRequestsFilter = {
|
|
29
29
|
/**
|
|
30
|
-
* Start date
|
|
30
|
+
* Start date of the date range to filter time off requests. When used with end_date, filters for requests within the specified date range.
|
|
31
31
|
*/
|
|
32
32
|
startDate?: string | undefined;
|
|
33
33
|
/**
|
|
34
|
-
* End date
|
|
34
|
+
* End date of the date range to filter time off requests. When used with start_date, filters for requests within the specified date range.
|
|
35
35
|
*/
|
|
36
36
|
endDate?: string | undefined;
|
|
37
37
|
/**
|
|
@@ -43,6 +43,10 @@ export type TrackingCategory = {
|
|
|
43
43
|
* A unique identifier for an object.
|
|
44
44
|
*/
|
|
45
45
|
parentId?: string | null | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The name of the parent tracking category.
|
|
48
|
+
*/
|
|
49
|
+
parentName?: string | null | undefined;
|
|
46
50
|
/**
|
|
47
51
|
* The name of the tracking category.
|
|
48
52
|
*/
|
|
@@ -94,6 +98,10 @@ export type TrackingCategoryInput = {
|
|
|
94
98
|
* A unique identifier for an object.
|
|
95
99
|
*/
|
|
96
100
|
parentId?: string | null | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* The name of the parent tracking category.
|
|
103
|
+
*/
|
|
104
|
+
parentName?: string | null | undefined;
|
|
97
105
|
/**
|
|
98
106
|
* The name of the tracking category.
|
|
99
107
|
*/
|
|
@@ -205,6 +213,7 @@ export const TrackingCategory$inboundSchema: z.ZodType<
|
|
|
205
213
|
> = z.object({
|
|
206
214
|
id: z.string().optional(),
|
|
207
215
|
parent_id: z.nullable(z.string()).optional(),
|
|
216
|
+
parent_name: z.nullable(z.string()).optional(),
|
|
208
217
|
name: z.string().optional(),
|
|
209
218
|
code: z.nullable(z.string()).optional(),
|
|
210
219
|
status: TrackingCategoryStatus$inboundSchema.optional(),
|
|
@@ -225,6 +234,7 @@ export const TrackingCategory$inboundSchema: z.ZodType<
|
|
|
225
234
|
}).transform((v) => {
|
|
226
235
|
return remap$(v, {
|
|
227
236
|
"parent_id": "parentId",
|
|
237
|
+
"parent_name": "parentName",
|
|
228
238
|
"custom_mappings": "customMappings",
|
|
229
239
|
"row_version": "rowVersion",
|
|
230
240
|
"updated_by": "updatedBy",
|
|
@@ -239,6 +249,7 @@ export const TrackingCategory$inboundSchema: z.ZodType<
|
|
|
239
249
|
export type TrackingCategory$Outbound = {
|
|
240
250
|
id?: string | undefined;
|
|
241
251
|
parent_id?: string | null | undefined;
|
|
252
|
+
parent_name?: string | null | undefined;
|
|
242
253
|
name?: string | undefined;
|
|
243
254
|
code?: string | null | undefined;
|
|
244
255
|
status?: string | undefined;
|
|
@@ -260,6 +271,7 @@ export const TrackingCategory$outboundSchema: z.ZodType<
|
|
|
260
271
|
> = z.object({
|
|
261
272
|
id: z.string().optional(),
|
|
262
273
|
parentId: z.nullable(z.string()).optional(),
|
|
274
|
+
parentName: z.nullable(z.string()).optional(),
|
|
263
275
|
name: z.string().optional(),
|
|
264
276
|
code: z.nullable(z.string()).optional(),
|
|
265
277
|
status: TrackingCategoryStatus$outboundSchema.optional(),
|
|
@@ -276,6 +288,7 @@ export const TrackingCategory$outboundSchema: z.ZodType<
|
|
|
276
288
|
}).transform((v) => {
|
|
277
289
|
return remap$(v, {
|
|
278
290
|
parentId: "parent_id",
|
|
291
|
+
parentName: "parent_name",
|
|
279
292
|
customMappings: "custom_mappings",
|
|
280
293
|
rowVersion: "row_version",
|
|
281
294
|
updatedBy: "updated_by",
|
|
@@ -324,6 +337,7 @@ export const TrackingCategoryInput$inboundSchema: z.ZodType<
|
|
|
324
337
|
unknown
|
|
325
338
|
> = z.object({
|
|
326
339
|
parent_id: z.nullable(z.string()).optional(),
|
|
340
|
+
parent_name: z.nullable(z.string()).optional(),
|
|
327
341
|
name: z.string().optional(),
|
|
328
342
|
code: z.nullable(z.string()).optional(),
|
|
329
343
|
status: TrackingCategoryStatus$inboundSchema.optional(),
|
|
@@ -335,6 +349,7 @@ export const TrackingCategoryInput$inboundSchema: z.ZodType<
|
|
|
335
349
|
}).transform((v) => {
|
|
336
350
|
return remap$(v, {
|
|
337
351
|
"parent_id": "parentId",
|
|
352
|
+
"parent_name": "parentName",
|
|
338
353
|
"row_version": "rowVersion",
|
|
339
354
|
"pass_through": "passThrough",
|
|
340
355
|
});
|
|
@@ -343,6 +358,7 @@ export const TrackingCategoryInput$inboundSchema: z.ZodType<
|
|
|
343
358
|
/** @internal */
|
|
344
359
|
export type TrackingCategoryInput$Outbound = {
|
|
345
360
|
parent_id?: string | null | undefined;
|
|
361
|
+
parent_name?: string | null | undefined;
|
|
346
362
|
name?: string | undefined;
|
|
347
363
|
code?: string | null | undefined;
|
|
348
364
|
status?: string | undefined;
|
|
@@ -358,6 +374,7 @@ export const TrackingCategoryInput$outboundSchema: z.ZodType<
|
|
|
358
374
|
TrackingCategoryInput
|
|
359
375
|
> = z.object({
|
|
360
376
|
parentId: z.nullable(z.string()).optional(),
|
|
377
|
+
parentName: z.nullable(z.string()).optional(),
|
|
361
378
|
name: z.string().optional(),
|
|
362
379
|
code: z.nullable(z.string()).optional(),
|
|
363
380
|
status: TrackingCategoryStatus$outboundSchema.optional(),
|
|
@@ -369,6 +386,7 @@ export const TrackingCategoryInput$outboundSchema: z.ZodType<
|
|
|
369
386
|
}).transform((v) => {
|
|
370
387
|
return remap$(v, {
|
|
371
388
|
parentId: "parent_id",
|
|
389
|
+
parentName: "parent_name",
|
|
372
390
|
rowVersion: "row_version",
|
|
373
391
|
passThrough: "pass_through",
|
|
374
392
|
});
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Wildcard indicating all resources and fields when Data Scopes is disabled
|
|
13
|
+
*/
|
|
14
|
+
export const Two = {
|
|
15
|
+
Wildcard: "*",
|
|
16
|
+
} as const;
|
|
17
|
+
/**
|
|
18
|
+
* Wildcard indicating all resources and fields when Data Scopes is disabled
|
|
19
|
+
*/
|
|
20
|
+
export type Two = ClosedEnum<typeof Two>;
|
|
21
|
+
|
|
22
|
+
export type One = {
|
|
23
|
+
/**
|
|
24
|
+
* Whether the field can be read
|
|
25
|
+
*/
|
|
26
|
+
read?: boolean | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the field can be written to
|
|
29
|
+
*/
|
|
30
|
+
write?: boolean | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type UpdateConsentRequestResources = {
|
|
34
|
+
[k: string]: { [k: string]: One };
|
|
35
|
+
} | Two;
|
|
36
|
+
|
|
37
|
+
export type UpdateConsentRequest = {
|
|
38
|
+
resources: { [k: string]: { [k: string]: One } } | Two;
|
|
39
|
+
/**
|
|
40
|
+
* Whether consent is being granted (true) or denied/revoked (false)
|
|
41
|
+
*/
|
|
42
|
+
granted: boolean;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const Two$inboundSchema: z.ZodNativeEnum<typeof Two> = z.nativeEnum(Two);
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const Two$outboundSchema: z.ZodNativeEnum<typeof Two> =
|
|
50
|
+
Two$inboundSchema;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export namespace Two$ {
|
|
57
|
+
/** @deprecated use `Two$inboundSchema` instead. */
|
|
58
|
+
export const inboundSchema = Two$inboundSchema;
|
|
59
|
+
/** @deprecated use `Two$outboundSchema` instead. */
|
|
60
|
+
export const outboundSchema = Two$outboundSchema;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
|
|
65
|
+
.object({
|
|
66
|
+
read: z.boolean().optional(),
|
|
67
|
+
write: z.boolean().optional(),
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export type One$Outbound = {
|
|
72
|
+
read?: boolean | undefined;
|
|
73
|
+
write?: boolean | undefined;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
|
|
78
|
+
.object({
|
|
79
|
+
read: z.boolean().optional(),
|
|
80
|
+
write: z.boolean().optional(),
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
86
|
+
*/
|
|
87
|
+
export namespace One$ {
|
|
88
|
+
/** @deprecated use `One$inboundSchema` instead. */
|
|
89
|
+
export const inboundSchema = One$inboundSchema;
|
|
90
|
+
/** @deprecated use `One$outboundSchema` instead. */
|
|
91
|
+
export const outboundSchema = One$outboundSchema;
|
|
92
|
+
/** @deprecated use `One$Outbound` instead. */
|
|
93
|
+
export type Outbound = One$Outbound;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function oneToJSON(one: One): string {
|
|
97
|
+
return JSON.stringify(One$outboundSchema.parse(one));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function oneFromJSON(
|
|
101
|
+
jsonString: string,
|
|
102
|
+
): SafeParseResult<One, SDKValidationError> {
|
|
103
|
+
return safeParse(
|
|
104
|
+
jsonString,
|
|
105
|
+
(x) => One$inboundSchema.parse(JSON.parse(x)),
|
|
106
|
+
`Failed to parse 'One' from JSON`,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/** @internal */
|
|
111
|
+
export const UpdateConsentRequestResources$inboundSchema: z.ZodType<
|
|
112
|
+
UpdateConsentRequestResources,
|
|
113
|
+
z.ZodTypeDef,
|
|
114
|
+
unknown
|
|
115
|
+
> = z.union([
|
|
116
|
+
z.record(z.record(z.lazy(() => One$inboundSchema))),
|
|
117
|
+
Two$inboundSchema,
|
|
118
|
+
]);
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export type UpdateConsentRequestResources$Outbound = {
|
|
122
|
+
[k: string]: { [k: string]: One$Outbound };
|
|
123
|
+
} | string;
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const UpdateConsentRequestResources$outboundSchema: z.ZodType<
|
|
127
|
+
UpdateConsentRequestResources$Outbound,
|
|
128
|
+
z.ZodTypeDef,
|
|
129
|
+
UpdateConsentRequestResources
|
|
130
|
+
> = z.union([
|
|
131
|
+
z.record(z.record(z.lazy(() => One$outboundSchema))),
|
|
132
|
+
Two$outboundSchema,
|
|
133
|
+
]);
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @internal
|
|
137
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
138
|
+
*/
|
|
139
|
+
export namespace UpdateConsentRequestResources$ {
|
|
140
|
+
/** @deprecated use `UpdateConsentRequestResources$inboundSchema` instead. */
|
|
141
|
+
export const inboundSchema = UpdateConsentRequestResources$inboundSchema;
|
|
142
|
+
/** @deprecated use `UpdateConsentRequestResources$outboundSchema` instead. */
|
|
143
|
+
export const outboundSchema = UpdateConsentRequestResources$outboundSchema;
|
|
144
|
+
/** @deprecated use `UpdateConsentRequestResources$Outbound` instead. */
|
|
145
|
+
export type Outbound = UpdateConsentRequestResources$Outbound;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function updateConsentRequestResourcesToJSON(
|
|
149
|
+
updateConsentRequestResources: UpdateConsentRequestResources,
|
|
150
|
+
): string {
|
|
151
|
+
return JSON.stringify(
|
|
152
|
+
UpdateConsentRequestResources$outboundSchema.parse(
|
|
153
|
+
updateConsentRequestResources,
|
|
154
|
+
),
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function updateConsentRequestResourcesFromJSON(
|
|
159
|
+
jsonString: string,
|
|
160
|
+
): SafeParseResult<UpdateConsentRequestResources, SDKValidationError> {
|
|
161
|
+
return safeParse(
|
|
162
|
+
jsonString,
|
|
163
|
+
(x) => UpdateConsentRequestResources$inboundSchema.parse(JSON.parse(x)),
|
|
164
|
+
`Failed to parse 'UpdateConsentRequestResources' from JSON`,
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/** @internal */
|
|
169
|
+
export const UpdateConsentRequest$inboundSchema: z.ZodType<
|
|
170
|
+
UpdateConsentRequest,
|
|
171
|
+
z.ZodTypeDef,
|
|
172
|
+
unknown
|
|
173
|
+
> = z.object({
|
|
174
|
+
resources: z.union([
|
|
175
|
+
z.record(z.record(z.lazy(() => One$inboundSchema))),
|
|
176
|
+
Two$inboundSchema,
|
|
177
|
+
]),
|
|
178
|
+
granted: z.boolean(),
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
/** @internal */
|
|
182
|
+
export type UpdateConsentRequest$Outbound = {
|
|
183
|
+
resources: { [k: string]: { [k: string]: One$Outbound } } | string;
|
|
184
|
+
granted: boolean;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
/** @internal */
|
|
188
|
+
export const UpdateConsentRequest$outboundSchema: z.ZodType<
|
|
189
|
+
UpdateConsentRequest$Outbound,
|
|
190
|
+
z.ZodTypeDef,
|
|
191
|
+
UpdateConsentRequest
|
|
192
|
+
> = z.object({
|
|
193
|
+
resources: z.union([
|
|
194
|
+
z.record(z.record(z.lazy(() => One$outboundSchema))),
|
|
195
|
+
Two$outboundSchema,
|
|
196
|
+
]),
|
|
197
|
+
granted: z.boolean(),
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* @internal
|
|
202
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
203
|
+
*/
|
|
204
|
+
export namespace UpdateConsentRequest$ {
|
|
205
|
+
/** @deprecated use `UpdateConsentRequest$inboundSchema` instead. */
|
|
206
|
+
export const inboundSchema = UpdateConsentRequest$inboundSchema;
|
|
207
|
+
/** @deprecated use `UpdateConsentRequest$outboundSchema` instead. */
|
|
208
|
+
export const outboundSchema = UpdateConsentRequest$outboundSchema;
|
|
209
|
+
/** @deprecated use `UpdateConsentRequest$Outbound` instead. */
|
|
210
|
+
export type Outbound = UpdateConsentRequest$Outbound;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export function updateConsentRequestToJSON(
|
|
214
|
+
updateConsentRequest: UpdateConsentRequest,
|
|
215
|
+
): string {
|
|
216
|
+
return JSON.stringify(
|
|
217
|
+
UpdateConsentRequest$outboundSchema.parse(updateConsentRequest),
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export function updateConsentRequestFromJSON(
|
|
222
|
+
jsonString: string,
|
|
223
|
+
): SafeParseResult<UpdateConsentRequest, SDKValidationError> {
|
|
224
|
+
return safeParse(
|
|
225
|
+
jsonString,
|
|
226
|
+
(x) => UpdateConsentRequest$inboundSchema.parse(JSON.parse(x)),
|
|
227
|
+
`Failed to parse 'UpdateConsentRequest' from JSON`,
|
|
228
|
+
);
|
|
229
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
import {
|
|
11
|
+
ConsentRecord,
|
|
12
|
+
ConsentRecord$inboundSchema,
|
|
13
|
+
ConsentRecord$Outbound,
|
|
14
|
+
ConsentRecord$outboundSchema,
|
|
15
|
+
} from "./consentrecord.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Consent updated
|
|
19
|
+
*/
|
|
20
|
+
export type UpdateConsentResponse = {
|
|
21
|
+
/**
|
|
22
|
+
* HTTP Response Status Code
|
|
23
|
+
*/
|
|
24
|
+
statusCode: number;
|
|
25
|
+
/**
|
|
26
|
+
* HTTP Response Status
|
|
27
|
+
*/
|
|
28
|
+
status: string;
|
|
29
|
+
data: ConsentRecord;
|
|
30
|
+
/**
|
|
31
|
+
* Raw response from the integration when raw=true query param is provided
|
|
32
|
+
*/
|
|
33
|
+
raw?: { [k: string]: any } | null | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const UpdateConsentResponse$inboundSchema: z.ZodType<
|
|
38
|
+
UpdateConsentResponse,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({
|
|
42
|
+
status_code: z.number().int(),
|
|
43
|
+
status: z.string(),
|
|
44
|
+
data: ConsentRecord$inboundSchema,
|
|
45
|
+
_raw: z.nullable(z.record(z.any())).optional(),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
"status_code": "statusCode",
|
|
49
|
+
"_raw": "raw",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type UpdateConsentResponse$Outbound = {
|
|
55
|
+
status_code: number;
|
|
56
|
+
status: string;
|
|
57
|
+
data: ConsentRecord$Outbound;
|
|
58
|
+
_raw?: { [k: string]: any } | null | undefined;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const UpdateConsentResponse$outboundSchema: z.ZodType<
|
|
63
|
+
UpdateConsentResponse$Outbound,
|
|
64
|
+
z.ZodTypeDef,
|
|
65
|
+
UpdateConsentResponse
|
|
66
|
+
> = z.object({
|
|
67
|
+
statusCode: z.number().int(),
|
|
68
|
+
status: z.string(),
|
|
69
|
+
data: ConsentRecord$outboundSchema,
|
|
70
|
+
raw: z.nullable(z.record(z.any())).optional(),
|
|
71
|
+
}).transform((v) => {
|
|
72
|
+
return remap$(v, {
|
|
73
|
+
statusCode: "status_code",
|
|
74
|
+
raw: "_raw",
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
81
|
+
*/
|
|
82
|
+
export namespace UpdateConsentResponse$ {
|
|
83
|
+
/** @deprecated use `UpdateConsentResponse$inboundSchema` instead. */
|
|
84
|
+
export const inboundSchema = UpdateConsentResponse$inboundSchema;
|
|
85
|
+
/** @deprecated use `UpdateConsentResponse$outboundSchema` instead. */
|
|
86
|
+
export const outboundSchema = UpdateConsentResponse$outboundSchema;
|
|
87
|
+
/** @deprecated use `UpdateConsentResponse$Outbound` instead. */
|
|
88
|
+
export type Outbound = UpdateConsentResponse$Outbound;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function updateConsentResponseToJSON(
|
|
92
|
+
updateConsentResponse: UpdateConsentResponse,
|
|
93
|
+
): string {
|
|
94
|
+
return JSON.stringify(
|
|
95
|
+
UpdateConsentResponse$outboundSchema.parse(updateConsentResponse),
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function updateConsentResponseFromJSON(
|
|
100
|
+
jsonString: string,
|
|
101
|
+
): SafeParseResult<UpdateConsentResponse, SDKValidationError> {
|
|
102
|
+
return safeParse(
|
|
103
|
+
jsonString,
|
|
104
|
+
(x) => UpdateConsentResponse$inboundSchema.parse(JSON.parse(x)),
|
|
105
|
+
`Failed to parse 'UpdateConsentResponse' from JSON`,
|
|
106
|
+
);
|
|
107
|
+
}
|
|
@@ -20,8 +20,8 @@ export const WebhookEventType = {
|
|
|
20
20
|
CrmLeadUpdated: "crm.lead.updated",
|
|
21
21
|
CrmLeadDeleted: "crm.lead.deleted",
|
|
22
22
|
CrmNoteCreated: "crm.note.created",
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
CrmNoteUpdated: "crm.note.updated",
|
|
24
|
+
CrmNoteDeleted: "crm.note.deleted",
|
|
25
25
|
CrmOpportunityCreated: "crm.opportunity.created",
|
|
26
26
|
CrmOpportunityUpdated: "crm.opportunity.updated",
|
|
27
27
|
CrmOpportunityDeleted: "crm.opportunity.deleted",
|
|
@@ -45,6 +45,10 @@ export type AccountingExpensesAllRequest = {
|
|
|
45
45
|
* Number of results to return. Minimum 1, Maximum 200, Default 20
|
|
46
46
|
*/
|
|
47
47
|
limit?: number | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Apply filters
|
|
50
|
+
*/
|
|
51
|
+
filter?: components.ExpensesFilter | undefined;
|
|
48
52
|
};
|
|
49
53
|
|
|
50
54
|
export type AccountingExpensesAllResponse = {
|
|
@@ -130,6 +134,7 @@ export const AccountingExpensesAllRequest$inboundSchema: z.ZodType<
|
|
|
130
134
|
serviceId: z.string().optional(),
|
|
131
135
|
cursor: z.nullable(z.string()).optional(),
|
|
132
136
|
limit: z.number().int().default(20),
|
|
137
|
+
filter: components.ExpensesFilter$inboundSchema.optional(),
|
|
133
138
|
});
|
|
134
139
|
|
|
135
140
|
/** @internal */
|
|
@@ -140,6 +145,7 @@ export type AccountingExpensesAllRequest$Outbound = {
|
|
|
140
145
|
serviceId?: string | undefined;
|
|
141
146
|
cursor?: string | null | undefined;
|
|
142
147
|
limit: number;
|
|
148
|
+
filter?: components.ExpensesFilter$Outbound | undefined;
|
|
143
149
|
};
|
|
144
150
|
|
|
145
151
|
/** @internal */
|
|
@@ -154,6 +160,7 @@ export const AccountingExpensesAllRequest$outboundSchema: z.ZodType<
|
|
|
154
160
|
serviceId: z.string().optional(),
|
|
155
161
|
cursor: z.nullable(z.string()).optional(),
|
|
156
162
|
limit: z.number().int().default(20),
|
|
163
|
+
filter: components.ExpensesFilter$outboundSchema.optional(),
|
|
157
164
|
});
|
|
158
165
|
|
|
159
166
|
/**
|
|
@@ -268,6 +268,8 @@ export * from "./smsmessagesall.js";
|
|
|
268
268
|
export * from "./smsmessagesdelete.js";
|
|
269
269
|
export * from "./smsmessagesone.js";
|
|
270
270
|
export * from "./smsmessagesupdate.js";
|
|
271
|
+
export * from "./vaultconnectionconsentsall.js";
|
|
272
|
+
export * from "./vaultconnectionconsentupdate.js";
|
|
271
273
|
export * from "./vaultconnectioncustommappingsall.js";
|
|
272
274
|
export * from "./vaultconnectionsall.js";
|
|
273
275
|
export * from "./vaultconnectionsdelete.js";
|