@appconda/sdk 1.0.458 → 1.0.462
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modules/emploid/schema.d.ts +193 -0
- package/dist/modules/emploid/schema.js +233 -1
- package/dist/modules/emploid/service.d.ts +39 -1
- package/dist/modules/emploid/service.js +88 -1
- package/package.json +1 -1
- package/src/modules/emploid/schema.ts +321 -1
- package/src/modules/emploid/service.ts +299 -1
|
@@ -3,7 +3,7 @@ import z from "zod";
|
|
|
3
3
|
import { ServiceClient } from "../../service-client";
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
import { CreateAgentFlowFolderSchema, CreateAgentFlowSchema, CreateAssistantSchema, CreateCommandSchema, CreateCompetencySchema, CreateConstraintSchema, CreateEmploidSchema, CreateExtensionSchema, CreateInputSchema, CreateInstructionSchema, CreateJobDefinitionSchema, CreateOccupationSchema, CreateScopeSchema, CreateSkillSchema, CreateStreamIdSchema, CreateTaskTemplateSchema, CreateTeamSchema, CreateWorkerSchema, DeleteAgentFlowFolderSchema, DeleteAssistantSchema, DeleteChatByIdSchema, DeleteCommandSchema, DeleteCompetencySchema, DeleteConstraintSchema, DeleteDocumentsByIdAfterTimestampSchema, DeleteEmploidSchema, DeleteInputSchema, DeleteInstructionSchema, DeleteJobDefinitionSchema, DeleteMessagesByChatIdAfterTimestampSchema, DeleteOccupationSchema, DeleteScopeSchema, DeleteSkillSchema, DeleteTaskTemplateSchema, DeleteTeamSchema, DeleteWorkerSchema, GetChatByIdSchema, GetChatsByUserIdSchema, GetDocumentByIdSchema, GetDocumentsByIdSchema, GetMessageByIdSchema, GetMessageCountByUserIdSchema, GetMessagesByChatIdSchema, GetStreamIdsByChatIdSchema, GetSuggestionsByDocumentIdSchema, GetVotesByChatIdSchema, ListAgentFlowFoldersSchema, ListAgentFlowsSchema, ListAssistantsSchema, ListCommandsSchema, ListCompetenciesSchema, ListConstraintsSchema, ListEmploidsPaginatedSchema, ListEmploidsSchema, ListExtensionsSchema, ListInputSchema, ListInstructionsSchema, ListJobDefinitionSchema, ListOccupationsSchema, ListScopesSchema, ListSkillsSchema, ListTaskTemplatesSchema, ListTeamsSchema, ListWorkersSchema, SaveChatSchema, SaveDocumentSchema, SaveMessagesSchema, SaveSuggestionsSchema, UpdateAgentFlowFolderSchema, UpdateAgentFlowSchema, UpdateAssistantSchema, UpdateChatLastContextByIdSchema, UpdateChatVisiblityByIdSchema, UpdateCommandSchema, UpdateCompetencySchema, UpdateConstraintSchema, UpdateEmploidSchema, UpdateInputSchema, UpdateInstructionSchema, UpdateJobDefinitionSchema, UpdateOccupationSchema, UpdateScopeSchema, UpdateSkillSchema, UpdateTaskTemplateSchema, UpdateTeamSchema, UpdateWorkerSchema, VoteMessageSchema } from "./schema";
|
|
6
|
+
import { AggregateRecordsSchema, BulkCreateRecordsSchema, BulkDeleteRecordsSchema, BulkUpdateRecordsSchema, ChangeAgentflowProjectSchema, CheckRecordPermissionSchema, CountRecordsSchema, CreateAgentFlowFolderSchema, CreateAgentFlowSchema, CreateAssistantSchema, CreateCollectionFieldSchema, CreateCommandSchema, CreateCompetencySchema, CreateConstraintSchema, CreateEmploidSchema, CreateExtensionSchema, CreateInputSchema, CreateInstructionSchema, CreateJobDefinitionSchema, CreateOccupationSchema, CreateRecordSchema, CreateScopeSchema, CreateSkillSchema, CreateStreamIdSchema, CreateTaskTemplateSchema, CreateTeamSchema, CreateWorkerSchema, DeleteAgentFlowFolderSchema, DeleteAssistantSchema, DeleteChatByIdSchema, DeleteCollectionFieldSchema, DeleteCommandSchema, DeleteCompetencySchema, DeleteConstraintSchema, DeleteDocumentsByIdAfterTimestampSchema, DeleteEmploidSchema, DeleteInputSchema, DeleteInstructionSchema, DeleteJobDefinitionSchema, DeleteMessagesByChatIdAfterTimestampSchema, DeleteOccupationSchema, DeleteRecordSchema, DeleteScopeSchema, DeleteSkillSchema, DeleteTaskTemplateSchema, DeleteTeamSchema, DeleteWorkerSchema, DistinctFieldValuesSchema, DuplicateRecordSchema, GetChatByIdSchema, GetChatsByUserIdSchema, GetCollectionSchemaSchema, GetDocumentByIdSchema, GetDocumentsByIdSchema, GetMessageByIdSchema, GetMessageCountByUserIdSchema, GetMessagesByChatIdSchema, GetRecordByIdSchema, GetStreamIdsByChatIdSchema, GetSuggestionsByDocumentIdSchema, GetVotesByChatIdSchema, GrantRecordPermissionSchema, GroupRecordsSchema, ListAgentFlowFoldersSchema, ListAgentFlowsSchema, ListAssistantsSchema, ListCommandsSchema, ListCompetenciesSchema, ListConstraintsSchema, ListEmploidsPaginatedSchema, ListEmploidsSchema, ListExtensionsSchema, ListInputSchema, ListInstructionsSchema, ListJobDefinitionSchema, ListOccupationsSchema, ListRecordPermissionsSchema, ListRecordsSchema, ListScopesSchema, ListSkillsSchema, ListTaskTemplatesSchema, ListTeamsSchema, ListWorkersSchema, PreviewValidationErrorsSchema, QueryRecordsSchema, ReorderCollectionFieldsSchema, RestoreRecordSchema, RevokeRecordPermissionSchema, SaveChatSchema, SaveDocumentSchema, SaveMessagesSchema, SaveSuggestionsSchema, SearchRecordsSchema, UpdateAgentFlowFolderSchema, UpdateAgentFlowSchema, UpdateAssistantSchema, UpdateChatLastContextByIdSchema, UpdateChatVisiblityByIdSchema, UpdateCollectionFieldSchema, UpdateCommandSchema, UpdateCompetencySchema, UpdateConstraintSchema, UpdateEmploidSchema, UpdateInputSchema, UpdateInstructionSchema, UpdateJobDefinitionSchema, UpdateOccupationSchema, UpdateRecordSchema, UpdateScopeSchema, UpdateSkillSchema, UpdateTaskTemplateSchema, UpdateTeamSchema, UpdateWorkerSchema, UpsertRecordSchema, ValidateRecordSchema, VoteMessageSchema } from "./schema";
|
|
7
7
|
import { TAgentFlow, TAgentFlowFolder, TAssistant, TChat, TCommand, TCompetency, TConstraint, TDocument, TEmploid, TExtension, TInput, TInstruction, TJobDefinition, TOccupation, TPaginatedEmploidsResult, TScope, TSkill, TStreamId, TTaskTemplate, TTeam, TWorker } from "./types";
|
|
8
8
|
|
|
9
9
|
export class EmploidService extends ServiceClient {
|
|
@@ -147,6 +147,10 @@ export class EmploidService extends ServiceClient {
|
|
|
147
147
|
return await this.actionCall('agent-flow', 'CreateAgentFlow', payload);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
+
public async ChangeAgentflowProject(payload: z.infer<typeof ChangeAgentflowProjectSchema>): Promise<TAgentFlow> {
|
|
151
|
+
return await this.actionCall('agent-flow', 'ChangeAgentflowProject', payload);
|
|
152
|
+
}
|
|
153
|
+
|
|
150
154
|
public async UpdateAgentFlow(payload: z.infer<typeof UpdateAgentFlowSchema>): Promise<TAgentFlow> {
|
|
151
155
|
return await this.actionCall('agent-flow', 'UpdateAgentFlow', payload);
|
|
152
156
|
}
|
|
@@ -364,4 +368,298 @@ export class EmploidService extends ServiceClient {
|
|
|
364
368
|
public async DeleteCommand(payload: z.infer<typeof DeleteCommandSchema>): Promise<TCommand> {
|
|
365
369
|
return await this.actionCall('command', 'DeleteCommand', payload);
|
|
366
370
|
}
|
|
371
|
+
|
|
372
|
+
public async CreateRecord(
|
|
373
|
+
payload: z.infer<typeof CreateRecordSchema>
|
|
374
|
+
): Promise<any> {
|
|
375
|
+
return await this.actionCall(
|
|
376
|
+
"emploid",
|
|
377
|
+
"CreateRecord",
|
|
378
|
+
payload
|
|
379
|
+
);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
public async GetRecordById(
|
|
383
|
+
payload: z.infer<typeof GetRecordByIdSchema>
|
|
384
|
+
): Promise<any> {
|
|
385
|
+
return await this.actionCall(
|
|
386
|
+
"emploid",
|
|
387
|
+
"GetRecordById",
|
|
388
|
+
payload
|
|
389
|
+
);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
public async ListRecords(
|
|
394
|
+
payload: z.infer<typeof ListRecordsSchema>
|
|
395
|
+
): Promise<{
|
|
396
|
+
total: number;
|
|
397
|
+
records: any[];
|
|
398
|
+
}> {
|
|
399
|
+
return await this.actionCall(
|
|
400
|
+
"emploid",
|
|
401
|
+
"ListRecords",
|
|
402
|
+
payload
|
|
403
|
+
);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
public async UpdateRecord(
|
|
407
|
+
payload: z.infer<typeof UpdateRecordSchema>
|
|
408
|
+
): Promise<any> {
|
|
409
|
+
return await this.actionCall(
|
|
410
|
+
"emploid",
|
|
411
|
+
"UpdateRecord",
|
|
412
|
+
payload
|
|
413
|
+
);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
public async DeleteRecord(
|
|
417
|
+
payload: z.infer<typeof DeleteRecordSchema>
|
|
418
|
+
): Promise<any> {
|
|
419
|
+
return await this.actionCall(
|
|
420
|
+
"emploid",
|
|
421
|
+
"DeleteRecord",
|
|
422
|
+
payload
|
|
423
|
+
);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
public async RestoreRecord(
|
|
428
|
+
payload: z.infer<typeof RestoreRecordSchema>
|
|
429
|
+
): Promise<any> {
|
|
430
|
+
return await this.actionCall(
|
|
431
|
+
"emploid",
|
|
432
|
+
"RestoreRecord",
|
|
433
|
+
payload
|
|
434
|
+
);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
public async UpsertRecord(
|
|
438
|
+
payload: z.infer<typeof UpsertRecordSchema>
|
|
439
|
+
): Promise<any> {
|
|
440
|
+
return await this.actionCall(
|
|
441
|
+
"emploid",
|
|
442
|
+
"UpsertRecord",
|
|
443
|
+
payload
|
|
444
|
+
);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
public async BulkCreateRecords(
|
|
448
|
+
payload: z.infer<typeof BulkCreateRecordsSchema>
|
|
449
|
+
): Promise<any> {
|
|
450
|
+
return await this.actionCall(
|
|
451
|
+
"emploid",
|
|
452
|
+
"BulkCreateRecords",
|
|
453
|
+
payload
|
|
454
|
+
);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
public async BulkUpdateRecords(
|
|
458
|
+
payload: z.infer<typeof BulkUpdateRecordsSchema>
|
|
459
|
+
): Promise<any> {
|
|
460
|
+
return await this.actionCall(
|
|
461
|
+
"emploid",
|
|
462
|
+
"BulkUpdateRecords",
|
|
463
|
+
payload
|
|
464
|
+
);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
public async BulkDeleteRecords(
|
|
468
|
+
payload: z.infer<typeof BulkDeleteRecordsSchema>
|
|
469
|
+
): Promise<any> {
|
|
470
|
+
return await this.actionCall(
|
|
471
|
+
"emploid",
|
|
472
|
+
"BulkDeleteRecords",
|
|
473
|
+
payload
|
|
474
|
+
);
|
|
475
|
+
}
|
|
476
|
+
public async DuplicateRecord(
|
|
477
|
+
payload: z.infer<typeof DuplicateRecordSchema>
|
|
478
|
+
): Promise<any> {
|
|
479
|
+
return await this.actionCall(
|
|
480
|
+
"emploid",
|
|
481
|
+
"DuplicateRecord",
|
|
482
|
+
payload
|
|
483
|
+
);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
public async QueryRecords(
|
|
487
|
+
payload: z.infer<typeof QueryRecordsSchema>
|
|
488
|
+
): Promise<{
|
|
489
|
+
total: number;
|
|
490
|
+
records: any[];
|
|
491
|
+
}> {
|
|
492
|
+
return await this.actionCall(
|
|
493
|
+
"emploid",
|
|
494
|
+
"QueryRecords",
|
|
495
|
+
payload
|
|
496
|
+
);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
public async SearchRecords(
|
|
500
|
+
payload: z.infer<typeof SearchRecordsSchema>
|
|
501
|
+
): Promise<{
|
|
502
|
+
total: number;
|
|
503
|
+
records: any[];
|
|
504
|
+
}> {
|
|
505
|
+
return await this.actionCall(
|
|
506
|
+
"emploid",
|
|
507
|
+
"SearchRecords",
|
|
508
|
+
payload
|
|
509
|
+
);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
public async CountRecords(
|
|
513
|
+
payload: z.infer<typeof CountRecordsSchema>
|
|
514
|
+
): Promise<number> {
|
|
515
|
+
return await this.actionCall(
|
|
516
|
+
"emploid",
|
|
517
|
+
"CountRecords",
|
|
518
|
+
payload
|
|
519
|
+
);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
public async GroupRecords(
|
|
523
|
+
payload: z.infer<typeof GroupRecordsSchema>
|
|
524
|
+
): Promise<any[]> {
|
|
525
|
+
return await this.actionCall(
|
|
526
|
+
"emploid",
|
|
527
|
+
"GroupRecords",
|
|
528
|
+
payload
|
|
529
|
+
);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
public async AggregateRecords(
|
|
533
|
+
payload: z.infer<typeof AggregateRecordsSchema>
|
|
534
|
+
): Promise<any[]> {
|
|
535
|
+
return await this.actionCall(
|
|
536
|
+
"emploid",
|
|
537
|
+
"AggregateRecords",
|
|
538
|
+
payload
|
|
539
|
+
);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
public async DistinctFieldValues(
|
|
543
|
+
payload: z.infer<typeof DistinctFieldValuesSchema>
|
|
544
|
+
): Promise<any[]> {
|
|
545
|
+
return await this.actionCall(
|
|
546
|
+
"emploid",
|
|
547
|
+
"DistinctFieldValues",
|
|
548
|
+
payload
|
|
549
|
+
);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
public async CreateCollectionField(
|
|
553
|
+
payload: z.infer<typeof CreateCollectionFieldSchema>
|
|
554
|
+
): Promise<any> {
|
|
555
|
+
return await this.actionCall(
|
|
556
|
+
"emploid",
|
|
557
|
+
"CreateCollectionField",
|
|
558
|
+
payload
|
|
559
|
+
);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
public async UpdateCollectionField(
|
|
563
|
+
payload: z.infer<typeof UpdateCollectionFieldSchema>
|
|
564
|
+
): Promise<any> {
|
|
565
|
+
return await this.actionCall(
|
|
566
|
+
"emploid",
|
|
567
|
+
"UpdateCollectionField",
|
|
568
|
+
payload
|
|
569
|
+
);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
public async DeleteCollectionField(
|
|
573
|
+
payload: z.infer<typeof DeleteCollectionFieldSchema>
|
|
574
|
+
): Promise<any> {
|
|
575
|
+
return await this.actionCall(
|
|
576
|
+
"emploid",
|
|
577
|
+
"DeleteCollectionField",
|
|
578
|
+
payload
|
|
579
|
+
);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
public async ReorderCollectionFields(
|
|
583
|
+
payload: z.infer<typeof ReorderCollectionFieldsSchema>
|
|
584
|
+
): Promise<any> {
|
|
585
|
+
return await this.actionCall(
|
|
586
|
+
"emploid",
|
|
587
|
+
"ReorderCollectionFields",
|
|
588
|
+
payload
|
|
589
|
+
);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
public async GetCollectionSchema(
|
|
593
|
+
payload: z.infer<typeof GetCollectionSchemaSchema>
|
|
594
|
+
): Promise<any> {
|
|
595
|
+
return await this.actionCall(
|
|
596
|
+
"emploid",
|
|
597
|
+
"GetCollectionSchema",
|
|
598
|
+
payload
|
|
599
|
+
);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
public async ValidateRecord(
|
|
603
|
+
payload: z.infer<typeof ValidateRecordSchema>
|
|
604
|
+
): Promise<any> {
|
|
605
|
+
return await this.actionCall(
|
|
606
|
+
"emploid",
|
|
607
|
+
"ValidateRecord",
|
|
608
|
+
payload
|
|
609
|
+
);
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
public async PreviewValidationErrors(
|
|
613
|
+
payload: z.infer<typeof PreviewValidationErrorsSchema>
|
|
614
|
+
): Promise<any> {
|
|
615
|
+
return await this.actionCall(
|
|
616
|
+
"emploid",
|
|
617
|
+
"PreviewValidationErrors",
|
|
618
|
+
payload
|
|
619
|
+
);
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
public async CheckRecordPermission(
|
|
623
|
+
payload: z.infer<typeof CheckRecordPermissionSchema>
|
|
624
|
+
): Promise<any> {
|
|
625
|
+
return await this.actionCall(
|
|
626
|
+
"emploid",
|
|
627
|
+
"CheckRecordPermission",
|
|
628
|
+
payload
|
|
629
|
+
);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
public async ListRecordPermissions(
|
|
633
|
+
payload: z.infer<typeof ListRecordPermissionsSchema>
|
|
634
|
+
): Promise<any[]> {
|
|
635
|
+
return await this.actionCall(
|
|
636
|
+
"emploid",
|
|
637
|
+
"ListRecordPermissions",
|
|
638
|
+
payload
|
|
639
|
+
);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
public async GrantRecordPermission(
|
|
643
|
+
payload: z.infer<typeof GrantRecordPermissionSchema>
|
|
644
|
+
): Promise<any> {
|
|
645
|
+
return await this.actionCall(
|
|
646
|
+
"emploid",
|
|
647
|
+
"GrantRecordPermission",
|
|
648
|
+
payload
|
|
649
|
+
);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
public async RevokeRecordPermission(
|
|
654
|
+
payload: z.infer<typeof RevokeRecordPermissionSchema>
|
|
655
|
+
): Promise<any> {
|
|
656
|
+
return await this.actionCall(
|
|
657
|
+
"emploid",
|
|
658
|
+
"RevokeRecordPermission",
|
|
659
|
+
payload
|
|
660
|
+
);
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
367
665
|
}
|