@kohost/api-client 7.3.0 → 7.5.0
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/httpClient.d.ts +2 -2
- package/dist/models/ticket.js +1 -1
- package/dist/models/ticket.js.map +1 -1
- package/dist/schemas/organization.d.ts +6 -0
- package/dist/schemas/organization.js +12 -4
- package/dist/schemas/organization.js.map +1 -1
- package/dist/schemas/ticket.d.ts +24 -3
- package/dist/schemas/ticket.js +34 -1
- package/dist/schemas/ticket.js.map +1 -1
- package/dist/useCases/{autoCloseTickets.d.ts → copyIssueRouting.d.ts} +5 -5
- package/dist/useCases/{updateTicketStatus.js → copyIssueRouting.js} +10 -10
- package/dist/useCases/copyIssueRouting.js.map +1 -0
- package/dist/useCases/index.d.ts +2 -2
- package/dist/useCases/index.js +5 -5
- package/dist/useCases/index.js.map +1 -1
- package/dist/useCases/mergeIssue.d.ts +27 -0
- package/dist/useCases/{autoCloseTickets.js → mergeIssue.js} +8 -8
- package/dist/useCases/mergeIssue.js.map +1 -0
- package/package.json +1 -1
- package/dist/useCases/autoCloseTickets.js.map +0 -1
- package/dist/useCases/updateTicketStatus.d.ts +0 -36
- package/dist/useCases/updateTicketStatus.js.map +0 -1
package/dist/httpClient.d.ts
CHANGED
|
@@ -66,11 +66,11 @@ export class KohostHTTPClient {
|
|
|
66
66
|
*
|
|
67
67
|
* @param {Command} command
|
|
68
68
|
*/
|
|
69
|
-
send(command: typeof import("./useCases.js").CreatePwaHandoffTokenCommand | typeof import("./useCases.js").LogoutUserCommand | typeof import("./useCases.js").DescribeMyAuthCommand | typeof import("./useCases.js").ValidateAuthCommand | typeof import("./useCases.js").SelectOrganizationCommand | typeof import("./useCases.js").ListMyOrganizationsCommand | typeof import("./useCases.js").DescribeSelfCommand | typeof import("./useCases.js").DescribeUserCommand | typeof import("./useCases.js").CreateUserCommand | typeof import("./useCases.js").ListUsersCommand | typeof import("./useCases.js").UpdateSelfCommand | typeof import("./useCases.js").UpdateUserCommand | typeof import("./useCases.js").DeleteUserCommand | typeof import("./useCases.js").CreateApiKeyCommand | typeof import("./useCases.js").GetApiKeyCommand | typeof import("./useCases.js").RotateApiKeyCommand | typeof import("./useCases.js").RevokeApiKeyCommand | typeof import("./useCases.js").SendVerificationCodeCommand | typeof import("./useCases.js").CheckVerificationCodeCommand | typeof import("./useCases.js").ListUserSpacesCommand | typeof import("./useCases.js").DescribeMyPasskeyRegistrationsCommand | typeof import("./useCases.js").DeleteUserCredentialCommand | typeof import("./useCases.js").CreatePolicyCommand | typeof import("./useCases.js").ListPoliciesCommand | typeof import("./useCases.js").UpdatePolicyCommand | typeof import("./useCases.js").DeletePolicyCommand | typeof import("./useCases.js").DescribePolicyCommand | typeof import("./useCases.js").ListSpacesCommand | typeof import("./useCases.js").UpdateSpaceCommand | typeof import("./useCases.js").CreateSpaceCommand | typeof import("./useCases.js").DescribeSpaceCommand | typeof import("./useCases.js").DeleteSpaceCommand | typeof import("./useCases.js").CreateDeviceCommand | typeof import("./useCases.js").CreateDeviceCredentialCommand | typeof import("./useCases.js").ListDevicesCommand | typeof import("./useCases.js").ListDeviceCredentialsCommand | typeof import("./useCases.js").ListCameraStreamPreviewsCommand | typeof import("./useCases.js").DescribeDeviceCommand | typeof import("./useCases.js").UpdateDeviceCommand | typeof import("./useCases.js").UpdateDeviceCredentialCommand | typeof import("./useCases.js").SetDeviceCommand | typeof import("./useCases.js").DeleteDeviceCommand | typeof import("./useCases.js").DeleteDeviceCredentialCommand | typeof import("./useCases.js").MoveDeviceCommand | typeof import("./useCases.js").DescribeDeviceConfigCommand | typeof import("./useCases.js").CreateCategoryCommand | typeof import("./useCases.js").DeleteCategoryCommand | typeof import("./useCases.js").DescribeCategoryCommand | typeof import("./useCases.js").ListCategoriesCommand | typeof import("./useCases.js").UpdateCategoryCommand | typeof import("./useCases.js").DescribeDepartmentCommand | typeof import("./useCases.js").ListDepartmentsCommand | typeof import("./useCases.js").DeleteDepartmentCommand | typeof import("./useCases.js").CreateDepartmentCommand | typeof import("./useCases.js").UpdateDepartmentCommand | typeof import("./useCases.js").
|
|
69
|
+
send(command: typeof import("./useCases.js").CreatePwaHandoffTokenCommand | typeof import("./useCases.js").LogoutUserCommand | typeof import("./useCases.js").DescribeMyAuthCommand | typeof import("./useCases.js").ValidateAuthCommand | typeof import("./useCases.js").SelectOrganizationCommand | typeof import("./useCases.js").ListMyOrganizationsCommand | typeof import("./useCases.js").DescribeSelfCommand | typeof import("./useCases.js").DescribeUserCommand | typeof import("./useCases.js").CreateUserCommand | typeof import("./useCases.js").ListUsersCommand | typeof import("./useCases.js").UpdateSelfCommand | typeof import("./useCases.js").UpdateUserCommand | typeof import("./useCases.js").DeleteUserCommand | typeof import("./useCases.js").CreateApiKeyCommand | typeof import("./useCases.js").GetApiKeyCommand | typeof import("./useCases.js").RotateApiKeyCommand | typeof import("./useCases.js").RevokeApiKeyCommand | typeof import("./useCases.js").SendVerificationCodeCommand | typeof import("./useCases.js").CheckVerificationCodeCommand | typeof import("./useCases.js").ListUserSpacesCommand | typeof import("./useCases.js").DescribeMyPasskeyRegistrationsCommand | typeof import("./useCases.js").DeleteUserCredentialCommand | typeof import("./useCases.js").CreatePolicyCommand | typeof import("./useCases.js").ListPoliciesCommand | typeof import("./useCases.js").UpdatePolicyCommand | typeof import("./useCases.js").DeletePolicyCommand | typeof import("./useCases.js").DescribePolicyCommand | typeof import("./useCases.js").ListSpacesCommand | typeof import("./useCases.js").UpdateSpaceCommand | typeof import("./useCases.js").CreateSpaceCommand | typeof import("./useCases.js").DescribeSpaceCommand | typeof import("./useCases.js").DeleteSpaceCommand | typeof import("./useCases.js").CreateDeviceCommand | typeof import("./useCases.js").CreateDeviceCredentialCommand | typeof import("./useCases.js").ListDevicesCommand | typeof import("./useCases.js").ListDeviceCredentialsCommand | typeof import("./useCases.js").ListCameraStreamPreviewsCommand | typeof import("./useCases.js").DescribeDeviceCommand | typeof import("./useCases.js").UpdateDeviceCommand | typeof import("./useCases.js").UpdateDeviceCredentialCommand | typeof import("./useCases.js").SetDeviceCommand | typeof import("./useCases.js").DeleteDeviceCommand | typeof import("./useCases.js").DeleteDeviceCredentialCommand | typeof import("./useCases.js").MoveDeviceCommand | typeof import("./useCases.js").DescribeDeviceConfigCommand | typeof import("./useCases.js").CreateCategoryCommand | typeof import("./useCases.js").DeleteCategoryCommand | typeof import("./useCases.js").DescribeCategoryCommand | typeof import("./useCases.js").ListCategoriesCommand | typeof import("./useCases.js").UpdateCategoryCommand | typeof import("./useCases.js").DescribeDepartmentCommand | typeof import("./useCases.js").ListDepartmentsCommand | typeof import("./useCases.js").DeleteDepartmentCommand | typeof import("./useCases.js").CreateDepartmentCommand | typeof import("./useCases.js").UpdateDepartmentCommand | typeof import("./useCases.js").DescribeTicketStatsCommand | typeof import("./useCases.js").CreateTicketCommand | typeof import("./useCases.js").CreateTicketMessageCommand | typeof import("./useCases.js").DeleteTicketCommand | typeof import("./useCases.js").ListTicketLocationsCommand | typeof import("./useCases.js").DescribeTicketFiltersCommand | typeof import("./useCases.js").DescribeTicketCommand | typeof import("./useCases.js").ListTicketsCommand | typeof import("./useCases.js").UpdateMessageReadStatusCommand | typeof import("./useCases.js").UpdateTicketCommand | typeof import("./useCases.js").LeaveTicketCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationMapCommand | typeof import("./useCases.js").AutoAssociateDiscoveredDevicesCommand | typeof import("./useCases.js").CreateDiscoveredDeviceCommand | typeof import("./useCases.js").ListDiscoveredDevicesCommand | typeof import("./useCases.js").UpdateDiscoveredDeviceCommand | typeof import("./useCases.js").DeleteDiscoveredDeviceCommand | typeof import("./useCases.js").DescribeDiscoveredDeviceCommand | typeof import("./useCases.js").UpsertDiscoveredDeviceCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationCommand | typeof import("./useCases.js").ListIntegrationsCommand | typeof import("./useCases.js").DescribeMyOrganizationCommand | typeof import("./useCases.js").CreateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationFeaturesCommand | typeof import("./useCases.js").DeleteOrganizationCommand | typeof import("./useCases.js").DescribeOrganizationCommand | typeof import("./useCases.js").ListOrganizationsCommand | typeof import("./useCases.js").ListPropertiesCommand | typeof import("./useCases.js").ListPropertyCredentialsCommand | typeof import("./useCases.js").ListMyPropertiesCommand | typeof import("./useCases.js").CreatePropertyCommand | typeof import("./useCases.js").DeletePropertyCommand | typeof import("./useCases.js").UpdatePropertyCommand | typeof import("./useCases.js").DescribePropertyCommand | typeof import("./useCases.js").UpdatePropertyFeaturesCommand | typeof import("./useCases.js").EmailUserAccountSetupCommand | typeof import("./useCases.js").CreateImageUploadEndpointCommand | typeof import("./useCases.js").DeleteMediaFileCommand | typeof import("./useCases.js").UploadImageCommand | typeof import("./useCases.js").DescribeTimeSheetStatsCommand | typeof import("./useCases.js").ListMyTimeSheetsCommand | typeof import("./useCases.js").DescribeTimeSheetCommand | typeof import("./useCases.js").ListTimeSheetsCommand | typeof import("./useCases.js").CreateTimeSheetCommand | typeof import("./useCases.js").DeleteTimeSheetCommand | typeof import("./useCases.js").UpdateTimeSheetCommand | typeof import("./useCases.js").CreateTimeSheetTimeEntryCommand | typeof import("./useCases.js").DeleteTimeSheetTimeEntryCommand | typeof import("./useCases.js").UpdateTimeSheetTimeEntryCommand | typeof import("./useCases.js").StartSOSCommand | typeof import("./useCases.js").StopSOSCommand | typeof import("./useCases.js").DescribeSOSCommand | typeof import("./useCases.js").DescribeIssueCommand | typeof import("./useCases.js").ListIssuesCommand | typeof import("./useCases.js").DeleteIssueCommand | typeof import("./useCases.js").CreateIssueCommand | typeof import("./useCases.js").UpdateIssueCommand | typeof import("./useCases.js").MergeIssueCommand | typeof import("./useCases.js").CopyIssueRoutingCommand | typeof import("./useCases.js").BulkUpdateIssueCommand | typeof import("./useCases.js").DescribeVendorCommand | typeof import("./useCases.js").ListVendorsCommand | typeof import("./useCases.js").DeleteVendorCommand | typeof import("./useCases.js").CreateVendorCommand | typeof import("./useCases.js").UpdateVendorCommand | typeof import("./useCases.js").CreateAutomationCommand | typeof import("./useCases.js").ListAutomationsCommand | typeof import("./useCases.js").DescribeAutomationCommand | typeof import("./useCases.js").UpdateAutomationCommand | typeof import("./useCases.js").DeleteAutomationCommand | typeof import("./useCases.js").CreateDefaultAutomationsCommand | typeof import("./useCases.js").RunAutomationCommand | typeof import("./useCases.js").SendNotificationCommand | typeof import("./useCases.js").ListSessionsCommand | typeof import("./useCases.js").DescribeSessionCommand | typeof import("./useCases.js").DeleteSessionCommand | typeof import("./useCases.js").SetDevicesCommand | typeof import("./useCases.js").CreateSystemCommand | typeof import("./useCases.js").DeleteSystemCommand | typeof import("./useCases.js").DescribeSystemCommand | typeof import("./useCases.js").ListSystemsCommand | typeof import("./useCases.js").UpdateSystemCommand | typeof import("./useCases.js").CreateServerCommand | typeof import("./useCases.js").DeleteServerCommand | typeof import("./useCases.js").DescribeServerCommand | typeof import("./useCases.js").ListServersCommand | typeof import("./useCases.js").UpdateServerCommand): Promise<any>;
|
|
70
70
|
/**
|
|
71
71
|
* @param {Command} config
|
|
72
72
|
* @returns {Request}
|
|
73
73
|
*/
|
|
74
|
-
createRequest(config: typeof import("./useCases.js").CreatePwaHandoffTokenCommand | typeof import("./useCases.js").LogoutUserCommand | typeof import("./useCases.js").DescribeMyAuthCommand | typeof import("./useCases.js").ValidateAuthCommand | typeof import("./useCases.js").SelectOrganizationCommand | typeof import("./useCases.js").ListMyOrganizationsCommand | typeof import("./useCases.js").DescribeSelfCommand | typeof import("./useCases.js").DescribeUserCommand | typeof import("./useCases.js").CreateUserCommand | typeof import("./useCases.js").ListUsersCommand | typeof import("./useCases.js").UpdateSelfCommand | typeof import("./useCases.js").UpdateUserCommand | typeof import("./useCases.js").DeleteUserCommand | typeof import("./useCases.js").CreateApiKeyCommand | typeof import("./useCases.js").GetApiKeyCommand | typeof import("./useCases.js").RotateApiKeyCommand | typeof import("./useCases.js").RevokeApiKeyCommand | typeof import("./useCases.js").SendVerificationCodeCommand | typeof import("./useCases.js").CheckVerificationCodeCommand | typeof import("./useCases.js").ListUserSpacesCommand | typeof import("./useCases.js").DescribeMyPasskeyRegistrationsCommand | typeof import("./useCases.js").DeleteUserCredentialCommand | typeof import("./useCases.js").CreatePolicyCommand | typeof import("./useCases.js").ListPoliciesCommand | typeof import("./useCases.js").UpdatePolicyCommand | typeof import("./useCases.js").DeletePolicyCommand | typeof import("./useCases.js").DescribePolicyCommand | typeof import("./useCases.js").ListSpacesCommand | typeof import("./useCases.js").UpdateSpaceCommand | typeof import("./useCases.js").CreateSpaceCommand | typeof import("./useCases.js").DescribeSpaceCommand | typeof import("./useCases.js").DeleteSpaceCommand | typeof import("./useCases.js").CreateDeviceCommand | typeof import("./useCases.js").CreateDeviceCredentialCommand | typeof import("./useCases.js").ListDevicesCommand | typeof import("./useCases.js").ListDeviceCredentialsCommand | typeof import("./useCases.js").ListCameraStreamPreviewsCommand | typeof import("./useCases.js").DescribeDeviceCommand | typeof import("./useCases.js").UpdateDeviceCommand | typeof import("./useCases.js").UpdateDeviceCredentialCommand | typeof import("./useCases.js").SetDeviceCommand | typeof import("./useCases.js").DeleteDeviceCommand | typeof import("./useCases.js").DeleteDeviceCredentialCommand | typeof import("./useCases.js").MoveDeviceCommand | typeof import("./useCases.js").DescribeDeviceConfigCommand | typeof import("./useCases.js").CreateCategoryCommand | typeof import("./useCases.js").DeleteCategoryCommand | typeof import("./useCases.js").DescribeCategoryCommand | typeof import("./useCases.js").ListCategoriesCommand | typeof import("./useCases.js").UpdateCategoryCommand | typeof import("./useCases.js").DescribeDepartmentCommand | typeof import("./useCases.js").ListDepartmentsCommand | typeof import("./useCases.js").DeleteDepartmentCommand | typeof import("./useCases.js").CreateDepartmentCommand | typeof import("./useCases.js").UpdateDepartmentCommand | typeof import("./useCases.js").
|
|
74
|
+
createRequest(config: typeof import("./useCases.js").CreatePwaHandoffTokenCommand | typeof import("./useCases.js").LogoutUserCommand | typeof import("./useCases.js").DescribeMyAuthCommand | typeof import("./useCases.js").ValidateAuthCommand | typeof import("./useCases.js").SelectOrganizationCommand | typeof import("./useCases.js").ListMyOrganizationsCommand | typeof import("./useCases.js").DescribeSelfCommand | typeof import("./useCases.js").DescribeUserCommand | typeof import("./useCases.js").CreateUserCommand | typeof import("./useCases.js").ListUsersCommand | typeof import("./useCases.js").UpdateSelfCommand | typeof import("./useCases.js").UpdateUserCommand | typeof import("./useCases.js").DeleteUserCommand | typeof import("./useCases.js").CreateApiKeyCommand | typeof import("./useCases.js").GetApiKeyCommand | typeof import("./useCases.js").RotateApiKeyCommand | typeof import("./useCases.js").RevokeApiKeyCommand | typeof import("./useCases.js").SendVerificationCodeCommand | typeof import("./useCases.js").CheckVerificationCodeCommand | typeof import("./useCases.js").ListUserSpacesCommand | typeof import("./useCases.js").DescribeMyPasskeyRegistrationsCommand | typeof import("./useCases.js").DeleteUserCredentialCommand | typeof import("./useCases.js").CreatePolicyCommand | typeof import("./useCases.js").ListPoliciesCommand | typeof import("./useCases.js").UpdatePolicyCommand | typeof import("./useCases.js").DeletePolicyCommand | typeof import("./useCases.js").DescribePolicyCommand | typeof import("./useCases.js").ListSpacesCommand | typeof import("./useCases.js").UpdateSpaceCommand | typeof import("./useCases.js").CreateSpaceCommand | typeof import("./useCases.js").DescribeSpaceCommand | typeof import("./useCases.js").DeleteSpaceCommand | typeof import("./useCases.js").CreateDeviceCommand | typeof import("./useCases.js").CreateDeviceCredentialCommand | typeof import("./useCases.js").ListDevicesCommand | typeof import("./useCases.js").ListDeviceCredentialsCommand | typeof import("./useCases.js").ListCameraStreamPreviewsCommand | typeof import("./useCases.js").DescribeDeviceCommand | typeof import("./useCases.js").UpdateDeviceCommand | typeof import("./useCases.js").UpdateDeviceCredentialCommand | typeof import("./useCases.js").SetDeviceCommand | typeof import("./useCases.js").DeleteDeviceCommand | typeof import("./useCases.js").DeleteDeviceCredentialCommand | typeof import("./useCases.js").MoveDeviceCommand | typeof import("./useCases.js").DescribeDeviceConfigCommand | typeof import("./useCases.js").CreateCategoryCommand | typeof import("./useCases.js").DeleteCategoryCommand | typeof import("./useCases.js").DescribeCategoryCommand | typeof import("./useCases.js").ListCategoriesCommand | typeof import("./useCases.js").UpdateCategoryCommand | typeof import("./useCases.js").DescribeDepartmentCommand | typeof import("./useCases.js").ListDepartmentsCommand | typeof import("./useCases.js").DeleteDepartmentCommand | typeof import("./useCases.js").CreateDepartmentCommand | typeof import("./useCases.js").UpdateDepartmentCommand | typeof import("./useCases.js").DescribeTicketStatsCommand | typeof import("./useCases.js").CreateTicketCommand | typeof import("./useCases.js").CreateTicketMessageCommand | typeof import("./useCases.js").DeleteTicketCommand | typeof import("./useCases.js").ListTicketLocationsCommand | typeof import("./useCases.js").DescribeTicketFiltersCommand | typeof import("./useCases.js").DescribeTicketCommand | typeof import("./useCases.js").ListTicketsCommand | typeof import("./useCases.js").UpdateMessageReadStatusCommand | typeof import("./useCases.js").UpdateTicketCommand | typeof import("./useCases.js").LeaveTicketCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationMapCommand | typeof import("./useCases.js").AutoAssociateDiscoveredDevicesCommand | typeof import("./useCases.js").CreateDiscoveredDeviceCommand | typeof import("./useCases.js").ListDiscoveredDevicesCommand | typeof import("./useCases.js").UpdateDiscoveredDeviceCommand | typeof import("./useCases.js").DeleteDiscoveredDeviceCommand | typeof import("./useCases.js").DescribeDiscoveredDeviceCommand | typeof import("./useCases.js").UpsertDiscoveredDeviceCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationCommand | typeof import("./useCases.js").ListIntegrationsCommand | typeof import("./useCases.js").DescribeMyOrganizationCommand | typeof import("./useCases.js").CreateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationFeaturesCommand | typeof import("./useCases.js").DeleteOrganizationCommand | typeof import("./useCases.js").DescribeOrganizationCommand | typeof import("./useCases.js").ListOrganizationsCommand | typeof import("./useCases.js").ListPropertiesCommand | typeof import("./useCases.js").ListPropertyCredentialsCommand | typeof import("./useCases.js").ListMyPropertiesCommand | typeof import("./useCases.js").CreatePropertyCommand | typeof import("./useCases.js").DeletePropertyCommand | typeof import("./useCases.js").UpdatePropertyCommand | typeof import("./useCases.js").DescribePropertyCommand | typeof import("./useCases.js").UpdatePropertyFeaturesCommand | typeof import("./useCases.js").EmailUserAccountSetupCommand | typeof import("./useCases.js").CreateImageUploadEndpointCommand | typeof import("./useCases.js").DeleteMediaFileCommand | typeof import("./useCases.js").UploadImageCommand | typeof import("./useCases.js").DescribeTimeSheetStatsCommand | typeof import("./useCases.js").ListMyTimeSheetsCommand | typeof import("./useCases.js").DescribeTimeSheetCommand | typeof import("./useCases.js").ListTimeSheetsCommand | typeof import("./useCases.js").CreateTimeSheetCommand | typeof import("./useCases.js").DeleteTimeSheetCommand | typeof import("./useCases.js").UpdateTimeSheetCommand | typeof import("./useCases.js").CreateTimeSheetTimeEntryCommand | typeof import("./useCases.js").DeleteTimeSheetTimeEntryCommand | typeof import("./useCases.js").UpdateTimeSheetTimeEntryCommand | typeof import("./useCases.js").StartSOSCommand | typeof import("./useCases.js").StopSOSCommand | typeof import("./useCases.js").DescribeSOSCommand | typeof import("./useCases.js").DescribeIssueCommand | typeof import("./useCases.js").ListIssuesCommand | typeof import("./useCases.js").DeleteIssueCommand | typeof import("./useCases.js").CreateIssueCommand | typeof import("./useCases.js").UpdateIssueCommand | typeof import("./useCases.js").MergeIssueCommand | typeof import("./useCases.js").CopyIssueRoutingCommand | typeof import("./useCases.js").BulkUpdateIssueCommand | typeof import("./useCases.js").DescribeVendorCommand | typeof import("./useCases.js").ListVendorsCommand | typeof import("./useCases.js").DeleteVendorCommand | typeof import("./useCases.js").CreateVendorCommand | typeof import("./useCases.js").UpdateVendorCommand | typeof import("./useCases.js").CreateAutomationCommand | typeof import("./useCases.js").ListAutomationsCommand | typeof import("./useCases.js").DescribeAutomationCommand | typeof import("./useCases.js").UpdateAutomationCommand | typeof import("./useCases.js").DeleteAutomationCommand | typeof import("./useCases.js").CreateDefaultAutomationsCommand | typeof import("./useCases.js").RunAutomationCommand | typeof import("./useCases.js").SendNotificationCommand | typeof import("./useCases.js").ListSessionsCommand | typeof import("./useCases.js").DescribeSessionCommand | typeof import("./useCases.js").DeleteSessionCommand | typeof import("./useCases.js").SetDevicesCommand | typeof import("./useCases.js").CreateSystemCommand | typeof import("./useCases.js").DeleteSystemCommand | typeof import("./useCases.js").DescribeSystemCommand | typeof import("./useCases.js").ListSystemsCommand | typeof import("./useCases.js").UpdateSystemCommand | typeof import("./useCases.js").CreateServerCommand | typeof import("./useCases.js").DeleteServerCommand | typeof import("./useCases.js").DescribeServerCommand | typeof import("./useCases.js").ListServersCommand | typeof import("./useCases.js").UpdateServerCommand): Request;
|
|
75
75
|
#private;
|
|
76
76
|
}
|
package/dist/models/ticket.js
CHANGED
|
@@ -22,10 +22,10 @@ var Ticket = class extends Entity {
|
|
|
22
22
|
this.status = data.status;
|
|
23
23
|
this.priority = data.priority;
|
|
24
24
|
if (data.priorityRank !== void 0) this.priorityRank = data.priorityRank;
|
|
25
|
+
if (data.reopenCount !== void 0) this.reopenCount = data.reopenCount;
|
|
25
26
|
this.tags = data.tags;
|
|
26
27
|
if (data.rating !== void 0) this.rating = data.rating;
|
|
27
28
|
if (data.ratingComment !== void 0) this.ratingComment = data.ratingComment;
|
|
28
|
-
if (data.autoCloseAt !== void 0) this.autoCloseAt = data.autoCloseAt;
|
|
29
29
|
if (data.scheduleDate !== void 0) this.scheduleDate = data.scheduleDate;
|
|
30
30
|
this.createdAt = data.createdAt;
|
|
31
31
|
this.updatedAt = data.updatedAt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ticket.js","names":["validate"],"sources":["../../.generated/models/ticket.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateTicket as validate } from \"../validate.js\";\nimport { ticketSchema, type TicketSchema } from \"../schemas/ticket.js\";\n\n/**\n * Data type for Ticket constructor - exported for backwards compatibility\n */\nexport type TicketData = TicketSchema;\n\n/**\n * A ticket is a request from a user.\n */\nexport interface Ticket extends TicketSchema {}\nexport class Ticket extends Entity {\n declare schema: typeof ticketSchema;\n declare validator: typeof validate;\n\n constructor(data: TicketSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.type !== undefined) this.type = data.type;\n if (data.number !== undefined) this.number = data.number;\n if (data.issueId !== undefined) this.issueId = data.issueId;\n if (data.parentAutomationId !== undefined)\n this.parentAutomationId = data.parentAutomationId;\n this.conversation = data.conversation;\n if (data.subject !== undefined) this.subject = data.subject;\n this.openedBy = data.openedBy;\n this.requester = data.requester;\n this.assignedTo = data.assignedTo;\n if (data.notify !== undefined) this.notify = data.notify;\n if (data.collaborators !== undefined)\n this.collaborators = data.collaborators;\n if (data.location !== undefined) this.location = data.location;\n this.status = data.status;\n this.priority = data.priority;\n if (data.priorityRank !== undefined) this.priorityRank = data.priorityRank;\n this.tags = data.tags;\n if (data.rating !== undefined) this.rating = data.rating;\n if (data.ratingComment !== undefined)\n this.ratingComment = data.ratingComment;\n if (data.
|
|
1
|
+
{"version":3,"file":"ticket.js","names":["validate"],"sources":["../../.generated/models/ticket.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateTicket as validate } from \"../validate.js\";\nimport { ticketSchema, type TicketSchema } from \"../schemas/ticket.js\";\n\n/**\n * Data type for Ticket constructor - exported for backwards compatibility\n */\nexport type TicketData = TicketSchema;\n\n/**\n * A ticket is a request from a user.\n */\nexport interface Ticket extends TicketSchema {}\nexport class Ticket extends Entity {\n declare schema: typeof ticketSchema;\n declare validator: typeof validate;\n\n constructor(data: TicketSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.type !== undefined) this.type = data.type;\n if (data.number !== undefined) this.number = data.number;\n if (data.issueId !== undefined) this.issueId = data.issueId;\n if (data.parentAutomationId !== undefined)\n this.parentAutomationId = data.parentAutomationId;\n this.conversation = data.conversation;\n if (data.subject !== undefined) this.subject = data.subject;\n this.openedBy = data.openedBy;\n this.requester = data.requester;\n this.assignedTo = data.assignedTo;\n if (data.notify !== undefined) this.notify = data.notify;\n if (data.collaborators !== undefined)\n this.collaborators = data.collaborators;\n if (data.location !== undefined) this.location = data.location;\n this.status = data.status;\n this.priority = data.priority;\n if (data.priorityRank !== undefined) this.priorityRank = data.priorityRank;\n if (data.reopenCount !== undefined) this.reopenCount = data.reopenCount;\n this.tags = data.tags;\n if (data.rating !== undefined) this.rating = data.rating;\n if (data.ratingComment !== undefined)\n this.ratingComment = data.ratingComment;\n if (data.scheduleDate !== undefined) this.scheduleDate = data.scheduleDate;\n this.createdAt = data.createdAt;\n this.updatedAt = data.updatedAt;\n if (data.solvedAt !== undefined) this.solvedAt = data.solvedAt;\n if (data.lastMessageAt !== undefined)\n this.lastMessageAt = data.lastMessageAt;\n if (data.closedAt !== undefined) this.closedAt = data.closedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n}\n\nObject.defineProperty(Ticket.prototype, \"schema\", {\n value: ticketSchema,\n});\n\nObject.defineProperty(Ticket.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAeA,IAAa,SAAb,cAA4B,OAAO;CAIjC,YAAY,MAAoB;EAC9B,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,uBAAuB,KAAA,GAC9B,KAAK,qBAAqB,KAAK;EACjC,KAAK,eAAe,KAAK;EACzB,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,KAAK,WAAW,KAAK;EACrB,KAAK,YAAY,KAAK;EACtB,KAAK,aAAa,KAAK;EACvB,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,kBAAkB,KAAA,GACzB,KAAK,gBAAgB,KAAK;EAC5B,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,KAAK,SAAS,KAAK;EACnB,KAAK,WAAW,KAAK;EACrB,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,kBAAkB,KAAA,GACzB,KAAK,gBAAgB,KAAK;EAC5B,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,KAAK,YAAY,KAAK;EACtB,KAAK,YAAY,KAAK;EACtB,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,kBAAkB,KAAA,GACzB,KAAK,gBAAgB,KAAK;EAC5B,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;CAC1D;AACF;AAEA,OAAO,eAAe,OAAO,WAAW,UAAU,EAChD,OAAO,aACT,CAAC;AAED,OAAO,eAAe,OAAO,WAAW,aAAa,EACnD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
|
|
@@ -150,6 +150,12 @@ export declare const organizationSchema: {
|
|
|
150
150
|
readonly type: readonly ["string", "integer"];
|
|
151
151
|
readonly default: 1;
|
|
152
152
|
};
|
|
153
|
+
readonly autoCloseAfterMinutes: {
|
|
154
|
+
readonly type: "integer";
|
|
155
|
+
readonly description: "Minutes a solved Ticket waits before it is automatically closed. Always on; read when the close job is scheduled.";
|
|
156
|
+
readonly default: 10080;
|
|
157
|
+
readonly minimum: 5;
|
|
158
|
+
};
|
|
153
159
|
};
|
|
154
160
|
};
|
|
155
161
|
readonly departments: {
|
|
@@ -114,10 +114,18 @@ const organizationSchema = {
|
|
|
114
114
|
properties: {
|
|
115
115
|
tickets: {
|
|
116
116
|
type: "object",
|
|
117
|
-
properties: {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
117
|
+
properties: {
|
|
118
|
+
nextTicketNumber: {
|
|
119
|
+
type: ["string", "integer"],
|
|
120
|
+
default: 1
|
|
121
|
+
},
|
|
122
|
+
autoCloseAfterMinutes: {
|
|
123
|
+
type: "integer",
|
|
124
|
+
description: "Minutes a solved Ticket waits before it is automatically closed. Always on; read when the close job is scheduled.",
|
|
125
|
+
default: 10080,
|
|
126
|
+
minimum: 5
|
|
127
|
+
}
|
|
128
|
+
}
|
|
121
129
|
},
|
|
122
130
|
departments: {
|
|
123
131
|
type: "object",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.js","names":[],"sources":["../../.generated/schemas/organization.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const organizationSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"organization.json\",\n title: \"Organization\",\n type: \"object\",\n description:\n \"An organization is a group or entity that subscribes to Kohost software.\",\n required: [\"id\", \"type\", \"accountNumber\", \"name\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n type: {\n type: \"string\",\n default: \"organization\",\n enum: [\"organization\"],\n },\n accountNumber: {\n type: [\"number\", \"null\"],\n },\n name: {\n type: \"string\",\n },\n smsNumber: {\n type: \"string\",\n },\n properties: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n appManifest: {\n type: \"object\",\n\n properties: {\n name: {\n type: \"string\",\n },\n short_name: {\n type: \"string\",\n },\n scope: {\n type: \"string\",\n },\n start_url: {\n type: \"string\",\n },\n themeColor: {\n type: \"string\",\n },\n backgroundColor: {\n type: \"string\",\n },\n display: {\n type: \"string\",\n enum: [\"fullscreen\", \"standalone\", \"minimal-ui\", \"browser\"],\n default: \"fullscreen\",\n },\n orientation: {\n type: \"string\",\n enum: [\"portrait\", \"landscape\"],\n default: \"portrait\",\n },\n splash: {\n type: \"object\",\n properties: {\n src: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n },\n sizes: {\n type: \"string\",\n },\n },\n },\n icons: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n src: {\n type: \"string\",\n },\n sizes: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n },\n },\n },\n },\n logo: {\n type: \"object\",\n properties: {\n src: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n },\n sizes: {\n type: \"string\",\n },\n },\n },\n },\n default: {\n name: \"Kohost\",\n short_name: \"Kohost\",\n start_url: \"/\",\n scope: \"/\",\n display: \"fullscreen\",\n orientation: \"portrait\",\n theme_color: \"#1d1f22\",\n background_color: \"#1d1f22\",\n icons: [\n {\n src: \"https://images.kohost.io/cdn-cgi/imagedelivery/vcVX2aBwdFSYr66spcFKaA/9c85047f-ccba-4b1c-3070-5463fbe93b00/w=512\",\n sizes: \"512x512\",\n type: \"image/png\",\n },\n ],\n splash: {\n src: \"https://images.kohost.io/cdn-cgi/imagedelivery/vcVX2aBwdFSYr66spcFKaA/034fb112-5326-4d37-373e-d1cc2a4d0400/w=1500\",\n sizes: \"1500x800\",\n type: \"image/jpg\",\n },\n logo: {\n src: \"https://images.kohost.io/cdn-cgi/imagedelivery/vcVX2aBwdFSYr66spcFKaA/1e54c54d-3bac-4745-f46f-c2f98036af00/h=75\",\n sizes: \"300x75\",\n type: \"image/png\",\n },\n },\n },\n features: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n Concierge: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n tickets: {\n type: \"object\",\n properties: {\n nextTicketNumber: {\n type: [\"string\", \"integer\"],\n default: 1,\n },\n },\n },\n departments: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n order: {\n type: \"array\",\n description:\n \"Org-wide curated Department ID order for the Concierge settings UI. The `Unassigned` and `System` pseudo-groups are pinned at the bottom by the UI and have no entries here.\",\n items: {\n type: \"string\",\n },\n },\n },\n },\n issues: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n order: {\n type: \"object\",\n description:\n \"Org-wide curated Issue ordering for the Concierge settings UI, mapping each Department ID to its ordered Issue IDs.\",\n additionalProperties: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n },\n },\n },\n },\n },\n SOS: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n types: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n order: {\n type: \"array\",\n description:\n \"Org-wide curated SOS Type ID order. Each Property renders its subset of \" +\n \"SOS Types in this order; org-wide and per-property-selected types share one \" +\n \"order. IDs for deleted SOS Types are ignored on read; SOS Types not yet listed \" +\n \"sort to the end alphabetically.\",\n items: { type: \"string\" },\n },\n },\n },\n },\n },\n },\n },\n credentials: {\n type: \"object\",\n additionalProperties: true,\n properties: {\n webhookToken: { type: \"string\" },\n },\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type OrganizationSchema = FromSchema<\n typeof organizationSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":";AAGA,MAAa,qBAAqB;CAChC,SAAS;CACT,KAAK;CACL,OAAO;CACP,MAAM;CACN,aACE;CACF,UAAU;EAAC;EAAM;EAAQ;EAAiB;CAAM;CAChD,sBAAsB;CACtB,YAAY;EACV,IAAI,EACF,MAAM,mCACR;EACA,MAAM;GACJ,MAAM;GACN,SAAS;GACT,MAAM,CAAC,cAAc;EACvB;EACA,eAAe,EACb,MAAM,CAAC,UAAU,MAAM,EACzB;EACA,MAAM,EACJ,MAAM,SACR;EACA,WAAW,EACT,MAAM,SACR;EACA,YAAY;GACV,MAAM;GACN,OAAO,EACL,MAAM,SACR;EACF;EACA,aAAa;GACX,MAAM;GAEN,YAAY;IACV,MAAM,EACJ,MAAM,SACR;IACA,YAAY,EACV,MAAM,SACR;IACA,OAAO,EACL,MAAM,SACR;IACA,WAAW,EACT,MAAM,SACR;IACA,YAAY,EACV,MAAM,SACR;IACA,iBAAiB,EACf,MAAM,SACR;IACA,SAAS;KACP,MAAM;KACN,MAAM;MAAC;MAAc;MAAc;MAAc;KAAS;KAC1D,SAAS;IACX;IACA,aAAa;KACX,MAAM;KACN,MAAM,CAAC,YAAY,WAAW;KAC9B,SAAS;IACX;IACA,QAAQ;KACN,MAAM;KACN,YAAY;MACV,KAAK,EACH,MAAM,SACR;MACA,MAAM,EACJ,MAAM,SACR;MACA,OAAO,EACL,MAAM,SACR;KACF;IACF;IACA,OAAO;KACL,MAAM;KACN,OAAO;MACL,MAAM;MACN,YAAY;OACV,KAAK,EACH,MAAM,SACR;OACA,OAAO,EACL,MAAM,SACR;OACA,MAAM,EACJ,MAAM,SACR;MACF;KACF;IACF;IACA,MAAM;KACJ,MAAM;KACN,YAAY;MACV,KAAK,EACH,MAAM,SACR;MACA,MAAM,EACJ,MAAM,SACR;MACA,OAAO,EACL,MAAM,SACR;KACF;IACF;GACF;GACA,SAAS;IACP,MAAM;IACN,YAAY;IACZ,WAAW;IACX,OAAO;IACP,SAAS;IACT,aAAa;IACb,aAAa;IACb,kBAAkB;IAClB,OAAO,CACL;KACE,KAAK;KACL,OAAO;KACP,MAAM;IACR,CACF;IACA,QAAQ;KACN,KAAK;KACL,OAAO;KACP,MAAM;IACR;IACA,MAAM;KACJ,KAAK;KACL,OAAO;KACP,MAAM;IACR;GACF;EACF;EACA,UAAU;GACR,MAAM;GACN,sBAAsB;GACtB,YAAY;IACV,WAAW;KACT,MAAM;KACN,sBAAsB;KACtB,YAAY;MACV,SAAS;OACP,MAAM;OACN,YAAY,
|
|
1
|
+
{"version":3,"file":"organization.js","names":[],"sources":["../../.generated/schemas/organization.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const organizationSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"organization.json\",\n title: \"Organization\",\n type: \"object\",\n description:\n \"An organization is a group or entity that subscribes to Kohost software.\",\n required: [\"id\", \"type\", \"accountNumber\", \"name\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n type: {\n type: \"string\",\n default: \"organization\",\n enum: [\"organization\"],\n },\n accountNumber: {\n type: [\"number\", \"null\"],\n },\n name: {\n type: \"string\",\n },\n smsNumber: {\n type: \"string\",\n },\n properties: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n appManifest: {\n type: \"object\",\n\n properties: {\n name: {\n type: \"string\",\n },\n short_name: {\n type: \"string\",\n },\n scope: {\n type: \"string\",\n },\n start_url: {\n type: \"string\",\n },\n themeColor: {\n type: \"string\",\n },\n backgroundColor: {\n type: \"string\",\n },\n display: {\n type: \"string\",\n enum: [\"fullscreen\", \"standalone\", \"minimal-ui\", \"browser\"],\n default: \"fullscreen\",\n },\n orientation: {\n type: \"string\",\n enum: [\"portrait\", \"landscape\"],\n default: \"portrait\",\n },\n splash: {\n type: \"object\",\n properties: {\n src: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n },\n sizes: {\n type: \"string\",\n },\n },\n },\n icons: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n src: {\n type: \"string\",\n },\n sizes: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n },\n },\n },\n },\n logo: {\n type: \"object\",\n properties: {\n src: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n },\n sizes: {\n type: \"string\",\n },\n },\n },\n },\n default: {\n name: \"Kohost\",\n short_name: \"Kohost\",\n start_url: \"/\",\n scope: \"/\",\n display: \"fullscreen\",\n orientation: \"portrait\",\n theme_color: \"#1d1f22\",\n background_color: \"#1d1f22\",\n icons: [\n {\n src: \"https://images.kohost.io/cdn-cgi/imagedelivery/vcVX2aBwdFSYr66spcFKaA/9c85047f-ccba-4b1c-3070-5463fbe93b00/w=512\",\n sizes: \"512x512\",\n type: \"image/png\",\n },\n ],\n splash: {\n src: \"https://images.kohost.io/cdn-cgi/imagedelivery/vcVX2aBwdFSYr66spcFKaA/034fb112-5326-4d37-373e-d1cc2a4d0400/w=1500\",\n sizes: \"1500x800\",\n type: \"image/jpg\",\n },\n logo: {\n src: \"https://images.kohost.io/cdn-cgi/imagedelivery/vcVX2aBwdFSYr66spcFKaA/1e54c54d-3bac-4745-f46f-c2f98036af00/h=75\",\n sizes: \"300x75\",\n type: \"image/png\",\n },\n },\n },\n features: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n Concierge: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n tickets: {\n type: \"object\",\n properties: {\n nextTicketNumber: {\n type: [\"string\", \"integer\"],\n default: 1,\n },\n autoCloseAfterMinutes: {\n type: \"integer\",\n description:\n \"Minutes a solved Ticket waits before it is automatically closed. Always on; read when the close job is scheduled.\",\n default: 10080,\n minimum: 5,\n },\n },\n },\n departments: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n order: {\n type: \"array\",\n description:\n \"Org-wide curated Department ID order for the Concierge settings UI. The `Unassigned` and `System` pseudo-groups are pinned at the bottom by the UI and have no entries here.\",\n items: {\n type: \"string\",\n },\n },\n },\n },\n issues: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n order: {\n type: \"object\",\n description:\n \"Org-wide curated Issue ordering for the Concierge settings UI, mapping each Department ID to its ordered Issue IDs.\",\n additionalProperties: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n },\n },\n },\n },\n },\n SOS: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n types: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n order: {\n type: \"array\",\n description:\n \"Org-wide curated SOS Type ID order. Each Property renders its subset of \" +\n \"SOS Types in this order; org-wide and per-property-selected types share one \" +\n \"order. IDs for deleted SOS Types are ignored on read; SOS Types not yet listed \" +\n \"sort to the end alphabetically.\",\n items: { type: \"string\" },\n },\n },\n },\n },\n },\n },\n },\n credentials: {\n type: \"object\",\n additionalProperties: true,\n properties: {\n webhookToken: { type: \"string\" },\n },\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type OrganizationSchema = FromSchema<\n typeof organizationSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":";AAGA,MAAa,qBAAqB;CAChC,SAAS;CACT,KAAK;CACL,OAAO;CACP,MAAM;CACN,aACE;CACF,UAAU;EAAC;EAAM;EAAQ;EAAiB;CAAM;CAChD,sBAAsB;CACtB,YAAY;EACV,IAAI,EACF,MAAM,mCACR;EACA,MAAM;GACJ,MAAM;GACN,SAAS;GACT,MAAM,CAAC,cAAc;EACvB;EACA,eAAe,EACb,MAAM,CAAC,UAAU,MAAM,EACzB;EACA,MAAM,EACJ,MAAM,SACR;EACA,WAAW,EACT,MAAM,SACR;EACA,YAAY;GACV,MAAM;GACN,OAAO,EACL,MAAM,SACR;EACF;EACA,aAAa;GACX,MAAM;GAEN,YAAY;IACV,MAAM,EACJ,MAAM,SACR;IACA,YAAY,EACV,MAAM,SACR;IACA,OAAO,EACL,MAAM,SACR;IACA,WAAW,EACT,MAAM,SACR;IACA,YAAY,EACV,MAAM,SACR;IACA,iBAAiB,EACf,MAAM,SACR;IACA,SAAS;KACP,MAAM;KACN,MAAM;MAAC;MAAc;MAAc;MAAc;KAAS;KAC1D,SAAS;IACX;IACA,aAAa;KACX,MAAM;KACN,MAAM,CAAC,YAAY,WAAW;KAC9B,SAAS;IACX;IACA,QAAQ;KACN,MAAM;KACN,YAAY;MACV,KAAK,EACH,MAAM,SACR;MACA,MAAM,EACJ,MAAM,SACR;MACA,OAAO,EACL,MAAM,SACR;KACF;IACF;IACA,OAAO;KACL,MAAM;KACN,OAAO;MACL,MAAM;MACN,YAAY;OACV,KAAK,EACH,MAAM,SACR;OACA,OAAO,EACL,MAAM,SACR;OACA,MAAM,EACJ,MAAM,SACR;MACF;KACF;IACF;IACA,MAAM;KACJ,MAAM;KACN,YAAY;MACV,KAAK,EACH,MAAM,SACR;MACA,MAAM,EACJ,MAAM,SACR;MACA,OAAO,EACL,MAAM,SACR;KACF;IACF;GACF;GACA,SAAS;IACP,MAAM;IACN,YAAY;IACZ,WAAW;IACX,OAAO;IACP,SAAS;IACT,aAAa;IACb,aAAa;IACb,kBAAkB;IAClB,OAAO,CACL;KACE,KAAK;KACL,OAAO;KACP,MAAM;IACR,CACF;IACA,QAAQ;KACN,KAAK;KACL,OAAO;KACP,MAAM;IACR;IACA,MAAM;KACJ,KAAK;KACL,OAAO;KACP,MAAM;IACR;GACF;EACF;EACA,UAAU;GACR,MAAM;GACN,sBAAsB;GACtB,YAAY;IACV,WAAW;KACT,MAAM;KACN,sBAAsB;KACtB,YAAY;MACV,SAAS;OACP,MAAM;OACN,YAAY;QACV,kBAAkB;SAChB,MAAM,CAAC,UAAU,SAAS;SAC1B,SAAS;QACX;QACA,uBAAuB;SACrB,MAAM;SACN,aACE;SACF,SAAS;SACT,SAAS;QACX;OACF;MACF;MACA,aAAa;OACX,MAAM;OACN,sBAAsB;OACtB,YAAY,EACV,OAAO;QACL,MAAM;QACN,aACE;QACF,OAAO,EACL,MAAM,SACR;OACF,EACF;MACF;MACA,QAAQ;OACN,MAAM;OACN,sBAAsB;OACtB,YAAY,EACV,OAAO;QACL,MAAM;QACN,aACE;QACF,sBAAsB;SACpB,MAAM;SACN,OAAO,EACL,MAAM,SACR;QACF;OACF,EACF;MACF;KACF;IACF;IACA,KAAK;KACH,MAAM;KACN,sBAAsB;KACtB,YAAY,EACV,OAAO;MACL,MAAM;MACN,sBAAsB;MACtB,YAAY,EACV,OAAO;OACL,MAAM;OACN,aACE;OAIF,OAAO,EAAE,MAAM,SAAS;MAC1B,EACF;KACF,EACF;IACF;GACF;EACF;EACA,aAAa;GACX,MAAM;GACN,sBAAsB;GACtB,YAAY,EACV,cAAc,EAAE,MAAM,SAAS,EACjC;EACF;EACA,WAAW,EACT,MAAM,qCACR;EACA,WAAW,EACT,MAAM,qCACR;EACA,WAAW,EACT,MAAM,qCACR;CACF;AACF"}
|
package/dist/schemas/ticket.d.ts
CHANGED
|
@@ -129,6 +129,24 @@ export declare const ticketSchema: {
|
|
|
129
129
|
};
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
|
+
readonly statusChanged: {
|
|
133
|
+
readonly type: "object";
|
|
134
|
+
readonly additionalProperties: false;
|
|
135
|
+
readonly required: readonly ["from", "to"];
|
|
136
|
+
readonly description: "Structured status transition for `statusChanged` entries. Lets consumers detect reopens (from solved/closed to open) without parsing the body text.";
|
|
137
|
+
readonly properties: {
|
|
138
|
+
readonly from: {
|
|
139
|
+
readonly type: "string";
|
|
140
|
+
readonly enum: readonly ["open", "pending", "solved", "closed"];
|
|
141
|
+
readonly description: "The status the ticket transitioned from.";
|
|
142
|
+
};
|
|
143
|
+
readonly to: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
readonly enum: readonly ["open", "pending", "solved", "closed"];
|
|
146
|
+
readonly description: "The status the ticket transitioned to.";
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
132
150
|
readonly readBy: {
|
|
133
151
|
readonly type: "array";
|
|
134
152
|
readonly default: readonly [];
|
|
@@ -305,6 +323,12 @@ export declare const ticketSchema: {
|
|
|
305
323
|
readonly maximum: 4;
|
|
306
324
|
readonly description: "Server-derived numeric rank of priority (low=1, normal=2, high=3, critical=4). Denormalized to support priority sorting; never set by clients.";
|
|
307
325
|
};
|
|
326
|
+
readonly reopenCount: {
|
|
327
|
+
readonly type: "integer";
|
|
328
|
+
readonly minimum: 0;
|
|
329
|
+
readonly default: 0;
|
|
330
|
+
readonly description: "Server-derived count of transitions back to \"open\" that followed a solve/close. reopenCount > 0 answers \"was this ticket ever reopened?\" in O(1); maintained at the repository layer across every status-write path. Never set by clients.";
|
|
331
|
+
};
|
|
308
332
|
readonly tags: {
|
|
309
333
|
readonly type: "array";
|
|
310
334
|
readonly default: readonly [];
|
|
@@ -320,9 +344,6 @@ export declare const ticketSchema: {
|
|
|
320
344
|
readonly ratingComment: {
|
|
321
345
|
readonly type: "string";
|
|
322
346
|
};
|
|
323
|
-
readonly autoCloseAt: {
|
|
324
|
-
readonly $ref: "definitions.json#/definitions/date";
|
|
325
|
-
};
|
|
326
347
|
readonly scheduleDate: {
|
|
327
348
|
readonly $ref: "definitions.json#/definitions/date";
|
|
328
349
|
};
|
package/dist/schemas/ticket.js
CHANGED
|
@@ -173,6 +173,34 @@ const ticketSchema = {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
|
+
statusChanged: {
|
|
177
|
+
type: "object",
|
|
178
|
+
additionalProperties: false,
|
|
179
|
+
required: ["from", "to"],
|
|
180
|
+
description: "Structured status transition for `statusChanged` entries. Lets consumers detect reopens (from solved/closed to open) without parsing the body text.",
|
|
181
|
+
properties: {
|
|
182
|
+
from: {
|
|
183
|
+
type: "string",
|
|
184
|
+
enum: [
|
|
185
|
+
"open",
|
|
186
|
+
"pending",
|
|
187
|
+
"solved",
|
|
188
|
+
"closed"
|
|
189
|
+
],
|
|
190
|
+
description: "The status the ticket transitioned from."
|
|
191
|
+
},
|
|
192
|
+
to: {
|
|
193
|
+
type: "string",
|
|
194
|
+
enum: [
|
|
195
|
+
"open",
|
|
196
|
+
"pending",
|
|
197
|
+
"solved",
|
|
198
|
+
"closed"
|
|
199
|
+
],
|
|
200
|
+
description: "The status the ticket transitioned to."
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
176
204
|
readBy: {
|
|
177
205
|
type: "array",
|
|
178
206
|
default: [],
|
|
@@ -362,6 +390,12 @@ const ticketSchema = {
|
|
|
362
390
|
maximum: 4,
|
|
363
391
|
description: "Server-derived numeric rank of priority (low=1, normal=2, high=3, critical=4). Denormalized to support priority sorting; never set by clients."
|
|
364
392
|
},
|
|
393
|
+
reopenCount: {
|
|
394
|
+
type: "integer",
|
|
395
|
+
minimum: 0,
|
|
396
|
+
default: 0,
|
|
397
|
+
description: "Server-derived count of transitions back to \"open\" that followed a solve/close. reopenCount > 0 answers \"was this ticket ever reopened?\" in O(1); maintained at the repository layer across every status-write path. Never set by clients."
|
|
398
|
+
},
|
|
365
399
|
tags: {
|
|
366
400
|
type: "array",
|
|
367
401
|
default: [],
|
|
@@ -373,7 +407,6 @@ const ticketSchema = {
|
|
|
373
407
|
maximum: 5
|
|
374
408
|
},
|
|
375
409
|
ratingComment: { type: "string" },
|
|
376
|
-
autoCloseAt: { $ref: "definitions.json#/definitions/date" },
|
|
377
410
|
scheduleDate: { $ref: "definitions.json#/definitions/date" },
|
|
378
411
|
createdAt: { $ref: "definitions.json#/definitions/date" },
|
|
379
412
|
updatedAt: { $ref: "definitions.json#/definitions/date" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ticket.js","names":[],"sources":["../../.generated/schemas/ticket.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\nimport type { mediaFileSchema } from \"./mediaFile\";\n\nexport const ticketSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"ticket.json\",\n title: \"Ticket\",\n description: \"A ticket is a request from a user.\",\n type: \"object\",\n required: [\n \"id\",\n \"conversation\",\n \"requester\",\n \"openedBy\",\n \"assignedTo\",\n \"status\",\n \"priority\",\n \"tags\",\n \"createdAt\",\n \"updatedAt\",\n ],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n propertyId: {\n type: \"string\",\n description: \"ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.\",\n },\n type: {\n type: \"string\",\n enum: [\"ticket\"],\n default: \"ticket\",\n },\n number: {\n type: \"string\",\n description: \"The number of the ticket.\",\n },\n issueId: {\n type: \"string\",\n description: \"The ID of the issue that this ticket is associated with.\",\n },\n parentAutomationId: {\n type: \"string\",\n description: \"The ID of the automation that created this ticket.\",\n },\n conversation: {\n type: \"array\",\n default: [],\n description: \"The conversation history of the ticket.\",\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"timestamp\", \"body\", \"author\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the message.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\n \"message\",\n \"opened\",\n \"assigned\",\n \"rated\",\n \"scheduled\",\n \"collaboratorAdded\",\n \"collaboratorRemoved\",\n \"statusChanged\",\n \"priorityChanged\",\n \"scheduleDateChanged\",\n \"locationChanged\",\n \"nudged\",\n ],\n default: \"message\",\n description: \"The discriminator of the message.\",\n },\n isInternal: {\n type: \"boolean\",\n description: \"Whether the message is internal to the assignedTo and collaborators. Internal messages are not visible to the requester.\",\n default: false,\n },\n author: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"name\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the author of the message.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\"],\n description: \"The discriminator of the author of the message.\",\n },\n name: {\n type: \"string\",\n description: \"The name of the author of the message.\",\n },\n },\n },\n timestamp: {\n $ref: \"definitions.json#/definitions/date\",\n description: \"The ISO 8601 timestamp of the message.\",\n },\n body: {\n type: \"string\",\n description: \"The body of the message.\",\n },\n parsedBody: {\n type: \"object\",\n additionalProperties: false,\n description:\n \"An object containing the parsed body of the message for mentions.\",\n properties: {\n text: {\n type: \"string\",\n description: \"The mention text.\",\n },\n mentions: {\n type: \"array\",\n default: [],\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\n \"discriminator\",\n \"id\",\n \"index\",\n \"length\",\n \"originalText\",\n ],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the mention.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\"],\n description:\n \"The discriminator of entity that was mentioned.\",\n },\n index: {\n type: \"integer\",\n description: \"The index of the mention in the message.\",\n },\n length: {\n type: \"integer\",\n description: \"The length of the mention in the message.\",\n },\n originalText: {\n type: \"string\",\n description: \"The original text of the mention.\",\n },\n },\n },\n },\n },\n },\n\n readBy: {\n type: \"array\",\n default: [],\n items: {\n type: \"string\",\n },\n description: \"The IDs of the users who have read the message.\",\n },\n media: {\n anyOf: [{ $ref: \"mediaFile.json\" }, { type: \"null\" }],\n description: \"The media file associated with the message.\",\n },\n },\n },\n },\n subject: {\n type: \"string\",\n description: \"The subject of the ticket.\",\n },\n openedBy: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"name\"],\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"system\"],\n },\n name: {\n type: \"string\",\n },\n },\n },\n requester: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"name\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the requester.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\", \"device\"],\n description: \"The discriminator of the requester.\",\n },\n name: {\n type: \"string\",\n description: \"The name of the requester.\",\n },\n photo: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description: \"The photo of the requester.\",\n },\n },\n },\n assignedTo: {\n type: [\"object\", \"null\"],\n default: null,\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"name\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the assigned to.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\"],\n description: \"The discriminator of the assigned to.\",\n },\n name: {\n type: \"string\",\n description: \"The name of the assigned to.\",\n },\n photo: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description: \"The photo of the assigned to.\",\n },\n },\n },\n notify: {\n type: \"array\",\n description:\n \"A list of entities to notify when this ticket is created or resolved.\",\n default: [],\n items: {\n type: \"object\",\n required: [\"id\", \"discriminator\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the entity to notify.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\"],\n },\n },\n },\n },\n collaborators: {\n type: \"array\",\n default: [],\n description: \"A list of entities who will collaborate on this ticket.\",\n items: {\n type: \"object\",\n required: [\"id\", \"name\", \"discriminator\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n name: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\"],\n },\n },\n },\n },\n location: {\n type: \"object\",\n required: [\"discriminator\", \"name\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"space\", \"property\", \"customText\"],\n },\n name: {\n type: \"string\",\n },\n },\n },\n status: {\n type: \"string\",\n enum: [\"open\", \"pending\", \"solved\", \"closed\"],\n default: \"open\",\n },\n priority: {\n type: \"string\",\n enum: [\"low\", \"normal\", \"high\", \"critical\"],\n default: \"normal\",\n },\n priorityRank: {\n type: \"integer\",\n minimum: 1,\n maximum: 4,\n description:\n \"Server-derived numeric rank of priority (low=1, normal=2, high=3, critical=4). Denormalized to support priority sorting; never set by clients.\",\n },\n tags: {\n type: \"array\",\n default: [],\n items: {\n type: \"string\",\n },\n },\n rating: {\n type: \"number\",\n minimum: 0,\n maximum: 5,\n },\n ratingComment: {\n type: \"string\",\n },\n autoCloseAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n scheduleDate: {\n $ref: \"definitions.json#/definitions/date\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n solvedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n lastMessageAt: {\n $ref: \"definitions.json#/definitions/date\",\n description:\n \"Server-derived timestamp of the latest conversation message; initialized to createdAt when no message exists. Denormalized to support recency sorting; never set by clients.\",\n },\n closedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type TicketSchema = FromSchema<\n typeof ticketSchema,\n {\n references: [typeof defs, typeof mediaFileSchema];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":";AAIA,MAAa,eAAe;CAC1B,SAAS;CACT,KAAK;CACL,OAAO;CACP,aAAa;CACb,MAAM;CACN,UAAU;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,sBAAsB;CACtB,YAAY;EACV,IAAI,EACF,MAAM,mCACR;EACA,YAAY;GACV,MAAM;GACN,aAAa;EACf;EACA,MAAM;GACJ,MAAM;GACN,MAAM,CAAC,QAAQ;GACf,SAAS;EACX;EACA,QAAQ;GACN,MAAM;GACN,aAAa;EACf;EACA,SAAS;GACP,MAAM;GACN,aAAa;EACf;EACA,oBAAoB;GAClB,MAAM;GACN,aAAa;EACf;EACA,cAAc;GACZ,MAAM;GACN,SAAS,CAAC;GACV,aAAa;GACb,OAAO;IACL,MAAM;IACN,sBAAsB;IACtB,UAAU;KAAC;KAAM;KAAiB;KAAa;KAAQ;IAAQ;IAC/D,YAAY;KACV,IAAI;MACF,MAAM;MACN,aAAa;KACf;KACA,eAAe;MACb,MAAM;MACN,MAAM;OACJ;OACA;OACA;OACA;OACA;OACA;OACA;OACA;OACA;OACA;OACA;OACA;MACF;MACA,SAAS;MACT,aAAa;KACf;KACA,YAAY;MACV,MAAM;MACN,aAAa;MACb,SAAS;KACX;KACA,QAAQ;MACN,MAAM;MACN,sBAAsB;MACtB,UAAU;OAAC;OAAM;OAAiB;MAAM;MACxC,YAAY;OACV,IAAI;QACF,MAAM;QACN,aAAa;OACf;OACA,eAAe;QACb,MAAM;QACN,MAAM;SAAC;SAAQ;SAAU;QAAQ;QACjC,aAAa;OACf;OACA,MAAM;QACJ,MAAM;QACN,aAAa;OACf;MACF;KACF;KACA,WAAW;MACT,MAAM;MACN,aAAa;KACf;KACA,MAAM;MACJ,MAAM;MACN,aAAa;KACf;KACA,YAAY;MACV,MAAM;MACN,sBAAsB;MACtB,aACE;MACF,YAAY;OACV,MAAM;QACJ,MAAM;QACN,aAAa;OACf;OACA,UAAU;QACR,MAAM;QACN,SAAS,CAAC;QACV,OAAO;SACL,MAAM;SACN,sBAAsB;SACtB,UAAU;UACR;UACA;UACA;UACA;UACA;SACF;SACA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"}
|
|
1
|
+
{"version":3,"file":"ticket.js","names":[],"sources":["../../.generated/schemas/ticket.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\nimport type { mediaFileSchema } from \"./mediaFile\";\n\nexport const ticketSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"ticket.json\",\n title: \"Ticket\",\n description: \"A ticket is a request from a user.\",\n type: \"object\",\n required: [\n \"id\",\n \"conversation\",\n \"requester\",\n \"openedBy\",\n \"assignedTo\",\n \"status\",\n \"priority\",\n \"tags\",\n \"createdAt\",\n \"updatedAt\",\n ],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n propertyId: {\n type: \"string\",\n description: \"ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.\",\n },\n type: {\n type: \"string\",\n enum: [\"ticket\"],\n default: \"ticket\",\n },\n number: {\n type: \"string\",\n description: \"The number of the ticket.\",\n },\n issueId: {\n type: \"string\",\n description: \"The ID of the issue that this ticket is associated with.\",\n },\n parentAutomationId: {\n type: \"string\",\n description: \"The ID of the automation that created this ticket.\",\n },\n conversation: {\n type: \"array\",\n default: [],\n description: \"The conversation history of the ticket.\",\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"timestamp\", \"body\", \"author\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the message.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\n \"message\",\n \"opened\",\n \"assigned\",\n \"rated\",\n \"scheduled\",\n \"collaboratorAdded\",\n \"collaboratorRemoved\",\n \"statusChanged\",\n \"priorityChanged\",\n \"scheduleDateChanged\",\n \"locationChanged\",\n \"nudged\",\n ],\n default: \"message\",\n description: \"The discriminator of the message.\",\n },\n isInternal: {\n type: \"boolean\",\n description: \"Whether the message is internal to the assignedTo and collaborators. Internal messages are not visible to the requester.\",\n default: false,\n },\n author: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"name\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the author of the message.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\"],\n description: \"The discriminator of the author of the message.\",\n },\n name: {\n type: \"string\",\n description: \"The name of the author of the message.\",\n },\n },\n },\n timestamp: {\n $ref: \"definitions.json#/definitions/date\",\n description: \"The ISO 8601 timestamp of the message.\",\n },\n body: {\n type: \"string\",\n description: \"The body of the message.\",\n },\n parsedBody: {\n type: \"object\",\n additionalProperties: false,\n description:\n \"An object containing the parsed body of the message for mentions.\",\n properties: {\n text: {\n type: \"string\",\n description: \"The mention text.\",\n },\n mentions: {\n type: \"array\",\n default: [],\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\n \"discriminator\",\n \"id\",\n \"index\",\n \"length\",\n \"originalText\",\n ],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the mention.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\"],\n description:\n \"The discriminator of entity that was mentioned.\",\n },\n index: {\n type: \"integer\",\n description: \"The index of the mention in the message.\",\n },\n length: {\n type: \"integer\",\n description: \"The length of the mention in the message.\",\n },\n originalText: {\n type: \"string\",\n description: \"The original text of the mention.\",\n },\n },\n },\n },\n },\n },\n statusChanged: {\n type: \"object\",\n additionalProperties: false,\n required: [\"from\", \"to\"],\n description:\n \"Structured status transition for `statusChanged` entries. Lets consumers detect reopens (from solved/closed to open) without parsing the body text.\",\n properties: {\n from: {\n type: \"string\",\n enum: [\"open\", \"pending\", \"solved\", \"closed\"],\n description: \"The status the ticket transitioned from.\",\n },\n to: {\n type: \"string\",\n enum: [\"open\", \"pending\", \"solved\", \"closed\"],\n description: \"The status the ticket transitioned to.\",\n },\n },\n },\n readBy: {\n type: \"array\",\n default: [],\n items: {\n type: \"string\",\n },\n description: \"The IDs of the users who have read the message.\",\n },\n media: {\n anyOf: [{ $ref: \"mediaFile.json\" }, { type: \"null\" }],\n description: \"The media file associated with the message.\",\n },\n },\n },\n },\n subject: {\n type: \"string\",\n description: \"The subject of the ticket.\",\n },\n openedBy: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"name\"],\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"system\"],\n },\n name: {\n type: \"string\",\n },\n },\n },\n requester: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"name\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the requester.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\", \"device\"],\n description: \"The discriminator of the requester.\",\n },\n name: {\n type: \"string\",\n description: \"The name of the requester.\",\n },\n photo: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description: \"The photo of the requester.\",\n },\n },\n },\n assignedTo: {\n type: [\"object\", \"null\"],\n default: null,\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"name\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the assigned to.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\"],\n description: \"The discriminator of the assigned to.\",\n },\n name: {\n type: \"string\",\n description: \"The name of the assigned to.\",\n },\n photo: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description: \"The photo of the assigned to.\",\n },\n },\n },\n notify: {\n type: \"array\",\n description:\n \"A list of entities to notify when this ticket is created or resolved.\",\n default: [],\n items: {\n type: \"object\",\n required: [\"id\", \"discriminator\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the entity to notify.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\"],\n },\n },\n },\n },\n collaborators: {\n type: \"array\",\n default: [],\n description: \"A list of entities who will collaborate on this ticket.\",\n items: {\n type: \"object\",\n required: [\"id\", \"name\", \"discriminator\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n name: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\"],\n },\n },\n },\n },\n location: {\n type: \"object\",\n required: [\"discriminator\", \"name\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"space\", \"property\", \"customText\"],\n },\n name: {\n type: \"string\",\n },\n },\n },\n status: {\n type: \"string\",\n enum: [\"open\", \"pending\", \"solved\", \"closed\"],\n default: \"open\",\n },\n priority: {\n type: \"string\",\n enum: [\"low\", \"normal\", \"high\", \"critical\"],\n default: \"normal\",\n },\n priorityRank: {\n type: \"integer\",\n minimum: 1,\n maximum: 4,\n description:\n \"Server-derived numeric rank of priority (low=1, normal=2, high=3, critical=4). Denormalized to support priority sorting; never set by clients.\",\n },\n reopenCount: {\n type: \"integer\",\n minimum: 0,\n default: 0,\n description:\n \"Server-derived count of transitions back to \\\"open\\\" that followed a solve/close. reopenCount > 0 answers \\\"was this ticket ever reopened?\\\" in O(1); maintained at the repository layer across every status-write path. Never set by clients.\",\n },\n tags: {\n type: \"array\",\n default: [],\n items: {\n type: \"string\",\n },\n },\n rating: {\n type: \"number\",\n minimum: 0,\n maximum: 5,\n },\n ratingComment: {\n type: \"string\",\n },\n scheduleDate: {\n $ref: \"definitions.json#/definitions/date\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n solvedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n lastMessageAt: {\n $ref: \"definitions.json#/definitions/date\",\n description:\n \"Server-derived timestamp of the latest conversation message; initialized to createdAt when no message exists. Denormalized to support recency sorting; never set by clients.\",\n },\n closedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type TicketSchema = FromSchema<\n typeof ticketSchema,\n {\n references: [typeof defs, typeof mediaFileSchema];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":";AAIA,MAAa,eAAe;CAC1B,SAAS;CACT,KAAK;CACL,OAAO;CACP,aAAa;CACb,MAAM;CACN,UAAU;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,sBAAsB;CACtB,YAAY;EACV,IAAI,EACF,MAAM,mCACR;EACA,YAAY;GACV,MAAM;GACN,aAAa;EACf;EACA,MAAM;GACJ,MAAM;GACN,MAAM,CAAC,QAAQ;GACf,SAAS;EACX;EACA,QAAQ;GACN,MAAM;GACN,aAAa;EACf;EACA,SAAS;GACP,MAAM;GACN,aAAa;EACf;EACA,oBAAoB;GAClB,MAAM;GACN,aAAa;EACf;EACA,cAAc;GACZ,MAAM;GACN,SAAS,CAAC;GACV,aAAa;GACb,OAAO;IACL,MAAM;IACN,sBAAsB;IACtB,UAAU;KAAC;KAAM;KAAiB;KAAa;KAAQ;IAAQ;IAC/D,YAAY;KACV,IAAI;MACF,MAAM;MACN,aAAa;KACf;KACA,eAAe;MACb,MAAM;MACN,MAAM;OACJ;OACA;OACA;OACA;OACA;OACA;OACA;OACA;OACA;OACA;OACA;OACA;MACF;MACA,SAAS;MACT,aAAa;KACf;KACA,YAAY;MACV,MAAM;MACN,aAAa;MACb,SAAS;KACX;KACA,QAAQ;MACN,MAAM;MACN,sBAAsB;MACtB,UAAU;OAAC;OAAM;OAAiB;MAAM;MACxC,YAAY;OACV,IAAI;QACF,MAAM;QACN,aAAa;OACf;OACA,eAAe;QACb,MAAM;QACN,MAAM;SAAC;SAAQ;SAAU;QAAQ;QACjC,aAAa;OACf;OACA,MAAM;QACJ,MAAM;QACN,aAAa;OACf;MACF;KACF;KACA,WAAW;MACT,MAAM;MACN,aAAa;KACf;KACA,MAAM;MACJ,MAAM;MACN,aAAa;KACf;KACA,YAAY;MACV,MAAM;MACN,sBAAsB;MACtB,aACE;MACF,YAAY;OACV,MAAM;QACJ,MAAM;QACN,aAAa;OACf;OACA,UAAU;QACR,MAAM;QACN,SAAS,CAAC;QACV,OAAO;SACL,MAAM;SACN,sBAAsB;SACtB,UAAU;UACR;UACA;UACA;UACA;UACA;SACF;SACA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"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface CopyIssueRoutingCommandConfig {
|
|
2
2
|
data?: Record<string, unknown> | null;
|
|
3
3
|
headers?: Record<string, string> | null;
|
|
4
4
|
query?: Record<string, unknown> | null;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface CopyIssueRoutingCommandRequestConfig {
|
|
7
7
|
method: "post";
|
|
8
8
|
url: string;
|
|
9
9
|
data: Record<string, unknown> | null;
|
|
@@ -14,14 +14,14 @@ export interface AutoCloseTicketsCommandRequestConfig {
|
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
|
-
export declare class
|
|
17
|
+
export declare class CopyIssueRoutingCommand {
|
|
18
18
|
url: string;
|
|
19
19
|
data: Record<string, unknown> | null;
|
|
20
20
|
query: Record<string, unknown> | null;
|
|
21
21
|
headers: Record<string, string> | null;
|
|
22
|
-
config:
|
|
22
|
+
config: CopyIssueRoutingCommandRequestConfig;
|
|
23
23
|
static params: readonly [];
|
|
24
24
|
static url: string;
|
|
25
25
|
static method: "post";
|
|
26
|
-
constructor(commandConfig:
|
|
26
|
+
constructor(commandConfig: CopyIssueRoutingCommandConfig, options?: Record<string, unknown>);
|
|
27
27
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
//#region .generated/useCases/
|
|
1
|
+
//#region .generated/useCases/copyIssueRouting.ts
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
|
-
var
|
|
5
|
+
var CopyIssueRoutingCommand = class CopyIssueRoutingCommand {
|
|
6
6
|
url;
|
|
7
7
|
data;
|
|
8
8
|
query;
|
|
9
9
|
headers;
|
|
10
10
|
config;
|
|
11
|
-
static params = [
|
|
12
|
-
static url = "/
|
|
13
|
-
static method = "
|
|
11
|
+
static params = [];
|
|
12
|
+
static url = "/issues/copy-routing";
|
|
13
|
+
static method = "post";
|
|
14
14
|
constructor(commandConfig, options = {}) {
|
|
15
|
-
const pathParams =
|
|
15
|
+
const pathParams = CopyIssueRoutingCommand.params;
|
|
16
16
|
let { data, query, headers } = commandConfig ?? {};
|
|
17
17
|
if (typeof data === "undefined") data = null;
|
|
18
18
|
if (typeof query === "undefined") query = null;
|
|
19
19
|
if (typeof headers === "undefined") headers = null;
|
|
20
|
-
let url =
|
|
20
|
+
let url = CopyIssueRoutingCommand.url;
|
|
21
21
|
if (pathParams && data) for (const param of pathParams) {
|
|
22
22
|
const urlParam = ":" + param;
|
|
23
23
|
url = url.replace(urlParam, data[param]);
|
|
@@ -32,7 +32,7 @@ var UpdateTicketStatusCommand = class UpdateTicketStatusCommand {
|
|
|
32
32
|
this.query = query;
|
|
33
33
|
this.headers = headers;
|
|
34
34
|
this.config = {
|
|
35
|
-
method:
|
|
35
|
+
method: CopyIssueRoutingCommand.method,
|
|
36
36
|
url,
|
|
37
37
|
data,
|
|
38
38
|
params: query,
|
|
@@ -42,6 +42,6 @@ var UpdateTicketStatusCommand = class UpdateTicketStatusCommand {
|
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
//#endregion
|
|
45
|
-
export {
|
|
45
|
+
export { CopyIssueRoutingCommand };
|
|
46
46
|
|
|
47
|
-
//# sourceMappingURL=
|
|
47
|
+
//# sourceMappingURL=copyIssueRouting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copyIssueRouting.js","names":[],"sources":["../../.generated/useCases/copyIssueRouting.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport interface CopyIssueRoutingCommandConfig {\n data?: Record<string, unknown> | null;\n headers?: Record<string, string> | null;\n query?: Record<string, unknown> | null;\n}\n\nexport interface CopyIssueRoutingCommandRequestConfig {\n method: \"post\";\n url: string;\n data: Record<string, unknown> | null;\n params: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n [key: string]: unknown;\n}\n\n/**\n *\n */\nexport class CopyIssueRoutingCommand {\n url: string;\n data: Record<string, unknown> | null;\n query: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n config: CopyIssueRoutingCommandRequestConfig;\n\n static params = [] as const;\n static url = \"/issues/copy-routing\";\n static method = \"post\" as const;\n\n constructor(\n commandConfig: CopyIssueRoutingCommandConfig,\n options: Record<string, unknown> = {},\n ) {\n const pathParams = CopyIssueRoutingCommand.params;\n\n let { data, query, headers } = commandConfig ?? {};\n\n if (typeof data === \"undefined\") data = null;\n if (typeof query === \"undefined\") query = null;\n if (typeof headers === \"undefined\") headers = null;\n\n // Replace path parameters with values from data\n let url: string = CopyIssueRoutingCommand.url;\n\n if (pathParams && data) {\n for (const param of pathParams) {\n const urlParam = \":\" + param;\n url = url.replace(urlParam, (data as Record<string, string>)[param]);\n }\n }\n\n // Make sure all parameters have been replaced\n const missingParams = url.match(/:[a-zA-Z0-9]+/g);\n if (missingParams) {\n const missing = missingParams.map((param) => param.replace(\":\", \"\"));\n throw new Error(\"Missing parameters: \" + missing.join(\", \"));\n }\n\n this.url = url;\n this.data = data;\n this.query = query;\n this.headers = headers;\n\n this.config = {\n method: CopyIssueRoutingCommand.method,\n url: url,\n data: data,\n params: query,\n headers: headers,\n ...options,\n };\n }\n}\n"],"mappings":";;;;AAoBA,IAAa,0BAAb,MAAa,wBAAwB;CACnC;CACA;CACA;CACA;CACA;CAEA,OAAO,SAAS,CAAC;CACjB,OAAO,MAAM;CACb,OAAO,SAAS;CAEhB,YACE,eACA,UAAmC,CAAC,GACpC;EACA,MAAM,aAAa,wBAAwB;EAE3C,IAAI,EAAE,MAAM,OAAO,YAAY,iBAAiB,CAAC;EAEjD,IAAI,OAAO,SAAS,aAAa,OAAO;EACxC,IAAI,OAAO,UAAU,aAAa,QAAQ;EAC1C,IAAI,OAAO,YAAY,aAAa,UAAU;EAG9C,IAAI,MAAc,wBAAwB;EAE1C,IAAI,cAAc,MAChB,KAAK,MAAM,SAAS,YAAY;GAC9B,MAAM,WAAW,MAAM;GACvB,MAAM,IAAI,QAAQ,UAAW,KAAgC,MAAM;EACrE;EAIF,MAAM,gBAAgB,IAAI,MAAM,gBAAgB;EAChD,IAAI,eAAe;GACjB,MAAM,UAAU,cAAc,KAAK,UAAU,MAAM,QAAQ,KAAK,EAAE,CAAC;GACnE,MAAM,IAAI,MAAM,yBAAyB,QAAQ,KAAK,IAAI,CAAC;EAC7D;EAEA,KAAK,MAAM;EACX,KAAK,OAAO;EACZ,KAAK,QAAQ;EACb,KAAK,UAAU;EAEf,KAAK,SAAS;GACZ,QAAQ,wBAAwB;GAC3B;GACC;GACN,QAAQ;GACC;GACT,GAAG;EACL;CACF;AACF"}
|
package/dist/useCases/index.d.ts
CHANGED
|
@@ -53,7 +53,6 @@ export { ListDepartmentsCommand } from "./listDepartments.js";
|
|
|
53
53
|
export { DeleteDepartmentCommand } from "./deleteDepartment.js";
|
|
54
54
|
export { CreateDepartmentCommand } from "./createDepartment.js";
|
|
55
55
|
export { UpdateDepartmentCommand } from "./updateDepartment.js";
|
|
56
|
-
export { AutoCloseTicketsCommand } from "./autoCloseTickets.js";
|
|
57
56
|
export { DescribeTicketStatsCommand } from "./describeTicketStats.js";
|
|
58
57
|
export { CreateTicketCommand } from "./createTicket.js";
|
|
59
58
|
export { CreateTicketMessageCommand } from "./createTicketMessage.js";
|
|
@@ -64,7 +63,6 @@ export { DescribeTicketCommand } from "./describeTicket.js";
|
|
|
64
63
|
export { ListTicketsCommand } from "./listTickets.js";
|
|
65
64
|
export { UpdateMessageReadStatusCommand } from "./updateMessageReadStatus.js";
|
|
66
65
|
export { UpdateTicketCommand } from "./updateTicket.js";
|
|
67
|
-
export { UpdateTicketStatusCommand } from "./updateTicketStatus.js";
|
|
68
66
|
export { LeaveTicketCommand } from "./leaveTicket.js";
|
|
69
67
|
export { CreateDiscoveredDeviceAssociationMapCommand } from "./createDiscoveredDeviceAssociationMap.js";
|
|
70
68
|
export { AutoAssociateDiscoveredDevicesCommand } from "./autoAssociateDiscoveredDevices.js";
|
|
@@ -113,6 +111,8 @@ export { ListIssuesCommand } from "./listIssues.js";
|
|
|
113
111
|
export { DeleteIssueCommand } from "./deleteIssue.js";
|
|
114
112
|
export { CreateIssueCommand } from "./createIssue.js";
|
|
115
113
|
export { UpdateIssueCommand } from "./updateIssue.js";
|
|
114
|
+
export { MergeIssueCommand } from "./mergeIssue.js";
|
|
115
|
+
export { CopyIssueRoutingCommand } from "./copyIssueRouting.js";
|
|
116
116
|
export { BulkUpdateIssueCommand } from "./bulkUpdateIssue.js";
|
|
117
117
|
export { DescribeVendorCommand } from "./describeVendor.js";
|
|
118
118
|
export { ListVendorsCommand } from "./listVendors.js";
|
package/dist/useCases/index.js
CHANGED
|
@@ -54,7 +54,6 @@ import { ListDepartmentsCommand } from "./listDepartments.js";
|
|
|
54
54
|
import { DeleteDepartmentCommand } from "./deleteDepartment.js";
|
|
55
55
|
import { CreateDepartmentCommand } from "./createDepartment.js";
|
|
56
56
|
import { UpdateDepartmentCommand } from "./updateDepartment.js";
|
|
57
|
-
import { AutoCloseTicketsCommand } from "./autoCloseTickets.js";
|
|
58
57
|
import { DescribeTicketStatsCommand } from "./describeTicketStats.js";
|
|
59
58
|
import { CreateTicketCommand } from "./createTicket.js";
|
|
60
59
|
import { CreateTicketMessageCommand } from "./createTicketMessage.js";
|
|
@@ -65,7 +64,6 @@ import { DescribeTicketCommand } from "./describeTicket.js";
|
|
|
65
64
|
import { ListTicketsCommand } from "./listTickets.js";
|
|
66
65
|
import { UpdateMessageReadStatusCommand } from "./updateMessageReadStatus.js";
|
|
67
66
|
import { UpdateTicketCommand } from "./updateTicket.js";
|
|
68
|
-
import { UpdateTicketStatusCommand } from "./updateTicketStatus.js";
|
|
69
67
|
import { LeaveTicketCommand } from "./leaveTicket.js";
|
|
70
68
|
import { CreateDiscoveredDeviceAssociationMapCommand } from "./createDiscoveredDeviceAssociationMap.js";
|
|
71
69
|
import { AutoAssociateDiscoveredDevicesCommand } from "./autoAssociateDiscoveredDevices.js";
|
|
@@ -114,6 +112,8 @@ import { ListIssuesCommand } from "./listIssues.js";
|
|
|
114
112
|
import { DeleteIssueCommand } from "./deleteIssue.js";
|
|
115
113
|
import { CreateIssueCommand } from "./createIssue.js";
|
|
116
114
|
import { UpdateIssueCommand } from "./updateIssue.js";
|
|
115
|
+
import { MergeIssueCommand } from "./mergeIssue.js";
|
|
116
|
+
import { CopyIssueRoutingCommand } from "./copyIssueRouting.js";
|
|
117
117
|
import { BulkUpdateIssueCommand } from "./bulkUpdateIssue.js";
|
|
118
118
|
import { DescribeVendorCommand } from "./describeVendor.js";
|
|
119
119
|
import { ListVendorsCommand } from "./listVendors.js";
|
|
@@ -145,9 +145,9 @@ import { UpdateServerCommand } from "./updateServer.js";
|
|
|
145
145
|
//#region .generated/useCases/index.ts
|
|
146
146
|
var useCases_exports = /* @__PURE__ */ __exportAll({
|
|
147
147
|
AutoAssociateDiscoveredDevicesCommand: () => AutoAssociateDiscoveredDevicesCommand,
|
|
148
|
-
AutoCloseTicketsCommand: () => AutoCloseTicketsCommand,
|
|
149
148
|
BulkUpdateIssueCommand: () => BulkUpdateIssueCommand,
|
|
150
149
|
CheckVerificationCodeCommand: () => CheckVerificationCodeCommand,
|
|
150
|
+
CopyIssueRoutingCommand: () => CopyIssueRoutingCommand,
|
|
151
151
|
CreateApiKeyCommand: () => CreateApiKeyCommand,
|
|
152
152
|
CreateAutomationCommand: () => CreateAutomationCommand,
|
|
153
153
|
CreateCategoryCommand: () => CreateCategoryCommand,
|
|
@@ -250,6 +250,7 @@ var useCases_exports = /* @__PURE__ */ __exportAll({
|
|
|
250
250
|
ListUsersCommand: () => ListUsersCommand,
|
|
251
251
|
ListVendorsCommand: () => ListVendorsCommand,
|
|
252
252
|
LogoutUserCommand: () => LogoutUserCommand,
|
|
253
|
+
MergeIssueCommand: () => MergeIssueCommand,
|
|
253
254
|
MoveDeviceCommand: () => MoveDeviceCommand,
|
|
254
255
|
RevokeApiKeyCommand: () => RevokeApiKeyCommand,
|
|
255
256
|
RotateApiKeyCommand: () => RotateApiKeyCommand,
|
|
@@ -279,7 +280,6 @@ var useCases_exports = /* @__PURE__ */ __exportAll({
|
|
|
279
280
|
UpdateSpaceCommand: () => UpdateSpaceCommand,
|
|
280
281
|
UpdateSystemCommand: () => UpdateSystemCommand,
|
|
281
282
|
UpdateTicketCommand: () => UpdateTicketCommand,
|
|
282
|
-
UpdateTicketStatusCommand: () => UpdateTicketStatusCommand,
|
|
283
283
|
UpdateTimeSheetCommand: () => UpdateTimeSheetCommand,
|
|
284
284
|
UpdateTimeSheetTimeEntryCommand: () => UpdateTimeSheetTimeEntryCommand,
|
|
285
285
|
UpdateUserCommand: () => UpdateUserCommand,
|
|
@@ -289,6 +289,6 @@ var useCases_exports = /* @__PURE__ */ __exportAll({
|
|
|
289
289
|
ValidateAuthCommand: () => ValidateAuthCommand
|
|
290
290
|
});
|
|
291
291
|
//#endregion
|
|
292
|
-
export { AutoAssociateDiscoveredDevicesCommand,
|
|
292
|
+
export { AutoAssociateDiscoveredDevicesCommand, BulkUpdateIssueCommand, CheckVerificationCodeCommand, CopyIssueRoutingCommand, CreateApiKeyCommand, CreateAutomationCommand, CreateCategoryCommand, CreateDefaultAutomationsCommand, CreateDepartmentCommand, CreateDeviceCommand, CreateDeviceCredentialCommand, CreateDiscoveredDeviceAssociationCommand, CreateDiscoveredDeviceAssociationMapCommand, CreateDiscoveredDeviceCommand, CreateImageUploadEndpointCommand, CreateIssueCommand, CreateOrganizationCommand, CreatePolicyCommand, CreatePropertyCommand, CreatePwaHandoffTokenCommand, CreateServerCommand, CreateSpaceCommand, CreateSystemCommand, CreateTicketCommand, CreateTicketMessageCommand, CreateTimeSheetCommand, CreateTimeSheetTimeEntryCommand, CreateUserCommand, CreateVendorCommand, DeleteAutomationCommand, DeleteCategoryCommand, DeleteDepartmentCommand, DeleteDeviceCommand, DeleteDeviceCredentialCommand, DeleteDiscoveredDeviceCommand, DeleteIssueCommand, DeleteMediaFileCommand, DeleteOrganizationCommand, DeletePolicyCommand, DeletePropertyCommand, DeleteServerCommand, DeleteSessionCommand, DeleteSpaceCommand, DeleteSystemCommand, DeleteTicketCommand, DeleteTimeSheetCommand, DeleteTimeSheetTimeEntryCommand, DeleteUserCommand, DeleteUserCredentialCommand, DeleteVendorCommand, DescribeAutomationCommand, DescribeCategoryCommand, DescribeDepartmentCommand, DescribeDeviceCommand, DescribeDeviceConfigCommand, DescribeDiscoveredDeviceCommand, DescribeIssueCommand, DescribeMyAuthCommand, DescribeMyOrganizationCommand, DescribeMyPasskeyRegistrationsCommand, DescribeOrganizationCommand, DescribePolicyCommand, DescribePropertyCommand, DescribeSOSCommand, DescribeSelfCommand, DescribeServerCommand, DescribeSessionCommand, DescribeSpaceCommand, DescribeSystemCommand, DescribeTicketCommand, DescribeTicketFiltersCommand, DescribeTicketStatsCommand, DescribeTimeSheetCommand, DescribeTimeSheetStatsCommand, DescribeUserCommand, DescribeVendorCommand, EmailUserAccountSetupCommand, GetApiKeyCommand, LeaveTicketCommand, ListAutomationsCommand, ListCameraStreamPreviewsCommand, ListCategoriesCommand, ListDepartmentsCommand, ListDeviceCredentialsCommand, ListDevicesCommand, ListDiscoveredDevicesCommand, ListIntegrationsCommand, ListIssuesCommand, ListMyOrganizationsCommand, ListMyPropertiesCommand, ListMyTimeSheetsCommand, ListOrganizationsCommand, ListPoliciesCommand, ListPropertiesCommand, ListPropertyCredentialsCommand, ListServersCommand, ListSessionsCommand, ListSpacesCommand, ListSystemsCommand, ListTicketLocationsCommand, ListTicketsCommand, ListTimeSheetsCommand, ListUserSpacesCommand, ListUsersCommand, ListVendorsCommand, LogoutUserCommand, MergeIssueCommand, MoveDeviceCommand, RevokeApiKeyCommand, RotateApiKeyCommand, RunAutomationCommand, SelectOrganizationCommand, SendNotificationCommand, SendVerificationCodeCommand, SetDeviceCommand, SetDevicesCommand, StartSOSCommand, StopSOSCommand, UpdateAutomationCommand, UpdateCategoryCommand, UpdateDepartmentCommand, UpdateDeviceCommand, UpdateDeviceCredentialCommand, UpdateDiscoveredDeviceCommand, UpdateIssueCommand, UpdateMessageReadStatusCommand, UpdateOrganizationCommand, UpdateOrganizationFeaturesCommand, UpdatePolicyCommand, UpdatePropertyCommand, UpdatePropertyFeaturesCommand, UpdateSelfCommand, UpdateServerCommand, UpdateSpaceCommand, UpdateSystemCommand, UpdateTicketCommand, UpdateTimeSheetCommand, UpdateTimeSheetTimeEntryCommand, UpdateUserCommand, UpdateVendorCommand, UploadImageCommand, UpsertDiscoveredDeviceCommand, ValidateAuthCommand, useCases_exports };
|
|
293
293
|
|
|
294
294
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../.generated/useCases/index.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport { CreatePwaHandoffTokenCommand } from \"./createPwaHandoffToken.js\";\nexport { LogoutUserCommand } from \"./logoutUser.js\";\nexport { DescribeMyAuthCommand } from \"./describeMyAuth.js\";\nexport { ValidateAuthCommand } from \"./validateAuth.js\";\nexport { SelectOrganizationCommand } from \"./selectOrganization.js\";\nexport { ListMyOrganizationsCommand } from \"./listMyOrganizations.js\";\nexport { DescribeSelfCommand } from \"./describeSelf.js\";\nexport { DescribeUserCommand } from \"./describeUser.js\";\nexport { CreateUserCommand } from \"./createUser.js\";\nexport { ListUsersCommand } from \"./listUsers.js\";\nexport { UpdateSelfCommand } from \"./updateSelf.js\";\nexport { UpdateUserCommand } from \"./updateUser.js\";\nexport { DeleteUserCommand } from \"./deleteUser.js\";\nexport { CreateApiKeyCommand } from \"./createApiKey.js\";\nexport { GetApiKeyCommand } from \"./getApiKey.js\";\nexport { RotateApiKeyCommand } from \"./rotateApiKey.js\";\nexport { RevokeApiKeyCommand } from \"./revokeApiKey.js\";\nexport { SendVerificationCodeCommand } from \"./sendVerificationCode.js\";\nexport { CheckVerificationCodeCommand } from \"./checkVerificationCode.js\";\nexport { ListUserSpacesCommand } from \"./listUserSpaces.js\";\nexport { DescribeMyPasskeyRegistrationsCommand } from \"./describeMyPasskeyRegistrations.js\";\nexport { DeleteUserCredentialCommand } from \"./deleteUserCredential.js\";\nexport { CreatePolicyCommand } from \"./createPolicy.js\";\nexport { ListPoliciesCommand } from \"./listPolicies.js\";\nexport { UpdatePolicyCommand } from \"./updatePolicy.js\";\nexport { DeletePolicyCommand } from \"./deletePolicy.js\";\nexport { DescribePolicyCommand } from \"./describePolicy.js\";\nexport { ListSpacesCommand } from \"./listSpaces.js\";\nexport { UpdateSpaceCommand } from \"./updateSpace.js\";\nexport { CreateSpaceCommand } from \"./createSpace.js\";\nexport { DescribeSpaceCommand } from \"./describeSpace.js\";\nexport { DeleteSpaceCommand } from \"./deleteSpace.js\";\nexport { CreateDeviceCommand } from \"./createDevice.js\";\nexport { CreateDeviceCredentialCommand } from \"./createDeviceCredential.js\";\nexport { ListDevicesCommand } from \"./listDevices.js\";\nexport { ListDeviceCredentialsCommand } from \"./listDeviceCredentials.js\";\nexport { ListCameraStreamPreviewsCommand } from \"./listCameraStreamPreviews.js\";\nexport { DescribeDeviceCommand } from \"./describeDevice.js\";\nexport { UpdateDeviceCommand } from \"./updateDevice.js\";\nexport { UpdateDeviceCredentialCommand } from \"./updateDeviceCredential.js\";\nexport { SetDeviceCommand } from \"./setDevice.js\";\nexport { DeleteDeviceCommand } from \"./deleteDevice.js\";\nexport { DeleteDeviceCredentialCommand } from \"./deleteDeviceCredential.js\";\nexport { MoveDeviceCommand } from \"./moveDevice.js\";\nexport { DescribeDeviceConfigCommand } from \"./describeDeviceConfig.js\";\nexport { CreateCategoryCommand } from \"./createCategory.js\";\nexport { DeleteCategoryCommand } from \"./deleteCategory.js\";\nexport { DescribeCategoryCommand } from \"./describeCategory.js\";\nexport { ListCategoriesCommand } from \"./listCategories.js\";\nexport { UpdateCategoryCommand } from \"./updateCategory.js\";\nexport { DescribeDepartmentCommand } from \"./describeDepartment.js\";\nexport { ListDepartmentsCommand } from \"./listDepartments.js\";\nexport { DeleteDepartmentCommand } from \"./deleteDepartment.js\";\nexport { CreateDepartmentCommand } from \"./createDepartment.js\";\nexport { UpdateDepartmentCommand } from \"./updateDepartment.js\";\nexport {
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../.generated/useCases/index.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport { CreatePwaHandoffTokenCommand } from \"./createPwaHandoffToken.js\";\nexport { LogoutUserCommand } from \"./logoutUser.js\";\nexport { DescribeMyAuthCommand } from \"./describeMyAuth.js\";\nexport { ValidateAuthCommand } from \"./validateAuth.js\";\nexport { SelectOrganizationCommand } from \"./selectOrganization.js\";\nexport { ListMyOrganizationsCommand } from \"./listMyOrganizations.js\";\nexport { DescribeSelfCommand } from \"./describeSelf.js\";\nexport { DescribeUserCommand } from \"./describeUser.js\";\nexport { CreateUserCommand } from \"./createUser.js\";\nexport { ListUsersCommand } from \"./listUsers.js\";\nexport { UpdateSelfCommand } from \"./updateSelf.js\";\nexport { UpdateUserCommand } from \"./updateUser.js\";\nexport { DeleteUserCommand } from \"./deleteUser.js\";\nexport { CreateApiKeyCommand } from \"./createApiKey.js\";\nexport { GetApiKeyCommand } from \"./getApiKey.js\";\nexport { RotateApiKeyCommand } from \"./rotateApiKey.js\";\nexport { RevokeApiKeyCommand } from \"./revokeApiKey.js\";\nexport { SendVerificationCodeCommand } from \"./sendVerificationCode.js\";\nexport { CheckVerificationCodeCommand } from \"./checkVerificationCode.js\";\nexport { ListUserSpacesCommand } from \"./listUserSpaces.js\";\nexport { DescribeMyPasskeyRegistrationsCommand } from \"./describeMyPasskeyRegistrations.js\";\nexport { DeleteUserCredentialCommand } from \"./deleteUserCredential.js\";\nexport { CreatePolicyCommand } from \"./createPolicy.js\";\nexport { ListPoliciesCommand } from \"./listPolicies.js\";\nexport { UpdatePolicyCommand } from \"./updatePolicy.js\";\nexport { DeletePolicyCommand } from \"./deletePolicy.js\";\nexport { DescribePolicyCommand } from \"./describePolicy.js\";\nexport { ListSpacesCommand } from \"./listSpaces.js\";\nexport { UpdateSpaceCommand } from \"./updateSpace.js\";\nexport { CreateSpaceCommand } from \"./createSpace.js\";\nexport { DescribeSpaceCommand } from \"./describeSpace.js\";\nexport { DeleteSpaceCommand } from \"./deleteSpace.js\";\nexport { CreateDeviceCommand } from \"./createDevice.js\";\nexport { CreateDeviceCredentialCommand } from \"./createDeviceCredential.js\";\nexport { ListDevicesCommand } from \"./listDevices.js\";\nexport { ListDeviceCredentialsCommand } from \"./listDeviceCredentials.js\";\nexport { ListCameraStreamPreviewsCommand } from \"./listCameraStreamPreviews.js\";\nexport { DescribeDeviceCommand } from \"./describeDevice.js\";\nexport { UpdateDeviceCommand } from \"./updateDevice.js\";\nexport { UpdateDeviceCredentialCommand } from \"./updateDeviceCredential.js\";\nexport { SetDeviceCommand } from \"./setDevice.js\";\nexport { DeleteDeviceCommand } from \"./deleteDevice.js\";\nexport { DeleteDeviceCredentialCommand } from \"./deleteDeviceCredential.js\";\nexport { MoveDeviceCommand } from \"./moveDevice.js\";\nexport { DescribeDeviceConfigCommand } from \"./describeDeviceConfig.js\";\nexport { CreateCategoryCommand } from \"./createCategory.js\";\nexport { DeleteCategoryCommand } from \"./deleteCategory.js\";\nexport { DescribeCategoryCommand } from \"./describeCategory.js\";\nexport { ListCategoriesCommand } from \"./listCategories.js\";\nexport { UpdateCategoryCommand } from \"./updateCategory.js\";\nexport { DescribeDepartmentCommand } from \"./describeDepartment.js\";\nexport { ListDepartmentsCommand } from \"./listDepartments.js\";\nexport { DeleteDepartmentCommand } from \"./deleteDepartment.js\";\nexport { CreateDepartmentCommand } from \"./createDepartment.js\";\nexport { UpdateDepartmentCommand } from \"./updateDepartment.js\";\nexport { DescribeTicketStatsCommand } from \"./describeTicketStats.js\";\nexport { CreateTicketCommand } from \"./createTicket.js\";\nexport { CreateTicketMessageCommand } from \"./createTicketMessage.js\";\nexport { DeleteTicketCommand } from \"./deleteTicket.js\";\nexport { ListTicketLocationsCommand } from \"./listTicketLocations.js\";\nexport { DescribeTicketFiltersCommand } from \"./describeTicketFilters.js\";\nexport { DescribeTicketCommand } from \"./describeTicket.js\";\nexport { ListTicketsCommand } from \"./listTickets.js\";\nexport { UpdateMessageReadStatusCommand } from \"./updateMessageReadStatus.js\";\nexport { UpdateTicketCommand } from \"./updateTicket.js\";\nexport { LeaveTicketCommand } from \"./leaveTicket.js\";\nexport { CreateDiscoveredDeviceAssociationMapCommand } from \"./createDiscoveredDeviceAssociationMap.js\";\nexport { AutoAssociateDiscoveredDevicesCommand } from \"./autoAssociateDiscoveredDevices.js\";\nexport { CreateDiscoveredDeviceCommand } from \"./createDiscoveredDevice.js\";\nexport { ListDiscoveredDevicesCommand } from \"./listDiscoveredDevices.js\";\nexport { UpdateDiscoveredDeviceCommand } from \"./updateDiscoveredDevice.js\";\nexport { DeleteDiscoveredDeviceCommand } from \"./deleteDiscoveredDevice.js\";\nexport { DescribeDiscoveredDeviceCommand } from \"./describeDiscoveredDevice.js\";\nexport { UpsertDiscoveredDeviceCommand } from \"./upsertDiscoveredDevice.js\";\nexport { CreateDiscoveredDeviceAssociationCommand } from \"./createDiscoveredDeviceAssociation.js\";\nexport { ListIntegrationsCommand } from \"./listIntegrations.js\";\nexport { DescribeMyOrganizationCommand } from \"./describeMyOrganization.js\";\nexport { CreateOrganizationCommand } from \"./createOrganization.js\";\nexport { UpdateOrganizationCommand } from \"./updateOrganization.js\";\nexport { UpdateOrganizationFeaturesCommand } from \"./updateOrganizationFeatures.js\";\nexport { DeleteOrganizationCommand } from \"./deleteOrganization.js\";\nexport { DescribeOrganizationCommand } from \"./describeOrganization.js\";\nexport { ListOrganizationsCommand } from \"./listOrganizations.js\";\nexport { ListPropertiesCommand } from \"./listProperties.js\";\nexport { ListPropertyCredentialsCommand } from \"./listPropertyCredentials.js\";\nexport { ListMyPropertiesCommand } from \"./listMyProperties.js\";\nexport { CreatePropertyCommand } from \"./createProperty.js\";\nexport { DeletePropertyCommand } from \"./deleteProperty.js\";\nexport { UpdatePropertyCommand } from \"./updateProperty.js\";\nexport { DescribePropertyCommand } from \"./describeProperty.js\";\nexport { UpdatePropertyFeaturesCommand } from \"./updatePropertyFeatures.js\";\nexport { EmailUserAccountSetupCommand } from \"./emailUserAccountSetup.js\";\nexport { CreateImageUploadEndpointCommand } from \"./createImageUploadEndpoint.js\";\nexport { DeleteMediaFileCommand } from \"./deleteMediaFile.js\";\nexport { UploadImageCommand } from \"./uploadImage.js\";\nexport { DescribeTimeSheetStatsCommand } from \"./describeTimeSheetStats.js\";\nexport { ListMyTimeSheetsCommand } from \"./listMyTimeSheets.js\";\nexport { DescribeTimeSheetCommand } from \"./describeTimeSheet.js\";\nexport { ListTimeSheetsCommand } from \"./listTimeSheets.js\";\nexport { CreateTimeSheetCommand } from \"./createTimeSheet.js\";\nexport { DeleteTimeSheetCommand } from \"./deleteTimeSheet.js\";\nexport { UpdateTimeSheetCommand } from \"./updateTimeSheet.js\";\nexport { CreateTimeSheetTimeEntryCommand } from \"./createTimeSheetTimeEntry.js\";\nexport { DeleteTimeSheetTimeEntryCommand } from \"./deleteTimeSheetTimeEntry.js\";\nexport { UpdateTimeSheetTimeEntryCommand } from \"./updateTimeSheetTimeEntry.js\";\nexport { StartSOSCommand } from \"./startSOS.js\";\nexport { StopSOSCommand } from \"./stopSOS.js\";\nexport { DescribeSOSCommand } from \"./describeSOS.js\";\nexport { DescribeIssueCommand } from \"./describeIssue.js\";\nexport { ListIssuesCommand } from \"./listIssues.js\";\nexport { DeleteIssueCommand } from \"./deleteIssue.js\";\nexport { CreateIssueCommand } from \"./createIssue.js\";\nexport { UpdateIssueCommand } from \"./updateIssue.js\";\nexport { MergeIssueCommand } from \"./mergeIssue.js\";\nexport { CopyIssueRoutingCommand } from \"./copyIssueRouting.js\";\nexport { BulkUpdateIssueCommand } from \"./bulkUpdateIssue.js\";\nexport { DescribeVendorCommand } from \"./describeVendor.js\";\nexport { ListVendorsCommand } from \"./listVendors.js\";\nexport { DeleteVendorCommand } from \"./deleteVendor.js\";\nexport { CreateVendorCommand } from \"./createVendor.js\";\nexport { UpdateVendorCommand } from \"./updateVendor.js\";\nexport { CreateAutomationCommand } from \"./createAutomation.js\";\nexport { ListAutomationsCommand } from \"./listAutomations.js\";\nexport { DescribeAutomationCommand } from \"./describeAutomation.js\";\nexport { UpdateAutomationCommand } from \"./updateAutomation.js\";\nexport { DeleteAutomationCommand } from \"./deleteAutomation.js\";\nexport { CreateDefaultAutomationsCommand } from \"./createDefaultAutomations.js\";\nexport { RunAutomationCommand } from \"./runAutomation.js\";\nexport { SendNotificationCommand } from \"./sendNotification.js\";\nexport { ListSessionsCommand } from \"./listSessions.js\";\nexport { DescribeSessionCommand } from \"./describeSession.js\";\nexport { DeleteSessionCommand } from \"./deleteSession.js\";\nexport { SetDevicesCommand } from \"./setDevices.js\";\nexport { CreateSystemCommand } from \"./createSystem.js\";\nexport { DeleteSystemCommand } from \"./deleteSystem.js\";\nexport { DescribeSystemCommand } from \"./describeSystem.js\";\nexport { ListSystemsCommand } from \"./listSystems.js\";\nexport { UpdateSystemCommand } from \"./updateSystem.js\";\nexport { CreateServerCommand } from \"./createServer.js\";\nexport { DeleteServerCommand } from \"./deleteServer.js\";\nexport { DescribeServerCommand } from \"./describeServer.js\";\nexport { ListServersCommand } from \"./listServers.js\";\nexport { UpdateServerCommand } from \"./updateServer.js\";\n"],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface MergeIssueCommandConfig {
|
|
2
|
+
data?: Record<string, unknown> | null;
|
|
3
|
+
headers?: Record<string, string> | null;
|
|
4
|
+
query?: Record<string, unknown> | null;
|
|
5
|
+
}
|
|
6
|
+
export interface MergeIssueCommandRequestConfig {
|
|
7
|
+
method: "post";
|
|
8
|
+
url: string;
|
|
9
|
+
data: Record<string, unknown> | null;
|
|
10
|
+
params: Record<string, unknown> | null;
|
|
11
|
+
headers: Record<string, string> | null;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare class MergeIssueCommand {
|
|
18
|
+
url: string;
|
|
19
|
+
data: Record<string, unknown> | null;
|
|
20
|
+
query: Record<string, unknown> | null;
|
|
21
|
+
headers: Record<string, string> | null;
|
|
22
|
+
config: MergeIssueCommandRequestConfig;
|
|
23
|
+
static params: readonly [];
|
|
24
|
+
static url: string;
|
|
25
|
+
static method: "post";
|
|
26
|
+
constructor(commandConfig: MergeIssueCommandConfig, options?: Record<string, unknown>);
|
|
27
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
//#region .generated/useCases/
|
|
1
|
+
//#region .generated/useCases/mergeIssue.ts
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
|
-
var
|
|
5
|
+
var MergeIssueCommand = class MergeIssueCommand {
|
|
6
6
|
url;
|
|
7
7
|
data;
|
|
8
8
|
query;
|
|
9
9
|
headers;
|
|
10
10
|
config;
|
|
11
11
|
static params = [];
|
|
12
|
-
static url = "/
|
|
12
|
+
static url = "/issues/merge";
|
|
13
13
|
static method = "post";
|
|
14
14
|
constructor(commandConfig, options = {}) {
|
|
15
|
-
const pathParams =
|
|
15
|
+
const pathParams = MergeIssueCommand.params;
|
|
16
16
|
let { data, query, headers } = commandConfig ?? {};
|
|
17
17
|
if (typeof data === "undefined") data = null;
|
|
18
18
|
if (typeof query === "undefined") query = null;
|
|
19
19
|
if (typeof headers === "undefined") headers = null;
|
|
20
|
-
let url =
|
|
20
|
+
let url = MergeIssueCommand.url;
|
|
21
21
|
if (pathParams && data) for (const param of pathParams) {
|
|
22
22
|
const urlParam = ":" + param;
|
|
23
23
|
url = url.replace(urlParam, data[param]);
|
|
@@ -32,7 +32,7 @@ var AutoCloseTicketsCommand = class AutoCloseTicketsCommand {
|
|
|
32
32
|
this.query = query;
|
|
33
33
|
this.headers = headers;
|
|
34
34
|
this.config = {
|
|
35
|
-
method:
|
|
35
|
+
method: MergeIssueCommand.method,
|
|
36
36
|
url,
|
|
37
37
|
data,
|
|
38
38
|
params: query,
|
|
@@ -42,6 +42,6 @@ var AutoCloseTicketsCommand = class AutoCloseTicketsCommand {
|
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
//#endregion
|
|
45
|
-
export {
|
|
45
|
+
export { MergeIssueCommand };
|
|
46
46
|
|
|
47
|
-
//# sourceMappingURL=
|
|
47
|
+
//# sourceMappingURL=mergeIssue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeIssue.js","names":[],"sources":["../../.generated/useCases/mergeIssue.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport interface MergeIssueCommandConfig {\n data?: Record<string, unknown> | null;\n headers?: Record<string, string> | null;\n query?: Record<string, unknown> | null;\n}\n\nexport interface MergeIssueCommandRequestConfig {\n method: \"post\";\n url: string;\n data: Record<string, unknown> | null;\n params: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n [key: string]: unknown;\n}\n\n/**\n *\n */\nexport class MergeIssueCommand {\n url: string;\n data: Record<string, unknown> | null;\n query: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n config: MergeIssueCommandRequestConfig;\n\n static params = [] as const;\n static url = \"/issues/merge\";\n static method = \"post\" as const;\n\n constructor(\n commandConfig: MergeIssueCommandConfig,\n options: Record<string, unknown> = {},\n ) {\n const pathParams = MergeIssueCommand.params;\n\n let { data, query, headers } = commandConfig ?? {};\n\n if (typeof data === \"undefined\") data = null;\n if (typeof query === \"undefined\") query = null;\n if (typeof headers === \"undefined\") headers = null;\n\n // Replace path parameters with values from data\n let url: string = MergeIssueCommand.url;\n\n if (pathParams && data) {\n for (const param of pathParams) {\n const urlParam = \":\" + param;\n url = url.replace(urlParam, (data as Record<string, string>)[param]);\n }\n }\n\n // Make sure all parameters have been replaced\n const missingParams = url.match(/:[a-zA-Z0-9]+/g);\n if (missingParams) {\n const missing = missingParams.map((param) => param.replace(\":\", \"\"));\n throw new Error(\"Missing parameters: \" + missing.join(\", \"));\n }\n\n this.url = url;\n this.data = data;\n this.query = query;\n this.headers = headers;\n\n this.config = {\n method: MergeIssueCommand.method,\n url: url,\n data: data,\n params: query,\n headers: headers,\n ...options,\n };\n }\n}\n"],"mappings":";;;;AAoBA,IAAa,oBAAb,MAAa,kBAAkB;CAC7B;CACA;CACA;CACA;CACA;CAEA,OAAO,SAAS,CAAC;CACjB,OAAO,MAAM;CACb,OAAO,SAAS;CAEhB,YACE,eACA,UAAmC,CAAC,GACpC;EACA,MAAM,aAAa,kBAAkB;EAErC,IAAI,EAAE,MAAM,OAAO,YAAY,iBAAiB,CAAC;EAEjD,IAAI,OAAO,SAAS,aAAa,OAAO;EACxC,IAAI,OAAO,UAAU,aAAa,QAAQ;EAC1C,IAAI,OAAO,YAAY,aAAa,UAAU;EAG9C,IAAI,MAAc,kBAAkB;EAEpC,IAAI,cAAc,MAChB,KAAK,MAAM,SAAS,YAAY;GAC9B,MAAM,WAAW,MAAM;GACvB,MAAM,IAAI,QAAQ,UAAW,KAAgC,MAAM;EACrE;EAIF,MAAM,gBAAgB,IAAI,MAAM,gBAAgB;EAChD,IAAI,eAAe;GACjB,MAAM,UAAU,cAAc,KAAK,UAAU,MAAM,QAAQ,KAAK,EAAE,CAAC;GACnE,MAAM,IAAI,MAAM,yBAAyB,QAAQ,KAAK,IAAI,CAAC;EAC7D;EAEA,KAAK,MAAM;EACX,KAAK,OAAO;EACZ,KAAK,QAAQ;EACb,KAAK,UAAU;EAEf,KAAK,SAAS;GACZ,QAAQ,kBAAkB;GACrB;GACC;GACN,QAAQ;GACC;GACT,GAAG;EACL;CACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"autoCloseTickets.js","names":[],"sources":["../../.generated/useCases/autoCloseTickets.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport interface AutoCloseTicketsCommandConfig {\n data?: Record<string, unknown> | null;\n headers?: Record<string, string> | null;\n query?: Record<string, unknown> | null;\n}\n\nexport interface AutoCloseTicketsCommandRequestConfig {\n method: \"post\";\n url: string;\n data: Record<string, unknown> | null;\n params: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n [key: string]: unknown;\n}\n\n/**\n *\n */\nexport class AutoCloseTicketsCommand {\n url: string;\n data: Record<string, unknown> | null;\n query: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n config: AutoCloseTicketsCommandRequestConfig;\n\n static params = [] as const;\n static url = \"/tickets/autoClose\";\n static method = \"post\" as const;\n\n constructor(\n commandConfig: AutoCloseTicketsCommandConfig,\n options: Record<string, unknown> = {},\n ) {\n const pathParams = AutoCloseTicketsCommand.params;\n\n let { data, query, headers } = commandConfig ?? {};\n\n if (typeof data === \"undefined\") data = null;\n if (typeof query === \"undefined\") query = null;\n if (typeof headers === \"undefined\") headers = null;\n\n // Replace path parameters with values from data\n let url: string = AutoCloseTicketsCommand.url;\n\n if (pathParams && data) {\n for (const param of pathParams) {\n const urlParam = \":\" + param;\n url = url.replace(urlParam, (data as Record<string, string>)[param]);\n }\n }\n\n // Make sure all parameters have been replaced\n const missingParams = url.match(/:[a-zA-Z0-9]+/g);\n if (missingParams) {\n const missing = missingParams.map((param) => param.replace(\":\", \"\"));\n throw new Error(\"Missing parameters: \" + missing.join(\", \"));\n }\n\n this.url = url;\n this.data = data;\n this.query = query;\n this.headers = headers;\n\n this.config = {\n method: AutoCloseTicketsCommand.method,\n url: url,\n data: data,\n params: query,\n headers: headers,\n ...options,\n };\n }\n}\n"],"mappings":";;;;AAoBA,IAAa,0BAAb,MAAa,wBAAwB;CACnC;CACA;CACA;CACA;CACA;CAEA,OAAO,SAAS,CAAC;CACjB,OAAO,MAAM;CACb,OAAO,SAAS;CAEhB,YACE,eACA,UAAmC,CAAC,GACpC;EACA,MAAM,aAAa,wBAAwB;EAE3C,IAAI,EAAE,MAAM,OAAO,YAAY,iBAAiB,CAAC;EAEjD,IAAI,OAAO,SAAS,aAAa,OAAO;EACxC,IAAI,OAAO,UAAU,aAAa,QAAQ;EAC1C,IAAI,OAAO,YAAY,aAAa,UAAU;EAG9C,IAAI,MAAc,wBAAwB;EAE1C,IAAI,cAAc,MAChB,KAAK,MAAM,SAAS,YAAY;GAC9B,MAAM,WAAW,MAAM;GACvB,MAAM,IAAI,QAAQ,UAAW,KAAgC,MAAM;EACrE;EAIF,MAAM,gBAAgB,IAAI,MAAM,gBAAgB;EAChD,IAAI,eAAe;GACjB,MAAM,UAAU,cAAc,KAAK,UAAU,MAAM,QAAQ,KAAK,EAAE,CAAC;GACnE,MAAM,IAAI,MAAM,yBAAyB,QAAQ,KAAK,IAAI,CAAC;EAC7D;EAEA,KAAK,MAAM;EACX,KAAK,OAAO;EACZ,KAAK,QAAQ;EACb,KAAK,UAAU;EAEf,KAAK,SAAS;GACZ,QAAQ,wBAAwB;GAC3B;GACC;GACN,QAAQ;GACC;GACT,GAAG;EACL;CACF;AACF"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export interface UpdateTicketStatusCommandConfig {
|
|
2
|
-
data?: {
|
|
3
|
-
id: string;
|
|
4
|
-
[key: string]: unknown;
|
|
5
|
-
} | null;
|
|
6
|
-
headers?: Record<string, string> | null;
|
|
7
|
-
query?: Record<string, unknown> | null;
|
|
8
|
-
}
|
|
9
|
-
export interface UpdateTicketStatusCommandRequestConfig {
|
|
10
|
-
method: "put";
|
|
11
|
-
url: string;
|
|
12
|
-
data: {
|
|
13
|
-
id: string;
|
|
14
|
-
[key: string]: unknown;
|
|
15
|
-
} | null;
|
|
16
|
-
params: Record<string, unknown> | null;
|
|
17
|
-
headers: Record<string, string> | null;
|
|
18
|
-
[key: string]: unknown;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
export declare class UpdateTicketStatusCommand {
|
|
24
|
-
url: string;
|
|
25
|
-
data: {
|
|
26
|
-
id: string;
|
|
27
|
-
[key: string]: unknown;
|
|
28
|
-
} | null;
|
|
29
|
-
query: Record<string, unknown> | null;
|
|
30
|
-
headers: Record<string, string> | null;
|
|
31
|
-
config: UpdateTicketStatusCommandRequestConfig;
|
|
32
|
-
static params: readonly ["id"];
|
|
33
|
-
static url: string;
|
|
34
|
-
static method: "put";
|
|
35
|
-
constructor(commandConfig: UpdateTicketStatusCommandConfig, options?: Record<string, unknown>);
|
|
36
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateTicketStatus.js","names":[],"sources":["../../.generated/useCases/updateTicketStatus.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport interface UpdateTicketStatusCommandConfig {\n data?: { id: string; [key: string]: unknown } | null;\n headers?: Record<string, string> | null;\n query?: Record<string, unknown> | null;\n}\n\nexport interface UpdateTicketStatusCommandRequestConfig {\n method: \"put\";\n url: string;\n data: { id: string; [key: string]: unknown } | null;\n params: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n [key: string]: unknown;\n}\n\n/**\n *\n */\nexport class UpdateTicketStatusCommand {\n url: string;\n data: { id: string; [key: string]: unknown } | null;\n query: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n config: UpdateTicketStatusCommandRequestConfig;\n\n static params = [\"id\"] as const;\n static url = \"/tickets/:id/status\";\n static method = \"put\" as const;\n\n constructor(\n commandConfig: UpdateTicketStatusCommandConfig,\n options: Record<string, unknown> = {},\n ) {\n const pathParams = UpdateTicketStatusCommand.params;\n\n let { data, query, headers } = commandConfig ?? {};\n\n if (typeof data === \"undefined\") data = null;\n if (typeof query === \"undefined\") query = null;\n if (typeof headers === \"undefined\") headers = null;\n\n // Replace path parameters with values from data\n let url: string = UpdateTicketStatusCommand.url;\n\n if (pathParams && data) {\n for (const param of pathParams) {\n const urlParam = \":\" + param;\n url = url.replace(urlParam, (data as Record<string, string>)[param]);\n }\n }\n\n // Make sure all parameters have been replaced\n const missingParams = url.match(/:[a-zA-Z0-9]+/g);\n if (missingParams) {\n const missing = missingParams.map((param) => param.replace(\":\", \"\"));\n throw new Error(\"Missing parameters: \" + missing.join(\", \"));\n }\n\n this.url = url;\n this.data = data;\n this.query = query;\n this.headers = headers;\n\n this.config = {\n method: UpdateTicketStatusCommand.method,\n url: url,\n data: data,\n params: query,\n headers: headers,\n ...options,\n };\n }\n}\n"],"mappings":";;;;AAoBA,IAAa,4BAAb,MAAa,0BAA0B;CACrC;CACA;CACA;CACA;CACA;CAEA,OAAO,SAAS,CAAC,IAAI;CACrB,OAAO,MAAM;CACb,OAAO,SAAS;CAEhB,YACE,eACA,UAAmC,CAAC,GACpC;EACA,MAAM,aAAa,0BAA0B;EAE7C,IAAI,EAAE,MAAM,OAAO,YAAY,iBAAiB,CAAC;EAEjD,IAAI,OAAO,SAAS,aAAa,OAAO;EACxC,IAAI,OAAO,UAAU,aAAa,QAAQ;EAC1C,IAAI,OAAO,YAAY,aAAa,UAAU;EAG9C,IAAI,MAAc,0BAA0B;EAE5C,IAAI,cAAc,MAChB,KAAK,MAAM,SAAS,YAAY;GAC9B,MAAM,WAAW,MAAM;GACvB,MAAM,IAAI,QAAQ,UAAW,KAAgC,MAAM;EACrE;EAIF,MAAM,gBAAgB,IAAI,MAAM,gBAAgB;EAChD,IAAI,eAAe;GACjB,MAAM,UAAU,cAAc,KAAK,UAAU,MAAM,QAAQ,KAAK,EAAE,CAAC;GACnE,MAAM,IAAI,MAAM,yBAAyB,QAAQ,KAAK,IAAI,CAAC;EAC7D;EAEA,KAAK,MAAM;EACX,KAAK,OAAO;EACZ,KAAK,QAAQ;EACb,KAAK,UAAU;EAEf,KAAK,SAAS;GACZ,QAAQ,0BAA0B;GAC7B;GACC;GACN,QAAQ;GACC;GACT,GAAG;EACL;CACF;AACF"}
|