@d19n/youfibre-odin-sdk 2.0.334 → 2.0.336

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 (89) hide show
  1. package/README.md +37 -2
  2. package/dist/EntityRegistry.d.ts +8 -0
  3. package/dist/EntityRegistry.js +8 -0
  4. package/dist/OdinApiClient.d.ts +16 -0
  5. package/dist/OdinApiClient.js +32 -0
  6. package/dist/OdinDbClient.d.ts +16 -0
  7. package/dist/OdinDbClient.js +32 -0
  8. package/dist/accessors-v2/QaAutoFailAccessor.d.ts +112 -0
  9. package/dist/accessors-v2/QaAutoFailAccessor.js +191 -0
  10. package/dist/accessors-v2/QaRubricAccessor.d.ts +112 -0
  11. package/dist/accessors-v2/QaRubricAccessor.js +191 -0
  12. package/dist/accessors-v2/QaRubricItemAccessor.d.ts +112 -0
  13. package/dist/accessors-v2/QaRubricItemAccessor.js +191 -0
  14. package/dist/accessors-v2/QaRubricSectionAccessor.d.ts +112 -0
  15. package/dist/accessors-v2/QaRubricSectionAccessor.js +191 -0
  16. package/dist/accessors-v2/index.d.ts +4 -0
  17. package/dist/accessors-v2/index.js +10 -2
  18. package/dist/actions-v2/CreateAmcoReplacementConfirmedEmailDto.d.ts +142 -0
  19. package/dist/actions-v2/CreateAmcoReplacementConfirmedEmailDto.js +59 -0
  20. package/dist/actions-v2/CreateAmcoReplacementDeliveredEmailDto.d.ts +142 -0
  21. package/dist/actions-v2/CreateAmcoReplacementDeliveredEmailDto.js +59 -0
  22. package/dist/actions-v2/CreateAmcoReplacementFailedDeliveryEmailDto.d.ts +142 -0
  23. package/dist/actions-v2/CreateAmcoReplacementFailedDeliveryEmailDto.js +59 -0
  24. package/dist/actions-v2/CreateAmcoReplacementSentEmailDto.d.ts +142 -0
  25. package/dist/actions-v2/CreateAmcoReplacementSentEmailDto.js +59 -0
  26. package/dist/actions-v2/CreateContactSalesAppDto.d.ts +2 -25
  27. package/dist/actions-v2/CreateLeadSalesAppDto.d.ts +9 -1
  28. package/dist/actions-v2/CreateTransactionalEmailDto.d.ts +8 -1
  29. package/dist/actions-v2/MoveReplacementAmcoToFailedDeliveryDto.d.ts +70 -0
  30. package/dist/actions-v2/MoveReplacementAmcoToFailedDeliveryDto.js +62 -0
  31. package/dist/actions-v2/UpdateQaAutoFailDto.d.ts +102 -0
  32. package/dist/actions-v2/UpdateQaAutoFailDto.js +56 -0
  33. package/dist/actions-v2/UpdateQaRubricDto.d.ts +103 -0
  34. package/dist/actions-v2/UpdateQaRubricDto.js +56 -0
  35. package/dist/actions-v2/UpdateQaRubricItemDto.d.ts +157 -0
  36. package/dist/actions-v2/UpdateQaRubricItemDto.js +56 -0
  37. package/dist/actions-v2/UpdateQaRubricSectionDto.d.ts +87 -0
  38. package/dist/actions-v2/UpdateQaRubricSectionDto.js +56 -0
  39. package/dist/api-sdk-v2/QaAutoFailApi.d.ts +48 -0
  40. package/dist/api-sdk-v2/QaAutoFailApi.js +155 -0
  41. package/dist/api-sdk-v2/QaRubricApi.d.ts +50 -0
  42. package/dist/api-sdk-v2/QaRubricApi.js +161 -0
  43. package/dist/api-sdk-v2/QaRubricItemApi.d.ts +48 -0
  44. package/dist/api-sdk-v2/QaRubricItemApi.js +155 -0
  45. package/dist/api-sdk-v2/QaRubricSectionApi.d.ts +50 -0
  46. package/dist/api-sdk-v2/QaRubricSectionApi.js +161 -0
  47. package/dist/db-accessors-v2/QaAutoFailDbAccessor.d.ts +180 -0
  48. package/dist/db-accessors-v2/QaAutoFailDbAccessor.js +265 -0
  49. package/dist/db-accessors-v2/QaRubricDbAccessor.d.ts +180 -0
  50. package/dist/db-accessors-v2/QaRubricDbAccessor.js +265 -0
  51. package/dist/db-accessors-v2/QaRubricItemDbAccessor.d.ts +180 -0
  52. package/dist/db-accessors-v2/QaRubricItemDbAccessor.js +265 -0
  53. package/dist/db-accessors-v2/QaRubricSectionDbAccessor.d.ts +180 -0
  54. package/dist/db-accessors-v2/QaRubricSectionDbAccessor.js +265 -0
  55. package/dist/db-accessors-v2/index.d.ts +4 -0
  56. package/dist/db-accessors-v2/index.js +10 -2
  57. package/dist/db-sdk-v2/QaAutoFailDb.d.ts +120 -0
  58. package/dist/db-sdk-v2/QaAutoFailDb.js +204 -0
  59. package/dist/db-sdk-v2/QaRubricDb.d.ts +122 -0
  60. package/dist/db-sdk-v2/QaRubricDb.js +210 -0
  61. package/dist/db-sdk-v2/QaRubricItemDb.d.ts +120 -0
  62. package/dist/db-sdk-v2/QaRubricItemDb.js +204 -0
  63. package/dist/db-sdk-v2/QaRubricSectionDb.d.ts +122 -0
  64. package/dist/db-sdk-v2/QaRubricSectionDb.js +210 -0
  65. package/dist/entities-v2/QaAutoFail.d.ts +117 -0
  66. package/dist/entities-v2/QaAutoFail.js +76 -0
  67. package/dist/entities-v2/QaRubric.d.ts +152 -0
  68. package/dist/entities-v2/QaRubric.js +114 -0
  69. package/dist/entities-v2/QaRubricItem.d.ts +199 -0
  70. package/dist/entities-v2/QaRubricItem.js +110 -0
  71. package/dist/entities-v2/QaRubricSection.d.ts +108 -0
  72. package/dist/entities-v2/QaRubricSection.js +76 -0
  73. package/dist/entities-v2/WorkOrder.d.ts +6 -2
  74. package/dist/entities-v2/WorkOrder.js +4 -0
  75. package/dist/records-v2/EmailRecord.d.ts +116 -0
  76. package/dist/records-v2/EmailRecord.js +144 -0
  77. package/dist/records-v2/QaAutoFailRecord.d.ts +205 -0
  78. package/dist/records-v2/QaAutoFailRecord.js +275 -0
  79. package/dist/records-v2/QaRubricItemRecord.d.ts +205 -0
  80. package/dist/records-v2/QaRubricItemRecord.js +275 -0
  81. package/dist/records-v2/QaRubricRecord.d.ts +225 -0
  82. package/dist/records-v2/QaRubricRecord.js +308 -0
  83. package/dist/records-v2/QaRubricSectionRecord.d.ts +225 -0
  84. package/dist/records-v2/QaRubricSectionRecord.js +308 -0
  85. package/dist/records-v2/WorkOrderRecord.d.ts +25 -0
  86. package/dist/records-v2/WorkOrderRecord.js +29 -0
  87. package/dist/records-v2/index.d.ts +4 -0
  88. package/dist/records-v2/index.js +13 -1
  89. package/package.json +1 -1
@@ -0,0 +1,142 @@
1
+ /**
2
+ * CreateAmcoReplacementDeliveredEmail Action DTO
3
+ *
4
+ * 3PL-R3. Confirms the replacement equipment was delivered, when the REPLACEMENT_AMCO work order reaches Delivered. This is the email that asks for the old unit back, so it carries the return deadline.
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Email
8
+ * @entityType TRANSACTIONAL
9
+ * @actionKey CreateAmcoReplacementDeliveredEmail
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementDeliveredEmail
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 CreateAmcoReplacementDeliveredEmail created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementDeliveredEmail
19
+ */
20
+ export interface CreateAmcoReplacementDeliveredEmailMessage extends OdinRecordCreatedEvent<CreateAmcoReplacementDeliveredEmailDto, CreateAmcoReplacementDeliveredEmailProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateAmcoReplacementDeliveredEmail action
24
+ *
25
+ * @property Required fields: 0
26
+ * @property Optional fields: 11
27
+ */
28
+ export interface CreateAmcoReplacementDeliveredEmailProperties {
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
+ * Work Order
101
+ *
102
+ * WorkOrder
103
+ * @type {LOOKUP}
104
+ */
105
+ WorkOrder?: string | null;
106
+ }
107
+ /**
108
+ * CreateAmcoReplacementDeliveredEmail
109
+ *
110
+ * 3PL-R3. Confirms the replacement equipment was delivered, when the REPLACEMENT_AMCO work order reaches Delivered. This is the email that asks for the old unit back, so it carries the return deadline.
111
+ *
112
+ * @actionType CREATE - Creates a new Email record
113
+ * @module NotificationModule
114
+ * @entity Email
115
+ * @entityType TRANSACTIONAL (TRANSACTIONAL)
116
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementDeliveredEmail
117
+ * @permission schema.action.createamcoreplacementdeliveredemail.trigger
118
+ * @benchmark This action is tracked for performance benchmarks
119
+ */
120
+ export declare class CreateAmcoReplacementDeliveredEmailDto extends OdinRecordCreateDto<CreateAmcoReplacementDeliveredEmailProperties> {
121
+ /** Used by SDK generators to identify action type */
122
+ static readonly ACTION_TYPE = "CREATE";
123
+ static readonly ACTION_KEY = "CreateAmcoReplacementDeliveredEmail";
124
+ static readonly MODULE_NAME = "NotificationModule";
125
+ static readonly ENTITIES: string[];
126
+ static readonly ENTITY_TYPE = "TRANSACTIONAL";
127
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementDeliveredEmail";
128
+ static readonly PERMISSION = "schema.action.createamcoreplacementdeliveredemail.trigger";
129
+ /** Step metadata - entity this action targets */
130
+ static readonly STEP_ENTITY = "NotificationModule:Email";
131
+ static readonly STEP_SCHEMA_ID = "cb37958c-d72f-44aa-975a-a8fae42b1b72";
132
+ static readonly STEP_SCHEMA_ACTION_ID = "a9d21ee8-9bcc-4a58-a23b-427745c7c8fc";
133
+ static readonly STEP_SCHEMA_TYPE_ID = "14042940-a388-44c7-87fe-3a4105d92e94";
134
+ static readonly STEP_TYPE = "TRANSACTIONAL";
135
+ static readonly AUTO_LINK_PARENT = true;
136
+ readonly actionName: string;
137
+ readonly schemaActionId: string;
138
+ readonly entity: string;
139
+ constructor(properties: CreateAmcoReplacementDeliveredEmailProperties, options?: {
140
+ journeyId?: string;
141
+ });
142
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateAmcoReplacementDeliveredEmail Action DTO
4
+ *
5
+ * 3PL-R3. Confirms the replacement equipment was delivered, when the REPLACEMENT_AMCO work order reaches Delivered. This is the email that asks for the old unit back, so it carries the return deadline.
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Email
9
+ * @entityType TRANSACTIONAL
10
+ * @actionKey CreateAmcoReplacementDeliveredEmail
11
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementDeliveredEmail
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateAmcoReplacementDeliveredEmailDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateAmcoReplacementDeliveredEmail
20
+ *
21
+ * 3PL-R3. Confirms the replacement equipment was delivered, when the REPLACEMENT_AMCO work order reaches Delivered. This is the email that asks for the old unit back, so it carries the return deadline.
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.CreateAmcoReplacementDeliveredEmail
28
+ * @permission schema.action.createamcoreplacementdeliveredemail.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateAmcoReplacementDeliveredEmailDto 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 = 'CreateAmcoReplacementDeliveredEmail';
40
+ this.schemaActionId = 'a9d21ee8-9bcc-4a58-a23b-427745c7c8fc';
41
+ this.entity = 'NotificationModule:Email';
42
+ }
43
+ }
44
+ exports.CreateAmcoReplacementDeliveredEmailDto = CreateAmcoReplacementDeliveredEmailDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateAmcoReplacementDeliveredEmailDto.ACTION_TYPE = 'CREATE';
47
+ CreateAmcoReplacementDeliveredEmailDto.ACTION_KEY = 'CreateAmcoReplacementDeliveredEmail';
48
+ CreateAmcoReplacementDeliveredEmailDto.MODULE_NAME = 'NotificationModule';
49
+ CreateAmcoReplacementDeliveredEmailDto.ENTITIES = ['Email'];
50
+ CreateAmcoReplacementDeliveredEmailDto.ENTITY_TYPE = 'TRANSACTIONAL';
51
+ CreateAmcoReplacementDeliveredEmailDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementDeliveredEmail';
52
+ CreateAmcoReplacementDeliveredEmailDto.PERMISSION = 'schema.action.createamcoreplacementdeliveredemail.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ CreateAmcoReplacementDeliveredEmailDto.STEP_ENTITY = 'NotificationModule:Email';
55
+ CreateAmcoReplacementDeliveredEmailDto.STEP_SCHEMA_ID = 'cb37958c-d72f-44aa-975a-a8fae42b1b72';
56
+ CreateAmcoReplacementDeliveredEmailDto.STEP_SCHEMA_ACTION_ID = 'a9d21ee8-9bcc-4a58-a23b-427745c7c8fc';
57
+ CreateAmcoReplacementDeliveredEmailDto.STEP_SCHEMA_TYPE_ID = '14042940-a388-44c7-87fe-3a4105d92e94';
58
+ CreateAmcoReplacementDeliveredEmailDto.STEP_TYPE = 'TRANSACTIONAL';
59
+ CreateAmcoReplacementDeliveredEmailDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,142 @@
1
+ /**
2
+ * CreateAmcoReplacementFailedDeliveryEmail Action DTO
3
+ *
4
+ * 3PL-R4. Tells the customer their replacement equipment could not be delivered and is on its way back to us, when the REPLACEMENT_AMCO work order reaches Failed Delivery.
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Email
8
+ * @entityType TRANSACTIONAL
9
+ * @actionKey CreateAmcoReplacementFailedDeliveryEmail
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementFailedDeliveryEmail
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 CreateAmcoReplacementFailedDeliveryEmail created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementFailedDeliveryEmail
19
+ */
20
+ export interface CreateAmcoReplacementFailedDeliveryEmailMessage extends OdinRecordCreatedEvent<CreateAmcoReplacementFailedDeliveryEmailDto, CreateAmcoReplacementFailedDeliveryEmailProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateAmcoReplacementFailedDeliveryEmail action
24
+ *
25
+ * @property Required fields: 0
26
+ * @property Optional fields: 11
27
+ */
28
+ export interface CreateAmcoReplacementFailedDeliveryEmailProperties {
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
+ * Work Order
101
+ *
102
+ * WorkOrder
103
+ * @type {LOOKUP}
104
+ */
105
+ WorkOrder?: string | null;
106
+ }
107
+ /**
108
+ * CreateAmcoReplacementFailedDeliveryEmail
109
+ *
110
+ * 3PL-R4. Tells the customer their replacement equipment could not be delivered and is on its way back to us, when the REPLACEMENT_AMCO work order reaches Failed Delivery.
111
+ *
112
+ * @actionType CREATE - Creates a new Email record
113
+ * @module NotificationModule
114
+ * @entity Email
115
+ * @entityType TRANSACTIONAL (TRANSACTIONAL)
116
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementFailedDeliveryEmail
117
+ * @permission schema.action.createamcoreplacementfaileddeliveryemail.trigger
118
+ * @benchmark This action is tracked for performance benchmarks
119
+ */
120
+ export declare class CreateAmcoReplacementFailedDeliveryEmailDto extends OdinRecordCreateDto<CreateAmcoReplacementFailedDeliveryEmailProperties> {
121
+ /** Used by SDK generators to identify action type */
122
+ static readonly ACTION_TYPE = "CREATE";
123
+ static readonly ACTION_KEY = "CreateAmcoReplacementFailedDeliveryEmail";
124
+ static readonly MODULE_NAME = "NotificationModule";
125
+ static readonly ENTITIES: string[];
126
+ static readonly ENTITY_TYPE = "TRANSACTIONAL";
127
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementFailedDeliveryEmail";
128
+ static readonly PERMISSION = "schema.action.createamcoreplacementfaileddeliveryemail.trigger";
129
+ /** Step metadata - entity this action targets */
130
+ static readonly STEP_ENTITY = "NotificationModule:Email";
131
+ static readonly STEP_SCHEMA_ID = "cb37958c-d72f-44aa-975a-a8fae42b1b72";
132
+ static readonly STEP_SCHEMA_ACTION_ID = "26502205-37ff-456a-a7c3-83a6ee8fb157";
133
+ static readonly STEP_SCHEMA_TYPE_ID = "14042940-a388-44c7-87fe-3a4105d92e94";
134
+ static readonly STEP_TYPE = "TRANSACTIONAL";
135
+ static readonly AUTO_LINK_PARENT = true;
136
+ readonly actionName: string;
137
+ readonly schemaActionId: string;
138
+ readonly entity: string;
139
+ constructor(properties: CreateAmcoReplacementFailedDeliveryEmailProperties, options?: {
140
+ journeyId?: string;
141
+ });
142
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateAmcoReplacementFailedDeliveryEmail Action DTO
4
+ *
5
+ * 3PL-R4. Tells the customer their replacement equipment could not be delivered and is on its way back to us, when the REPLACEMENT_AMCO work order reaches Failed Delivery.
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Email
9
+ * @entityType TRANSACTIONAL
10
+ * @actionKey CreateAmcoReplacementFailedDeliveryEmail
11
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementFailedDeliveryEmail
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateAmcoReplacementFailedDeliveryEmailDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateAmcoReplacementFailedDeliveryEmail
20
+ *
21
+ * 3PL-R4. Tells the customer their replacement equipment could not be delivered and is on its way back to us, when the REPLACEMENT_AMCO work order reaches Failed Delivery.
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.CreateAmcoReplacementFailedDeliveryEmail
28
+ * @permission schema.action.createamcoreplacementfaileddeliveryemail.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateAmcoReplacementFailedDeliveryEmailDto 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 = 'CreateAmcoReplacementFailedDeliveryEmail';
40
+ this.schemaActionId = '26502205-37ff-456a-a7c3-83a6ee8fb157';
41
+ this.entity = 'NotificationModule:Email';
42
+ }
43
+ }
44
+ exports.CreateAmcoReplacementFailedDeliveryEmailDto = CreateAmcoReplacementFailedDeliveryEmailDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateAmcoReplacementFailedDeliveryEmailDto.ACTION_TYPE = 'CREATE';
47
+ CreateAmcoReplacementFailedDeliveryEmailDto.ACTION_KEY = 'CreateAmcoReplacementFailedDeliveryEmail';
48
+ CreateAmcoReplacementFailedDeliveryEmailDto.MODULE_NAME = 'NotificationModule';
49
+ CreateAmcoReplacementFailedDeliveryEmailDto.ENTITIES = ['Email'];
50
+ CreateAmcoReplacementFailedDeliveryEmailDto.ENTITY_TYPE = 'TRANSACTIONAL';
51
+ CreateAmcoReplacementFailedDeliveryEmailDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementFailedDeliveryEmail';
52
+ CreateAmcoReplacementFailedDeliveryEmailDto.PERMISSION = 'schema.action.createamcoreplacementfaileddeliveryemail.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ CreateAmcoReplacementFailedDeliveryEmailDto.STEP_ENTITY = 'NotificationModule:Email';
55
+ CreateAmcoReplacementFailedDeliveryEmailDto.STEP_SCHEMA_ID = 'cb37958c-d72f-44aa-975a-a8fae42b1b72';
56
+ CreateAmcoReplacementFailedDeliveryEmailDto.STEP_SCHEMA_ACTION_ID = '26502205-37ff-456a-a7c3-83a6ee8fb157';
57
+ CreateAmcoReplacementFailedDeliveryEmailDto.STEP_SCHEMA_TYPE_ID = '14042940-a388-44c7-87fe-3a4105d92e94';
58
+ CreateAmcoReplacementFailedDeliveryEmailDto.STEP_TYPE = 'TRANSACTIONAL';
59
+ CreateAmcoReplacementFailedDeliveryEmailDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,142 @@
1
+ /**
2
+ * CreateAmcoReplacementSentEmail Action DTO
3
+ *
4
+ * 3PL-R2. Tells the customer their replacement equipment is on its way, when the REPLACEMENT_AMCO work order reaches En Route. Carries the outgoing tracking number and link.
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Email
8
+ * @entityType TRANSACTIONAL
9
+ * @actionKey CreateAmcoReplacementSentEmail
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementSentEmail
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 CreateAmcoReplacementSentEmail created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementSentEmail
19
+ */
20
+ export interface CreateAmcoReplacementSentEmailMessage extends OdinRecordCreatedEvent<CreateAmcoReplacementSentEmailDto, CreateAmcoReplacementSentEmailProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateAmcoReplacementSentEmail action
24
+ *
25
+ * @property Required fields: 0
26
+ * @property Optional fields: 11
27
+ */
28
+ export interface CreateAmcoReplacementSentEmailProperties {
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
+ * Work Order
101
+ *
102
+ * WorkOrder
103
+ * @type {LOOKUP}
104
+ */
105
+ WorkOrder?: string | null;
106
+ }
107
+ /**
108
+ * CreateAmcoReplacementSentEmail
109
+ *
110
+ * 3PL-R2. Tells the customer their replacement equipment is on its way, when the REPLACEMENT_AMCO work order reaches En Route. Carries the outgoing tracking number and link.
111
+ *
112
+ * @actionType CREATE - Creates a new Email record
113
+ * @module NotificationModule
114
+ * @entity Email
115
+ * @entityType TRANSACTIONAL (TRANSACTIONAL)
116
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementSentEmail
117
+ * @permission schema.action.createamcoreplacementsentemail.trigger
118
+ * @benchmark This action is tracked for performance benchmarks
119
+ */
120
+ export declare class CreateAmcoReplacementSentEmailDto extends OdinRecordCreateDto<CreateAmcoReplacementSentEmailProperties> {
121
+ /** Used by SDK generators to identify action type */
122
+ static readonly ACTION_TYPE = "CREATE";
123
+ static readonly ACTION_KEY = "CreateAmcoReplacementSentEmail";
124
+ static readonly MODULE_NAME = "NotificationModule";
125
+ static readonly ENTITIES: string[];
126
+ static readonly ENTITY_TYPE = "TRANSACTIONAL";
127
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementSentEmail";
128
+ static readonly PERMISSION = "schema.action.createamcoreplacementsentemail.trigger";
129
+ /** Step metadata - entity this action targets */
130
+ static readonly STEP_ENTITY = "NotificationModule:Email";
131
+ static readonly STEP_SCHEMA_ID = "cb37958c-d72f-44aa-975a-a8fae42b1b72";
132
+ static readonly STEP_SCHEMA_ACTION_ID = "9f4ffbc9-fc9f-4127-b220-101d5c478865";
133
+ static readonly STEP_SCHEMA_TYPE_ID = "14042940-a388-44c7-87fe-3a4105d92e94";
134
+ static readonly STEP_TYPE = "TRANSACTIONAL";
135
+ static readonly AUTO_LINK_PARENT = true;
136
+ readonly actionName: string;
137
+ readonly schemaActionId: string;
138
+ readonly entity: string;
139
+ constructor(properties: CreateAmcoReplacementSentEmailProperties, options?: {
140
+ journeyId?: string;
141
+ });
142
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateAmcoReplacementSentEmail Action DTO
4
+ *
5
+ * 3PL-R2. Tells the customer their replacement equipment is on its way, when the REPLACEMENT_AMCO work order reaches En Route. Carries the outgoing tracking number and link.
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Email
9
+ * @entityType TRANSACTIONAL
10
+ * @actionKey CreateAmcoReplacementSentEmail
11
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementSentEmail
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateAmcoReplacementSentEmailDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateAmcoReplacementSentEmail
20
+ *
21
+ * 3PL-R2. Tells the customer their replacement equipment is on its way, when the REPLACEMENT_AMCO work order reaches En Route. Carries the outgoing tracking number and link.
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.CreateAmcoReplacementSentEmail
28
+ * @permission schema.action.createamcoreplacementsentemail.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateAmcoReplacementSentEmailDto 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 = 'CreateAmcoReplacementSentEmail';
40
+ this.schemaActionId = '9f4ffbc9-fc9f-4127-b220-101d5c478865';
41
+ this.entity = 'NotificationModule:Email';
42
+ }
43
+ }
44
+ exports.CreateAmcoReplacementSentEmailDto = CreateAmcoReplacementSentEmailDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateAmcoReplacementSentEmailDto.ACTION_TYPE = 'CREATE';
47
+ CreateAmcoReplacementSentEmailDto.ACTION_KEY = 'CreateAmcoReplacementSentEmail';
48
+ CreateAmcoReplacementSentEmailDto.MODULE_NAME = 'NotificationModule';
49
+ CreateAmcoReplacementSentEmailDto.ENTITIES = ['Email'];
50
+ CreateAmcoReplacementSentEmailDto.ENTITY_TYPE = 'TRANSACTIONAL';
51
+ CreateAmcoReplacementSentEmailDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementSentEmail';
52
+ CreateAmcoReplacementSentEmailDto.PERMISSION = 'schema.action.createamcoreplacementsentemail.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ CreateAmcoReplacementSentEmailDto.STEP_ENTITY = 'NotificationModule:Email';
55
+ CreateAmcoReplacementSentEmailDto.STEP_SCHEMA_ID = 'cb37958c-d72f-44aa-975a-a8fae42b1b72';
56
+ CreateAmcoReplacementSentEmailDto.STEP_SCHEMA_ACTION_ID = '9f4ffbc9-fc9f-4127-b220-101d5c478865';
57
+ CreateAmcoReplacementSentEmailDto.STEP_SCHEMA_TYPE_ID = '14042940-a388-44c7-87fe-3a4105d92e94';
58
+ CreateAmcoReplacementSentEmailDto.STEP_TYPE = 'TRANSACTIONAL';
59
+ CreateAmcoReplacementSentEmailDto.AUTO_LINK_PARENT = true;
@@ -21,26 +21,10 @@ export interface CreateContactSalesAppMessage extends OdinRecordCreatedEvent<Cre
21
21
  /**
22
22
  * Properties for CreateContactSalesApp action
23
23
  *
24
- * @property Required fields: 3
25
- * @property Optional fields: 2
24
+ * @property Required fields: 1
25
+ * @property Optional fields: 1
26
26
  */
27
27
  export interface CreateContactSalesAppProperties {
28
- /**
29
- * FirstName
30
- *
31
- * Contacts First Name (Sales - Contact)
32
- * @type {TEXT}
33
- * @required
34
- */
35
- FirstName: string;
36
- /**
37
- * LastName
38
- *
39
- * Contacts Last Name (Sales - Contact)
40
- * @type {TEXT}
41
- * @required
42
- */
43
- LastName: string;
44
28
  /**
45
29
  * EmailAddress
46
30
  *
@@ -49,13 +33,6 @@ export interface CreateContactSalesAppProperties {
49
33
  * @required
50
34
  */
51
35
  EmailAddress: string;
52
- /**
53
- * Phone
54
- *
55
- * Phone number (Sales - Contact)
56
- * @type {PHONE_NUMBER_E164_GB}
57
- */
58
- Phone?: string | null;
59
36
  /**
60
37
  * Marketing Consent
61
38
  *
@@ -21,7 +21,7 @@ export interface CreateLeadSalesAppMessage extends OdinRecordCreatedEvent<Create
21
21
  /**
22
22
  * Properties for CreateLeadSalesApp action
23
23
  *
24
- * @property Required fields: 4
24
+ * @property Required fields: 5
25
25
  * @property Optional fields: 1
26
26
  */
27
27
  export interface CreateLeadSalesAppProperties {
@@ -33,6 +33,14 @@ export interface CreateLeadSalesAppProperties {
33
33
  * @required
34
34
  */
35
35
  Name: string;
36
+ /**
37
+ * last name
38
+ *
39
+ * Display name/title for Lead records. Primary identifier for Sales team.
40
+ * @type {TEXT}
41
+ * @required
42
+ */
43
+ LastName: string;
36
44
  /**
37
45
  * Type
38
46
  *