@iamweird/planfix-api-client 1.5.3

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 (82) hide show
  1. package/README.md +82 -0
  2. package/dist/generated/checklist/checklist.d.ts +136 -0
  3. package/dist/generated/checklist/checklist.d.ts.map +1 -0
  4. package/dist/generated/checklist/checklist.js +136 -0
  5. package/dist/generated/checklist/checklist.js.map +1 -0
  6. package/dist/generated/comments/comments.d.ts +197 -0
  7. package/dist/generated/comments/comments.d.ts.map +1 -0
  8. package/dist/generated/comments/comments.js +164 -0
  9. package/dist/generated/comments/comments.js.map +1 -0
  10. package/dist/generated/contact/contact.d.ts +1247 -0
  11. package/dist/generated/contact/contact.d.ts.map +1 -0
  12. package/dist/generated/contact/contact.js +934 -0
  13. package/dist/generated/contact/contact.js.map +1 -0
  14. package/dist/generated/custom-fields/custom-fields.d.ts +308 -0
  15. package/dist/generated/custom-fields/custom-fields.d.ts.map +1 -0
  16. package/dist/generated/custom-fields/custom-fields.js +133 -0
  17. package/dist/generated/custom-fields/custom-fields.js.map +1 -0
  18. package/dist/generated/custom-fields-contact/custom-fields-contact.d.ts +197 -0
  19. package/dist/generated/custom-fields-contact/custom-fields-contact.d.ts.map +1 -0
  20. package/dist/generated/custom-fields-contact/custom-fields-contact.js +92 -0
  21. package/dist/generated/custom-fields-contact/custom-fields-contact.js.map +1 -0
  22. package/dist/generated/custom-fields-employee/custom-fields-employee.d.ts +197 -0
  23. package/dist/generated/custom-fields-employee/custom-fields-employee.d.ts.map +1 -0
  24. package/dist/generated/custom-fields-employee/custom-fields-employee.js +92 -0
  25. package/dist/generated/custom-fields-employee/custom-fields-employee.js.map +1 -0
  26. package/dist/generated/custom-fields-project/custom-fields-project.d.ts +196 -0
  27. package/dist/generated/custom-fields-project/custom-fields-project.d.ts.map +1 -0
  28. package/dist/generated/custom-fields-project/custom-fields-project.js +91 -0
  29. package/dist/generated/custom-fields-project/custom-fields-project.js.map +1 -0
  30. package/dist/generated/custom-fields-task/custom-fields-task.d.ts +196 -0
  31. package/dist/generated/custom-fields-task/custom-fields-task.d.ts.map +1 -0
  32. package/dist/generated/custom-fields-task/custom-fields-task.js +91 -0
  33. package/dist/generated/custom-fields-task/custom-fields-task.js.map +1 -0
  34. package/dist/generated/data-tags/data-tags.d.ts +464 -0
  35. package/dist/generated/data-tags/data-tags.d.ts.map +1 -0
  36. package/dist/generated/data-tags/data-tags.js +236 -0
  37. package/dist/generated/data-tags/data-tags.js.map +1 -0
  38. package/dist/generated/directory/directory.d.ts +532 -0
  39. package/dist/generated/directory/directory.d.ts.map +1 -0
  40. package/dist/generated/directory/directory.js +300 -0
  41. package/dist/generated/directory/directory.js.map +1 -0
  42. package/dist/generated/employee/employee.d.ts +533 -0
  43. package/dist/generated/employee/employee.d.ts.map +1 -0
  44. package/dist/generated/employee/employee.js +313 -0
  45. package/dist/generated/employee/employee.js.map +1 -0
  46. package/dist/generated/file/file.d.ts +133 -0
  47. package/dist/generated/file/file.d.ts.map +1 -0
  48. package/dist/generated/file/file.js +127 -0
  49. package/dist/generated/file/file.js.map +1 -0
  50. package/dist/generated/monitoring/monitoring.d.ts +16 -0
  51. package/dist/generated/monitoring/monitoring.d.ts.map +1 -0
  52. package/dist/generated/monitoring/monitoring.js +16 -0
  53. package/dist/generated/monitoring/monitoring.js.map +1 -0
  54. package/dist/generated/object/object.d.ts +395 -0
  55. package/dist/generated/object/object.d.ts.map +1 -0
  56. package/dist/generated/object/object.js +301 -0
  57. package/dist/generated/object/object.js.map +1 -0
  58. package/dist/generated/process/process.d.ts +62 -0
  59. package/dist/generated/process/process.d.ts.map +1 -0
  60. package/dist/generated/process/process.js +62 -0
  61. package/dist/generated/process/process.js.map +1 -0
  62. package/dist/generated/project/project.d.ts +696 -0
  63. package/dist/generated/project/project.d.ts.map +1 -0
  64. package/dist/generated/project/project.js +586 -0
  65. package/dist/generated/project/project.js.map +1 -0
  66. package/dist/generated/report/report.d.ts +143 -0
  67. package/dist/generated/report/report.d.ts.map +1 -0
  68. package/dist/generated/report/report.js +140 -0
  69. package/dist/generated/report/report.js.map +1 -0
  70. package/dist/generated/system/system.d.ts +52 -0
  71. package/dist/generated/system/system.d.ts.map +1 -0
  72. package/dist/generated/system/system.js +52 -0
  73. package/dist/generated/system/system.js.map +1 -0
  74. package/dist/generated/task/task.d.ts +1763 -0
  75. package/dist/generated/task/task.d.ts.map +1 -0
  76. package/dist/generated/task/task.js +1375 -0
  77. package/dist/generated/task/task.js.map +1 -0
  78. package/dist/index.d.ts +20 -0
  79. package/dist/index.d.ts.map +1 -0
  80. package/dist/index.js +22 -0
  81. package/dist/index.js.map +1 -0
  82. package/package.json +53 -0
@@ -0,0 +1,197 @@
1
+ /**
2
+ * Generated by orval v8.3.0 🍺
3
+ * Do not edit manually.
4
+ * Planfix REST API
5
+ * Documentation for Planfix REST API. <br> Generated <a href="https://root/restapidocs/swagger.json">swagger.json</a>
6
+ * OpenAPI spec version: 1.5.3
7
+ */
8
+ import * as zod from 'zod';
9
+ /**
10
+ * This method lets you get a list of custom contact and company fields
11
+ * @summary Get a list of a custom contact fields
12
+ */
13
+ export declare const GetCustomfieldContactQueryParams: zod.ZodObject<{
14
+ fields: zod.ZodOptional<zod.ZodString>;
15
+ }, zod.z.core.$strip>;
16
+ export declare const GetCustomfieldContactResponse: zod.ZodObject<{
17
+ result: zod.ZodOptional<zod.ZodString>;
18
+ customfields: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
19
+ id: zod.ZodOptional<zod.ZodNumber>;
20
+ name: zod.ZodOptional<zod.ZodString>;
21
+ names: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
22
+ type: zod.ZodOptional<zod.ZodEnum<{
23
+ "0 // Line": "0 // Line";
24
+ "1 // Number": "1 // Number";
25
+ "2 // Text": "2 // Text";
26
+ "3 // Date": "3 // Date";
27
+ "4 // Time": "4 // Time";
28
+ "5 // Date and time": "5 // Date and time";
29
+ "6 // Period of time": "6 // Period of time";
30
+ "7 // Checkbox": "7 // Checkbox";
31
+ "8 // List": "8 // List";
32
+ "9 // Directory entry": "9 // Directory entry";
33
+ "10 // Contact": "10 // Contact";
34
+ "11 // Employee": "11 // Employee";
35
+ "12 // Counterparty": "12 // Counterparty";
36
+ "13 // Group, employee, or contact": "13 // Group, employee, or contact";
37
+ "14 // List of users": "14 // List of users";
38
+ "15 // Set of directory values": "15 // Set of directory values";
39
+ "16 // Task": "16 // Task";
40
+ "17 // Task set": "17 // Task set";
41
+ "20 // Set of values": "20 // Set of values";
42
+ "21 // Files": "21 // Files";
43
+ "22 // Project": "22 // Project";
44
+ "23 // Data tag summaries": "23 // Data tag summaries";
45
+ "24 // Calculated field": "24 // Calculated field";
46
+ "25 // Location": "25 // Location";
47
+ "26 // Subtask total": "26 // Subtask total";
48
+ "27 // AI results field": "27 // AI results field";
49
+ }>>;
50
+ objectType: zod.ZodOptional<zod.ZodEnum<{
51
+ "0 // Task": "0 // Task";
52
+ "1 // Contact": "1 // Contact";
53
+ "2 // Directory": "2 // Directory";
54
+ "3 // Project": "3 // Project";
55
+ "4 // Data tag": "4 // Data tag";
56
+ "5 // Main": "5 // Main";
57
+ "6 // Employee": "6 // Employee";
58
+ }>>;
59
+ groupId: zod.ZodOptional<zod.ZodNumber>;
60
+ directoryId: zod.ZodOptional<zod.ZodNumber>;
61
+ directoryFields: zod.ZodOptional<zod.ZodArray<zod.ZodNumber>>;
62
+ enumValues: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
63
+ mainValue: zod.ZodOptional<zod.ZodString>;
64
+ }, zod.z.core.$strip>>>;
65
+ }, zod.z.core.$strip>;
66
+ /**
67
+ * This method lets you get a list of custom fields for contact or company
68
+ * @summary Get a list of a custom fields for contact
69
+ */
70
+ export declare const getCustomfieldsForContactPathIdRegExp: RegExp;
71
+ export declare const GetCustomfieldsForContactParams: zod.ZodObject<{
72
+ id: zod.ZodString;
73
+ }, zod.z.core.$strip>;
74
+ export declare const GetCustomfieldsForContactQueryParams: zod.ZodObject<{
75
+ fields: zod.ZodOptional<zod.ZodString>;
76
+ }, zod.z.core.$strip>;
77
+ export declare const GetCustomfieldsForContactResponse: zod.ZodObject<{
78
+ result: zod.ZodOptional<zod.ZodString>;
79
+ customfields: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
80
+ id: zod.ZodOptional<zod.ZodNumber>;
81
+ name: zod.ZodOptional<zod.ZodString>;
82
+ names: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
83
+ type: zod.ZodOptional<zod.ZodEnum<{
84
+ "0 // Line": "0 // Line";
85
+ "1 // Number": "1 // Number";
86
+ "2 // Text": "2 // Text";
87
+ "3 // Date": "3 // Date";
88
+ "4 // Time": "4 // Time";
89
+ "5 // Date and time": "5 // Date and time";
90
+ "6 // Period of time": "6 // Period of time";
91
+ "7 // Checkbox": "7 // Checkbox";
92
+ "8 // List": "8 // List";
93
+ "9 // Directory entry": "9 // Directory entry";
94
+ "10 // Contact": "10 // Contact";
95
+ "11 // Employee": "11 // Employee";
96
+ "12 // Counterparty": "12 // Counterparty";
97
+ "13 // Group, employee, or contact": "13 // Group, employee, or contact";
98
+ "14 // List of users": "14 // List of users";
99
+ "15 // Set of directory values": "15 // Set of directory values";
100
+ "16 // Task": "16 // Task";
101
+ "17 // Task set": "17 // Task set";
102
+ "20 // Set of values": "20 // Set of values";
103
+ "21 // Files": "21 // Files";
104
+ "22 // Project": "22 // Project";
105
+ "23 // Data tag summaries": "23 // Data tag summaries";
106
+ "24 // Calculated field": "24 // Calculated field";
107
+ "25 // Location": "25 // Location";
108
+ "26 // Subtask total": "26 // Subtask total";
109
+ "27 // AI results field": "27 // AI results field";
110
+ }>>;
111
+ objectType: zod.ZodOptional<zod.ZodEnum<{
112
+ "0 // Task": "0 // Task";
113
+ "1 // Contact": "1 // Contact";
114
+ "2 // Directory": "2 // Directory";
115
+ "3 // Project": "3 // Project";
116
+ "4 // Data tag": "4 // Data tag";
117
+ "5 // Main": "5 // Main";
118
+ "6 // Employee": "6 // Employee";
119
+ }>>;
120
+ groupId: zod.ZodOptional<zod.ZodNumber>;
121
+ directoryId: zod.ZodOptional<zod.ZodNumber>;
122
+ directoryFields: zod.ZodOptional<zod.ZodArray<zod.ZodNumber>>;
123
+ enumValues: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
124
+ mainValue: zod.ZodOptional<zod.ZodString>;
125
+ }, zod.z.core.$strip>>>;
126
+ }, zod.z.core.$strip>;
127
+ /**
128
+ * This method lets you create a custom field for contact
129
+ * @summary Create a custom field for contact
130
+ */
131
+ export declare const PostCustomfieldAddBody: zod.ZodObject<{
132
+ id: zod.ZodOptional<zod.ZodNumber>;
133
+ name: zod.ZodOptional<zod.ZodString>;
134
+ names: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
135
+ type: zod.ZodOptional<zod.ZodEnum<{
136
+ "0 // Line": "0 // Line";
137
+ "1 // Number": "1 // Number";
138
+ "2 // Text": "2 // Text";
139
+ "3 // Date": "3 // Date";
140
+ "4 // Time": "4 // Time";
141
+ "5 // Date and time": "5 // Date and time";
142
+ "6 // Period of time": "6 // Period of time";
143
+ "7 // Checkbox": "7 // Checkbox";
144
+ "8 // List": "8 // List";
145
+ "9 // Directory entry": "9 // Directory entry";
146
+ "10 // Contact": "10 // Contact";
147
+ "11 // Employee": "11 // Employee";
148
+ "12 // Counterparty": "12 // Counterparty";
149
+ "13 // Group, employee, or contact": "13 // Group, employee, or contact";
150
+ "14 // List of users": "14 // List of users";
151
+ "15 // Set of directory values": "15 // Set of directory values";
152
+ "16 // Task": "16 // Task";
153
+ "17 // Task set": "17 // Task set";
154
+ "20 // Set of values": "20 // Set of values";
155
+ "21 // Files": "21 // Files";
156
+ "22 // Project": "22 // Project";
157
+ "23 // Data tag summaries": "23 // Data tag summaries";
158
+ "24 // Calculated field": "24 // Calculated field";
159
+ "25 // Location": "25 // Location";
160
+ "26 // Subtask total": "26 // Subtask total";
161
+ "27 // AI results field": "27 // AI results field";
162
+ }>>;
163
+ objectType: zod.ZodOptional<zod.ZodEnum<{
164
+ "0 // Task": "0 // Task";
165
+ "1 // Contact": "1 // Contact";
166
+ "2 // Directory": "2 // Directory";
167
+ "3 // Project": "3 // Project";
168
+ "4 // Data tag": "4 // Data tag";
169
+ "5 // Main": "5 // Main";
170
+ "6 // Employee": "6 // Employee";
171
+ }>>;
172
+ groupId: zod.ZodOptional<zod.ZodNumber>;
173
+ directoryId: zod.ZodOptional<zod.ZodNumber>;
174
+ directoryFields: zod.ZodOptional<zod.ZodArray<zod.ZodNumber>>;
175
+ enumValues: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
176
+ mainValue: zod.ZodOptional<zod.ZodString>;
177
+ }, zod.z.core.$strip>;
178
+ /**
179
+ * This method lets you get a list of custom contact and company fields sets
180
+ * @summary Get a list of a custom contact fields set
181
+ */
182
+ export declare const GetCustomfieldSetsContactResponse: zod.ZodObject<{
183
+ result: zod.ZodOptional<zod.ZodString>;
184
+ customFieldSets: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
185
+ id: zod.ZodOptional<zod.ZodNumber>;
186
+ name: zod.ZodOptional<zod.ZodString>;
187
+ }, zod.z.core.$strip>>>;
188
+ }, zod.z.core.$strip>;
189
+ /**
190
+ * This method lets you create a custom fields set for contact
191
+ * @summary Create a custom fields set for contact
192
+ */
193
+ export declare const PostCustomfieldSetAddBody: zod.ZodObject<{
194
+ id: zod.ZodOptional<zod.ZodNumber>;
195
+ name: zod.ZodOptional<zod.ZodString>;
196
+ }, zod.z.core.$strip>;
197
+ //# sourceMappingURL=custom-fields-contact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-fields-contact.d.ts","sourceRoot":"","sources":["../../../src/generated/custom-fields-contact/custom-fields-contact.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAG3B;;;GAGG;AACH,eAAO,MAAM,gCAAgC;;qBAE3C,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAcxC,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,qCAAqC,QAA6B,CAAC;AAGhF,eAAO,MAAM,+BAA+B;;qBAE1C,CAAA;AAEF,eAAO,MAAM,oCAAoC;;qBAE/C,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAc5C,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAWjC,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,iCAAiC;;;;;;qBAM5C,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;qBAGpC,CAAA"}
@@ -0,0 +1,92 @@
1
+ /**
2
+ * Generated by orval v8.3.0 🍺
3
+ * Do not edit manually.
4
+ * Planfix REST API
5
+ * Documentation for Planfix REST API. <br> Generated <a href="https://root/restapidocs/swagger.json">swagger.json</a>
6
+ * OpenAPI spec version: 1.5.3
7
+ */
8
+ import * as zod from 'zod';
9
+ /**
10
+ * This method lets you get a list of custom contact and company fields
11
+ * @summary Get a list of a custom contact fields
12
+ */
13
+ export const GetCustomfieldContactQueryParams = zod.object({
14
+ "fields": zod.string().optional().describe('Fields returned - system field names, comma-delimited. <br>\*Possible for system fields:\* id, name, names, type, objectType, groupId, directoryId, directoryFields, enumValues')
15
+ });
16
+ export const GetCustomfieldContactResponse = zod.object({
17
+ "result": zod.string().optional(),
18
+ "customfields": zod.array(zod.object({
19
+ "id": zod.number().optional(),
20
+ "name": zod.string().optional(),
21
+ "names": zod.record(zod.string(), zod.string().describe('Name of any language')).optional(),
22
+ "type": zod.enum(['0 // Line', '1 // Number', '2 // Text', '3 // Date', '4 // Time', '5 // Date and time', '6 // Period of time', '7 // Checkbox', '8 // List', '9 // Directory entry', '10 // Contact', '11 // Employee', '12 // Counterparty', '13 // Group, employee, or contact', '14 // List of users', '15 // Set of directory values', '16 // Task', '17 // Task set', '20 // Set of values', '21 // Files', '22 // Project', '23 // Data tag summaries', '24 // Calculated field', '25 // Location', '26 // Subtask total', '27 // AI results field']).optional(),
23
+ "objectType": zod.enum(['0 // Task', '1 // Contact', '2 // Directory', '3 // Project', '4 // Data tag', '5 // Main', '6 // Employee']).optional(),
24
+ "groupId": zod.number().optional(),
25
+ "directoryId": zod.number().optional(),
26
+ "directoryFields": zod.array(zod.number()).optional(),
27
+ "enumValues": zod.array(zod.string()).optional(),
28
+ "mainValue": zod.string().optional().describe('Only for main fields')
29
+ })).optional()
30
+ });
31
+ /**
32
+ * This method lets you get a list of custom fields for contact or company
33
+ * @summary Get a list of a custom fields for contact
34
+ */
35
+ export const getCustomfieldsForContactPathIdRegExp = new RegExp('[a-zA-Z:0-9]');
36
+ export const GetCustomfieldsForContactParams = zod.object({
37
+ "id": zod.string().regex(getCustomfieldsForContactPathIdRegExp).describe('Number of contact')
38
+ });
39
+ export const GetCustomfieldsForContactQueryParams = zod.object({
40
+ "fields": zod.string().optional().describe('Fields returned - system field names, comma-delimited. <br>\*Possible for system fields:\* id, name, names, type, objectType, groupId, directoryId, directoryFields, enumValues')
41
+ });
42
+ export const GetCustomfieldsForContactResponse = zod.object({
43
+ "result": zod.string().optional(),
44
+ "customfields": zod.array(zod.object({
45
+ "id": zod.number().optional(),
46
+ "name": zod.string().optional(),
47
+ "names": zod.record(zod.string(), zod.string().describe('Name of any language')).optional(),
48
+ "type": zod.enum(['0 // Line', '1 // Number', '2 // Text', '3 // Date', '4 // Time', '5 // Date and time', '6 // Period of time', '7 // Checkbox', '8 // List', '9 // Directory entry', '10 // Contact', '11 // Employee', '12 // Counterparty', '13 // Group, employee, or contact', '14 // List of users', '15 // Set of directory values', '16 // Task', '17 // Task set', '20 // Set of values', '21 // Files', '22 // Project', '23 // Data tag summaries', '24 // Calculated field', '25 // Location', '26 // Subtask total', '27 // AI results field']).optional(),
49
+ "objectType": zod.enum(['0 // Task', '1 // Contact', '2 // Directory', '3 // Project', '4 // Data tag', '5 // Main', '6 // Employee']).optional(),
50
+ "groupId": zod.number().optional(),
51
+ "directoryId": zod.number().optional(),
52
+ "directoryFields": zod.array(zod.number()).optional(),
53
+ "enumValues": zod.array(zod.string()).optional(),
54
+ "mainValue": zod.string().optional().describe('Only for main fields')
55
+ })).optional()
56
+ });
57
+ /**
58
+ * This method lets you create a custom field for contact
59
+ * @summary Create a custom field for contact
60
+ */
61
+ export const PostCustomfieldAddBody = zod.object({
62
+ "id": zod.number().optional(),
63
+ "name": zod.string().optional(),
64
+ "names": zod.record(zod.string(), zod.string().describe('Name of any language')).optional(),
65
+ "type": zod.enum(['0 // Line', '1 // Number', '2 // Text', '3 // Date', '4 // Time', '5 // Date and time', '6 // Period of time', '7 // Checkbox', '8 // List', '9 // Directory entry', '10 // Contact', '11 // Employee', '12 // Counterparty', '13 // Group, employee, or contact', '14 // List of users', '15 // Set of directory values', '16 // Task', '17 // Task set', '20 // Set of values', '21 // Files', '22 // Project', '23 // Data tag summaries', '24 // Calculated field', '25 // Location', '26 // Subtask total', '27 // AI results field']).optional(),
66
+ "objectType": zod.enum(['0 // Task', '1 // Contact', '2 // Directory', '3 // Project', '4 // Data tag', '5 // Main', '6 // Employee']).optional(),
67
+ "groupId": zod.number().optional(),
68
+ "directoryId": zod.number().optional(),
69
+ "directoryFields": zod.array(zod.number()).optional(),
70
+ "enumValues": zod.array(zod.string()).optional(),
71
+ "mainValue": zod.string().optional().describe('Only for main fields')
72
+ });
73
+ /**
74
+ * This method lets you get a list of custom contact and company fields sets
75
+ * @summary Get a list of a custom contact fields set
76
+ */
77
+ export const GetCustomfieldSetsContactResponse = zod.object({
78
+ "result": zod.string().optional(),
79
+ "customFieldSets": zod.array(zod.object({
80
+ "id": zod.number().optional(),
81
+ "name": zod.string().optional()
82
+ })).optional()
83
+ });
84
+ /**
85
+ * This method lets you create a custom fields set for contact
86
+ * @summary Create a custom fields set for contact
87
+ */
88
+ export const PostCustomfieldSetAddBody = zod.object({
89
+ "id": zod.number().optional(),
90
+ "name": zod.string().optional()
91
+ });
92
+ //# sourceMappingURL=custom-fields-contact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-fields-contact.js","sourceRoot":"","sources":["../../../src/generated/custom-fields-contact/custom-fields-contact.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAG3B;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,CAAC,MAAM,CAAC;IACzD,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iLAAiL,CAAC;CAC9N,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,CAAC,MAAM,CAAC;IACtD,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,cAAc,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC;QACrC,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,QAAQ,EAAE;QAC3F,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,eAAe,EAAE,WAAW,EAAE,sBAAsB,EAAE,eAAe,EAAE,gBAAgB,EAAE,oBAAoB,E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AW,EAAE,eAAe,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjJ,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,iBAAiB,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrD,YAAY,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;CACtE,CAAC,CAAA;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,CAAC,MAAM,CAAC;IAC1D,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,iBAAiB,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC;QACxC,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAChC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACb,CAAC,CAAA;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAA"}
@@ -0,0 +1,197 @@
1
+ /**
2
+ * Generated by orval v8.3.0 🍺
3
+ * Do not edit manually.
4
+ * Planfix REST API
5
+ * Documentation for Planfix REST API. <br> Generated <a href="https://root/restapidocs/swagger.json">swagger.json</a>
6
+ * OpenAPI spec version: 1.5.3
7
+ */
8
+ import * as zod from 'zod';
9
+ /**
10
+ * This method lets you get a list of custom employee fields
11
+ * @summary Get list of custom employee fields
12
+ */
13
+ export declare const GetCustomfieldUserQueryParams: zod.ZodObject<{
14
+ fields: zod.ZodOptional<zod.ZodString>;
15
+ }, zod.z.core.$strip>;
16
+ export declare const GetCustomfieldUserResponse: zod.ZodObject<{
17
+ result: zod.ZodOptional<zod.ZodString>;
18
+ customfields: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
19
+ id: zod.ZodOptional<zod.ZodNumber>;
20
+ name: zod.ZodOptional<zod.ZodString>;
21
+ names: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
22
+ type: zod.ZodOptional<zod.ZodEnum<{
23
+ "0 // Line": "0 // Line";
24
+ "1 // Number": "1 // Number";
25
+ "2 // Text": "2 // Text";
26
+ "3 // Date": "3 // Date";
27
+ "4 // Time": "4 // Time";
28
+ "5 // Date and time": "5 // Date and time";
29
+ "6 // Period of time": "6 // Period of time";
30
+ "7 // Checkbox": "7 // Checkbox";
31
+ "8 // List": "8 // List";
32
+ "9 // Directory entry": "9 // Directory entry";
33
+ "10 // Contact": "10 // Contact";
34
+ "11 // Employee": "11 // Employee";
35
+ "12 // Counterparty": "12 // Counterparty";
36
+ "13 // Group, employee, or contact": "13 // Group, employee, or contact";
37
+ "14 // List of users": "14 // List of users";
38
+ "15 // Set of directory values": "15 // Set of directory values";
39
+ "16 // Task": "16 // Task";
40
+ "17 // Task set": "17 // Task set";
41
+ "20 // Set of values": "20 // Set of values";
42
+ "21 // Files": "21 // Files";
43
+ "22 // Project": "22 // Project";
44
+ "23 // Data tag summaries": "23 // Data tag summaries";
45
+ "24 // Calculated field": "24 // Calculated field";
46
+ "25 // Location": "25 // Location";
47
+ "26 // Subtask total": "26 // Subtask total";
48
+ "27 // AI results field": "27 // AI results field";
49
+ }>>;
50
+ objectType: zod.ZodOptional<zod.ZodEnum<{
51
+ "0 // Task": "0 // Task";
52
+ "1 // Contact": "1 // Contact";
53
+ "2 // Directory": "2 // Directory";
54
+ "3 // Project": "3 // Project";
55
+ "4 // Data tag": "4 // Data tag";
56
+ "5 // Main": "5 // Main";
57
+ "6 // Employee": "6 // Employee";
58
+ }>>;
59
+ groupId: zod.ZodOptional<zod.ZodNumber>;
60
+ directoryId: zod.ZodOptional<zod.ZodNumber>;
61
+ directoryFields: zod.ZodOptional<zod.ZodArray<zod.ZodNumber>>;
62
+ enumValues: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
63
+ mainValue: zod.ZodOptional<zod.ZodString>;
64
+ }, zod.z.core.$strip>>>;
65
+ }, zod.z.core.$strip>;
66
+ /**
67
+ * This method lets you get a list of custom fields for employee
68
+ * @summary Get list of custom fields for employee
69
+ */
70
+ export declare const getCustomfieldsForUserPathIdRegExp: RegExp;
71
+ export declare const GetCustomfieldsForUserParams: zod.ZodObject<{
72
+ id: zod.ZodString;
73
+ }, zod.z.core.$strip>;
74
+ export declare const GetCustomfieldsForUserQueryParams: zod.ZodObject<{
75
+ fields: zod.ZodOptional<zod.ZodString>;
76
+ }, zod.z.core.$strip>;
77
+ export declare const GetCustomfieldsForUserResponse: zod.ZodObject<{
78
+ result: zod.ZodOptional<zod.ZodString>;
79
+ customfields: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
80
+ id: zod.ZodOptional<zod.ZodNumber>;
81
+ name: zod.ZodOptional<zod.ZodString>;
82
+ names: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
83
+ type: zod.ZodOptional<zod.ZodEnum<{
84
+ "0 // Line": "0 // Line";
85
+ "1 // Number": "1 // Number";
86
+ "2 // Text": "2 // Text";
87
+ "3 // Date": "3 // Date";
88
+ "4 // Time": "4 // Time";
89
+ "5 // Date and time": "5 // Date and time";
90
+ "6 // Period of time": "6 // Period of time";
91
+ "7 // Checkbox": "7 // Checkbox";
92
+ "8 // List": "8 // List";
93
+ "9 // Directory entry": "9 // Directory entry";
94
+ "10 // Contact": "10 // Contact";
95
+ "11 // Employee": "11 // Employee";
96
+ "12 // Counterparty": "12 // Counterparty";
97
+ "13 // Group, employee, or contact": "13 // Group, employee, or contact";
98
+ "14 // List of users": "14 // List of users";
99
+ "15 // Set of directory values": "15 // Set of directory values";
100
+ "16 // Task": "16 // Task";
101
+ "17 // Task set": "17 // Task set";
102
+ "20 // Set of values": "20 // Set of values";
103
+ "21 // Files": "21 // Files";
104
+ "22 // Project": "22 // Project";
105
+ "23 // Data tag summaries": "23 // Data tag summaries";
106
+ "24 // Calculated field": "24 // Calculated field";
107
+ "25 // Location": "25 // Location";
108
+ "26 // Subtask total": "26 // Subtask total";
109
+ "27 // AI results field": "27 // AI results field";
110
+ }>>;
111
+ objectType: zod.ZodOptional<zod.ZodEnum<{
112
+ "0 // Task": "0 // Task";
113
+ "1 // Contact": "1 // Contact";
114
+ "2 // Directory": "2 // Directory";
115
+ "3 // Project": "3 // Project";
116
+ "4 // Data tag": "4 // Data tag";
117
+ "5 // Main": "5 // Main";
118
+ "6 // Employee": "6 // Employee";
119
+ }>>;
120
+ groupId: zod.ZodOptional<zod.ZodNumber>;
121
+ directoryId: zod.ZodOptional<zod.ZodNumber>;
122
+ directoryFields: zod.ZodOptional<zod.ZodArray<zod.ZodNumber>>;
123
+ enumValues: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
124
+ mainValue: zod.ZodOptional<zod.ZodString>;
125
+ }, zod.z.core.$strip>>>;
126
+ }, zod.z.core.$strip>;
127
+ /**
128
+ * This method lets you create a custom field for user
129
+ * @summary Create a custom field for user
130
+ */
131
+ export declare const PostCustomfieldUserAddBody: zod.ZodObject<{
132
+ id: zod.ZodOptional<zod.ZodNumber>;
133
+ name: zod.ZodOptional<zod.ZodString>;
134
+ names: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
135
+ type: zod.ZodOptional<zod.ZodEnum<{
136
+ "0 // Line": "0 // Line";
137
+ "1 // Number": "1 // Number";
138
+ "2 // Text": "2 // Text";
139
+ "3 // Date": "3 // Date";
140
+ "4 // Time": "4 // Time";
141
+ "5 // Date and time": "5 // Date and time";
142
+ "6 // Period of time": "6 // Period of time";
143
+ "7 // Checkbox": "7 // Checkbox";
144
+ "8 // List": "8 // List";
145
+ "9 // Directory entry": "9 // Directory entry";
146
+ "10 // Contact": "10 // Contact";
147
+ "11 // Employee": "11 // Employee";
148
+ "12 // Counterparty": "12 // Counterparty";
149
+ "13 // Group, employee, or contact": "13 // Group, employee, or contact";
150
+ "14 // List of users": "14 // List of users";
151
+ "15 // Set of directory values": "15 // Set of directory values";
152
+ "16 // Task": "16 // Task";
153
+ "17 // Task set": "17 // Task set";
154
+ "20 // Set of values": "20 // Set of values";
155
+ "21 // Files": "21 // Files";
156
+ "22 // Project": "22 // Project";
157
+ "23 // Data tag summaries": "23 // Data tag summaries";
158
+ "24 // Calculated field": "24 // Calculated field";
159
+ "25 // Location": "25 // Location";
160
+ "26 // Subtask total": "26 // Subtask total";
161
+ "27 // AI results field": "27 // AI results field";
162
+ }>>;
163
+ objectType: zod.ZodOptional<zod.ZodEnum<{
164
+ "0 // Task": "0 // Task";
165
+ "1 // Contact": "1 // Contact";
166
+ "2 // Directory": "2 // Directory";
167
+ "3 // Project": "3 // Project";
168
+ "4 // Data tag": "4 // Data tag";
169
+ "5 // Main": "5 // Main";
170
+ "6 // Employee": "6 // Employee";
171
+ }>>;
172
+ groupId: zod.ZodOptional<zod.ZodNumber>;
173
+ directoryId: zod.ZodOptional<zod.ZodNumber>;
174
+ directoryFields: zod.ZodOptional<zod.ZodArray<zod.ZodNumber>>;
175
+ enumValues: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
176
+ mainValue: zod.ZodOptional<zod.ZodString>;
177
+ }, zod.z.core.$strip>;
178
+ /**
179
+ * This method lets you get a list of custom user fields sets
180
+ * @summary Get a list of a custom user fields set
181
+ */
182
+ export declare const GetCustomfieldSetsUserResponse: zod.ZodObject<{
183
+ result: zod.ZodOptional<zod.ZodString>;
184
+ customFieldSets: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
185
+ id: zod.ZodOptional<zod.ZodNumber>;
186
+ name: zod.ZodOptional<zod.ZodString>;
187
+ }, zod.z.core.$strip>>>;
188
+ }, zod.z.core.$strip>;
189
+ /**
190
+ * This method lets you create a custom fields set for user
191
+ * @summary Create a custom fields set for user
192
+ */
193
+ export declare const PostCustomfieldSetUserAddBody: zod.ZodObject<{
194
+ id: zod.ZodOptional<zod.ZodNumber>;
195
+ name: zod.ZodOptional<zod.ZodString>;
196
+ }, zod.z.core.$strip>;
197
+ //# sourceMappingURL=custom-fields-employee.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-fields-employee.d.ts","sourceRoot":"","sources":["../../../src/generated/custom-fields-employee/custom-fields-employee.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAG3B;;;GAGG;AACH,eAAO,MAAM,6BAA6B;;qBAExC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAcrC,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,kCAAkC,QAA6B,CAAC;AAG7E,eAAO,MAAM,4BAA4B;;qBAEvC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;qBAE5C,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAczC,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAWrC,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;;;qBAMzC,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,6BAA6B;;;qBAGxC,CAAA"}
@@ -0,0 +1,92 @@
1
+ /**
2
+ * Generated by orval v8.3.0 🍺
3
+ * Do not edit manually.
4
+ * Planfix REST API
5
+ * Documentation for Planfix REST API. <br> Generated <a href="https://root/restapidocs/swagger.json">swagger.json</a>
6
+ * OpenAPI spec version: 1.5.3
7
+ */
8
+ import * as zod from 'zod';
9
+ /**
10
+ * This method lets you get a list of custom employee fields
11
+ * @summary Get list of custom employee fields
12
+ */
13
+ export const GetCustomfieldUserQueryParams = zod.object({
14
+ "fields": zod.string().optional().describe('Fields returned - system field names, comma-delimited. <br>\*Possible for system fields:\* id, name, names, type, objectType, groupId, directoryId, directoryFields, enumValues')
15
+ });
16
+ export const GetCustomfieldUserResponse = zod.object({
17
+ "result": zod.string().optional(),
18
+ "customfields": zod.array(zod.object({
19
+ "id": zod.number().optional(),
20
+ "name": zod.string().optional(),
21
+ "names": zod.record(zod.string(), zod.string().describe('Name of any language')).optional(),
22
+ "type": zod.enum(['0 // Line', '1 // Number', '2 // Text', '3 // Date', '4 // Time', '5 // Date and time', '6 // Period of time', '7 // Checkbox', '8 // List', '9 // Directory entry', '10 // Contact', '11 // Employee', '12 // Counterparty', '13 // Group, employee, or contact', '14 // List of users', '15 // Set of directory values', '16 // Task', '17 // Task set', '20 // Set of values', '21 // Files', '22 // Project', '23 // Data tag summaries', '24 // Calculated field', '25 // Location', '26 // Subtask total', '27 // AI results field']).optional(),
23
+ "objectType": zod.enum(['0 // Task', '1 // Contact', '2 // Directory', '3 // Project', '4 // Data tag', '5 // Main', '6 // Employee']).optional(),
24
+ "groupId": zod.number().optional(),
25
+ "directoryId": zod.number().optional(),
26
+ "directoryFields": zod.array(zod.number()).optional(),
27
+ "enumValues": zod.array(zod.string()).optional(),
28
+ "mainValue": zod.string().optional().describe('Only for main fields')
29
+ })).optional()
30
+ });
31
+ /**
32
+ * This method lets you get a list of custom fields for employee
33
+ * @summary Get list of custom fields for employee
34
+ */
35
+ export const getCustomfieldsForUserPathIdRegExp = new RegExp('[a-zA-Z:0-9]');
36
+ export const GetCustomfieldsForUserParams = zod.object({
37
+ "id": zod.string().regex(getCustomfieldsForUserPathIdRegExp).describe('Number of employee')
38
+ });
39
+ export const GetCustomfieldsForUserQueryParams = zod.object({
40
+ "fields": zod.string().optional().describe('Fields returned - system field names, comma-delimited. <br>\*Possible for system fields:\* id, name, names, type, objectType, groupId, directoryId, directoryFields, enumValues')
41
+ });
42
+ export const GetCustomfieldsForUserResponse = zod.object({
43
+ "result": zod.string().optional(),
44
+ "customfields": zod.array(zod.object({
45
+ "id": zod.number().optional(),
46
+ "name": zod.string().optional(),
47
+ "names": zod.record(zod.string(), zod.string().describe('Name of any language')).optional(),
48
+ "type": zod.enum(['0 // Line', '1 // Number', '2 // Text', '3 // Date', '4 // Time', '5 // Date and time', '6 // Period of time', '7 // Checkbox', '8 // List', '9 // Directory entry', '10 // Contact', '11 // Employee', '12 // Counterparty', '13 // Group, employee, or contact', '14 // List of users', '15 // Set of directory values', '16 // Task', '17 // Task set', '20 // Set of values', '21 // Files', '22 // Project', '23 // Data tag summaries', '24 // Calculated field', '25 // Location', '26 // Subtask total', '27 // AI results field']).optional(),
49
+ "objectType": zod.enum(['0 // Task', '1 // Contact', '2 // Directory', '3 // Project', '4 // Data tag', '5 // Main', '6 // Employee']).optional(),
50
+ "groupId": zod.number().optional(),
51
+ "directoryId": zod.number().optional(),
52
+ "directoryFields": zod.array(zod.number()).optional(),
53
+ "enumValues": zod.array(zod.string()).optional(),
54
+ "mainValue": zod.string().optional().describe('Only for main fields')
55
+ })).optional()
56
+ });
57
+ /**
58
+ * This method lets you create a custom field for user
59
+ * @summary Create a custom field for user
60
+ */
61
+ export const PostCustomfieldUserAddBody = zod.object({
62
+ "id": zod.number().optional(),
63
+ "name": zod.string().optional(),
64
+ "names": zod.record(zod.string(), zod.string().describe('Name of any language')).optional(),
65
+ "type": zod.enum(['0 // Line', '1 // Number', '2 // Text', '3 // Date', '4 // Time', '5 // Date and time', '6 // Period of time', '7 // Checkbox', '8 // List', '9 // Directory entry', '10 // Contact', '11 // Employee', '12 // Counterparty', '13 // Group, employee, or contact', '14 // List of users', '15 // Set of directory values', '16 // Task', '17 // Task set', '20 // Set of values', '21 // Files', '22 // Project', '23 // Data tag summaries', '24 // Calculated field', '25 // Location', '26 // Subtask total', '27 // AI results field']).optional(),
66
+ "objectType": zod.enum(['0 // Task', '1 // Contact', '2 // Directory', '3 // Project', '4 // Data tag', '5 // Main', '6 // Employee']).optional(),
67
+ "groupId": zod.number().optional(),
68
+ "directoryId": zod.number().optional(),
69
+ "directoryFields": zod.array(zod.number()).optional(),
70
+ "enumValues": zod.array(zod.string()).optional(),
71
+ "mainValue": zod.string().optional().describe('Only for main fields')
72
+ });
73
+ /**
74
+ * This method lets you get a list of custom user fields sets
75
+ * @summary Get a list of a custom user fields set
76
+ */
77
+ export const GetCustomfieldSetsUserResponse = zod.object({
78
+ "result": zod.string().optional(),
79
+ "customFieldSets": zod.array(zod.object({
80
+ "id": zod.number().optional(),
81
+ "name": zod.string().optional()
82
+ })).optional()
83
+ });
84
+ /**
85
+ * This method lets you create a custom fields set for user
86
+ * @summary Create a custom fields set for user
87
+ */
88
+ export const PostCustomfieldSetUserAddBody = zod.object({
89
+ "id": zod.number().optional(),
90
+ "name": zod.string().optional()
91
+ });
92
+ //# sourceMappingURL=custom-fields-employee.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-fields-employee.js","sourceRoot":"","sources":["../../../src/generated/custom-fields-employee/custom-fields-employee.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAG3B;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,CAAC,MAAM,CAAC;IACtD,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iLAAiL,CAAC;CAC9N,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAC,MAAM,CAAC;IACnD,QAA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