@clientcasa/sdk 0.7.4 → 0.7.5
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/esm/funcs/calendar-events-update.js +2 -1
- package/esm/funcs/calendar-events-update.js.map +1 -1
- package/esm/funcs/catalog-items-update.js +2 -1
- package/esm/funcs/catalog-items-update.js.map +1 -1
- package/esm/funcs/clients-update.js +2 -1
- package/esm/funcs/clients-update.js.map +1 -1
- package/esm/funcs/contacts-update.js +2 -1
- package/esm/funcs/contacts-update.js.map +1 -1
- package/esm/funcs/contracts-update.js +2 -1
- package/esm/funcs/contracts-update.js.map +1 -1
- package/esm/funcs/event-day-vendors-update.js +2 -1
- package/esm/funcs/event-day-vendors-update.js.map +1 -1
- package/esm/funcs/event-days-update.js +2 -1
- package/esm/funcs/event-days-update.js.map +1 -1
- package/esm/funcs/invoices-update.js +2 -1
- package/esm/funcs/invoices-update.js.map +1 -1
- package/esm/funcs/milestones-update.js +2 -1
- package/esm/funcs/milestones-update.js.map +1 -1
- package/esm/funcs/payments-update.js +2 -1
- package/esm/funcs/payments-update.js.map +1 -1
- package/esm/funcs/projects-update.js +2 -1
- package/esm/funcs/projects-update.js.map +1 -1
- package/esm/funcs/time-entries-update.js +2 -1
- package/esm/funcs/time-entries-update.js.map +1 -1
- package/esm/funcs/timeline-items-update.js +2 -1
- package/esm/funcs/timeline-items-update.js.map +1 -1
- package/esm/funcs/transactions-create.d.ts +1 -1
- package/esm/funcs/transactions-create.js +1 -1
- package/esm/funcs/transactions-update.d.ts +1 -1
- package/esm/funcs/transactions-update.js +3 -2
- package/esm/funcs/transactions-update.js.map +1 -1
- package/esm/funcs/vendors-update.js +2 -1
- package/esm/funcs/vendors-update.js.map +1 -1
- package/esm/funcs/venues-update.js +2 -1
- package/esm/funcs/venues-update.js.map +1 -1
- package/esm/funcs/webhooks-update.js +2 -1
- package/esm/funcs/webhooks-update.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/api-error.d.ts +13 -0
- package/esm/models/api-error.d.ts.map +1 -1
- package/esm/models/api-error.js +13 -0
- package/esm/models/api-error.js.map +1 -1
- package/esm/models/calendar-event-update.d.ts +5 -5
- package/esm/models/calendar-event-update.d.ts.map +1 -1
- package/esm/models/calendar-event-update.js +1 -1
- package/esm/models/calendar-event-update.js.map +1 -1
- package/esm/models/operations/create-calendar-event.d.ts +1 -1
- package/esm/models/operations/create-catalog-item.d.ts +1 -1
- package/esm/models/operations/create-client.d.ts +1 -1
- package/esm/models/operations/create-contact.d.ts +1 -1
- package/esm/models/operations/create-contract.d.ts +1 -1
- package/esm/models/operations/create-event-day-vendor.d.ts +1 -1
- package/esm/models/operations/create-event-day.d.ts +1 -1
- package/esm/models/operations/create-inquiry.d.ts +1 -1
- package/esm/models/operations/create-invoice.d.ts +1 -1
- package/esm/models/operations/create-milestone.d.ts +1 -1
- package/esm/models/operations/create-payment.d.ts +1 -1
- package/esm/models/operations/create-project.d.ts +1 -1
- package/esm/models/operations/create-time-entry.d.ts +1 -1
- package/esm/models/operations/create-timeline-item.d.ts +1 -1
- package/esm/models/operations/create-transaction.d.ts +1 -1
- package/esm/models/operations/create-vendor.d.ts +1 -1
- package/esm/models/operations/create-venue.d.ts +1 -1
- package/esm/models/operations/create-webhook.d.ts +1 -1
- package/esm/models/operations/list-calendar-events.d.ts +2 -2
- package/esm/models/operations/list-client-documents.d.ts +9 -0
- package/esm/models/operations/list-client-documents.d.ts.map +1 -1
- package/esm/models/operations/list-client-documents.js +3 -0
- package/esm/models/operations/list-client-documents.js.map +1 -1
- package/esm/models/operations/list-event-day-vendors.d.ts +6 -0
- package/esm/models/operations/list-event-day-vendors.d.ts.map +1 -1
- package/esm/models/operations/list-event-day-vendors.js.map +1 -1
- package/esm/models/operations/list-time-entries.d.ts +19 -2
- package/esm/models/operations/list-time-entries.d.ts.map +1 -1
- package/esm/models/operations/list-time-entries.js +10 -1
- package/esm/models/operations/list-time-entries.js.map +1 -1
- package/esm/models/operations/list-timeline-items.d.ts +3 -0
- package/esm/models/operations/list-timeline-items.d.ts.map +1 -1
- package/esm/models/operations/list-timeline-items.js.map +1 -1
- package/esm/models/operations/list-webhooks.d.ts +18 -2
- package/esm/models/operations/list-webhooks.d.ts.map +1 -1
- package/esm/models/operations/list-webhooks.js +10 -1
- package/esm/models/operations/list-webhooks.js.map +1 -1
- package/esm/models/operations/update-calendar-event.d.ts +5 -0
- package/esm/models/operations/update-calendar-event.d.ts.map +1 -1
- package/esm/models/operations/update-calendar-event.js +8 -2
- package/esm/models/operations/update-calendar-event.js.map +1 -1
- package/esm/models/operations/update-catalog-item.d.ts +5 -0
- package/esm/models/operations/update-catalog-item.d.ts.map +1 -1
- package/esm/models/operations/update-catalog-item.js +8 -2
- package/esm/models/operations/update-catalog-item.js.map +1 -1
- package/esm/models/operations/update-client.d.ts +5 -0
- package/esm/models/operations/update-client.d.ts.map +1 -1
- package/esm/models/operations/update-client.js +8 -2
- package/esm/models/operations/update-client.js.map +1 -1
- package/esm/models/operations/update-contact.d.ts +5 -0
- package/esm/models/operations/update-contact.d.ts.map +1 -1
- package/esm/models/operations/update-contact.js +8 -2
- package/esm/models/operations/update-contact.js.map +1 -1
- package/esm/models/operations/update-contract.d.ts +5 -0
- package/esm/models/operations/update-contract.d.ts.map +1 -1
- package/esm/models/operations/update-contract.js +8 -2
- package/esm/models/operations/update-contract.js.map +1 -1
- package/esm/models/operations/update-event-day-vendor.d.ts +5 -0
- package/esm/models/operations/update-event-day-vendor.d.ts.map +1 -1
- package/esm/models/operations/update-event-day-vendor.js +8 -2
- package/esm/models/operations/update-event-day-vendor.js.map +1 -1
- package/esm/models/operations/update-event-day.d.ts +5 -0
- package/esm/models/operations/update-event-day.d.ts.map +1 -1
- package/esm/models/operations/update-event-day.js +8 -2
- package/esm/models/operations/update-event-day.js.map +1 -1
- package/esm/models/operations/update-invoice.d.ts +5 -0
- package/esm/models/operations/update-invoice.d.ts.map +1 -1
- package/esm/models/operations/update-invoice.js +8 -2
- package/esm/models/operations/update-invoice.js.map +1 -1
- package/esm/models/operations/update-milestone.d.ts +5 -0
- package/esm/models/operations/update-milestone.d.ts.map +1 -1
- package/esm/models/operations/update-milestone.js +8 -2
- package/esm/models/operations/update-milestone.js.map +1 -1
- package/esm/models/operations/update-payment.d.ts +5 -0
- package/esm/models/operations/update-payment.d.ts.map +1 -1
- package/esm/models/operations/update-payment.js +8 -2
- package/esm/models/operations/update-payment.js.map +1 -1
- package/esm/models/operations/update-project.d.ts +5 -0
- package/esm/models/operations/update-project.d.ts.map +1 -1
- package/esm/models/operations/update-project.js +8 -2
- package/esm/models/operations/update-project.js.map +1 -1
- package/esm/models/operations/update-time-entry.d.ts +5 -0
- package/esm/models/operations/update-time-entry.d.ts.map +1 -1
- package/esm/models/operations/update-time-entry.js +8 -2
- package/esm/models/operations/update-time-entry.js.map +1 -1
- package/esm/models/operations/update-timeline-item.d.ts +5 -0
- package/esm/models/operations/update-timeline-item.d.ts.map +1 -1
- package/esm/models/operations/update-timeline-item.js +8 -2
- package/esm/models/operations/update-timeline-item.js.map +1 -1
- package/esm/models/operations/update-transaction.d.ts +5 -0
- package/esm/models/operations/update-transaction.d.ts.map +1 -1
- package/esm/models/operations/update-transaction.js +8 -2
- package/esm/models/operations/update-transaction.js.map +1 -1
- package/esm/models/operations/update-vendor.d.ts +5 -0
- package/esm/models/operations/update-vendor.d.ts.map +1 -1
- package/esm/models/operations/update-vendor.js +8 -2
- package/esm/models/operations/update-vendor.js.map +1 -1
- package/esm/models/operations/update-venue.d.ts +5 -0
- package/esm/models/operations/update-venue.d.ts.map +1 -1
- package/esm/models/operations/update-venue.js +8 -2
- package/esm/models/operations/update-venue.js.map +1 -1
- package/esm/models/operations/update-webhook.d.ts +5 -0
- package/esm/models/operations/update-webhook.d.ts.map +1 -1
- package/esm/models/operations/update-webhook.js +8 -2
- package/esm/models/operations/update-webhook.js.map +1 -1
- package/esm/sdk/transactions.d.ts +2 -2
- package/esm/sdk/transactions.js +2 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/calendar-events-update.ts +6 -1
- package/src/funcs/catalog-items-update.ts +6 -1
- package/src/funcs/clients-update.ts +6 -1
- package/src/funcs/contacts-update.ts +6 -1
- package/src/funcs/contracts-update.ts +6 -1
- package/src/funcs/event-day-vendors-update.ts +6 -1
- package/src/funcs/event-days-update.ts +6 -1
- package/src/funcs/invoices-update.ts +6 -1
- package/src/funcs/milestones-update.ts +6 -1
- package/src/funcs/payments-update.ts +6 -1
- package/src/funcs/projects-update.ts +6 -1
- package/src/funcs/time-entries-update.ts +6 -1
- package/src/funcs/timeline-items-update.ts +6 -1
- package/src/funcs/transactions-create.ts +1 -1
- package/src/funcs/transactions-update.ts +7 -2
- package/src/funcs/vendors-update.ts +6 -1
- package/src/funcs/venues-update.ts +6 -1
- package/src/funcs/webhooks-update.ts +6 -1
- package/src/lib/config.ts +2 -2
- package/src/models/api-error.ts +13 -0
- package/src/models/calendar-event-update.ts +8 -8
- package/src/models/operations/create-calendar-event.ts +1 -1
- package/src/models/operations/create-catalog-item.ts +1 -1
- package/src/models/operations/create-client.ts +1 -1
- package/src/models/operations/create-contact.ts +1 -1
- package/src/models/operations/create-contract.ts +1 -1
- package/src/models/operations/create-event-day-vendor.ts +1 -1
- package/src/models/operations/create-event-day.ts +1 -1
- package/src/models/operations/create-inquiry.ts +1 -1
- package/src/models/operations/create-invoice.ts +1 -1
- package/src/models/operations/create-milestone.ts +1 -1
- package/src/models/operations/create-payment.ts +1 -1
- package/src/models/operations/create-project.ts +1 -1
- package/src/models/operations/create-time-entry.ts +1 -1
- package/src/models/operations/create-timeline-item.ts +1 -1
- package/src/models/operations/create-transaction.ts +1 -1
- package/src/models/operations/create-vendor.ts +1 -1
- package/src/models/operations/create-venue.ts +1 -1
- package/src/models/operations/create-webhook.ts +1 -1
- package/src/models/operations/list-calendar-events.ts +2 -2
- package/src/models/operations/list-client-documents.ts +9 -0
- package/src/models/operations/list-event-day-vendors.ts +6 -0
- package/src/models/operations/list-time-entries.ts +24 -3
- package/src/models/operations/list-timeline-items.ts +3 -0
- package/src/models/operations/list-webhooks.ts +23 -3
- package/src/models/operations/update-calendar-event.ts +18 -4
- package/src/models/operations/update-catalog-item.ts +18 -4
- package/src/models/operations/update-client.ts +18 -4
- package/src/models/operations/update-contact.ts +18 -4
- package/src/models/operations/update-contract.ts +18 -4
- package/src/models/operations/update-event-day-vendor.ts +18 -4
- package/src/models/operations/update-event-day.ts +18 -4
- package/src/models/operations/update-invoice.ts +18 -4
- package/src/models/operations/update-milestone.ts +18 -4
- package/src/models/operations/update-payment.ts +18 -4
- package/src/models/operations/update-project.ts +18 -4
- package/src/models/operations/update-time-entry.ts +18 -4
- package/src/models/operations/update-timeline-item.ts +18 -4
- package/src/models/operations/update-transaction.ts +18 -4
- package/src/models/operations/update-vendor.ts +18 -4
- package/src/models/operations/update-venue.ts +18 -4
- package/src/models/operations/update-webhook.ts +18 -4
- package/src/sdk/transactions.ts +2 -2
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v4-mini";
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
5
6
|
import * as models from "../index.js";
|
|
6
7
|
/** @internal */
|
|
7
8
|
export const UpdateTransactionSecurity$outboundSchema = z.object({
|
|
@@ -12,10 +13,15 @@ export function updateTransactionSecurityToJSON(updateTransactionSecurity) {
|
|
|
12
13
|
return JSON.stringify(UpdateTransactionSecurity$outboundSchema.parse(updateTransactionSecurity));
|
|
13
14
|
}
|
|
14
15
|
/** @internal */
|
|
15
|
-
export const UpdateTransactionRequest$outboundSchema = z.object({
|
|
16
|
+
export const UpdateTransactionRequest$outboundSchema = z.pipe(z.object({
|
|
16
17
|
id: z.string(),
|
|
18
|
+
idempotencyKey: z.optional(z.string()),
|
|
17
19
|
body: models.TransactionUpdate$outboundSchema,
|
|
18
|
-
})
|
|
20
|
+
}), z.transform((v) => {
|
|
21
|
+
return remap$(v, {
|
|
22
|
+
idempotencyKey: "Idempotency-Key",
|
|
23
|
+
});
|
|
24
|
+
}));
|
|
19
25
|
export function updateTransactionRequestToJSON(updateTransactionRequest) {
|
|
20
26
|
return JSON.stringify(UpdateTransactionRequest$outboundSchema.parse(updateTransactionRequest));
|
|
21
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-transaction.js","sourceRoot":"","sources":["../../../src/models/operations/update-transaction.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"update-transaction.js","sourceRoot":"","sources":["../../../src/models/operations/update-transaction.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAyBtC,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAGjD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,UAAU,+BAA+B,CAC7C,yBAAoD,EAC5C;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AAAA,CACH;AASD,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAGhD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC,gCAAgC;CAC9C,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,8BAA8B,CAC5C,wBAAkD,EAC1C;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,uCAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AAAA,CACH"}
|
|
@@ -9,6 +9,10 @@ export type UpdateVendorRequest = {
|
|
|
9
9
|
* UUID v4
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* Optional unique key that makes this request safely retryable. Replaying the same key returns the original response instead of creating a duplicate; reusing a key with a different request body returns 409.
|
|
14
|
+
*/
|
|
15
|
+
idempotencyKey?: string | undefined;
|
|
12
16
|
body: models.VendorUpdate;
|
|
13
17
|
};
|
|
14
18
|
/** @internal */
|
|
@@ -22,6 +26,7 @@ export declare function updateVendorSecurityToJSON(updateVendorSecurity: UpdateV
|
|
|
22
26
|
/** @internal */
|
|
23
27
|
export type UpdateVendorRequest$Outbound = {
|
|
24
28
|
id: string;
|
|
29
|
+
"Idempotency-Key"?: string | undefined;
|
|
25
30
|
body: models.VendorUpdate$Outbound;
|
|
26
31
|
};
|
|
27
32
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-vendor.d.ts","sourceRoot":"","sources":["../../../src/models/operations/update-vendor.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"update-vendor.d.ts","sourceRoot":"","sources":["../../../src/models/operations/update-vendor.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC,YAAY,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,WAAW,CAC7D,6BAA6B,EAC7B,oBAAoB,CAIpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AAED,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC,qBAAqB,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,WAAW,CAC5D,4BAA4B,EAC5B,mBAAmB,CAYpB,CAAC;AAEF,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v4-mini";
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
5
6
|
import * as models from "../index.js";
|
|
6
7
|
/** @internal */
|
|
7
8
|
export const UpdateVendorSecurity$outboundSchema = z.object({
|
|
@@ -12,10 +13,15 @@ export function updateVendorSecurityToJSON(updateVendorSecurity) {
|
|
|
12
13
|
return JSON.stringify(UpdateVendorSecurity$outboundSchema.parse(updateVendorSecurity));
|
|
13
14
|
}
|
|
14
15
|
/** @internal */
|
|
15
|
-
export const UpdateVendorRequest$outboundSchema = z.object({
|
|
16
|
+
export const UpdateVendorRequest$outboundSchema = z.pipe(z.object({
|
|
16
17
|
id: z.string(),
|
|
18
|
+
idempotencyKey: z.optional(z.string()),
|
|
17
19
|
body: models.VendorUpdate$outboundSchema,
|
|
18
|
-
})
|
|
20
|
+
}), z.transform((v) => {
|
|
21
|
+
return remap$(v, {
|
|
22
|
+
idempotencyKey: "Idempotency-Key",
|
|
23
|
+
});
|
|
24
|
+
}));
|
|
19
25
|
export function updateVendorRequestToJSON(updateVendorRequest) {
|
|
20
26
|
return JSON.stringify(UpdateVendorRequest$outboundSchema.parse(updateVendorRequest));
|
|
21
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-vendor.js","sourceRoot":"","sources":["../../../src/models/operations/update-vendor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"update-vendor.js","sourceRoot":"","sources":["../../../src/models/operations/update-vendor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAyBtC,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAG5C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,oBAA0C,EAClC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,mCAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AAAA,CACH;AASD,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAG3C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC,2BAA2B;CACzC,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,yBAAyB,CACvC,mBAAwC,EAChC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,kCAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AAAA,CACH"}
|
|
@@ -9,6 +9,10 @@ export type UpdateVenueRequest = {
|
|
|
9
9
|
* UUID v4
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* Optional unique key that makes this request safely retryable. Replaying the same key returns the original response instead of creating a duplicate; reusing a key with a different request body returns 409.
|
|
14
|
+
*/
|
|
15
|
+
idempotencyKey?: string | undefined;
|
|
12
16
|
body: models.VenueUpdate;
|
|
13
17
|
};
|
|
14
18
|
/** @internal */
|
|
@@ -22,6 +26,7 @@ export declare function updateVenueSecurityToJSON(updateVenueSecurity: UpdateVen
|
|
|
22
26
|
/** @internal */
|
|
23
27
|
export type UpdateVenueRequest$Outbound = {
|
|
24
28
|
id: string;
|
|
29
|
+
"Idempotency-Key"?: string | undefined;
|
|
25
30
|
body: models.VenueUpdate$Outbound;
|
|
26
31
|
};
|
|
27
32
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-venue.d.ts","sourceRoot":"","sources":["../../../src/models/operations/update-venue.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"update-venue.d.ts","sourceRoot":"","sources":["../../../src/models/operations/update-venue.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,WAAW,CAC5D,4BAA4B,EAC5B,mBAAmB,CAInB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC,oBAAoB,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,WAAW,CAC3D,2BAA2B,EAC3B,kBAAkB,CAYnB,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v4-mini";
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
5
6
|
import * as models from "../index.js";
|
|
6
7
|
/** @internal */
|
|
7
8
|
export const UpdateVenueSecurity$outboundSchema = z.object({
|
|
@@ -12,10 +13,15 @@ export function updateVenueSecurityToJSON(updateVenueSecurity) {
|
|
|
12
13
|
return JSON.stringify(UpdateVenueSecurity$outboundSchema.parse(updateVenueSecurity));
|
|
13
14
|
}
|
|
14
15
|
/** @internal */
|
|
15
|
-
export const UpdateVenueRequest$outboundSchema = z.object({
|
|
16
|
+
export const UpdateVenueRequest$outboundSchema = z.pipe(z.object({
|
|
16
17
|
id: z.string(),
|
|
18
|
+
idempotencyKey: z.optional(z.string()),
|
|
17
19
|
body: models.VenueUpdate$outboundSchema,
|
|
18
|
-
})
|
|
20
|
+
}), z.transform((v) => {
|
|
21
|
+
return remap$(v, {
|
|
22
|
+
idempotencyKey: "Idempotency-Key",
|
|
23
|
+
});
|
|
24
|
+
}));
|
|
19
25
|
export function updateVenueRequestToJSON(updateVenueRequest) {
|
|
20
26
|
return JSON.stringify(UpdateVenueRequest$outboundSchema.parse(updateVenueRequest));
|
|
21
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-venue.js","sourceRoot":"","sources":["../../../src/models/operations/update-venue.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"update-venue.js","sourceRoot":"","sources":["../../../src/models/operations/update-venue.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAyBtC,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAG3C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,UAAU,yBAAyB,CACvC,mBAAwC,EAChC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,kCAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AAAA,CACH;AASD,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAG1C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC,0BAA0B;CACxC,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,wBAAwB,CACtC,kBAAsC,EAC9B;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AAAA,CACH"}
|
|
@@ -9,6 +9,10 @@ export type UpdateWebhookRequest = {
|
|
|
9
9
|
* UUID v4
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* Optional unique key that makes this request safely retryable. Replaying the same key returns the original response instead of creating a duplicate; reusing a key with a different request body returns 409.
|
|
14
|
+
*/
|
|
15
|
+
idempotencyKey?: string | undefined;
|
|
12
16
|
body: models.WebhookUpdate;
|
|
13
17
|
};
|
|
14
18
|
/** @internal */
|
|
@@ -22,6 +26,7 @@ export declare function updateWebhookSecurityToJSON(updateWebhookSecurity: Updat
|
|
|
22
26
|
/** @internal */
|
|
23
27
|
export type UpdateWebhookRequest$Outbound = {
|
|
24
28
|
id: string;
|
|
29
|
+
"Idempotency-Key"?: string | undefined;
|
|
25
30
|
body: models.WebhookUpdate$Outbound;
|
|
26
31
|
};
|
|
27
32
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-webhook.d.ts","sourceRoot":"","sources":["../../../src/models/operations/update-webhook.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"update-webhook.d.ts","sourceRoot":"","sources":["../../../src/models/operations/update-webhook.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC,aAAa,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,WAAW,CAC9D,8BAA8B,EAC9B,qBAAqB,CAIrB,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC,sBAAsB,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,WAAW,CAC7D,6BAA6B,EAC7B,oBAAoB,CAYrB,CAAC;AAEF,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v4-mini";
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
5
6
|
import * as models from "../index.js";
|
|
6
7
|
/** @internal */
|
|
7
8
|
export const UpdateWebhookSecurity$outboundSchema = z.object({
|
|
@@ -12,10 +13,15 @@ export function updateWebhookSecurityToJSON(updateWebhookSecurity) {
|
|
|
12
13
|
return JSON.stringify(UpdateWebhookSecurity$outboundSchema.parse(updateWebhookSecurity));
|
|
13
14
|
}
|
|
14
15
|
/** @internal */
|
|
15
|
-
export const UpdateWebhookRequest$outboundSchema = z.object({
|
|
16
|
+
export const UpdateWebhookRequest$outboundSchema = z.pipe(z.object({
|
|
16
17
|
id: z.string(),
|
|
18
|
+
idempotencyKey: z.optional(z.string()),
|
|
17
19
|
body: models.WebhookUpdate$outboundSchema,
|
|
18
|
-
})
|
|
20
|
+
}), z.transform((v) => {
|
|
21
|
+
return remap$(v, {
|
|
22
|
+
idempotencyKey: "Idempotency-Key",
|
|
23
|
+
});
|
|
24
|
+
}));
|
|
19
25
|
export function updateWebhookRequestToJSON(updateWebhookRequest) {
|
|
20
26
|
return JSON.stringify(UpdateWebhookRequest$outboundSchema.parse(updateWebhookRequest));
|
|
21
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-webhook.js","sourceRoot":"","sources":["../../../src/models/operations/update-webhook.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"update-webhook.js","sourceRoot":"","sources":["../../../src/models/operations/update-webhook.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAyBtC,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAG7C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,UAAU,2BAA2B,CACzC,qBAA4C,EACpC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,oCAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AAAA,CACH;AASD,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAG5C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC,4BAA4B;CAC1C,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,0BAA0B,CACxC,oBAA0C,EAClC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,mCAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AAAA,CACH"}
|
|
@@ -13,7 +13,7 @@ export declare class Transactions extends ClientSDK {
|
|
|
13
13
|
* Create a transaction (expense or charge)
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* A `global` transaction applies org-wide (all clients for revenue, overhead for cost), so it cannot carry `assignments` — send an empty array, or use mode `each`/`split` to scope it.
|
|
16
|
+
* A `global` transaction applies org-wide (all clients for revenue, overhead for cost), so it cannot carry `assignments` — send an empty array, or use mode `each`/`split` to scope it. Enforced against the *stored* row as well as the request body, so a PATCH that omits `mode` is still checked. Refused with `400 invalid_request` and `details.code: "global_mode_has_assignments"`.
|
|
17
17
|
*/
|
|
18
18
|
create(security: operations.CreateTransactionSecurity, request: operations.CreateTransactionRequest, options?: RequestOptions): Promise<models.Transaction>;
|
|
19
19
|
/**
|
|
@@ -31,7 +31,7 @@ export declare class Transactions extends ClientSDK {
|
|
|
31
31
|
* Update a transaction
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Transactions billed to a sent/paid invoice may be frozen — the server will return 409 if so. A `global` transaction applies org-wide (all clients for revenue, overhead for cost), so it cannot carry `assignments` — send an empty array, or use mode `each`/`split` to scope it.
|
|
34
|
+
* Transactions billed to a sent/paid invoice may be frozen — the server will return 409 if so. A `global` transaction applies org-wide (all clients for revenue, overhead for cost), so it cannot carry `assignments` — send an empty array, or use mode `each`/`split` to scope it. Enforced against the *stored* row as well as the request body, so a PATCH that omits `mode` is still checked. Refused with `400 invalid_request` and `details.code: "global_mode_has_assignments"`.
|
|
35
35
|
*/
|
|
36
36
|
update(security: operations.UpdateTransactionSecurity, request: operations.UpdateTransactionRequest, options?: RequestOptions): Promise<models.Transaction>;
|
|
37
37
|
}
|
package/esm/sdk/transactions.js
CHANGED
|
@@ -20,7 +20,7 @@ export class Transactions extends ClientSDK {
|
|
|
20
20
|
* Create a transaction (expense or charge)
|
|
21
21
|
*
|
|
22
22
|
* @remarks
|
|
23
|
-
* A `global` transaction applies org-wide (all clients for revenue, overhead for cost), so it cannot carry `assignments` — send an empty array, or use mode `each`/`split` to scope it.
|
|
23
|
+
* A `global` transaction applies org-wide (all clients for revenue, overhead for cost), so it cannot carry `assignments` — send an empty array, or use mode `each`/`split` to scope it. Enforced against the *stored* row as well as the request body, so a PATCH that omits `mode` is still checked. Refused with `400 invalid_request` and `details.code: "global_mode_has_assignments"`.
|
|
24
24
|
*/
|
|
25
25
|
async create(security, request, options) {
|
|
26
26
|
return unwrapAsync(transactionsCreate(this, security, request, options));
|
|
@@ -44,7 +44,7 @@ export class Transactions extends ClientSDK {
|
|
|
44
44
|
* Update a transaction
|
|
45
45
|
*
|
|
46
46
|
* @remarks
|
|
47
|
-
* Transactions billed to a sent/paid invoice may be frozen — the server will return 409 if so. A `global` transaction applies org-wide (all clients for revenue, overhead for cost), so it cannot carry `assignments` — send an empty array, or use mode `each`/`split` to scope it.
|
|
47
|
+
* Transactions billed to a sent/paid invoice may be frozen — the server will return 409 if so. A `global` transaction applies org-wide (all clients for revenue, overhead for cost), so it cannot carry `assignments` — send an empty array, or use mode `each`/`split` to scope it. Enforced against the *stored* row as well as the request body, so a PATCH that omits `mode` is still checked. Refused with `400 invalid_request` and `details.code: "global_mode_has_assignments"`.
|
|
48
48
|
*/
|
|
49
49
|
async update(security, request, options) {
|
|
50
50
|
return unwrapAsync(transactionsUpdate(this, security, request, options));
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -106,6 +106,11 @@ async function $do(
|
|
|
106
106
|
const headers = new Headers(compactMap({
|
|
107
107
|
"Content-Type": "application/json",
|
|
108
108
|
Accept: "application/json",
|
|
109
|
+
"Idempotency-Key": encodeSimple(
|
|
110
|
+
"Idempotency-Key",
|
|
111
|
+
payload["Idempotency-Key"],
|
|
112
|
+
{ explode: false, charEncoding: "none" },
|
|
113
|
+
),
|
|
109
114
|
}));
|
|
110
115
|
|
|
111
116
|
const requestSecurity = resolveSecurity(
|
|
@@ -194,7 +199,7 @@ async function $do(
|
|
|
194
199
|
| SDKValidationError
|
|
195
200
|
>(
|
|
196
201
|
M.json(200, models.CalendarEvent$inboundSchema),
|
|
197
|
-
M.jsonErr([400, 401, 403, 404, 429], errors.ApiError$inboundSchema),
|
|
202
|
+
M.jsonErr([400, 401, 403, 404, 409, 429], errors.ApiError$inboundSchema),
|
|
198
203
|
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
199
204
|
M.fail("4XX"),
|
|
200
205
|
M.fail("5XX"),
|
|
@@ -103,6 +103,11 @@ async function $do(
|
|
|
103
103
|
const headers = new Headers(compactMap({
|
|
104
104
|
"Content-Type": "application/json",
|
|
105
105
|
Accept: "application/json",
|
|
106
|
+
"Idempotency-Key": encodeSimple(
|
|
107
|
+
"Idempotency-Key",
|
|
108
|
+
payload["Idempotency-Key"],
|
|
109
|
+
{ explode: false, charEncoding: "none" },
|
|
110
|
+
),
|
|
106
111
|
}));
|
|
107
112
|
|
|
108
113
|
const requestSecurity = resolveSecurity(
|
|
@@ -191,7 +196,7 @@ async function $do(
|
|
|
191
196
|
| SDKValidationError
|
|
192
197
|
>(
|
|
193
198
|
M.json(200, models.CatalogItem$inboundSchema),
|
|
194
|
-
M.jsonErr([400, 401, 403, 404, 429], errors.ApiError$inboundSchema),
|
|
199
|
+
M.jsonErr([400, 401, 403, 404, 409, 429], errors.ApiError$inboundSchema),
|
|
195
200
|
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
196
201
|
M.fail("4XX"),
|
|
197
202
|
M.fail("5XX"),
|
|
@@ -102,6 +102,11 @@ async function $do(
|
|
|
102
102
|
const headers = new Headers(compactMap({
|
|
103
103
|
"Content-Type": "application/json",
|
|
104
104
|
Accept: "application/json",
|
|
105
|
+
"Idempotency-Key": encodeSimple(
|
|
106
|
+
"Idempotency-Key",
|
|
107
|
+
payload["Idempotency-Key"],
|
|
108
|
+
{ explode: false, charEncoding: "none" },
|
|
109
|
+
),
|
|
105
110
|
}));
|
|
106
111
|
|
|
107
112
|
const requestSecurity = resolveSecurity(
|
|
@@ -190,7 +195,7 @@ async function $do(
|
|
|
190
195
|
| SDKValidationError
|
|
191
196
|
>(
|
|
192
197
|
M.json(200, models.Client$inboundSchema),
|
|
193
|
-
M.jsonErr([400, 401, 403, 404, 429], errors.ApiError$inboundSchema),
|
|
198
|
+
M.jsonErr([400, 401, 403, 404, 409, 429], errors.ApiError$inboundSchema),
|
|
194
199
|
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
195
200
|
M.fail("4XX"),
|
|
196
201
|
M.fail("5XX"),
|
|
@@ -102,6 +102,11 @@ async function $do(
|
|
|
102
102
|
const headers = new Headers(compactMap({
|
|
103
103
|
"Content-Type": "application/json",
|
|
104
104
|
Accept: "application/json",
|
|
105
|
+
"Idempotency-Key": encodeSimple(
|
|
106
|
+
"Idempotency-Key",
|
|
107
|
+
payload["Idempotency-Key"],
|
|
108
|
+
{ explode: false, charEncoding: "none" },
|
|
109
|
+
),
|
|
105
110
|
}));
|
|
106
111
|
|
|
107
112
|
const requestSecurity = resolveSecurity(
|
|
@@ -190,7 +195,7 @@ async function $do(
|
|
|
190
195
|
| SDKValidationError
|
|
191
196
|
>(
|
|
192
197
|
M.json(200, models.Contact$inboundSchema),
|
|
193
|
-
M.jsonErr([400, 401, 403, 404, 429], errors.ApiError$inboundSchema),
|
|
198
|
+
M.jsonErr([400, 401, 403, 404, 409, 429], errors.ApiError$inboundSchema),
|
|
194
199
|
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
195
200
|
M.fail("4XX"),
|
|
196
201
|
M.fail("5XX"),
|
|
@@ -105,6 +105,11 @@ async function $do(
|
|
|
105
105
|
const headers = new Headers(compactMap({
|
|
106
106
|
"Content-Type": "application/json",
|
|
107
107
|
Accept: "application/json",
|
|
108
|
+
"Idempotency-Key": encodeSimple(
|
|
109
|
+
"Idempotency-Key",
|
|
110
|
+
payload["Idempotency-Key"],
|
|
111
|
+
{ explode: false, charEncoding: "none" },
|
|
112
|
+
),
|
|
108
113
|
}));
|
|
109
114
|
|
|
110
115
|
const requestSecurity = resolveSecurity(
|
|
@@ -193,7 +198,7 @@ async function $do(
|
|
|
193
198
|
| SDKValidationError
|
|
194
199
|
>(
|
|
195
200
|
M.json(200, models.Contract$inboundSchema),
|
|
196
|
-
M.jsonErr([400, 401, 403, 404, 429], errors.ApiError$inboundSchema),
|
|
201
|
+
M.jsonErr([400, 401, 403, 404, 409, 429], errors.ApiError$inboundSchema),
|
|
197
202
|
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
198
203
|
M.fail("4XX"),
|
|
199
204
|
M.fail("5XX"),
|
|
@@ -103,6 +103,11 @@ async function $do(
|
|
|
103
103
|
const headers = new Headers(compactMap({
|
|
104
104
|
"Content-Type": "application/json",
|
|
105
105
|
Accept: "application/json",
|
|
106
|
+
"Idempotency-Key": encodeSimple(
|
|
107
|
+
"Idempotency-Key",
|
|
108
|
+
payload["Idempotency-Key"],
|
|
109
|
+
{ explode: false, charEncoding: "none" },
|
|
110
|
+
),
|
|
106
111
|
}));
|
|
107
112
|
|
|
108
113
|
const requestSecurity = resolveSecurity(
|
|
@@ -191,7 +196,7 @@ async function $do(
|
|
|
191
196
|
| SDKValidationError
|
|
192
197
|
>(
|
|
193
198
|
M.json(200, models.EventDayVendor$inboundSchema),
|
|
194
|
-
M.jsonErr([400, 401, 403, 404, 429], errors.ApiError$inboundSchema),
|
|
199
|
+
M.jsonErr([400, 401, 403, 404, 409, 429], errors.ApiError$inboundSchema),
|
|
195
200
|
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
196
201
|
M.fail("4XX"),
|
|
197
202
|
M.fail("5XX"),
|
|
@@ -102,6 +102,11 @@ async function $do(
|
|
|
102
102
|
const headers = new Headers(compactMap({
|
|
103
103
|
"Content-Type": "application/json",
|
|
104
104
|
Accept: "application/json",
|
|
105
|
+
"Idempotency-Key": encodeSimple(
|
|
106
|
+
"Idempotency-Key",
|
|
107
|
+
payload["Idempotency-Key"],
|
|
108
|
+
{ explode: false, charEncoding: "none" },
|
|
109
|
+
),
|
|
105
110
|
}));
|
|
106
111
|
|
|
107
112
|
const requestSecurity = resolveSecurity(
|
|
@@ -190,7 +195,7 @@ async function $do(
|
|
|
190
195
|
| SDKValidationError
|
|
191
196
|
>(
|
|
192
197
|
M.json(200, models.EventDay$inboundSchema),
|
|
193
|
-
M.jsonErr([400, 401, 403, 404, 429], errors.ApiError$inboundSchema),
|
|
198
|
+
M.jsonErr([400, 401, 403, 404, 409, 429], errors.ApiError$inboundSchema),
|
|
194
199
|
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
195
200
|
M.fail("4XX"),
|
|
196
201
|
M.fail("5XX"),
|
|
@@ -102,6 +102,11 @@ async function $do(
|
|
|
102
102
|
const headers = new Headers(compactMap({
|
|
103
103
|
"Content-Type": "application/json",
|
|
104
104
|
Accept: "application/json",
|
|
105
|
+
"Idempotency-Key": encodeSimple(
|
|
106
|
+
"Idempotency-Key",
|
|
107
|
+
payload["Idempotency-Key"],
|
|
108
|
+
{ explode: false, charEncoding: "none" },
|
|
109
|
+
),
|
|
105
110
|
}));
|
|
106
111
|
|
|
107
112
|
const requestSecurity = resolveSecurity(
|
|
@@ -190,7 +195,7 @@ async function $do(
|
|
|
190
195
|
| SDKValidationError
|
|
191
196
|
>(
|
|
192
197
|
M.json(200, models.Invoice$inboundSchema),
|
|
193
|
-
M.jsonErr([400, 401, 403, 404, 429], errors.ApiError$inboundSchema),
|
|
198
|
+
M.jsonErr([400, 401, 403, 404, 409, 429], errors.ApiError$inboundSchema),
|
|
194
199
|
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
195
200
|
M.fail("4XX"),
|
|
196
201
|
M.fail("5XX"),
|
|
@@ -102,6 +102,11 @@ async function $do(
|
|
|
102
102
|
const headers = new Headers(compactMap({
|
|
103
103
|
"Content-Type": "application/json",
|
|
104
104
|
Accept: "application/json",
|
|
105
|
+
"Idempotency-Key": encodeSimple(
|
|
106
|
+
"Idempotency-Key",
|
|
107
|
+
payload["Idempotency-Key"],
|
|
108
|
+
{ explode: false, charEncoding: "none" },
|
|
109
|
+
),
|
|
105
110
|
}));
|
|
106
111
|
|
|
107
112
|
const requestSecurity = resolveSecurity(
|
|
@@ -190,7 +195,7 @@ async function $do(
|
|
|
190
195
|
| SDKValidationError
|
|
191
196
|
>(
|
|
192
197
|
M.json(200, models.Milestone$inboundSchema),
|
|
193
|
-
M.jsonErr([400, 401, 403, 404, 429], errors.ApiError$inboundSchema),
|
|
198
|
+
M.jsonErr([400, 401, 403, 404, 409, 429], errors.ApiError$inboundSchema),
|
|
194
199
|
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
195
200
|
M.fail("4XX"),
|
|
196
201
|
M.fail("5XX"),
|
|
@@ -102,6 +102,11 @@ async function $do(
|
|
|
102
102
|
const headers = new Headers(compactMap({
|
|
103
103
|
"Content-Type": "application/json",
|
|
104
104
|
Accept: "application/json",
|
|
105
|
+
"Idempotency-Key": encodeSimple(
|
|
106
|
+
"Idempotency-Key",
|
|
107
|
+
payload["Idempotency-Key"],
|
|
108
|
+
{ explode: false, charEncoding: "none" },
|
|
109
|
+
),
|
|
105
110
|
}));
|
|
106
111
|
|
|
107
112
|
const requestSecurity = resolveSecurity(
|
|
@@ -190,7 +195,7 @@ async function $do(
|
|
|
190
195
|
| SDKValidationError
|
|
191
196
|
>(
|
|
192
197
|
M.json(200, models.Payment$inboundSchema),
|
|
193
|
-
M.jsonErr([400, 401, 403, 404, 429], errors.ApiError$inboundSchema),
|
|
198
|
+
M.jsonErr([400, 401, 403, 404, 409, 429], errors.ApiError$inboundSchema),
|
|
194
199
|
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
195
200
|
M.fail("4XX"),
|
|
196
201
|
M.fail("5XX"),
|
|
@@ -102,6 +102,11 @@ async function $do(
|
|
|
102
102
|
const headers = new Headers(compactMap({
|
|
103
103
|
"Content-Type": "application/json",
|
|
104
104
|
Accept: "application/json",
|
|
105
|
+
"Idempotency-Key": encodeSimple(
|
|
106
|
+
"Idempotency-Key",
|
|
107
|
+
payload["Idempotency-Key"],
|
|
108
|
+
{ explode: false, charEncoding: "none" },
|
|
109
|
+
),
|
|
105
110
|
}));
|
|
106
111
|
|
|
107
112
|
const requestSecurity = resolveSecurity(
|
|
@@ -190,7 +195,7 @@ async function $do(
|
|
|
190
195
|
| SDKValidationError
|
|
191
196
|
>(
|
|
192
197
|
M.json(200, models.Project$inboundSchema),
|
|
193
|
-
M.jsonErr([400, 401, 403, 404, 429], errors.ApiError$inboundSchema),
|
|
198
|
+
M.jsonErr([400, 401, 403, 404, 409, 429], errors.ApiError$inboundSchema),
|
|
194
199
|
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
195
200
|
M.fail("4XX"),
|
|
196
201
|
M.fail("5XX"),
|
|
@@ -105,6 +105,11 @@ async function $do(
|
|
|
105
105
|
const headers = new Headers(compactMap({
|
|
106
106
|
"Content-Type": "application/json",
|
|
107
107
|
Accept: "application/json",
|
|
108
|
+
"Idempotency-Key": encodeSimple(
|
|
109
|
+
"Idempotency-Key",
|
|
110
|
+
payload["Idempotency-Key"],
|
|
111
|
+
{ explode: false, charEncoding: "none" },
|
|
112
|
+
),
|
|
108
113
|
}));
|
|
109
114
|
|
|
110
115
|
const requestSecurity = resolveSecurity(
|
|
@@ -193,7 +198,7 @@ async function $do(
|
|
|
193
198
|
| SDKValidationError
|
|
194
199
|
>(
|
|
195
200
|
M.json(200, models.TimeEntry$inboundSchema),
|
|
196
|
-
M.jsonErr([400, 401, 403, 404, 429], errors.ApiError$inboundSchema),
|
|
201
|
+
M.jsonErr([400, 401, 403, 404, 409, 429], errors.ApiError$inboundSchema),
|
|
197
202
|
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
198
203
|
M.fail("4XX"),
|
|
199
204
|
M.fail("5XX"),
|
|
@@ -103,6 +103,11 @@ async function $do(
|
|
|
103
103
|
const headers = new Headers(compactMap({
|
|
104
104
|
"Content-Type": "application/json",
|
|
105
105
|
Accept: "application/json",
|
|
106
|
+
"Idempotency-Key": encodeSimple(
|
|
107
|
+
"Idempotency-Key",
|
|
108
|
+
payload["Idempotency-Key"],
|
|
109
|
+
{ explode: false, charEncoding: "none" },
|
|
110
|
+
),
|
|
106
111
|
}));
|
|
107
112
|
|
|
108
113
|
const requestSecurity = resolveSecurity(
|
|
@@ -191,7 +196,7 @@ async function $do(
|
|
|
191
196
|
| SDKValidationError
|
|
192
197
|
>(
|
|
193
198
|
M.json(200, models.TimelineItem$inboundSchema),
|
|
194
|
-
M.jsonErr([400, 401, 403, 404, 429], errors.ApiError$inboundSchema),
|
|
199
|
+
M.jsonErr([400, 401, 403, 404, 409, 429], errors.ApiError$inboundSchema),
|
|
195
200
|
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
196
201
|
M.fail("4XX"),
|
|
197
202
|
M.fail("5XX"),
|
|
@@ -32,7 +32,7 @@ import { Result } from "../types/fp.js";
|
|
|
32
32
|
* Create a transaction (expense or charge)
|
|
33
33
|
*
|
|
34
34
|
* @remarks
|
|
35
|
-
* A `global` transaction applies org-wide (all clients for revenue, overhead for cost), so it cannot carry `assignments` — send an empty array, or use mode `each`/`split` to scope it.
|
|
35
|
+
* A `global` transaction applies org-wide (all clients for revenue, overhead for cost), so it cannot carry `assignments` — send an empty array, or use mode `each`/`split` to scope it. Enforced against the *stored* row as well as the request body, so a PATCH that omits `mode` is still checked. Refused with `400 invalid_request` and `details.code: "global_mode_has_assignments"`.
|
|
36
36
|
*/
|
|
37
37
|
export function transactionsCreate(
|
|
38
38
|
client: ClientCasaCore,
|
|
@@ -32,7 +32,7 @@ import { Result } from "../types/fp.js";
|
|
|
32
32
|
* Update a transaction
|
|
33
33
|
*
|
|
34
34
|
* @remarks
|
|
35
|
-
* Transactions billed to a sent/paid invoice may be frozen — the server will return 409 if so. A `global` transaction applies org-wide (all clients for revenue, overhead for cost), so it cannot carry `assignments` — send an empty array, or use mode `each`/`split` to scope it.
|
|
35
|
+
* Transactions billed to a sent/paid invoice may be frozen — the server will return 409 if so. A `global` transaction applies org-wide (all clients for revenue, overhead for cost), so it cannot carry `assignments` — send an empty array, or use mode `each`/`split` to scope it. Enforced against the *stored* row as well as the request body, so a PATCH that omits `mode` is still checked. Refused with `400 invalid_request` and `details.code: "global_mode_has_assignments"`.
|
|
36
36
|
*/
|
|
37
37
|
export function transactionsUpdate(
|
|
38
38
|
client: ClientCasaCore,
|
|
@@ -106,6 +106,11 @@ async function $do(
|
|
|
106
106
|
const headers = new Headers(compactMap({
|
|
107
107
|
"Content-Type": "application/json",
|
|
108
108
|
Accept: "application/json",
|
|
109
|
+
"Idempotency-Key": encodeSimple(
|
|
110
|
+
"Idempotency-Key",
|
|
111
|
+
payload["Idempotency-Key"],
|
|
112
|
+
{ explode: false, charEncoding: "none" },
|
|
113
|
+
),
|
|
109
114
|
}));
|
|
110
115
|
|
|
111
116
|
const requestSecurity = resolveSecurity(
|
|
@@ -194,7 +199,7 @@ async function $do(
|
|
|
194
199
|
| SDKValidationError
|
|
195
200
|
>(
|
|
196
201
|
M.json(200, models.Transaction$inboundSchema),
|
|
197
|
-
M.jsonErr([400, 401, 403, 404, 429], errors.ApiError$inboundSchema),
|
|
202
|
+
M.jsonErr([400, 401, 403, 404, 409, 429], errors.ApiError$inboundSchema),
|
|
198
203
|
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
199
204
|
M.fail("4XX"),
|
|
200
205
|
M.fail("5XX"),
|
|
@@ -102,6 +102,11 @@ async function $do(
|
|
|
102
102
|
const headers = new Headers(compactMap({
|
|
103
103
|
"Content-Type": "application/json",
|
|
104
104
|
Accept: "application/json",
|
|
105
|
+
"Idempotency-Key": encodeSimple(
|
|
106
|
+
"Idempotency-Key",
|
|
107
|
+
payload["Idempotency-Key"],
|
|
108
|
+
{ explode: false, charEncoding: "none" },
|
|
109
|
+
),
|
|
105
110
|
}));
|
|
106
111
|
|
|
107
112
|
const requestSecurity = resolveSecurity(
|
|
@@ -190,7 +195,7 @@ async function $do(
|
|
|
190
195
|
| SDKValidationError
|
|
191
196
|
>(
|
|
192
197
|
M.json(200, models.Vendor$inboundSchema),
|
|
193
|
-
M.jsonErr([400, 401, 403, 404, 429], errors.ApiError$inboundSchema),
|
|
198
|
+
M.jsonErr([400, 401, 403, 404, 409, 429], errors.ApiError$inboundSchema),
|
|
194
199
|
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
195
200
|
M.fail("4XX"),
|
|
196
201
|
M.fail("5XX"),
|