@appconda/sdk 1.0.680 → 1.0.683
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 +1149 -21
- package/dist/modules/emploid/schema.js +740 -53
- package/dist/modules/emploid/service.d.ts +117 -15
- package/dist/modules/emploid/service.js +163 -1
- package/dist/modules/emploid/types.d.ts +818 -6
- package/dist/modules/emploid/types.js +1 -1
- package/package.json +1 -1
- package/src/modules/emploid/schema.ts +826 -60
- package/src/modules/emploid/service.ts +476 -15
- package/src/modules/emploid/types.ts +892 -7
|
@@ -1,15 +1,53 @@
|
|
|
1
1
|
|
|
2
2
|
import z from "zod";
|
|
3
3
|
import { ServiceClient } from "../../service-client";
|
|
4
|
+
import {
|
|
5
|
+
DecideCollectionAutomationApprovalSchema,
|
|
6
|
+
ListCollectionAutomationExecutionsSchema,
|
|
7
|
+
} from "./schema";
|
|
8
|
+
import type {
|
|
9
|
+
TCollectionAutomationExecutionPage,
|
|
10
|
+
} from "./types";
|
|
4
11
|
|
|
5
12
|
|
|
6
|
-
import { AggregateRecordsSchema, BulkCreateRecordsSchema, BulkDeleteRecordsSchema, BulkUpdateRecordsSchema, ChangeAgentflowProjectSchema, CheckRecordPermissionSchema, ClearWorkerNotebookMessagesSchema, BuildWorkerNotebookContextSchema, ConnectTrelloImportCredentialSchema, CountRecordsSchema, CreateAgentFlowFolderSchema, CreateAgentFlowSchema, CreateAssistantChannelSchema, CreateAssistantConstraintSchema, CreateAssistantDatasourceSchema, CreateAssistantInstructionSchema, CreateAssistantSchema, CreateAssistantSkillSchema, CreateChannelSchema, CreateCollectionAutomationRuleSchema, CreateCollectionButtonSchema, CreateCollectionFieldSchema, CreateCollectionRelationSchema, CreateCollectionSchema, CreateCollectionViewSchema, CreateCommandSchema, CreateCompetencySchema, CreateConstraintSchema, CreateDataModelSchema, CreateDatasourceSchema, CreateDomainTopicSchema, CreateDriveFolderSchema, CreateDriveRootFolderSchema, CreateDriveRootSchema, CreateEmploidSchema, CreateExtensionSchema, CreateInputSchema, CreateInstructionSchema, CreateJobDefinitionSchema, CreateKnowledgeSchema, CreateOccupationSchema, CreateRecordSchema, CreateScopeSchema, CreateSkillSchema, CreateStreamIdSchema, CreateTaskTemplateSchema, CreateTeamSchema, CreateTopicSchema, CreateWikiAiCommandSchema, CreateWikiCommentSchema, CreateWikiPageSchema, CreateWikiReferenceSchema, CreateWikiRevisionSchema, CreateWorkerNotebookFileSourceSchema, CreateWorkerNotebookNoteSchema, CreateWorkerNotebookSchema, CreateWorkerNotebookSourceSchema, CreateWorkerNotebookStudioOutputSchema, DiscoverWorkerNotebookSourcesSchema, ImportWorkerNotebookSourcesSchema, CreateWorkerSchema, CreateWorkerTopicSchema, DeleteAgentFlowFolderSchema, DeleteAgentFlowSchema, DeleteAssistantChannelSchema, DeleteAssistantDatasourceSchema, DeleteAssistantSchema, DeleteChannelSchema, DeleteChatByIdSchema, DeleteCollectionAutomationRuleSchema, DeleteCollectionButtonSchema, DeleteCollectionFieldSchema, DeleteCollectionRelationSchema, DeleteCollectionViewSchema, DeleteCommandSchema, DeleteCompetencySchema, DeleteConstraintSchema, DeleteDataModelSchema, DeleteDatasourceSchema, DeleteDocumentsByIdAfterTimestampSchema, DeleteDomainTopicSchema, DeleteDriveItemSchema, DeleteDriveRootItemSchema, DeleteDriveRootSchema, DeleteEmploidSchema, DeleteExtensionSchema, DeleteInputSchema, DeleteInstructionSchema, DeleteJobDefinitionSchema, DeleteKnowledgeSchema, DeleteMessagesByChatIdAfterTimestampSchema, DeleteOccupationSchema, DeleteRecordSchema, DeleteScopeSchema, DeleteSkillSchema, DeleteTaskTemplateSchema, DeleteTeamSchema, DeleteTopicSchema, DeleteWikiCommentSchema, DeleteWikiPageSchema, DeleteWikiReferenceSchema, DeleteWorkerNotebookNoteSchema, DeleteWorkerNotebookSchema, DeleteWorkerNotebookSourceSchema, DeleteWorkerNotebookStudioOutputSchema, DeleteWorkerSchema, DeleteWorkerTopicSchema, DistinctFieldValuesSchema, DuplicateAgentFlowSchema, DuplicateRecordSchema, EnhanceTopicSchema, EnsureAirtableImportCredentialSchema, EnsureDriveProviderCredentialSchema, EnsureGmailImportCredentialSchema, EnsureGithubImportCredentialSchema, EnsureJiraImportCredentialSchema, EnsureLinearImportCredentialSchema, EnsureNotionImportCredentialSchema, EnsureTrelloImportCredentialSchema, ExecuteCollectionAiFieldSchema, ExecuteCollectionButtonSchema, ExportDataModelSchema, GetChatByIdSchema, GetChatsByUserIdSchema, GetCollectionByIdSchema, GetCollectionSchemaSchema, GetDataModelByIdSchema, GetDocumentByIdSchema, GetDocumentsByIdSchema, GetDriveDeleteImpactSchema, GetDriveRootDeleteImpactSchema, GetLatestWikiRevisionSchema, GetMarketStoreItemSchema, GetMessageByIdSchema, GetMessageCountByUserIdSchema, GetMessagesByChatIdSchema, GetPrivateAgentFlowFolderSchema, GetRecordByIdSchema, GetRecordRelationsSchema, GetScopeByTypeSchema, GetStreamIdsByChatIdSchema, GetSuggestionsByDocumentIdSchema, GetVotesByChatIdSchema, GetWikiAiSettingsSchema, GetWikiPageByIdSchema, GetWikiPageBySlugSchema, GetWikiReferenceByIdSchema, GetWikiRevisionByIdSchema, GetWikiTreeSchema, GetWorkerNotebookSchema, GrantRecordPermissionSchema, GroupRecordsSchema, HardDeleteDataModelSchema, ListAgentFlowFoldersSchema, ListAgentFlowsSchema, ListAirtableImportSourcesSchema, ListAssistantChannelsSchema, ListAssistantConstraintsSchema, ListAssistantDatasourcesSchema, ListAssistantInstructionsSchema, ListAssistantSkillsSchema, ListAssistantsSchema, ListChannelsSchema, ListChatHistorySchema, ListCollectionAutomationRulesSchema, ListCollectionButtonsSchema, ListCollectionRelationsSchema, ListCollectionsSchema, ListCollectionViewsSchema, ListCommandsSchema, ListCompetenciesSchema, ListConstraintsSchema, ListDataModelsSchema, ListDatasourcesSchema, ListDomainTopicsSchema, ListDriveItemsSchema, ListDriveProviderFoldersSchema, ListDriveRootItemsSchema, ListDriveRootsSchema, ListDriveRootTreeSchema, ListDriveTreeSchema, ListEmploidsPaginatedSchema, ListEmploidsSchema, ListExtensionsSchema, ListGmailImportSourcesSchema, ListGoogleMeetCalendarsSchema, ListGithubImportSourcesSchema, ListInputSchema, ListInstructionsSchema, ListJiraImportSourcesSchema, ListJobDefinitionSchema, ListKnowledgesSchema, ListLinearImportSourcesSchema, ListMarketStoreItemsSchema, ListNotionImportSourcesSchema, ListOccupationsSchema, ListRecordPermissionsSchema, ListRecordsSchema, ListRelationCandidatesSchema, ListScopesSchema, ListSkillsSchema, ListTaskTemplatesSchema, ListTeamsSchema, ListTopicsSchema, ListTrelloImportSourcesSchema, ListWikiAiCommandsSchema, ListWikiCommentsSchema, ListWikiPagesSchema, ListWikiReferencesSchema, ListWorkerNotebooksSchema, ListWorkersSchema, ListWorkerTopicsSchema, MoveDriveItemSchema, MoveDriveRootItemSchema, MoveWikiPageSchema, PrepareDriveUploadSchema, PreviewAirtableImportSchema, PreviewCsvImportSchema, PreviewGmailImportSchema, PreviewGithubImportSchema, PreviewJiraImportSchema, PreviewLinearImportSchema, PreviewNotionImportSchema, PreviewTrelloImportSchema, PreviewValidationErrorsSchema, PublishDomainSchema, PublishEmploidSchema, PublishWorkerToMarketStoreSchema, QueryRecordsSchema, ReadDriveRootFileContentSchema, ReadDriveRootFileTextSchema, RenameDriveItemSchema, RenameDriveRootItemSchema, ReorderCollectionFieldsSchema, ResolveDriveDownloadSchema, ResolveDriveRootDownloadSchema, ResolveScopeFileViewSchema, ResolveWikiFileViewSchema, RestoreDataModelSchema, RestoreRecordSchema, RestoreWikiPageSchema, RevokeRecordPermissionSchema, RunAirtableImportSchema, RunCsvImportSchema, RunGmailImportSchema, RunGithubImportSchema, RunJiraImportSchema, RunLinearImportSchema, RunNotionImportSchema, RunTrelloImportSchema, RunWikiAiCommandSchema, SaveChatSchema, SaveDocumentSchema, SaveMessagesSchema, SaveSuggestionsSchema, SearchDriveItemsSchema, SearchDriveRootItemsSchema, SearchRecordsSchema, SendWorkerNotebookMessageSchema, SetWikiAiSettingsSchema, SetWikiPageUserStateSchema, TestGoogleMeetCredentialSchema, UpdateAgentFlowFolderSchema, UpdateAgentFlowSchema, UpdateAssistantChannelSchema, UpdateAssistantDatasourceSchema, UpdateAssistantSchema, UpdateAssistantSkillSchema, UpdateChannelSchema, UpdateChatLastContextByIdSchema, UpdateChatVisiblityByIdSchema, UpdateCollectionAutomationRuleSchema, UpdateCollectionButtonSchema, UpdateCollectionFieldSchema, UpdateCollectionRelationSchema, UpdateCollectionViewSchema, UpdateCommandSchema, UpdateCompetencySchema, UpdateConstraintSchema, UpdateDataModelSchema, UpdateDatasourceSchema, UpdateDomainTopicSchema, UpdateEmploidSchema, UpdateExtensionSchema, UpdateInputSchema, UpdateInstructionSchema, UpdateJobDefinitionSchema, UpdateKnowledgeSchema, UpdateOccupationSchema, UpdateRecordSchema, UpdateScopeSchema, UpdateSkillSchema, UpdateTaskTemplateSchema, UpdateTeamSchema, UpdateTopicSchema, UpdateWikiCommentSchema, UpdateWikiPageSchema, UpdateWikiReferenceSchema, UpdateWorkerNotebookSchema, UpdateWorkerNotebookSourceSchema, UpdateWorkerNotebookStudioOutputSchema, UpdateWorkerSchema, UpdateWorkerTopicSchema, UploadCollectionFileSchema, UploadDriveRootFilesSchema, UploadEditorFileSchema, UpsertRecordSchema, ValidateRecordSchema, VoteMessageSchema } from "./schema";
|
|
13
|
+
import { AggregateRecordsSchema, ArchiveCollectionSchema, BulkCreateRecordsSchema, BulkDeleteRecordsSchema, BulkUpdateRecordsSchema, ChangeAgentflowProjectSchema, CheckRecordPermissionSchema, ClearWorkerNotebookMessagesSchema, BuildWorkerNotebookContextSchema, ConnectTrelloImportCredentialSchema, CountRecordsSchema, CreateAgentFlowFolderSchema, CreateAgentFlowSchema, CreateAssistantChannelSchema, CreateAssistantConstraintSchema, CreateAssistantDatasourceSchema, CreateAssistantInstructionSchema, CreateAssistantSchema, CreateAssistantSkillSchema, CreateChannelSchema, CreateCollectionAutomationRuleSchema, CreateCollectionButtonSchema, CreateCollectionFieldSchema, CreateCollectionRelationSchema, CreateCollectionSchema, CreateCollectionViewSchema, CreateCommandSchema, CreateCompetencySchema, CreateConstraintSchema, CreateDataModelSchema, CreateDatasourceSchema, CreateDomainTopicSchema, CreateDriveFolderSchema, CreateDriveRootFolderSchema, CreateDriveRootSchema, CreateEmploidSchema, CreateExtensionSchema, CreateInputSchema, CreateInstructionSchema, CreateJobDefinitionSchema, CreateKnowledgeSchema, CreateOccupationSchema, CreateRecordSchema, CreateScopeSchema, CreateSkillSchema, CreateStreamIdSchema, CreateTaskTemplateSchema, CreateTeamSchema, CreateTopicSchema, CreateWikiAiCommandSchema, CreateWikiCommentSchema, CreateWikiPageSchema, CreateWikiReferenceSchema, CreateWikiRevisionSchema, CreateWorkerNotebookFileSourceSchema, CreateWorkerNotebookNoteSchema, CreateWorkerNotebookSchema, CreateWorkerNotebookSourceSchema, CreateWorkerNotebookStudioOutputSchema, DiscoverWorkerNotebookSourcesSchema, ImportWorkerNotebookSourcesSchema, CreateWorkerSchema, CreateWorkerTopicSchema, DeleteAgentFlowFolderSchema, DeleteAgentFlowSchema, DeleteAssistantChannelSchema, DeleteAssistantDatasourceSchema, DeleteAssistantSchema, DeleteChannelSchema, DeleteChatByIdSchema, DeleteCollectionAutomationRuleSchema, DeleteCollectionButtonSchema, DeleteCollectionFieldSchema, DeleteCollectionRelationSchema, DeleteCollectionViewSchema, DeleteCommandSchema, DeleteCompetencySchema, DeleteConstraintSchema, DeleteDataModelSchema, DeleteDatasourceSchema, DeleteDocumentsByIdAfterTimestampSchema, DeleteDomainTopicSchema, DeleteDriveItemSchema, DeleteDriveRootItemSchema, DeleteDriveRootSchema, DeleteEmploidSchema, DeleteExtensionSchema, DeleteInputSchema, DeleteInstructionSchema, DeleteJobDefinitionSchema, DeleteKnowledgeSchema, DeleteMessagesByChatIdAfterTimestampSchema, DeleteOccupationSchema, DeleteRecordSchema, DeleteScopeSchema, DeleteSkillSchema, DeleteTaskTemplateSchema, DeleteTeamSchema, DeleteTopicSchema, DeleteWikiCommentSchema, DeleteWikiPageSchema, DeleteWikiReferenceSchema, DeleteWorkerNotebookNoteSchema, DeleteWorkerNotebookSchema, DeleteWorkerNotebookSourceSchema, DeleteWorkerNotebookStudioOutputSchema, DeleteWorkerSchema, DeleteWorkerTopicSchema, DistinctFieldValuesSchema, DuplicateAgentFlowSchema, DuplicateRecordSchema, EnhanceTopicSchema, EnsureAirtableImportCredentialSchema, EnsureDriveProviderCredentialSchema, EnsureGmailImportCredentialSchema, EnsureGithubImportCredentialSchema, EnsureJiraImportCredentialSchema, EnsureLinearImportCredentialSchema, EnsureNotionImportCredentialSchema, EnsureTrelloImportCredentialSchema, ExecuteCollectionAiFieldSchema, ExecuteCollectionButtonSchema, ExportDataModelSchema, GetChatByIdSchema, GetChatsByUserIdSchema, GetCollectionByIdSchema, GetCollectionSchemaSchema, GetDataModelByIdSchema, GetDocumentByIdSchema, GetDocumentsByIdSchema, GetDriveDeleteImpactSchema, GetDriveRootDeleteImpactSchema, GetLatestWikiRevisionSchema, GetMarketStoreItemSchema, GetMessageByIdSchema, GetMessageCountByUserIdSchema, GetMessagesByChatIdSchema, GetPrivateAgentFlowFolderSchema, GetRecordByIdSchema, GetRecordRelationsSchema, GetScopeByTypeSchema, GetStreamIdsByChatIdSchema, GetSuggestionsByDocumentIdSchema, GetVotesByChatIdSchema, GetWikiAiSettingsSchema, GetWikiPageByIdSchema, GetWikiPageBySlugSchema, GetWikiReferenceByIdSchema, GetWikiRevisionByIdSchema, GetWikiTreeSchema, GetWorkerNotebookSchema, GrantRecordPermissionSchema, GroupRecordsSchema, HardDeleteDataModelSchema, ListAgentFlowFoldersSchema, ListAgentFlowsSchema, ListAirtableImportSourcesSchema, ListAssistantChannelsSchema, ListAssistantConstraintsSchema, ListAssistantDatasourcesSchema, ListAssistantInstructionsSchema, ListAssistantSkillsSchema, ListAssistantsSchema, ListChannelsSchema, ListChatHistorySchema, ListCollectionAutomationRulesSchema, ListCollectionButtonsSchema, ListCollectionRelationsSchema, ListCollectionsSchema, ListCollectionViewsSchema, ListCommandsSchema, ListCompetenciesSchema, ListConstraintsSchema, ListDataModelsSchema, ListDatasourcesSchema, ListDomainTopicsSchema, ListDriveItemsSchema, ListDriveProviderFoldersSchema, ListDriveRootItemsSchema, ListDriveRootsSchema, ListDriveRootTreeSchema, ListDriveTreeSchema, ListEmploidsPaginatedSchema, ListEmploidsSchema, ListExtensionsSchema, ListGmailImportSourcesSchema, ListGoogleMeetCalendarsSchema, ListGithubImportSourcesSchema, ListInputSchema, ListInstructionsSchema, ListJiraImportSourcesSchema, ListJobDefinitionSchema, ListKnowledgesSchema, ListLinearImportSourcesSchema, ListMarketStoreItemsSchema, ListNotionImportSourcesSchema, ListOccupationsSchema, ListRecordPermissionsSchema, ListRecordsSchema, ListRelationCandidatesSchema, ListScopesSchema, ListSkillsSchema, ListTaskTemplatesSchema, ListTeamsSchema, ListTopicsSchema, ListTrelloImportSourcesSchema, ListWikiAiCommandsSchema, ListWikiCommentsSchema, ListWikiPagesSchema, ListWikiReferencesSchema, ListWorkerNotebooksSchema, ListWorkersSchema, ListWorkerTopicsSchema, MoveDriveItemSchema, MoveDriveRootItemSchema, MoveWikiPageSchema, PrepareDriveUploadSchema, PreviewAirtableImportSchema, PreviewCsvImportSchema, PreviewGmailImportSchema, PreviewGithubImportSchema, PreviewJiraImportSchema, PreviewLinearImportSchema, PreviewNotionImportSchema, PreviewTrelloImportSchema, PreviewValidationErrorsSchema, PublishDomainSchema, PublishEmploidSchema, PublishWorkerToMarketStoreSchema, PurgeCollectionSchema, QueryRecordsSchema, ReadDriveRootFileContentSchema, ReadDriveRootFileTextSchema, RenameDriveItemSchema, RenameDriveRootItemSchema, ReorderCollectionFieldsSchema, ResolveDriveDownloadSchema, ResolveDriveRootDownloadSchema, ResolveScopeFileViewSchema, ResolveWikiFileViewSchema, RestoreDataModelSchema, RestoreRecordSchema, RestoreWikiPageSchema, RevokeRecordPermissionSchema, RunAirtableImportSchema, RunCsvImportSchema, RunGmailImportSchema, RunGithubImportSchema, RunJiraImportSchema, RunLinearImportSchema, RunNotionImportSchema, RunTrelloImportSchema, RunWikiAiCommandSchema, SaveChatSchema, SaveDocumentSchema, SaveMessagesSchema, SaveSuggestionsSchema, SearchDriveItemsSchema, SearchDriveRootItemsSchema, SearchRecordsSchema, SendWorkerNotebookMessageSchema, SetWikiAiSettingsSchema, SetWikiPageUserStateSchema, TestGoogleMeetCredentialSchema, UpdateAgentFlowFolderSchema, UpdateAgentFlowSchema, UpdateAssistantChannelSchema, UpdateAssistantDatasourceSchema, UpdateAssistantSchema, UpdateAssistantSkillSchema, UpdateChannelSchema, UpdateChatLastContextByIdSchema, UpdateChatVisiblityByIdSchema, UpdateCollectionAutomationRuleSchema, UpdateCollectionButtonSchema, UpdateCollectionFieldSchema, UpdateCollectionRelationSchema, UpdateCollectionSchema, UpdateCollectionViewSchema, UpdateCommandSchema, UpdateCompetencySchema, UpdateConstraintSchema, UpdateDataModelSchema, UpdateDatasourceSchema, UpdateDomainTopicSchema, UpdateEmploidSchema, UpdateExtensionSchema, UpdateInputSchema, UpdateInstructionSchema, UpdateJobDefinitionSchema, UpdateKnowledgeSchema, UpdateOccupationSchema, UpdateRecordSchema, UpdateScopeSchema, UpdateSkillSchema, UpdateTaskTemplateSchema, UpdateTeamSchema, UpdateTopicSchema, UpdateWikiCommentSchema, UpdateWikiPageSchema, UpdateWikiReferenceSchema, UpdateWorkerNotebookSchema, UpdateWorkerNotebookSourceSchema, UpdateWorkerNotebookStudioOutputSchema, UpdateWorkerSchema, UpdateWorkerTopicSchema, UploadCollectionFileSchema, UploadDriveRootFilesSchema, UploadEditorFileSchema, UpsertRecordSchema, ValidateRecordSchema, VoteMessageSchema } from "./schema";
|
|
7
14
|
import { GetGoogleMeetBrowserBotAvailabilitySchema, ListGoogleMeetEmailApprovalsSchema, ResolveCollectionFileViewSchema, ResolveGoogleMeetEmailApprovalSchema } from "./schema";
|
|
8
15
|
import { TAgentFlow, TAgentFlowFolder, TAssistant, TAssistantChannel, TAssistantConstraint, TAssistantDatasource, TAssistantInstruction, TAssistantSkill, TChannel, TChat, TCollectionAutomationRule, TCollectionButton, TCollectionRelation, TCollectionView, TCommand, TCompetency, TConstraint, TDatasource, TDeleteAgentFlowResult, TDocument, TDomainTopic, TDriveDeleteImpact, TDriveFileContent, TDriveFileTextContent, TDriveItem, TDriveProviderFolder, TDriveRoot, TDriveRootProvider, TDriveTreeNode, TEmploid, TEnhanceTopic, TExtension, TGoogleMeetCalendarSources, TGoogleMeetCredentialTest, TInput, TInstruction, TJobDefinition, TKnowledge, TMarketStoreItem, TOccupation, TPaginatedEmploidsResult, TPreparedDriveUpload, TPublishEmploid, TPublishWorkerToMarketStore, TRelationRecordOption, TScope, TSkill, TStreamId, TTaskTemplate, TTeam, TTopic, TUploadedFile, TWikiAiCommand, TWikiAiRunResult, TWikiAiSetting, TWikiComment, TWikiCommentPagination, TWikiFileViewResolution, TWikiReference, TWikiReferenceListResponse, TWorker, TWorkerNotebook, TWorkerNotebookClearMessagesResult, TWorkerNotebookContextResult, TWorkerNotebookMessage, TWorkerNotebookNote, TWorkerNotebookSendMessageResult, TWorkerNotebookSource, TWorkerNotebookSourceDiscoveryResult, TWorkerNotebookStudioOutput, TWorkerTopic } from "./types";
|
|
9
16
|
import type { TGoogleMeetBrowserBotAvailability, TGoogleMeetEmailApproval, TKnowledgeTreeExportPayload, TKnowledgeTreeImportResult } from "./types";
|
|
10
17
|
import { ListWorkerWhatsAppMessagesSchema, SendWorkerWhatsAppMessageSchema, TestWorkerWhatsAppChannelSchema } from "./schema";
|
|
11
18
|
import type { TWorkerChannelMessage, TWorkerWhatsAppHealth, TWorkerWhatsAppMessageHistory } from "./types";
|
|
19
|
+
import { ListSlackConversationsSchema, ListWorkerSlackMessagesSchema, SendWorkerSlackMessageSchema, TestWorkerSlackChannelSchema } from './schema'
|
|
20
|
+
import type { TSlackConversationList, TWorkerSlackHealth, TWorkerSlackMessageHistory } from './types'
|
|
21
|
+
import {
|
|
22
|
+
ListDiscordGuildChannelsSchema,
|
|
23
|
+
ListDiscordGuildsSchema,
|
|
24
|
+
ListWorkerDiscordMessagesSchema,
|
|
25
|
+
SendWorkerDiscordMessageSchema,
|
|
26
|
+
TestWorkerDiscordChannelSchema
|
|
27
|
+
} from './schema'
|
|
28
|
+
import type {
|
|
29
|
+
TDiscordGuildChannelList,
|
|
30
|
+
TDiscordGuildList,
|
|
31
|
+
TWorkerDiscordHealth,
|
|
32
|
+
TWorkerDiscordMessageHistory
|
|
33
|
+
} from './types'
|
|
12
34
|
import { ImportDataModelSchema } from "./schema";
|
|
35
|
+
import {
|
|
36
|
+
ApplyCollectionAppGenerationSchema,
|
|
37
|
+
GetCollectionAppGenerationPlanSchema,
|
|
38
|
+
GetCollectionAppGenerationRunSchema,
|
|
39
|
+
ListCollectionAppGenerationPlansSchema,
|
|
40
|
+
ListCollectionAppGenerationRunsSchema,
|
|
41
|
+
PreviewCollectionAppGenerationSchema,
|
|
42
|
+
RollbackCollectionAppGenerationSchema,
|
|
43
|
+
ResumeCollectionAppGenerationRunSchema,
|
|
44
|
+
} from "./schema";
|
|
45
|
+
import type {
|
|
46
|
+
TCollectionAppGenerationPlan,
|
|
47
|
+
TCollectionAppGenerationPlanPage,
|
|
48
|
+
TCollectionAppGenerationRun,
|
|
49
|
+
TCollectionAppGenerationRunPage,
|
|
50
|
+
} from "./types";
|
|
13
51
|
import {
|
|
14
52
|
CreateWikiSpaceSchema,
|
|
15
53
|
DeleteWikiSpaceSchema,
|
|
@@ -30,6 +68,85 @@ import type {
|
|
|
30
68
|
TWorkerBackgroundJobExecutionPage,
|
|
31
69
|
TClearWorkerBackgroundJobExecutionsResult,
|
|
32
70
|
} from "./types";
|
|
71
|
+
import type {
|
|
72
|
+
TBulkUpdateRecordsResult,
|
|
73
|
+
TCollection,
|
|
74
|
+
TCollectionRecordPage,
|
|
75
|
+
TGrantRecordPermissionResult,
|
|
76
|
+
TRecordPermissionListResult,
|
|
77
|
+
TReorderCollectionFieldsResult,
|
|
78
|
+
TRevokeRecordPermissionResult,
|
|
79
|
+
} from "./types";
|
|
80
|
+
import {
|
|
81
|
+
DeleteCollectionViewPreferenceSchema,
|
|
82
|
+
UpsertCollectionViewPreferenceSchema,
|
|
83
|
+
} from "./schema";
|
|
84
|
+
import type { TCollectionViewPreferenceResult } from "./types";
|
|
85
|
+
import {
|
|
86
|
+
DeleteCollectionAccessPolicySchema,
|
|
87
|
+
ListCollectionAccessTeamMembersSchema,
|
|
88
|
+
ListCollectionAccessPoliciesSchema,
|
|
89
|
+
PreviewCollectionAccessPolicySchema,
|
|
90
|
+
SetCollectionAccessTeamMembersSchema,
|
|
91
|
+
UpsertCollectionAccessPolicySchema,
|
|
92
|
+
} from "./schema";
|
|
93
|
+
import type {
|
|
94
|
+
TCollectionAccessPolicy,
|
|
95
|
+
TCollectionAccessPolicyPreview,
|
|
96
|
+
TCollectionAccessTeamMember,
|
|
97
|
+
TSetCollectionAccessTeamMembersResult,
|
|
98
|
+
} from "./types";
|
|
99
|
+
import {
|
|
100
|
+
DeleteCollectionFormSchema,
|
|
101
|
+
ListCollectionFormsSchema,
|
|
102
|
+
PublishCollectionFormSchema,
|
|
103
|
+
ResolveCollectionFormSchema,
|
|
104
|
+
RevokeCollectionFormSchema,
|
|
105
|
+
SubmitCollectionFormSchema,
|
|
106
|
+
UpsertCollectionFormSchema,
|
|
107
|
+
} from "./schema";
|
|
108
|
+
import type {
|
|
109
|
+
TCollectionForm,
|
|
110
|
+
TCollectionFormPublishResult,
|
|
111
|
+
TCollectionFormSubmissionResult,
|
|
112
|
+
TResolvedInternalCollectionForm,
|
|
113
|
+
} from "./types";
|
|
114
|
+
import {
|
|
115
|
+
DeleteCollectionDashboardSchema,
|
|
116
|
+
DeleteCollectionReportSchema,
|
|
117
|
+
EvaluateCollectionDashboardSchema,
|
|
118
|
+
EvaluateCollectionReportSchema,
|
|
119
|
+
ListCollectionDashboardsSchema,
|
|
120
|
+
ListCollectionReportsSchema,
|
|
121
|
+
UpsertCollectionDashboardSchema,
|
|
122
|
+
UpsertCollectionReportSchema,
|
|
123
|
+
} from "./schema";
|
|
124
|
+
import type {
|
|
125
|
+
TCollectionDashboard,
|
|
126
|
+
TCollectionDashboardEvaluation,
|
|
127
|
+
TCollectionDashboardPage,
|
|
128
|
+
TCollectionReport,
|
|
129
|
+
TCollectionReportEvaluation,
|
|
130
|
+
TCollectionReportPage,
|
|
131
|
+
} from "./types";
|
|
132
|
+
import {
|
|
133
|
+
CreateCollectionCommentSchema,
|
|
134
|
+
DeleteCollectionCommentSchema,
|
|
135
|
+
ListCollectionCommentsSchema,
|
|
136
|
+
ListCollectionNotificationsSchema,
|
|
137
|
+
ListCollectionRecordActivitySchema,
|
|
138
|
+
ListCollectionRecordCollaboratorsSchema,
|
|
139
|
+
MarkCollectionNotificationsReadSchema,
|
|
140
|
+
SetCollectionRecordCollaboratorsSchema,
|
|
141
|
+
UpdateCollectionCommentSchema,
|
|
142
|
+
} from "./schema";
|
|
143
|
+
import type {
|
|
144
|
+
TCollectionComment,
|
|
145
|
+
TCollectionCommentPage,
|
|
146
|
+
TCollectionNotificationPage,
|
|
147
|
+
TCollectionRecordActivityPage,
|
|
148
|
+
TCollectionRecordCollaborators,
|
|
149
|
+
} from "./types";
|
|
33
150
|
|
|
34
151
|
export class EmploidService extends ServiceClient {
|
|
35
152
|
protected getServiceName(): string {
|
|
@@ -759,6 +876,42 @@ export class EmploidService extends ServiceClient {
|
|
|
759
876
|
return await this.actionCall('channel', 'ListWorkerWhatsAppMessages', payload);
|
|
760
877
|
}
|
|
761
878
|
|
|
879
|
+
public async SendWorkerSlackMessage(payload: z.infer<typeof SendWorkerSlackMessageSchema>): Promise<TWorkerChannelMessage> {
|
|
880
|
+
return await this.actionCall('channel', 'SendWorkerSlackMessage', payload);
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
public async TestWorkerSlackChannel(payload: z.infer<typeof TestWorkerSlackChannelSchema>): Promise<{ health?: TWorkerSlackHealth; [key: string]: unknown }> {
|
|
884
|
+
return await this.actionCall('channel', 'TestWorkerSlackChannel', payload);
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
public async ListSlackConversations(payload: z.infer<typeof ListSlackConversationsSchema>): Promise<TSlackConversationList> {
|
|
888
|
+
return await this.actionCall('channel', 'ListSlackConversations', payload);
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
public async ListWorkerSlackMessages(payload: z.infer<typeof ListWorkerSlackMessagesSchema>): Promise<TWorkerSlackMessageHistory> {
|
|
892
|
+
return await this.actionCall('channel', 'ListWorkerSlackMessages', payload);
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
public async SendWorkerDiscordMessage(payload: z.infer<typeof SendWorkerDiscordMessageSchema>): Promise<TWorkerChannelMessage> {
|
|
896
|
+
return await this.actionCall('channel', 'SendWorkerDiscordMessage', payload);
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
public async TestWorkerDiscordChannel(payload: z.infer<typeof TestWorkerDiscordChannelSchema>): Promise<{ health?: TWorkerDiscordHealth; [key: string]: unknown }> {
|
|
900
|
+
return await this.actionCall('channel', 'TestWorkerDiscordChannel', payload);
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
public async ListDiscordGuilds(payload: z.infer<typeof ListDiscordGuildsSchema>): Promise<TDiscordGuildList> {
|
|
904
|
+
return await this.actionCall('channel', 'ListDiscordGuilds', payload);
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
public async ListDiscordGuildChannels(payload: z.infer<typeof ListDiscordGuildChannelsSchema>): Promise<TDiscordGuildChannelList> {
|
|
908
|
+
return await this.actionCall('channel', 'ListDiscordGuildChannels', payload);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
public async ListWorkerDiscordMessages(payload: z.infer<typeof ListWorkerDiscordMessagesSchema>): Promise<TWorkerDiscordMessageHistory> {
|
|
912
|
+
return await this.actionCall('channel', 'ListWorkerDiscordMessages', payload);
|
|
913
|
+
}
|
|
914
|
+
|
|
762
915
|
public async ListGoogleMeetCalendars(payload: z.infer<typeof ListGoogleMeetCalendarsSchema>): Promise<TGoogleMeetCalendarSources> {
|
|
763
916
|
return await this.actionCall('channel', 'ListGoogleMeetCalendars', payload);
|
|
764
917
|
}
|
|
@@ -1182,7 +1335,7 @@ export class EmploidService extends ServiceClient {
|
|
|
1182
1335
|
|
|
1183
1336
|
public async CreateCollection(
|
|
1184
1337
|
payload: z.infer<typeof CreateCollectionSchema>
|
|
1185
|
-
): Promise<
|
|
1338
|
+
): Promise<TCollection> {
|
|
1186
1339
|
return await this.actionCall(
|
|
1187
1340
|
"collection",
|
|
1188
1341
|
"CreateCollection",
|
|
@@ -1190,6 +1343,84 @@ export class EmploidService extends ServiceClient {
|
|
|
1190
1343
|
);
|
|
1191
1344
|
}
|
|
1192
1345
|
|
|
1346
|
+
public async PreviewCollectionAppGeneration(
|
|
1347
|
+
payload: z.infer<typeof PreviewCollectionAppGenerationSchema>
|
|
1348
|
+
): Promise<TCollectionAppGenerationPlan> {
|
|
1349
|
+
return await this.actionCall("collection", "PreviewCollectionAppGeneration", payload);
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
public async ApplyCollectionAppGeneration(
|
|
1353
|
+
payload: z.infer<typeof ApplyCollectionAppGenerationSchema>
|
|
1354
|
+
): Promise<TCollectionAppGenerationRun> {
|
|
1355
|
+
return await this.actionCall("collection", "ApplyCollectionAppGeneration", payload);
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
public async RollbackCollectionAppGeneration(
|
|
1359
|
+
payload: z.infer<typeof RollbackCollectionAppGenerationSchema>
|
|
1360
|
+
): Promise<TCollectionAppGenerationRun> {
|
|
1361
|
+
return await this.actionCall("collection", "RollbackCollectionAppGeneration", payload);
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
public async ResumeCollectionAppGenerationRun(
|
|
1365
|
+
payload: z.infer<typeof ResumeCollectionAppGenerationRunSchema>
|
|
1366
|
+
): Promise<TCollectionAppGenerationRun> {
|
|
1367
|
+
return await this.actionCall("collection", "ResumeCollectionAppGenerationRun", payload);
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
public async GetCollectionAppGenerationPlan(
|
|
1371
|
+
payload: z.infer<typeof GetCollectionAppGenerationPlanSchema>
|
|
1372
|
+
): Promise<TCollectionAppGenerationPlan> {
|
|
1373
|
+
return await this.actionCall("collection", "GetCollectionAppGenerationPlan", payload);
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
public async ListCollectionAppGenerationPlans(
|
|
1377
|
+
payload: z.infer<typeof ListCollectionAppGenerationPlansSchema>
|
|
1378
|
+
): Promise<TCollectionAppGenerationPlanPage> {
|
|
1379
|
+
return await this.actionCall("collection", "ListCollectionAppGenerationPlans", payload);
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
public async GetCollectionAppGenerationRun(
|
|
1383
|
+
payload: z.infer<typeof GetCollectionAppGenerationRunSchema>
|
|
1384
|
+
): Promise<TCollectionAppGenerationRun> {
|
|
1385
|
+
return await this.actionCall("collection", "GetCollectionAppGenerationRun", payload);
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
public async ListCollectionAppGenerationRuns(
|
|
1389
|
+
payload: z.infer<typeof ListCollectionAppGenerationRunsSchema>
|
|
1390
|
+
): Promise<TCollectionAppGenerationRunPage> {
|
|
1391
|
+
return await this.actionCall("collection", "ListCollectionAppGenerationRuns", payload);
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
public async UpdateCollection(
|
|
1395
|
+
payload: z.infer<typeof UpdateCollectionSchema>
|
|
1396
|
+
): Promise<TCollection> {
|
|
1397
|
+
return await this.actionCall(
|
|
1398
|
+
"collection",
|
|
1399
|
+
"UpdateCollection",
|
|
1400
|
+
payload
|
|
1401
|
+
);
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
public async ArchiveCollection(
|
|
1405
|
+
payload: z.infer<typeof ArchiveCollectionSchema>
|
|
1406
|
+
): Promise<any> {
|
|
1407
|
+
return await this.actionCall(
|
|
1408
|
+
"collection",
|
|
1409
|
+
"ArchiveCollection",
|
|
1410
|
+
payload
|
|
1411
|
+
);
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
public async PurgeCollection(
|
|
1415
|
+
payload: z.infer<typeof PurgeCollectionSchema>
|
|
1416
|
+
): Promise<any> {
|
|
1417
|
+
return await this.actionCall(
|
|
1418
|
+
"collection",
|
|
1419
|
+
"PurgeCollection",
|
|
1420
|
+
payload
|
|
1421
|
+
);
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1193
1424
|
public async ListCollections(
|
|
1194
1425
|
payload: z.infer<typeof ListCollectionsSchema>
|
|
1195
1426
|
): Promise<any> {
|
|
@@ -1642,7 +1873,7 @@ export class EmploidService extends ServiceClient {
|
|
|
1642
1873
|
|
|
1643
1874
|
public async BulkUpdateRecords(
|
|
1644
1875
|
payload: z.infer<typeof BulkUpdateRecordsSchema>
|
|
1645
|
-
): Promise<
|
|
1876
|
+
): Promise<TBulkUpdateRecordsResult> {
|
|
1646
1877
|
return await this.actionCall(
|
|
1647
1878
|
"collection",
|
|
1648
1879
|
"BulkUpdateRecords",
|
|
@@ -1671,10 +1902,7 @@ export class EmploidService extends ServiceClient {
|
|
|
1671
1902
|
|
|
1672
1903
|
public async QueryRecords(
|
|
1673
1904
|
payload: z.infer<typeof QueryRecordsSchema>
|
|
1674
|
-
): Promise<{
|
|
1675
|
-
total: number;
|
|
1676
|
-
records: any[];
|
|
1677
|
-
}> {
|
|
1905
|
+
): Promise<TCollectionRecordPage> {
|
|
1678
1906
|
return await this.actionCall(
|
|
1679
1907
|
"collection",
|
|
1680
1908
|
"QueryRecords",
|
|
@@ -1684,10 +1912,7 @@ export class EmploidService extends ServiceClient {
|
|
|
1684
1912
|
|
|
1685
1913
|
public async SearchRecords(
|
|
1686
1914
|
payload: z.infer<typeof SearchRecordsSchema>
|
|
1687
|
-
): Promise<{
|
|
1688
|
-
total: number;
|
|
1689
|
-
records: any[];
|
|
1690
|
-
}> {
|
|
1915
|
+
): Promise<TCollectionRecordPage> {
|
|
1691
1916
|
return await this.actionCall(
|
|
1692
1917
|
"collection",
|
|
1693
1918
|
"SearchRecords",
|
|
@@ -1805,6 +2030,26 @@ export class EmploidService extends ServiceClient {
|
|
|
1805
2030
|
);
|
|
1806
2031
|
}
|
|
1807
2032
|
|
|
2033
|
+
public async ListCollectionAutomationExecutions(
|
|
2034
|
+
payload: z.infer<typeof ListCollectionAutomationExecutionsSchema>
|
|
2035
|
+
): Promise<TCollectionAutomationExecutionPage> {
|
|
2036
|
+
return await this.actionCall(
|
|
2037
|
+
"collection",
|
|
2038
|
+
"ListCollectionAutomationExecutions",
|
|
2039
|
+
payload
|
|
2040
|
+
);
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
public async DecideCollectionAutomationApproval(
|
|
2044
|
+
payload: z.infer<typeof DecideCollectionAutomationApprovalSchema>
|
|
2045
|
+
): Promise<{ id: string; status: "approved" | "rejected"; executionId: string }> {
|
|
2046
|
+
return await this.actionCall(
|
|
2047
|
+
"collection",
|
|
2048
|
+
"DecideCollectionAutomationApproval",
|
|
2049
|
+
payload
|
|
2050
|
+
);
|
|
2051
|
+
}
|
|
2052
|
+
|
|
1808
2053
|
public async ListCollectionViews(
|
|
1809
2054
|
payload: z.infer<typeof ListCollectionViewsSchema>
|
|
1810
2055
|
): Promise<TCollectionView[]> {
|
|
@@ -1845,6 +2090,26 @@ export class EmploidService extends ServiceClient {
|
|
|
1845
2090
|
);
|
|
1846
2091
|
}
|
|
1847
2092
|
|
|
2093
|
+
public async UpsertCollectionViewPreference(
|
|
2094
|
+
payload: z.infer<typeof UpsertCollectionViewPreferenceSchema>
|
|
2095
|
+
): Promise<TCollectionViewPreferenceResult> {
|
|
2096
|
+
return await this.actionCall(
|
|
2097
|
+
"collection",
|
|
2098
|
+
"UpsertCollectionViewPreference",
|
|
2099
|
+
payload
|
|
2100
|
+
);
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
public async DeleteCollectionViewPreference(
|
|
2104
|
+
payload: z.infer<typeof DeleteCollectionViewPreferenceSchema>
|
|
2105
|
+
): Promise<{ success: boolean; viewId: string; userId: string }> {
|
|
2106
|
+
return await this.actionCall(
|
|
2107
|
+
"collection",
|
|
2108
|
+
"DeleteCollectionViewPreference",
|
|
2109
|
+
payload
|
|
2110
|
+
);
|
|
2111
|
+
}
|
|
2112
|
+
|
|
1848
2113
|
public async ListCollectionButtons(
|
|
1849
2114
|
payload: z.infer<typeof ListCollectionButtonsSchema>
|
|
1850
2115
|
): Promise<TCollectionButton[]> {
|
|
@@ -1970,7 +2235,7 @@ export class EmploidService extends ServiceClient {
|
|
|
1970
2235
|
|
|
1971
2236
|
public async ReorderCollectionFields(
|
|
1972
2237
|
payload: z.infer<typeof ReorderCollectionFieldsSchema>
|
|
1973
|
-
): Promise<
|
|
2238
|
+
): Promise<TReorderCollectionFieldsResult> {
|
|
1974
2239
|
return await this.actionCall(
|
|
1975
2240
|
"collection",
|
|
1976
2241
|
"ReorderCollectionFields",
|
|
@@ -2008,6 +2273,202 @@ export class EmploidService extends ServiceClient {
|
|
|
2008
2273
|
);
|
|
2009
2274
|
}
|
|
2010
2275
|
|
|
2276
|
+
public async ListCollectionForms(
|
|
2277
|
+
payload: z.infer<typeof ListCollectionFormsSchema>
|
|
2278
|
+
): Promise<TCollectionForm[]> {
|
|
2279
|
+
return await this.actionCall("collection", "ListCollectionForms", payload);
|
|
2280
|
+
}
|
|
2281
|
+
|
|
2282
|
+
public async UpsertCollectionForm(
|
|
2283
|
+
payload: z.infer<typeof UpsertCollectionFormSchema>
|
|
2284
|
+
): Promise<TCollectionForm> {
|
|
2285
|
+
return await this.actionCall("collection", "UpsertCollectionForm", payload);
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2288
|
+
public async ResolveCollectionForm(
|
|
2289
|
+
payload: z.infer<typeof ResolveCollectionFormSchema>
|
|
2290
|
+
): Promise<TResolvedInternalCollectionForm> {
|
|
2291
|
+
return await this.actionCall("collection", "ResolveCollectionForm", payload);
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
public async SubmitCollectionForm(
|
|
2295
|
+
payload: z.infer<typeof SubmitCollectionFormSchema>
|
|
2296
|
+
): Promise<TCollectionFormSubmissionResult> {
|
|
2297
|
+
return await this.actionCall("collection", "SubmitCollectionForm", payload);
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
public async PublishCollectionForm(
|
|
2301
|
+
payload: z.infer<typeof PublishCollectionFormSchema>
|
|
2302
|
+
): Promise<TCollectionFormPublishResult> {
|
|
2303
|
+
return await this.actionCall("collection", "PublishCollectionForm", payload);
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
public async RevokeCollectionForm(
|
|
2307
|
+
payload: z.infer<typeof RevokeCollectionFormSchema>
|
|
2308
|
+
): Promise<TCollectionForm> {
|
|
2309
|
+
return await this.actionCall("collection", "RevokeCollectionForm", payload);
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
public async DeleteCollectionForm(
|
|
2313
|
+
payload: z.infer<typeof DeleteCollectionFormSchema>
|
|
2314
|
+
): Promise<{ success: true; formId: string }> {
|
|
2315
|
+
return await this.actionCall("collection", "DeleteCollectionForm", payload);
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
public async ListCollectionReports(
|
|
2319
|
+
payload: z.infer<typeof ListCollectionReportsSchema>
|
|
2320
|
+
): Promise<TCollectionReportPage> {
|
|
2321
|
+
return await this.actionCall("collection", "ListCollectionReports", payload);
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
public async UpsertCollectionReport(
|
|
2325
|
+
payload: z.infer<typeof UpsertCollectionReportSchema>
|
|
2326
|
+
): Promise<TCollectionReport> {
|
|
2327
|
+
return await this.actionCall("collection", "UpsertCollectionReport", payload);
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2330
|
+
public async DeleteCollectionReport(
|
|
2331
|
+
payload: z.infer<typeof DeleteCollectionReportSchema>
|
|
2332
|
+
): Promise<{ id: string; archived: true; archivedAt: string | Date }> {
|
|
2333
|
+
return await this.actionCall("collection", "DeleteCollectionReport", payload);
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
public async EvaluateCollectionReport(
|
|
2337
|
+
payload: z.infer<typeof EvaluateCollectionReportSchema>
|
|
2338
|
+
): Promise<TCollectionReportEvaluation> {
|
|
2339
|
+
return await this.actionCall("collection", "EvaluateCollectionReport", payload);
|
|
2340
|
+
}
|
|
2341
|
+
|
|
2342
|
+
public async ListCollectionDashboards(
|
|
2343
|
+
payload: z.infer<typeof ListCollectionDashboardsSchema>
|
|
2344
|
+
): Promise<TCollectionDashboardPage> {
|
|
2345
|
+
return await this.actionCall("collection", "ListCollectionDashboards", payload);
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2348
|
+
public async UpsertCollectionDashboard(
|
|
2349
|
+
payload: z.infer<typeof UpsertCollectionDashboardSchema>
|
|
2350
|
+
): Promise<TCollectionDashboard> {
|
|
2351
|
+
return await this.actionCall("collection", "UpsertCollectionDashboard", payload);
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
public async DeleteCollectionDashboard(
|
|
2355
|
+
payload: z.infer<typeof DeleteCollectionDashboardSchema>
|
|
2356
|
+
): Promise<{ id: string; archived: true; archivedAt: string | Date }> {
|
|
2357
|
+
return await this.actionCall("collection", "DeleteCollectionDashboard", payload);
|
|
2358
|
+
}
|
|
2359
|
+
|
|
2360
|
+
public async EvaluateCollectionDashboard(
|
|
2361
|
+
payload: z.infer<typeof EvaluateCollectionDashboardSchema>
|
|
2362
|
+
): Promise<TCollectionDashboardEvaluation> {
|
|
2363
|
+
return await this.actionCall("collection", "EvaluateCollectionDashboard", payload);
|
|
2364
|
+
}
|
|
2365
|
+
|
|
2366
|
+
public async ListCollectionAccessPolicies(
|
|
2367
|
+
payload: z.infer<typeof ListCollectionAccessPoliciesSchema>
|
|
2368
|
+
): Promise<TCollectionAccessPolicy[]> {
|
|
2369
|
+
return await this.actionCall(
|
|
2370
|
+
"collection",
|
|
2371
|
+
"ListCollectionAccessPolicies",
|
|
2372
|
+
payload
|
|
2373
|
+
);
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
public async UpsertCollectionAccessPolicy(
|
|
2377
|
+
payload: z.infer<typeof UpsertCollectionAccessPolicySchema>
|
|
2378
|
+
): Promise<TCollectionAccessPolicy> {
|
|
2379
|
+
return await this.actionCall(
|
|
2380
|
+
"collection",
|
|
2381
|
+
"UpsertCollectionAccessPolicy",
|
|
2382
|
+
payload
|
|
2383
|
+
);
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2386
|
+
public async DeleteCollectionAccessPolicy(
|
|
2387
|
+
payload: z.infer<typeof DeleteCollectionAccessPolicySchema>
|
|
2388
|
+
): Promise<{ success: true; policyId: string; deletedBy: string }> {
|
|
2389
|
+
return await this.actionCall(
|
|
2390
|
+
"collection",
|
|
2391
|
+
"DeleteCollectionAccessPolicy",
|
|
2392
|
+
payload
|
|
2393
|
+
);
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
public async ListCollectionAccessTeamMembers(
|
|
2397
|
+
payload: z.infer<typeof ListCollectionAccessTeamMembersSchema>
|
|
2398
|
+
): Promise<TCollectionAccessTeamMember[]> {
|
|
2399
|
+
return await this.actionCall("collection", "ListCollectionAccessTeamMembers", payload);
|
|
2400
|
+
}
|
|
2401
|
+
|
|
2402
|
+
public async SetCollectionAccessTeamMembers(
|
|
2403
|
+
payload: z.infer<typeof SetCollectionAccessTeamMembersSchema>
|
|
2404
|
+
): Promise<TSetCollectionAccessTeamMembersResult> {
|
|
2405
|
+
return await this.actionCall("collection", "SetCollectionAccessTeamMembers", payload);
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2408
|
+
public async PreviewCollectionAccessPolicy(
|
|
2409
|
+
payload: z.infer<typeof PreviewCollectionAccessPolicySchema>
|
|
2410
|
+
): Promise<TCollectionAccessPolicyPreview> {
|
|
2411
|
+
return await this.actionCall(
|
|
2412
|
+
"collection",
|
|
2413
|
+
"PreviewCollectionAccessPolicy",
|
|
2414
|
+
payload
|
|
2415
|
+
);
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
public async CreateCollectionComment(
|
|
2419
|
+
payload: z.infer<typeof CreateCollectionCommentSchema>
|
|
2420
|
+
): Promise<TCollectionComment> {
|
|
2421
|
+
return await this.actionCall("collection", "CreateCollectionComment", payload);
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
public async UpdateCollectionComment(
|
|
2425
|
+
payload: z.infer<typeof UpdateCollectionCommentSchema>
|
|
2426
|
+
): Promise<TCollectionComment> {
|
|
2427
|
+
return await this.actionCall("collection", "UpdateCollectionComment", payload);
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2430
|
+
public async DeleteCollectionComment(
|
|
2431
|
+
payload: z.infer<typeof DeleteCollectionCommentSchema>
|
|
2432
|
+
): Promise<{ id: string; deletedAt: string | Date }> {
|
|
2433
|
+
return await this.actionCall("collection", "DeleteCollectionComment", payload);
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
public async ListCollectionComments(
|
|
2437
|
+
payload: z.infer<typeof ListCollectionCommentsSchema>
|
|
2438
|
+
): Promise<TCollectionCommentPage> {
|
|
2439
|
+
return await this.actionCall("collection", "ListCollectionComments", payload);
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
public async ListCollectionRecordActivity(
|
|
2443
|
+
payload: z.infer<typeof ListCollectionRecordActivitySchema>
|
|
2444
|
+
): Promise<TCollectionRecordActivityPage> {
|
|
2445
|
+
return await this.actionCall("collection", "ListCollectionRecordActivity", payload);
|
|
2446
|
+
}
|
|
2447
|
+
|
|
2448
|
+
public async ListCollectionRecordCollaborators(
|
|
2449
|
+
payload: z.infer<typeof ListCollectionRecordCollaboratorsSchema>
|
|
2450
|
+
): Promise<TCollectionRecordCollaborators> {
|
|
2451
|
+
return await this.actionCall("collection", "ListCollectionRecordCollaborators", payload);
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2454
|
+
public async SetCollectionRecordCollaborators(
|
|
2455
|
+
payload: z.infer<typeof SetCollectionRecordCollaboratorsSchema>
|
|
2456
|
+
): Promise<TCollectionRecordCollaborators> {
|
|
2457
|
+
return await this.actionCall("collection", "SetCollectionRecordCollaborators", payload);
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2460
|
+
public async ListCollectionNotifications(
|
|
2461
|
+
payload: z.infer<typeof ListCollectionNotificationsSchema>
|
|
2462
|
+
): Promise<TCollectionNotificationPage> {
|
|
2463
|
+
return await this.actionCall("collection", "ListCollectionNotifications", payload);
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2466
|
+
public async MarkCollectionNotificationsRead(
|
|
2467
|
+
payload: z.infer<typeof MarkCollectionNotificationsReadSchema>
|
|
2468
|
+
): Promise<{ updatedCount: number; notificationIds: string[] }> {
|
|
2469
|
+
return await this.actionCall("collection", "MarkCollectionNotificationsRead", payload);
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2011
2472
|
public async CheckRecordPermission(
|
|
2012
2473
|
payload: z.infer<typeof CheckRecordPermissionSchema>
|
|
2013
2474
|
): Promise<any> {
|
|
@@ -2020,7 +2481,7 @@ export class EmploidService extends ServiceClient {
|
|
|
2020
2481
|
|
|
2021
2482
|
public async ListRecordPermissions(
|
|
2022
2483
|
payload: z.infer<typeof ListRecordPermissionsSchema>
|
|
2023
|
-
): Promise<
|
|
2484
|
+
): Promise<TRecordPermissionListResult> {
|
|
2024
2485
|
return await this.actionCall(
|
|
2025
2486
|
"collection",
|
|
2026
2487
|
"ListRecordPermissions",
|
|
@@ -2030,7 +2491,7 @@ export class EmploidService extends ServiceClient {
|
|
|
2030
2491
|
|
|
2031
2492
|
public async GrantRecordPermission(
|
|
2032
2493
|
payload: z.infer<typeof GrantRecordPermissionSchema>
|
|
2033
|
-
): Promise<
|
|
2494
|
+
): Promise<TGrantRecordPermissionResult> {
|
|
2034
2495
|
return await this.actionCall(
|
|
2035
2496
|
"collection",
|
|
2036
2497
|
"GrantRecordPermission",
|
|
@@ -2041,7 +2502,7 @@ export class EmploidService extends ServiceClient {
|
|
|
2041
2502
|
|
|
2042
2503
|
public async RevokeRecordPermission(
|
|
2043
2504
|
payload: z.infer<typeof RevokeRecordPermissionSchema>
|
|
2044
|
-
): Promise<
|
|
2505
|
+
): Promise<TRevokeRecordPermissionResult> {
|
|
2045
2506
|
return await this.actionCall(
|
|
2046
2507
|
"collection",
|
|
2047
2508
|
"RevokeRecordPermission",
|