@d19n/youfibre-odin-sdk 2.0.94 → 2.0.98

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 (30) hide show
  1. package/README.md +9 -2
  2. package/dist/actions-v2/CreateTeamDto.d.ts +8 -1
  3. package/dist/actions-v2/MovePgTransactionChargeToCancelledDto.d.ts +70 -0
  4. package/dist/actions-v2/MovePgTransactionChargeToCancelledDto.js +62 -0
  5. package/dist/actions-v2/MovePgTransactionRefundToCancelledDto.d.ts +70 -0
  6. package/dist/actions-v2/MovePgTransactionRefundToCancelledDto.js +62 -0
  7. package/dist/actions-v2/UpdateTeamDto.d.ts +8 -1
  8. package/dist/api-sdk-v2/AddressInteractionApi.d.ts +45 -0
  9. package/dist/api-sdk-v2/AddressInteractionApi.js +151 -0
  10. package/dist/db-sdk-v2/AddressInteractionDb.d.ts +117 -0
  11. package/dist/db-sdk-v2/AddressInteractionDb.js +200 -0
  12. package/dist/entities-v2/AddressInteraction.d.ts +159 -0
  13. package/dist/entities-v2/AddressInteraction.js +102 -0
  14. package/dist/entities-v2/Call.d.ts +0 -14
  15. package/dist/entities-v2/Call.js +0 -4
  16. package/dist/entities-v2/CallLeg.d.ts +0 -35
  17. package/dist/entities-v2/CallLeg.js +0 -10
  18. package/dist/entities-v2/CallTransfer.d.ts +0 -7
  19. package/dist/entities-v2/CallTransfer.js +0 -2
  20. package/dist/entities-v2/Case.d.ts +2 -0
  21. package/dist/entities-v2/Case.js +2 -0
  22. package/dist/entities-v2/PgTransaction.d.ts +12 -4
  23. package/dist/entities-v2/PgTransaction.js +8 -0
  24. package/dist/entities-v2/RemediationRequiredReason.d.ts +26 -19
  25. package/dist/entities-v2/RemediationRequiredReason.js +26 -19
  26. package/dist/entities-v2/Team.d.ts +8 -1
  27. package/dist/entities-v2/Team.js +2 -0
  28. package/dist/records-v2/PgTransactionRecord.d.ts +50 -0
  29. package/dist/records-v2/PgTransactionRecord.js +58 -0
  30. package/package.json +1 -1
package/README.md CHANGED
@@ -124,7 +124,7 @@ await workOrder.completeWorkOrder({ ... });
124
124
 
125
125
  ## Entities
126
126
 
127
- This SDK includes **163** entities across **12** modules.
127
+ This SDK includes **164** entities across **12** modules.
128
128
 
129
129
  ### CrmModule
130
130
 
@@ -132,6 +132,7 @@ This SDK includes **163** entities across **12** modules.
132
132
  |--------|-------------|-------|
133
133
  | **Account** | Account Entity Definition | BUSINESS, MULTIPLE, PRIMARY... |
134
134
  | **Address** | Address Entity Definition | DEFAULT |
135
+ | **AddressInteraction** | AddressInteraction Entity Definition | DEFAULT |
135
136
  | **AffiliateCode** | AffiliateCode Entity Definition | DEFAULT |
136
137
  | **Appointment** | Appointment Entity Definition | DEFAULT |
137
138
  | **AppointmentCalendar** | AppointmentCalendar Entity Definition | DEFAULT |
@@ -351,7 +352,7 @@ This SDK includes **163** entities across **12** modules.
351
352
 
352
353
  ## Actions
353
354
 
354
- This SDK includes **615** actions.
355
+ This SDK includes **617** actions.
355
356
 
356
357
  ### Action Types
357
358
 
@@ -1564,6 +1565,7 @@ This SDK includes **615** actions.
1564
1565
  | `CreatePgTransactionRefund` | CREATE | k1.t-hEOJjsDb.BillingModule.PgTransaction.Create.CreatePgTransactionRefund |
1565
1566
  | `MovePgTransactionChargeToAcknowledged` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToAcknowledged |
1566
1567
  | `MovePgTransactionChargeToAllocated` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToAllocated |
1568
+ | `MovePgTransactionChargeToCancelled` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToCancelled |
1567
1569
  | `MovePgTransactionChargeToFailed` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToFailed |
1568
1570
  | `MovePgTransactionChargeToFileRejected` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToFileRejected |
1569
1571
  | `MovePgTransactionChargeToInstructionRejected` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToInstructionRejected |
@@ -1575,6 +1577,7 @@ This SDK includes **615** actions.
1575
1577
  | `MovePgTransactionChargeToSucceeded` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToSucceeded |
1576
1578
  | `MovePgTransactionRefundToAcknowledged` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionRefundToAcknowledged |
1577
1579
  | `MovePgTransactionRefundToAllocated` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionRefundToAllocated |
1580
+ | `MovePgTransactionRefundToCancelled` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionRefundToCancelled |
1578
1581
  | `MovePgTransactionRefundToFailed` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionRefundToFailed |
1579
1582
  | `MovePgTransactionRefundToFileRejected` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionRefundToFileRejected |
1580
1583
  | `MovePgTransactionRefundToInstructionRejected` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionRefundToInstructionRejected |
@@ -1594,6 +1597,8 @@ This SDK includes **615** actions.
1594
1597
 
1595
1598
  **MovePgTransactionChargeToAllocated Target Stages:** `ChargeStatusStageAllocated`
1596
1599
 
1600
+ **MovePgTransactionChargeToCancelled Target Stages:** `ChargeStatusStageCancelled`
1601
+
1597
1602
  **MovePgTransactionChargeToFailed Target Stages:** `ChargeStatusStageFailed`
1598
1603
 
1599
1604
  **MovePgTransactionChargeToFileRejected Target Stages:** `ChargeStatusStageFileRejected`
@@ -1616,6 +1621,8 @@ This SDK includes **615** actions.
1616
1621
 
1617
1622
  **MovePgTransactionRefundToAllocated Target Stages:** `RefundStatusStageAllocated`
1618
1623
 
1624
+ **MovePgTransactionRefundToCancelled Target Stages:** `RefundStatusStageCancelled`
1625
+
1619
1626
  **MovePgTransactionRefundToFailed Target Stages:** `RefundStatusStageFailed`
1620
1627
 
1621
1628
  **MovePgTransactionRefundToFileRejected Target Stages:** `RefundStatusStageFileRejected`
@@ -22,7 +22,7 @@ export interface CreateTeamMessage extends OdinRecordCreatedEvent<CreateTeamDto,
22
22
  * Properties for CreateTeam action
23
23
  *
24
24
  * @property Required fields: 3
25
- * @property Optional fields: 0
25
+ * @property Optional fields: 1
26
26
  */
27
27
  export interface CreateTeamProperties {
28
28
  /**
@@ -49,6 +49,13 @@ export interface CreateTeamProperties {
49
49
  * @required
50
50
  */
51
51
  TeamId: string;
52
+ /**
53
+ * TwilioQueueSid
54
+ *
55
+ * TwilioQueueSid
56
+ * @type {TEXT}
57
+ */
58
+ TwilioQueueSid?: string | null;
52
59
  }
53
60
  /**
54
61
  * CreateTeam
@@ -0,0 +1,70 @@
1
+ /**
2
+ * MovePgTransactionChargeToCancelled Action DTO
3
+ *
4
+ * Move PG Transaction Charge To Cancelled
5
+ *
6
+ * @module BillingModule
7
+ * @entity PgTransaction
8
+ * @entityType CHARGE
9
+ * @actionKey MovePgTransactionChargeToCancelled
10
+ * @event k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToCancelled
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * RabbitMQ message payload for MovePgTransactionChargeToCancelled step flow events
17
+ *
18
+ * @event k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToCancelled
19
+ */
20
+ export interface MovePgTransactionChargeToCancelledMessage extends OdinRecordUpdatedEvent<MovePgTransactionChargeToCancelledDto, {}> {
21
+ }
22
+ /**
23
+ * Properties for MovePgTransactionChargeToCancelled action
24
+ *
25
+ */
26
+ export interface MovePgTransactionChargeToCancelledProperties {
27
+ }
28
+ /**
29
+ * MovePgTransactionChargeToCancelled
30
+ *
31
+ * Move PG Transaction Charge To Cancelled
32
+ *
33
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
34
+ * @module BillingModule
35
+ * @entity PgTransaction
36
+ * @entityType CHARGE (Charge)
37
+ * @targetStages ChargeStatusStageCancelled
38
+ * @event k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToCancelled
39
+ * @permission schema.action.movepgtransactionchargetocancelled.trigger
40
+ * @benchmark This action is tracked for performance benchmarks
41
+ */
42
+ export declare class MovePgTransactionChargeToCancelledDto extends OdinRecordUpdateDto<Record<string, any>> {
43
+ /** Used by SDK generators to identify action type */
44
+ static readonly ACTION_TYPE = "UPDATE";
45
+ static readonly ACTION_KEY = "MovePgTransactionChargeToCancelled";
46
+ static readonly MODULE_NAME = "BillingModule";
47
+ static readonly ENTITIES: string[];
48
+ static readonly ENTITY_TYPE = "CHARGE";
49
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToCancelled";
50
+ static readonly SCHEMA_ACTION_ID = "74ce76d5-3452-41f5-9ece-f68977c3f903";
51
+ static readonly PERMISSION = "schema.action.movepgtransactionchargetocancelled.trigger";
52
+ static readonly TARGET_STAGES: readonly ["ChargeStatusStageCancelled"];
53
+ static readonly IS_STAGE_TRANSITION = true;
54
+ static readonly IS_MULTI_STEP_FLOW = false;
55
+ static readonly HAS_STEP_LINKS = false;
56
+ readonly actionName: string;
57
+ readonly schemaActionId: string;
58
+ readonly entity: string;
59
+ readonly stageKey: string;
60
+ constructor(record: OdinRecord<any> | {
61
+ id: string;
62
+ entity: string;
63
+ type?: string;
64
+ }, options?: {
65
+ journeyId?: string;
66
+ });
67
+ /** Step classes that can be used with this action */
68
+ static readonly stepClasses: readonly [];
69
+ steps: [];
70
+ }
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /**
3
+ * MovePgTransactionChargeToCancelled Action DTO
4
+ *
5
+ * Move PG Transaction Charge To Cancelled
6
+ *
7
+ * @module BillingModule
8
+ * @entity PgTransaction
9
+ * @entityType CHARGE
10
+ * @actionKey MovePgTransactionChargeToCancelled
11
+ * @event k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToCancelled
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MovePgTransactionChargeToCancelledDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * MovePgTransactionChargeToCancelled
20
+ *
21
+ * Move PG Transaction Charge To Cancelled
22
+ *
23
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
24
+ * @module BillingModule
25
+ * @entity PgTransaction
26
+ * @entityType CHARGE (Charge)
27
+ * @targetStages ChargeStatusStageCancelled
28
+ * @event k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToCancelled
29
+ * @permission schema.action.movepgtransactionchargetocancelled.trigger
30
+ * @benchmark This action is tracked for performance benchmarks
31
+ */
32
+ class MovePgTransactionChargeToCancelledDto extends core_1.OdinRecordUpdateDto {
33
+ constructor(record, options) {
34
+ super({
35
+ id: record.id,
36
+ entity: record.entity,
37
+ type: record.type,
38
+ properties: {},
39
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
40
+ });
41
+ this.actionName = 'MovePgTransactionChargeToCancelled';
42
+ this.schemaActionId = '74ce76d5-3452-41f5-9ece-f68977c3f903';
43
+ this.entity = 'BillingModule:PgTransaction';
44
+ this.stageKey = 'ChargeStatusStageCancelled';
45
+ }
46
+ }
47
+ exports.MovePgTransactionChargeToCancelledDto = MovePgTransactionChargeToCancelledDto;
48
+ /** Used by SDK generators to identify action type */
49
+ MovePgTransactionChargeToCancelledDto.ACTION_TYPE = 'UPDATE';
50
+ MovePgTransactionChargeToCancelledDto.ACTION_KEY = 'MovePgTransactionChargeToCancelled';
51
+ MovePgTransactionChargeToCancelledDto.MODULE_NAME = 'BillingModule';
52
+ MovePgTransactionChargeToCancelledDto.ENTITIES = ['PgTransaction'];
53
+ MovePgTransactionChargeToCancelledDto.ENTITY_TYPE = 'CHARGE';
54
+ MovePgTransactionChargeToCancelledDto.EVENT_NAME = 'k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToCancelled';
55
+ MovePgTransactionChargeToCancelledDto.SCHEMA_ACTION_ID = '74ce76d5-3452-41f5-9ece-f68977c3f903';
56
+ MovePgTransactionChargeToCancelledDto.PERMISSION = 'schema.action.movepgtransactionchargetocancelled.trigger';
57
+ MovePgTransactionChargeToCancelledDto.TARGET_STAGES = ['ChargeStatusStageCancelled'];
58
+ MovePgTransactionChargeToCancelledDto.IS_STAGE_TRANSITION = true;
59
+ MovePgTransactionChargeToCancelledDto.IS_MULTI_STEP_FLOW = false;
60
+ MovePgTransactionChargeToCancelledDto.HAS_STEP_LINKS = false;
61
+ /** Step classes that can be used with this action */
62
+ MovePgTransactionChargeToCancelledDto.stepClasses = [];
@@ -0,0 +1,70 @@
1
+ /**
2
+ * MovePgTransactionRefundToCancelled Action DTO
3
+ *
4
+ * Move PG Transaction Refund To Cancelled
5
+ *
6
+ * @module BillingModule
7
+ * @entity PgTransaction
8
+ * @entityType REFUND
9
+ * @actionKey MovePgTransactionRefundToCancelled
10
+ * @event k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionRefundToCancelled
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * RabbitMQ message payload for MovePgTransactionRefundToCancelled step flow events
17
+ *
18
+ * @event k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionRefundToCancelled
19
+ */
20
+ export interface MovePgTransactionRefundToCancelledMessage extends OdinRecordUpdatedEvent<MovePgTransactionRefundToCancelledDto, {}> {
21
+ }
22
+ /**
23
+ * Properties for MovePgTransactionRefundToCancelled action
24
+ *
25
+ */
26
+ export interface MovePgTransactionRefundToCancelledProperties {
27
+ }
28
+ /**
29
+ * MovePgTransactionRefundToCancelled
30
+ *
31
+ * Move PG Transaction Refund To Cancelled
32
+ *
33
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
34
+ * @module BillingModule
35
+ * @entity PgTransaction
36
+ * @entityType REFUND (Refund)
37
+ * @targetStages RefundStatusStageCancelled
38
+ * @event k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionRefundToCancelled
39
+ * @permission schema.action.movepgtransactionrefundtocancelled.trigger
40
+ * @benchmark This action is tracked for performance benchmarks
41
+ */
42
+ export declare class MovePgTransactionRefundToCancelledDto extends OdinRecordUpdateDto<Record<string, any>> {
43
+ /** Used by SDK generators to identify action type */
44
+ static readonly ACTION_TYPE = "UPDATE";
45
+ static readonly ACTION_KEY = "MovePgTransactionRefundToCancelled";
46
+ static readonly MODULE_NAME = "BillingModule";
47
+ static readonly ENTITIES: string[];
48
+ static readonly ENTITY_TYPE = "REFUND";
49
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionRefundToCancelled";
50
+ static readonly SCHEMA_ACTION_ID = "ac8f8cb3-9760-4a34-9841-04af0ad3967e";
51
+ static readonly PERMISSION = "schema.action.movepgtransactionrefundtocancelled.trigger";
52
+ static readonly TARGET_STAGES: readonly ["RefundStatusStageCancelled"];
53
+ static readonly IS_STAGE_TRANSITION = true;
54
+ static readonly IS_MULTI_STEP_FLOW = false;
55
+ static readonly HAS_STEP_LINKS = false;
56
+ readonly actionName: string;
57
+ readonly schemaActionId: string;
58
+ readonly entity: string;
59
+ readonly stageKey: string;
60
+ constructor(record: OdinRecord<any> | {
61
+ id: string;
62
+ entity: string;
63
+ type?: string;
64
+ }, options?: {
65
+ journeyId?: string;
66
+ });
67
+ /** Step classes that can be used with this action */
68
+ static readonly stepClasses: readonly [];
69
+ steps: [];
70
+ }
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /**
3
+ * MovePgTransactionRefundToCancelled Action DTO
4
+ *
5
+ * Move PG Transaction Refund To Cancelled
6
+ *
7
+ * @module BillingModule
8
+ * @entity PgTransaction
9
+ * @entityType REFUND
10
+ * @actionKey MovePgTransactionRefundToCancelled
11
+ * @event k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionRefundToCancelled
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MovePgTransactionRefundToCancelledDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * MovePgTransactionRefundToCancelled
20
+ *
21
+ * Move PG Transaction Refund To Cancelled
22
+ *
23
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
24
+ * @module BillingModule
25
+ * @entity PgTransaction
26
+ * @entityType REFUND (Refund)
27
+ * @targetStages RefundStatusStageCancelled
28
+ * @event k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionRefundToCancelled
29
+ * @permission schema.action.movepgtransactionrefundtocancelled.trigger
30
+ * @benchmark This action is tracked for performance benchmarks
31
+ */
32
+ class MovePgTransactionRefundToCancelledDto extends core_1.OdinRecordUpdateDto {
33
+ constructor(record, options) {
34
+ super({
35
+ id: record.id,
36
+ entity: record.entity,
37
+ type: record.type,
38
+ properties: {},
39
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
40
+ });
41
+ this.actionName = 'MovePgTransactionRefundToCancelled';
42
+ this.schemaActionId = 'ac8f8cb3-9760-4a34-9841-04af0ad3967e';
43
+ this.entity = 'BillingModule:PgTransaction';
44
+ this.stageKey = 'RefundStatusStageCancelled';
45
+ }
46
+ }
47
+ exports.MovePgTransactionRefundToCancelledDto = MovePgTransactionRefundToCancelledDto;
48
+ /** Used by SDK generators to identify action type */
49
+ MovePgTransactionRefundToCancelledDto.ACTION_TYPE = 'UPDATE';
50
+ MovePgTransactionRefundToCancelledDto.ACTION_KEY = 'MovePgTransactionRefundToCancelled';
51
+ MovePgTransactionRefundToCancelledDto.MODULE_NAME = 'BillingModule';
52
+ MovePgTransactionRefundToCancelledDto.ENTITIES = ['PgTransaction'];
53
+ MovePgTransactionRefundToCancelledDto.ENTITY_TYPE = 'REFUND';
54
+ MovePgTransactionRefundToCancelledDto.EVENT_NAME = 'k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionRefundToCancelled';
55
+ MovePgTransactionRefundToCancelledDto.SCHEMA_ACTION_ID = 'ac8f8cb3-9760-4a34-9841-04af0ad3967e';
56
+ MovePgTransactionRefundToCancelledDto.PERMISSION = 'schema.action.movepgtransactionrefundtocancelled.trigger';
57
+ MovePgTransactionRefundToCancelledDto.TARGET_STAGES = ['RefundStatusStageCancelled'];
58
+ MovePgTransactionRefundToCancelledDto.IS_STAGE_TRANSITION = true;
59
+ MovePgTransactionRefundToCancelledDto.IS_MULTI_STEP_FLOW = false;
60
+ MovePgTransactionRefundToCancelledDto.HAS_STEP_LINKS = false;
61
+ /** Step classes that can be used with this action */
62
+ MovePgTransactionRefundToCancelledDto.stepClasses = [];
@@ -22,7 +22,7 @@ export interface UpdateTeamMessage extends OdinRecordUpdatedEvent<UpdateTeamDto,
22
22
  * Properties for UpdateTeam action
23
23
  *
24
24
  * @property Required fields: 0
25
- * @property Optional fields: 11
25
+ * @property Optional fields: 12
26
26
  */
27
27
  export interface UpdateTeamProperties {
28
28
  /**
@@ -102,6 +102,13 @@ export interface UpdateTeamProperties {
102
102
  * @type {UUID}
103
103
  */
104
104
  TeamId?: string | null;
105
+ /**
106
+ * TwilioQueueSid
107
+ *
108
+ * TwilioQueueSid
109
+ * @type {TEXT}
110
+ */
111
+ TwilioQueueSid?: string | null;
105
112
  }
106
113
  /**
107
114
  * UpdateTeam
@@ -0,0 +1,45 @@
1
+ import { OauthParams } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
2
+ import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
3
+ import { OdinSearchV2, OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/core';
4
+ import { AddressInteractionProperties } from '../entities-v2/AddressInteraction';
5
+ /**
6
+ * @deprecated Use OdinApiClient.
7
+ *
8
+ * Migration:
9
+ * - Old: new AddressInteractionApi(authParams).get(id)
10
+ * - New: new odin.addressinteraction.get(id)
11
+ *
12
+ * The new OdinApiClient returns typed record wrappers with action methods.
13
+ */
14
+ export declare class AddressInteractionApi extends ApiProvider {
15
+ protected readonly authToken?: string;
16
+ private readonly moduleName;
17
+ private readonly entityName;
18
+ private sourceRecord;
19
+ constructor(authParams?: OauthParams, authToken?: string);
20
+ setRecord(sourceRecord: any): void;
21
+ schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
22
+ search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<AddressInteractionProperties>>>;
23
+ searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<AddressInteractionProperties>>>;
24
+ reIndex(body: {
25
+ id: string;
26
+ schemaId: string;
27
+ }[]): Promise<any>;
28
+ get(addressInteractionId: string): Promise<import("@d19n/odin-types/dist/core").OdinRecord<AddressInteractionProperties>>;
29
+ getMany(addressInteractionIds: string[]): Promise<import("@d19n/odin-types/dist/core").OdinRecord<AddressInteractionProperties>[]>;
30
+ upsert(upsertDto: OdinRecordCreateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
31
+ upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
32
+ update(updateDto: OdinRecordUpdateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
33
+ updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
34
+ delete(addressInteractionId: string): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
35
+ deleteMany(addressInteractionIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
36
+ restore(addressInteractionIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinRestoreResponse[]>;
37
+ applyAction(dto: any): Promise<any[]>;
38
+ bulkApplyActions(dtos: any[]): Promise<any[]>;
39
+ getVersions(): Promise<{
40
+ [key: string]: Record<string, any>;
41
+ }>;
42
+ getRevisionTimeline(): Promise<{
43
+ [key: string]: Record<string, any>[];
44
+ }>;
45
+ }
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AddressInteractionApi = void 0;
13
+ const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
14
+ /**
15
+ * @deprecated Use OdinApiClient.
16
+ *
17
+ * Migration:
18
+ * - Old: new AddressInteractionApi(authParams).get(id)
19
+ * - New: new odin.addressinteraction.get(id)
20
+ *
21
+ * The new OdinApiClient returns typed record wrappers with action methods.
22
+ */
23
+ class AddressInteractionApi extends api_provider_1.ApiProvider {
24
+ // ============================================
25
+ // PRIVATE BACKING FIELDS (Lazy Loading)
26
+ // ============================================
27
+ constructor(authParams, authToken) {
28
+ super(authParams, authToken);
29
+ this.authToken = authToken;
30
+ this.moduleName = 'CrmModule';
31
+ this.entityName = 'AddressInteraction';
32
+ // Link managers are lazy-loaded on first access
33
+ }
34
+ // ============================================
35
+ // LAZY-LOADED LINK MANAGERS (Public Getters)
36
+ // ============================================
37
+ // Usage remains identical: api.address.list(recordId)
38
+ // ============================================
39
+ // STANDARD METHODS (Unchanged API)
40
+ // ============================================
41
+ setRecord(sourceRecord) {
42
+ this.sourceRecord = sourceRecord;
43
+ }
44
+ schema() {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ return yield this.getSchema(this.moduleName, this.entityName);
47
+ });
48
+ }
49
+ // Use this function when you want to search and handle all pagination on your own
50
+ search(params) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ return yield this._searchRecords(this.moduleName, this.entityName, params);
53
+ });
54
+ }
55
+ // Use this function when you want paginating through the results to be handled
56
+ searchAndPaginate(params) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
59
+ });
60
+ }
61
+ // Use this function to re-index records in elastic search
62
+ reIndex(body) {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ return yield this._reIndexRecords(body);
65
+ });
66
+ }
67
+ // Use this function when you want to return a single record
68
+ get(addressInteractionId) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, addressInteractionId);
71
+ if (res)
72
+ this.setRecord(res);
73
+ return res;
74
+ });
75
+ }
76
+ // Use this function when you want to return many records by primaryKeys
77
+ getMany(addressInteractionIds) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, addressInteractionIds);
80
+ });
81
+ }
82
+ // Use this function when you want to upsert one record
83
+ upsert(upsertDto) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto]);
86
+ return res[0];
87
+ });
88
+ }
89
+ // Use this function when you want to upsert many records
90
+ upsertMany(upsertDtos) {
91
+ return __awaiter(this, void 0, void 0, function* () {
92
+ return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
93
+ });
94
+ }
95
+ // Use this function when you want to update one record
96
+ update(updateDto) {
97
+ return __awaiter(this, void 0, void 0, function* () {
98
+ const res = yield this._update(this.moduleName, this.entityName, [updateDto]);
99
+ return res[0];
100
+ });
101
+ }
102
+ // Use this function when you want to update many records
103
+ updateMany(updateDtos) {
104
+ return __awaiter(this, void 0, void 0, function* () {
105
+ return yield this._update(this.moduleName, this.entityName, updateDtos);
106
+ });
107
+ }
108
+ // Use this function when you want to delete one record
109
+ delete(addressInteractionId) {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ return yield this._delete(this.moduleName, this.entityName, [addressInteractionId]);
112
+ });
113
+ }
114
+ // Use this function when you want to delete many records
115
+ deleteMany(addressInteractionIds) {
116
+ return __awaiter(this, void 0, void 0, function* () {
117
+ return yield this._delete(this.moduleName, this.entityName, addressInteractionIds);
118
+ });
119
+ }
120
+ // Use this function when you want to restore one or many records
121
+ restore(addressInteractionIds) {
122
+ return __awaiter(this, void 0, void 0, function* () {
123
+ return yield this._restore(this.moduleName, this.entityName, addressInteractionIds);
124
+ });
125
+ }
126
+ // Use this function when you want to apply a single action
127
+ applyAction(dto) {
128
+ return __awaiter(this, void 0, void 0, function* () {
129
+ return yield this._applyAction(this.moduleName, this.entityName, dto);
130
+ });
131
+ }
132
+ // Use this function when you want to bulk apply actions
133
+ bulkApplyActions(dtos) {
134
+ return __awaiter(this, void 0, void 0, function* () {
135
+ return yield this._bulkApplyActions(this.moduleName, this.entityName, dtos);
136
+ });
137
+ }
138
+ // Use this function when you want to return the versions for a single record
139
+ getVersions() {
140
+ return __awaiter(this, void 0, void 0, function* () {
141
+ return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
142
+ });
143
+ }
144
+ // Use this function when you want to return the change history for a single record
145
+ getRevisionTimeline() {
146
+ return __awaiter(this, void 0, void 0, function* () {
147
+ return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
148
+ });
149
+ }
150
+ }
151
+ exports.AddressInteractionApi = AddressInteractionApi;