@apideck/unify 0.18.0 → 0.19.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/funcs/accountingAttachmentsList.js +1 -1
- package/funcs/accountingAttachmentsList.js.map +1 -1
- package/funcs/accountingBillPaymentsList.js +1 -1
- package/funcs/accountingBillPaymentsList.js.map +1 -1
- package/funcs/accountingBillsList.js +1 -1
- package/funcs/accountingBillsList.js.map +1 -1
- package/funcs/accountingCreditNotesList.js +1 -1
- package/funcs/accountingCreditNotesList.js.map +1 -1
- package/funcs/accountingCustomersList.js +1 -1
- package/funcs/accountingCustomersList.js.map +1 -1
- package/funcs/accountingDepartmentsList.js +1 -1
- package/funcs/accountingDepartmentsList.js.map +1 -1
- package/funcs/accountingExpensesList.js +1 -1
- package/funcs/accountingExpensesList.js.map +1 -1
- package/funcs/accountingInvoiceItemsList.js +1 -1
- package/funcs/accountingInvoiceItemsList.js.map +1 -1
- package/funcs/accountingInvoicesList.js +1 -1
- package/funcs/accountingInvoicesList.js.map +1 -1
- package/funcs/accountingJournalEntriesList.js +1 -1
- package/funcs/accountingJournalEntriesList.js.map +1 -1
- package/funcs/accountingLedgerAccountsList.js +1 -1
- package/funcs/accountingLedgerAccountsList.js.map +1 -1
- package/funcs/accountingLocationsList.js +1 -1
- package/funcs/accountingLocationsList.js.map +1 -1
- package/funcs/accountingPaymentsList.js +1 -1
- package/funcs/accountingPaymentsList.js.map +1 -1
- package/funcs/accountingPurchaseOrdersList.js +1 -1
- package/funcs/accountingPurchaseOrdersList.js.map +1 -1
- package/funcs/accountingSubsidiariesList.js +1 -1
- package/funcs/accountingSubsidiariesList.js.map +1 -1
- package/funcs/accountingSuppliersList.js +1 -1
- package/funcs/accountingSuppliersList.js.map +1 -1
- package/funcs/accountingTaxRatesList.js +1 -1
- package/funcs/accountingTaxRatesList.js.map +1 -1
- package/funcs/accountingTrackingCategoriesList.js +1 -1
- package/funcs/accountingTrackingCategoriesList.js.map +1 -1
- package/funcs/atsApplicantsList.js +1 -1
- package/funcs/atsApplicantsList.js.map +1 -1
- package/funcs/atsApplicationsList.js +1 -1
- package/funcs/atsApplicationsList.js.map +1 -1
- package/funcs/atsJobsList.js +1 -1
- package/funcs/atsJobsList.js.map +1 -1
- package/funcs/connectorApisList.js +1 -1
- package/funcs/connectorApisList.js.map +1 -1
- package/funcs/connectorConnectorsList.js +1 -1
- package/funcs/connectorConnectorsList.js.map +1 -1
- package/funcs/crmActivitiesList.js +1 -1
- package/funcs/crmActivitiesList.js.map +1 -1
- package/funcs/crmCompaniesList.js +1 -1
- package/funcs/crmCompaniesList.js.map +1 -1
- package/funcs/crmContactsList.js +1 -1
- package/funcs/crmContactsList.js.map +1 -1
- package/funcs/crmLeadsList.js +1 -1
- package/funcs/crmLeadsList.js.map +1 -1
- package/funcs/crmNotesList.js +1 -1
- package/funcs/crmNotesList.js.map +1 -1
- package/funcs/crmOpportunitiesList.js +1 -1
- package/funcs/crmOpportunitiesList.js.map +1 -1
- package/funcs/crmPipelinesList.js +1 -1
- package/funcs/crmPipelinesList.js.map +1 -1
- package/funcs/crmUsersList.js +1 -1
- package/funcs/crmUsersList.js.map +1 -1
- package/funcs/ecommerceCustomersList.js +1 -1
- package/funcs/ecommerceCustomersList.js.map +1 -1
- package/funcs/ecommerceOrdersList.js +1 -1
- package/funcs/ecommerceOrdersList.js.map +1 -1
- package/funcs/ecommerceProductsList.js +1 -1
- package/funcs/ecommerceProductsList.js.map +1 -1
- package/funcs/fileStorageDriveGroupsList.js +1 -1
- package/funcs/fileStorageDriveGroupsList.js.map +1 -1
- package/funcs/fileStorageDrivesList.js +1 -1
- package/funcs/fileStorageDrivesList.js.map +1 -1
- package/funcs/fileStorageFilesList.js +1 -1
- package/funcs/fileStorageFilesList.js.map +1 -1
- package/funcs/fileStorageSharedLinksList.js +1 -1
- package/funcs/fileStorageSharedLinksList.js.map +1 -1
- package/funcs/hrisCompaniesList.js +1 -1
- package/funcs/hrisCompaniesList.js.map +1 -1
- package/funcs/hrisDepartmentsList.js +1 -1
- package/funcs/hrisDepartmentsList.js.map +1 -1
- package/funcs/hrisEmployeesList.js +1 -1
- package/funcs/hrisEmployeesList.js.map +1 -1
- package/funcs/hrisTimeOffRequestsList.js +1 -1
- package/funcs/hrisTimeOffRequestsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTagsList.js +1 -1
- package/funcs/issueTrackingCollectionTagsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsGet.js +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsGet.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsList.js +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketsList.js +1 -1
- package/funcs/issueTrackingCollectionTicketsList.js.map +1 -1
- package/funcs/issueTrackingCollectionUsersList.js +1 -1
- package/funcs/issueTrackingCollectionUsersList.js.map +1 -1
- package/funcs/issueTrackingCollectionsList.js +1 -1
- package/funcs/issueTrackingCollectionsList.js.map +1 -1
- package/funcs/smsMessagesList.js +1 -1
- package/funcs/smsMessagesList.js.map +1 -1
- package/funcs/vaultConsumersList.js +1 -1
- package/funcs/vaultConsumersList.js.map +1 -1
- package/funcs/vaultLogsList.js +1 -1
- package/funcs/vaultLogsList.js.map +1 -1
- package/funcs/webhookEventLogsList.js +1 -1
- package/funcs/webhookEventLogsList.js.map +1 -1
- package/funcs/webhookWebhooksList.js +1 -1
- package/funcs/webhookWebhooksList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/primitives.d.ts +3 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +7 -0
- package/lib/primitives.js.map +1 -1
- package/models/components/address.d.ts +8 -8
- package/models/components/address.d.ts.map +1 -1
- package/models/components/address.js +14 -13
- package/models/components/address.js.map +1 -1
- package/models/components/contact.d.ts +9 -9
- package/models/components/contact.d.ts.map +1 -1
- package/models/components/contact.js +15 -16
- package/models/components/contact.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/accountingAttachmentsList.ts +1 -1
- package/src/funcs/accountingBillPaymentsList.ts +1 -1
- package/src/funcs/accountingBillsList.ts +1 -1
- package/src/funcs/accountingCreditNotesList.ts +1 -1
- package/src/funcs/accountingCustomersList.ts +1 -1
- package/src/funcs/accountingDepartmentsList.ts +1 -1
- package/src/funcs/accountingExpensesList.ts +1 -1
- package/src/funcs/accountingInvoiceItemsList.ts +1 -1
- package/src/funcs/accountingInvoicesList.ts +1 -1
- package/src/funcs/accountingJournalEntriesList.ts +1 -1
- package/src/funcs/accountingLedgerAccountsList.ts +1 -1
- package/src/funcs/accountingLocationsList.ts +1 -1
- package/src/funcs/accountingPaymentsList.ts +1 -1
- package/src/funcs/accountingPurchaseOrdersList.ts +1 -1
- package/src/funcs/accountingSubsidiariesList.ts +1 -1
- package/src/funcs/accountingSuppliersList.ts +1 -1
- package/src/funcs/accountingTaxRatesList.ts +1 -1
- package/src/funcs/accountingTrackingCategoriesList.ts +1 -1
- package/src/funcs/atsApplicantsList.ts +1 -1
- package/src/funcs/atsApplicationsList.ts +1 -1
- package/src/funcs/atsJobsList.ts +1 -1
- package/src/funcs/connectorApisList.ts +1 -1
- package/src/funcs/connectorConnectorsList.ts +1 -1
- package/src/funcs/crmActivitiesList.ts +1 -1
- package/src/funcs/crmCompaniesList.ts +1 -1
- package/src/funcs/crmContactsList.ts +1 -1
- package/src/funcs/crmLeadsList.ts +1 -1
- package/src/funcs/crmNotesList.ts +1 -1
- package/src/funcs/crmOpportunitiesList.ts +1 -1
- package/src/funcs/crmPipelinesList.ts +1 -1
- package/src/funcs/crmUsersList.ts +1 -1
- package/src/funcs/ecommerceCustomersList.ts +1 -1
- package/src/funcs/ecommerceOrdersList.ts +1 -1
- package/src/funcs/ecommerceProductsList.ts +1 -1
- package/src/funcs/fileStorageDriveGroupsList.ts +1 -1
- package/src/funcs/fileStorageDrivesList.ts +1 -1
- package/src/funcs/fileStorageFilesList.ts +1 -1
- package/src/funcs/fileStorageSharedLinksList.ts +1 -1
- package/src/funcs/hrisCompaniesList.ts +1 -1
- package/src/funcs/hrisDepartmentsList.ts +1 -1
- package/src/funcs/hrisEmployeesList.ts +1 -1
- package/src/funcs/hrisTimeOffRequestsList.ts +1 -1
- package/src/funcs/issueTrackingCollectionTagsList.ts +1 -1
- package/src/funcs/issueTrackingCollectionTicketCommentsGet.ts +1 -1
- package/src/funcs/issueTrackingCollectionTicketCommentsList.ts +1 -1
- package/src/funcs/issueTrackingCollectionTicketsList.ts +1 -1
- package/src/funcs/issueTrackingCollectionUsersList.ts +1 -1
- package/src/funcs/issueTrackingCollectionsList.ts +1 -1
- package/src/funcs/smsMessagesList.ts +1 -1
- package/src/funcs/vaultConsumersList.ts +1 -1
- package/src/funcs/vaultLogsList.ts +1 -1
- package/src/funcs/webhookEventLogsList.ts +1 -1
- package/src/funcs/webhookWebhooksList.ts +1 -1
- package/src/lib/config.ts +4 -4
- package/src/lib/primitives.ts +14 -0
- package/src/models/components/address.ts +14 -15
- package/src/models/components/contact.ts +18 -17
package/src/lib/config.ts
CHANGED
|
@@ -15,7 +15,7 @@ export const ServerList = [
|
|
|
15
15
|
] as const;
|
|
16
16
|
|
|
17
17
|
export type SDKOptions = {
|
|
18
|
-
apiKey?: string | (() => Promise<string>);
|
|
18
|
+
apiKey?: string | (() => Promise<string>) | undefined;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Allows setting the consumerId parameter for all supported operations
|
|
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
64
64
|
export const SDK_METADATA = {
|
|
65
65
|
language: "typescript",
|
|
66
66
|
openapiDocVersion: "10.11.5",
|
|
67
|
-
sdkVersion: "0.
|
|
68
|
-
genVersion: "2.
|
|
69
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
67
|
+
sdkVersion: "0.19.0",
|
|
68
|
+
genVersion: "2.539.1",
|
|
69
|
+
userAgent: "speakeasy-sdk/typescript 0.19.0 2.539.1 10.11.5 @apideck/unify",
|
|
70
70
|
} as const;
|
package/src/lib/primitives.ts
CHANGED
|
@@ -134,3 +134,17 @@ export function compactMap<T>(
|
|
|
134
134
|
|
|
135
135
|
return out;
|
|
136
136
|
}
|
|
137
|
+
|
|
138
|
+
export function allRequired<V extends Record<string, unknown>>(
|
|
139
|
+
v: V,
|
|
140
|
+
):
|
|
141
|
+
| {
|
|
142
|
+
[K in keyof V]: NonNullable<V[K]>;
|
|
143
|
+
}
|
|
144
|
+
| undefined {
|
|
145
|
+
if (Object.values(v).every((x) => x == null)) {
|
|
146
|
+
return void 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
return v as ReturnType<typeof allRequired<V>>;
|
|
150
|
+
}
|
|
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* The type of address.
|
|
14
14
|
*/
|
|
15
|
-
export const
|
|
15
|
+
export const AddressType = {
|
|
16
16
|
Primary: "primary",
|
|
17
17
|
Secondary: "secondary",
|
|
18
18
|
Home: "home",
|
|
@@ -24,7 +24,7 @@ export const Type = {
|
|
|
24
24
|
/**
|
|
25
25
|
* The type of address.
|
|
26
26
|
*/
|
|
27
|
-
export type
|
|
27
|
+
export type AddressType = ClosedEnum<typeof AddressType>;
|
|
28
28
|
|
|
29
29
|
export type Address = {
|
|
30
30
|
/**
|
|
@@ -34,7 +34,7 @@ export type Address = {
|
|
|
34
34
|
/**
|
|
35
35
|
* The type of address.
|
|
36
36
|
*/
|
|
37
|
-
type?:
|
|
37
|
+
type?: AddressType | null | undefined;
|
|
38
38
|
/**
|
|
39
39
|
* The address string. Some APIs don't provide structured address data.
|
|
40
40
|
*/
|
|
@@ -126,30 +126,29 @@ export type Address = {
|
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
/** @internal */
|
|
129
|
-
export const
|
|
130
|
-
|
|
131
|
-
);
|
|
129
|
+
export const AddressType$inboundSchema: z.ZodNativeEnum<typeof AddressType> = z
|
|
130
|
+
.nativeEnum(AddressType);
|
|
132
131
|
|
|
133
132
|
/** @internal */
|
|
134
|
-
export const
|
|
135
|
-
|
|
133
|
+
export const AddressType$outboundSchema: z.ZodNativeEnum<typeof AddressType> =
|
|
134
|
+
AddressType$inboundSchema;
|
|
136
135
|
|
|
137
136
|
/**
|
|
138
137
|
* @internal
|
|
139
138
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
140
139
|
*/
|
|
141
|
-
export namespace
|
|
142
|
-
/** @deprecated use `
|
|
143
|
-
export const inboundSchema =
|
|
144
|
-
/** @deprecated use `
|
|
145
|
-
export const outboundSchema =
|
|
140
|
+
export namespace AddressType$ {
|
|
141
|
+
/** @deprecated use `AddressType$inboundSchema` instead. */
|
|
142
|
+
export const inboundSchema = AddressType$inboundSchema;
|
|
143
|
+
/** @deprecated use `AddressType$outboundSchema` instead. */
|
|
144
|
+
export const outboundSchema = AddressType$outboundSchema;
|
|
146
145
|
}
|
|
147
146
|
|
|
148
147
|
/** @internal */
|
|
149
148
|
export const Address$inboundSchema: z.ZodType<Address, z.ZodTypeDef, unknown> =
|
|
150
149
|
z.object({
|
|
151
150
|
id: z.nullable(z.string()).optional(),
|
|
152
|
-
type: z.nullable(
|
|
151
|
+
type: z.nullable(AddressType$inboundSchema).optional(),
|
|
153
152
|
string: z.nullable(z.string()).optional(),
|
|
154
153
|
name: z.nullable(z.string()).optional(),
|
|
155
154
|
line1: z.nullable(z.string()).optional(),
|
|
@@ -217,7 +216,7 @@ export const Address$outboundSchema: z.ZodType<
|
|
|
217
216
|
Address
|
|
218
217
|
> = z.object({
|
|
219
218
|
id: z.nullable(z.string()).optional(),
|
|
220
|
-
type: z.nullable(
|
|
219
|
+
type: z.nullable(AddressType$outboundSchema).optional(),
|
|
221
220
|
string: z.nullable(z.string()).optional(),
|
|
222
221
|
name: z.nullable(z.string()).optional(),
|
|
223
222
|
line1: z.nullable(z.string()).optional(),
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
/**
|
|
61
61
|
* The type of the contact.
|
|
62
62
|
*/
|
|
63
|
-
export const
|
|
63
|
+
export const Type = {
|
|
64
64
|
Customer: "customer",
|
|
65
65
|
Supplier: "supplier",
|
|
66
66
|
Employee: "employee",
|
|
@@ -69,7 +69,7 @@ export const ContactType = {
|
|
|
69
69
|
/**
|
|
70
70
|
* The type of the contact.
|
|
71
71
|
*/
|
|
72
|
-
export type
|
|
72
|
+
export type Type = ClosedEnum<typeof Type>;
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* The gender of the contact.
|
|
@@ -100,7 +100,7 @@ export type Contact = {
|
|
|
100
100
|
/**
|
|
101
101
|
* The type of the contact.
|
|
102
102
|
*/
|
|
103
|
-
type?:
|
|
103
|
+
type?: Type | null | undefined;
|
|
104
104
|
/**
|
|
105
105
|
* The company the contact is associated with.
|
|
106
106
|
*/
|
|
@@ -239,7 +239,7 @@ export type ContactInput = {
|
|
|
239
239
|
/**
|
|
240
240
|
* The type of the contact.
|
|
241
241
|
*/
|
|
242
|
-
type?:
|
|
242
|
+
type?: Type | null | undefined;
|
|
243
243
|
/**
|
|
244
244
|
* The company the contact is associated with.
|
|
245
245
|
*/
|
|
@@ -343,22 +343,23 @@ export type ContactInput = {
|
|
|
343
343
|
};
|
|
344
344
|
|
|
345
345
|
/** @internal */
|
|
346
|
-
export const
|
|
347
|
-
|
|
346
|
+
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
347
|
+
Type,
|
|
348
|
+
);
|
|
348
349
|
|
|
349
350
|
/** @internal */
|
|
350
|
-
export const
|
|
351
|
-
|
|
351
|
+
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
352
|
+
Type$inboundSchema;
|
|
352
353
|
|
|
353
354
|
/**
|
|
354
355
|
* @internal
|
|
355
356
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
356
357
|
*/
|
|
357
|
-
export namespace
|
|
358
|
-
/** @deprecated use `
|
|
359
|
-
export const inboundSchema =
|
|
360
|
-
/** @deprecated use `
|
|
361
|
-
export const outboundSchema =
|
|
358
|
+
export namespace Type$ {
|
|
359
|
+
/** @deprecated use `Type$inboundSchema` instead. */
|
|
360
|
+
export const inboundSchema = Type$inboundSchema;
|
|
361
|
+
/** @deprecated use `Type$outboundSchema` instead. */
|
|
362
|
+
export const outboundSchema = Type$outboundSchema;
|
|
362
363
|
}
|
|
363
364
|
|
|
364
365
|
/** @internal */
|
|
@@ -388,7 +389,7 @@ export const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown> =
|
|
|
388
389
|
id: z.string().optional(),
|
|
389
390
|
name: z.nullable(z.string()),
|
|
390
391
|
owner_id: z.nullable(z.string()).optional(),
|
|
391
|
-
type: z.nullable(
|
|
392
|
+
type: z.nullable(Type$inboundSchema).optional(),
|
|
392
393
|
company_id: z.nullable(z.string()).optional(),
|
|
393
394
|
company_name: z.nullable(z.string()).optional(),
|
|
394
395
|
lead_id: z.nullable(z.string()).optional(),
|
|
@@ -517,7 +518,7 @@ export const Contact$outboundSchema: z.ZodType<
|
|
|
517
518
|
id: z.string().optional(),
|
|
518
519
|
name: z.nullable(z.string()),
|
|
519
520
|
ownerId: z.nullable(z.string()).optional(),
|
|
520
|
-
type: z.nullable(
|
|
521
|
+
type: z.nullable(Type$outboundSchema).optional(),
|
|
521
522
|
companyId: z.nullable(z.string()).optional(),
|
|
522
523
|
companyName: z.nullable(z.string()).optional(),
|
|
523
524
|
leadId: z.nullable(z.string()).optional(),
|
|
@@ -618,7 +619,7 @@ export const ContactInput$inboundSchema: z.ZodType<
|
|
|
618
619
|
> = z.object({
|
|
619
620
|
name: z.nullable(z.string()),
|
|
620
621
|
owner_id: z.nullable(z.string()).optional(),
|
|
621
|
-
type: z.nullable(
|
|
622
|
+
type: z.nullable(Type$inboundSchema).optional(),
|
|
622
623
|
company_id: z.nullable(z.string()).optional(),
|
|
623
624
|
company_name: z.nullable(z.string()).optional(),
|
|
624
625
|
lead_id: z.nullable(z.string()).optional(),
|
|
@@ -717,7 +718,7 @@ export const ContactInput$outboundSchema: z.ZodType<
|
|
|
717
718
|
> = z.object({
|
|
718
719
|
name: z.nullable(z.string()),
|
|
719
720
|
ownerId: z.nullable(z.string()).optional(),
|
|
720
|
-
type: z.nullable(
|
|
721
|
+
type: z.nullable(Type$outboundSchema).optional(),
|
|
721
722
|
companyId: z.nullable(z.string()).optional(),
|
|
722
723
|
companyName: z.nullable(z.string()).optional(),
|
|
723
724
|
leadId: z.nullable(z.string()).optional(),
|