@d19n/youfibre-odin-sdk 2.0.382 → 2.0.384

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/README.md +24 -1
  2. package/dist/EntityRegistry.d.ts +2 -0
  3. package/dist/EntityRegistry.js +2 -0
  4. package/dist/OdinApiClient.d.ts +4 -0
  5. package/dist/OdinApiClient.js +8 -0
  6. package/dist/OdinDbClient.d.ts +4 -0
  7. package/dist/OdinDbClient.js +8 -0
  8. package/dist/accessors-v2/TaskAccessor.d.ts +112 -0
  9. package/dist/accessors-v2/TaskAccessor.js +191 -0
  10. package/dist/accessors-v2/index.d.ts +1 -0
  11. package/dist/accessors-v2/index.js +3 -1
  12. package/dist/actions-v2/CreateCaseWithDpaDto.d.ts +8 -1
  13. package/dist/actions-v2/CreateOtsGainingMatchRequestConfirmedDto.d.ts +135 -0
  14. package/dist/actions-v2/CreateOtsGainingMatchRequestConfirmedDto.js +59 -0
  15. package/dist/actions-v2/CreateOtsGainingMatchRequestFailedDto.d.ts +135 -0
  16. package/dist/actions-v2/CreateOtsGainingMatchRequestFailedDto.js +59 -0
  17. package/dist/actions-v2/MoveTaskToDoneDto.d.ts +67 -0
  18. package/dist/actions-v2/MoveTaskToDoneDto.js +59 -0
  19. package/dist/actions-v2/MoveTaskToInProgressDto.d.ts +67 -0
  20. package/dist/actions-v2/MoveTaskToInProgressDto.js +59 -0
  21. package/dist/actions-v2/MoveTaskToOnHoldDto.d.ts +67 -0
  22. package/dist/actions-v2/MoveTaskToOnHoldDto.js +59 -0
  23. package/dist/actions-v2/MoveTaskToStopDto.d.ts +67 -0
  24. package/dist/actions-v2/MoveTaskToStopDto.js +59 -0
  25. package/dist/actions-v2/MoveTaskToTodoDto.d.ts +67 -0
  26. package/dist/actions-v2/MoveTaskToTodoDto.js +59 -0
  27. package/dist/actions-v2/UpdateAddressAvailabilityChecksDto.d.ts +79 -0
  28. package/dist/actions-v2/UpdateAddressAvailabilityChecksDto.js +56 -0
  29. package/dist/api-sdk-v2/RouterPingSnapshotApi.d.ts +2 -2
  30. package/dist/api-sdk-v2/RouterPingSnapshotApi.js +4 -4
  31. package/dist/db-accessors-v2/TaskDbAccessor.d.ts +180 -0
  32. package/dist/db-accessors-v2/TaskDbAccessor.js +265 -0
  33. package/dist/db-accessors-v2/index.d.ts +1 -0
  34. package/dist/db-accessors-v2/index.js +3 -1
  35. package/dist/db-sdk-v2/RouterPingSnapshotDb.d.ts +2 -2
  36. package/dist/db-sdk-v2/RouterPingSnapshotDb.js +4 -4
  37. package/dist/entities-v2/Address.d.ts +17 -1
  38. package/dist/entities-v2/Address.js +4 -0
  39. package/dist/entities-v2/Case.d.ts +17 -1
  40. package/dist/entities-v2/Case.js +2 -0
  41. package/dist/entities-v2/OrderItem.d.ts +5 -1
  42. package/dist/entities-v2/OrderItem.js +5 -1
  43. package/dist/records-v2/AddressRecord.d.ts +28 -0
  44. package/dist/records-v2/AddressRecord.js +37 -0
  45. package/dist/records-v2/EmailRecord.d.ts +58 -0
  46. package/dist/records-v2/EmailRecord.js +72 -0
  47. package/dist/records-v2/NoteRecord.d.ts +20 -0
  48. package/dist/records-v2/NoteRecord.js +33 -0
  49. package/dist/records-v2/TaskRecord.d.ts +283 -0
  50. package/dist/records-v2/TaskRecord.js +370 -0
  51. package/dist/records-v2/index.d.ts +1 -0
  52. package/dist/records-v2/index.js +5 -2
  53. package/package.json +1 -1
@@ -0,0 +1,135 @@
1
+ /**
2
+ * CreateOtsGainingMatchRequestConfirmed Action DTO
3
+ *
4
+ * OTS-GP1S. Tells a customer switching to YouFibre that their old provider has matched their account and what happens next.
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Email
8
+ * @entityType TRANSACTIONAL
9
+ * @actionKey CreateOtsGainingMatchRequestConfirmed
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingMatchRequestConfirmed
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * RabbitMQ message payload for CreateOtsGainingMatchRequestConfirmed created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingMatchRequestConfirmed
19
+ */
20
+ export interface CreateOtsGainingMatchRequestConfirmedMessage extends OdinRecordCreatedEvent<CreateOtsGainingMatchRequestConfirmedDto, CreateOtsGainingMatchRequestConfirmedProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateOtsGainingMatchRequestConfirmed action
24
+ *
25
+ * @property Required fields: 0
26
+ * @property Optional fields: 10
27
+ */
28
+ export interface CreateOtsGainingMatchRequestConfirmedProperties {
29
+ /**
30
+ * Date
31
+ *
32
+ * Date field for Email records. Used by Communications team.
33
+ * @type {DATE_TIME}
34
+ */
35
+ Date?: string | null;
36
+ /**
37
+ * EmailingService
38
+ *
39
+ * The provider we use to send email (eg. Sendgrid)
40
+ * @type {ENUM}
41
+ */
42
+ EmailingService?: string | null;
43
+ /**
44
+ * ContactId
45
+ *
46
+ * The related Contact to send the email
47
+ * @type {LOOKUP}
48
+ */
49
+ ContactId?: string | null;
50
+ /**
51
+ * TemplateLabel
52
+ *
53
+ * The template label from email templates engine
54
+ * @type {TEXT}
55
+ */
56
+ TemplateLabel?: string | null;
57
+ /**
58
+ * MessageId
59
+ *
60
+ * SMTP Message Id (Communications - Email)
61
+ * @type {TEXT}
62
+ */
63
+ MessageId?: string | null;
64
+ /**
65
+ * EmailSenderId
66
+ *
67
+ * The Email Sender related entity
68
+ * @type {LOOKUP}
69
+ */
70
+ EmailSenderId?: string | null;
71
+ /**
72
+ * DynamicData
73
+ *
74
+ * Data will pass to emailing service (variables)
75
+ * @type {JSON}
76
+ */
77
+ DynamicData?: string | null;
78
+ /**
79
+ * Title
80
+ *
81
+ * Used for title
82
+ * @type {TEXT}
83
+ */
84
+ Title?: string | null;
85
+ /**
86
+ * Subject
87
+ *
88
+ * Data field for Email records. Used by Communications team.
89
+ * @type {TEXT}
90
+ */
91
+ Subject?: string | null;
92
+ /**
93
+ * To
94
+ *
95
+ * Data field for Email records. Used by Communications team.
96
+ * @type {TEXT}
97
+ */
98
+ To?: string | null;
99
+ }
100
+ /**
101
+ * CreateOtsGainingMatchRequestConfirmed
102
+ *
103
+ * OTS-GP1S. Tells a customer switching to YouFibre that their old provider has matched their account and what happens next.
104
+ *
105
+ * @actionType CREATE - Creates a new Email record
106
+ * @module NotificationModule
107
+ * @entity Email
108
+ * @entityType TRANSACTIONAL (TRANSACTIONAL)
109
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingMatchRequestConfirmed
110
+ * @permission schema.action.createotsgainingmatchrequestconfirmed.trigger
111
+ * @benchmark This action is tracked for performance benchmarks
112
+ */
113
+ export declare class CreateOtsGainingMatchRequestConfirmedDto extends OdinRecordCreateDto<CreateOtsGainingMatchRequestConfirmedProperties> {
114
+ /** Used by SDK generators to identify action type */
115
+ static readonly ACTION_TYPE = "CREATE";
116
+ static readonly ACTION_KEY = "CreateOtsGainingMatchRequestConfirmed";
117
+ static readonly MODULE_NAME = "NotificationModule";
118
+ static readonly ENTITIES: string[];
119
+ static readonly ENTITY_TYPE = "TRANSACTIONAL";
120
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingMatchRequestConfirmed";
121
+ static readonly PERMISSION = "schema.action.createotsgainingmatchrequestconfirmed.trigger";
122
+ /** Step metadata - entity this action targets */
123
+ static readonly STEP_ENTITY = "NotificationModule:Email";
124
+ static readonly STEP_SCHEMA_ID = "cb37958c-d72f-44aa-975a-a8fae42b1b72";
125
+ static readonly STEP_SCHEMA_ACTION_ID = "12ae8b13-fd72-437a-8f7e-83965d07cd92";
126
+ static readonly STEP_SCHEMA_TYPE_ID = "14042940-a388-44c7-87fe-3a4105d92e94";
127
+ static readonly STEP_TYPE = "TRANSACTIONAL";
128
+ static readonly AUTO_LINK_PARENT = true;
129
+ readonly actionName: string;
130
+ readonly schemaActionId: string;
131
+ readonly entity: string;
132
+ constructor(properties: CreateOtsGainingMatchRequestConfirmedProperties, options?: {
133
+ journeyId?: string;
134
+ });
135
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateOtsGainingMatchRequestConfirmed Action DTO
4
+ *
5
+ * OTS-GP1S. Tells a customer switching to YouFibre that their old provider has matched their account and what happens next.
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Email
9
+ * @entityType TRANSACTIONAL
10
+ * @actionKey CreateOtsGainingMatchRequestConfirmed
11
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingMatchRequestConfirmed
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateOtsGainingMatchRequestConfirmedDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateOtsGainingMatchRequestConfirmed
20
+ *
21
+ * OTS-GP1S. Tells a customer switching to YouFibre that their old provider has matched their account and what happens next.
22
+ *
23
+ * @actionType CREATE - Creates a new Email record
24
+ * @module NotificationModule
25
+ * @entity Email
26
+ * @entityType TRANSACTIONAL (TRANSACTIONAL)
27
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingMatchRequestConfirmed
28
+ * @permission schema.action.createotsgainingmatchrequestconfirmed.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateOtsGainingMatchRequestConfirmedDto extends core_1.OdinRecordCreateDto {
32
+ constructor(properties, options) {
33
+ super({
34
+ entity: 'NotificationModule:Email',
35
+ type: 'TRANSACTIONAL',
36
+ properties,
37
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
+ });
39
+ this.actionName = 'CreateOtsGainingMatchRequestConfirmed';
40
+ this.schemaActionId = '12ae8b13-fd72-437a-8f7e-83965d07cd92';
41
+ this.entity = 'NotificationModule:Email';
42
+ }
43
+ }
44
+ exports.CreateOtsGainingMatchRequestConfirmedDto = CreateOtsGainingMatchRequestConfirmedDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateOtsGainingMatchRequestConfirmedDto.ACTION_TYPE = 'CREATE';
47
+ CreateOtsGainingMatchRequestConfirmedDto.ACTION_KEY = 'CreateOtsGainingMatchRequestConfirmed';
48
+ CreateOtsGainingMatchRequestConfirmedDto.MODULE_NAME = 'NotificationModule';
49
+ CreateOtsGainingMatchRequestConfirmedDto.ENTITIES = ['Email'];
50
+ CreateOtsGainingMatchRequestConfirmedDto.ENTITY_TYPE = 'TRANSACTIONAL';
51
+ CreateOtsGainingMatchRequestConfirmedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingMatchRequestConfirmed';
52
+ CreateOtsGainingMatchRequestConfirmedDto.PERMISSION = 'schema.action.createotsgainingmatchrequestconfirmed.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ CreateOtsGainingMatchRequestConfirmedDto.STEP_ENTITY = 'NotificationModule:Email';
55
+ CreateOtsGainingMatchRequestConfirmedDto.STEP_SCHEMA_ID = 'cb37958c-d72f-44aa-975a-a8fae42b1b72';
56
+ CreateOtsGainingMatchRequestConfirmedDto.STEP_SCHEMA_ACTION_ID = '12ae8b13-fd72-437a-8f7e-83965d07cd92';
57
+ CreateOtsGainingMatchRequestConfirmedDto.STEP_SCHEMA_TYPE_ID = '14042940-a388-44c7-87fe-3a4105d92e94';
58
+ CreateOtsGainingMatchRequestConfirmedDto.STEP_TYPE = 'TRANSACTIONAL';
59
+ CreateOtsGainingMatchRequestConfirmedDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,135 @@
1
+ /**
2
+ * CreateOtsGainingMatchRequestFailed Action DTO
3
+ *
4
+ * OTS-GP1F. Tells a customer switching to YouFibre that their old provider could not match their account, and asks for the details we need.
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Email
8
+ * @entityType TRANSACTIONAL
9
+ * @actionKey CreateOtsGainingMatchRequestFailed
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingMatchRequestFailed
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * RabbitMQ message payload for CreateOtsGainingMatchRequestFailed created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingMatchRequestFailed
19
+ */
20
+ export interface CreateOtsGainingMatchRequestFailedMessage extends OdinRecordCreatedEvent<CreateOtsGainingMatchRequestFailedDto, CreateOtsGainingMatchRequestFailedProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateOtsGainingMatchRequestFailed action
24
+ *
25
+ * @property Required fields: 0
26
+ * @property Optional fields: 10
27
+ */
28
+ export interface CreateOtsGainingMatchRequestFailedProperties {
29
+ /**
30
+ * Date
31
+ *
32
+ * Date field for Email records. Used by Communications team.
33
+ * @type {DATE_TIME}
34
+ */
35
+ Date?: string | null;
36
+ /**
37
+ * EmailingService
38
+ *
39
+ * The provider we use to send email (eg. Sendgrid)
40
+ * @type {ENUM}
41
+ */
42
+ EmailingService?: string | null;
43
+ /**
44
+ * ContactId
45
+ *
46
+ * The related Contact to send the email
47
+ * @type {LOOKUP}
48
+ */
49
+ ContactId?: string | null;
50
+ /**
51
+ * TemplateLabel
52
+ *
53
+ * The template label from email templates engine
54
+ * @type {TEXT}
55
+ */
56
+ TemplateLabel?: string | null;
57
+ /**
58
+ * MessageId
59
+ *
60
+ * SMTP Message Id (Communications - Email)
61
+ * @type {TEXT}
62
+ */
63
+ MessageId?: string | null;
64
+ /**
65
+ * EmailSenderId
66
+ *
67
+ * The Email Sender related entity
68
+ * @type {LOOKUP}
69
+ */
70
+ EmailSenderId?: string | null;
71
+ /**
72
+ * DynamicData
73
+ *
74
+ * Data will pass to emailing service (variables)
75
+ * @type {JSON}
76
+ */
77
+ DynamicData?: string | null;
78
+ /**
79
+ * Title
80
+ *
81
+ * Used for title
82
+ * @type {TEXT}
83
+ */
84
+ Title?: string | null;
85
+ /**
86
+ * Subject
87
+ *
88
+ * Data field for Email records. Used by Communications team.
89
+ * @type {TEXT}
90
+ */
91
+ Subject?: string | null;
92
+ /**
93
+ * To
94
+ *
95
+ * Data field for Email records. Used by Communications team.
96
+ * @type {TEXT}
97
+ */
98
+ To?: string | null;
99
+ }
100
+ /**
101
+ * CreateOtsGainingMatchRequestFailed
102
+ *
103
+ * OTS-GP1F. Tells a customer switching to YouFibre that their old provider could not match their account, and asks for the details we need.
104
+ *
105
+ * @actionType CREATE - Creates a new Email record
106
+ * @module NotificationModule
107
+ * @entity Email
108
+ * @entityType TRANSACTIONAL (TRANSACTIONAL)
109
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingMatchRequestFailed
110
+ * @permission schema.action.createotsgainingmatchrequestfailed.trigger
111
+ * @benchmark This action is tracked for performance benchmarks
112
+ */
113
+ export declare class CreateOtsGainingMatchRequestFailedDto extends OdinRecordCreateDto<CreateOtsGainingMatchRequestFailedProperties> {
114
+ /** Used by SDK generators to identify action type */
115
+ static readonly ACTION_TYPE = "CREATE";
116
+ static readonly ACTION_KEY = "CreateOtsGainingMatchRequestFailed";
117
+ static readonly MODULE_NAME = "NotificationModule";
118
+ static readonly ENTITIES: string[];
119
+ static readonly ENTITY_TYPE = "TRANSACTIONAL";
120
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingMatchRequestFailed";
121
+ static readonly PERMISSION = "schema.action.createotsgainingmatchrequestfailed.trigger";
122
+ /** Step metadata - entity this action targets */
123
+ static readonly STEP_ENTITY = "NotificationModule:Email";
124
+ static readonly STEP_SCHEMA_ID = "cb37958c-d72f-44aa-975a-a8fae42b1b72";
125
+ static readonly STEP_SCHEMA_ACTION_ID = "2c11d368-24cd-4818-abc8-1d8491d46943";
126
+ static readonly STEP_SCHEMA_TYPE_ID = "14042940-a388-44c7-87fe-3a4105d92e94";
127
+ static readonly STEP_TYPE = "TRANSACTIONAL";
128
+ static readonly AUTO_LINK_PARENT = true;
129
+ readonly actionName: string;
130
+ readonly schemaActionId: string;
131
+ readonly entity: string;
132
+ constructor(properties: CreateOtsGainingMatchRequestFailedProperties, options?: {
133
+ journeyId?: string;
134
+ });
135
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateOtsGainingMatchRequestFailed Action DTO
4
+ *
5
+ * OTS-GP1F. Tells a customer switching to YouFibre that their old provider could not match their account, and asks for the details we need.
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Email
9
+ * @entityType TRANSACTIONAL
10
+ * @actionKey CreateOtsGainingMatchRequestFailed
11
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingMatchRequestFailed
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateOtsGainingMatchRequestFailedDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateOtsGainingMatchRequestFailed
20
+ *
21
+ * OTS-GP1F. Tells a customer switching to YouFibre that their old provider could not match their account, and asks for the details we need.
22
+ *
23
+ * @actionType CREATE - Creates a new Email record
24
+ * @module NotificationModule
25
+ * @entity Email
26
+ * @entityType TRANSACTIONAL (TRANSACTIONAL)
27
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingMatchRequestFailed
28
+ * @permission schema.action.createotsgainingmatchrequestfailed.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateOtsGainingMatchRequestFailedDto extends core_1.OdinRecordCreateDto {
32
+ constructor(properties, options) {
33
+ super({
34
+ entity: 'NotificationModule:Email',
35
+ type: 'TRANSACTIONAL',
36
+ properties,
37
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
+ });
39
+ this.actionName = 'CreateOtsGainingMatchRequestFailed';
40
+ this.schemaActionId = '2c11d368-24cd-4818-abc8-1d8491d46943';
41
+ this.entity = 'NotificationModule:Email';
42
+ }
43
+ }
44
+ exports.CreateOtsGainingMatchRequestFailedDto = CreateOtsGainingMatchRequestFailedDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateOtsGainingMatchRequestFailedDto.ACTION_TYPE = 'CREATE';
47
+ CreateOtsGainingMatchRequestFailedDto.ACTION_KEY = 'CreateOtsGainingMatchRequestFailed';
48
+ CreateOtsGainingMatchRequestFailedDto.MODULE_NAME = 'NotificationModule';
49
+ CreateOtsGainingMatchRequestFailedDto.ENTITIES = ['Email'];
50
+ CreateOtsGainingMatchRequestFailedDto.ENTITY_TYPE = 'TRANSACTIONAL';
51
+ CreateOtsGainingMatchRequestFailedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingMatchRequestFailed';
52
+ CreateOtsGainingMatchRequestFailedDto.PERMISSION = 'schema.action.createotsgainingmatchrequestfailed.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ CreateOtsGainingMatchRequestFailedDto.STEP_ENTITY = 'NotificationModule:Email';
55
+ CreateOtsGainingMatchRequestFailedDto.STEP_SCHEMA_ID = 'cb37958c-d72f-44aa-975a-a8fae42b1b72';
56
+ CreateOtsGainingMatchRequestFailedDto.STEP_SCHEMA_ACTION_ID = '2c11d368-24cd-4818-abc8-1d8491d46943';
57
+ CreateOtsGainingMatchRequestFailedDto.STEP_SCHEMA_TYPE_ID = '14042940-a388-44c7-87fe-3a4105d92e94';
58
+ CreateOtsGainingMatchRequestFailedDto.STEP_TYPE = 'TRANSACTIONAL';
59
+ CreateOtsGainingMatchRequestFailedDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,67 @@
1
+ /**
2
+ * MoveTaskToDone Action DTO
3
+ *
4
+ * Move Task to Done stage from any stage
5
+ *
6
+ * @module ProjectModule
7
+ * @entity Task
8
+ * @actionKey MoveTaskToDone
9
+ * @event k1.t-hEOJjsDb.ProjectModule.Task.Transition.MoveTaskToDone
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for MoveTaskToDone step flow events
16
+ *
17
+ * @event k1.t-hEOJjsDb.ProjectModule.Task.Transition.MoveTaskToDone
18
+ */
19
+ export interface MoveTaskToDoneMessage extends OdinRecordUpdatedEvent<MoveTaskToDoneDto, {}> {
20
+ }
21
+ /**
22
+ * Properties for MoveTaskToDone action
23
+ *
24
+ */
25
+ export interface MoveTaskToDoneProperties {
26
+ }
27
+ /**
28
+ * MoveTaskToDone
29
+ *
30
+ * Move Task to Done stage from any stage
31
+ *
32
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
33
+ * @module ProjectModule
34
+ * @entity Task
35
+ * @targetStages TaskStageDone
36
+ * @event k1.t-hEOJjsDb.ProjectModule.Task.Transition.MoveTaskToDone
37
+ * @permission schema.action.movetasktodone.trigger
38
+ * @benchmark This action is tracked for performance benchmarks
39
+ */
40
+ export declare class MoveTaskToDoneDto extends OdinRecordUpdateDto<Record<string, any>> {
41
+ /** Used by SDK generators to identify action type */
42
+ static readonly ACTION_TYPE = "UPDATE";
43
+ static readonly ACTION_KEY = "MoveTaskToDone";
44
+ static readonly MODULE_NAME = "ProjectModule";
45
+ static readonly ENTITIES: string[];
46
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.ProjectModule.Task.Transition.MoveTaskToDone";
47
+ static readonly SCHEMA_ACTION_ID = "020ff027-14ff-4102-8501-671c11959964";
48
+ static readonly PERMISSION = "schema.action.movetasktodone.trigger";
49
+ static readonly TARGET_STAGES: readonly ["TaskStageDone"];
50
+ static readonly IS_STAGE_TRANSITION = true;
51
+ static readonly IS_MULTI_STEP_FLOW = false;
52
+ static readonly HAS_STEP_LINKS = false;
53
+ readonly actionName: string;
54
+ readonly schemaActionId: string;
55
+ readonly entity: string;
56
+ readonly stageKey: string;
57
+ constructor(record: OdinRecord<any> | {
58
+ id: string;
59
+ entity: string;
60
+ type?: string;
61
+ }, options?: {
62
+ journeyId?: string;
63
+ });
64
+ /** Step classes that can be used with this action */
65
+ static readonly stepClasses: readonly [];
66
+ steps: [];
67
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * MoveTaskToDone Action DTO
4
+ *
5
+ * Move Task to Done stage from any stage
6
+ *
7
+ * @module ProjectModule
8
+ * @entity Task
9
+ * @actionKey MoveTaskToDone
10
+ * @event k1.t-hEOJjsDb.ProjectModule.Task.Transition.MoveTaskToDone
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.MoveTaskToDoneDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * MoveTaskToDone
19
+ *
20
+ * Move Task to Done stage from any stage
21
+ *
22
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
23
+ * @module ProjectModule
24
+ * @entity Task
25
+ * @targetStages TaskStageDone
26
+ * @event k1.t-hEOJjsDb.ProjectModule.Task.Transition.MoveTaskToDone
27
+ * @permission schema.action.movetasktodone.trigger
28
+ * @benchmark This action is tracked for performance benchmarks
29
+ */
30
+ class MoveTaskToDoneDto extends core_1.OdinRecordUpdateDto {
31
+ constructor(record, options) {
32
+ super({
33
+ id: record.id,
34
+ entity: record.entity,
35
+ type: record.type,
36
+ properties: {},
37
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
+ });
39
+ this.actionName = 'MoveTaskToDone';
40
+ this.schemaActionId = '020ff027-14ff-4102-8501-671c11959964';
41
+ this.entity = 'ProjectModule:Task';
42
+ this.stageKey = 'TaskStageDone';
43
+ }
44
+ }
45
+ exports.MoveTaskToDoneDto = MoveTaskToDoneDto;
46
+ /** Used by SDK generators to identify action type */
47
+ MoveTaskToDoneDto.ACTION_TYPE = 'UPDATE';
48
+ MoveTaskToDoneDto.ACTION_KEY = 'MoveTaskToDone';
49
+ MoveTaskToDoneDto.MODULE_NAME = 'ProjectModule';
50
+ MoveTaskToDoneDto.ENTITIES = ['Task'];
51
+ MoveTaskToDoneDto.EVENT_NAME = 'k1.t-hEOJjsDb.ProjectModule.Task.Transition.MoveTaskToDone';
52
+ MoveTaskToDoneDto.SCHEMA_ACTION_ID = '020ff027-14ff-4102-8501-671c11959964';
53
+ MoveTaskToDoneDto.PERMISSION = 'schema.action.movetasktodone.trigger';
54
+ MoveTaskToDoneDto.TARGET_STAGES = ['TaskStageDone'];
55
+ MoveTaskToDoneDto.IS_STAGE_TRANSITION = true;
56
+ MoveTaskToDoneDto.IS_MULTI_STEP_FLOW = false;
57
+ MoveTaskToDoneDto.HAS_STEP_LINKS = false;
58
+ /** Step classes that can be used with this action */
59
+ MoveTaskToDoneDto.stepClasses = [];
@@ -0,0 +1,67 @@
1
+ /**
2
+ * MoveTaskToInProgress Action DTO
3
+ *
4
+ * Move Task to In Progress stage from any stage
5
+ *
6
+ * @module ProjectModule
7
+ * @entity Task
8
+ * @actionKey MoveTaskToInProgress
9
+ * @event k1.t-hEOJjsDb.ProjectModule.Task.Transition.MoveTaskToInProgress
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for MoveTaskToInProgress step flow events
16
+ *
17
+ * @event k1.t-hEOJjsDb.ProjectModule.Task.Transition.MoveTaskToInProgress
18
+ */
19
+ export interface MoveTaskToInProgressMessage extends OdinRecordUpdatedEvent<MoveTaskToInProgressDto, {}> {
20
+ }
21
+ /**
22
+ * Properties for MoveTaskToInProgress action
23
+ *
24
+ */
25
+ export interface MoveTaskToInProgressProperties {
26
+ }
27
+ /**
28
+ * MoveTaskToInProgress
29
+ *
30
+ * Move Task to In Progress stage from any stage
31
+ *
32
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
33
+ * @module ProjectModule
34
+ * @entity Task
35
+ * @targetStages TaskStageInProgress
36
+ * @event k1.t-hEOJjsDb.ProjectModule.Task.Transition.MoveTaskToInProgress
37
+ * @permission schema.action.movetasktoinprogress.trigger
38
+ * @benchmark This action is tracked for performance benchmarks
39
+ */
40
+ export declare class MoveTaskToInProgressDto extends OdinRecordUpdateDto<Record<string, any>> {
41
+ /** Used by SDK generators to identify action type */
42
+ static readonly ACTION_TYPE = "UPDATE";
43
+ static readonly ACTION_KEY = "MoveTaskToInProgress";
44
+ static readonly MODULE_NAME = "ProjectModule";
45
+ static readonly ENTITIES: string[];
46
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.ProjectModule.Task.Transition.MoveTaskToInProgress";
47
+ static readonly SCHEMA_ACTION_ID = "f0a9d0f0-0725-4c96-afba-fbba878f9453";
48
+ static readonly PERMISSION = "schema.action.movetasktoinprogress.trigger";
49
+ static readonly TARGET_STAGES: readonly ["TaskStageInProgress"];
50
+ static readonly IS_STAGE_TRANSITION = true;
51
+ static readonly IS_MULTI_STEP_FLOW = false;
52
+ static readonly HAS_STEP_LINKS = false;
53
+ readonly actionName: string;
54
+ readonly schemaActionId: string;
55
+ readonly entity: string;
56
+ readonly stageKey: string;
57
+ constructor(record: OdinRecord<any> | {
58
+ id: string;
59
+ entity: string;
60
+ type?: string;
61
+ }, options?: {
62
+ journeyId?: string;
63
+ });
64
+ /** Step classes that can be used with this action */
65
+ static readonly stepClasses: readonly [];
66
+ steps: [];
67
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * MoveTaskToInProgress Action DTO
4
+ *
5
+ * Move Task to In Progress stage from any stage
6
+ *
7
+ * @module ProjectModule
8
+ * @entity Task
9
+ * @actionKey MoveTaskToInProgress
10
+ * @event k1.t-hEOJjsDb.ProjectModule.Task.Transition.MoveTaskToInProgress
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.MoveTaskToInProgressDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * MoveTaskToInProgress
19
+ *
20
+ * Move Task to In Progress stage from any stage
21
+ *
22
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
23
+ * @module ProjectModule
24
+ * @entity Task
25
+ * @targetStages TaskStageInProgress
26
+ * @event k1.t-hEOJjsDb.ProjectModule.Task.Transition.MoveTaskToInProgress
27
+ * @permission schema.action.movetasktoinprogress.trigger
28
+ * @benchmark This action is tracked for performance benchmarks
29
+ */
30
+ class MoveTaskToInProgressDto extends core_1.OdinRecordUpdateDto {
31
+ constructor(record, options) {
32
+ super({
33
+ id: record.id,
34
+ entity: record.entity,
35
+ type: record.type,
36
+ properties: {},
37
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
+ });
39
+ this.actionName = 'MoveTaskToInProgress';
40
+ this.schemaActionId = 'f0a9d0f0-0725-4c96-afba-fbba878f9453';
41
+ this.entity = 'ProjectModule:Task';
42
+ this.stageKey = 'TaskStageInProgress';
43
+ }
44
+ }
45
+ exports.MoveTaskToInProgressDto = MoveTaskToInProgressDto;
46
+ /** Used by SDK generators to identify action type */
47
+ MoveTaskToInProgressDto.ACTION_TYPE = 'UPDATE';
48
+ MoveTaskToInProgressDto.ACTION_KEY = 'MoveTaskToInProgress';
49
+ MoveTaskToInProgressDto.MODULE_NAME = 'ProjectModule';
50
+ MoveTaskToInProgressDto.ENTITIES = ['Task'];
51
+ MoveTaskToInProgressDto.EVENT_NAME = 'k1.t-hEOJjsDb.ProjectModule.Task.Transition.MoveTaskToInProgress';
52
+ MoveTaskToInProgressDto.SCHEMA_ACTION_ID = 'f0a9d0f0-0725-4c96-afba-fbba878f9453';
53
+ MoveTaskToInProgressDto.PERMISSION = 'schema.action.movetasktoinprogress.trigger';
54
+ MoveTaskToInProgressDto.TARGET_STAGES = ['TaskStageInProgress'];
55
+ MoveTaskToInProgressDto.IS_STAGE_TRANSITION = true;
56
+ MoveTaskToInProgressDto.IS_MULTI_STEP_FLOW = false;
57
+ MoveTaskToInProgressDto.HAS_STEP_LINKS = false;
58
+ /** Step classes that can be used with this action */
59
+ MoveTaskToInProgressDto.stepClasses = [];