@unified-api/typescript-sdk 2.82.17 → 2.82.18

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.
Files changed (80) hide show
  1. package/dist/commonjs/lib/config.d.ts +3 -3
  2. package/dist/commonjs/lib/config.js +3 -3
  3. package/dist/commonjs/sdk/models/operations/createcrmdeal.d.ts +2 -0
  4. package/dist/commonjs/sdk/models/operations/createcrmdeal.d.ts.map +1 -1
  5. package/dist/commonjs/sdk/models/operations/createcrmdeal.js +2 -0
  6. package/dist/commonjs/sdk/models/operations/createcrmdeal.js.map +1 -1
  7. package/dist/commonjs/sdk/models/operations/getcrmdeal.d.ts +2 -0
  8. package/dist/commonjs/sdk/models/operations/getcrmdeal.d.ts.map +1 -1
  9. package/dist/commonjs/sdk/models/operations/getcrmdeal.js +2 -0
  10. package/dist/commonjs/sdk/models/operations/getcrmdeal.js.map +1 -1
  11. package/dist/commonjs/sdk/models/operations/listcrmdeals.d.ts +2 -0
  12. package/dist/commonjs/sdk/models/operations/listcrmdeals.d.ts.map +1 -1
  13. package/dist/commonjs/sdk/models/operations/listcrmdeals.js +2 -0
  14. package/dist/commonjs/sdk/models/operations/listcrmdeals.js.map +1 -1
  15. package/dist/commonjs/sdk/models/operations/patchcrmdeal.d.ts +2 -0
  16. package/dist/commonjs/sdk/models/operations/patchcrmdeal.d.ts.map +1 -1
  17. package/dist/commonjs/sdk/models/operations/patchcrmdeal.js +2 -0
  18. package/dist/commonjs/sdk/models/operations/patchcrmdeal.js.map +1 -1
  19. package/dist/commonjs/sdk/models/operations/updatecrmdeal.d.ts +2 -0
  20. package/dist/commonjs/sdk/models/operations/updatecrmdeal.d.ts.map +1 -1
  21. package/dist/commonjs/sdk/models/operations/updatecrmdeal.js +2 -0
  22. package/dist/commonjs/sdk/models/operations/updatecrmdeal.js.map +1 -1
  23. package/dist/commonjs/sdk/models/shared/crmdeal.d.ts +5 -0
  24. package/dist/commonjs/sdk/models/shared/crmdeal.d.ts.map +1 -1
  25. package/dist/commonjs/sdk/models/shared/crmdeal.js +5 -0
  26. package/dist/commonjs/sdk/models/shared/crmdeal.js.map +1 -1
  27. package/dist/commonjs/sdk/models/shared/crmreference.d.ts +21 -0
  28. package/dist/commonjs/sdk/models/shared/crmreference.d.ts.map +1 -0
  29. package/dist/commonjs/sdk/models/shared/crmreference.js +62 -0
  30. package/dist/commonjs/sdk/models/shared/crmreference.js.map +1 -0
  31. package/dist/commonjs/sdk/models/shared/index.d.ts +1 -0
  32. package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
  33. package/dist/commonjs/sdk/models/shared/index.js +1 -0
  34. package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
  35. package/dist/esm/lib/config.d.ts +3 -3
  36. package/dist/esm/lib/config.js +3 -3
  37. package/dist/esm/sdk/models/operations/createcrmdeal.d.ts +2 -0
  38. package/dist/esm/sdk/models/operations/createcrmdeal.d.ts.map +1 -1
  39. package/dist/esm/sdk/models/operations/createcrmdeal.js +2 -0
  40. package/dist/esm/sdk/models/operations/createcrmdeal.js.map +1 -1
  41. package/dist/esm/sdk/models/operations/getcrmdeal.d.ts +2 -0
  42. package/dist/esm/sdk/models/operations/getcrmdeal.d.ts.map +1 -1
  43. package/dist/esm/sdk/models/operations/getcrmdeal.js +2 -0
  44. package/dist/esm/sdk/models/operations/getcrmdeal.js.map +1 -1
  45. package/dist/esm/sdk/models/operations/listcrmdeals.d.ts +2 -0
  46. package/dist/esm/sdk/models/operations/listcrmdeals.d.ts.map +1 -1
  47. package/dist/esm/sdk/models/operations/listcrmdeals.js +2 -0
  48. package/dist/esm/sdk/models/operations/listcrmdeals.js.map +1 -1
  49. package/dist/esm/sdk/models/operations/patchcrmdeal.d.ts +2 -0
  50. package/dist/esm/sdk/models/operations/patchcrmdeal.d.ts.map +1 -1
  51. package/dist/esm/sdk/models/operations/patchcrmdeal.js +2 -0
  52. package/dist/esm/sdk/models/operations/patchcrmdeal.js.map +1 -1
  53. package/dist/esm/sdk/models/operations/updatecrmdeal.d.ts +2 -0
  54. package/dist/esm/sdk/models/operations/updatecrmdeal.d.ts.map +1 -1
  55. package/dist/esm/sdk/models/operations/updatecrmdeal.js +2 -0
  56. package/dist/esm/sdk/models/operations/updatecrmdeal.js.map +1 -1
  57. package/dist/esm/sdk/models/shared/crmdeal.d.ts +5 -0
  58. package/dist/esm/sdk/models/shared/crmdeal.d.ts.map +1 -1
  59. package/dist/esm/sdk/models/shared/crmdeal.js +5 -0
  60. package/dist/esm/sdk/models/shared/crmdeal.js.map +1 -1
  61. package/dist/esm/sdk/models/shared/crmreference.d.ts +21 -0
  62. package/dist/esm/sdk/models/shared/crmreference.d.ts.map +1 -0
  63. package/dist/esm/sdk/models/shared/crmreference.js +24 -0
  64. package/dist/esm/sdk/models/shared/crmreference.js.map +1 -0
  65. package/dist/esm/sdk/models/shared/index.d.ts +1 -0
  66. package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
  67. package/dist/esm/sdk/models/shared/index.js +1 -0
  68. package/dist/esm/sdk/models/shared/index.js.map +1 -1
  69. package/examples/package-lock.json +1 -1
  70. package/jsr.json +1 -1
  71. package/package.json +1 -1
  72. package/src/lib/config.ts +3 -3
  73. package/src/sdk/models/operations/createcrmdeal.ts +2 -0
  74. package/src/sdk/models/operations/getcrmdeal.ts +2 -0
  75. package/src/sdk/models/operations/listcrmdeals.ts +2 -0
  76. package/src/sdk/models/operations/patchcrmdeal.ts +2 -0
  77. package/src/sdk/models/operations/updatecrmdeal.ts +2 -0
  78. package/src/sdk/models/shared/crmdeal.ts +14 -0
  79. package/src/sdk/models/shared/crmreference.ts +55 -0
  80. package/src/sdk/models/shared/index.ts +1 -0
@@ -19,6 +19,7 @@ export const GetCrmDealQueryParamFields = {
19
19
  StageId: "stage_id",
20
20
  Pipeline: "pipeline",
21
21
  PipelineId: "pipeline_id",
22
+ Stages: "stages",
22
23
  Source: "source",
23
24
  Probability: "probability",
24
25
  Tags: "tags",
@@ -29,6 +30,7 @@ export const GetCrmDealQueryParamFields = {
29
30
  CompanyIds: "company_ids",
30
31
  Metadata: "metadata",
31
32
  Raw: "raw",
33
+ Pipelines: "pipelines",
32
34
  } as const;
33
35
  export type GetCrmDealQueryParamFields = ClosedEnum<
34
36
  typeof GetCrmDealQueryParamFields
@@ -19,6 +19,7 @@ export const ListCrmDealsQueryParamFields = {
19
19
  StageId: "stage_id",
20
20
  Pipeline: "pipeline",
21
21
  PipelineId: "pipeline_id",
22
+ Stages: "stages",
22
23
  Source: "source",
23
24
  Probability: "probability",
24
25
  Tags: "tags",
@@ -29,6 +30,7 @@ export const ListCrmDealsQueryParamFields = {
29
30
  CompanyIds: "company_ids",
30
31
  Metadata: "metadata",
31
32
  Raw: "raw",
33
+ Pipelines: "pipelines",
32
34
  } as const;
33
35
  export type ListCrmDealsQueryParamFields = ClosedEnum<
34
36
  typeof ListCrmDealsQueryParamFields
@@ -20,6 +20,7 @@ export const PatchCrmDealQueryParamFields = {
20
20
  StageId: "stage_id",
21
21
  Pipeline: "pipeline",
22
22
  PipelineId: "pipeline_id",
23
+ Stages: "stages",
23
24
  Source: "source",
24
25
  Probability: "probability",
25
26
  Tags: "tags",
@@ -30,6 +31,7 @@ export const PatchCrmDealQueryParamFields = {
30
31
  CompanyIds: "company_ids",
31
32
  Metadata: "metadata",
32
33
  Raw: "raw",
34
+ Pipelines: "pipelines",
33
35
  } as const;
34
36
  export type PatchCrmDealQueryParamFields = ClosedEnum<
35
37
  typeof PatchCrmDealQueryParamFields
@@ -20,6 +20,7 @@ export const UpdateCrmDealQueryParamFields = {
20
20
  StageId: "stage_id",
21
21
  Pipeline: "pipeline",
22
22
  PipelineId: "pipeline_id",
23
+ Stages: "stages",
23
24
  Source: "source",
24
25
  Probability: "probability",
25
26
  Tags: "tags",
@@ -30,6 +31,7 @@ export const UpdateCrmDealQueryParamFields = {
30
31
  CompanyIds: "company_ids",
31
32
  Metadata: "metadata",
32
33
  Raw: "raw",
34
+ Pipelines: "pipelines",
33
35
  } as const;
34
36
  export type UpdateCrmDealQueryParamFields = ClosedEnum<
35
37
  typeof UpdateCrmDealQueryParamFields
@@ -13,6 +13,12 @@ import {
13
13
  CrmMetadata$Outbound,
14
14
  CrmMetadata$outboundSchema,
15
15
  } from "./crmmetadata.js";
16
+ import {
17
+ CrmReference,
18
+ CrmReference$inboundSchema,
19
+ CrmReference$Outbound,
20
+ CrmReference$outboundSchema,
21
+ } from "./crmreference.js";
16
22
 
17
23
  /**
18
24
  * A deal represents an opportunity with companies and/or contacts
@@ -31,11 +37,13 @@ export type CrmDeal = {
31
37
  name?: string | undefined;
32
38
  pipeline?: string | undefined;
33
39
  pipelineId?: string | undefined;
40
+ pipelines?: Array<CrmReference> | undefined;
34
41
  probability?: number | undefined;
35
42
  raw?: { [k: string]: any } | undefined;
36
43
  source?: string | undefined;
37
44
  stage?: string | undefined;
38
45
  stageId?: string | undefined;
46
+ stages?: Array<CrmReference> | undefined;
39
47
  tags?: Array<string> | undefined;
40
48
  updatedAt?: Date | undefined;
41
49
  userId?: string | undefined;
@@ -63,11 +71,13 @@ export const CrmDeal$inboundSchema: z.ZodType<CrmDeal, z.ZodTypeDef, unknown> =
63
71
  name: z.string().optional(),
64
72
  pipeline: z.string().optional(),
65
73
  pipeline_id: z.string().optional(),
74
+ pipelines: z.array(CrmReference$inboundSchema).optional(),
66
75
  probability: z.number().optional(),
67
76
  raw: z.record(z.any()).optional(),
68
77
  source: z.string().optional(),
69
78
  stage: z.string().optional(),
70
79
  stage_id: z.string().optional(),
80
+ stages: z.array(CrmReference$inboundSchema).optional(),
71
81
  tags: z.array(z.string()).optional(),
72
82
  updated_at: z.string().datetime({ offset: true }).transform(v =>
73
83
  new Date(v)
@@ -104,11 +114,13 @@ export type CrmDeal$Outbound = {
104
114
  name?: string | undefined;
105
115
  pipeline?: string | undefined;
106
116
  pipeline_id?: string | undefined;
117
+ pipelines?: Array<CrmReference$Outbound> | undefined;
107
118
  probability?: number | undefined;
108
119
  raw?: { [k: string]: any } | undefined;
109
120
  source?: string | undefined;
110
121
  stage?: string | undefined;
111
122
  stage_id?: string | undefined;
123
+ stages?: Array<CrmReference$Outbound> | undefined;
112
124
  tags?: Array<string> | undefined;
113
125
  updated_at?: string | undefined;
114
126
  user_id?: string | undefined;
@@ -134,11 +146,13 @@ export const CrmDeal$outboundSchema: z.ZodType<
134
146
  name: z.string().optional(),
135
147
  pipeline: z.string().optional(),
136
148
  pipelineId: z.string().optional(),
149
+ pipelines: z.array(CrmReference$outboundSchema).optional(),
137
150
  probability: z.number().optional(),
138
151
  raw: z.record(z.any()).optional(),
139
152
  source: z.string().optional(),
140
153
  stage: z.string().optional(),
141
154
  stageId: z.string().optional(),
155
+ stages: z.array(CrmReference$outboundSchema).optional(),
142
156
  tags: z.array(z.string()).optional(),
143
157
  updatedAt: z.date().transform(v => v.toISOString()).optional(),
144
158
  userId: z.string().optional(),
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type CrmReference = {
11
+ id?: string | undefined;
12
+ name?: string | undefined;
13
+ type?: string | undefined;
14
+ };
15
+
16
+ /** @internal */
17
+ export const CrmReference$inboundSchema: z.ZodType<
18
+ CrmReference,
19
+ z.ZodTypeDef,
20
+ unknown
21
+ > = z.object({
22
+ id: z.string().optional(),
23
+ name: z.string().optional(),
24
+ type: z.string().optional(),
25
+ });
26
+ /** @internal */
27
+ export type CrmReference$Outbound = {
28
+ id?: string | undefined;
29
+ name?: string | undefined;
30
+ type?: string | undefined;
31
+ };
32
+
33
+ /** @internal */
34
+ export const CrmReference$outboundSchema: z.ZodType<
35
+ CrmReference$Outbound,
36
+ z.ZodTypeDef,
37
+ CrmReference
38
+ > = z.object({
39
+ id: z.string().optional(),
40
+ name: z.string().optional(),
41
+ type: z.string().optional(),
42
+ });
43
+
44
+ export function crmReferenceToJSON(crmReference: CrmReference): string {
45
+ return JSON.stringify(CrmReference$outboundSchema.parse(crmReference));
46
+ }
47
+ export function crmReferenceFromJSON(
48
+ jsonString: string,
49
+ ): SafeParseResult<CrmReference, SDKValidationError> {
50
+ return safeParse(
51
+ jsonString,
52
+ (x) => CrmReference$inboundSchema.parse(JSON.parse(x)),
53
+ `Failed to parse 'CrmReference' from JSON`,
54
+ );
55
+ }
@@ -105,6 +105,7 @@ export * from "./crmeventformoption.js";
105
105
  export * from "./crmlead.js";
106
106
  export * from "./crmmetadata.js";
107
107
  export * from "./crmpipeline.js";
108
+ export * from "./crmreference.js";
108
109
  export * from "./crmstage.js";
109
110
  export * from "./crmtelephone.js";
110
111
  export * from "./enrichcompany.js";