@superpanel-sdk/runtime 0.2.3 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -8
- package/dist/builder/codegen/emit.d.ts +29 -11
- package/dist/builder/codegen/emit.js +328 -61
- package/dist/builder/codegen/generate.d.ts +21 -0
- package/dist/builder/codegen/generate.js +152 -20
- package/dist/builder/company-import-graph.d.ts +2 -0
- package/dist/builder/company-import-graph.js +40 -8
- package/dist/builder/company-imports.d.ts +24 -0
- package/dist/builder/company-imports.js +114 -0
- package/dist/builder/compile/compile-sequence.d.ts +59 -8
- package/dist/builder/compile/compile-sequence.js +279 -77
- package/dist/builder/compile/function-code.d.ts +12 -2
- package/dist/builder/compile/function-code.js +87 -39
- package/dist/builder/compile/registry.d.ts +7 -3
- package/dist/builder/compile/registry.js +24 -23
- package/dist/builder/load.d.ts +70 -10
- package/dist/builder/load.js +250 -61
- package/dist/builder/paths.d.ts +3 -0
- package/dist/builder/paths.js +16 -0
- package/dist/builder/schedules.d.ts +23 -0
- package/dist/builder/schedules.js +102 -0
- package/dist/builder/slot-schema-validation.d.ts +4 -0
- package/dist/builder/slot-schema-validation.js +10 -0
- package/dist/builder/typecheck.d.ts +8 -0
- package/dist/builder/typecheck.js +105 -0
- package/dist/builder/types.d.ts +91 -19
- package/dist/builder/types.js +2 -1
- package/dist/cli/auth/auth.d.ts +37 -0
- package/dist/cli/auth/auth.js +211 -0
- package/dist/cli/auth/backend-url.d.ts +5 -0
- package/dist/cli/auth/backend-url.js +25 -0
- package/dist/cli/auth/clipboard.d.ts +9 -0
- package/dist/cli/auth/clipboard.js +38 -0
- package/dist/cli/auth/http.d.ts +20 -0
- package/dist/cli/auth/http.js +27 -0
- package/dist/cli/auth/index.d.ts +10 -0
- package/dist/cli/auth/index.js +27 -0
- package/dist/cli/auth/progress.d.ts +12 -0
- package/dist/cli/auth/progress.js +15 -0
- package/dist/cli/auth/serve-login.d.ts +8 -0
- package/dist/cli/auth/serve-login.js +24 -0
- package/dist/cli/compile/index.js +3 -0
- package/dist/cli/config.d.ts +10 -0
- package/dist/cli/config.js +52 -0
- package/dist/cli/index.js +28 -8
- package/dist/cli/serve/index.d.ts +73 -3
- package/dist/cli/serve/index.js +365 -116
- package/dist/cli/type-gen/index.js +9 -8
- package/dist/compiler.d.ts +7 -0
- package/dist/compiler.js +7 -0
- package/dist/compute-host/compute-host.d.ts +15 -23
- package/dist/compute-host/compute-host.js +25 -28
- package/dist/compute-host/index.d.ts +2 -4
- package/dist/compute-host/index.js +1 -2
- package/dist/compute-host/source-compute-host.d.ts +11 -9
- package/dist/compute-host/source-compute-host.js +46 -32
- package/dist/core/case-orchestrator/contact-hours.d.ts +50 -0
- package/dist/core/case-orchestrator/contact-hours.js +108 -0
- package/dist/core/case-orchestrator/follow-ups.d.ts +31 -0
- package/dist/core/case-orchestrator/follow-ups.js +103 -0
- package/dist/core/case-orchestrator/index.d.ts +6 -0
- package/dist/core/case-orchestrator/index.js +6 -0
- package/dist/core/case-orchestrator/render.d.ts +75 -0
- package/dist/core/case-orchestrator/render.js +239 -0
- package/dist/core/case-orchestrator/time.d.ts +11 -0
- package/dist/core/case-orchestrator/time.js +29 -0
- package/dist/core/case-orchestrator/tools.d.ts +29 -0
- package/dist/core/case-orchestrator/tools.js +31 -0
- package/dist/core/case-orchestrator/types.d.ts +753 -0
- package/dist/core/case-orchestrator/types.js +46 -0
- package/dist/core/case-orchestrator/validate.d.ts +11 -0
- package/dist/core/case-orchestrator/validate.js +63 -0
- package/dist/core/context/call.d.ts +291 -0
- package/dist/core/context/call.js +94 -0
- package/dist/core/context/channels.d.ts +60 -0
- package/dist/core/context/channels.js +35 -0
- package/dist/core/context/contact.d.ts +96 -6
- package/dist/core/context/contact.js +48 -2
- package/dist/core/context/email-message.d.ts +159 -0
- package/dist/core/context/email-message.js +59 -0
- package/dist/core/context/email.d.ts +97 -0
- package/dist/core/context/email.js +91 -0
- package/dist/core/context/exchanges.d.ts +142 -0
- package/dist/core/context/exchanges.js +63 -0
- package/dist/core/context/instances.d.ts +278 -0
- package/dist/core/context/instances.js +123 -0
- package/dist/core/context/kv.d.ts +113 -0
- package/dist/core/context/kv.js +60 -0
- package/dist/core/context/platform-registry.d.ts +509 -4
- package/dist/core/context/platform-registry.js +14 -2
- package/dist/core/context/platform.d.ts +2 -1
- package/dist/core/context/sms.d.ts +147 -0
- package/dist/core/context/sms.js +57 -0
- package/dist/core/context/types.d.ts +51 -48
- package/dist/core/context/types.js +1 -7
- package/dist/core/conversation/index.d.ts +31 -0
- package/dist/core/conversation/index.js +14 -0
- package/dist/core/functions/define/bind.d.ts +25 -0
- package/dist/core/functions/define/bind.js +14 -0
- package/dist/core/functions/define/case.d.ts +9 -0
- package/dist/core/functions/define/case.js +13 -0
- package/dist/core/functions/define/events.d.ts +20 -0
- package/dist/core/functions/define/events.js +21 -0
- package/dist/core/functions/define/no-case.d.ts +4 -0
- package/dist/core/functions/define/no-case.js +9 -0
- package/dist/core/functions/events.d.ts +247 -0
- package/dist/core/functions/events.js +32 -0
- package/dist/core/functions/func-ref.d.ts +11 -2
- package/dist/core/functions/schedules.d.ts +51 -0
- package/dist/core/functions/schedules.js +20 -0
- package/dist/core/functions/types.d.ts +62 -51
- package/dist/core/functions/types.js +6 -1
- package/dist/core/office-hours/index.d.ts +39 -0
- package/dist/core/office-hours/index.js +187 -0
- package/dist/core/page/define.d.ts +834 -0
- package/dist/core/page/define.js +477 -0
- package/dist/core/page/ops.d.ts +58 -0
- package/dist/core/page/ops.js +220 -0
- package/dist/core/page/render.d.ts +253 -0
- package/dist/core/page/render.js +840 -0
- package/dist/core/page/time-format.d.ts +19 -0
- package/dist/core/page/time-format.js +41 -0
- package/dist/core/page/timeline.d.ts +40 -0
- package/dist/core/page/timeline.js +2 -0
- package/dist/core/page/typed.d.ts +642 -0
- package/dist/core/page/typed.js +2 -0
- package/dist/core/page/workspace.d.ts +33 -0
- package/dist/core/page/workspace.js +231 -0
- package/dist/core/party/index.d.ts +3 -0
- package/dist/core/party/index.js +3 -0
- package/dist/core/party/schema.d.ts +137 -0
- package/dist/core/party/schema.js +80 -0
- package/dist/core/party/types.d.ts +40 -0
- package/dist/core/party/types.js +15 -0
- package/dist/core/sequence/define.d.ts +57 -0
- package/dist/core/sequence/define.js +10 -0
- package/dist/core/sequence/index.d.ts +63 -0
- package/dist/core/sequence/index.js +231 -0
- package/dist/core/slot/binding.d.ts +40 -0
- package/dist/core/slot/binding.js +2 -0
- package/dist/core/slot/company-metadata.d.ts +113 -0
- package/dist/core/slot/company-metadata.js +563 -0
- package/dist/core/slot/compile-schema.d.ts +19 -13
- package/dist/core/slot/compile-schema.js +51 -248
- package/dist/core/slot/contact-timezone.d.ts +110 -0
- package/dist/core/slot/contact-timezone.js +186 -0
- package/dist/core/slot/field.d.ts +2 -24
- package/dist/core/slot/field.js +0 -69
- package/dist/core/slot/id-ref.d.ts +17 -2
- package/dist/core/slot/id-ref.js +16 -8
- package/dist/core/slot/index.d.ts +12 -13
- package/dist/core/slot/index.js +11 -12
- package/dist/core/slot/naming.d.ts +15 -0
- package/dist/core/slot/naming.js +96 -0
- package/dist/core/slot/platform-fields.d.ts +119 -0
- package/dist/core/slot/platform-fields.js +121 -0
- package/dist/core/slot/ref.d.ts +16 -0
- package/dist/core/slot/ref.js +14 -0
- package/dist/core/slot/row.d.ts +2 -9
- package/dist/core/slot/row.js +13 -23
- package/dist/core/slot/schema-compat.d.ts +16 -0
- package/dist/core/slot/schema-compat.js +112 -0
- package/dist/core/slot/schema.d.ts +409 -76
- package/dist/core/slot/schema.js +178 -10
- package/dist/core/slot/types.d.ts +27 -94
- package/dist/core/slot/value.d.ts +26 -3
- package/dist/core/slot/value.js +89 -57
- package/dist/dev-overlay/protocol.d.ts +41 -8
- package/dist/fn-context/build-context.d.ts +3 -1
- package/dist/fn-context/build-context.js +20 -10
- package/dist/fn-context/fake/empty-api.js +9 -28
- package/dist/fn-context/fake/index.d.ts +11 -4
- package/dist/fn-context/fake/index.js +27 -2
- package/dist/fn-context/fn-params.d.ts +6 -0
- package/dist/fn-context/fn-params.js +13 -0
- package/dist/fn-context/index.d.ts +5 -5
- package/dist/fn-context/index.js +4 -4
- package/dist/fn-context/log.js +2 -2
- package/dist/fn-context/make-ctx.d.ts +11 -0
- package/dist/fn-context/make-ctx.js +18 -8
- package/dist/fn-context/rpc/case-orchestrator-tools.d.ts +24 -0
- package/dist/fn-context/rpc/case-orchestrator-tools.js +13 -0
- package/dist/fn-context/rpc/index.d.ts +3 -1
- package/dist/fn-context/rpc/index.js +3 -1
- package/dist/fn-context/rpc/integration/index.d.ts +4 -4
- package/dist/fn-context/rpc/integration/index.js +1 -1
- package/dist/fn-context/rpc/integration/list-surfaces.d.ts +21 -0
- package/dist/fn-context/rpc/integration/{list-bindings.js → list-surfaces.js} +4 -4
- package/dist/fn-context/rpc/platform.d.ts +2 -2
- package/dist/fn-context/rpc/platform.js +1 -1
- package/dist/fn-context/rpc/records.d.ts +78 -0
- package/dist/fn-context/rpc/records.js +26 -0
- package/dist/fn-context/rpc/trpc-client.d.ts +2 -2
- package/dist/fn-context/rpc/trpc-client.js +88 -7
- package/dist/fn-context/rpc/trpc-init.d.ts +2 -2
- package/dist/fn-context/rpc/trpc-router-factory.d.ts +49 -3
- package/dist/fn-context/rpc/trpc-router-factory.js +2 -0
- package/dist/fn-context/run-scope.d.ts +4 -0
- package/dist/fn-context/run-scope.js +9 -0
- package/dist/fn-context/types.d.ts +36 -3
- package/dist/index.d.ts +37 -46
- package/dist/index.js +33 -33
- package/dist/logger.d.ts +7 -0
- package/dist/logger.js +41 -0
- package/dist/platform.d.ts +76 -0
- package/dist/platform.js +56 -0
- package/dist/voice-service/actions.d.ts +71 -4
- package/dist/voice-service/types.d.ts +42 -5
- package/dist/worker.d.ts +10 -0
- package/dist/worker.js +10 -0
- package/package.json +38 -19
- package/dist/builder/compile/compile-agenda.d.ts +0 -15
- package/dist/builder/compile/compile-agenda.js +0 -64
- package/dist/builder/merge.d.ts +0 -4
- package/dist/builder/merge.js +0 -19
- package/dist/compute-host/read-only-cache.d.ts +0 -20
- package/dist/compute-host/read-only-cache.js +0 -61
- package/dist/core/context/db.d.ts +0 -69
- package/dist/core/context/db.js +0 -44
- package/dist/core/context/docusign.d.ts +0 -134
- package/dist/core/context/docusign.js +0 -108
- package/dist/core/context/filevine.d.ts +0 -323
- package/dist/core/context/filevine.js +0 -254
- package/dist/core/context/http.d.ts +0 -9
- package/dist/core/context/http.js +0 -4
- package/dist/core/context/hubspot.d.ts +0 -250
- package/dist/core/context/hubspot.js +0 -191
- package/dist/core/context/twilio.d.ts +0 -50
- package/dist/core/context/twilio.js +0 -42
- package/dist/core/functions/define/case-context.d.ts +0 -14
- package/dist/core/functions/define/case-context.js +0 -15
- package/dist/core/functions/define/compute.d.ts +0 -7
- package/dist/core/functions/define/compute.js +0 -17
- package/dist/core/functions/define/custom.d.ts +0 -4
- package/dist/core/functions/define/custom.js +0 -8
- package/dist/core/functions/define/system.d.ts +0 -7
- package/dist/core/functions/define/system.js +0 -12
- package/dist/core/slot/deps.d.ts +0 -15
- package/dist/core/slot/deps.js +0 -88
- package/dist/core/slot/derived.d.ts +0 -32
- package/dist/core/slot/derived.js +0 -115
- package/dist/core/slot/platform-session-fields.d.ts +0 -38
- package/dist/core/slot/platform-session-fields.js +0 -48
- package/dist/core/slot/sf-schema.d.ts +0 -23
- package/dist/core/slot/sf-schema.js +0 -125
- package/dist/core/slot/sf-validate.d.ts +0 -14
- package/dist/core/slot/sf-validate.js +0 -132
- package/dist/core/slot/snapshot.d.ts +0 -18
- package/dist/core/slot/snapshot.js +0 -138
- package/dist/core/slot/write.d.ts +0 -48
- package/dist/core/slot/write.js +0 -426
- package/dist/core/stage/builders.d.ts +0 -54
- package/dist/core/stage/builders.js +0 -31
- package/dist/core/stage/condition.d.ts +0 -17
- package/dist/core/stage/condition.js +0 -198
- package/dist/core/stage/drive.d.ts +0 -43
- package/dist/core/stage/drive.js +0 -78
- package/dist/core/stage/finish-when.d.ts +0 -20
- package/dist/core/stage/finish-when.js +0 -82
- package/dist/core/stage/flatten.d.ts +0 -27
- package/dist/core/stage/flatten.js +0 -466
- package/dist/core/stage/index.d.ts +0 -15
- package/dist/core/stage/index.js +0 -13
- package/dist/core/stage/interrupts.d.ts +0 -28
- package/dist/core/stage/interrupts.js +0 -120
- package/dist/core/stage/ivr-fields.d.ts +0 -9
- package/dist/core/stage/ivr-fields.js +0 -75
- package/dist/core/stage/simulate.d.ts +0 -24
- package/dist/core/stage/simulate.js +0 -33
- package/dist/core/stage/transfer-fields.d.ts +0 -19
- package/dist/core/stage/transfer-fields.js +0 -129
- package/dist/core/stage/transfer-spec.d.ts +0 -48
- package/dist/core/stage/transfer-spec.js +0 -113
- package/dist/core/stage/types.d.ts +0 -208
- package/dist/core/stage/types.js +0 -2
- package/dist/core/stage/validate.d.ts +0 -11
- package/dist/core/stage/validate.js +0 -330
- package/dist/core/stage/walk.d.ts +0 -39
- package/dist/core/stage/walk.js +0 -119
- package/dist/fn-context/rpc/integration/list-bindings.d.ts +0 -21
- package/dist/fn-context/system-args.d.ts +0 -6
- package/dist/fn-context/system-args.js +0 -14
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import type { IntegrationAccountFields } from './account-fields.js';
|
|
3
|
-
export declare const filevineProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4
|
-
export type FilevineProperties = z.infer<typeof filevineProperties>;
|
|
5
|
-
export declare const filevineRecord: z.ZodObject<{
|
|
6
|
-
id: z.ZodString;
|
|
7
|
-
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
|
-
}, z.core.$strip>;
|
|
9
|
-
export type FilevineRecord = z.infer<typeof filevineRecord>;
|
|
10
|
-
export declare const filevineCreateContactInput: z.ZodObject<{
|
|
11
|
-
firstName: z.ZodString;
|
|
12
|
-
lastName: z.ZodString;
|
|
13
|
-
email: z.ZodOptional<z.ZodString>;
|
|
14
|
-
phone: z.ZodOptional<z.ZodString>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
export type FilevineCreateContactInput = z.infer<typeof filevineCreateContactInput>;
|
|
17
|
-
export declare const filevineCreateContactOutput: z.ZodObject<{
|
|
18
|
-
id: z.ZodString;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
|
-
export type FilevineCreateContactOutput = z.infer<typeof filevineCreateContactOutput>;
|
|
21
|
-
export declare const filevineUpdateContactInput: z.ZodObject<{
|
|
22
|
-
id: z.ZodString;
|
|
23
|
-
firstName: z.ZodOptional<z.ZodString>;
|
|
24
|
-
lastName: z.ZodOptional<z.ZodString>;
|
|
25
|
-
email: z.ZodOptional<z.ZodString>;
|
|
26
|
-
phone: z.ZodOptional<z.ZodString>;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
|
-
export type FilevineUpdateContactInput = z.infer<typeof filevineUpdateContactInput>;
|
|
29
|
-
export declare const filevineUpdateContactOutput: z.ZodObject<{
|
|
30
|
-
id: z.ZodString;
|
|
31
|
-
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
export type FilevineUpdateContactOutput = FilevineRecord;
|
|
34
|
-
export declare const filevineGetContactInput: z.ZodObject<{
|
|
35
|
-
id: z.ZodString;
|
|
36
|
-
properties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
export type FilevineGetContactInput = z.infer<typeof filevineGetContactInput>;
|
|
39
|
-
export declare const filevineGetContactOutput: z.ZodObject<{
|
|
40
|
-
id: z.ZodString;
|
|
41
|
-
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
export type FilevineGetContactOutput = FilevineRecord;
|
|
44
|
-
export declare const filevineSearchContactsInput: z.ZodObject<{
|
|
45
|
-
email: z.ZodOptional<z.ZodString>;
|
|
46
|
-
firstName: z.ZodOptional<z.ZodString>;
|
|
47
|
-
lastName: z.ZodOptional<z.ZodString>;
|
|
48
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
49
|
-
phone: z.ZodOptional<z.ZodString>;
|
|
50
|
-
searchTerm: z.ZodOptional<z.ZodString>;
|
|
51
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
52
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
export type FilevineSearchContactsInput = z.infer<typeof filevineSearchContactsInput>;
|
|
55
|
-
export declare const filevineSearchContactsOutput: z.ZodObject<{
|
|
56
|
-
results: z.ZodArray<z.ZodObject<{
|
|
57
|
-
id: z.ZodString;
|
|
58
|
-
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
59
|
-
}, z.core.$strip>>;
|
|
60
|
-
count: z.ZodNumber;
|
|
61
|
-
hasMore: z.ZodBoolean;
|
|
62
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
63
|
-
}, z.core.$strip>;
|
|
64
|
-
export type FilevineSearchContactsOutput = z.infer<typeof filevineSearchContactsOutput>;
|
|
65
|
-
export declare const filevineTeamInput: z.ZodObject<{
|
|
66
|
-
teamId: z.ZodString;
|
|
67
|
-
userIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
68
|
-
}, z.core.$strip>;
|
|
69
|
-
export declare const filevineCreateProjectInput: z.ZodObject<{
|
|
70
|
-
projectTypeId: z.ZodString;
|
|
71
|
-
clientId: z.ZodString;
|
|
72
|
-
phaseId: z.ZodString;
|
|
73
|
-
projectName: z.ZodOptional<z.ZodString>;
|
|
74
|
-
description: z.ZodOptional<z.ZodString>;
|
|
75
|
-
teams: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
76
|
-
teamId: z.ZodString;
|
|
77
|
-
userIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
78
|
-
}, z.core.$strip>>>;
|
|
79
|
-
}, z.core.$strip>;
|
|
80
|
-
export type FilevineCreateProjectInput = z.infer<typeof filevineCreateProjectInput>;
|
|
81
|
-
export declare const filevineCreateProjectOutput: z.ZodObject<{
|
|
82
|
-
id: z.ZodString;
|
|
83
|
-
}, z.core.$strip>;
|
|
84
|
-
export type FilevineCreateProjectOutput = z.infer<typeof filevineCreateProjectOutput>;
|
|
85
|
-
export declare const filevineUpdateProjectInput: z.ZodObject<{
|
|
86
|
-
id: z.ZodString;
|
|
87
|
-
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
88
|
-
}, z.core.$strip>;
|
|
89
|
-
export type FilevineUpdateProjectInput = z.infer<typeof filevineUpdateProjectInput>;
|
|
90
|
-
export declare const filevineUpdateProjectOutput: z.ZodObject<{
|
|
91
|
-
id: z.ZodString;
|
|
92
|
-
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
93
|
-
}, z.core.$strip>;
|
|
94
|
-
export type FilevineUpdateProjectOutput = FilevineRecord;
|
|
95
|
-
export declare const filevineGetProjectInput: z.ZodObject<{
|
|
96
|
-
id: z.ZodString;
|
|
97
|
-
properties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
98
|
-
}, z.core.$strip>;
|
|
99
|
-
export type FilevineGetProjectInput = z.infer<typeof filevineGetProjectInput>;
|
|
100
|
-
export declare const filevineGetProjectOutput: z.ZodObject<{
|
|
101
|
-
id: z.ZodString;
|
|
102
|
-
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
103
|
-
}, z.core.$strip>;
|
|
104
|
-
export type FilevineGetProjectOutput = FilevineRecord;
|
|
105
|
-
export declare const filevineGetAssociatedProjectsInput: z.ZodObject<{
|
|
106
|
-
contactId: z.ZodString;
|
|
107
|
-
properties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
108
|
-
}, z.core.$strip>;
|
|
109
|
-
export type FilevineGetAssociatedProjectsInput = z.infer<typeof filevineGetAssociatedProjectsInput>;
|
|
110
|
-
export declare const filevineGetAssociatedProjectsOutput: z.ZodObject<{
|
|
111
|
-
results: z.ZodArray<z.ZodObject<{
|
|
112
|
-
id: z.ZodString;
|
|
113
|
-
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
114
|
-
}, z.core.$strip>>;
|
|
115
|
-
}, z.core.$strip>;
|
|
116
|
-
export type FilevineGetAssociatedProjectsOutput = z.infer<typeof filevineGetAssociatedProjectsOutput>;
|
|
117
|
-
export declare const filevineCreateNoteInput: z.ZodObject<{
|
|
118
|
-
projectId: z.ZodString;
|
|
119
|
-
body: z.ZodString;
|
|
120
|
-
}, z.core.$strip>;
|
|
121
|
-
export type FilevineCreateNoteInput = z.infer<typeof filevineCreateNoteInput>;
|
|
122
|
-
export declare const filevineNoteOutput: z.ZodObject<{
|
|
123
|
-
id: z.ZodString;
|
|
124
|
-
}, z.core.$strip>;
|
|
125
|
-
export type FilevineNoteOutput = z.infer<typeof filevineNoteOutput>;
|
|
126
|
-
export declare const filevineCreateCommentInput: z.ZodObject<{
|
|
127
|
-
noteId: z.ZodString;
|
|
128
|
-
projectId: z.ZodString;
|
|
129
|
-
body: z.ZodString;
|
|
130
|
-
documentId: z.ZodOptional<z.ZodString>;
|
|
131
|
-
}, z.core.$strip>;
|
|
132
|
-
export type FilevineCreateCommentInput = z.infer<typeof filevineCreateCommentInput>;
|
|
133
|
-
export declare const filevineCommentOutput: z.ZodObject<{
|
|
134
|
-
id: z.ZodString;
|
|
135
|
-
}, z.core.$strip>;
|
|
136
|
-
export type FilevineCommentOutput = z.infer<typeof filevineCommentOutput>;
|
|
137
|
-
export declare const filevineCreateNoteWithCommentInput: z.ZodObject<{
|
|
138
|
-
projectId: z.ZodString;
|
|
139
|
-
noteTitle: z.ZodString;
|
|
140
|
-
commentContent: z.ZodString;
|
|
141
|
-
}, z.core.$strip>;
|
|
142
|
-
export type FilevineCreateNoteWithCommentInput = z.infer<typeof filevineCreateNoteWithCommentInput>;
|
|
143
|
-
export declare const filevineCreateNoteWithCommentOutput: z.ZodObject<{
|
|
144
|
-
noteId: z.ZodString;
|
|
145
|
-
commentId: z.ZodString;
|
|
146
|
-
}, z.core.$strip>;
|
|
147
|
-
export type FilevineCreateNoteWithCommentOutput = z.infer<typeof filevineCreateNoteWithCommentOutput>;
|
|
148
|
-
export declare const filevineLogCallInput: z.ZodObject<{
|
|
149
|
-
projectId: z.ZodString;
|
|
150
|
-
title: z.ZodString;
|
|
151
|
-
body: z.ZodString;
|
|
152
|
-
}, z.core.$strip>;
|
|
153
|
-
export type FilevineLogCallInput = z.infer<typeof filevineLogCallInput>;
|
|
154
|
-
export declare const filevineLogSmsInput: z.ZodObject<{
|
|
155
|
-
projectId: z.ZodString;
|
|
156
|
-
sendFrom: z.ZodString;
|
|
157
|
-
message: z.ZodString;
|
|
158
|
-
}, z.core.$strip>;
|
|
159
|
-
export type FilevineLogSmsInput = z.infer<typeof filevineLogSmsInput>;
|
|
160
|
-
export declare const filevineLogEmailInput: z.ZodObject<{
|
|
161
|
-
projectId: z.ZodString;
|
|
162
|
-
sendFrom: z.ZodString;
|
|
163
|
-
message: z.ZodString;
|
|
164
|
-
}, z.core.$strip>;
|
|
165
|
-
export type FilevineLogEmailInput = z.infer<typeof filevineLogEmailInput>;
|
|
166
|
-
export declare const filevineUploadDocumentInput: z.ZodObject<{
|
|
167
|
-
projectId: z.ZodString;
|
|
168
|
-
filename: z.ZodString;
|
|
169
|
-
fileData: z.ZodString;
|
|
170
|
-
hashtags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
171
|
-
}, z.core.$strip>;
|
|
172
|
-
export type FilevineUploadDocumentInput = z.infer<typeof filevineUploadDocumentInput>;
|
|
173
|
-
export declare const filevineUploadDocumentOutput: z.ZodObject<{
|
|
174
|
-
id: z.ZodString;
|
|
175
|
-
}, z.core.$strip>;
|
|
176
|
-
export type FilevineUploadDocumentOutput = z.infer<typeof filevineUploadDocumentOutput>;
|
|
177
|
-
export declare const filevineCollectionItemInput: z.ZodObject<{
|
|
178
|
-
dataObject: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
179
|
-
itemId: z.ZodOptional<z.ZodString>;
|
|
180
|
-
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
181
|
-
createdDate: z.ZodOptional<z.ZodString>;
|
|
182
|
-
}, z.core.$strip>;
|
|
183
|
-
export type FilevineCollectionItemInput = z.infer<typeof filevineCollectionItemInput>;
|
|
184
|
-
export declare const filevineGetProjectCollectionItemsInput: z.ZodObject<{
|
|
185
|
-
projectId: z.ZodString;
|
|
186
|
-
selector: z.ZodString;
|
|
187
|
-
properties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
188
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
189
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
190
|
-
}, z.core.$strip>;
|
|
191
|
-
export type FilevineGetProjectCollectionItemsInput = z.infer<typeof filevineGetProjectCollectionItemsInput>;
|
|
192
|
-
export declare const filevineGetProjectCollectionItemsOutput: z.ZodObject<{
|
|
193
|
-
results: z.ZodArray<z.ZodObject<{
|
|
194
|
-
id: z.ZodString;
|
|
195
|
-
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
196
|
-
}, z.core.$strip>>;
|
|
197
|
-
count: z.ZodOptional<z.ZodNumber>;
|
|
198
|
-
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
200
|
-
}, z.core.$strip>;
|
|
201
|
-
export type FilevineGetProjectCollectionItemsOutput = z.infer<typeof filevineGetProjectCollectionItemsOutput>;
|
|
202
|
-
export declare const filevineGetProjectCollectionItemInput: z.ZodObject<{
|
|
203
|
-
projectId: z.ZodString;
|
|
204
|
-
selector: z.ZodString;
|
|
205
|
-
uniqueId: z.ZodString;
|
|
206
|
-
properties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
207
|
-
}, z.core.$strip>;
|
|
208
|
-
export type FilevineGetProjectCollectionItemInput = z.infer<typeof filevineGetProjectCollectionItemInput>;
|
|
209
|
-
export declare const filevineGetProjectCollectionItemOutput: z.ZodObject<{
|
|
210
|
-
id: z.ZodString;
|
|
211
|
-
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
212
|
-
}, z.core.$strip>;
|
|
213
|
-
export type FilevineGetProjectCollectionItemOutput = FilevineRecord;
|
|
214
|
-
export declare const filevineCreateProjectCollectionItemInput: z.ZodObject<{
|
|
215
|
-
projectId: z.ZodString;
|
|
216
|
-
selector: z.ZodString;
|
|
217
|
-
item: z.ZodObject<{
|
|
218
|
-
dataObject: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
219
|
-
itemId: z.ZodOptional<z.ZodString>;
|
|
220
|
-
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
221
|
-
createdDate: z.ZodOptional<z.ZodString>;
|
|
222
|
-
}, z.core.$strip>;
|
|
223
|
-
}, z.core.$strip>;
|
|
224
|
-
export type FilevineCreateProjectCollectionItemInput = z.infer<typeof filevineCreateProjectCollectionItemInput>;
|
|
225
|
-
export declare const filevineCreateProjectCollectionItemOutput: z.ZodObject<{
|
|
226
|
-
id: z.ZodString;
|
|
227
|
-
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
228
|
-
}, z.core.$strip>;
|
|
229
|
-
export type FilevineCreateProjectCollectionItemOutput = FilevineRecord;
|
|
230
|
-
export declare const filevineUpdateProjectCollectionItemInput: z.ZodObject<{
|
|
231
|
-
projectId: z.ZodString;
|
|
232
|
-
selector: z.ZodString;
|
|
233
|
-
uniqueId: z.ZodString;
|
|
234
|
-
item: z.ZodObject<{
|
|
235
|
-
dataObject: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
236
|
-
itemId: z.ZodOptional<z.ZodString>;
|
|
237
|
-
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
238
|
-
createdDate: z.ZodOptional<z.ZodString>;
|
|
239
|
-
}, z.core.$strip>;
|
|
240
|
-
}, z.core.$strip>;
|
|
241
|
-
export type FilevineUpdateProjectCollectionItemInput = z.infer<typeof filevineUpdateProjectCollectionItemInput>;
|
|
242
|
-
export declare const filevineUpdateProjectCollectionItemOutput: z.ZodObject<{
|
|
243
|
-
id: z.ZodString;
|
|
244
|
-
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
245
|
-
}, z.core.$strip>;
|
|
246
|
-
export type FilevineUpdateProjectCollectionItemOutput = FilevineRecord;
|
|
247
|
-
export declare const filevineDeleteProjectCollectionItemInput: z.ZodObject<{
|
|
248
|
-
projectId: z.ZodString;
|
|
249
|
-
selector: z.ZodString;
|
|
250
|
-
uniqueId: z.ZodString;
|
|
251
|
-
}, z.core.$strip>;
|
|
252
|
-
export type FilevineDeleteProjectCollectionItemInput = z.infer<typeof filevineDeleteProjectCollectionItemInput>;
|
|
253
|
-
export declare const filevineDeleteProjectCollectionItemOutput: z.ZodObject<{
|
|
254
|
-
ok: z.ZodLiteral<true>;
|
|
255
|
-
}, z.core.$strip>;
|
|
256
|
-
export type FilevineDeleteProjectCollectionItemOutput = z.infer<typeof filevineDeleteProjectCollectionItemOutput>;
|
|
257
|
-
export declare const filevineGetProjectFoldersInput: z.ZodObject<{
|
|
258
|
-
projectId: z.ZodString;
|
|
259
|
-
}, z.core.$strip>;
|
|
260
|
-
export type FilevineGetProjectFoldersInput = z.infer<typeof filevineGetProjectFoldersInput>;
|
|
261
|
-
export declare const filevineFolder: z.ZodObject<{
|
|
262
|
-
id: z.ZodString;
|
|
263
|
-
name: z.ZodString;
|
|
264
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
265
|
-
}, z.core.$strip>;
|
|
266
|
-
export type FilevineFolder = z.infer<typeof filevineFolder>;
|
|
267
|
-
export declare const filevineGetProjectFoldersOutput: z.ZodObject<{
|
|
268
|
-
results: z.ZodArray<z.ZodObject<{
|
|
269
|
-
id: z.ZodString;
|
|
270
|
-
name: z.ZodString;
|
|
271
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
272
|
-
}, z.core.$strip>>;
|
|
273
|
-
}, z.core.$strip>;
|
|
274
|
-
export type FilevineGetProjectFoldersOutput = z.infer<typeof filevineGetProjectFoldersOutput>;
|
|
275
|
-
export declare const filevineAddHashtagToProjectInput: z.ZodObject<{
|
|
276
|
-
projectId: z.ZodString;
|
|
277
|
-
hashtag: z.ZodString;
|
|
278
|
-
}, z.core.$strip>;
|
|
279
|
-
export type FilevineAddHashtagToProjectInput = z.infer<typeof filevineAddHashtagToProjectInput>;
|
|
280
|
-
export declare const filevineAddHashtagToProjectOutput: z.ZodObject<{
|
|
281
|
-
ok: z.ZodLiteral<true>;
|
|
282
|
-
}, z.core.$strip>;
|
|
283
|
-
export type FilevineAddHashtagToProjectOutput = z.infer<typeof filevineAddHashtagToProjectOutput>;
|
|
284
|
-
export declare const filevineGetCrmUrlInput: z.ZodObject<{
|
|
285
|
-
type: z.ZodEnum<{
|
|
286
|
-
contact: "contact";
|
|
287
|
-
project: "project";
|
|
288
|
-
}>;
|
|
289
|
-
id: z.ZodString;
|
|
290
|
-
}, z.core.$strip>;
|
|
291
|
-
export type FilevineGetCrmUrlInput = z.infer<typeof filevineGetCrmUrlInput>;
|
|
292
|
-
export declare const filevineGetCrmUrlOutput: z.ZodObject<{
|
|
293
|
-
url: z.ZodString;
|
|
294
|
-
}, z.core.$strip>;
|
|
295
|
-
export type FilevineGetCrmUrlOutput = z.infer<typeof filevineGetCrmUrlOutput>;
|
|
296
|
-
export type FilevineService = {
|
|
297
|
-
createContact(input: FilevineCreateContactInput): Promise<FilevineCreateContactOutput>;
|
|
298
|
-
updateContact(input: FilevineUpdateContactInput): Promise<FilevineUpdateContactOutput>;
|
|
299
|
-
getContact(input: FilevineGetContactInput): Promise<FilevineGetContactOutput>;
|
|
300
|
-
searchContacts(input: FilevineSearchContactsInput): Promise<FilevineSearchContactsOutput>;
|
|
301
|
-
createProject(input: FilevineCreateProjectInput): Promise<FilevineCreateProjectOutput>;
|
|
302
|
-
updateProject(input: FilevineUpdateProjectInput): Promise<FilevineUpdateProjectOutput>;
|
|
303
|
-
getProject(input: FilevineGetProjectInput): Promise<FilevineGetProjectOutput>;
|
|
304
|
-
getAssociatedProjects(input: FilevineGetAssociatedProjectsInput): Promise<FilevineGetAssociatedProjectsOutput>;
|
|
305
|
-
createNote(input: FilevineCreateNoteInput): Promise<FilevineNoteOutput>;
|
|
306
|
-
createComment(input: FilevineCreateCommentInput): Promise<FilevineCommentOutput>;
|
|
307
|
-
createNoteWithComment(input: FilevineCreateNoteWithCommentInput): Promise<FilevineCreateNoteWithCommentOutput>;
|
|
308
|
-
logCall(input: FilevineLogCallInput): Promise<FilevineNoteOutput>;
|
|
309
|
-
logSms(input: FilevineLogSmsInput): Promise<FilevineNoteOutput>;
|
|
310
|
-
logEmail(input: FilevineLogEmailInput): Promise<FilevineNoteOutput>;
|
|
311
|
-
uploadDocument(input: FilevineUploadDocumentInput): Promise<FilevineUploadDocumentOutput>;
|
|
312
|
-
getProjectCollectionItems(input: FilevineGetProjectCollectionItemsInput): Promise<FilevineGetProjectCollectionItemsOutput>;
|
|
313
|
-
getProjectCollectionItem(input: FilevineGetProjectCollectionItemInput): Promise<FilevineGetProjectCollectionItemOutput>;
|
|
314
|
-
createProjectCollectionItem(input: FilevineCreateProjectCollectionItemInput): Promise<FilevineCreateProjectCollectionItemOutput>;
|
|
315
|
-
updateProjectCollectionItem(input: FilevineUpdateProjectCollectionItemInput): Promise<FilevineUpdateProjectCollectionItemOutput>;
|
|
316
|
-
deleteProjectCollectionItem(input: FilevineDeleteProjectCollectionItemInput): Promise<FilevineDeleteProjectCollectionItemOutput>;
|
|
317
|
-
getProjectFolders(input: FilevineGetProjectFoldersInput): Promise<FilevineGetProjectFoldersOutput>;
|
|
318
|
-
addHashtagToProject(input: FilevineAddHashtagToProjectInput): Promise<FilevineAddHashtagToProjectOutput>;
|
|
319
|
-
getCrmUrl(input: FilevineGetCrmUrlInput): Promise<FilevineGetCrmUrlOutput>;
|
|
320
|
-
};
|
|
321
|
-
export declare const filevineMockService: FilevineService;
|
|
322
|
-
export type FilevineApi = IntegrationAccountFields & FilevineService;
|
|
323
|
-
//# sourceMappingURL=filevine.d.ts.map
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export const filevineProperties = z.record(z.string(), z.unknown());
|
|
3
|
-
export const filevineRecord = z.object({
|
|
4
|
-
id: z.string(),
|
|
5
|
-
properties: filevineProperties,
|
|
6
|
-
});
|
|
7
|
-
export const filevineCreateContactInput = z.object({
|
|
8
|
-
firstName: z.string(),
|
|
9
|
-
lastName: z.string(),
|
|
10
|
-
email: z.string().optional(),
|
|
11
|
-
phone: z.string().optional(),
|
|
12
|
-
});
|
|
13
|
-
export const filevineCreateContactOutput = z.object({ id: z.string() });
|
|
14
|
-
export const filevineUpdateContactInput = z.object({
|
|
15
|
-
id: z.string(),
|
|
16
|
-
firstName: z.string().optional(),
|
|
17
|
-
lastName: z.string().optional(),
|
|
18
|
-
email: z.string().optional(),
|
|
19
|
-
phone: z.string().optional(),
|
|
20
|
-
});
|
|
21
|
-
export const filevineUpdateContactOutput = filevineRecord;
|
|
22
|
-
export const filevineGetContactInput = z.object({
|
|
23
|
-
id: z.string(),
|
|
24
|
-
properties: z.array(z.string()).optional(),
|
|
25
|
-
});
|
|
26
|
-
export const filevineGetContactOutput = filevineRecord;
|
|
27
|
-
export const filevineSearchContactsInput = z.object({
|
|
28
|
-
email: z.string().optional(),
|
|
29
|
-
firstName: z.string().optional(),
|
|
30
|
-
lastName: z.string().optional(),
|
|
31
|
-
fullName: z.string().optional(),
|
|
32
|
-
phone: z.string().optional(),
|
|
33
|
-
searchTerm: z.string().optional(),
|
|
34
|
-
limit: z.number().optional(),
|
|
35
|
-
offset: z.number().optional(),
|
|
36
|
-
});
|
|
37
|
-
export const filevineSearchContactsOutput = z.object({
|
|
38
|
-
results: z.array(filevineRecord),
|
|
39
|
-
count: z.number(),
|
|
40
|
-
hasMore: z.boolean(),
|
|
41
|
-
offset: z.number().optional(),
|
|
42
|
-
});
|
|
43
|
-
export const filevineTeamInput = z.object({
|
|
44
|
-
teamId: z.string(),
|
|
45
|
-
userIds: z.array(z.string()).optional(),
|
|
46
|
-
});
|
|
47
|
-
export const filevineCreateProjectInput = z.object({
|
|
48
|
-
projectTypeId: z.string(),
|
|
49
|
-
clientId: z.string(),
|
|
50
|
-
phaseId: z.string(),
|
|
51
|
-
projectName: z.string().optional(),
|
|
52
|
-
description: z.string().optional(),
|
|
53
|
-
teams: z.array(filevineTeamInput).optional(),
|
|
54
|
-
});
|
|
55
|
-
export const filevineCreateProjectOutput = z.object({ id: z.string() });
|
|
56
|
-
export const filevineUpdateProjectInput = z.object({
|
|
57
|
-
id: z.string(),
|
|
58
|
-
properties: filevineProperties,
|
|
59
|
-
});
|
|
60
|
-
export const filevineUpdateProjectOutput = filevineRecord;
|
|
61
|
-
export const filevineGetProjectInput = z.object({
|
|
62
|
-
id: z.string(),
|
|
63
|
-
properties: z.array(z.string()).optional(),
|
|
64
|
-
});
|
|
65
|
-
export const filevineGetProjectOutput = filevineRecord;
|
|
66
|
-
export const filevineGetAssociatedProjectsInput = z.object({
|
|
67
|
-
contactId: z.string(),
|
|
68
|
-
properties: z.array(z.string()).optional(),
|
|
69
|
-
});
|
|
70
|
-
export const filevineGetAssociatedProjectsOutput = z.object({
|
|
71
|
-
results: z.array(filevineRecord),
|
|
72
|
-
});
|
|
73
|
-
export const filevineCreateNoteInput = z.object({
|
|
74
|
-
projectId: z.string(),
|
|
75
|
-
body: z.string(),
|
|
76
|
-
});
|
|
77
|
-
export const filevineNoteOutput = z.object({ id: z.string() });
|
|
78
|
-
export const filevineCreateCommentInput = z.object({
|
|
79
|
-
noteId: z.string(),
|
|
80
|
-
projectId: z.string(),
|
|
81
|
-
body: z.string(),
|
|
82
|
-
documentId: z.string().optional(),
|
|
83
|
-
});
|
|
84
|
-
export const filevineCommentOutput = z.object({ id: z.string() });
|
|
85
|
-
export const filevineCreateNoteWithCommentInput = z.object({
|
|
86
|
-
projectId: z.string(),
|
|
87
|
-
noteTitle: z.string(),
|
|
88
|
-
commentContent: z.string(),
|
|
89
|
-
});
|
|
90
|
-
export const filevineCreateNoteWithCommentOutput = z.object({
|
|
91
|
-
noteId: z.string(),
|
|
92
|
-
commentId: z.string(),
|
|
93
|
-
});
|
|
94
|
-
export const filevineLogCallInput = z.object({
|
|
95
|
-
projectId: z.string(),
|
|
96
|
-
title: z.string(),
|
|
97
|
-
body: z.string(),
|
|
98
|
-
});
|
|
99
|
-
export const filevineLogSmsInput = z.object({
|
|
100
|
-
projectId: z.string(),
|
|
101
|
-
sendFrom: z.string(),
|
|
102
|
-
message: z.string(),
|
|
103
|
-
});
|
|
104
|
-
export const filevineLogEmailInput = z.object({
|
|
105
|
-
projectId: z.string(),
|
|
106
|
-
sendFrom: z.string(),
|
|
107
|
-
message: z.string(),
|
|
108
|
-
});
|
|
109
|
-
export const filevineUploadDocumentInput = z.object({
|
|
110
|
-
projectId: z.string(),
|
|
111
|
-
filename: z.string(),
|
|
112
|
-
fileData: z.string(),
|
|
113
|
-
hashtags: z.array(z.string()).optional(),
|
|
114
|
-
});
|
|
115
|
-
export const filevineUploadDocumentOutput = z.object({ id: z.string() });
|
|
116
|
-
export const filevineCollectionItemInput = z.object({
|
|
117
|
-
dataObject: filevineProperties,
|
|
118
|
-
itemId: z.string().optional(),
|
|
119
|
-
links: z.record(z.string(), z.string()).optional(),
|
|
120
|
-
createdDate: z.string().optional(),
|
|
121
|
-
});
|
|
122
|
-
export const filevineGetProjectCollectionItemsInput = z.object({
|
|
123
|
-
projectId: z.string(),
|
|
124
|
-
selector: z.string(),
|
|
125
|
-
properties: z.array(z.string()).optional(),
|
|
126
|
-
limit: z.number().optional(),
|
|
127
|
-
offset: z.number().optional(),
|
|
128
|
-
});
|
|
129
|
-
export const filevineGetProjectCollectionItemsOutput = z.object({
|
|
130
|
-
results: z.array(filevineRecord),
|
|
131
|
-
count: z.number().optional(),
|
|
132
|
-
hasMore: z.boolean().optional(),
|
|
133
|
-
offset: z.number().optional(),
|
|
134
|
-
});
|
|
135
|
-
export const filevineGetProjectCollectionItemInput = z.object({
|
|
136
|
-
projectId: z.string(),
|
|
137
|
-
selector: z.string(),
|
|
138
|
-
uniqueId: z.string(),
|
|
139
|
-
properties: z.array(z.string()).optional(),
|
|
140
|
-
});
|
|
141
|
-
export const filevineGetProjectCollectionItemOutput = filevineRecord;
|
|
142
|
-
export const filevineCreateProjectCollectionItemInput = z.object({
|
|
143
|
-
projectId: z.string(),
|
|
144
|
-
selector: z.string(),
|
|
145
|
-
item: filevineCollectionItemInput,
|
|
146
|
-
});
|
|
147
|
-
export const filevineCreateProjectCollectionItemOutput = filevineRecord;
|
|
148
|
-
export const filevineUpdateProjectCollectionItemInput = z.object({
|
|
149
|
-
projectId: z.string(),
|
|
150
|
-
selector: z.string(),
|
|
151
|
-
uniqueId: z.string(),
|
|
152
|
-
item: filevineCollectionItemInput,
|
|
153
|
-
});
|
|
154
|
-
export const filevineUpdateProjectCollectionItemOutput = filevineRecord;
|
|
155
|
-
export const filevineDeleteProjectCollectionItemInput = z.object({
|
|
156
|
-
projectId: z.string(),
|
|
157
|
-
selector: z.string(),
|
|
158
|
-
uniqueId: z.string(),
|
|
159
|
-
});
|
|
160
|
-
export const filevineDeleteProjectCollectionItemOutput = z.object({ ok: z.literal(true) });
|
|
161
|
-
export const filevineGetProjectFoldersInput = z.object({
|
|
162
|
-
projectId: z.string(),
|
|
163
|
-
});
|
|
164
|
-
export const filevineFolder = z.object({
|
|
165
|
-
id: z.string(),
|
|
166
|
-
name: z.string(),
|
|
167
|
-
parentId: z.string().nullable(),
|
|
168
|
-
});
|
|
169
|
-
export const filevineGetProjectFoldersOutput = z.object({
|
|
170
|
-
results: z.array(filevineFolder),
|
|
171
|
-
});
|
|
172
|
-
export const filevineAddHashtagToProjectInput = z.object({
|
|
173
|
-
projectId: z.string(),
|
|
174
|
-
hashtag: z.string(),
|
|
175
|
-
});
|
|
176
|
-
export const filevineAddHashtagToProjectOutput = z.object({ ok: z.literal(true) });
|
|
177
|
-
export const filevineGetCrmUrlInput = z.object({
|
|
178
|
-
type: z.enum(['contact', 'project']),
|
|
179
|
-
id: z.string(),
|
|
180
|
-
});
|
|
181
|
-
export const filevineGetCrmUrlOutput = z.object({ url: z.string() });
|
|
182
|
-
const mockRecord = { id: 'mock-fv-1', properties: {} };
|
|
183
|
-
export const filevineMockService = {
|
|
184
|
-
async createContact() {
|
|
185
|
-
return { id: 'mock-fv-1' };
|
|
186
|
-
},
|
|
187
|
-
async updateContact() {
|
|
188
|
-
return mockRecord;
|
|
189
|
-
},
|
|
190
|
-
async getContact() {
|
|
191
|
-
return mockRecord;
|
|
192
|
-
},
|
|
193
|
-
async searchContacts() {
|
|
194
|
-
return { results: [], count: 0, hasMore: false };
|
|
195
|
-
},
|
|
196
|
-
async createProject() {
|
|
197
|
-
return { id: 'mock-fv-project' };
|
|
198
|
-
},
|
|
199
|
-
async updateProject() {
|
|
200
|
-
return mockRecord;
|
|
201
|
-
},
|
|
202
|
-
async getProject() {
|
|
203
|
-
return mockRecord;
|
|
204
|
-
},
|
|
205
|
-
async getAssociatedProjects() {
|
|
206
|
-
return { results: [] };
|
|
207
|
-
},
|
|
208
|
-
async createNote() {
|
|
209
|
-
return { id: 'mock-fv-note' };
|
|
210
|
-
},
|
|
211
|
-
async createComment() {
|
|
212
|
-
return { id: 'mock-fv-comment' };
|
|
213
|
-
},
|
|
214
|
-
async createNoteWithComment() {
|
|
215
|
-
return { noteId: 'mock-fv-note', commentId: 'mock-fv-comment' };
|
|
216
|
-
},
|
|
217
|
-
async logCall() {
|
|
218
|
-
return { id: 'mock-fv-note' };
|
|
219
|
-
},
|
|
220
|
-
async logSms() {
|
|
221
|
-
return { id: 'mock-fv-note' };
|
|
222
|
-
},
|
|
223
|
-
async logEmail() {
|
|
224
|
-
return { id: 'mock-fv-note' };
|
|
225
|
-
},
|
|
226
|
-
async uploadDocument() {
|
|
227
|
-
return { id: 'mock-fv-doc' };
|
|
228
|
-
},
|
|
229
|
-
async getProjectCollectionItems() {
|
|
230
|
-
return { results: [] };
|
|
231
|
-
},
|
|
232
|
-
async getProjectCollectionItem() {
|
|
233
|
-
return mockRecord;
|
|
234
|
-
},
|
|
235
|
-
async createProjectCollectionItem() {
|
|
236
|
-
return mockRecord;
|
|
237
|
-
},
|
|
238
|
-
async updateProjectCollectionItem() {
|
|
239
|
-
return mockRecord;
|
|
240
|
-
},
|
|
241
|
-
async deleteProjectCollectionItem() {
|
|
242
|
-
return { ok: true };
|
|
243
|
-
},
|
|
244
|
-
async getProjectFolders() {
|
|
245
|
-
return { results: [] };
|
|
246
|
-
},
|
|
247
|
-
async addHashtagToProject() {
|
|
248
|
-
return { ok: true };
|
|
249
|
-
},
|
|
250
|
-
async getCrmUrl() {
|
|
251
|
-
return { url: 'https://app.filevineapp.com/#/project/mock-fv-1' };
|
|
252
|
-
},
|
|
253
|
-
};
|
|
254
|
-
//# sourceMappingURL=filevine.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* HTTP capability on `ctx.api.http`. Runs in the function host (Worker / Node),
|
|
3
|
-
* not over RPC — `Response` is not JSON-serializable.
|
|
4
|
-
*/
|
|
5
|
-
export type HttpApi = {
|
|
6
|
-
fetch: typeof fetch;
|
|
7
|
-
};
|
|
8
|
-
export declare const defaultHttpApi: () => HttpApi;
|
|
9
|
-
//# sourceMappingURL=http.d.ts.map
|