@d19n/youfibre-odin-sdk 2.0.211 → 2.0.213
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -1
- package/dist/actions-v2/CancelActiveOrderDto.d.ts +1 -1
- package/dist/actions-v2/CancelOrderForRecontractDto.d.ts +67 -0
- package/dist/actions-v2/CancelOrderForRecontractDto.js +59 -0
- package/dist/actions-v2/CancelOrderForRollbackDto.d.ts +67 -0
- package/dist/actions-v2/CancelOrderForRollbackDto.js +59 -0
- package/dist/actions-v2/CboUpdateDto.d.ts +1 -1
- package/dist/actions-v2/CreateChurnRequestDto.d.ts +1 -1
- package/dist/actions-v2/DefaultUpdateChurnRequestDto.d.ts +15 -1
- package/dist/actions-v2/ImportTwilioActivityDto.d.ts +84 -0
- package/dist/actions-v2/ImportTwilioActivityDto.js +54 -0
- package/dist/actions-v2/ImportTwilioTaskQueueDto.d.ts +58 -0
- package/dist/actions-v2/ImportTwilioTaskQueueDto.js +54 -0
- package/dist/actions-v2/ImportTwilioWorkerDto.d.ts +195 -0
- package/dist/actions-v2/ImportTwilioWorkerDto.js +174 -0
- package/dist/actions-v2/MoveOrderFromDeactivatedToCancelledDto.d.ts +1 -1
- package/dist/actions-v2/MoveOrderFromPendingCancellationToCancelledDto.d.ts +1 -1
- package/dist/actions-v2/MoveOrderFromSupplyToSoldDto.d.ts +67 -0
- package/dist/actions-v2/MoveOrderFromSupplyToSoldDto.js +59 -0
- package/dist/actions-v2/UpdateOrderDto.d.ts +39 -1
- package/dist/entities-v2/Order.d.ts +10 -13
- package/dist/entities-v2/Order.js +3 -5
- package/dist/records-v2/OrderRecord.d.ts +75 -0
- package/dist/records-v2/OrderRecord.js +87 -0
- package/dist/records-v2/TwilioActivityRecord.d.ts +29 -0
- package/dist/records-v2/TwilioActivityRecord.js +36 -0
- package/dist/records-v2/TwilioTaskQueueRecord.d.ts +29 -0
- package/dist/records-v2/TwilioTaskQueueRecord.js +36 -0
- package/dist/records-v2/TwilioWorkerRecord.d.ts +27 -0
- package/dist/records-v2/TwilioWorkerRecord.js +25 -0
- package/package.json +1 -1
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ImportTwilioWorker Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Import Twilio worker
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity TwilioWorker
|
|
8
|
+
* @actionKey ImportTwilioWorker
|
|
9
|
+
* @event k1.t-hEOJjsDb.SupportModule.TwilioWorker.Create.ImportTwilioWorker
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordCreateDto, OdinRecordCreatedEvent, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for ImportTwilioWorker created events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.SupportModule.TwilioWorker.Create.ImportTwilioWorker
|
|
18
|
+
*/
|
|
19
|
+
export interface ImportTwilioWorkerMessage extends OdinRecordCreatedEvent<ImportTwilioWorkerDto, ImportTwilioWorkerProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for ImportTwilioWorker action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 4
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface ImportTwilioWorkerProperties {
|
|
28
|
+
/**
|
|
29
|
+
* Name
|
|
30
|
+
*
|
|
31
|
+
* Worker name
|
|
32
|
+
* @type {TEXT}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
Name: string;
|
|
36
|
+
/**
|
|
37
|
+
* TwilioSid
|
|
38
|
+
*
|
|
39
|
+
* Twilio worker sid
|
|
40
|
+
* @type {TEXT}
|
|
41
|
+
* @required
|
|
42
|
+
*/
|
|
43
|
+
TwilioSid: string;
|
|
44
|
+
/**
|
|
45
|
+
* UserId
|
|
46
|
+
*
|
|
47
|
+
* User reference
|
|
48
|
+
* @type {LOOKUP}
|
|
49
|
+
* @required
|
|
50
|
+
*/
|
|
51
|
+
UserId: string;
|
|
52
|
+
/**
|
|
53
|
+
* Activity
|
|
54
|
+
*
|
|
55
|
+
* Current twilio activity status
|
|
56
|
+
* @type {TEXT}
|
|
57
|
+
* @required
|
|
58
|
+
*/
|
|
59
|
+
Activity: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Builder for ImportTwilioWorker action
|
|
63
|
+
*
|
|
64
|
+
* Provides fluent API for adding associations before executing the action.
|
|
65
|
+
* Use .link*() methods to add associations, then call .execute() to run.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```typescript
|
|
69
|
+
* await record.importTwilioWorker({ ...properties })
|
|
70
|
+
* .linkAssociation_1782232776541({ id: '...', entity: '...' })
|
|
71
|
+
* .execute();
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
export declare class ImportTwilioWorkerBuilder {
|
|
75
|
+
private _associations;
|
|
76
|
+
private _properties;
|
|
77
|
+
private _pendingLinks;
|
|
78
|
+
private _options?;
|
|
79
|
+
private _provider?;
|
|
80
|
+
private _moduleName?;
|
|
81
|
+
private _entityName?;
|
|
82
|
+
private _clearPendingLinks?;
|
|
83
|
+
private _externalId?;
|
|
84
|
+
private _externalAppId?;
|
|
85
|
+
private _groups?;
|
|
86
|
+
constructor(properties: ImportTwilioWorkerProperties, pendingLinks: OdinRecordLinkDto[], options?: {
|
|
87
|
+
journeyId?: string;
|
|
88
|
+
stageKey?: string;
|
|
89
|
+
});
|
|
90
|
+
/**
|
|
91
|
+
* Link TwilioTaskQueue__TwilioWorker
|
|
92
|
+
* @schemaAssociationId 9de524e5-a0e3-4580-a5eb-e19faf5711c3
|
|
93
|
+
* @required
|
|
94
|
+
* @param target - The record to link
|
|
95
|
+
* @returns this (for method chaining)
|
|
96
|
+
*/
|
|
97
|
+
linkAssociation_1782232776541(target: OdinRecord<any> | {
|
|
98
|
+
id: string;
|
|
99
|
+
entity: string;
|
|
100
|
+
}): this;
|
|
101
|
+
/**
|
|
102
|
+
* Set an external system identifier for this record.
|
|
103
|
+
* Links the record to a corresponding entry in an external application.
|
|
104
|
+
* @param externalId - The ID in the external system
|
|
105
|
+
* @param externalAppId - The external application identifier
|
|
106
|
+
* @returns this (for chaining)
|
|
107
|
+
*/
|
|
108
|
+
withExternalId(externalId: string, externalAppId: string): this;
|
|
109
|
+
/**
|
|
110
|
+
* Set security/access groups for this record.
|
|
111
|
+
* @param groups - Array of group names
|
|
112
|
+
* @returns this (for chaining)
|
|
113
|
+
*/
|
|
114
|
+
withGroups(groups: string[]): this;
|
|
115
|
+
/**
|
|
116
|
+
* Get the action payload without executing
|
|
117
|
+
* @returns The action data that would be sent
|
|
118
|
+
*/
|
|
119
|
+
getData(): {
|
|
120
|
+
entity: string;
|
|
121
|
+
type: string | undefined;
|
|
122
|
+
actionName: string;
|
|
123
|
+
properties: ImportTwilioWorkerProperties;
|
|
124
|
+
associations?: OdinRecordLinkDto[];
|
|
125
|
+
journeyId?: string;
|
|
126
|
+
stageKey?: string;
|
|
127
|
+
externalId?: string;
|
|
128
|
+
externalAppId?: string;
|
|
129
|
+
groups?: string[];
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Inject execution context (called by record wrapper)
|
|
133
|
+
* @internal
|
|
134
|
+
*/
|
|
135
|
+
withProvider(provider: {
|
|
136
|
+
_applyAction(moduleName: string, entityName: string, payload: any): Promise<any>;
|
|
137
|
+
}, moduleName: string, entityName: string, clearPendingLinks: () => void): this;
|
|
138
|
+
/**
|
|
139
|
+
* Execute the action
|
|
140
|
+
* @returns The result from the API
|
|
141
|
+
* @throws Error if withProvider() has not been called
|
|
142
|
+
*/
|
|
143
|
+
execute(): Promise<any>;
|
|
144
|
+
/**
|
|
145
|
+
* Returns the request payload without executing (for debugging)
|
|
146
|
+
* @returns The request payload that would be sent to the API
|
|
147
|
+
*/
|
|
148
|
+
dryRun(): Record<string, any>;
|
|
149
|
+
/**
|
|
150
|
+
* Prevents accidental `await builder` without .execute()
|
|
151
|
+
* @throws Error always - use .execute() or .dryRun() instead
|
|
152
|
+
*/
|
|
153
|
+
then(): never;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* ImportTwilioWorker
|
|
157
|
+
*
|
|
158
|
+
* Import Twilio worker
|
|
159
|
+
*
|
|
160
|
+
* @actionType CREATE - Creates a new TwilioWorker record
|
|
161
|
+
* @module SupportModule
|
|
162
|
+
* @entity TwilioWorker
|
|
163
|
+
* @event k1.t-hEOJjsDb.SupportModule.TwilioWorker.Create.ImportTwilioWorker
|
|
164
|
+
* @permission schema.action.importtwilioworker.trigger
|
|
165
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
166
|
+
*/
|
|
167
|
+
export declare class ImportTwilioWorkerDto extends OdinRecordCreateDto<ImportTwilioWorkerProperties> {
|
|
168
|
+
/** Used by SDK generators to identify action type */
|
|
169
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
170
|
+
static readonly ACTION_KEY = "ImportTwilioWorker";
|
|
171
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
172
|
+
static readonly ENTITIES: string[];
|
|
173
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.TwilioWorker.Create.ImportTwilioWorker";
|
|
174
|
+
static readonly PERMISSION = "schema.action.importtwilioworker.trigger";
|
|
175
|
+
/** Step metadata - entity this action targets */
|
|
176
|
+
static readonly STEP_ENTITY = "SupportModule:TwilioWorker";
|
|
177
|
+
static readonly STEP_SCHEMA_ID = "79448527-2fc1-4d0d-a9a8-67fbd58b3df4";
|
|
178
|
+
static readonly STEP_SCHEMA_ACTION_ID = "2148e096-75e0-440a-ae51-fc8890eda66b";
|
|
179
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
180
|
+
static readonly HAS_ASSOCIATIONS = true;
|
|
181
|
+
static readonly HAS_REQUIRED_ASSOCIATIONS = true;
|
|
182
|
+
static readonly BUILDER_CLASS = "ImportTwilioWorkerBuilder";
|
|
183
|
+
static readonly ASSOCIATION_FIELDS: readonly [{
|
|
184
|
+
readonly name: "Association_1782232776541";
|
|
185
|
+
readonly methodName: "linkAssociation_1782232776541";
|
|
186
|
+
readonly required: true;
|
|
187
|
+
readonly schemaAssociationId: "9de524e5-a0e3-4580-a5eb-e19faf5711c3";
|
|
188
|
+
}];
|
|
189
|
+
readonly actionName: string;
|
|
190
|
+
readonly schemaActionId: string;
|
|
191
|
+
readonly entity: string;
|
|
192
|
+
constructor(properties: ImportTwilioWorkerProperties, options?: {
|
|
193
|
+
journeyId?: string;
|
|
194
|
+
});
|
|
195
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ImportTwilioWorker Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Import Twilio worker
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity TwilioWorker
|
|
9
|
+
* @actionKey ImportTwilioWorker
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.TwilioWorker.Create.ImportTwilioWorker
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.ImportTwilioWorkerDto = exports.ImportTwilioWorkerBuilder = void 0;
|
|
25
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
26
|
+
/**
|
|
27
|
+
* Builder for ImportTwilioWorker action
|
|
28
|
+
*
|
|
29
|
+
* Provides fluent API for adding associations before executing the action.
|
|
30
|
+
* Use .link*() methods to add associations, then call .execute() to run.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```typescript
|
|
34
|
+
* await record.importTwilioWorker({ ...properties })
|
|
35
|
+
* .linkAssociation_1782232776541({ id: '...', entity: '...' })
|
|
36
|
+
* .execute();
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
class ImportTwilioWorkerBuilder {
|
|
40
|
+
constructor(properties, pendingLinks, options) {
|
|
41
|
+
this._associations = [];
|
|
42
|
+
this._properties = properties;
|
|
43
|
+
this._pendingLinks = pendingLinks;
|
|
44
|
+
this._options = options;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Link TwilioTaskQueue__TwilioWorker
|
|
48
|
+
* @schemaAssociationId 9de524e5-a0e3-4580-a5eb-e19faf5711c3
|
|
49
|
+
* @required
|
|
50
|
+
* @param target - The record to link
|
|
51
|
+
* @returns this (for method chaining)
|
|
52
|
+
*/
|
|
53
|
+
linkAssociation_1782232776541(target) {
|
|
54
|
+
this._associations.push(new core_1.OdinRecordLinkDto({
|
|
55
|
+
id: target.id,
|
|
56
|
+
entity: 'entity' in target ? target.entity : target.entity,
|
|
57
|
+
}));
|
|
58
|
+
return this;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Set an external system identifier for this record.
|
|
62
|
+
* Links the record to a corresponding entry in an external application.
|
|
63
|
+
* @param externalId - The ID in the external system
|
|
64
|
+
* @param externalAppId - The external application identifier
|
|
65
|
+
* @returns this (for chaining)
|
|
66
|
+
*/
|
|
67
|
+
withExternalId(externalId, externalAppId) {
|
|
68
|
+
this._externalId = externalId;
|
|
69
|
+
this._externalAppId = externalAppId;
|
|
70
|
+
return this;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Set security/access groups for this record.
|
|
74
|
+
* @param groups - Array of group names
|
|
75
|
+
* @returns this (for chaining)
|
|
76
|
+
*/
|
|
77
|
+
withGroups(groups) {
|
|
78
|
+
this._groups = groups;
|
|
79
|
+
return this;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Get the action payload without executing
|
|
83
|
+
* @returns The action data that would be sent
|
|
84
|
+
*/
|
|
85
|
+
getData() {
|
|
86
|
+
var _a, _b;
|
|
87
|
+
const allAssociations = [...this._associations, ...this._pendingLinks];
|
|
88
|
+
return Object.assign(Object.assign({ entity: 'SupportModule:TwilioWorker', type: undefined, actionName: 'ImportTwilioWorker', properties: this._properties, associations: allAssociations.length > 0 ? allAssociations : undefined, journeyId: (_a = this._options) === null || _a === void 0 ? void 0 : _a.journeyId, stageKey: (_b = this._options) === null || _b === void 0 ? void 0 : _b.stageKey }, (this._externalId && { externalId: this._externalId, externalAppId: this._externalAppId })), (this._groups && { groups: this._groups }));
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Inject execution context (called by record wrapper)
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
withProvider(provider, moduleName, entityName, clearPendingLinks) {
|
|
95
|
+
this._provider = provider;
|
|
96
|
+
this._moduleName = moduleName;
|
|
97
|
+
this._entityName = entityName;
|
|
98
|
+
this._clearPendingLinks = clearPendingLinks;
|
|
99
|
+
return this;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Execute the action
|
|
103
|
+
* @returns The result from the API
|
|
104
|
+
* @throws Error if withProvider() has not been called
|
|
105
|
+
*/
|
|
106
|
+
execute() {
|
|
107
|
+
var _a;
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
if (!this._provider || !this._moduleName || !this._entityName) {
|
|
110
|
+
throw new Error('Builder not connected to provider. Use the record wrapper API to get an executable builder.');
|
|
111
|
+
}
|
|
112
|
+
const result = yield this._provider._applyAction(this._moduleName, this._entityName, this.getData());
|
|
113
|
+
(_a = this._clearPendingLinks) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
114
|
+
return result;
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Returns the request payload without executing (for debugging)
|
|
119
|
+
* @returns The request payload that would be sent to the API
|
|
120
|
+
*/
|
|
121
|
+
dryRun() {
|
|
122
|
+
return this.getData();
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Prevents accidental `await builder` without .execute()
|
|
126
|
+
* @throws Error always - use .execute() or .dryRun() instead
|
|
127
|
+
*/
|
|
128
|
+
then() {
|
|
129
|
+
throw new Error('Builder cannot be awaited directly. Call .execute() to run the action or .dryRun() to get the payload.');
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.ImportTwilioWorkerBuilder = ImportTwilioWorkerBuilder;
|
|
133
|
+
/**
|
|
134
|
+
* ImportTwilioWorker
|
|
135
|
+
*
|
|
136
|
+
* Import Twilio worker
|
|
137
|
+
*
|
|
138
|
+
* @actionType CREATE - Creates a new TwilioWorker record
|
|
139
|
+
* @module SupportModule
|
|
140
|
+
* @entity TwilioWorker
|
|
141
|
+
* @event k1.t-hEOJjsDb.SupportModule.TwilioWorker.Create.ImportTwilioWorker
|
|
142
|
+
* @permission schema.action.importtwilioworker.trigger
|
|
143
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
144
|
+
*/
|
|
145
|
+
class ImportTwilioWorkerDto extends core_1.OdinRecordCreateDto {
|
|
146
|
+
constructor(properties, options) {
|
|
147
|
+
super({
|
|
148
|
+
entity: 'SupportModule:TwilioWorker',
|
|
149
|
+
type: undefined,
|
|
150
|
+
properties,
|
|
151
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
152
|
+
});
|
|
153
|
+
this.actionName = 'ImportTwilioWorker';
|
|
154
|
+
this.schemaActionId = '2148e096-75e0-440a-ae51-fc8890eda66b';
|
|
155
|
+
this.entity = 'SupportModule:TwilioWorker';
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
exports.ImportTwilioWorkerDto = ImportTwilioWorkerDto;
|
|
159
|
+
/** Used by SDK generators to identify action type */
|
|
160
|
+
ImportTwilioWorkerDto.ACTION_TYPE = 'CREATE';
|
|
161
|
+
ImportTwilioWorkerDto.ACTION_KEY = 'ImportTwilioWorker';
|
|
162
|
+
ImportTwilioWorkerDto.MODULE_NAME = 'SupportModule';
|
|
163
|
+
ImportTwilioWorkerDto.ENTITIES = ['TwilioWorker'];
|
|
164
|
+
ImportTwilioWorkerDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.TwilioWorker.Create.ImportTwilioWorker';
|
|
165
|
+
ImportTwilioWorkerDto.PERMISSION = 'schema.action.importtwilioworker.trigger';
|
|
166
|
+
/** Step metadata - entity this action targets */
|
|
167
|
+
ImportTwilioWorkerDto.STEP_ENTITY = 'SupportModule:TwilioWorker';
|
|
168
|
+
ImportTwilioWorkerDto.STEP_SCHEMA_ID = '79448527-2fc1-4d0d-a9a8-67fbd58b3df4';
|
|
169
|
+
ImportTwilioWorkerDto.STEP_SCHEMA_ACTION_ID = '2148e096-75e0-440a-ae51-fc8890eda66b';
|
|
170
|
+
ImportTwilioWorkerDto.AUTO_LINK_PARENT = true;
|
|
171
|
+
ImportTwilioWorkerDto.HAS_ASSOCIATIONS = true;
|
|
172
|
+
ImportTwilioWorkerDto.HAS_REQUIRED_ASSOCIATIONS = true;
|
|
173
|
+
ImportTwilioWorkerDto.BUILDER_CLASS = 'ImportTwilioWorkerBuilder';
|
|
174
|
+
ImportTwilioWorkerDto.ASSOCIATION_FIELDS = [{ "name": "Association_1782232776541", "methodName": "linkAssociation_1782232776541", "required": true, "schemaAssociationId": "9de524e5-a0e3-4580-a5eb-e19faf5711c3" }];
|
|
@@ -57,7 +57,7 @@ export interface CreateChurnRequestProperties {
|
|
|
57
57
|
* Customer Relocation Address
|
|
58
58
|
* @type {LOOKUP}
|
|
59
59
|
* @visibleWhen Reason = ["SALES_MOVE_OUT","SALES_MOVE_OUT_IN_AREA"]
|
|
60
|
-
* @requiredWhen CustomerAddressInfoNotProvided = ["false"]
|
|
60
|
+
* @requiredWhen CustomerAddressInfoNotProvided = ["false"] AND = []
|
|
61
61
|
*/
|
|
62
62
|
MovingToAddress?: string | null;
|
|
63
63
|
}
|
|
@@ -57,7 +57,7 @@ export interface CreateChurnRequestProperties {
|
|
|
57
57
|
* Customer Relocation Address
|
|
58
58
|
* @type {LOOKUP}
|
|
59
59
|
* @visibleWhen Reason = ["SALES_MOVE_OUT","SALES_MOVE_OUT_IN_AREA"]
|
|
60
|
-
* @requiredWhen CustomerAddressInfoNotProvided = ["false"]
|
|
60
|
+
* @requiredWhen CustomerAddressInfoNotProvided = ["false"] AND = []
|
|
61
61
|
*/
|
|
62
62
|
MovingToAddress?: string | null;
|
|
63
63
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MoveOrderFromSupplyToSold Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Move order from supply to sold
|
|
5
|
+
*
|
|
6
|
+
* @module OrderModule
|
|
7
|
+
* @entity Order
|
|
8
|
+
* @actionKey MoveOrderFromSupplyToSold
|
|
9
|
+
* @event k1.t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToSold
|
|
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 MoveOrderFromSupplyToSold step flow events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToSold
|
|
18
|
+
*/
|
|
19
|
+
export interface MoveOrderFromSupplyToSoldMessage extends OdinRecordUpdatedEvent<MoveOrderFromSupplyToSoldDto, {}> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for MoveOrderFromSupplyToSold action
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export interface MoveOrderFromSupplyToSoldProperties {
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* MoveOrderFromSupplyToSold
|
|
29
|
+
*
|
|
30
|
+
* Move order from supply to sold
|
|
31
|
+
*
|
|
32
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
33
|
+
* @module OrderModule
|
|
34
|
+
* @entity Order
|
|
35
|
+
* @targetStages OrderStageSold
|
|
36
|
+
* @event k1.t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToSold
|
|
37
|
+
* @permission schema.action.moveorderfromsupplytosold.trigger
|
|
38
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
39
|
+
*/
|
|
40
|
+
export declare class MoveOrderFromSupplyToSoldDto 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 = "MoveOrderFromSupplyToSold";
|
|
44
|
+
static readonly MODULE_NAME = "OrderModule";
|
|
45
|
+
static readonly ENTITIES: string[];
|
|
46
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToSold";
|
|
47
|
+
static readonly SCHEMA_ACTION_ID = "6ca75a74-4363-42b8-81db-2111a3cf050a";
|
|
48
|
+
static readonly PERMISSION = "schema.action.moveorderfromsupplytosold.trigger";
|
|
49
|
+
static readonly TARGET_STAGES: readonly ["OrderStageSold"];
|
|
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
|
+
* MoveOrderFromSupplyToSold Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Move order from supply to sold
|
|
6
|
+
*
|
|
7
|
+
* @module OrderModule
|
|
8
|
+
* @entity Order
|
|
9
|
+
* @actionKey MoveOrderFromSupplyToSold
|
|
10
|
+
* @event k1.t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToSold
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.MoveOrderFromSupplyToSoldDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* MoveOrderFromSupplyToSold
|
|
19
|
+
*
|
|
20
|
+
* Move order from supply to sold
|
|
21
|
+
*
|
|
22
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
23
|
+
* @module OrderModule
|
|
24
|
+
* @entity Order
|
|
25
|
+
* @targetStages OrderStageSold
|
|
26
|
+
* @event k1.t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToSold
|
|
27
|
+
* @permission schema.action.moveorderfromsupplytosold.trigger
|
|
28
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
29
|
+
*/
|
|
30
|
+
class MoveOrderFromSupplyToSoldDto 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 = 'MoveOrderFromSupplyToSold';
|
|
40
|
+
this.schemaActionId = '6ca75a74-4363-42b8-81db-2111a3cf050a';
|
|
41
|
+
this.entity = 'OrderModule:Order';
|
|
42
|
+
this.stageKey = 'OrderStageSold';
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.MoveOrderFromSupplyToSoldDto = MoveOrderFromSupplyToSoldDto;
|
|
46
|
+
/** Used by SDK generators to identify action type */
|
|
47
|
+
MoveOrderFromSupplyToSoldDto.ACTION_TYPE = 'UPDATE';
|
|
48
|
+
MoveOrderFromSupplyToSoldDto.ACTION_KEY = 'MoveOrderFromSupplyToSold';
|
|
49
|
+
MoveOrderFromSupplyToSoldDto.MODULE_NAME = 'OrderModule';
|
|
50
|
+
MoveOrderFromSupplyToSoldDto.ENTITIES = ['Order'];
|
|
51
|
+
MoveOrderFromSupplyToSoldDto.EVENT_NAME = 'k1.t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToSold';
|
|
52
|
+
MoveOrderFromSupplyToSoldDto.SCHEMA_ACTION_ID = '6ca75a74-4363-42b8-81db-2111a3cf050a';
|
|
53
|
+
MoveOrderFromSupplyToSoldDto.PERMISSION = 'schema.action.moveorderfromsupplytosold.trigger';
|
|
54
|
+
MoveOrderFromSupplyToSoldDto.TARGET_STAGES = ['OrderStageSold'];
|
|
55
|
+
MoveOrderFromSupplyToSoldDto.IS_STAGE_TRANSITION = true;
|
|
56
|
+
MoveOrderFromSupplyToSoldDto.IS_MULTI_STEP_FLOW = false;
|
|
57
|
+
MoveOrderFromSupplyToSoldDto.HAS_STEP_LINKS = false;
|
|
58
|
+
/** Step classes that can be used with this action */
|
|
59
|
+
MoveOrderFromSupplyToSoldDto.stepClasses = [];
|
|
@@ -22,7 +22,7 @@ export interface UpdateOrderMessage extends OdinRecordUpdatedEvent<UpdateOrderDt
|
|
|
22
22
|
* Properties for UpdateOrder action
|
|
23
23
|
*
|
|
24
24
|
* @property Required fields: 0
|
|
25
|
-
* @property Optional fields:
|
|
25
|
+
* @property Optional fields: 8
|
|
26
26
|
*/
|
|
27
27
|
export interface UpdateOrderProperties {
|
|
28
28
|
/**
|
|
@@ -46,6 +46,44 @@ export interface UpdateOrderProperties {
|
|
|
46
46
|
* @type {TEXT}
|
|
47
47
|
*/
|
|
48
48
|
ExternalRefBrskFNO?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* alert message
|
|
51
|
+
*
|
|
52
|
+
* alerts that need to be visible on the order (Sales - Order)
|
|
53
|
+
* @type {TEXT_LONG}
|
|
54
|
+
*/
|
|
55
|
+
AlertMessage?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* alert message date
|
|
58
|
+
*
|
|
59
|
+
* the date of the alert message (Sales - Order)
|
|
60
|
+
* @type {DATE}
|
|
61
|
+
* @format DD/MM/YYYY
|
|
62
|
+
*/
|
|
63
|
+
AlertMessageDate?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* active date
|
|
66
|
+
*
|
|
67
|
+
* active date (Sales - Order)
|
|
68
|
+
* @type {DATE}
|
|
69
|
+
* @format DD/MM/YYYY
|
|
70
|
+
*/
|
|
71
|
+
ActiveDate?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* billing start date
|
|
74
|
+
*
|
|
75
|
+
* Billing start date (Sales - Order)
|
|
76
|
+
* @type {DATE}
|
|
77
|
+
* @format DD/MM/YYYY
|
|
78
|
+
*/
|
|
79
|
+
BillingStartDate?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* billing day
|
|
82
|
+
*
|
|
83
|
+
* Billing day in the month (Sales - Order)
|
|
84
|
+
* @type {NUMBER}
|
|
85
|
+
*/
|
|
86
|
+
BillingDay?: number | null;
|
|
49
87
|
}
|
|
50
88
|
/**
|
|
51
89
|
* UpdateOrder
|
|
@@ -244,7 +244,6 @@ export declare enum OrderBillingTerms {
|
|
|
244
244
|
* - `NETOMNIA_LEGACY` - Netomnia legacy
|
|
245
245
|
* - `OPENREACH` - Openreach
|
|
246
246
|
* - `PYOMNI` - PyOmni
|
|
247
|
-
* - `VMO2`
|
|
248
247
|
*/
|
|
249
248
|
export declare enum OrderProvider {
|
|
250
249
|
BRSK = "BRSK",
|
|
@@ -252,8 +251,7 @@ export declare enum OrderProvider {
|
|
|
252
251
|
NETOMNIA = "NETOMNIA",
|
|
253
252
|
NETOMNIA_LEGACY = "NETOMNIA_LEGACY",
|
|
254
253
|
OPENREACH = "OPENREACH",
|
|
255
|
-
PY_OMNI = "PYOMNI"
|
|
256
|
-
VMO2 = "VMO2"
|
|
254
|
+
PY_OMNI = "PYOMNI"
|
|
257
255
|
}
|
|
258
256
|
/**
|
|
259
257
|
* Valid values for Order.ActivationStatus
|
|
@@ -467,10 +465,10 @@ export declare enum OrderPropertyKeys {
|
|
|
467
465
|
CashbackApprovalDate = "CashbackApprovalDate",
|
|
468
466
|
/** Supplier-committed fulfillment date carried on COMMITTED KCI (per yf-kci-effect-bridge.ts#provide-committed). Stamped onto YF Order via walker-driven receiveKci PROPERTY_WRITE. */
|
|
469
467
|
CommittedDate = "CommittedDate",
|
|
470
|
-
/**
|
|
471
|
-
ExternalReferenceOts = "ExternalReferenceOts",
|
|
472
|
-
/** Brsk OTS Data (Legacy) */
|
|
468
|
+
/** LegacyBrskOtsData */
|
|
473
469
|
LegacyBrskOtsData = "LegacyBrskOtsData",
|
|
470
|
+
/** One Touch Switch reference number */
|
|
471
|
+
ExternalReferenceOts = "ExternalReferenceOts",
|
|
474
472
|
/** status of the order (must be activated for billing) (Sales - Order) */
|
|
475
473
|
ActivationStatus = "ActivationStatus"
|
|
476
474
|
}
|
|
@@ -1045,19 +1043,18 @@ export interface OrderProperties {
|
|
|
1045
1043
|
/** Supplier-committed fulfillment date carried on COMMITTED KCI (per yf-kci-effect-bridge.ts#provide-committed). Stamped onto YF Order via walker-driven receiveKci PROPERTY_WRITE.
|
|
1046
1044
|
*
|
|
1047
1045
|
* @type {DATE}
|
|
1048
|
-
* @tracked Changes to this field are tracked in audit history
|
|
1049
1046
|
*/
|
|
1050
1047
|
CommittedDate: string;
|
|
1051
|
-
/**
|
|
1052
|
-
*
|
|
1053
|
-
* @type {TEXT}
|
|
1054
|
-
*/
|
|
1055
|
-
ExternalReferenceOts: string;
|
|
1056
|
-
/** Brsk OTS Data (Legacy)
|
|
1048
|
+
/** LegacyBrskOtsData
|
|
1057
1049
|
*
|
|
1058
1050
|
* @type {JSON}
|
|
1059
1051
|
*/
|
|
1060
1052
|
LegacyBrskOtsData: string;
|
|
1053
|
+
/** One Touch Switch reference number
|
|
1054
|
+
*
|
|
1055
|
+
* @type {TEXT}
|
|
1056
|
+
*/
|
|
1057
|
+
ExternalReferenceOts: string;
|
|
1061
1058
|
/** status of the order (must be activated for billing) (Sales - Order)
|
|
1062
1059
|
*
|
|
1063
1060
|
* @type {ENUM}
|
|
@@ -223,7 +223,6 @@ var OrderBillingTerms;
|
|
|
223
223
|
* - `NETOMNIA_LEGACY` - Netomnia legacy
|
|
224
224
|
* - `OPENREACH` - Openreach
|
|
225
225
|
* - `PYOMNI` - PyOmni
|
|
226
|
-
* - `VMO2`
|
|
227
226
|
*/
|
|
228
227
|
var OrderProvider;
|
|
229
228
|
(function (OrderProvider) {
|
|
@@ -233,7 +232,6 @@ var OrderProvider;
|
|
|
233
232
|
OrderProvider["NETOMNIA_LEGACY"] = "NETOMNIA_LEGACY";
|
|
234
233
|
OrderProvider["OPENREACH"] = "OPENREACH";
|
|
235
234
|
OrderProvider["PY_OMNI"] = "PYOMNI";
|
|
236
|
-
OrderProvider["VMO2"] = "VMO2";
|
|
237
235
|
})(OrderProvider = exports.OrderProvider || (exports.OrderProvider = {}));
|
|
238
236
|
/**
|
|
239
237
|
* Valid values for Order.ActivationStatus
|
|
@@ -449,10 +447,10 @@ var OrderPropertyKeys;
|
|
|
449
447
|
OrderPropertyKeys["CashbackApprovalDate"] = "CashbackApprovalDate";
|
|
450
448
|
/** Supplier-committed fulfillment date carried on COMMITTED KCI (per yf-kci-effect-bridge.ts#provide-committed). Stamped onto YF Order via walker-driven receiveKci PROPERTY_WRITE. */
|
|
451
449
|
OrderPropertyKeys["CommittedDate"] = "CommittedDate";
|
|
452
|
-
/**
|
|
453
|
-
OrderPropertyKeys["ExternalReferenceOts"] = "ExternalReferenceOts";
|
|
454
|
-
/** Brsk OTS Data (Legacy) */
|
|
450
|
+
/** LegacyBrskOtsData */
|
|
455
451
|
OrderPropertyKeys["LegacyBrskOtsData"] = "LegacyBrskOtsData";
|
|
452
|
+
/** One Touch Switch reference number */
|
|
453
|
+
OrderPropertyKeys["ExternalReferenceOts"] = "ExternalReferenceOts";
|
|
456
454
|
/** status of the order (must be activated for billing) (Sales - Order) */
|
|
457
455
|
OrderPropertyKeys["ActivationStatus"] = "ActivationStatus";
|
|
458
456
|
})(OrderPropertyKeys = exports.OrderPropertyKeys || (exports.OrderPropertyKeys = {}));
|