@unified-api/typescript-sdk 2.82.16 → 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 (108) hide show
  1. package/dist/commonjs/funcs/accountingListAccountingExpenses.js +5 -0
  2. package/dist/commonjs/funcs/accountingListAccountingExpenses.js.map +1 -1
  3. package/dist/commonjs/funcs/adsListAdsGroups.js +1 -0
  4. package/dist/commonjs/funcs/adsListAdsGroups.js.map +1 -1
  5. package/dist/commonjs/lib/config.d.ts +3 -3
  6. package/dist/commonjs/lib/config.js +3 -3
  7. package/dist/commonjs/sdk/models/operations/createcrmdeal.d.ts +2 -0
  8. package/dist/commonjs/sdk/models/operations/createcrmdeal.d.ts.map +1 -1
  9. package/dist/commonjs/sdk/models/operations/createcrmdeal.js +2 -0
  10. package/dist/commonjs/sdk/models/operations/createcrmdeal.js.map +1 -1
  11. package/dist/commonjs/sdk/models/operations/getcrmdeal.d.ts +2 -0
  12. package/dist/commonjs/sdk/models/operations/getcrmdeal.d.ts.map +1 -1
  13. package/dist/commonjs/sdk/models/operations/getcrmdeal.js +2 -0
  14. package/dist/commonjs/sdk/models/operations/getcrmdeal.js.map +1 -1
  15. package/dist/commonjs/sdk/models/operations/listaccountingexpenses.d.ts +25 -0
  16. package/dist/commonjs/sdk/models/operations/listaccountingexpenses.d.ts.map +1 -1
  17. package/dist/commonjs/sdk/models/operations/listaccountingexpenses.js +10 -0
  18. package/dist/commonjs/sdk/models/operations/listaccountingexpenses.js.map +1 -1
  19. package/dist/commonjs/sdk/models/operations/listadsgroups.d.ts +5 -0
  20. package/dist/commonjs/sdk/models/operations/listadsgroups.d.ts.map +1 -1
  21. package/dist/commonjs/sdk/models/operations/listadsgroups.js +2 -0
  22. package/dist/commonjs/sdk/models/operations/listadsgroups.js.map +1 -1
  23. package/dist/commonjs/sdk/models/operations/listcrmdeals.d.ts +2 -0
  24. package/dist/commonjs/sdk/models/operations/listcrmdeals.d.ts.map +1 -1
  25. package/dist/commonjs/sdk/models/operations/listcrmdeals.js +2 -0
  26. package/dist/commonjs/sdk/models/operations/listcrmdeals.js.map +1 -1
  27. package/dist/commonjs/sdk/models/operations/patchcrmdeal.d.ts +2 -0
  28. package/dist/commonjs/sdk/models/operations/patchcrmdeal.d.ts.map +1 -1
  29. package/dist/commonjs/sdk/models/operations/patchcrmdeal.js +2 -0
  30. package/dist/commonjs/sdk/models/operations/patchcrmdeal.js.map +1 -1
  31. package/dist/commonjs/sdk/models/operations/updatecrmdeal.d.ts +2 -0
  32. package/dist/commonjs/sdk/models/operations/updatecrmdeal.d.ts.map +1 -1
  33. package/dist/commonjs/sdk/models/operations/updatecrmdeal.js +2 -0
  34. package/dist/commonjs/sdk/models/operations/updatecrmdeal.js.map +1 -1
  35. package/dist/commonjs/sdk/models/shared/crmdeal.d.ts +5 -0
  36. package/dist/commonjs/sdk/models/shared/crmdeal.d.ts.map +1 -1
  37. package/dist/commonjs/sdk/models/shared/crmdeal.js +5 -0
  38. package/dist/commonjs/sdk/models/shared/crmdeal.js.map +1 -1
  39. package/dist/commonjs/sdk/models/shared/crmreference.d.ts +21 -0
  40. package/dist/commonjs/sdk/models/shared/crmreference.d.ts.map +1 -0
  41. package/dist/commonjs/sdk/models/shared/crmreference.js +62 -0
  42. package/dist/commonjs/sdk/models/shared/crmreference.js.map +1 -0
  43. package/dist/commonjs/sdk/models/shared/index.d.ts +1 -0
  44. package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
  45. package/dist/commonjs/sdk/models/shared/index.js +1 -0
  46. package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
  47. package/dist/esm/funcs/accountingListAccountingExpenses.js +5 -0
  48. package/dist/esm/funcs/accountingListAccountingExpenses.js.map +1 -1
  49. package/dist/esm/funcs/adsListAdsGroups.js +1 -0
  50. package/dist/esm/funcs/adsListAdsGroups.js.map +1 -1
  51. package/dist/esm/lib/config.d.ts +3 -3
  52. package/dist/esm/lib/config.js +3 -3
  53. package/dist/esm/sdk/models/operations/createcrmdeal.d.ts +2 -0
  54. package/dist/esm/sdk/models/operations/createcrmdeal.d.ts.map +1 -1
  55. package/dist/esm/sdk/models/operations/createcrmdeal.js +2 -0
  56. package/dist/esm/sdk/models/operations/createcrmdeal.js.map +1 -1
  57. package/dist/esm/sdk/models/operations/getcrmdeal.d.ts +2 -0
  58. package/dist/esm/sdk/models/operations/getcrmdeal.d.ts.map +1 -1
  59. package/dist/esm/sdk/models/operations/getcrmdeal.js +2 -0
  60. package/dist/esm/sdk/models/operations/getcrmdeal.js.map +1 -1
  61. package/dist/esm/sdk/models/operations/listaccountingexpenses.d.ts +25 -0
  62. package/dist/esm/sdk/models/operations/listaccountingexpenses.d.ts.map +1 -1
  63. package/dist/esm/sdk/models/operations/listaccountingexpenses.js +10 -0
  64. package/dist/esm/sdk/models/operations/listaccountingexpenses.js.map +1 -1
  65. package/dist/esm/sdk/models/operations/listadsgroups.d.ts +5 -0
  66. package/dist/esm/sdk/models/operations/listadsgroups.d.ts.map +1 -1
  67. package/dist/esm/sdk/models/operations/listadsgroups.js +2 -0
  68. package/dist/esm/sdk/models/operations/listadsgroups.js.map +1 -1
  69. package/dist/esm/sdk/models/operations/listcrmdeals.d.ts +2 -0
  70. package/dist/esm/sdk/models/operations/listcrmdeals.d.ts.map +1 -1
  71. package/dist/esm/sdk/models/operations/listcrmdeals.js +2 -0
  72. package/dist/esm/sdk/models/operations/listcrmdeals.js.map +1 -1
  73. package/dist/esm/sdk/models/operations/patchcrmdeal.d.ts +2 -0
  74. package/dist/esm/sdk/models/operations/patchcrmdeal.d.ts.map +1 -1
  75. package/dist/esm/sdk/models/operations/patchcrmdeal.js +2 -0
  76. package/dist/esm/sdk/models/operations/patchcrmdeal.js.map +1 -1
  77. package/dist/esm/sdk/models/operations/updatecrmdeal.d.ts +2 -0
  78. package/dist/esm/sdk/models/operations/updatecrmdeal.d.ts.map +1 -1
  79. package/dist/esm/sdk/models/operations/updatecrmdeal.js +2 -0
  80. package/dist/esm/sdk/models/operations/updatecrmdeal.js.map +1 -1
  81. package/dist/esm/sdk/models/shared/crmdeal.d.ts +5 -0
  82. package/dist/esm/sdk/models/shared/crmdeal.d.ts.map +1 -1
  83. package/dist/esm/sdk/models/shared/crmdeal.js +5 -0
  84. package/dist/esm/sdk/models/shared/crmdeal.js.map +1 -1
  85. package/dist/esm/sdk/models/shared/crmreference.d.ts +21 -0
  86. package/dist/esm/sdk/models/shared/crmreference.d.ts.map +1 -0
  87. package/dist/esm/sdk/models/shared/crmreference.js +24 -0
  88. package/dist/esm/sdk/models/shared/crmreference.js.map +1 -0
  89. package/dist/esm/sdk/models/shared/index.d.ts +1 -0
  90. package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
  91. package/dist/esm/sdk/models/shared/index.js +1 -0
  92. package/dist/esm/sdk/models/shared/index.js.map +1 -1
  93. package/examples/package-lock.json +1 -1
  94. package/jsr.json +1 -1
  95. package/package.json +1 -1
  96. package/src/funcs/accountingListAccountingExpenses.ts +5 -0
  97. package/src/funcs/adsListAdsGroups.ts +1 -0
  98. package/src/lib/config.ts +3 -3
  99. package/src/sdk/models/operations/createcrmdeal.ts +2 -0
  100. package/src/sdk/models/operations/getcrmdeal.ts +2 -0
  101. package/src/sdk/models/operations/listaccountingexpenses.ts +35 -0
  102. package/src/sdk/models/operations/listadsgroups.ts +7 -0
  103. package/src/sdk/models/operations/listcrmdeals.ts +2 -0
  104. package/src/sdk/models/operations/patchcrmdeal.ts +2 -0
  105. package/src/sdk/models/operations/updatecrmdeal.ts +2 -0
  106. package/src/sdk/models/shared/crmdeal.ts +14 -0
  107. package/src/sdk/models/shared/crmreference.ts +55 -0
  108. package/src/sdk/models/shared/index.ts +1 -0
@@ -27,14 +27,30 @@ export type ListAccountingExpensesQueryParamFields = ClosedEnum<
27
27
  >;
28
28
 
29
29
  export type ListAccountingExpensesRequest = {
30
+ /**
31
+ * The category ID to filter by (reference to AccountingCategory)
32
+ */
33
+ categoryId?: string | undefined;
30
34
  /**
31
35
  * ID of the connection
32
36
  */
33
37
  connectionId: string;
38
+ /**
39
+ * The contact ID to filter by (reference to AccountingContact)
40
+ */
41
+ contactId?: string | undefined;
42
+ /**
43
+ * The end date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
44
+ */
45
+ endLt?: string | undefined;
34
46
  /**
35
47
  * Fields to return
36
48
  */
37
49
  fields?: Array<ListAccountingExpensesQueryParamFields> | undefined;
50
+ /**
51
+ * The group ID to filter by (reference to HrisGroup)
52
+ */
53
+ groupId?: string | undefined;
38
54
  limit?: number | undefined;
39
55
  offset?: number | undefined;
40
56
  order?: string | undefined;
@@ -47,6 +63,10 @@ export type ListAccountingExpensesRequest = {
47
63
  */
48
64
  raw?: string | undefined;
49
65
  sort?: string | undefined;
66
+ /**
67
+ * The start date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
68
+ */
69
+ startGte?: string | undefined;
50
70
  /**
51
71
  * Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
52
72
  */
@@ -65,14 +85,19 @@ export const ListAccountingExpensesQueryParamFields$outboundSchema:
65
85
 
66
86
  /** @internal */
67
87
  export type ListAccountingExpensesRequest$Outbound = {
88
+ category_id?: string | undefined;
68
89
  connection_id: string;
90
+ contact_id?: string | undefined;
91
+ end_lt?: string | undefined;
69
92
  fields?: Array<string> | undefined;
93
+ group_id?: string | undefined;
70
94
  limit?: number | undefined;
71
95
  offset?: number | undefined;
72
96
  order?: string | undefined;
73
97
  query?: string | undefined;
74
98
  raw?: string | undefined;
75
99
  sort?: string | undefined;
100
+ start_gte?: string | undefined;
76
101
  updated_gte?: string | undefined;
77
102
  user_id?: string | undefined;
78
103
  };
@@ -83,20 +108,30 @@ export const ListAccountingExpensesRequest$outboundSchema: z.ZodType<
83
108
  z.ZodTypeDef,
84
109
  ListAccountingExpensesRequest
85
110
  > = z.object({
111
+ categoryId: z.string().optional(),
86
112
  connectionId: z.string(),
113
+ contactId: z.string().optional(),
114
+ endLt: z.string().optional(),
87
115
  fields: z.array(ListAccountingExpensesQueryParamFields$outboundSchema)
88
116
  .optional(),
117
+ groupId: z.string().optional(),
89
118
  limit: z.number().optional(),
90
119
  offset: z.number().optional(),
91
120
  order: z.string().optional(),
92
121
  query: z.string().optional(),
93
122
  raw: z.string().optional(),
94
123
  sort: z.string().optional(),
124
+ startGte: z.string().optional(),
95
125
  updatedGte: z.string().optional(),
96
126
  userId: z.string().optional(),
97
127
  }).transform((v) => {
98
128
  return remap$(v, {
129
+ categoryId: "category_id",
99
130
  connectionId: "connection_id",
131
+ contactId: "contact_id",
132
+ endLt: "end_lt",
133
+ groupId: "group_id",
134
+ startGte: "start_gte",
100
135
  updatedGte: "updated_gte",
101
136
  userId: "user_id",
102
137
  });
@@ -46,6 +46,10 @@ export type ListAdsGroupsRequest = {
46
46
  * The org ID to filter by (reference to AdsOrganization)
47
47
  */
48
48
  orgId?: string | undefined;
49
+ /**
50
+ * The parent ID to filter by
51
+ */
52
+ parentId?: string | undefined;
49
53
  /**
50
54
  * Query string to search. eg. email address or name
51
55
  */
@@ -75,6 +79,7 @@ export type ListAdsGroupsRequest$Outbound = {
75
79
  offset?: number | undefined;
76
80
  order?: string | undefined;
77
81
  org_id?: string | undefined;
82
+ parent_id?: string | undefined;
78
83
  query?: string | undefined;
79
84
  raw?: string | undefined;
80
85
  sort?: string | undefined;
@@ -94,6 +99,7 @@ export const ListAdsGroupsRequest$outboundSchema: z.ZodType<
94
99
  offset: z.number().optional(),
95
100
  order: z.string().optional(),
96
101
  orgId: z.string().optional(),
102
+ parentId: z.string().optional(),
97
103
  query: z.string().optional(),
98
104
  raw: z.string().optional(),
99
105
  sort: z.string().optional(),
@@ -103,6 +109,7 @@ export const ListAdsGroupsRequest$outboundSchema: z.ZodType<
103
109
  campaignId: "campaign_id",
104
110
  connectionId: "connection_id",
105
111
  orgId: "org_id",
112
+ parentId: "parent_id",
106
113
  updatedGte: "updated_gte",
107
114
  });
108
115
  });
@@ -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";