@d19n/youfibre-odin-sdk 2.0.293 → 2.0.294

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 (37) hide show
  1. package/README.md +68 -61
  2. package/dist/actions-v2/CreateAmcoCollectionBookedEmailDto.d.ts +135 -0
  3. package/dist/actions-v2/CreateAmcoCollectionBookedEmailDto.js +59 -0
  4. package/dist/actions-v2/CreateAmcoCollectionChargeEmailDto.d.ts +135 -0
  5. package/dist/actions-v2/CreateAmcoCollectionChargeEmailDto.js +59 -0
  6. package/dist/actions-v2/CreateAmcoCollectionCompleteEmailDto.d.ts +135 -0
  7. package/dist/actions-v2/CreateAmcoCollectionCompleteEmailDto.js +59 -0
  8. package/dist/actions-v2/CreateAmcoCollectionReceivedEmailDto.d.ts +135 -0
  9. package/dist/actions-v2/CreateAmcoCollectionReceivedEmailDto.js +59 -0
  10. package/dist/actions-v2/CreateAmcoDispatchConfirmedEmailDto.d.ts +135 -0
  11. package/dist/actions-v2/CreateAmcoDispatchConfirmedEmailDto.js +59 -0
  12. package/dist/actions-v2/CreateAmcoDispatchDeliveredEmailDto.d.ts +135 -0
  13. package/dist/actions-v2/CreateAmcoDispatchDeliveredEmailDto.js +59 -0
  14. package/dist/actions-v2/CreateAmcoDispatchSentEmailDto.d.ts +135 -0
  15. package/dist/actions-v2/CreateAmcoDispatchSentEmailDto.js +59 -0
  16. package/dist/api-sdk-v2/ModifyServiceRequestApi.d.ts +2 -0
  17. package/dist/api-sdk-v2/ModifyServiceRequestApi.js +6 -0
  18. package/dist/api-sdk-v2/RecontractApi.d.ts +2 -0
  19. package/dist/api-sdk-v2/RecontractApi.js +6 -0
  20. package/dist/db-sdk-v2/ModifyServiceRequestDb.d.ts +2 -0
  21. package/dist/db-sdk-v2/ModifyServiceRequestDb.js +6 -0
  22. package/dist/db-sdk-v2/RecontractDb.d.ts +2 -0
  23. package/dist/db-sdk-v2/RecontractDb.js +6 -0
  24. package/dist/entities-v2/Contact.d.ts +8 -0
  25. package/dist/entities-v2/Contact.js +2 -0
  26. package/dist/entities-v2/ModifyServiceRequest.d.ts +3 -0
  27. package/dist/entities-v2/Recontract.d.ts +31 -0
  28. package/dist/entities-v2/Recontract.js +23 -1
  29. package/dist/records-v2/EmailRecord.d.ts +203 -0
  30. package/dist/records-v2/EmailRecord.js +252 -0
  31. package/dist/records-v2/ModifyServiceRequestRecord.d.ts +20 -0
  32. package/dist/records-v2/ModifyServiceRequestRecord.js +33 -0
  33. package/dist/records-v2/RecontractRecord.d.ts +20 -0
  34. package/dist/records-v2/RecontractRecord.js +33 -0
  35. package/dist/records-v2/index.d.ts +1 -1
  36. package/dist/records-v2/index.js +4 -4
  37. package/package.json +1 -1
@@ -0,0 +1,135 @@
1
+ /**
2
+ * CreateAmcoDispatchDeliveredEmail Action DTO
3
+ *
4
+ * 3PL-D4. Confirms the equipment was delivered, when the DISPATCH_AMCO work order reaches Complete.
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Email
8
+ * @entityType TRANSACTIONAL
9
+ * @actionKey CreateAmcoDispatchDeliveredEmail
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoDispatchDeliveredEmail
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 CreateAmcoDispatchDeliveredEmail created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoDispatchDeliveredEmail
19
+ */
20
+ export interface CreateAmcoDispatchDeliveredEmailMessage extends OdinRecordCreatedEvent<CreateAmcoDispatchDeliveredEmailDto, CreateAmcoDispatchDeliveredEmailProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateAmcoDispatchDeliveredEmail action
24
+ *
25
+ * @property Required fields: 0
26
+ * @property Optional fields: 10
27
+ */
28
+ export interface CreateAmcoDispatchDeliveredEmailProperties {
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
+ * CreateAmcoDispatchDeliveredEmail
102
+ *
103
+ * 3PL-D4. Confirms the equipment was delivered, when the DISPATCH_AMCO work order reaches Complete.
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.CreateAmcoDispatchDeliveredEmail
110
+ * @permission schema.action.createamcodispatchdeliveredemail.trigger
111
+ * @benchmark This action is tracked for performance benchmarks
112
+ */
113
+ export declare class CreateAmcoDispatchDeliveredEmailDto extends OdinRecordCreateDto<CreateAmcoDispatchDeliveredEmailProperties> {
114
+ /** Used by SDK generators to identify action type */
115
+ static readonly ACTION_TYPE = "CREATE";
116
+ static readonly ACTION_KEY = "CreateAmcoDispatchDeliveredEmail";
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.CreateAmcoDispatchDeliveredEmail";
121
+ static readonly PERMISSION = "schema.action.createamcodispatchdeliveredemail.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 = "86e5c903-6a7d-4118-930d-1773f8766f2b";
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: CreateAmcoDispatchDeliveredEmailProperties, options?: {
133
+ journeyId?: string;
134
+ });
135
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateAmcoDispatchDeliveredEmail Action DTO
4
+ *
5
+ * 3PL-D4. Confirms the equipment was delivered, when the DISPATCH_AMCO work order reaches Complete.
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Email
9
+ * @entityType TRANSACTIONAL
10
+ * @actionKey CreateAmcoDispatchDeliveredEmail
11
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoDispatchDeliveredEmail
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateAmcoDispatchDeliveredEmailDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateAmcoDispatchDeliveredEmail
20
+ *
21
+ * 3PL-D4. Confirms the equipment was delivered, when the DISPATCH_AMCO work order reaches Complete.
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.CreateAmcoDispatchDeliveredEmail
28
+ * @permission schema.action.createamcodispatchdeliveredemail.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateAmcoDispatchDeliveredEmailDto 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 = 'CreateAmcoDispatchDeliveredEmail';
40
+ this.schemaActionId = '86e5c903-6a7d-4118-930d-1773f8766f2b';
41
+ this.entity = 'NotificationModule:Email';
42
+ }
43
+ }
44
+ exports.CreateAmcoDispatchDeliveredEmailDto = CreateAmcoDispatchDeliveredEmailDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateAmcoDispatchDeliveredEmailDto.ACTION_TYPE = 'CREATE';
47
+ CreateAmcoDispatchDeliveredEmailDto.ACTION_KEY = 'CreateAmcoDispatchDeliveredEmail';
48
+ CreateAmcoDispatchDeliveredEmailDto.MODULE_NAME = 'NotificationModule';
49
+ CreateAmcoDispatchDeliveredEmailDto.ENTITIES = ['Email'];
50
+ CreateAmcoDispatchDeliveredEmailDto.ENTITY_TYPE = 'TRANSACTIONAL';
51
+ CreateAmcoDispatchDeliveredEmailDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoDispatchDeliveredEmail';
52
+ CreateAmcoDispatchDeliveredEmailDto.PERMISSION = 'schema.action.createamcodispatchdeliveredemail.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ CreateAmcoDispatchDeliveredEmailDto.STEP_ENTITY = 'NotificationModule:Email';
55
+ CreateAmcoDispatchDeliveredEmailDto.STEP_SCHEMA_ID = 'cb37958c-d72f-44aa-975a-a8fae42b1b72';
56
+ CreateAmcoDispatchDeliveredEmailDto.STEP_SCHEMA_ACTION_ID = '86e5c903-6a7d-4118-930d-1773f8766f2b';
57
+ CreateAmcoDispatchDeliveredEmailDto.STEP_SCHEMA_TYPE_ID = '14042940-a388-44c7-87fe-3a4105d92e94';
58
+ CreateAmcoDispatchDeliveredEmailDto.STEP_TYPE = 'TRANSACTIONAL';
59
+ CreateAmcoDispatchDeliveredEmailDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,135 @@
1
+ /**
2
+ * CreateAmcoDispatchSentEmail Action DTO
3
+ *
4
+ * 3PL-D2. Tells the customer their equipment is on its way, when the DISPATCH_AMCO work order reaches En Route.
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Email
8
+ * @entityType TRANSACTIONAL
9
+ * @actionKey CreateAmcoDispatchSentEmail
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoDispatchSentEmail
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 CreateAmcoDispatchSentEmail created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoDispatchSentEmail
19
+ */
20
+ export interface CreateAmcoDispatchSentEmailMessage extends OdinRecordCreatedEvent<CreateAmcoDispatchSentEmailDto, CreateAmcoDispatchSentEmailProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateAmcoDispatchSentEmail action
24
+ *
25
+ * @property Required fields: 0
26
+ * @property Optional fields: 10
27
+ */
28
+ export interface CreateAmcoDispatchSentEmailProperties {
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
+ * CreateAmcoDispatchSentEmail
102
+ *
103
+ * 3PL-D2. Tells the customer their equipment is on its way, when the DISPATCH_AMCO work order reaches En Route.
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.CreateAmcoDispatchSentEmail
110
+ * @permission schema.action.createamcodispatchsentemail.trigger
111
+ * @benchmark This action is tracked for performance benchmarks
112
+ */
113
+ export declare class CreateAmcoDispatchSentEmailDto extends OdinRecordCreateDto<CreateAmcoDispatchSentEmailProperties> {
114
+ /** Used by SDK generators to identify action type */
115
+ static readonly ACTION_TYPE = "CREATE";
116
+ static readonly ACTION_KEY = "CreateAmcoDispatchSentEmail";
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.CreateAmcoDispatchSentEmail";
121
+ static readonly PERMISSION = "schema.action.createamcodispatchsentemail.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 = "434a1378-bc4a-489e-bfcc-7cf9668d1538";
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: CreateAmcoDispatchSentEmailProperties, options?: {
133
+ journeyId?: string;
134
+ });
135
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateAmcoDispatchSentEmail Action DTO
4
+ *
5
+ * 3PL-D2. Tells the customer their equipment is on its way, when the DISPATCH_AMCO work order reaches En Route.
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Email
9
+ * @entityType TRANSACTIONAL
10
+ * @actionKey CreateAmcoDispatchSentEmail
11
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoDispatchSentEmail
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateAmcoDispatchSentEmailDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateAmcoDispatchSentEmail
20
+ *
21
+ * 3PL-D2. Tells the customer their equipment is on its way, when the DISPATCH_AMCO work order reaches En Route.
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.CreateAmcoDispatchSentEmail
28
+ * @permission schema.action.createamcodispatchsentemail.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateAmcoDispatchSentEmailDto 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 = 'CreateAmcoDispatchSentEmail';
40
+ this.schemaActionId = '434a1378-bc4a-489e-bfcc-7cf9668d1538';
41
+ this.entity = 'NotificationModule:Email';
42
+ }
43
+ }
44
+ exports.CreateAmcoDispatchSentEmailDto = CreateAmcoDispatchSentEmailDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateAmcoDispatchSentEmailDto.ACTION_TYPE = 'CREATE';
47
+ CreateAmcoDispatchSentEmailDto.ACTION_KEY = 'CreateAmcoDispatchSentEmail';
48
+ CreateAmcoDispatchSentEmailDto.MODULE_NAME = 'NotificationModule';
49
+ CreateAmcoDispatchSentEmailDto.ENTITIES = ['Email'];
50
+ CreateAmcoDispatchSentEmailDto.ENTITY_TYPE = 'TRANSACTIONAL';
51
+ CreateAmcoDispatchSentEmailDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoDispatchSentEmail';
52
+ CreateAmcoDispatchSentEmailDto.PERMISSION = 'schema.action.createamcodispatchsentemail.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ CreateAmcoDispatchSentEmailDto.STEP_ENTITY = 'NotificationModule:Email';
55
+ CreateAmcoDispatchSentEmailDto.STEP_SCHEMA_ID = 'cb37958c-d72f-44aa-975a-a8fae42b1b72';
56
+ CreateAmcoDispatchSentEmailDto.STEP_SCHEMA_ACTION_ID = '434a1378-bc4a-489e-bfcc-7cf9668d1538';
57
+ CreateAmcoDispatchSentEmailDto.STEP_SCHEMA_TYPE_ID = '14042940-a388-44c7-87fe-3a4105d92e94';
58
+ CreateAmcoDispatchSentEmailDto.STEP_TYPE = 'TRANSACTIONAL';
59
+ CreateAmcoDispatchSentEmailDto.AUTO_LINK_PARENT = true;
@@ -19,9 +19,11 @@ export declare class ModifyServiceRequestApi extends ApiProvider {
19
19
  private sourceRecord;
20
20
  private _orderkci?;
21
21
  private _order?;
22
+ private _recontract?;
22
23
  constructor(authParams?: OauthParams, authToken?: string);
23
24
  get orderkci(): ApiRecordLinkManager;
24
25
  get order(): ApiRecordLinkManager;
26
+ get recontract(): ApiRecordLinkManager;
25
27
  setRecord(sourceRecord: any): void;
26
28
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
27
29
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<ModifyServiceRequestProperties>>>;
@@ -45,6 +45,12 @@ class ModifyServiceRequestApi extends api_provider_1.ApiProvider {
45
45
  }
46
46
  return this._order;
47
47
  }
48
+ get recontract() {
49
+ if (!this._recontract) {
50
+ this._recontract = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ServiceModule:ModifyServiceRequest', 'OrderModule:Recontract', 'Recontract__ModifyServiceRequest');
51
+ }
52
+ return this._recontract;
53
+ }
48
54
  // ============================================
49
55
  // STANDARD METHODS (Unchanged API)
50
56
  // ============================================
@@ -18,8 +18,10 @@ export declare class RecontractApi extends ApiProvider {
18
18
  private readonly entityName;
19
19
  private sourceRecord;
20
20
  private _order?;
21
+ private _modifyservicerequest?;
21
22
  constructor(authParams?: OauthParams, authToken?: string);
22
23
  get order(): ApiRecordLinkManager;
24
+ get modifyservicerequest(): ApiRecordLinkManager;
23
25
  setRecord(sourceRecord: any): void;
24
26
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
25
27
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<RecontractProperties>>>;
@@ -39,6 +39,12 @@ class RecontractApi extends api_provider_1.ApiProvider {
39
39
  }
40
40
  return this._order;
41
41
  }
42
+ get modifyservicerequest() {
43
+ if (!this._modifyservicerequest) {
44
+ this._modifyservicerequest = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'OrderModule:Recontract', 'ServiceModule:ModifyServiceRequest', 'Recontract__ModifyServiceRequest');
45
+ }
46
+ return this._modifyservicerequest;
47
+ }
42
48
  // ============================================
43
49
  // STANDARD METHODS (Unchanged API)
44
50
  // ============================================
@@ -23,9 +23,11 @@ export declare class ModifyServiceRequestDb extends DbProvider {
23
23
  private sourceRecord;
24
24
  private _orderkci?;
25
25
  private _order?;
26
+ private _recontract?;
26
27
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
27
28
  get orderkci(): DbRecordLinkManager;
28
29
  get order(): DbRecordLinkManager;
30
+ get recontract(): DbRecordLinkManager;
29
31
  setRecord(sourceRecord: any): void;
30
32
  /**
31
33
  * Search records with manual pagination control
@@ -50,6 +50,12 @@ class ModifyServiceRequestDb extends db_provider_1.DbProvider {
50
50
  }
51
51
  return this._order;
52
52
  }
53
+ get recontract() {
54
+ if (!this._recontract) {
55
+ this._recontract = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ServiceModule:ModifyServiceRequest', 'OrderModule:Recontract', 'Recontract__ModifyServiceRequest');
56
+ }
57
+ return this._recontract;
58
+ }
53
59
  // ============================================
54
60
  // STANDARD METHODS
55
61
  // ============================================
@@ -22,8 +22,10 @@ export declare class RecontractDb extends DbProvider {
22
22
  private readonly entityName;
23
23
  private sourceRecord;
24
24
  private _order?;
25
+ private _modifyservicerequest?;
25
26
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
26
27
  get order(): DbRecordLinkManager;
28
+ get modifyservicerequest(): DbRecordLinkManager;
27
29
  setRecord(sourceRecord: any): void;
28
30
  /**
29
31
  * Search records with manual pagination control
@@ -44,6 +44,12 @@ class RecontractDb extends db_provider_1.DbProvider {
44
44
  }
45
45
  return this._order;
46
46
  }
47
+ get modifyservicerequest() {
48
+ if (!this._modifyservicerequest) {
49
+ this._modifyservicerequest = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Recontract', 'ServiceModule:ModifyServiceRequest', 'Recontract__ModifyServiceRequest');
50
+ }
51
+ return this._modifyservicerequest;
52
+ }
47
53
  // ============================================
48
54
  // STANDARD METHODS
49
55
  // ============================================
@@ -384,6 +384,8 @@ export declare enum ContactPropertyKeys {
384
384
  WhitelistedTwilioQueue = "WhitelistedTwilioQueue",
385
385
  /** Time when the whitelisting ends and the user falls back to the main IVR again. */
386
386
  WhitelistTwilioEndTime = "WhitelistTwilioEndTime",
387
+ /** True suppresses every CSAT survey (email, web-chat, SMS) for this contact, regardless of channel. Set via a permission-locked toggle on the Contact detail view. Absent/false = CSAT sends as normal. */
388
+ CsatDisabled = "CsatDisabled",
387
389
  /** Phone number (Sales - Contact) */
388
390
  Phone = "Phone"
389
391
  }
@@ -739,6 +741,12 @@ export interface ContactProperties {
739
741
  * @hidden This field is hidden in the UI
740
742
  */
741
743
  WhitelistTwilioEndTime: string;
744
+ /** True suppresses every CSAT survey (email, web-chat, SMS) for this contact, regardless of channel. Set via a permission-locked toggle on the Contact detail view. Absent/false = CSAT sends as normal.
745
+ *
746
+ * @type {BOOLEAN}
747
+ * @default
748
+ */
749
+ CsatDisabled: boolean;
742
750
  /** Phone number (Sales - Contact)
743
751
  *
744
752
  * @type {PHONE_NUMBER_E164_GB}
@@ -369,6 +369,8 @@ var ContactPropertyKeys;
369
369
  ContactPropertyKeys["WhitelistedTwilioQueue"] = "WhitelistedTwilioQueue";
370
370
  /** Time when the whitelisting ends and the user falls back to the main IVR again. */
371
371
  ContactPropertyKeys["WhitelistTwilioEndTime"] = "WhitelistTwilioEndTime";
372
+ /** True suppresses every CSAT survey (email, web-chat, SMS) for this contact, regardless of channel. Set via a permission-locked toggle on the Contact detail view. Absent/false = CSAT sends as normal. */
373
+ ContactPropertyKeys["CsatDisabled"] = "CsatDisabled";
372
374
  /** Phone number (Sales - Contact) */
373
375
  ContactPropertyKeys["Phone"] = "Phone";
374
376
  })(ContactPropertyKeys = exports.ContactPropertyKeys || (exports.ContactPropertyKeys = {}));
@@ -13,6 +13,7 @@
13
13
  import { OdinRecord, OdinLink, LinkedOdinRecord } from '@d19n/odin-types/dist/core';
14
14
  import { OrderKciProperties } from './OrderKci';
15
15
  import { OrderProperties } from './Order';
16
+ import { RecontractProperties } from './Recontract';
16
17
  /**
17
18
  * Available types for ModifyServiceRequest records
18
19
  */
@@ -183,6 +184,8 @@ export declare class ModifyServiceRequest extends OdinRecord<ModifyServiceReques
183
184
  OrderKci: OdinLink<LinkedOdinRecord<OrderKciProperties>>;
184
185
  /** Linked Order records (ModifyServiceRequest__Order) */
185
186
  Order: OdinLink<LinkedOdinRecord<OrderProperties>>;
187
+ /** Linked Recontract records (Recontract__ModifyServiceRequest) */
188
+ Recontract: OdinLink<LinkedOdinRecord<RecontractProperties>>;
186
189
  }
187
190
  /**
188
191
  * RabbitMQ routing keys for ModifyServiceRequest events
@@ -12,6 +12,7 @@
12
12
  */
13
13
  import { OdinRecord, OdinLink, LinkedOdinRecord } from '@d19n/odin-types/dist/core';
14
14
  import { OrderProperties } from './Order';
15
+ import { ModifyServiceRequestProperties } from './ModifyServiceRequest';
15
16
  /**
16
17
  * Available types for Recontract records
17
18
  */
@@ -19,6 +20,21 @@ export declare enum RecontractEntityTypes {
19
20
  /** This is the default record type */
20
21
  DEFAULT = "DEFAULT"
21
22
  }
23
+ /**
24
+ * Valid values for Recontract.Status
25
+ *
26
+ * Pending while the deferred order-item apply waits on BNG + the Netomnia modify KCI; Applied once the swap/term-write/recalculate has run; Failed if the ModifyServiceRequest resolved to Failed/Cancelled instead (ORD-155). Not a real pipeline — Recontract stays a flat audit record.
27
+ *
28
+ * @remarks Available options:
29
+ * - `APPLIED` - Applied
30
+ * - `FAILED` - Failed
31
+ * - `PENDING` - Pending
32
+ */
33
+ export declare enum RecontractStatus {
34
+ APPLIED = "APPLIED",
35
+ FAILED = "FAILED",
36
+ PENDING = "PENDING"
37
+ }
22
38
  /**
23
39
  * Valid values for Recontract.Source
24
40
  *
@@ -55,6 +71,8 @@ export declare enum RecontractPropertyKeys {
55
71
  PreviousActiveDate = "PreviousActiveDate",
56
72
  /** The amount of days left on the contract at point of recontract */
57
73
  PreviousContractRemaining = "PreviousContractRemaining",
74
+ /** Pending while the deferred order-item apply waits on BNG + the Netomnia modify KCI; Applied once the swap/term-write/recalculate has run; Failed if the ModifyServiceRequest resolved to Failed/Cancelled instead (ORD-155). Not a real pipeline — Recontract stays a flat audit record. */
75
+ Status = "Status",
58
76
  /** Recontract title (e.g. "OR1654429 recontract 2026-07-24"). */
59
77
  Name = "Name",
60
78
  /** Snapshot of the order items BEFORE the recontract (rollback source). */
@@ -131,6 +149,13 @@ export interface RecontractProperties {
131
149
  * @type {NUMBER}
132
150
  */
133
151
  PreviousContractRemaining: number;
152
+ /** Pending while the deferred order-item apply waits on BNG + the Netomnia modify KCI; Applied once the swap/term-write/recalculate has run; Failed if the ModifyServiceRequest resolved to Failed/Cancelled instead (ORD-155). Not a real pipeline — Recontract stays a flat audit record.
153
+ *
154
+ * @type {ENUM}
155
+ * @default
156
+ * @enum {RecontractStatus}
157
+ */
158
+ Status: RecontractStatus;
134
159
  /** Recontract title (e.g. "OR1654429 recontract 2026-07-24").
135
160
  *
136
161
  * @type {TEXT}
@@ -206,6 +231,8 @@ export declare class Recontract extends OdinRecord<RecontractProperties> {
206
231
  properties: RecontractProperties;
207
232
  /** Linked Order records (Recontract__Order) */
208
233
  Order: OdinLink<LinkedOdinRecord<OrderProperties>>;
234
+ /** Linked ModifyServiceRequest records (Recontract__ModifyServiceRequest) */
235
+ ModifyServiceRequest: OdinLink<LinkedOdinRecord<ModifyServiceRequestProperties>>;
209
236
  }
210
237
  /**
211
238
  * RabbitMQ routing keys for Recontract events
@@ -227,3 +254,7 @@ export declare const ROUTING_KEY_RECONTRACT_DEFAULT_DELETED = "OrderModule.Recon
227
254
  export declare const ROUTING_KEY_LINK_RECONTRACT_ORDER_CREATED = "OrderModule.Recontract.Order.SubDbRecordAssociationCreated";
228
255
  /** Event: Recontract__Order link deleted */
229
256
  export declare const ROUTING_KEY_LINK_RECONTRACT_ORDER_DELETED = "OrderModule.Recontract.Order.SubDbRecordAssociationDeleted";
257
+ /** Event: Recontract__ModifyServiceRequest link created */
258
+ export declare const ROUTING_KEY_LINK_RECONTRACT_MODIFY_SERVICE_REQUEST_CREATED = "OrderModule.Recontract.ModifyServiceRequest.SubDbRecordAssociationCreated";
259
+ /** Event: Recontract__ModifyServiceRequest link deleted */
260
+ export declare const ROUTING_KEY_LINK_RECONTRACT_MODIFY_SERVICE_REQUEST_DELETED = "OrderModule.Recontract.ModifyServiceRequest.SubDbRecordAssociationDeleted";
@@ -12,7 +12,7 @@
12
12
  * Generated from Odin schema definition
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ROUTING_KEY_LINK_RECONTRACT_ORDER_DELETED = exports.ROUTING_KEY_LINK_RECONTRACT_ORDER_CREATED = exports.ROUTING_KEY_RECONTRACT_DEFAULT_DELETED = exports.ROUTING_KEY_RECONTRACT_DEFAULT_UPDATED = exports.ROUTING_KEY_RECONTRACT_DEFAULT_CREATED = exports.ROUTING_KEY_RECONTRACT_DELETED = exports.ROUTING_KEY_RECONTRACT_UPDATED = exports.ROUTING_KEY_RECONTRACT_CREATED = exports.Recontract = exports.RecontractPropertyKeys = exports.RecontractSource = exports.RecontractEntityTypes = void 0;
15
+ exports.ROUTING_KEY_LINK_RECONTRACT_MODIFY_SERVICE_REQUEST_DELETED = exports.ROUTING_KEY_LINK_RECONTRACT_MODIFY_SERVICE_REQUEST_CREATED = exports.ROUTING_KEY_LINK_RECONTRACT_ORDER_DELETED = exports.ROUTING_KEY_LINK_RECONTRACT_ORDER_CREATED = exports.ROUTING_KEY_RECONTRACT_DEFAULT_DELETED = exports.ROUTING_KEY_RECONTRACT_DEFAULT_UPDATED = exports.ROUTING_KEY_RECONTRACT_DEFAULT_CREATED = exports.ROUTING_KEY_RECONTRACT_DELETED = exports.ROUTING_KEY_RECONTRACT_UPDATED = exports.ROUTING_KEY_RECONTRACT_CREATED = exports.Recontract = exports.RecontractPropertyKeys = exports.RecontractSource = exports.RecontractStatus = exports.RecontractEntityTypes = void 0;
16
16
  const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * Available types for Recontract records
@@ -22,6 +22,22 @@ var RecontractEntityTypes;
22
22
  /** This is the default record type */
23
23
  RecontractEntityTypes["DEFAULT"] = "DEFAULT";
24
24
  })(RecontractEntityTypes = exports.RecontractEntityTypes || (exports.RecontractEntityTypes = {}));
25
+ /**
26
+ * Valid values for Recontract.Status
27
+ *
28
+ * Pending while the deferred order-item apply waits on BNG + the Netomnia modify KCI; Applied once the swap/term-write/recalculate has run; Failed if the ModifyServiceRequest resolved to Failed/Cancelled instead (ORD-155). Not a real pipeline — Recontract stays a flat audit record.
29
+ *
30
+ * @remarks Available options:
31
+ * - `APPLIED` - Applied
32
+ * - `FAILED` - Failed
33
+ * - `PENDING` - Pending
34
+ */
35
+ var RecontractStatus;
36
+ (function (RecontractStatus) {
37
+ RecontractStatus["APPLIED"] = "APPLIED";
38
+ RecontractStatus["FAILED"] = "FAILED";
39
+ RecontractStatus["PENDING"] = "PENDING";
40
+ })(RecontractStatus = exports.RecontractStatus || (exports.RecontractStatus = {}));
25
41
  /**
26
42
  * Valid values for Recontract.Source
27
43
  *
@@ -60,6 +76,8 @@ var RecontractPropertyKeys;
60
76
  RecontractPropertyKeys["PreviousActiveDate"] = "PreviousActiveDate";
61
77
  /** The amount of days left on the contract at point of recontract */
62
78
  RecontractPropertyKeys["PreviousContractRemaining"] = "PreviousContractRemaining";
79
+ /** Pending while the deferred order-item apply waits on BNG + the Netomnia modify KCI; Applied once the swap/term-write/recalculate has run; Failed if the ModifyServiceRequest resolved to Failed/Cancelled instead (ORD-155). Not a real pipeline — Recontract stays a flat audit record. */
80
+ RecontractPropertyKeys["Status"] = "Status";
63
81
  /** Recontract title (e.g. "OR1654429 recontract 2026-07-24"). */
64
82
  RecontractPropertyKeys["Name"] = "Name";
65
83
  /** Snapshot of the order items BEFORE the recontract (rollback source). */
@@ -120,3 +138,7 @@ exports.ROUTING_KEY_RECONTRACT_DEFAULT_DELETED = 'OrderModule.Recontract.DEFAULT
120
138
  exports.ROUTING_KEY_LINK_RECONTRACT_ORDER_CREATED = 'OrderModule.Recontract.Order.SubDbRecordAssociationCreated';
121
139
  /** Event: Recontract__Order link deleted */
122
140
  exports.ROUTING_KEY_LINK_RECONTRACT_ORDER_DELETED = 'OrderModule.Recontract.Order.SubDbRecordAssociationDeleted';
141
+ /** Event: Recontract__ModifyServiceRequest link created */
142
+ exports.ROUTING_KEY_LINK_RECONTRACT_MODIFY_SERVICE_REQUEST_CREATED = 'OrderModule.Recontract.ModifyServiceRequest.SubDbRecordAssociationCreated';
143
+ /** Event: Recontract__ModifyServiceRequest link deleted */
144
+ exports.ROUTING_KEY_LINK_RECONTRACT_MODIFY_SERVICE_REQUEST_DELETED = 'OrderModule.Recontract.ModifyServiceRequest.SubDbRecordAssociationDeleted';