@diagonal-hq/workflows 0.10.2 → 0.10.4
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.
|
@@ -97,7 +97,7 @@ function isFailure(value2) {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
// packages/workflows/src/generated/capabilities.ts
|
|
100
|
-
var SDK_VERSION =
|
|
100
|
+
var SDK_VERSION = 79;
|
|
101
101
|
var ai = {
|
|
102
102
|
/** Ask a decisions model typed questions about some content and get labelled answers with their probabilities */
|
|
103
103
|
decide: (input) => invoke("ai.decide", input),
|
|
@@ -282,7 +282,9 @@ var payments = {
|
|
|
282
282
|
/** Confirm new or saved payment details collected by PaymentForm. Return this output to the form for authentication. Run after committing checkout choices; Stripe charges cannot be rolled back. */
|
|
283
283
|
confirm: (input) => invoke("payments.confirm", input),
|
|
284
284
|
/** Process a full or partial refund against a payment record */
|
|
285
|
-
refund: (input) => invoke("payments.refund", input)
|
|
285
|
+
refund: (input) => invoke("payments.refund", input),
|
|
286
|
+
/** Void a mistaken manual payment without recording a refund. */
|
|
287
|
+
void: (input) => invoke("payments.void", input)
|
|
286
288
|
};
|
|
287
289
|
var phone = {
|
|
288
290
|
/** Format a phone number into a human-readable string */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ResourceKeyWith } from "../data.js";
|
|
2
2
|
import type { ContentDocument } from "../input.js";
|
|
3
3
|
import type { DeepReadonly, Liquid, StaticLiquid } from "../liquid.js";
|
|
4
|
-
export declare const SDK_VERSION =
|
|
4
|
+
export declare const SDK_VERSION = 79;
|
|
5
5
|
export interface WorkspaceSystemFields {
|
|
6
6
|
"ai_custom_system_prompt": string | null;
|
|
7
7
|
"brand_kit": {
|
|
@@ -1076,6 +1076,12 @@ export interface PaymentsRefundInput {
|
|
|
1076
1076
|
reason?: string | null;
|
|
1077
1077
|
}
|
|
1078
1078
|
export type PaymentsRefundOutput = Record<string, unknown>;
|
|
1079
|
+
export interface PaymentsVoidInput {
|
|
1080
|
+
resource: ResourceKeyWith<"payment">;
|
|
1081
|
+
record: string;
|
|
1082
|
+
reason: string;
|
|
1083
|
+
}
|
|
1084
|
+
export type PaymentsVoidOutput = Record<string, unknown>;
|
|
1079
1085
|
export interface PhoneFormatInput {
|
|
1080
1086
|
phone?: string | null;
|
|
1081
1087
|
format?: "e164" | "international" | "national" | "rfc3966" | null;
|
|
@@ -2284,6 +2290,8 @@ export declare const payments: {
|
|
|
2284
2290
|
confirm: (input: PaymentsConfirmInput) => Promise<PaymentsConfirmOutput>;
|
|
2285
2291
|
/** Process a full or partial refund against a payment record */
|
|
2286
2292
|
refund: (input: PaymentsRefundInput) => Promise<PaymentsRefundOutput>;
|
|
2293
|
+
/** Void a mistaken manual payment without recording a refund. */
|
|
2294
|
+
void: (input: PaymentsVoidInput) => Promise<PaymentsVoidOutput>;
|
|
2287
2295
|
};
|
|
2288
2296
|
export declare const phone: {
|
|
2289
2297
|
/** Format a phone number into a human-readable string */
|
|
@@ -113,6 +113,7 @@ export declare const payments: {
|
|
|
113
113
|
checkout: typeof rootPayments.checkout;
|
|
114
114
|
confirm: typeof rootPayments.confirm;
|
|
115
115
|
refund: typeof rootPayments.refund;
|
|
116
|
+
void: typeof rootPayments.void;
|
|
116
117
|
};
|
|
117
118
|
export declare const phone: {
|
|
118
119
|
format: typeof rootPhone.format;
|
package/dist/index.js
CHANGED
package/dist/profiles/test.js
CHANGED
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
web,
|
|
36
36
|
workflow,
|
|
37
37
|
workspace
|
|
38
|
-
} from "../chunks/chunk-
|
|
38
|
+
} from "../chunks/chunk-YZBFKUC2.js";
|
|
39
39
|
import {
|
|
40
40
|
InputField,
|
|
41
41
|
InputSchema,
|
|
@@ -164,7 +164,8 @@ var payments2 = {
|
|
|
164
164
|
charge: payments.charge,
|
|
165
165
|
checkout: payments.checkout,
|
|
166
166
|
confirm: payments.confirm,
|
|
167
|
-
refund: payments.refund
|
|
167
|
+
refund: payments.refund,
|
|
168
|
+
void: payments.void
|
|
168
169
|
};
|
|
169
170
|
var phone2 = {
|
|
170
171
|
format: phone.format
|
package/package.json
CHANGED