@unified-api/typescript-sdk 2.9.13 → 2.9.14
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/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/package.json +1 -1
- package/sdk/models/shared/crmevent.d.ts +18 -0
- package/sdk/models/shared/crmevent.d.ts.map +1 -1
- package/sdk/models/shared/crmevent.js +16 -0
- package/sdk/models/shared/crmevent.js.map +1 -1
- package/sdk/models/shared/crmeventformfield.d.ts +95 -0
- package/sdk/models/shared/crmeventformfield.d.ts.map +1 -0
- package/sdk/models/shared/crmeventformfield.js +96 -0
- package/sdk/models/shared/crmeventformfield.js.map +1 -0
- package/sdk/models/shared/crmeventformoption.d.ts +31 -0
- package/sdk/models/shared/crmeventformoption.d.ts.map +1 -0
- package/sdk/models/shared/crmeventformoption.js +61 -0
- package/sdk/models/shared/crmeventformoption.js.map +1 -0
- package/sdk/models/shared/index.d.ts +5 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +5 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/propertycrmeventemail.d.ts +2 -2
- package/sdk/models/shared/propertycrmeventform.d.ts +36 -0
- package/sdk/models/shared/propertycrmeventform.d.ts.map +1 -0
- package/sdk/models/shared/propertycrmeventform.js +78 -0
- package/sdk/models/shared/propertycrmeventform.js.map +1 -0
- package/sdk/models/shared/propertycrmeventmarketingemail.d.ts +47 -0
- package/sdk/models/shared/propertycrmeventmarketingemail.d.ts.map +1 -0
- package/sdk/models/shared/propertycrmeventmarketingemail.js +80 -0
- package/sdk/models/shared/propertycrmeventmarketingemail.js.map +1 -0
- package/sdk/models/shared/propertycrmeventpageview.d.ts +33 -0
- package/sdk/models/shared/propertycrmeventpageview.d.ts.map +1 -0
- package/sdk/models/shared/propertycrmeventpageview.js +63 -0
- package/sdk/models/shared/propertycrmeventpageview.js.map +1 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/models/shared/crmevent.ts +37 -0
- package/src/sdk/models/shared/crmeventformfield.ts +123 -0
- package/src/sdk/models/shared/crmeventformoption.ts +70 -0
- package/src/sdk/models/shared/index.ts +5 -0
- package/src/sdk/models/shared/propertycrmeventemail.ts +2 -2
- package/src/sdk/models/shared/propertycrmeventform.ts +96 -0
- package/src/sdk/models/shared/propertycrmeventmarketingemail.ts +107 -0
- package/src/sdk/models/shared/propertycrmeventpageview.ts +74 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { CrmEventFormField, CrmEventFormField$Outbound } from "./crmeventformfield.js";
|
|
5
|
+
export type PropertyCrmEventForm = {
|
|
6
|
+
archivedAt?: Date | undefined;
|
|
7
|
+
fields?: Array<CrmEventFormField> | undefined;
|
|
8
|
+
name?: string | undefined;
|
|
9
|
+
redirectUrl?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const PropertyCrmEventForm$inboundSchema: z.ZodType<PropertyCrmEventForm, z.ZodTypeDef, unknown>;
|
|
13
|
+
/** @internal */
|
|
14
|
+
export type PropertyCrmEventForm$Outbound = {
|
|
15
|
+
archived_at?: string | undefined;
|
|
16
|
+
fields?: Array<CrmEventFormField$Outbound> | undefined;
|
|
17
|
+
name?: string | undefined;
|
|
18
|
+
redirect_url?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const PropertyCrmEventForm$outboundSchema: z.ZodType<PropertyCrmEventForm$Outbound, z.ZodTypeDef, PropertyCrmEventForm>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
25
|
+
*/
|
|
26
|
+
export declare namespace PropertyCrmEventForm$ {
|
|
27
|
+
/** @deprecated use `PropertyCrmEventForm$inboundSchema` instead. */
|
|
28
|
+
const inboundSchema: z.ZodType<PropertyCrmEventForm, z.ZodTypeDef, unknown>;
|
|
29
|
+
/** @deprecated use `PropertyCrmEventForm$outboundSchema` instead. */
|
|
30
|
+
const outboundSchema: z.ZodType<PropertyCrmEventForm$Outbound, z.ZodTypeDef, PropertyCrmEventForm>;
|
|
31
|
+
/** @deprecated use `PropertyCrmEventForm$Outbound` instead. */
|
|
32
|
+
type Outbound = PropertyCrmEventForm$Outbound;
|
|
33
|
+
}
|
|
34
|
+
export declare function propertyCrmEventFormToJSON(propertyCrmEventForm: PropertyCrmEventForm): string;
|
|
35
|
+
export declare function propertyCrmEventFormFromJSON(jsonString: string): SafeParseResult<PropertyCrmEventForm, SDKValidationError>;
|
|
36
|
+
//# sourceMappingURL=propertycrmeventform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertycrmeventform.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/shared/propertycrmeventform.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC9B,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,MAAM,CAAC,EAAE,KAAK,CAAC,0BAA0B,CAAC,GAAG,SAAS,CAAC;IACvD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAWpB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qBAAqB,CAAC;IACrC,oEAAoE;IAC7D,MAAM,aAAa,wDAAqC,CAAC;IAChE,qEAAqE;IAC9D,MAAM,cAAc,8EAAsC,CAAC;IAClE,+DAA+D;IAC/D,KAAY,QAAQ,GAAG,6BAA6B,CAAC;CACtD;AAED,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PropertyCrmEventForm$ = exports.PropertyCrmEventForm$outboundSchema = exports.PropertyCrmEventForm$inboundSchema = void 0;
|
|
30
|
+
exports.propertyCrmEventFormToJSON = propertyCrmEventFormToJSON;
|
|
31
|
+
exports.propertyCrmEventFormFromJSON = propertyCrmEventFormFromJSON;
|
|
32
|
+
const z = __importStar(require("zod"));
|
|
33
|
+
const primitives_js_1 = require("../../../lib/primitives.js");
|
|
34
|
+
const schemas_js_1 = require("../../../lib/schemas.js");
|
|
35
|
+
const crmeventformfield_js_1 = require("./crmeventformfield.js");
|
|
36
|
+
/** @internal */
|
|
37
|
+
exports.PropertyCrmEventForm$inboundSchema = z.object({
|
|
38
|
+
archived_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
39
|
+
.optional(),
|
|
40
|
+
fields: z.array(crmeventformfield_js_1.CrmEventFormField$inboundSchema).optional(),
|
|
41
|
+
name: z.string().optional(),
|
|
42
|
+
redirect_url: z.string().optional(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return (0, primitives_js_1.remap)(v, {
|
|
45
|
+
"archived_at": "archivedAt",
|
|
46
|
+
"redirect_url": "redirectUrl",
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.PropertyCrmEventForm$outboundSchema = z.object({
|
|
51
|
+
archivedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
52
|
+
fields: z.array(crmeventformfield_js_1.CrmEventFormField$outboundSchema).optional(),
|
|
53
|
+
name: z.string().optional(),
|
|
54
|
+
redirectUrl: z.string().optional(),
|
|
55
|
+
}).transform((v) => {
|
|
56
|
+
return (0, primitives_js_1.remap)(v, {
|
|
57
|
+
archivedAt: "archived_at",
|
|
58
|
+
redirectUrl: "redirect_url",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
var PropertyCrmEventForm$;
|
|
66
|
+
(function (PropertyCrmEventForm$) {
|
|
67
|
+
/** @deprecated use `PropertyCrmEventForm$inboundSchema` instead. */
|
|
68
|
+
PropertyCrmEventForm$.inboundSchema = exports.PropertyCrmEventForm$inboundSchema;
|
|
69
|
+
/** @deprecated use `PropertyCrmEventForm$outboundSchema` instead. */
|
|
70
|
+
PropertyCrmEventForm$.outboundSchema = exports.PropertyCrmEventForm$outboundSchema;
|
|
71
|
+
})(PropertyCrmEventForm$ || (exports.PropertyCrmEventForm$ = PropertyCrmEventForm$ = {}));
|
|
72
|
+
function propertyCrmEventFormToJSON(propertyCrmEventForm) {
|
|
73
|
+
return JSON.stringify(exports.PropertyCrmEventForm$outboundSchema.parse(propertyCrmEventForm));
|
|
74
|
+
}
|
|
75
|
+
function propertyCrmEventFormFromJSON(jsonString) {
|
|
76
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PropertyCrmEventForm$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PropertyCrmEventForm' from JSON`);
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=propertycrmeventform.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertycrmeventform.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/propertycrmeventform.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EH,gEAMC;AAED,oEAQC;AA3FD,uCAAyB;AACzB,8DAA6D;AAC7D,wDAAoD;AAGpD,iEAKgC;AAShC,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;SAC3E,QAAQ,EAAE;IACb,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,sDAA+B,CAAC,CAAC,QAAQ,EAAE;IAC3D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,YAAY;QAC3B,cAAc,EAAE,aAAa;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/D,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,uDAAgC,CAAC,CAAC,QAAQ,EAAE;IAC5D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;QACzB,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACpC,oEAAoE;IACvD,mCAAa,GAAG,0CAAkC,CAAC;IAChE,qEAAqE;IACxD,oCAAc,GAAG,2CAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,qCAArB,qBAAqB,QAOrC;AAED,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AAED,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type PropertyCrmEventMarketingEmail = {
|
|
5
|
+
attachmentFileIds?: Array<string> | undefined;
|
|
6
|
+
body?: string | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* The event email's cc name & email (name <test@test.com>)
|
|
9
|
+
*/
|
|
10
|
+
cc?: Array<string> | undefined;
|
|
11
|
+
from?: string | undefined;
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
subject?: string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* The event email's "to" name & email (name <test@test.com>)
|
|
16
|
+
*/
|
|
17
|
+
to?: Array<string> | undefined;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const PropertyCrmEventMarketingEmail$inboundSchema: z.ZodType<PropertyCrmEventMarketingEmail, z.ZodTypeDef, unknown>;
|
|
21
|
+
/** @internal */
|
|
22
|
+
export type PropertyCrmEventMarketingEmail$Outbound = {
|
|
23
|
+
attachment_file_ids?: Array<string> | undefined;
|
|
24
|
+
body?: string | undefined;
|
|
25
|
+
cc?: Array<string> | undefined;
|
|
26
|
+
from?: string | undefined;
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
subject?: string | undefined;
|
|
29
|
+
to?: Array<string> | undefined;
|
|
30
|
+
};
|
|
31
|
+
/** @internal */
|
|
32
|
+
export declare const PropertyCrmEventMarketingEmail$outboundSchema: z.ZodType<PropertyCrmEventMarketingEmail$Outbound, z.ZodTypeDef, PropertyCrmEventMarketingEmail>;
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
36
|
+
*/
|
|
37
|
+
export declare namespace PropertyCrmEventMarketingEmail$ {
|
|
38
|
+
/** @deprecated use `PropertyCrmEventMarketingEmail$inboundSchema` instead. */
|
|
39
|
+
const inboundSchema: z.ZodType<PropertyCrmEventMarketingEmail, z.ZodTypeDef, unknown>;
|
|
40
|
+
/** @deprecated use `PropertyCrmEventMarketingEmail$outboundSchema` instead. */
|
|
41
|
+
const outboundSchema: z.ZodType<PropertyCrmEventMarketingEmail$Outbound, z.ZodTypeDef, PropertyCrmEventMarketingEmail>;
|
|
42
|
+
/** @deprecated use `PropertyCrmEventMarketingEmail$Outbound` instead. */
|
|
43
|
+
type Outbound = PropertyCrmEventMarketingEmail$Outbound;
|
|
44
|
+
}
|
|
45
|
+
export declare function propertyCrmEventMarketingEmailToJSON(propertyCrmEventMarketingEmail: PropertyCrmEventMarketingEmail): string;
|
|
46
|
+
export declare function propertyCrmEventMarketingEmailFromJSON(jsonString: string): SafeParseResult<PropertyCrmEventMarketingEmail, SDKValidationError>;
|
|
47
|
+
//# sourceMappingURL=propertycrmeventmarketingemail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertycrmeventmarketingemail.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/shared/propertycrmeventmarketingemail.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,8BAA8B,GAAG;IAC3C,iBAAiB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,uCAAuC,GAAG;IACpD,mBAAmB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAChD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,EAAE,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,EAAE,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,uCAAuC,EACvC,CAAC,CAAC,UAAU,EACZ,8BAA8B,CAa9B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,+BAA+B,CAAC;IAC/C,8EAA8E;IACvE,MAAM,aAAa,kEAA+C,CAAC;IAC1E,+EAA+E;IACxE,MAAM,cAAc,kGAAgD,CAAC;IAC5E,yEAAyE;IACzE,KAAY,QAAQ,GAAG,uCAAuC,CAAC;CAChE;AAED,wBAAgB,oCAAoC,CAClD,8BAA8B,EAAE,8BAA8B,GAC7D,MAAM,CAMR;AAED,wBAAgB,sCAAsC,CACpD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,8BAA8B,EAAE,kBAAkB,CAAC,CAMrE"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PropertyCrmEventMarketingEmail$ = exports.PropertyCrmEventMarketingEmail$outboundSchema = exports.PropertyCrmEventMarketingEmail$inboundSchema = void 0;
|
|
30
|
+
exports.propertyCrmEventMarketingEmailToJSON = propertyCrmEventMarketingEmailToJSON;
|
|
31
|
+
exports.propertyCrmEventMarketingEmailFromJSON = propertyCrmEventMarketingEmailFromJSON;
|
|
32
|
+
const z = __importStar(require("zod"));
|
|
33
|
+
const primitives_js_1 = require("../../../lib/primitives.js");
|
|
34
|
+
const schemas_js_1 = require("../../../lib/schemas.js");
|
|
35
|
+
/** @internal */
|
|
36
|
+
exports.PropertyCrmEventMarketingEmail$inboundSchema = z.object({
|
|
37
|
+
attachment_file_ids: z.array(z.string()).optional(),
|
|
38
|
+
body: z.string().optional(),
|
|
39
|
+
cc: z.array(z.string()).optional(),
|
|
40
|
+
from: z.string().optional(),
|
|
41
|
+
name: z.string().optional(),
|
|
42
|
+
subject: z.string().optional(),
|
|
43
|
+
to: z.array(z.string()).optional(),
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return (0, primitives_js_1.remap)(v, {
|
|
46
|
+
"attachment_file_ids": "attachmentFileIds",
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.PropertyCrmEventMarketingEmail$outboundSchema = z.object({
|
|
51
|
+
attachmentFileIds: z.array(z.string()).optional(),
|
|
52
|
+
body: z.string().optional(),
|
|
53
|
+
cc: z.array(z.string()).optional(),
|
|
54
|
+
from: z.string().optional(),
|
|
55
|
+
name: z.string().optional(),
|
|
56
|
+
subject: z.string().optional(),
|
|
57
|
+
to: z.array(z.string()).optional(),
|
|
58
|
+
}).transform((v) => {
|
|
59
|
+
return (0, primitives_js_1.remap)(v, {
|
|
60
|
+
attachmentFileIds: "attachment_file_ids",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
+
*/
|
|
67
|
+
var PropertyCrmEventMarketingEmail$;
|
|
68
|
+
(function (PropertyCrmEventMarketingEmail$) {
|
|
69
|
+
/** @deprecated use `PropertyCrmEventMarketingEmail$inboundSchema` instead. */
|
|
70
|
+
PropertyCrmEventMarketingEmail$.inboundSchema = exports.PropertyCrmEventMarketingEmail$inboundSchema;
|
|
71
|
+
/** @deprecated use `PropertyCrmEventMarketingEmail$outboundSchema` instead. */
|
|
72
|
+
PropertyCrmEventMarketingEmail$.outboundSchema = exports.PropertyCrmEventMarketingEmail$outboundSchema;
|
|
73
|
+
})(PropertyCrmEventMarketingEmail$ || (exports.PropertyCrmEventMarketingEmail$ = PropertyCrmEventMarketingEmail$ = {}));
|
|
74
|
+
function propertyCrmEventMarketingEmailToJSON(propertyCrmEventMarketingEmail) {
|
|
75
|
+
return JSON.stringify(exports.PropertyCrmEventMarketingEmail$outboundSchema.parse(propertyCrmEventMarketingEmail));
|
|
76
|
+
}
|
|
77
|
+
function propertyCrmEventMarketingEmailFromJSON(jsonString) {
|
|
78
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PropertyCrmEventMarketingEmail$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PropertyCrmEventMarketingEmail' from JSON`);
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=propertycrmeventmarketingemail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertycrmeventmarketingemail.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/propertycrmeventmarketingemail.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFH,oFAQC;AAED,wFAQC;AAtGD,uCAAyB;AACzB,8DAA6D;AAC7D,wDAAoD;AAoBpD,gBAAgB;AACH,QAAA,4CAA4C,GAIrD,CAAC,CAAC,MAAM,CAAC;IACX,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,qBAAqB,EAAE,mBAAmB;KAC3C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAaH,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,iBAAiB,EAAE,qBAAqB;KACzC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,+BAA+B,CAO/C;AAPD,WAAiB,+BAA+B;IAC9C,8EAA8E;IACjE,6CAAa,GAAG,oDAA4C,CAAC;IAC1E,+EAA+E;IAClE,8CAAc,GAAG,qDAA6C,CAAC;AAG9E,CAAC,EAPgB,+BAA+B,+CAA/B,+BAA+B,QAO/C;AAED,SAAgB,oCAAoC,CAClD,8BAA8D;IAE9D,OAAO,IAAI,CAAC,SAAS,CACnB,qDAA6C,CAAC,KAAK,CACjD,8BAA8B,CAC/B,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,sCAAsC,CACpD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oDAA4C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxE,4DAA4D,CAC7D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type PropertyCrmEventPageView = {
|
|
5
|
+
average?: number | undefined;
|
|
6
|
+
count?: number | undefined;
|
|
7
|
+
url?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const PropertyCrmEventPageView$inboundSchema: z.ZodType<PropertyCrmEventPageView, z.ZodTypeDef, unknown>;
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type PropertyCrmEventPageView$Outbound = {
|
|
13
|
+
average?: number | undefined;
|
|
14
|
+
count?: number | undefined;
|
|
15
|
+
url?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const PropertyCrmEventPageView$outboundSchema: z.ZodType<PropertyCrmEventPageView$Outbound, z.ZodTypeDef, PropertyCrmEventPageView>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
+
*/
|
|
23
|
+
export declare namespace PropertyCrmEventPageView$ {
|
|
24
|
+
/** @deprecated use `PropertyCrmEventPageView$inboundSchema` instead. */
|
|
25
|
+
const inboundSchema: z.ZodType<PropertyCrmEventPageView, z.ZodTypeDef, unknown>;
|
|
26
|
+
/** @deprecated use `PropertyCrmEventPageView$outboundSchema` instead. */
|
|
27
|
+
const outboundSchema: z.ZodType<PropertyCrmEventPageView$Outbound, z.ZodTypeDef, PropertyCrmEventPageView>;
|
|
28
|
+
/** @deprecated use `PropertyCrmEventPageView$Outbound` instead. */
|
|
29
|
+
type Outbound = PropertyCrmEventPageView$Outbound;
|
|
30
|
+
}
|
|
31
|
+
export declare function propertyCrmEventPageViewToJSON(propertyCrmEventPageView: PropertyCrmEventPageView): string;
|
|
32
|
+
export declare function propertyCrmEventPageViewFromJSON(jsonString: string): SafeParseResult<PropertyCrmEventPageView, SDKValidationError>;
|
|
33
|
+
//# sourceMappingURL=propertycrmeventpageview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertycrmeventpageview.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/shared/propertycrmeventpageview.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CAKxB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,yBAAyB,CAAC;IACzC,wEAAwE;IACjE,MAAM,aAAa,4DAAyC,CAAC;IACpE,yEAAyE;IAClE,MAAM,cAAc,sFAA0C,CAAC;IACtE,mEAAmE;IACnE,KAAY,QAAQ,GAAG,iCAAiC,CAAC;CAC1D;AAED,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR;AAED,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PropertyCrmEventPageView$ = exports.PropertyCrmEventPageView$outboundSchema = exports.PropertyCrmEventPageView$inboundSchema = void 0;
|
|
30
|
+
exports.propertyCrmEventPageViewToJSON = propertyCrmEventPageViewToJSON;
|
|
31
|
+
exports.propertyCrmEventPageViewFromJSON = propertyCrmEventPageViewFromJSON;
|
|
32
|
+
const z = __importStar(require("zod"));
|
|
33
|
+
const schemas_js_1 = require("../../../lib/schemas.js");
|
|
34
|
+
/** @internal */
|
|
35
|
+
exports.PropertyCrmEventPageView$inboundSchema = z.object({
|
|
36
|
+
average: z.number().optional(),
|
|
37
|
+
count: z.number().optional(),
|
|
38
|
+
url: z.string().optional(),
|
|
39
|
+
});
|
|
40
|
+
/** @internal */
|
|
41
|
+
exports.PropertyCrmEventPageView$outboundSchema = z.object({
|
|
42
|
+
average: z.number().optional(),
|
|
43
|
+
count: z.number().optional(),
|
|
44
|
+
url: z.string().optional(),
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
var PropertyCrmEventPageView$;
|
|
51
|
+
(function (PropertyCrmEventPageView$) {
|
|
52
|
+
/** @deprecated use `PropertyCrmEventPageView$inboundSchema` instead. */
|
|
53
|
+
PropertyCrmEventPageView$.inboundSchema = exports.PropertyCrmEventPageView$inboundSchema;
|
|
54
|
+
/** @deprecated use `PropertyCrmEventPageView$outboundSchema` instead. */
|
|
55
|
+
PropertyCrmEventPageView$.outboundSchema = exports.PropertyCrmEventPageView$outboundSchema;
|
|
56
|
+
})(PropertyCrmEventPageView$ || (exports.PropertyCrmEventPageView$ = PropertyCrmEventPageView$ = {}));
|
|
57
|
+
function propertyCrmEventPageViewToJSON(propertyCrmEventPageView) {
|
|
58
|
+
return JSON.stringify(exports.PropertyCrmEventPageView$outboundSchema.parse(propertyCrmEventPageView));
|
|
59
|
+
}
|
|
60
|
+
function propertyCrmEventPageViewFromJSON(jsonString) {
|
|
61
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PropertyCrmEventPageView$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PropertyCrmEventPageView' from JSON`);
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=propertycrmeventpageview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertycrmeventpageview.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/propertycrmeventpageview.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDH,wEAMC;AAED,4EAQC;AArED,uCAAyB;AACzB,wDAAoD;AAUpD,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,yBAAyB,CAOzC;AAPD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,8CAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,+CAAuC,CAAC;AAGxE,CAAC,EAPgB,yBAAyB,yCAAzB,yBAAyB,QAOzC;AAED,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
|
package/src/lib/config.ts
CHANGED
|
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.0",
|
|
68
|
-
sdkVersion: "2.9.
|
|
68
|
+
sdkVersion: "2.9.14",
|
|
69
69
|
genVersion: "2.484.0",
|
|
70
70
|
userAgent:
|
|
71
|
-
"speakeasy-sdk/typescript 2.9.
|
|
71
|
+
"speakeasy-sdk/typescript 2.9.14 2.484.0 1.0 @unified-api/typescript-sdk",
|
|
72
72
|
} as const;
|
|
@@ -20,6 +20,18 @@ import {
|
|
|
20
20
|
PropertyCrmEventEmail$Outbound,
|
|
21
21
|
PropertyCrmEventEmail$outboundSchema,
|
|
22
22
|
} from "./propertycrmeventemail.js";
|
|
23
|
+
import {
|
|
24
|
+
PropertyCrmEventForm,
|
|
25
|
+
PropertyCrmEventForm$inboundSchema,
|
|
26
|
+
PropertyCrmEventForm$Outbound,
|
|
27
|
+
PropertyCrmEventForm$outboundSchema,
|
|
28
|
+
} from "./propertycrmeventform.js";
|
|
29
|
+
import {
|
|
30
|
+
PropertyCrmEventMarketingEmail,
|
|
31
|
+
PropertyCrmEventMarketingEmail$inboundSchema,
|
|
32
|
+
PropertyCrmEventMarketingEmail$Outbound,
|
|
33
|
+
PropertyCrmEventMarketingEmail$outboundSchema,
|
|
34
|
+
} from "./propertycrmeventmarketingemail.js";
|
|
23
35
|
import {
|
|
24
36
|
PropertyCrmEventMeeting,
|
|
25
37
|
PropertyCrmEventMeeting$inboundSchema,
|
|
@@ -32,6 +44,12 @@ import {
|
|
|
32
44
|
PropertyCrmEventNote$Outbound,
|
|
33
45
|
PropertyCrmEventNote$outboundSchema,
|
|
34
46
|
} from "./propertycrmeventnote.js";
|
|
47
|
+
import {
|
|
48
|
+
PropertyCrmEventPageView,
|
|
49
|
+
PropertyCrmEventPageView$inboundSchema,
|
|
50
|
+
PropertyCrmEventPageView$Outbound,
|
|
51
|
+
PropertyCrmEventPageView$outboundSchema,
|
|
52
|
+
} from "./propertycrmeventpageview.js";
|
|
35
53
|
import {
|
|
36
54
|
PropertyCrmEventTask,
|
|
37
55
|
PropertyCrmEventTask$inboundSchema,
|
|
@@ -45,6 +63,9 @@ export const CrmEventType = {
|
|
|
45
63
|
Task: "TASK",
|
|
46
64
|
Meeting: "MEETING",
|
|
47
65
|
Call: "CALL",
|
|
66
|
+
MarketingEmail: "MARKETING_EMAIL",
|
|
67
|
+
Form: "FORM",
|
|
68
|
+
PageView: "PAGE_VIEW",
|
|
48
69
|
} as const;
|
|
49
70
|
export type CrmEventType = ClosedEnum<typeof CrmEventType>;
|
|
50
71
|
|
|
@@ -73,8 +94,10 @@ export type CrmEvent = {
|
|
|
73
94
|
* The email object, when type = email
|
|
74
95
|
*/
|
|
75
96
|
email?: PropertyCrmEventEmail | undefined;
|
|
97
|
+
form?: PropertyCrmEventForm | undefined;
|
|
76
98
|
id?: string | undefined;
|
|
77
99
|
leadIds?: Array<string> | undefined;
|
|
100
|
+
marketingEmail?: PropertyCrmEventMarketingEmail | undefined;
|
|
78
101
|
/**
|
|
79
102
|
* The meeting object, when type = meeting
|
|
80
103
|
*/
|
|
@@ -83,6 +106,7 @@ export type CrmEvent = {
|
|
|
83
106
|
* The note object, when type = note
|
|
84
107
|
*/
|
|
85
108
|
note?: PropertyCrmEventNote | undefined;
|
|
109
|
+
pageView?: PropertyCrmEventPageView | undefined;
|
|
86
110
|
/**
|
|
87
111
|
* The raw data returned by the integration for this event.
|
|
88
112
|
*/
|
|
@@ -128,10 +152,13 @@ export const CrmEvent$inboundSchema: z.ZodType<
|
|
|
128
152
|
.optional(),
|
|
129
153
|
deal_ids: z.array(z.string()).optional(),
|
|
130
154
|
email: PropertyCrmEventEmail$inboundSchema.optional(),
|
|
155
|
+
form: PropertyCrmEventForm$inboundSchema.optional(),
|
|
131
156
|
id: z.string().optional(),
|
|
132
157
|
lead_ids: z.array(z.string()).optional(),
|
|
158
|
+
marketing_email: PropertyCrmEventMarketingEmail$inboundSchema.optional(),
|
|
133
159
|
meeting: PropertyCrmEventMeeting$inboundSchema.optional(),
|
|
134
160
|
note: PropertyCrmEventNote$inboundSchema.optional(),
|
|
161
|
+
page_view: PropertyCrmEventPageView$inboundSchema.optional(),
|
|
135
162
|
raw: z.record(z.any()).optional(),
|
|
136
163
|
task: PropertyCrmEventTask$inboundSchema.optional(),
|
|
137
164
|
type: CrmEventType$inboundSchema.optional(),
|
|
@@ -145,6 +172,8 @@ export const CrmEvent$inboundSchema: z.ZodType<
|
|
|
145
172
|
"created_at": "createdAt",
|
|
146
173
|
"deal_ids": "dealIds",
|
|
147
174
|
"lead_ids": "leadIds",
|
|
175
|
+
"marketing_email": "marketingEmail",
|
|
176
|
+
"page_view": "pageView",
|
|
148
177
|
"updated_at": "updatedAt",
|
|
149
178
|
"user_id": "userId",
|
|
150
179
|
});
|
|
@@ -158,10 +187,13 @@ export type CrmEvent$Outbound = {
|
|
|
158
187
|
created_at?: string | undefined;
|
|
159
188
|
deal_ids?: Array<string> | undefined;
|
|
160
189
|
email?: PropertyCrmEventEmail$Outbound | undefined;
|
|
190
|
+
form?: PropertyCrmEventForm$Outbound | undefined;
|
|
161
191
|
id?: string | undefined;
|
|
162
192
|
lead_ids?: Array<string> | undefined;
|
|
193
|
+
marketing_email?: PropertyCrmEventMarketingEmail$Outbound | undefined;
|
|
163
194
|
meeting?: PropertyCrmEventMeeting$Outbound | undefined;
|
|
164
195
|
note?: PropertyCrmEventNote$Outbound | undefined;
|
|
196
|
+
page_view?: PropertyCrmEventPageView$Outbound | undefined;
|
|
165
197
|
raw?: { [k: string]: any } | undefined;
|
|
166
198
|
task?: PropertyCrmEventTask$Outbound | undefined;
|
|
167
199
|
type?: string | undefined;
|
|
@@ -181,10 +213,13 @@ export const CrmEvent$outboundSchema: z.ZodType<
|
|
|
181
213
|
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
182
214
|
dealIds: z.array(z.string()).optional(),
|
|
183
215
|
email: PropertyCrmEventEmail$outboundSchema.optional(),
|
|
216
|
+
form: PropertyCrmEventForm$outboundSchema.optional(),
|
|
184
217
|
id: z.string().optional(),
|
|
185
218
|
leadIds: z.array(z.string()).optional(),
|
|
219
|
+
marketingEmail: PropertyCrmEventMarketingEmail$outboundSchema.optional(),
|
|
186
220
|
meeting: PropertyCrmEventMeeting$outboundSchema.optional(),
|
|
187
221
|
note: PropertyCrmEventNote$outboundSchema.optional(),
|
|
222
|
+
pageView: PropertyCrmEventPageView$outboundSchema.optional(),
|
|
188
223
|
raw: z.record(z.any()).optional(),
|
|
189
224
|
task: PropertyCrmEventTask$outboundSchema.optional(),
|
|
190
225
|
type: CrmEventType$outboundSchema.optional(),
|
|
@@ -197,6 +232,8 @@ export const CrmEvent$outboundSchema: z.ZodType<
|
|
|
197
232
|
createdAt: "created_at",
|
|
198
233
|
dealIds: "deal_ids",
|
|
199
234
|
leadIds: "lead_ids",
|
|
235
|
+
marketingEmail: "marketing_email",
|
|
236
|
+
pageView: "page_view",
|
|
200
237
|
updatedAt: "updated_at",
|
|
201
238
|
userId: "user_id",
|
|
202
239
|
});
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
CrmEventFormOption,
|
|
12
|
+
CrmEventFormOption$inboundSchema,
|
|
13
|
+
CrmEventFormOption$Outbound,
|
|
14
|
+
CrmEventFormOption$outboundSchema,
|
|
15
|
+
} from "./crmeventformoption.js";
|
|
16
|
+
|
|
17
|
+
export const CrmEventFormFieldType = {
|
|
18
|
+
Text: "TEXT",
|
|
19
|
+
Number: "NUMBER",
|
|
20
|
+
Date: "DATE",
|
|
21
|
+
Boolean: "BOOLEAN",
|
|
22
|
+
MultipleChoice: "MULTIPLE_CHOICE",
|
|
23
|
+
File: "FILE",
|
|
24
|
+
Textarea: "TEXTAREA",
|
|
25
|
+
MultipleSelect: "MULTIPLE_SELECT",
|
|
26
|
+
Email: "EMAIL",
|
|
27
|
+
Phone: "PHONE",
|
|
28
|
+
YesNo: "YES_NO",
|
|
29
|
+
Currency: "CURRENCY",
|
|
30
|
+
Url: "URL",
|
|
31
|
+
} as const;
|
|
32
|
+
export type CrmEventFormFieldType = ClosedEnum<typeof CrmEventFormFieldType>;
|
|
33
|
+
|
|
34
|
+
export type CrmEventFormField = {
|
|
35
|
+
name?: string | undefined;
|
|
36
|
+
options?: Array<CrmEventFormOption> | undefined;
|
|
37
|
+
required?: boolean | undefined;
|
|
38
|
+
type?: CrmEventFormFieldType | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const CrmEventFormFieldType$inboundSchema: z.ZodNativeEnum<
|
|
43
|
+
typeof CrmEventFormFieldType
|
|
44
|
+
> = z.nativeEnum(CrmEventFormFieldType);
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const CrmEventFormFieldType$outboundSchema: z.ZodNativeEnum<
|
|
48
|
+
typeof CrmEventFormFieldType
|
|
49
|
+
> = CrmEventFormFieldType$inboundSchema;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
+
*/
|
|
55
|
+
export namespace CrmEventFormFieldType$ {
|
|
56
|
+
/** @deprecated use `CrmEventFormFieldType$inboundSchema` instead. */
|
|
57
|
+
export const inboundSchema = CrmEventFormFieldType$inboundSchema;
|
|
58
|
+
/** @deprecated use `CrmEventFormFieldType$outboundSchema` instead. */
|
|
59
|
+
export const outboundSchema = CrmEventFormFieldType$outboundSchema;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const CrmEventFormField$inboundSchema: z.ZodType<
|
|
64
|
+
CrmEventFormField,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
unknown
|
|
67
|
+
> = z.object({
|
|
68
|
+
name: z.string().optional(),
|
|
69
|
+
options: z.array(CrmEventFormOption$inboundSchema).optional(),
|
|
70
|
+
required: z.boolean().optional(),
|
|
71
|
+
type: CrmEventFormFieldType$inboundSchema.optional(),
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export type CrmEventFormField$Outbound = {
|
|
76
|
+
name?: string | undefined;
|
|
77
|
+
options?: Array<CrmEventFormOption$Outbound> | undefined;
|
|
78
|
+
required?: boolean | undefined;
|
|
79
|
+
type?: string | undefined;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const CrmEventFormField$outboundSchema: z.ZodType<
|
|
84
|
+
CrmEventFormField$Outbound,
|
|
85
|
+
z.ZodTypeDef,
|
|
86
|
+
CrmEventFormField
|
|
87
|
+
> = z.object({
|
|
88
|
+
name: z.string().optional(),
|
|
89
|
+
options: z.array(CrmEventFormOption$outboundSchema).optional(),
|
|
90
|
+
required: z.boolean().optional(),
|
|
91
|
+
type: CrmEventFormFieldType$outboundSchema.optional(),
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
97
|
+
*/
|
|
98
|
+
export namespace CrmEventFormField$ {
|
|
99
|
+
/** @deprecated use `CrmEventFormField$inboundSchema` instead. */
|
|
100
|
+
export const inboundSchema = CrmEventFormField$inboundSchema;
|
|
101
|
+
/** @deprecated use `CrmEventFormField$outboundSchema` instead. */
|
|
102
|
+
export const outboundSchema = CrmEventFormField$outboundSchema;
|
|
103
|
+
/** @deprecated use `CrmEventFormField$Outbound` instead. */
|
|
104
|
+
export type Outbound = CrmEventFormField$Outbound;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function crmEventFormFieldToJSON(
|
|
108
|
+
crmEventFormField: CrmEventFormField,
|
|
109
|
+
): string {
|
|
110
|
+
return JSON.stringify(
|
|
111
|
+
CrmEventFormField$outboundSchema.parse(crmEventFormField),
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function crmEventFormFieldFromJSON(
|
|
116
|
+
jsonString: string,
|
|
117
|
+
): SafeParseResult<CrmEventFormField, SDKValidationError> {
|
|
118
|
+
return safeParse(
|
|
119
|
+
jsonString,
|
|
120
|
+
(x) => CrmEventFormField$inboundSchema.parse(JSON.parse(x)),
|
|
121
|
+
`Failed to parse 'CrmEventFormField' from JSON`,
|
|
122
|
+
);
|
|
123
|
+
}
|