@d19n/youfibre-odin-sdk 2.0.208 → 2.0.209-beta.0
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.
|
@@ -21,8 +21,17 @@ export interface CreateTwilioWorkerMessage extends OdinRecordCreatedEvent<Create
|
|
|
21
21
|
/**
|
|
22
22
|
* Properties for CreateTwilioWorker action
|
|
23
23
|
*
|
|
24
|
+
* @property Required fields: 0
|
|
25
|
+
* @property Optional fields: 1
|
|
24
26
|
*/
|
|
25
27
|
export interface CreateTwilioWorkerProperties {
|
|
28
|
+
/**
|
|
29
|
+
* UserId
|
|
30
|
+
*
|
|
31
|
+
* User reference
|
|
32
|
+
* @type {LOOKUP}
|
|
33
|
+
*/
|
|
34
|
+
UserId?: string | null;
|
|
26
35
|
}
|
|
27
36
|
/**
|
|
28
37
|
* Builder for CreateTwilioWorker action
|
|
@@ -33,7 +42,6 @@ export interface CreateTwilioWorkerProperties {
|
|
|
33
42
|
* @example
|
|
34
43
|
* ```typescript
|
|
35
44
|
* await record.createTwilioWorker({ ...properties })
|
|
36
|
-
* .linkAssociation_1781872155907({ id: '...', entity: '...' })
|
|
37
45
|
* .linkAssociation_1781879666149({ id: '...', entity: '...' })
|
|
38
46
|
* .execute();
|
|
39
47
|
* ```
|
|
@@ -54,17 +62,6 @@ export declare class CreateTwilioWorkerBuilder {
|
|
|
54
62
|
journeyId?: string;
|
|
55
63
|
stageKey?: string;
|
|
56
64
|
});
|
|
57
|
-
/**
|
|
58
|
-
* Link User__TwilioWorker
|
|
59
|
-
* @schemaAssociationId 0805e77a-9ea3-45fb-a958-959496b78234
|
|
60
|
-
* @required
|
|
61
|
-
* @param target - The record to link
|
|
62
|
-
* @returns this (for method chaining)
|
|
63
|
-
*/
|
|
64
|
-
linkAssociation_1781872155907(target: OdinRecord<any> | {
|
|
65
|
-
id: string;
|
|
66
|
-
entity: string;
|
|
67
|
-
}): this;
|
|
68
65
|
/**
|
|
69
66
|
* Link TwilioTaskQueue__TwilioWorker
|
|
70
67
|
* @schemaAssociationId 9de524e5-a0e3-4580-a5eb-e19faf5711c3
|
|
@@ -159,11 +156,6 @@ export declare class CreateTwilioWorkerDto extends OdinRecordCreateDto<CreateTwi
|
|
|
159
156
|
static readonly HAS_REQUIRED_ASSOCIATIONS = true;
|
|
160
157
|
static readonly BUILDER_CLASS = "CreateTwilioWorkerBuilder";
|
|
161
158
|
static readonly ASSOCIATION_FIELDS: readonly [{
|
|
162
|
-
readonly name: "Association_1781872155907";
|
|
163
|
-
readonly methodName: "linkAssociation_1781872155907";
|
|
164
|
-
readonly required: true;
|
|
165
|
-
readonly schemaAssociationId: "0805e77a-9ea3-45fb-a958-959496b78234";
|
|
166
|
-
}, {
|
|
167
159
|
readonly name: "Association_1781879666149";
|
|
168
160
|
readonly methodName: "linkAssociation_1781879666149";
|
|
169
161
|
readonly required: true;
|
|
@@ -32,7 +32,6 @@ const core_1 = require("@d19n/odin-types/dist/core");
|
|
|
32
32
|
* @example
|
|
33
33
|
* ```typescript
|
|
34
34
|
* await record.createTwilioWorker({ ...properties })
|
|
35
|
-
* .linkAssociation_1781872155907({ id: '...', entity: '...' })
|
|
36
35
|
* .linkAssociation_1781879666149({ id: '...', entity: '...' })
|
|
37
36
|
* .execute();
|
|
38
37
|
* ```
|
|
@@ -44,20 +43,6 @@ class CreateTwilioWorkerBuilder {
|
|
|
44
43
|
this._pendingLinks = pendingLinks;
|
|
45
44
|
this._options = options;
|
|
46
45
|
}
|
|
47
|
-
/**
|
|
48
|
-
* Link User__TwilioWorker
|
|
49
|
-
* @schemaAssociationId 0805e77a-9ea3-45fb-a958-959496b78234
|
|
50
|
-
* @required
|
|
51
|
-
* @param target - The record to link
|
|
52
|
-
* @returns this (for method chaining)
|
|
53
|
-
*/
|
|
54
|
-
linkAssociation_1781872155907(target) {
|
|
55
|
-
this._associations.push(new core_1.OdinRecordLinkDto({
|
|
56
|
-
id: target.id,
|
|
57
|
-
entity: 'entity' in target ? target.entity : target.entity,
|
|
58
|
-
}));
|
|
59
|
-
return this;
|
|
60
|
-
}
|
|
61
46
|
/**
|
|
62
47
|
* Link TwilioTaskQueue__TwilioWorker
|
|
63
48
|
* @schemaAssociationId 9de524e5-a0e3-4580-a5eb-e19faf5711c3
|
|
@@ -186,4 +171,4 @@ CreateTwilioWorkerDto.AUTO_LINK_PARENT = true;
|
|
|
186
171
|
CreateTwilioWorkerDto.HAS_ASSOCIATIONS = true;
|
|
187
172
|
CreateTwilioWorkerDto.HAS_REQUIRED_ASSOCIATIONS = true;
|
|
188
173
|
CreateTwilioWorkerDto.BUILDER_CLASS = 'CreateTwilioWorkerBuilder';
|
|
189
|
-
CreateTwilioWorkerDto.ASSOCIATION_FIELDS = [{ "name": "
|
|
174
|
+
CreateTwilioWorkerDto.ASSOCIATION_FIELDS = [{ "name": "Association_1781879666149", "methodName": "linkAssociation_1781879666149", "required": true, "schemaAssociationId": "9de524e5-a0e3-4580-a5eb-e19faf5711c3" }];
|
|
@@ -22,7 +22,7 @@ export interface UpdateUserMessage extends OdinRecordUpdatedEvent<UpdateUserDto,
|
|
|
22
22
|
* Properties for UpdateUser action
|
|
23
23
|
*
|
|
24
24
|
* @property Required fields: 0
|
|
25
|
-
* @property Optional fields:
|
|
25
|
+
* @property Optional fields: 23
|
|
26
26
|
*/
|
|
27
27
|
export interface UpdateUserProperties {
|
|
28
28
|
/**
|
|
@@ -179,6 +179,13 @@ export interface UpdateUserProperties {
|
|
|
179
179
|
* @type {LOOKUP}
|
|
180
180
|
*/
|
|
181
181
|
SalesTerritoryId?: string | null;
|
|
182
|
+
/**
|
|
183
|
+
* TwilioWorkerId
|
|
184
|
+
*
|
|
185
|
+
* Reference of Twilio worker
|
|
186
|
+
* @type {LOOKUP}
|
|
187
|
+
*/
|
|
188
|
+
TwilioWorkerId?: string | null;
|
|
182
189
|
}
|
|
183
190
|
/**
|
|
184
191
|
* UpdateUser
|
|
@@ -27,6 +27,8 @@ export declare enum TwilioWorkerEntityTypes {
|
|
|
27
27
|
export declare enum TwilioWorkerPropertyKeys {
|
|
28
28
|
/** Worker name */
|
|
29
29
|
Name = "Name",
|
|
30
|
+
/** User reference */
|
|
31
|
+
UserId = "UserId",
|
|
30
32
|
/** Twilio worker sid */
|
|
31
33
|
TwilioSid = "TwilioSid",
|
|
32
34
|
/** Current twilio activity status */
|
|
@@ -43,6 +45,11 @@ export interface TwilioWorkerProperties {
|
|
|
43
45
|
* @type {TEXT}
|
|
44
46
|
*/
|
|
45
47
|
Name: string;
|
|
48
|
+
/** User reference
|
|
49
|
+
*
|
|
50
|
+
* @type {LOOKUP}
|
|
51
|
+
*/
|
|
52
|
+
UserId: string;
|
|
46
53
|
/** Twilio worker sid
|
|
47
54
|
*
|
|
48
55
|
* @type {TEXT}
|
|
@@ -30,6 +30,8 @@ var TwilioWorkerPropertyKeys;
|
|
|
30
30
|
(function (TwilioWorkerPropertyKeys) {
|
|
31
31
|
/** Worker name */
|
|
32
32
|
TwilioWorkerPropertyKeys["Name"] = "Name";
|
|
33
|
+
/** User reference */
|
|
34
|
+
TwilioWorkerPropertyKeys["UserId"] = "UserId";
|
|
33
35
|
/** Twilio worker sid */
|
|
34
36
|
TwilioWorkerPropertyKeys["TwilioSid"] = "TwilioSid";
|
|
35
37
|
/** Current twilio activity status */
|