@clientcasa/sdk 0.7.2 → 0.7.3
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/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/form-submission-answer.d.ts +2 -0
- package/esm/models/form-submission-answer.d.ts.map +1 -1
- package/esm/models/form-submission-answer.js +2 -0
- package/esm/models/form-submission-answer.js.map +1 -1
- package/esm/models/form-submission-attachment.d.ts +16 -0
- package/esm/models/form-submission-attachment.d.ts.map +1 -0
- package/esm/models/form-submission-attachment.js +17 -0
- package/esm/models/form-submission-attachment.js.map +1 -0
- package/esm/models/index.d.ts +1 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +1 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/payout.d.ts +28 -4
- package/esm/models/payout.d.ts.map +1 -1
- package/esm/models/payout.js +7 -4
- package/esm/models/payout.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/form-submission-answer.ts +6 -0
- package/src/models/form-submission-attachment.ts +40 -0
- package/src/models/index.ts +1 -0
- package/src/models/payout.ts +35 -8
package/esm/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "1.0.0";
|
|
34
|
-
readonly sdkVersion: "0.7.
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.7.
|
|
34
|
+
readonly sdkVersion: "0.7.3";
|
|
35
|
+
readonly genVersion: "2.935.1";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.7.3 2.935.1 1.0.0 @clientcasa/sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -27,8 +27,8 @@ export function serverURLFromOptions(options) {
|
|
|
27
27
|
export const SDK_METADATA = {
|
|
28
28
|
language: "typescript",
|
|
29
29
|
openapiDocVersion: "1.0.0",
|
|
30
|
-
sdkVersion: "0.7.
|
|
31
|
-
genVersion: "2.
|
|
32
|
-
userAgent: "speakeasy-sdk/typescript 0.7.
|
|
30
|
+
sdkVersion: "0.7.3",
|
|
31
|
+
genVersion: "2.935.1",
|
|
32
|
+
userAgent: "speakeasy-sdk/typescript 0.7.3 2.935.1 1.0.0 @clientcasa/sdk",
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as z from "zod/v4-mini";
|
|
2
2
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
4
|
+
import { FormSubmissionAttachment } from "./form-submission-attachment.js";
|
|
4
5
|
export type FormSubmissionAnswer = {
|
|
5
6
|
fieldId: string;
|
|
6
7
|
question: string;
|
|
7
8
|
answer: string;
|
|
9
|
+
attachments?: Array<FormSubmissionAttachment> | undefined;
|
|
8
10
|
};
|
|
9
11
|
/** @internal */
|
|
10
12
|
export declare const FormSubmissionAnswer$inboundSchema: z.ZodMiniType<FormSubmissionAnswer, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-submission-answer.d.ts","sourceRoot":"","sources":["../../src/models/form-submission-answer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"form-submission-answer.d.ts","sourceRoot":"","sources":["../../src/models/form-submission-answer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,wBAAwB,EAEzB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,GAAG,SAAS,CAAC;CAC3D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,WAAW,CAC5D,oBAAoB,EACpB,OAAO,CAMP,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
import * as z from "zod/v4-mini";
|
|
5
5
|
import { safeParse } from "../lib/schemas.js";
|
|
6
6
|
import * as types from "../types/primitives.js";
|
|
7
|
+
import { FormSubmissionAttachment$inboundSchema, } from "./form-submission-attachment.js";
|
|
7
8
|
/** @internal */
|
|
8
9
|
export const FormSubmissionAnswer$inboundSchema = z.object({
|
|
9
10
|
fieldId: types.string(),
|
|
10
11
|
question: types.string(),
|
|
11
12
|
answer: types.string(),
|
|
13
|
+
attachments: types.optional(z.array(FormSubmissionAttachment$inboundSchema)),
|
|
12
14
|
});
|
|
13
15
|
export function formSubmissionAnswerFromJSON(jsonString) {
|
|
14
16
|
return safeParse(jsonString, (x) => FormSubmissionAnswer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FormSubmissionAnswer' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-submission-answer.js","sourceRoot":"","sources":["../../src/models/form-submission-answer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"form-submission-answer.js","sourceRoot":"","sources":["../../src/models/form-submission-answer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAEL,sCAAsC,GACvC,MAAM,iCAAiC,CAAC;AASzC,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAG3C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE;IACxB,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;CAC7E,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B,CAC1C,UAAkB,EACyC;IAC3D,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
4
|
+
export type FormSubmissionAttachment = {
|
|
5
|
+
/**
|
|
6
|
+
* UUID v4
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
filename: string;
|
|
10
|
+
mimeType: string | null;
|
|
11
|
+
filesize: number | null;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const FormSubmissionAttachment$inboundSchema: z.ZodMiniType<FormSubmissionAttachment, unknown>;
|
|
15
|
+
export declare function formSubmissionAttachmentFromJSON(jsonString: string): SafeParseResult<FormSubmissionAttachment, SDKValidationError>;
|
|
16
|
+
//# sourceMappingURL=form-submission-attachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-submission-attachment.d.ts","sourceRoot":"","sources":["../../src/models/form-submission-attachment.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,WAAW,CAChE,wBAAwB,EACxB,OAAO,CAMP,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { safeParse } from "../lib/schemas.js";
|
|
6
|
+
import * as types from "../types/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const FormSubmissionAttachment$inboundSchema = z.object({
|
|
9
|
+
id: types.string(),
|
|
10
|
+
filename: types.string(),
|
|
11
|
+
mimeType: types.nullable(types.string()),
|
|
12
|
+
filesize: types.nullable(types.number()),
|
|
13
|
+
});
|
|
14
|
+
export function formSubmissionAttachmentFromJSON(jsonString) {
|
|
15
|
+
return safeParse(jsonString, (x) => FormSubmissionAttachment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FormSubmissionAttachment' from JSON`);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=form-submission-attachment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-submission-attachment.js","sourceRoot":"","sources":["../../src/models/form-submission-attachment.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAahD,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAG/C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE;IACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACxC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CACzC,CAAC,CAAC;AAEH,MAAM,UAAU,gCAAgC,CAC9C,UAAkB,EAC6C;IAC/D,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AAAA,CACH"}
|
package/esm/models/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export * from "./event-day-vendor.js";
|
|
|
35
35
|
export * from "./event-day.js";
|
|
36
36
|
export * from "./form-list.js";
|
|
37
37
|
export * from "./form-submission-answer.js";
|
|
38
|
+
export * from "./form-submission-attachment.js";
|
|
38
39
|
export * from "./form-submission-list.js";
|
|
39
40
|
export * from "./form-submission.js";
|
|
40
41
|
export * from "./form.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,C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,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC"}
|
package/esm/models/index.js
CHANGED
|
@@ -38,6 +38,7 @@ export * from "./event-day-vendor.js";
|
|
|
38
38
|
export * from "./event-day.js";
|
|
39
39
|
export * from "./form-list.js";
|
|
40
40
|
export * from "./form-submission-answer.js";
|
|
41
|
+
export * from "./form-submission-attachment.js";
|
|
41
42
|
export * from "./form-submission-list.js";
|
|
42
43
|
export * from "./form-submission.js";
|
|
43
44
|
export * from "./form.js";
|
package/esm/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;A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,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC"}
|
package/esm/models/payout.d.ts
CHANGED
|
@@ -25,10 +25,34 @@ export type Payout = {
|
|
|
25
25
|
description: string | null;
|
|
26
26
|
bankAccountLast4: string | null;
|
|
27
27
|
bankAccountName: string | null;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Read-only: the gross amount of the payments that settled in this deposit. `null` means NOT MEASURED — this deposit has not been reconciled yet (`lastReconciledAt` is null), so nobody has counted what is in it. It does NOT mean the deposit contained no payments; do not coalesce it to 0.
|
|
30
|
+
*/
|
|
31
|
+
grossTotal: number | null;
|
|
32
|
+
/**
|
|
33
|
+
* Read-only: the Stripe processing fees withheld from the payments in this deposit. `null` means NOT MEASURED — see `lastReconciledAt`. It is not a fee-free deposit.
|
|
34
|
+
*/
|
|
35
|
+
feeTotal: number | null;
|
|
36
|
+
/**
|
|
37
|
+
* Read-only: the refunds included in this deposit, as a positive amount. `null` means NOT MEASURED — see `lastReconciledAt`. It is not a refund-free deposit.
|
|
38
|
+
*/
|
|
39
|
+
refundTotal: number | null;
|
|
40
|
+
/**
|
|
41
|
+
* Read-only: the dispute withdrawals — chargebacks and dispute fees — Stripe took out of this deposit, as a positive amount. Bucketed apart from fees and refunds so the deposit reconciles: `grossTotal - feeTotal - refundTotal - disputeTotal + unattributedTotal = amount`. `null` means NOT RECORDED, and it does NOT mean "this deposit had no disputes": the deposit was reconciled before dispute withdrawals were bucketed separately, or it has not been reconciled yet. A dispute inside such a deposit was counted in `paymentCount` and landed in no bucket, so on those rows the identity above is short by exactly the dispute amount — which is why this reads `null` rather than `0`. `0` means the deposit was examined and carried no dispute activity. Unlike `unattributedTotal`, this applies to automatic and manual payouts alike — there is no arm on which the question does not apply.
|
|
42
|
+
*/
|
|
43
|
+
disputeTotal: number | null;
|
|
44
|
+
/**
|
|
45
|
+
* Read-only. On a MANUAL payout: how much of this deposit could not be matched to a payment. Stripe does not report which payments a manual payout contained, so the deposit is reconstructed from the balance transactions available when it was requested, and this is the remainder. THREE DISTINCT STATES, and `null` is not one of the numbers: `null` means NOT RECORDED — either the question does not apply (an `automatic` payout, whose contents Stripe reports exactly) or it was never asked (a payout synced before this field existed). It does NOT mean zero, and no backfill will ever turn it into one, because the true value cannot be recomputed without re-asking Stripe. `0` means the reconstruction ran and every balance transaction in the deposit was matched to a payment. A value greater than 0 is real money in this deposit that no payment accounts for — it is not a fee, not a refund, and not a dispute. Do not coalesce `null` to 0: that reports a tie-out nobody verified. Use the `automatic` field on this same object to tell "not applicable" from "not recorded".
|
|
46
|
+
*/
|
|
47
|
+
unattributedTotal: number | null;
|
|
48
|
+
/**
|
|
49
|
+
* Read-only: how many payments this deposit was found to contain. `null` means NOT COUNTED — this deposit has not been reconciled (`lastReconciledAt` is null). A deposit that was walked and genuinely contained nothing reads `0`; the two are different facts and this field keeps them apart.
|
|
50
|
+
*/
|
|
51
|
+
paymentCount: number | null;
|
|
52
|
+
/**
|
|
53
|
+
* Read-only: when this deposit was last reconciled — when we last matched it against your payments and computed the totals on this object. `null` means IT NEVER HAS BEEN: `grossTotal`, `feeTotal`, `refundTotal` and `paymentCount` are all `null` too, and every one of them is unknown rather than zero. Render such a deposit as un-reconciled; its `amount`, `arrivalDate`, `status` and `automatic` come straight from Stripe and remain trustworthy. A non-null value does NOT imply every total is a number: `disputeTotal` stays `null` on deposits reconciled before dispute withdrawals were bucketed separately, and on those rows the reconciliation identity is short by exactly the dispute amount. ⚠️ Deposits reconciled before this field existed carry a BACKFILLED value — the row’s last-modified time, which for those rows is the instant of that deposit’s last sync. It is accurate to the sync, not independently observed, so treat it at day resolution.
|
|
54
|
+
*/
|
|
55
|
+
lastReconciledAt: Date | null;
|
|
32
56
|
failureCode: string | null;
|
|
33
57
|
failureMessage: string | null;
|
|
34
58
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payout.d.ts","sourceRoot":"","sources":["../../src/models/payout.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAEzD,MAAM,MAAM,MAAM,GAAG;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,MAAM,EAAE,YAAY,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI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ACjC;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;OAEG;IACH,gBAAgB,EAAE,IAAI,GAAG,IAAI,CAAC;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,WAAW,CAAC,YAAY,EAAE,OAAO,CACrC,CAAC;AAExC,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,CAuB9D,CAAC;AAEH,wBAAgB,cAAc,CAC5B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAM7C"}
|
package/esm/models/payout.js
CHANGED
|
@@ -27,10 +27,13 @@ export const Payout$inboundSchema = z.object({
|
|
|
27
27
|
description: types.nullable(types.string()),
|
|
28
28
|
bankAccountLast4: types.nullable(types.string()),
|
|
29
29
|
bankAccountName: types.nullable(types.string()),
|
|
30
|
-
grossTotal: types.number(),
|
|
31
|
-
feeTotal: types.number(),
|
|
32
|
-
refundTotal: types.number(),
|
|
33
|
-
|
|
30
|
+
grossTotal: types.nullable(types.number()),
|
|
31
|
+
feeTotal: types.nullable(types.number()),
|
|
32
|
+
refundTotal: types.nullable(types.number()),
|
|
33
|
+
disputeTotal: types.nullable(types.number()),
|
|
34
|
+
unattributedTotal: types.nullable(types.number()),
|
|
35
|
+
paymentCount: types.nullable(types.number()),
|
|
36
|
+
lastReconciledAt: types.nullable(types.date()),
|
|
34
37
|
failureCode: types.nullable(types.string()),
|
|
35
38
|
failureMessage: types.nullable(types.string()),
|
|
36
39
|
createdAt: types.date(),
|
package/esm/models/payout.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payout.js","sourceRoot":"","sources":["../../src/models/payout.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAGhD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;
|
|
1
|
+
{"version":3,"file":"payout.js","sourceRoot":"","sources":["../../src/models/payout.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAGhD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AA0DX,gBAAgB;AAChB,MAAM,CAAC,MAAM,0BAA0B,GACrC,SAAS,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;AAExC,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAmC,CAAC,CAAC,MAAM,CAAC;IAC3E,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE;IAClB,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE;IAC9B,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;IACtB,QAAQ,EAAE,KAAK,CA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B,UAAkB,EAC2B;IAC7C,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChD,oCAAoC,CACrC,CAAC;AAAA,CACH"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "1.0.0",
|
|
64
|
-
sdkVersion: "0.7.
|
|
65
|
-
genVersion: "2.
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 0.7.
|
|
64
|
+
sdkVersion: "0.7.3",
|
|
65
|
+
genVersion: "2.935.1",
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 0.7.3 2.935.1 1.0.0 @clientcasa/sdk",
|
|
67
67
|
} as const;
|
|
@@ -7,11 +7,16 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
8
|
import * as types from "../types/primitives.js";
|
|
9
9
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
10
|
+
import {
|
|
11
|
+
FormSubmissionAttachment,
|
|
12
|
+
FormSubmissionAttachment$inboundSchema,
|
|
13
|
+
} from "./form-submission-attachment.js";
|
|
10
14
|
|
|
11
15
|
export type FormSubmissionAnswer = {
|
|
12
16
|
fieldId: string;
|
|
13
17
|
question: string;
|
|
14
18
|
answer: string;
|
|
19
|
+
attachments?: Array<FormSubmissionAttachment> | undefined;
|
|
15
20
|
};
|
|
16
21
|
|
|
17
22
|
/** @internal */
|
|
@@ -22,6 +27,7 @@ export const FormSubmissionAnswer$inboundSchema: z.ZodMiniType<
|
|
|
22
27
|
fieldId: types.string(),
|
|
23
28
|
question: types.string(),
|
|
24
29
|
answer: types.string(),
|
|
30
|
+
attachments: types.optional(z.array(FormSubmissionAttachment$inboundSchema)),
|
|
25
31
|
});
|
|
26
32
|
|
|
27
33
|
export function formSubmissionAnswerFromJSON(
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import * as types from "../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
10
|
+
|
|
11
|
+
export type FormSubmissionAttachment = {
|
|
12
|
+
/**
|
|
13
|
+
* UUID v4
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
filename: string;
|
|
17
|
+
mimeType: string | null;
|
|
18
|
+
filesize: number | null;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const FormSubmissionAttachment$inboundSchema: z.ZodMiniType<
|
|
23
|
+
FormSubmissionAttachment,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
id: types.string(),
|
|
27
|
+
filename: types.string(),
|
|
28
|
+
mimeType: types.nullable(types.string()),
|
|
29
|
+
filesize: types.nullable(types.number()),
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export function formSubmissionAttachmentFromJSON(
|
|
33
|
+
jsonString: string,
|
|
34
|
+
): SafeParseResult<FormSubmissionAttachment, SDKValidationError> {
|
|
35
|
+
return safeParse(
|
|
36
|
+
jsonString,
|
|
37
|
+
(x) => FormSubmissionAttachment$inboundSchema.parse(JSON.parse(x)),
|
|
38
|
+
`Failed to parse 'FormSubmissionAttachment' from JSON`,
|
|
39
|
+
);
|
|
40
|
+
}
|
package/src/models/index.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from "./event-day-vendor.js";
|
|
|
39
39
|
export * from "./event-day.js";
|
|
40
40
|
export * from "./form-list.js";
|
|
41
41
|
export * from "./form-submission-answer.js";
|
|
42
|
+
export * from "./form-submission-attachment.js";
|
|
42
43
|
export * from "./form-submission-list.js";
|
|
43
44
|
export * from "./form-submission.js";
|
|
44
45
|
export * from "./form.js";
|
package/src/models/payout.ts
CHANGED
|
@@ -34,10 +34,34 @@ export type Payout = {
|
|
|
34
34
|
description: string | null;
|
|
35
35
|
bankAccountLast4: string | null;
|
|
36
36
|
bankAccountName: string | null;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Read-only: the gross amount of the payments that settled in this deposit. `null` means NOT MEASURED — this deposit has not been reconciled yet (`lastReconciledAt` is null), so nobody has counted what is in it. It does NOT mean the deposit contained no payments; do not coalesce it to 0.
|
|
39
|
+
*/
|
|
40
|
+
grossTotal: number | null;
|
|
41
|
+
/**
|
|
42
|
+
* Read-only: the Stripe processing fees withheld from the payments in this deposit. `null` means NOT MEASURED — see `lastReconciledAt`. It is not a fee-free deposit.
|
|
43
|
+
*/
|
|
44
|
+
feeTotal: number | null;
|
|
45
|
+
/**
|
|
46
|
+
* Read-only: the refunds included in this deposit, as a positive amount. `null` means NOT MEASURED — see `lastReconciledAt`. It is not a refund-free deposit.
|
|
47
|
+
*/
|
|
48
|
+
refundTotal: number | null;
|
|
49
|
+
/**
|
|
50
|
+
* Read-only: the dispute withdrawals — chargebacks and dispute fees — Stripe took out of this deposit, as a positive amount. Bucketed apart from fees and refunds so the deposit reconciles: `grossTotal - feeTotal - refundTotal - disputeTotal + unattributedTotal = amount`. `null` means NOT RECORDED, and it does NOT mean "this deposit had no disputes": the deposit was reconciled before dispute withdrawals were bucketed separately, or it has not been reconciled yet. A dispute inside such a deposit was counted in `paymentCount` and landed in no bucket, so on those rows the identity above is short by exactly the dispute amount — which is why this reads `null` rather than `0`. `0` means the deposit was examined and carried no dispute activity. Unlike `unattributedTotal`, this applies to automatic and manual payouts alike — there is no arm on which the question does not apply.
|
|
51
|
+
*/
|
|
52
|
+
disputeTotal: number | null;
|
|
53
|
+
/**
|
|
54
|
+
* Read-only. On a MANUAL payout: how much of this deposit could not be matched to a payment. Stripe does not report which payments a manual payout contained, so the deposit is reconstructed from the balance transactions available when it was requested, and this is the remainder. THREE DISTINCT STATES, and `null` is not one of the numbers: `null` means NOT RECORDED — either the question does not apply (an `automatic` payout, whose contents Stripe reports exactly) or it was never asked (a payout synced before this field existed). It does NOT mean zero, and no backfill will ever turn it into one, because the true value cannot be recomputed without re-asking Stripe. `0` means the reconstruction ran and every balance transaction in the deposit was matched to a payment. A value greater than 0 is real money in this deposit that no payment accounts for — it is not a fee, not a refund, and not a dispute. Do not coalesce `null` to 0: that reports a tie-out nobody verified. Use the `automatic` field on this same object to tell "not applicable" from "not recorded".
|
|
55
|
+
*/
|
|
56
|
+
unattributedTotal: number | null;
|
|
57
|
+
/**
|
|
58
|
+
* Read-only: how many payments this deposit was found to contain. `null` means NOT COUNTED — this deposit has not been reconciled (`lastReconciledAt` is null). A deposit that was walked and genuinely contained nothing reads `0`; the two are different facts and this field keeps them apart.
|
|
59
|
+
*/
|
|
60
|
+
paymentCount: number | null;
|
|
61
|
+
/**
|
|
62
|
+
* Read-only: when this deposit was last reconciled — when we last matched it against your payments and computed the totals on this object. `null` means IT NEVER HAS BEEN: `grossTotal`, `feeTotal`, `refundTotal` and `paymentCount` are all `null` too, and every one of them is unknown rather than zero. Render such a deposit as un-reconciled; its `amount`, `arrivalDate`, `status` and `automatic` come straight from Stripe and remain trustworthy. A non-null value does NOT imply every total is a number: `disputeTotal` stays `null` on deposits reconciled before dispute withdrawals were bucketed separately, and on those rows the reconciliation identity is short by exactly the dispute amount. ⚠️ Deposits reconciled before this field existed carry a BACKFILLED value — the row’s last-modified time, which for those rows is the instant of that deposit’s last sync. It is accurate to the sync, not independently observed, so treat it at day resolution.
|
|
63
|
+
*/
|
|
64
|
+
lastReconciledAt: Date | null;
|
|
41
65
|
failureCode: string | null;
|
|
42
66
|
failureMessage: string | null;
|
|
43
67
|
/**
|
|
@@ -67,10 +91,13 @@ export const Payout$inboundSchema: z.ZodMiniType<Payout, unknown> = z.object({
|
|
|
67
91
|
description: types.nullable(types.string()),
|
|
68
92
|
bankAccountLast4: types.nullable(types.string()),
|
|
69
93
|
bankAccountName: types.nullable(types.string()),
|
|
70
|
-
grossTotal: types.number(),
|
|
71
|
-
feeTotal: types.number(),
|
|
72
|
-
refundTotal: types.number(),
|
|
73
|
-
|
|
94
|
+
grossTotal: types.nullable(types.number()),
|
|
95
|
+
feeTotal: types.nullable(types.number()),
|
|
96
|
+
refundTotal: types.nullable(types.number()),
|
|
97
|
+
disputeTotal: types.nullable(types.number()),
|
|
98
|
+
unattributedTotal: types.nullable(types.number()),
|
|
99
|
+
paymentCount: types.nullable(types.number()),
|
|
100
|
+
lastReconciledAt: types.nullable(types.date()),
|
|
74
101
|
failureCode: types.nullable(types.string()),
|
|
75
102
|
failureMessage: types.nullable(types.string()),
|
|
76
103
|
createdAt: types.date(),
|