@appconda/sdk 1.0.411 → 1.0.414

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 (63) hide show
  1. package/dist/client.js +10 -4
  2. package/dist/inputFile.d.ts +0 -1
  3. package/dist/inputFile.js +1 -2
  4. package/dist/modules/agent/index.d.ts +0 -1
  5. package/dist/modules/agent/index.js +1 -2
  6. package/dist/modules/ai/node/index.d.ts +0 -1
  7. package/dist/modules/ai/node/index.js +1 -2
  8. package/dist/modules/builder/index.d.ts +0 -1
  9. package/dist/modules/builder/index.js +1 -2
  10. package/dist/modules/datasource/index.d.ts +0 -1
  11. package/dist/modules/datasource/index.js +1 -2
  12. package/dist/modules/emploid/index.d.ts +0 -1
  13. package/dist/modules/emploid/index.js +1 -2
  14. package/dist/modules/google/index.d.ts +0 -1
  15. package/dist/modules/google/index.js +1 -2
  16. package/dist/modules/hooks/index.d.ts +0 -1
  17. package/dist/modules/hooks/index.js +1 -2
  18. package/dist/modules/mail/index.d.ts +0 -1
  19. package/dist/modules/mail/index.js +1 -2
  20. package/dist/modules/notion/index.d.ts +0 -1
  21. package/dist/modules/notion/index.js +1 -2
  22. package/dist/modules/organization/index.d.ts +0 -1
  23. package/dist/modules/organization/index.js +1 -2
  24. package/dist/modules/scheduled-job/index.d.ts +0 -2
  25. package/dist/modules/scheduled-job/index.js +1 -3
  26. package/dist/modules/task/index.d.ts +0 -1
  27. package/dist/modules/task/index.js +1 -2
  28. package/dist/modules/tenant/index.d.ts +0 -1
  29. package/dist/modules/tenant/index.js +1 -2
  30. package/dist/modules/waitlist/index.d.ts +0 -1
  31. package/dist/modules/waitlist/index.js +1 -2
  32. package/package.json +1 -1
  33. package/src/client.ts +12 -3
  34. package/src/modules/agent/index.ts +1 -1
  35. package/src/modules/ai/node/index.ts +1 -1
  36. package/src/modules/builder/index.ts +1 -1
  37. package/src/modules/datasource/index.ts +1 -1
  38. package/src/modules/emploid/index.ts +1 -1
  39. package/src/modules/google/index.ts +1 -1
  40. package/src/modules/hooks/index.ts +1 -1
  41. package/src/modules/mail/index.ts +1 -1
  42. package/src/modules/notion/index.ts +1 -1
  43. package/src/modules/organization/index.ts +1 -1
  44. package/src/modules/scheduled-job/index.ts +1 -2
  45. package/src/modules/task/index.ts +1 -1
  46. package/src/modules/tenant/index.ts +1 -2
  47. package/src/modules/waitlist/index.ts +1 -1
  48. package/src/inputFile.ts +0 -23
  49. package/src/modules/agent/action.ts +0 -66
  50. package/src/modules/ai/node/actions.ts +0 -14
  51. package/src/modules/builder/action.ts +0 -234
  52. package/src/modules/datasource/action.ts +0 -189
  53. package/src/modules/emploid/action.ts +0 -1063
  54. package/src/modules/google/action.ts +0 -54
  55. package/src/modules/hooks/lib/handler.ts +0 -27
  56. package/src/modules/mail/action.ts +0 -22
  57. package/src/modules/notion/action.ts +0 -53
  58. package/src/modules/organization/action.ts +0 -71
  59. package/src/modules/scheduled-job/action.ts +0 -212
  60. package/src/modules/scheduled-job/lib/handler.ts +0 -27
  61. package/src/modules/task/action.ts +0 -819
  62. package/src/modules/tenant/actions.ts +0 -173
  63. package/src/modules/waitlist/action.ts +0 -93
@@ -1,1063 +0,0 @@
1
- 'use server';
2
-
3
- import { z } from 'zod';
4
- import { AppcondaException } from '../../client';
5
- import { CreateAgentFlowSchema, CreateAssistantSchema, CreateCompetencySchema, CreateEmploidSchema, CreateExtensionSchema, CreateInputSchema, CreateInstructionSchema, CreateJobDefinitionSchema, CreateOccupationSchema, CreateScopeSchema, CreateSkillSchema, CreateStreamIdSchema, CreateTeamSchema, CreateWorkerSchema, DeleteAssistantSchema, DeleteChatByIdSchema, DeleteCompetencySchema, DeleteDocumentsByIdAfterTimestampSchema, DeleteEmploidSchema, DeleteInputSchema, DeleteInstructionSchema, DeleteJobDefinitionSchema, DeleteMessagesByChatIdAfterTimestampSchema, DeleteOccupationSchema, DeleteScopeSchema, DeleteSkillSchema, DeleteTeamSchema, DeleteWorkerSchema, GetChatByIdSchema, GetChatsByUserIdSchema, GetDocumentByIdSchema, GetDocumentsByIdSchema, GetMessageByIdSchema, GetMessageCountByUserIdSchema, GetMessagesByChatIdSchema, GetStreamIdsByChatIdSchema, GetSuggestionsByDocumentIdSchema, GetVotesByChatIdSchema, ListAgentFlowsSchema, ListAssistantsSchema, ListCompetenciesSchema, ListEmploidsPaginatedSchema, ListEmploidsSchema, ListExtensionsSchema, ListInputSchema, ListInstructionsSchema, ListJobDefinitionSchema, ListOccupationsSchema, ListScopesSchema, ListSkillsSchema, ListTeamsSchema, ListWorkersSchema, SaveChatSchema, SaveDocumentSchema, SaveMessagesSchema, SaveSuggestionsSchema, UpdateAssistantSchema, UpdateChatLastContextByIdSchema, UpdateChatVisiblityByIdSchema, UpdateCompetencySchema, UpdateEmploidSchema, UpdateInputSchema, UpdateInstructionSchema, UpdateJobDefinitionSchema, UpdateOccupationSchema, UpdateScopeSchema, UpdateSkillSchema, UpdateTeamSchema, UpdateWorkerSchema, VoteMessageSchema } from './schema';
6
- import { TEmploid, TInstruction } from './types';
7
- import { getSDKForService } from '../../getSDKForService';
8
-
9
- export async function CreateEmploid(parsedInput: z.infer<typeof CreateEmploidSchema>): Promise<TEmploid> {
10
- try {
11
- const { emploid } = await getSDKForService();
12
- //@ts-ignore
13
- const app = await emploid.CreateEmploid(parsedInput);
14
- return app;
15
- } catch (error) {
16
- if (error instanceof AppcondaException) {
17
- throw new Error(error.message);
18
- }
19
-
20
- throw error;
21
- }
22
-
23
- }
24
-
25
- export const UpdateEmploid = async (parsedInput: z.infer<typeof UpdateEmploidSchema>): Promise<TEmploid> => {
26
- try {
27
- const { emploid } = await getSDKForService();
28
- //@ts-ignore
29
- const app = await emploid.UpdateEmploid(parsedInput);
30
- return app;
31
- } catch (error) {
32
- if (error instanceof AppcondaException) {
33
- throw new Error(error.message);
34
- }
35
-
36
- throw error;
37
- }
38
- }
39
-
40
- export const DeleteEmploid = async (parsedInput: z.infer<typeof DeleteEmploidSchema>): Promise<TEmploid> => {
41
- try {
42
- const { emploid } = await getSDKForService();
43
- //@ts-ignore
44
- const app = await emploid.DeleteEmploid(parsedInput);
45
- return app;
46
- } catch (error) {
47
- if (error instanceof AppcondaException) {
48
- throw new Error(error.message);
49
- }
50
-
51
- throw error;
52
- }
53
- }
54
-
55
- export const CreateInstruction = async (parsedInput: z.infer<typeof CreateInstructionSchema>): Promise<TInstruction> => {
56
- try {
57
- const { emploid } = await getSDKForService();
58
- //@ts-ignore
59
- const app = await emploid.CreateInstruction(parsedInput);
60
- return app;
61
- } catch (error) {
62
- if (error instanceof AppcondaException) {
63
- throw new Error(error.message);
64
- }
65
-
66
- throw error;
67
- }
68
- }
69
-
70
- export const UpdateInstruction = async (parsedInput: z.infer<typeof UpdateInstructionSchema>): Promise<TInstruction> => {
71
- try {
72
- const { emploid } = await getSDKForService();
73
- //@ts-ignore
74
- const app = await emploid.UpdateInstruction(parsedInput);
75
- return app;
76
- } catch (error) {
77
- if (error instanceof AppcondaException) {
78
- throw new Error(error.message);
79
- }
80
-
81
- throw error;
82
- }
83
- }
84
-
85
- export const ListInstructions = async (parsedInput: z.infer<typeof ListInstructionsSchema>): Promise<TInstruction[]> => {
86
- try {
87
- const { emploid } = await getSDKForService();
88
- //@ts-ignore
89
- const app = await emploid.ListInstructions(parsedInput);
90
- return app;
91
- } catch (error) {
92
- if (error instanceof AppcondaException) {
93
- throw new Error(error.message);
94
- }
95
-
96
- throw error;
97
- }
98
- }
99
-
100
- export const DeleteInstruction = async (parsedInput: z.infer<typeof DeleteInstructionSchema>): Promise<TInstruction> => {
101
- try {
102
- const { emploid } = await getSDKForService();
103
- //@ts-ignore
104
- const app = await emploid.DeleteInstruction(parsedInput);
105
- return app;
106
- } catch (error) {
107
- if (error instanceof AppcondaException) {
108
- throw new Error(error.message);
109
- }
110
-
111
- throw error;
112
- }
113
- }
114
-
115
-
116
- export const ListEmploids = async (parsedInput: z.infer<typeof ListEmploidsSchema>) => {
117
- try {
118
- const { emploid } = await getSDKForService();
119
- //@ts-ignore
120
- const app = await emploid.ListEmploids(parsedInput);
121
- return app;
122
- } catch (error) {
123
- if (error instanceof AppcondaException) {
124
- throw new Error(error.message);
125
- }
126
-
127
- throw error;
128
- }
129
- };
130
-
131
- export const ListEmploidsPaginated = async (parsedInput: z.infer<typeof ListEmploidsPaginatedSchema>) => {
132
- try {
133
- const { emploid } = await getSDKForService();
134
- //@ts-ignore
135
- const app = await emploid.ListEmploidsPaginated(parsedInput);
136
- return app;
137
- } catch (error) {
138
- if (error instanceof AppcondaException) {
139
- throw new Error(error.message);
140
- }
141
-
142
- throw error;
143
- }
144
- };
145
-
146
- export const ListScopes = async (parsedInput: z.infer<typeof ListScopesSchema>) => {
147
- try {
148
- const { emploid } = await getSDKForService();
149
- //@ts-ignore
150
- const app = await emploid.ListScopes(parsedInput);
151
- return app;
152
- } catch (error) {
153
- if (error instanceof AppcondaException) {
154
- throw new Error(error.message);
155
- }
156
-
157
- throw error;
158
- }
159
- };
160
-
161
- export const CreateOccupation = async (parsedInput: z.infer<typeof CreateOccupationSchema>) => {
162
- try {
163
- const { emploid } = await getSDKForService();
164
- //@ts-ignore
165
- const app = await emploid.CreateOccupation(parsedInput);
166
- return app;
167
- } catch (error) {
168
- if (error instanceof AppcondaException) {
169
- throw new Error(error.message);
170
- }
171
-
172
- throw error;
173
- }
174
- };
175
-
176
- export const UpdateOccupation = async (parsedInput: z.infer<typeof UpdateOccupationSchema>) => {
177
- try {
178
- const { emploid } = await getSDKForService();
179
- //@ts-ignore
180
- const app = await emploid.UpdateOccupation(parsedInput);
181
- return app;
182
- } catch (error) {
183
- if (error instanceof AppcondaException) {
184
- throw new Error(error.message);
185
- }
186
-
187
- throw error;
188
- }
189
- }
190
-
191
- export const DeleteOccupation = async (parsedInput: z.infer<typeof DeleteOccupationSchema>) => {
192
- try {
193
- const { emploid } = await getSDKForService();
194
- //@ts-ignore
195
- const app = await emploid.DeleteOccupation(parsedInput);
196
- return app;
197
- } catch (error) {
198
- if (error instanceof AppcondaException) {
199
- throw new Error(error.message);
200
- }
201
-
202
- throw error;
203
- }
204
- }
205
-
206
-
207
- export const CreateScope = async (parsedInput: z.infer<typeof CreateScopeSchema>) => {
208
- try {
209
- const { emploid } = await getSDKForService();
210
- //@ts-ignore
211
- const app = await emploid.CreateScope(parsedInput);
212
- return app;
213
- } catch (error) {
214
- if (error instanceof AppcondaException) {
215
- throw new Error(error.message);
216
- }
217
-
218
- throw error;
219
- }
220
- }
221
-
222
- export const UpdateScope = async (parsedInput: z.infer<typeof UpdateScopeSchema>) => {
223
- try {
224
- const { emploid } = await getSDKForService();
225
- //@ts-ignore
226
- const app = await emploid.UpdateScope(parsedInput);
227
- return app;
228
- } catch (error) {
229
- if (error instanceof AppcondaException) {
230
- throw new Error(error.message);
231
- }
232
-
233
- throw error;
234
- }
235
- };
236
-
237
- export const DeleteScope = async (parsedInput: z.infer<typeof DeleteScopeSchema>) => {
238
- try {
239
- const { emploid } = await getSDKForService();
240
- //@ts-ignore
241
- const app = await emploid.DeleteScope(parsedInput);
242
- return app;
243
- } catch (error) {
244
- if (error instanceof AppcondaException) {
245
- throw new Error(error.message);
246
- }
247
-
248
- throw error;
249
- }
250
- };
251
-
252
-
253
- export const ListOccupations = async (parsedInput: z.infer<typeof ListOccupationsSchema>) => {
254
- try {
255
- const { emploid } = await getSDKForService();
256
- //@ts-ignore
257
- const app = await emploid.ListOccupations(parsedInput);
258
- return app;
259
- } catch (error) {
260
- if (error instanceof AppcondaException) {
261
- throw new Error(error.message);
262
- }
263
-
264
- throw error;
265
- }
266
- };
267
-
268
- export const CreateJobDefinition = async (parsedInput: z.infer<typeof CreateJobDefinitionSchema>) => {
269
- try {
270
- const { emploid } = await getSDKForService();
271
- //@ts-ignore
272
- const app = await emploid.CreateJobDefinition(parsedInput);
273
- return app;
274
- } catch (error) {
275
- if (error instanceof AppcondaException) {
276
- throw new Error(error.message);
277
- }
278
-
279
- throw error;
280
- }
281
- };
282
-
283
- export const UpdateJobDefinition = async (parsedInput: z.infer<typeof UpdateJobDefinitionSchema>) => {
284
- try {
285
- const { emploid } = await getSDKForService();
286
- //@ts-ignore
287
- const app = await emploid.UpdateJobDefinition(parsedInput);
288
- return app;
289
- } catch (error) {
290
- if (error instanceof AppcondaException) {
291
- throw new Error(error.message);
292
- }
293
-
294
- throw error;
295
- }
296
- };
297
-
298
- export const DeleteJobDefinition = async (parsedInput: z.infer<typeof DeleteJobDefinitionSchema>) => {
299
- try {
300
- const { emploid } = await getSDKForService();
301
- //@ts-ignore
302
- const app = await emploid.DeleteJobDefinition(parsedInput);
303
- return app;
304
- } catch (error) {
305
- if (error instanceof AppcondaException) {
306
- throw new Error(error.message);
307
- }
308
-
309
- throw error;
310
- }
311
- };
312
-
313
- export const ListJobDefinitions = async (parsedInput: z.infer<typeof ListJobDefinitionSchema>) => {
314
- try {
315
- const { emploid } = await getSDKForService();
316
- //@ts-ignore
317
- const app = await emploid.ListJobDefinitions(parsedInput);
318
- return app;
319
- } catch (error) {
320
- if (error instanceof AppcondaException) {
321
- throw new Error(error.message);
322
- }
323
-
324
- throw error;
325
- }
326
- };
327
-
328
-
329
- export const CreateCompetency = async (parsedInput: z.infer<typeof CreateCompetencySchema>) => {
330
- try {
331
- const { emploid } = await getSDKForService();
332
- //@ts-ignore
333
- const app = await emploid.CreateCompetency(parsedInput);
334
- return app;
335
- } catch (error) {
336
- if (error instanceof AppcondaException) {
337
- throw new Error(error.message);
338
- }
339
-
340
- throw error;
341
- }
342
- };
343
-
344
- export const UpdateCompetency = async (parsedInput: z.infer<typeof UpdateCompetencySchema>) => {
345
- try {
346
- const { emploid } = await getSDKForService();
347
- //@ts-ignore
348
- const app = await emploid.UpdateCompetency(parsedInput);
349
- return app;
350
- } catch (error) {
351
- if (error instanceof AppcondaException) {
352
- throw new Error(error.message);
353
- }
354
-
355
- throw error;
356
- }
357
- };
358
-
359
- export const DeleteCompetency = async (parsedInput: z.infer<typeof DeleteCompetencySchema>) => {
360
- try {
361
- const { emploid } = await getSDKForService();
362
- //@ts-ignore
363
- const app = await emploid.DeleteCompetency(parsedInput);
364
- return app;
365
- } catch (error) {
366
- if (error instanceof AppcondaException) {
367
- throw new Error(error.message);
368
- }
369
-
370
- throw error;
371
- }
372
- };
373
-
374
- export const ListCompetencies = async (parsedInput: z.infer<typeof ListCompetenciesSchema>) => {
375
- try {
376
- const { emploid } = await getSDKForService();
377
- //@ts-ignore
378
- const app = await emploid.ListCompetencies(parsedInput);
379
- return app;
380
- } catch (error) {
381
- if (error instanceof AppcondaException) {
382
- throw new Error(error.message);
383
- }
384
-
385
- throw error;
386
- }
387
- };
388
-
389
- export const CreateAgentFlow = async (parsedInput: z.infer<typeof CreateAgentFlowSchema>) => {
390
- try {
391
- const { emploid } = await getSDKForService();
392
- //@ts-ignore
393
- const app = await emploid.CreateAgentFlow(parsedInput);
394
- return app;
395
- } catch (error) {
396
- if (error instanceof AppcondaException) {
397
- throw new Error(error.message);
398
- }
399
-
400
- throw error;
401
- }
402
- };
403
-
404
- export const ListAgentFlows = async (parsedInput: z.infer<typeof ListAgentFlowsSchema>) => {
405
- try {
406
- const { emploid } = await getSDKForService();
407
- //@ts-ignore
408
- const app = await emploid.ListAgentFlows(parsedInput);
409
- return app;
410
- } catch (error) {
411
- if (error instanceof AppcondaException) {
412
- throw new Error(error.message);
413
- }
414
-
415
- throw error;
416
- }
417
- };
418
-
419
- export const CreateExtension = async (parsedInput: z.infer<typeof CreateExtensionSchema>) => {
420
- try {
421
- const { emploid } = await getSDKForService();
422
- //@ts-ignore
423
- const app = await emploid.CreateExtension(parsedInput);
424
- return app;
425
- } catch (error) {
426
- if (error instanceof AppcondaException) {
427
- throw new Error(error.message);
428
- }
429
-
430
- throw error;
431
- }
432
- };
433
-
434
- export const ListExtensions = async (parsedInput: z.infer<typeof ListExtensionsSchema>) => {
435
- try {
436
- const { emploid } = await getSDKForService();
437
- //@ts-ignore
438
- const app = await emploid.ListExtensions(parsedInput);
439
- return app;
440
- } catch (error) {
441
- if (error instanceof AppcondaException) {
442
- throw new Error(error.message);
443
- }
444
-
445
- throw error;
446
- }
447
- };
448
-
449
- export const CreateAssistant = async (parsedInput: z.infer<typeof CreateAssistantSchema>) => {
450
- try {
451
- const { emploid } = await getSDKForService();
452
- //@ts-ignore
453
- const app = await emploid.CreateAssistant(parsedInput);
454
- return app;
455
- } catch (error) {
456
- if (error instanceof AppcondaException) {
457
- throw new Error(error.message);
458
- }
459
-
460
- throw error;
461
- }
462
- };
463
-
464
- export const UpdateAssistant = async (parsedInput: z.infer<typeof UpdateAssistantSchema>) => {
465
- try {
466
- const { emploid } = await getSDKForService();
467
- //@ts-ignore
468
- const app = await emploid.UpdateAssistant(parsedInput);
469
- return app;
470
- } catch (error) {
471
- if (error instanceof AppcondaException) {
472
- throw new Error(error.message);
473
- }
474
-
475
- throw error;
476
- }
477
- };
478
-
479
- export const DeleteAssistant = async (parsedInput: z.infer<typeof DeleteAssistantSchema>) => {
480
- try {
481
- const { emploid } = await getSDKForService();
482
- //@ts-ignore
483
- const app = await emploid.DeleteAssistant(parsedInput);
484
- return app;
485
- } catch (error) {
486
- if (error instanceof AppcondaException) {
487
- throw new Error(error.message);
488
- }
489
-
490
- throw error;
491
- }
492
- };
493
-
494
- export const ListAssistants = async (parsedInput: z.infer<typeof ListAssistantsSchema>) => {
495
- try {
496
- const { emploid } = await getSDKForService();
497
- //@ts-ignore
498
- const app = await emploid.ListAssistants(parsedInput);
499
- return app;
500
- } catch (error) {
501
- if (error instanceof AppcondaException) {
502
- throw new Error(error.message);
503
- }
504
-
505
- throw error;
506
- }
507
- };
508
-
509
- export const CreateWorker = async (parsedInput: z.infer<typeof CreateWorkerSchema>) => {
510
- try {
511
- const { emploid } = await getSDKForService();
512
- //@ts-ignore
513
- const app = await emploid.CreateWorker(parsedInput);
514
- return app;
515
- } catch (error) {
516
- if (error instanceof AppcondaException) {
517
- throw new Error(error.message);
518
- }
519
-
520
- throw error;
521
- }
522
- };
523
-
524
- export const UpdateWorker = async (parsedInput: z.infer<typeof UpdateWorkerSchema>) => {
525
- try {
526
- const { emploid } = await getSDKForService();
527
- //@ts-ignore
528
- const app = await emploid.UpdateWorker(parsedInput);
529
- return app;
530
- } catch (error) {
531
- if (error instanceof AppcondaException) {
532
- throw new Error(error.message);
533
- }
534
-
535
- throw error;
536
- }
537
- };
538
-
539
- export const DeleteWorker = async (parsedInput: z.infer<typeof DeleteWorkerSchema>) => {
540
- try {
541
- const { emploid } = await getSDKForService();
542
- //@ts-ignore
543
- const app = await emploid.DeleteWorker(parsedInput);
544
- return app;
545
- } catch (error) {
546
- if (error instanceof AppcondaException) {
547
- throw new Error(error.message);
548
- }
549
-
550
- throw error;
551
- }
552
- };
553
-
554
- export const ListWorkers = async (parsedInput: z.infer<typeof ListWorkersSchema>) => {
555
- try {
556
- const { emploid } = await getSDKForService();
557
- //@ts-ignore
558
- const app = await emploid.ListWorkers(parsedInput);
559
- return app;
560
- } catch (error) {
561
- if (error instanceof AppcondaException) {
562
- throw new Error(error.message);
563
- }
564
-
565
- throw error;
566
- }
567
- };
568
-
569
- export const CreateInput = async (parsedInput: z.infer<typeof CreateInputSchema>) => {
570
- try {
571
- const { emploid } = await getSDKForService();
572
- //@ts-ignore
573
- const app = await emploid.CreateInput(parsedInput);
574
- return app;
575
- } catch (error) {
576
- if (error instanceof AppcondaException) {
577
- throw new Error(error.message);
578
- }
579
-
580
- throw error;
581
- }
582
- };
583
-
584
- export const UpdateInput = async (parsedInput: z.infer<typeof UpdateInputSchema>) => {
585
- try {
586
- const { emploid } = await getSDKForService();
587
- //@ts-ignore
588
- const app = await emploid.UpdateInput(parsedInput);
589
- return app;
590
- } catch (error) {
591
- if (error instanceof AppcondaException) {
592
- throw new Error(error.message);
593
- }
594
-
595
- throw error;
596
- }
597
- };
598
-
599
- export const DeleteInput = async (parsedInput: z.infer<typeof DeleteInputSchema>) => {
600
- try {
601
- const { emploid } = await getSDKForService();
602
- //@ts-ignore
603
- const app = await emploid.DeleteInput(parsedInput);
604
- return app;
605
- } catch (error) {
606
- if (error instanceof AppcondaException) {
607
- throw new Error(error.message);
608
- }
609
-
610
- throw error;
611
- }
612
- };
613
-
614
- export const ListInputs = async (parsedInput: z.infer<typeof ListInputSchema>) => {
615
- try {
616
- const { emploid } = await getSDKForService();
617
- //@ts-ignore
618
- const app = await emploid.ListInputs(parsedInput);
619
- return app;
620
- } catch (error) {
621
- if (error instanceof AppcondaException) {
622
- throw new Error(error.message);
623
- }
624
-
625
- throw error;
626
- }
627
- };
628
-
629
- export const CreateTeam = async (parsedInput: z.infer<typeof CreateTeamSchema>) => {
630
- try {
631
- const { emploid } = await getSDKForService();
632
- //@ts-ignore
633
- const app = await emploid.CreateTeam(parsedInput);
634
- return app;
635
- } catch (error) {
636
- if (error instanceof AppcondaException) {
637
- throw new Error(error.message);
638
- }
639
-
640
- throw error;
641
- }
642
- };
643
-
644
- export const UpdateTeam = async (parsedInput: z.infer<typeof UpdateTeamSchema>) => {
645
- try {
646
- const { emploid } = await getSDKForService();
647
- //@ts-ignore
648
- const app = await emploid.UpdateTeam(parsedInput);
649
- return app;
650
- } catch (error) {
651
- if (error instanceof AppcondaException) {
652
- throw new Error(error.message);
653
- }
654
-
655
- throw error;
656
- }
657
- };
658
-
659
- export const DeleteTeam = async (parsedInput: z.infer<typeof DeleteTeamSchema>) => {
660
- try {
661
- const { emploid } = await getSDKForService();
662
- //@ts-ignore
663
- const app = await emploid.DeleteTeam(parsedInput);
664
- return app;
665
- } catch (error) {
666
- if (error instanceof AppcondaException) {
667
- throw new Error(error.message);
668
- }
669
-
670
- throw error;
671
- }
672
- };
673
-
674
- export const ListTeams = async (parsedInput: z.infer<typeof ListTeamsSchema>) => {
675
- try {
676
- const { emploid } = await getSDKForService();
677
- //@ts-ignore
678
- const app = await emploid.ListTeams(parsedInput);
679
- return app;
680
- } catch (error) {
681
- if (error instanceof AppcondaException) {
682
- throw new Error(error.message);
683
- }
684
-
685
- throw error;
686
- }
687
- };
688
-
689
- export const SaveChat = async (parsedInput: z.infer<typeof SaveChatSchema>) => {
690
- try {
691
- const { emploid } = await getSDKForService();
692
- //@ts-ignore
693
- const app = await emploid.SaveChat(parsedInput);
694
- return app;
695
- } catch (error) {
696
- if (error instanceof AppcondaException) {
697
- throw new Error(error.message);
698
- }
699
-
700
- throw error;
701
- }
702
- };
703
-
704
- export const DeleteChatById = async (parsedInput: z.infer<typeof DeleteChatByIdSchema>) => {
705
- try {
706
- const { emploid } = await getSDKForService();
707
- //@ts-ignore
708
- const app = await emploid.DeleteChatById(parsedInput);
709
- return app;
710
- } catch (error) {
711
- if (error instanceof AppcondaException) {
712
- throw new Error(error.message);
713
- }
714
-
715
- throw error;
716
- }
717
- };
718
-
719
- export const GetChatById = async (parsedInput: z.infer<typeof GetChatByIdSchema>) => {
720
- try {
721
- const { emploid } = await getSDKForService();
722
- //@ts-ignore
723
- const app = await emploid.GetChatById(parsedInput);
724
- return app;
725
- } catch (error) {
726
- if (error instanceof AppcondaException) {
727
- throw new Error(error.message);
728
- }
729
-
730
- throw error;
731
- }
732
- };
733
-
734
- export const GetChatsByUserId = async (parsedInput: z.infer<typeof GetChatsByUserIdSchema>) => {
735
- try {
736
- const { emploid } = await getSDKForService();
737
- //@ts-ignore
738
- const app = await emploid.GetChatsByUserId(parsedInput);
739
- return app;
740
- } catch (error) {
741
- if (error instanceof AppcondaException) {
742
- throw new Error(error.message);
743
- }
744
-
745
- throw error;
746
- }
747
- };
748
-
749
- export const SaveMessages = async (parsedInput: z.infer<typeof SaveMessagesSchema>) => {
750
- try {
751
- const { emploid } = await getSDKForService();
752
- //@ts-ignore
753
- const app = await emploid.SaveMessages(parsedInput);
754
- return app;
755
- } catch (error) {
756
- if (error instanceof AppcondaException) {
757
- throw new Error(error.message);
758
- }
759
-
760
- throw error;
761
- }
762
- };
763
-
764
- export const GetMessagesByChatId = async (parsedInput: z.infer<typeof GetMessagesByChatIdSchema>) => {
765
- try {
766
- const { emploid } = await getSDKForService();
767
- //@ts-ignore
768
- const app = await emploid.GetMessagesByChatId(parsedInput);
769
- return app;
770
- } catch (error) {
771
- if (error instanceof AppcondaException) {
772
- throw new Error(error.message);
773
- }
774
-
775
- throw error;
776
- }
777
- };
778
-
779
- export const GetMessageById = async (parsedInput: z.infer<typeof GetMessageByIdSchema>) => {
780
- try {
781
- const { emploid } = await getSDKForService();
782
- //@ts-ignore
783
- const app = await emploid.GetMessageById(parsedInput);
784
- return app;
785
- } catch (error) {
786
- if (error instanceof AppcondaException) {
787
- throw new Error(error.message);
788
- }
789
-
790
- throw error;
791
- }
792
- };
793
-
794
- export const VoteMessage = async (parsedInput: z.infer<typeof VoteMessageSchema>) => {
795
- try {
796
- const { emploid } = await getSDKForService();
797
- //@ts-ignore
798
- const app = await emploid.VoteMessage(parsedInput);
799
- return app;
800
- } catch (error) {
801
- if (error instanceof AppcondaException) {
802
- throw new Error(error.message);
803
- }
804
-
805
- throw error;
806
- }
807
- };
808
-
809
- export const GetVotesByChatId = async (parsedInput: z.infer<typeof GetVotesByChatIdSchema>) => {
810
- try {
811
- const { emploid } = await getSDKForService();
812
- //@ts-ignore
813
- const app = await emploid.GetVotesByChatId(parsedInput);
814
- return app;
815
- } catch (error) {
816
- if (error instanceof AppcondaException) {
817
- throw new Error(error.message);
818
- }
819
-
820
- throw error;
821
- }
822
- };
823
-
824
- export const DeleteDocumentsByIdAfterTimestamp = async (parsedInput: z.infer<typeof DeleteDocumentsByIdAfterTimestampSchema>) => {
825
- try {
826
- const { emploid } = await getSDKForService();
827
- //@ts-ignore
828
- const app = await emploid.DeleteDocumentsByIdAfterTimestamp(parsedInput);
829
- return app;
830
- } catch (error) {
831
- if (error instanceof AppcondaException) {
832
- throw new Error(error.message);
833
- }
834
-
835
- throw error;
836
- }
837
- };
838
-
839
- export const SaveSuggestions = async (parsedInput: z.infer<typeof SaveSuggestionsSchema>) => {
840
- try {
841
- const { emploid } = await getSDKForService();
842
- //@ts-ignore
843
- const app = await emploid.SaveSuggestions(parsedInput);
844
- return app;
845
- } catch (error) {
846
- if (error instanceof AppcondaException) {
847
- throw new Error(error.message);
848
- }
849
-
850
- throw error;
851
- }
852
- };
853
-
854
- export const GetSuggestionsByDocumentId = async (parsedInput: z.infer<typeof GetSuggestionsByDocumentIdSchema>) => {
855
- try {
856
- const { emploid } = await getSDKForService();
857
- //@ts-ignore
858
- const app = await emploid.GetSuggestionsByDocumentId(parsedInput);
859
- return app;
860
- } catch (error) {
861
- if (error instanceof AppcondaException) {
862
- throw new Error(error.message);
863
- }
864
-
865
- throw error;
866
- }
867
- };
868
-
869
- export const DeleteMessagesByChatIdAfterTimestamp = async (parsedInput: z.infer<typeof DeleteMessagesByChatIdAfterTimestampSchema>) => {
870
- try {
871
- const { emploid } = await getSDKForService();
872
- //@ts-ignore
873
- const app = await emploid.DeleteMessagesByChatIdAfterTimestamp(parsedInput);
874
- return app;
875
- } catch (error) {
876
- if (error instanceof AppcondaException) {
877
- throw new Error(error.message);
878
- }
879
-
880
- throw error;
881
- }
882
- };
883
-
884
- export const UpdateChatVisiblityById = async (parsedInput: z.infer<typeof UpdateChatVisiblityByIdSchema>) => {
885
- try {
886
- const { emploid } = await getSDKForService();
887
- //@ts-ignore
888
- const app = await emploid.UpdateChatVisiblityById(parsedInput);
889
- return app;
890
- } catch (error) {
891
- if (error instanceof AppcondaException) {
892
- throw new Error(error.message);
893
- }
894
-
895
- throw error;
896
- }
897
- };
898
-
899
- export const UpdateChatLastContextById = async (parsedInput: z.infer<typeof UpdateChatLastContextByIdSchema>) => {
900
- try {
901
- const { emploid } = await getSDKForService();
902
- //@ts-ignore
903
- const app = await emploid.UpdateChatLastContextById(parsedInput);
904
- return app;
905
- } catch (error) {
906
- if (error instanceof AppcondaException) {
907
- throw new Error(error.message);
908
- }
909
-
910
- throw error;
911
- }
912
- };
913
-
914
- export const GetMessageCountByUserId = async (parsedInput: z.infer<typeof GetMessageCountByUserIdSchema>) => {
915
- try {
916
- const { emploid } = await getSDKForService();
917
- //@ts-ignore
918
- const app = await emploid.GetMessageCountByUserId(parsedInput);
919
- return app;
920
- } catch (error) {
921
- if (error instanceof AppcondaException) {
922
- throw new Error(error.message);
923
- }
924
-
925
- throw error;
926
- }
927
- };
928
-
929
- export const CreateStreamId = async (parsedInput: z.infer<typeof CreateStreamIdSchema>) => {
930
- try {
931
- const { emploid } = await getSDKForService();
932
- //@ts-ignore
933
- const app = await emploid.CreateStreamId(parsedInput);
934
- return app;
935
- } catch (error) {
936
- if (error instanceof AppcondaException) {
937
- throw new Error(error.message);
938
- }
939
-
940
- throw error;
941
- }
942
- };
943
-
944
- export const GetStreamIdsByChatId = async (parsedInput: z.infer<typeof GetStreamIdsByChatIdSchema>) => {
945
- try {
946
- const { emploid } = await getSDKForService();
947
- //@ts-ignore
948
- const app = await emploid.GetStreamIdsByChatId(parsedInput);
949
- return app;
950
- } catch (error) {
951
- if (error instanceof AppcondaException) {
952
- throw new Error(error.message);
953
- }
954
-
955
- throw error;
956
- }
957
- };
958
-
959
- export const SaveDocument = async (parsedInput: z.infer<typeof SaveDocumentSchema>) => {
960
- try {
961
- const { emploid } = await getSDKForService();
962
- //@ts-ignore
963
- const app = await emploid.SaveDocument(parsedInput);
964
- return app;
965
- } catch (error) {
966
- if (error instanceof AppcondaException) {
967
- throw new Error(error.message);
968
- }
969
-
970
- throw error;
971
- }
972
- };
973
-
974
- export const GetDocumentById = async (parsedInput: z.infer<typeof GetDocumentByIdSchema>) => {
975
- try {
976
- const { emploid } = await getSDKForService();
977
- //@ts-ignore
978
- const app = await emploid.GetDocumentById(parsedInput);
979
- return app;
980
- } catch (error) {
981
- if (error instanceof AppcondaException) {
982
- throw new Error(error.message);
983
- }
984
-
985
- throw error;
986
- }
987
- };
988
-
989
- export const GetDocumentsById = async (parsedInput: z.infer<typeof GetDocumentsByIdSchema>) => {
990
- try {
991
- const { emploid } = await getSDKForService();
992
- //@ts-ignore
993
- const app = await emploid.GetDocumentsById(parsedInput);
994
- return app;
995
- } catch (error) {
996
- if (error instanceof AppcondaException) {
997
- throw new Error(error.message);
998
- }
999
-
1000
- throw error;
1001
- }
1002
- };
1003
-
1004
- export const CreateSkill = async (parsedInput: z.infer<typeof CreateSkillSchema>) => {
1005
- try {
1006
- const { emploid } = await getSDKForService();
1007
- //@ts-ignore
1008
- const app = await emploid.CreateSkill(parsedInput);
1009
- return app;
1010
- } catch (error) {
1011
- if (error instanceof AppcondaException) {
1012
- throw new Error(error.message);
1013
- }
1014
-
1015
- throw error;
1016
- }
1017
- };
1018
-
1019
- export const UpdateSkill = async (parsedInput: z.infer<typeof UpdateSkillSchema>) => {
1020
- try {
1021
- const { emploid } = await getSDKForService();
1022
- //@ts-ignore
1023
- const app = await emploid.UpdateSkill(parsedInput);
1024
- return app;
1025
- } catch (error) {
1026
- if (error instanceof AppcondaException) {
1027
- throw new Error(error.message);
1028
- }
1029
-
1030
- throw error;
1031
- }
1032
- };
1033
-
1034
- export const DeleteSkill = async (parsedInput: z.infer<typeof DeleteSkillSchema>) => {
1035
- try {
1036
- const { emploid } = await getSDKForService();
1037
- //@ts-ignore
1038
- const app = await emploid.DeleteSkill(parsedInput);
1039
- return app;
1040
- } catch (error) {
1041
- if (error instanceof AppcondaException) {
1042
- throw new Error(error.message);
1043
- }
1044
-
1045
- throw error;
1046
- }
1047
- };
1048
-
1049
- export const ListSkills = async (parsedInput: z.infer<typeof ListSkillsSchema>) => {
1050
- try {
1051
- const { emploid } = await getSDKForService();
1052
- //@ts-ignore
1053
- const app = await emploid.ListSkills(parsedInput);
1054
- return app;
1055
- } catch (error) {
1056
- if (error instanceof AppcondaException) {
1057
- throw new Error(error.message);
1058
- }
1059
-
1060
- throw error;
1061
- }
1062
- };
1063
-