@d19n/youfibre-odin-sdk 2.0.212 → 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 +4 -1
- package/dist/actions-v2/CboUpdateDto.d.ts +1 -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/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
package/README.md
CHANGED
|
@@ -357,7 +357,7 @@ This SDK includes **169** entities across **12** modules.
|
|
|
357
357
|
|
|
358
358
|
## Actions
|
|
359
359
|
|
|
360
|
-
This SDK includes **
|
|
360
|
+
This SDK includes **711** actions.
|
|
361
361
|
|
|
362
362
|
### Action Types
|
|
363
363
|
|
|
@@ -1899,6 +1899,7 @@ This SDK includes **708** actions.
|
|
|
1899
1899
|
| Action | Type | Event |
|
|
1900
1900
|
|--------|------|-------|
|
|
1901
1901
|
| `CreateTwilioActivity` | CREATE | k1.t-hEOJjsDb.SupportModule.TwilioActivity.Create.CreateTwilioActivity |
|
|
1902
|
+
| `ImportTwilioActivity` | CREATE | k1.t-hEOJjsDb.SupportModule.TwilioActivity.Create.ImportTwilioActivity |
|
|
1902
1903
|
| `SyncTwilioActivity` | UPDATE | k1.t-hEOJjsDb.SupportModule.TwilioActivity.Update.SyncTwilioActivity |
|
|
1903
1904
|
| `UpdateTwilioActivity` | UPDATE | k1.t-hEOJjsDb.SupportModule.TwilioActivity.Update.UpdateTwilioActivity |
|
|
1904
1905
|
|
|
@@ -1907,6 +1908,7 @@ This SDK includes **708** actions.
|
|
|
1907
1908
|
| Action | Type | Event |
|
|
1908
1909
|
|--------|------|-------|
|
|
1909
1910
|
| `CreateTwilioTaskQueue` | CREATE | k1.t-hEOJjsDb.SupportModule.TwilioTaskQueue.Create.CreateTwilioTaskQueue |
|
|
1911
|
+
| `ImportTwilioTaskQueue` | CREATE | k1.t-hEOJjsDb.SupportModule.TwilioTaskQueue.Create.ImportTwilioTaskQueue |
|
|
1910
1912
|
| `SyncTwilioTaskQueue` | UPDATE | k1.t-hEOJjsDb.SupportModule.TwilioTaskQueue.Update.SyncTwilioTaskQueue |
|
|
1911
1913
|
| `UpdateTwilioTaskQueue` | UPDATE | k1.t-hEOJjsDb.SupportModule.TwilioTaskQueue.Update.UpdateTwilioTaskQueue |
|
|
1912
1914
|
|
|
@@ -1921,6 +1923,7 @@ This SDK includes **708** actions.
|
|
|
1921
1923
|
| Action | Type | Event |
|
|
1922
1924
|
|--------|------|-------|
|
|
1923
1925
|
| `CreateTwilioWorker` | CREATE | k1.t-hEOJjsDb.SupportModule.TwilioWorker.Create.CreateTwilioWorker |
|
|
1926
|
+
| `ImportTwilioWorker` | CREATE | k1.t-hEOJjsDb.SupportModule.TwilioWorker.Create.ImportTwilioWorker |
|
|
1924
1927
|
| `SyncTwilioWorker` | UPDATE | k1.t-hEOJjsDb.SupportModule.TwilioWorker.Update.SyncTwilioWorker |
|
|
1925
1928
|
| `UpdateTwilioWorker` | UPDATE | k1.t-hEOJjsDb.SupportModule.TwilioWorker.Update.UpdateTwilioWorker |
|
|
1926
1929
|
|
|
@@ -23,7 +23,7 @@ export interface CboUpdateMessage extends OdinRecordUpdatedEvent<CboUpdateDto, C
|
|
|
23
23
|
* Properties for CboUpdate action
|
|
24
24
|
*
|
|
25
25
|
* @property Required fields: 0
|
|
26
|
-
* @property Optional fields:
|
|
26
|
+
* @property Optional fields: 8
|
|
27
27
|
*/
|
|
28
28
|
export interface CboUpdateProperties {
|
|
29
29
|
/**
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ImportTwilioActivity Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Import Twilio activity
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity TwilioActivity
|
|
8
|
+
* @actionKey ImportTwilioActivity
|
|
9
|
+
* @event k1.t-hEOJjsDb.SupportModule.TwilioActivity.Create.ImportTwilioActivity
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for ImportTwilioActivity created events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.SupportModule.TwilioActivity.Create.ImportTwilioActivity
|
|
18
|
+
*/
|
|
19
|
+
export interface ImportTwilioActivityMessage extends OdinRecordCreatedEvent<ImportTwilioActivityDto, ImportTwilioActivityProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for ImportTwilioActivity action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 3
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface ImportTwilioActivityProperties {
|
|
28
|
+
/**
|
|
29
|
+
* Name
|
|
30
|
+
*
|
|
31
|
+
* Name of twilio activity
|
|
32
|
+
* @type {TEXT}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
Name: string;
|
|
36
|
+
/**
|
|
37
|
+
* TwilioSid
|
|
38
|
+
*
|
|
39
|
+
* Twilio Activity Sid
|
|
40
|
+
* @type {TEXT}
|
|
41
|
+
* @required
|
|
42
|
+
*/
|
|
43
|
+
TwilioSid: string;
|
|
44
|
+
/**
|
|
45
|
+
* Available
|
|
46
|
+
*
|
|
47
|
+
* Availability status of the activity
|
|
48
|
+
* @type {BOOLEAN}
|
|
49
|
+
* @required
|
|
50
|
+
*/
|
|
51
|
+
Available: boolean;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* ImportTwilioActivity
|
|
55
|
+
*
|
|
56
|
+
* Import Twilio activity
|
|
57
|
+
*
|
|
58
|
+
* @actionType CREATE - Creates a new TwilioActivity record
|
|
59
|
+
* @module SupportModule
|
|
60
|
+
* @entity TwilioActivity
|
|
61
|
+
* @event k1.t-hEOJjsDb.SupportModule.TwilioActivity.Create.ImportTwilioActivity
|
|
62
|
+
* @permission schema.action.importtwilioactivity.trigger
|
|
63
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
64
|
+
*/
|
|
65
|
+
export declare class ImportTwilioActivityDto extends OdinRecordCreateDto<ImportTwilioActivityProperties> {
|
|
66
|
+
/** Used by SDK generators to identify action type */
|
|
67
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
68
|
+
static readonly ACTION_KEY = "ImportTwilioActivity";
|
|
69
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
70
|
+
static readonly ENTITIES: string[];
|
|
71
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.TwilioActivity.Create.ImportTwilioActivity";
|
|
72
|
+
static readonly PERMISSION = "schema.action.importtwilioactivity.trigger";
|
|
73
|
+
/** Step metadata - entity this action targets */
|
|
74
|
+
static readonly STEP_ENTITY = "SupportModule:TwilioActivity";
|
|
75
|
+
static readonly STEP_SCHEMA_ID = "2013456a-e938-4096-a838-e9c4c484fd0d";
|
|
76
|
+
static readonly STEP_SCHEMA_ACTION_ID = "a0f5bcb3-4635-4c45-b4ff-586abe6bd3a2";
|
|
77
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
78
|
+
readonly actionName: string;
|
|
79
|
+
readonly schemaActionId: string;
|
|
80
|
+
readonly entity: string;
|
|
81
|
+
constructor(properties: ImportTwilioActivityProperties, options?: {
|
|
82
|
+
journeyId?: string;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ImportTwilioActivity Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Import Twilio activity
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity TwilioActivity
|
|
9
|
+
* @actionKey ImportTwilioActivity
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.TwilioActivity.Create.ImportTwilioActivity
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ImportTwilioActivityDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* ImportTwilioActivity
|
|
19
|
+
*
|
|
20
|
+
* Import Twilio activity
|
|
21
|
+
*
|
|
22
|
+
* @actionType CREATE - Creates a new TwilioActivity record
|
|
23
|
+
* @module SupportModule
|
|
24
|
+
* @entity TwilioActivity
|
|
25
|
+
* @event k1.t-hEOJjsDb.SupportModule.TwilioActivity.Create.ImportTwilioActivity
|
|
26
|
+
* @permission schema.action.importtwilioactivity.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class ImportTwilioActivityDto extends core_1.OdinRecordCreateDto {
|
|
30
|
+
constructor(properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
entity: 'SupportModule:TwilioActivity',
|
|
33
|
+
type: undefined,
|
|
34
|
+
properties,
|
|
35
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
36
|
+
});
|
|
37
|
+
this.actionName = 'ImportTwilioActivity';
|
|
38
|
+
this.schemaActionId = 'a0f5bcb3-4635-4c45-b4ff-586abe6bd3a2';
|
|
39
|
+
this.entity = 'SupportModule:TwilioActivity';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.ImportTwilioActivityDto = ImportTwilioActivityDto;
|
|
43
|
+
/** Used by SDK generators to identify action type */
|
|
44
|
+
ImportTwilioActivityDto.ACTION_TYPE = 'CREATE';
|
|
45
|
+
ImportTwilioActivityDto.ACTION_KEY = 'ImportTwilioActivity';
|
|
46
|
+
ImportTwilioActivityDto.MODULE_NAME = 'SupportModule';
|
|
47
|
+
ImportTwilioActivityDto.ENTITIES = ['TwilioActivity'];
|
|
48
|
+
ImportTwilioActivityDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.TwilioActivity.Create.ImportTwilioActivity';
|
|
49
|
+
ImportTwilioActivityDto.PERMISSION = 'schema.action.importtwilioactivity.trigger';
|
|
50
|
+
/** Step metadata - entity this action targets */
|
|
51
|
+
ImportTwilioActivityDto.STEP_ENTITY = 'SupportModule:TwilioActivity';
|
|
52
|
+
ImportTwilioActivityDto.STEP_SCHEMA_ID = '2013456a-e938-4096-a838-e9c4c484fd0d';
|
|
53
|
+
ImportTwilioActivityDto.STEP_SCHEMA_ACTION_ID = 'a0f5bcb3-4635-4c45-b4ff-586abe6bd3a2';
|
|
54
|
+
ImportTwilioActivityDto.AUTO_LINK_PARENT = true;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ImportTwilioTaskQueue Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Import Twilio task queue
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity TwilioTaskQueue
|
|
8
|
+
* @actionKey ImportTwilioTaskQueue
|
|
9
|
+
* @event k1.t-hEOJjsDb.SupportModule.TwilioTaskQueue.Create.ImportTwilioTaskQueue
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for ImportTwilioTaskQueue created events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.SupportModule.TwilioTaskQueue.Create.ImportTwilioTaskQueue
|
|
18
|
+
*/
|
|
19
|
+
export interface ImportTwilioTaskQueueMessage extends OdinRecordCreatedEvent<ImportTwilioTaskQueueDto, ImportTwilioTaskQueueProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for ImportTwilioTaskQueue action
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export interface ImportTwilioTaskQueueProperties {
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* ImportTwilioTaskQueue
|
|
29
|
+
*
|
|
30
|
+
* Import Twilio task queue
|
|
31
|
+
*
|
|
32
|
+
* @actionType CREATE - Creates a new TwilioTaskQueue record
|
|
33
|
+
* @module SupportModule
|
|
34
|
+
* @entity TwilioTaskQueue
|
|
35
|
+
* @event k1.t-hEOJjsDb.SupportModule.TwilioTaskQueue.Create.ImportTwilioTaskQueue
|
|
36
|
+
* @permission schema.action.importtwiliotaskqueue.trigger
|
|
37
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
38
|
+
*/
|
|
39
|
+
export declare class ImportTwilioTaskQueueDto extends OdinRecordCreateDto<ImportTwilioTaskQueueProperties> {
|
|
40
|
+
/** Used by SDK generators to identify action type */
|
|
41
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
42
|
+
static readonly ACTION_KEY = "ImportTwilioTaskQueue";
|
|
43
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
44
|
+
static readonly ENTITIES: string[];
|
|
45
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.TwilioTaskQueue.Create.ImportTwilioTaskQueue";
|
|
46
|
+
static readonly PERMISSION = "schema.action.importtwiliotaskqueue.trigger";
|
|
47
|
+
/** Step metadata - entity this action targets */
|
|
48
|
+
static readonly STEP_ENTITY = "SupportModule:TwilioTaskQueue";
|
|
49
|
+
static readonly STEP_SCHEMA_ID = "dcbdbcfe-bfb3-4e3c-bdd1-92b53bebeb56";
|
|
50
|
+
static readonly STEP_SCHEMA_ACTION_ID = "d78263c6-1de5-4f08-b7e1-e1767a9b7a09";
|
|
51
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
52
|
+
readonly actionName: string;
|
|
53
|
+
readonly schemaActionId: string;
|
|
54
|
+
readonly entity: string;
|
|
55
|
+
constructor(properties: ImportTwilioTaskQueueProperties, options?: {
|
|
56
|
+
journeyId?: string;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ImportTwilioTaskQueue Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Import Twilio task queue
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity TwilioTaskQueue
|
|
9
|
+
* @actionKey ImportTwilioTaskQueue
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.TwilioTaskQueue.Create.ImportTwilioTaskQueue
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ImportTwilioTaskQueueDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* ImportTwilioTaskQueue
|
|
19
|
+
*
|
|
20
|
+
* Import Twilio task queue
|
|
21
|
+
*
|
|
22
|
+
* @actionType CREATE - Creates a new TwilioTaskQueue record
|
|
23
|
+
* @module SupportModule
|
|
24
|
+
* @entity TwilioTaskQueue
|
|
25
|
+
* @event k1.t-hEOJjsDb.SupportModule.TwilioTaskQueue.Create.ImportTwilioTaskQueue
|
|
26
|
+
* @permission schema.action.importtwiliotaskqueue.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class ImportTwilioTaskQueueDto extends core_1.OdinRecordCreateDto {
|
|
30
|
+
constructor(properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
entity: 'SupportModule:TwilioTaskQueue',
|
|
33
|
+
type: undefined,
|
|
34
|
+
properties,
|
|
35
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
36
|
+
});
|
|
37
|
+
this.actionName = 'ImportTwilioTaskQueue';
|
|
38
|
+
this.schemaActionId = 'd78263c6-1de5-4f08-b7e1-e1767a9b7a09';
|
|
39
|
+
this.entity = 'SupportModule:TwilioTaskQueue';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.ImportTwilioTaskQueueDto = ImportTwilioTaskQueueDto;
|
|
43
|
+
/** Used by SDK generators to identify action type */
|
|
44
|
+
ImportTwilioTaskQueueDto.ACTION_TYPE = 'CREATE';
|
|
45
|
+
ImportTwilioTaskQueueDto.ACTION_KEY = 'ImportTwilioTaskQueue';
|
|
46
|
+
ImportTwilioTaskQueueDto.MODULE_NAME = 'SupportModule';
|
|
47
|
+
ImportTwilioTaskQueueDto.ENTITIES = ['TwilioTaskQueue'];
|
|
48
|
+
ImportTwilioTaskQueueDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.TwilioTaskQueue.Create.ImportTwilioTaskQueue';
|
|
49
|
+
ImportTwilioTaskQueueDto.PERMISSION = 'schema.action.importtwiliotaskqueue.trigger';
|
|
50
|
+
/** Step metadata - entity this action targets */
|
|
51
|
+
ImportTwilioTaskQueueDto.STEP_ENTITY = 'SupportModule:TwilioTaskQueue';
|
|
52
|
+
ImportTwilioTaskQueueDto.STEP_SCHEMA_ID = 'dcbdbcfe-bfb3-4e3c-bdd1-92b53bebeb56';
|
|
53
|
+
ImportTwilioTaskQueueDto.STEP_SCHEMA_ACTION_ID = 'd78263c6-1de5-4f08-b7e1-e1767a9b7a09';
|
|
54
|
+
ImportTwilioTaskQueueDto.AUTO_LINK_PARENT = true;
|
|
@@ -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" }];
|
|
@@ -24,6 +24,7 @@ import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
|
24
24
|
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
25
25
|
import { TwilioActivityProperties } from '../entities-v2/TwilioActivity';
|
|
26
26
|
import { CreateTwilioActivityProperties } from '../actions-v2/CreateTwilioActivityDto';
|
|
27
|
+
import { ImportTwilioActivityProperties } from '../actions-v2/ImportTwilioActivityDto';
|
|
27
28
|
import { SyncTwilioActivityProperties } from '../actions-v2/SyncTwilioActivityDto';
|
|
28
29
|
import { UpdateTwilioActivityProperties } from '../actions-v2/UpdateTwilioActivityDto';
|
|
29
30
|
import { TwilioTaskQueueRecord } from './TwilioTaskQueueRecord';
|
|
@@ -201,6 +202,34 @@ export declare class TwilioActivityRecord<TProps = TwilioActivityProperties> {
|
|
|
201
202
|
journeyId?: string;
|
|
202
203
|
stageKey?: string;
|
|
203
204
|
}): ActionBuilder;
|
|
205
|
+
/**
|
|
206
|
+
* ImportTwilioActivity
|
|
207
|
+
*
|
|
208
|
+
* Creates a new TwilioActivity record with the specified properties.
|
|
209
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
210
|
+
*
|
|
211
|
+
* @param properties - The properties for the new record
|
|
212
|
+
* @param options - Optional settings
|
|
213
|
+
* @param options.type - Override the record type
|
|
214
|
+
* @param options.journeyId - Associate with a journey
|
|
215
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
216
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* ```typescript
|
|
220
|
+
* // Create with properties
|
|
221
|
+
* const record = odinClient.twilioActivitys.new();
|
|
222
|
+
* await record.importTwilioActivity({ ... }).execute();
|
|
223
|
+
*
|
|
224
|
+
* // Dry run (for debugging)
|
|
225
|
+
* const payload = record.importTwilioActivity({ ... }).dryRun();
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
228
|
+
importTwilioActivity(properties: ImportTwilioActivityProperties, options?: {
|
|
229
|
+
type?: string;
|
|
230
|
+
journeyId?: string;
|
|
231
|
+
stageKey?: string;
|
|
232
|
+
}): ActionBuilder;
|
|
204
233
|
/**
|
|
205
234
|
* SyncTwilioActivity
|
|
206
235
|
*
|
|
@@ -266,6 +266,42 @@ class TwilioActivityRecord {
|
|
|
266
266
|
};
|
|
267
267
|
return new ActionBuilder(this._provider, 'SupportModule', 'TwilioActivity', payload, () => { this._pendingLinks = []; });
|
|
268
268
|
}
|
|
269
|
+
/**
|
|
270
|
+
* ImportTwilioActivity
|
|
271
|
+
*
|
|
272
|
+
* Creates a new TwilioActivity record with the specified properties.
|
|
273
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
274
|
+
*
|
|
275
|
+
* @param properties - The properties for the new record
|
|
276
|
+
* @param options - Optional settings
|
|
277
|
+
* @param options.type - Override the record type
|
|
278
|
+
* @param options.journeyId - Associate with a journey
|
|
279
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
280
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
281
|
+
*
|
|
282
|
+
* @example
|
|
283
|
+
* ```typescript
|
|
284
|
+
* // Create with properties
|
|
285
|
+
* const record = odinClient.twilioActivitys.new();
|
|
286
|
+
* await record.importTwilioActivity({ ... }).execute();
|
|
287
|
+
*
|
|
288
|
+
* // Dry run (for debugging)
|
|
289
|
+
* const payload = record.importTwilioActivity({ ... }).dryRun();
|
|
290
|
+
* ```
|
|
291
|
+
*/
|
|
292
|
+
importTwilioActivity(properties, options) {
|
|
293
|
+
var _a, _b;
|
|
294
|
+
const payload = {
|
|
295
|
+
entity: 'SupportModule:TwilioActivity',
|
|
296
|
+
type: (_a = options === null || options === void 0 ? void 0 : options.type) !== null && _a !== void 0 ? _a : (_b = this._record) === null || _b === void 0 ? void 0 : _b.type,
|
|
297
|
+
actionName: 'ImportTwilioActivity',
|
|
298
|
+
properties: properties || {},
|
|
299
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
300
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
301
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
302
|
+
};
|
|
303
|
+
return new ActionBuilder(this._provider, 'SupportModule', 'TwilioActivity', payload, () => { this._pendingLinks = []; });
|
|
304
|
+
}
|
|
269
305
|
// ============================================
|
|
270
306
|
// UPDATE ACTIONS (require existing record)
|
|
271
307
|
// ============================================
|
|
@@ -24,6 +24,7 @@ import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
|
24
24
|
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
25
25
|
import { TwilioTaskQueueProperties } from '../entities-v2/TwilioTaskQueue';
|
|
26
26
|
import { CreateTwilioTaskQueueProperties } from '../actions-v2/CreateTwilioTaskQueueDto';
|
|
27
|
+
import { ImportTwilioTaskQueueProperties } from '../actions-v2/ImportTwilioTaskQueueDto';
|
|
27
28
|
import { SyncTwilioTaskQueueProperties } from '../actions-v2/SyncTwilioTaskQueueDto';
|
|
28
29
|
import { UpdateTwilioTaskQueueProperties } from '../actions-v2/UpdateTwilioTaskQueueDto';
|
|
29
30
|
import { TwilioWorkerRecord } from './TwilioWorkerRecord';
|
|
@@ -221,6 +222,34 @@ export declare class TwilioTaskQueueRecord<TProps = TwilioTaskQueueProperties> {
|
|
|
221
222
|
journeyId?: string;
|
|
222
223
|
stageKey?: string;
|
|
223
224
|
}): ActionBuilder;
|
|
225
|
+
/**
|
|
226
|
+
* ImportTwilioTaskQueue
|
|
227
|
+
*
|
|
228
|
+
* Creates a new TwilioTaskQueue record with the specified properties.
|
|
229
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
230
|
+
*
|
|
231
|
+
* @param properties - The properties for the new record
|
|
232
|
+
* @param options - Optional settings
|
|
233
|
+
* @param options.type - Override the record type
|
|
234
|
+
* @param options.journeyId - Associate with a journey
|
|
235
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
236
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* ```typescript
|
|
240
|
+
* // Create with properties
|
|
241
|
+
* const record = odinClient.twilioTaskQueues.new();
|
|
242
|
+
* await record.importTwilioTaskQueue({ ... }).execute();
|
|
243
|
+
*
|
|
244
|
+
* // Dry run (for debugging)
|
|
245
|
+
* const payload = record.importTwilioTaskQueue({ ... }).dryRun();
|
|
246
|
+
* ```
|
|
247
|
+
*/
|
|
248
|
+
importTwilioTaskQueue(properties?: ImportTwilioTaskQueueProperties, options?: {
|
|
249
|
+
type?: string;
|
|
250
|
+
journeyId?: string;
|
|
251
|
+
stageKey?: string;
|
|
252
|
+
}): ActionBuilder;
|
|
224
253
|
/**
|
|
225
254
|
* SyncTwilioTaskQueue
|
|
226
255
|
*
|
|
@@ -297,6 +297,42 @@ class TwilioTaskQueueRecord {
|
|
|
297
297
|
};
|
|
298
298
|
return new ActionBuilder(this._provider, 'SupportModule', 'TwilioTaskQueue', payload, () => { this._pendingLinks = []; });
|
|
299
299
|
}
|
|
300
|
+
/**
|
|
301
|
+
* ImportTwilioTaskQueue
|
|
302
|
+
*
|
|
303
|
+
* Creates a new TwilioTaskQueue record with the specified properties.
|
|
304
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
305
|
+
*
|
|
306
|
+
* @param properties - The properties for the new record
|
|
307
|
+
* @param options - Optional settings
|
|
308
|
+
* @param options.type - Override the record type
|
|
309
|
+
* @param options.journeyId - Associate with a journey
|
|
310
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
311
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
312
|
+
*
|
|
313
|
+
* @example
|
|
314
|
+
* ```typescript
|
|
315
|
+
* // Create with properties
|
|
316
|
+
* const record = odinClient.twilioTaskQueues.new();
|
|
317
|
+
* await record.importTwilioTaskQueue({ ... }).execute();
|
|
318
|
+
*
|
|
319
|
+
* // Dry run (for debugging)
|
|
320
|
+
* const payload = record.importTwilioTaskQueue({ ... }).dryRun();
|
|
321
|
+
* ```
|
|
322
|
+
*/
|
|
323
|
+
importTwilioTaskQueue(properties, options) {
|
|
324
|
+
var _a, _b;
|
|
325
|
+
const payload = {
|
|
326
|
+
entity: 'SupportModule:TwilioTaskQueue',
|
|
327
|
+
type: (_a = options === null || options === void 0 ? void 0 : options.type) !== null && _a !== void 0 ? _a : (_b = this._record) === null || _b === void 0 ? void 0 : _b.type,
|
|
328
|
+
actionName: 'ImportTwilioTaskQueue',
|
|
329
|
+
properties: properties || {},
|
|
330
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
331
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
332
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
333
|
+
};
|
|
334
|
+
return new ActionBuilder(this._provider, 'SupportModule', 'TwilioTaskQueue', payload, () => { this._pendingLinks = []; });
|
|
335
|
+
}
|
|
300
336
|
// ============================================
|
|
301
337
|
// UPDATE ACTIONS (require existing record)
|
|
302
338
|
// ============================================
|
|
@@ -25,6 +25,8 @@ import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-man
|
|
|
25
25
|
import { TwilioWorkerProperties } from '../entities-v2/TwilioWorker';
|
|
26
26
|
import { CreateTwilioWorkerProperties } from '../actions-v2/CreateTwilioWorkerDto';
|
|
27
27
|
import { CreateTwilioWorkerBuilder } from '../actions-v2/CreateTwilioWorkerDto';
|
|
28
|
+
import { ImportTwilioWorkerProperties } from '../actions-v2/ImportTwilioWorkerDto';
|
|
29
|
+
import { ImportTwilioWorkerBuilder } from '../actions-v2/ImportTwilioWorkerDto';
|
|
28
30
|
import { SyncTwilioWorkerProperties } from '../actions-v2/SyncTwilioWorkerDto';
|
|
29
31
|
import { UpdateTwilioWorkerProperties } from '../actions-v2/UpdateTwilioWorkerDto';
|
|
30
32
|
import { UpdateTwilioWorkerBuilder } from '../actions-v2/UpdateTwilioWorkerDto';
|
|
@@ -220,6 +222,31 @@ export declare class TwilioWorkerRecord<TProps = TwilioWorkerProperties> {
|
|
|
220
222
|
journeyId?: string;
|
|
221
223
|
stageKey?: string;
|
|
222
224
|
}): CreateTwilioWorkerBuilder;
|
|
225
|
+
/**
|
|
226
|
+
* ImportTwilioWorker
|
|
227
|
+
*
|
|
228
|
+
* Creates a new TwilioWorker record with the specified properties.
|
|
229
|
+
* Returns a builder with fluent .link*() methods for associations.
|
|
230
|
+
* Call .execute() to create or .dryRun() for debugging.
|
|
231
|
+
*
|
|
232
|
+
* @param properties - The properties for the new record
|
|
233
|
+
* @param options - Optional settings
|
|
234
|
+
* @param options.journeyId - Associate with a journey
|
|
235
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
236
|
+
* @returns ImportTwilioWorkerBuilder - chain .link*() then .execute()
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* ```typescript
|
|
240
|
+
* const record = odinClient.twilioWorkers.new();
|
|
241
|
+
* await record.importTwilioWorker({ ... })
|
|
242
|
+
* .linkAssociation_xxx(target)
|
|
243
|
+
* .execute();
|
|
244
|
+
* ```
|
|
245
|
+
*/
|
|
246
|
+
importTwilioWorker(properties: ImportTwilioWorkerProperties, options?: {
|
|
247
|
+
journeyId?: string;
|
|
248
|
+
stageKey?: string;
|
|
249
|
+
}): ImportTwilioWorkerBuilder;
|
|
223
250
|
/**
|
|
224
251
|
* SyncTwilioWorker
|
|
225
252
|
*
|
|
@@ -33,6 +33,7 @@ const uuid_1 = require("uuid");
|
|
|
33
33
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
34
34
|
const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
|
|
35
35
|
const CreateTwilioWorkerDto_1 = require("../actions-v2/CreateTwilioWorkerDto");
|
|
36
|
+
const ImportTwilioWorkerDto_1 = require("../actions-v2/ImportTwilioWorkerDto");
|
|
36
37
|
const UpdateTwilioWorkerDto_1 = require("../actions-v2/UpdateTwilioWorkerDto");
|
|
37
38
|
const UserRecord_1 = require("./UserRecord");
|
|
38
39
|
const TwilioTaskQueueRecord_1 = require("./TwilioTaskQueueRecord");
|
|
@@ -287,6 +288,30 @@ class TwilioWorkerRecord {
|
|
|
287
288
|
createTwilioWorker(properties, options) {
|
|
288
289
|
return new CreateTwilioWorkerDto_1.CreateTwilioWorkerBuilder(properties || {}, [...this._pendingLinks], options).withProvider(this._provider, 'SupportModule', 'TwilioWorker', () => { this._pendingLinks = []; });
|
|
289
290
|
}
|
|
291
|
+
/**
|
|
292
|
+
* ImportTwilioWorker
|
|
293
|
+
*
|
|
294
|
+
* Creates a new TwilioWorker record with the specified properties.
|
|
295
|
+
* Returns a builder with fluent .link*() methods for associations.
|
|
296
|
+
* Call .execute() to create or .dryRun() for debugging.
|
|
297
|
+
*
|
|
298
|
+
* @param properties - The properties for the new record
|
|
299
|
+
* @param options - Optional settings
|
|
300
|
+
* @param options.journeyId - Associate with a journey
|
|
301
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
302
|
+
* @returns ImportTwilioWorkerBuilder - chain .link*() then .execute()
|
|
303
|
+
*
|
|
304
|
+
* @example
|
|
305
|
+
* ```typescript
|
|
306
|
+
* const record = odinClient.twilioWorkers.new();
|
|
307
|
+
* await record.importTwilioWorker({ ... })
|
|
308
|
+
* .linkAssociation_xxx(target)
|
|
309
|
+
* .execute();
|
|
310
|
+
* ```
|
|
311
|
+
*/
|
|
312
|
+
importTwilioWorker(properties, options) {
|
|
313
|
+
return new ImportTwilioWorkerDto_1.ImportTwilioWorkerBuilder(properties || {}, [...this._pendingLinks], options).withProvider(this._provider, 'SupportModule', 'TwilioWorker', () => { this._pendingLinks = []; });
|
|
314
|
+
}
|
|
290
315
|
// ============================================
|
|
291
316
|
// UPDATE ACTIONS (require existing record)
|
|
292
317
|
// ============================================
|