@d19n/youfibre-odin-sdk 2.0.291 → 2.0.293
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 +17 -1
- package/dist/EntityRegistry.d.ts +2 -0
- package/dist/EntityRegistry.js +2 -0
- package/dist/OdinApiClient.d.ts +4 -0
- package/dist/OdinApiClient.js +8 -0
- package/dist/OdinDbClient.d.ts +4 -0
- package/dist/OdinDbClient.js +8 -0
- package/dist/accessors-v2/AgentStatusAccessor.d.ts +111 -0
- package/dist/accessors-v2/AgentStatusAccessor.js +190 -0
- package/dist/accessors-v2/index.d.ts +1 -0
- package/dist/accessors-v2/index.js +5 -3
- package/dist/actions-v2/MovePaymentMethodRefundToFailedDto.d.ts +114 -0
- package/dist/actions-v2/MovePaymentMethodRefundToFailedDto.js +79 -0
- package/dist/actions-v2/MovePaymentMethodRefundToInProgressDto.d.ts +114 -0
- package/dist/actions-v2/MovePaymentMethodRefundToInProgressDto.js +79 -0
- package/dist/actions-v2/MovePaymentMethodRefundToRetryingDto.d.ts +114 -0
- package/dist/actions-v2/MovePaymentMethodRefundToRetryingDto.js +79 -0
- package/dist/actions-v2/UpdateAgentStatusDto.d.ts +80 -0
- package/dist/actions-v2/UpdateAgentStatusDto.js +56 -0
- package/dist/actions-v2/UpdatePaymentMethodRefundDto.d.ts +93 -0
- package/dist/actions-v2/UpdatePaymentMethodRefundDto.js +56 -0
- package/dist/db-accessors-v2/AgentStatusDbAccessor.d.ts +149 -0
- package/dist/db-accessors-v2/AgentStatusDbAccessor.js +227 -0
- package/dist/db-accessors-v2/index.d.ts +1 -0
- package/dist/db-accessors-v2/index.js +5 -3
- package/dist/entities-v2/Case.d.ts +2 -0
- package/dist/entities-v2/Case.js +2 -0
- package/dist/entities-v2/PaymentMethodRefund.d.ts +4 -4
- package/dist/entities-v2/PaymentMethodRefund.js +2 -2
- package/dist/entities-v2/Recontract.d.ts +22 -1
- package/dist/entities-v2/Recontract.js +6 -0
- package/dist/records-v2/AgentStatusRecord.d.ts +203 -0
- package/dist/records-v2/AgentStatusRecord.js +273 -0
- package/dist/records-v2/PaymentMethodRefundRecord.d.ts +103 -0
- package/dist/records-v2/PaymentMethodRefundRecord.js +124 -0
- package/dist/records-v2/UserRecord.d.ts +20 -0
- package/dist/records-v2/UserRecord.js +33 -0
- package/dist/records-v2/index.d.ts +1 -0
- package/dist/records-v2/index.js +4 -1
- package/package.json +2 -2
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MovePaymentMethodRefundToFailed Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Move PMR To Failed
|
|
6
|
+
*
|
|
7
|
+
* @module BillingModule
|
|
8
|
+
* @entity PaymentMethodRefund
|
|
9
|
+
* @actionKey MovePaymentMethodRefundToFailed
|
|
10
|
+
* @event k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToFailed
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.MovePaymentMethodRefundToFailedDto = exports.MovePaymentMethodRefundToFailedSteps = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Type-safe step keys for MovePaymentMethodRefundToFailed
|
|
19
|
+
*/
|
|
20
|
+
exports.MovePaymentMethodRefundToFailedSteps = {
|
|
21
|
+
step_1: 'step_1',
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* MovePaymentMethodRefundToFailed
|
|
25
|
+
*
|
|
26
|
+
* Move PMR To Failed
|
|
27
|
+
*
|
|
28
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
29
|
+
* @module BillingModule
|
|
30
|
+
* @entity PaymentMethodRefund
|
|
31
|
+
* @targetStages PaymentMethodRefundPipelineStageFailed
|
|
32
|
+
* @event k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToFailed
|
|
33
|
+
* @permission schema.action.movepaymentmethodrefundtofailed.trigger
|
|
34
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
35
|
+
*/
|
|
36
|
+
class MovePaymentMethodRefundToFailedDto extends core_1.OdinRecordUpdateDto {
|
|
37
|
+
constructor(record, options) {
|
|
38
|
+
super({
|
|
39
|
+
id: record.id,
|
|
40
|
+
entity: record.entity,
|
|
41
|
+
type: record.type,
|
|
42
|
+
properties: {},
|
|
43
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
44
|
+
});
|
|
45
|
+
this.actionName = 'MovePaymentMethodRefundToFailed';
|
|
46
|
+
this.schemaActionId = '8796e239-f56c-4680-822b-729762d0838c';
|
|
47
|
+
this.entity = 'BillingModule:PaymentMethodRefund';
|
|
48
|
+
this.stageKey = 'PaymentMethodRefundPipelineStageFailed';
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.MovePaymentMethodRefundToFailedDto = MovePaymentMethodRefundToFailedDto;
|
|
52
|
+
/** Used by SDK generators to identify action type */
|
|
53
|
+
MovePaymentMethodRefundToFailedDto.ACTION_TYPE = 'UPDATE';
|
|
54
|
+
MovePaymentMethodRefundToFailedDto.ACTION_KEY = 'MovePaymentMethodRefundToFailed';
|
|
55
|
+
MovePaymentMethodRefundToFailedDto.MODULE_NAME = 'BillingModule';
|
|
56
|
+
MovePaymentMethodRefundToFailedDto.ENTITIES = ['PaymentMethodRefund'];
|
|
57
|
+
MovePaymentMethodRefundToFailedDto.EVENT_NAME = 'k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToFailed';
|
|
58
|
+
MovePaymentMethodRefundToFailedDto.SCHEMA_ACTION_ID = '8796e239-f56c-4680-822b-729762d0838c';
|
|
59
|
+
MovePaymentMethodRefundToFailedDto.PERMISSION = 'schema.action.movepaymentmethodrefundtofailed.trigger';
|
|
60
|
+
MovePaymentMethodRefundToFailedDto.TARGET_STAGES = ['PaymentMethodRefundPipelineStageFailed'];
|
|
61
|
+
MovePaymentMethodRefundToFailedDto.IS_STAGE_TRANSITION = true;
|
|
62
|
+
MovePaymentMethodRefundToFailedDto.IS_MULTI_STEP_FLOW = false;
|
|
63
|
+
MovePaymentMethodRefundToFailedDto.HAS_STEP_LINKS = false;
|
|
64
|
+
/**
|
|
65
|
+
* Step definitions with linking metadata
|
|
66
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
67
|
+
*/
|
|
68
|
+
MovePaymentMethodRefundToFailedDto.stepDefinitions = [
|
|
69
|
+
{
|
|
70
|
+
stepKey: 'step_1',
|
|
71
|
+
dtoClass: 'unknown',
|
|
72
|
+
entity: 'unknown',
|
|
73
|
+
linksTo: null
|
|
74
|
+
}
|
|
75
|
+
];
|
|
76
|
+
/** Type-safe step key accessor */
|
|
77
|
+
MovePaymentMethodRefundToFailedDto.Steps = exports.MovePaymentMethodRefundToFailedSteps;
|
|
78
|
+
/** Step classes that can be used with this action */
|
|
79
|
+
MovePaymentMethodRefundToFailedDto.stepClasses = [];
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MovePaymentMethodRefundToInProgress Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Move PMR To InProgress
|
|
5
|
+
*
|
|
6
|
+
* @module BillingModule
|
|
7
|
+
* @entity PaymentMethodRefund
|
|
8
|
+
* @actionKey MovePaymentMethodRefundToInProgress
|
|
9
|
+
* @event k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToInProgress
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
declare type StepClassMap = {};
|
|
15
|
+
/**
|
|
16
|
+
* Link definition for connecting steps in MovePaymentMethodRefundToInProgress
|
|
17
|
+
*/
|
|
18
|
+
export interface MovePaymentMethodRefundToInProgressStepLink {
|
|
19
|
+
/**
|
|
20
|
+
* The stepKey of the target step to link TO
|
|
21
|
+
* Must reference another step's stepKey in the same flow
|
|
22
|
+
*/
|
|
23
|
+
stepKey: string;
|
|
24
|
+
/**
|
|
25
|
+
* The schema association ID (UUID) defining the relationship
|
|
26
|
+
* Use the association.id from the schema association definition
|
|
27
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
28
|
+
*/
|
|
29
|
+
schemaAssociationId: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Step definition with linking metadata for MovePaymentMethodRefundToInProgress
|
|
33
|
+
*/
|
|
34
|
+
export interface MovePaymentMethodRefundToInProgressStepDefinition {
|
|
35
|
+
/** Unique identifier for this step */
|
|
36
|
+
stepKey: string;
|
|
37
|
+
/** The DTO class name for this step */
|
|
38
|
+
dtoClass: string;
|
|
39
|
+
/** The entity this step creates (Module:Entity format) */
|
|
40
|
+
entity: string;
|
|
41
|
+
/** Links to create after this step executes */
|
|
42
|
+
linksTo: MovePaymentMethodRefundToInProgressStepLink[] | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Type-safe step keys for MovePaymentMethodRefundToInProgress
|
|
46
|
+
*/
|
|
47
|
+
export declare const MovePaymentMethodRefundToInProgressSteps: {
|
|
48
|
+
readonly step_1: "step_1";
|
|
49
|
+
};
|
|
50
|
+
export declare type MovePaymentMethodRefundToInProgressStepKey = typeof MovePaymentMethodRefundToInProgressSteps[keyof typeof MovePaymentMethodRefundToInProgressSteps];
|
|
51
|
+
/**
|
|
52
|
+
* RabbitMQ message payload for MovePaymentMethodRefundToInProgress step flow events
|
|
53
|
+
*
|
|
54
|
+
* @event k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToInProgress
|
|
55
|
+
*/
|
|
56
|
+
export interface MovePaymentMethodRefundToInProgressMessage extends OdinRecordUpdatedEvent<MovePaymentMethodRefundToInProgressDto, {}> {
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Properties for MovePaymentMethodRefundToInProgress action
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
export interface MovePaymentMethodRefundToInProgressProperties {
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* MovePaymentMethodRefundToInProgress
|
|
66
|
+
*
|
|
67
|
+
* Move PMR To InProgress
|
|
68
|
+
*
|
|
69
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
70
|
+
* @module BillingModule
|
|
71
|
+
* @entity PaymentMethodRefund
|
|
72
|
+
* @targetStages PaymentMethodRefundStageInProgress
|
|
73
|
+
* @event k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToInProgress
|
|
74
|
+
* @permission schema.action.movepaymentmethodrefundtoinprogress.trigger
|
|
75
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
76
|
+
*/
|
|
77
|
+
export declare class MovePaymentMethodRefundToInProgressDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
78
|
+
/** Used by SDK generators to identify action type */
|
|
79
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
80
|
+
static readonly ACTION_KEY = "MovePaymentMethodRefundToInProgress";
|
|
81
|
+
static readonly MODULE_NAME = "BillingModule";
|
|
82
|
+
static readonly ENTITIES: string[];
|
|
83
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToInProgress";
|
|
84
|
+
static readonly SCHEMA_ACTION_ID = "acaef26a-5f3c-408b-b80c-49339f1bc5f3";
|
|
85
|
+
static readonly PERMISSION = "schema.action.movepaymentmethodrefundtoinprogress.trigger";
|
|
86
|
+
static readonly TARGET_STAGES: readonly ["PaymentMethodRefundStageInProgress"];
|
|
87
|
+
static readonly IS_STAGE_TRANSITION = true;
|
|
88
|
+
static readonly IS_MULTI_STEP_FLOW = false;
|
|
89
|
+
static readonly HAS_STEP_LINKS = false;
|
|
90
|
+
/**
|
|
91
|
+
* Step definitions with linking metadata
|
|
92
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
93
|
+
*/
|
|
94
|
+
static readonly stepDefinitions: MovePaymentMethodRefundToInProgressStepDefinition[];
|
|
95
|
+
/** Type-safe step key accessor */
|
|
96
|
+
static readonly Steps: {
|
|
97
|
+
readonly step_1: "step_1";
|
|
98
|
+
};
|
|
99
|
+
readonly actionName: string;
|
|
100
|
+
readonly schemaActionId: string;
|
|
101
|
+
readonly entity: string;
|
|
102
|
+
readonly stageKey: string;
|
|
103
|
+
constructor(record: OdinRecord<any> | {
|
|
104
|
+
id: string;
|
|
105
|
+
entity: string;
|
|
106
|
+
type?: string;
|
|
107
|
+
}, options?: {
|
|
108
|
+
journeyId?: string;
|
|
109
|
+
});
|
|
110
|
+
/** Step classes that can be used with this action */
|
|
111
|
+
static readonly stepClasses: readonly [];
|
|
112
|
+
steps: StepClassMap[(typeof MovePaymentMethodRefundToInProgressDto.stepClasses)[number]][];
|
|
113
|
+
}
|
|
114
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MovePaymentMethodRefundToInProgress Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Move PMR To InProgress
|
|
6
|
+
*
|
|
7
|
+
* @module BillingModule
|
|
8
|
+
* @entity PaymentMethodRefund
|
|
9
|
+
* @actionKey MovePaymentMethodRefundToInProgress
|
|
10
|
+
* @event k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToInProgress
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.MovePaymentMethodRefundToInProgressDto = exports.MovePaymentMethodRefundToInProgressSteps = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Type-safe step keys for MovePaymentMethodRefundToInProgress
|
|
19
|
+
*/
|
|
20
|
+
exports.MovePaymentMethodRefundToInProgressSteps = {
|
|
21
|
+
step_1: 'step_1',
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* MovePaymentMethodRefundToInProgress
|
|
25
|
+
*
|
|
26
|
+
* Move PMR To InProgress
|
|
27
|
+
*
|
|
28
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
29
|
+
* @module BillingModule
|
|
30
|
+
* @entity PaymentMethodRefund
|
|
31
|
+
* @targetStages PaymentMethodRefundStageInProgress
|
|
32
|
+
* @event k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToInProgress
|
|
33
|
+
* @permission schema.action.movepaymentmethodrefundtoinprogress.trigger
|
|
34
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
35
|
+
*/
|
|
36
|
+
class MovePaymentMethodRefundToInProgressDto extends core_1.OdinRecordUpdateDto {
|
|
37
|
+
constructor(record, options) {
|
|
38
|
+
super({
|
|
39
|
+
id: record.id,
|
|
40
|
+
entity: record.entity,
|
|
41
|
+
type: record.type,
|
|
42
|
+
properties: {},
|
|
43
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
44
|
+
});
|
|
45
|
+
this.actionName = 'MovePaymentMethodRefundToInProgress';
|
|
46
|
+
this.schemaActionId = 'acaef26a-5f3c-408b-b80c-49339f1bc5f3';
|
|
47
|
+
this.entity = 'BillingModule:PaymentMethodRefund';
|
|
48
|
+
this.stageKey = 'PaymentMethodRefundStageInProgress';
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.MovePaymentMethodRefundToInProgressDto = MovePaymentMethodRefundToInProgressDto;
|
|
52
|
+
/** Used by SDK generators to identify action type */
|
|
53
|
+
MovePaymentMethodRefundToInProgressDto.ACTION_TYPE = 'UPDATE';
|
|
54
|
+
MovePaymentMethodRefundToInProgressDto.ACTION_KEY = 'MovePaymentMethodRefundToInProgress';
|
|
55
|
+
MovePaymentMethodRefundToInProgressDto.MODULE_NAME = 'BillingModule';
|
|
56
|
+
MovePaymentMethodRefundToInProgressDto.ENTITIES = ['PaymentMethodRefund'];
|
|
57
|
+
MovePaymentMethodRefundToInProgressDto.EVENT_NAME = 'k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToInProgress';
|
|
58
|
+
MovePaymentMethodRefundToInProgressDto.SCHEMA_ACTION_ID = 'acaef26a-5f3c-408b-b80c-49339f1bc5f3';
|
|
59
|
+
MovePaymentMethodRefundToInProgressDto.PERMISSION = 'schema.action.movepaymentmethodrefundtoinprogress.trigger';
|
|
60
|
+
MovePaymentMethodRefundToInProgressDto.TARGET_STAGES = ['PaymentMethodRefundStageInProgress'];
|
|
61
|
+
MovePaymentMethodRefundToInProgressDto.IS_STAGE_TRANSITION = true;
|
|
62
|
+
MovePaymentMethodRefundToInProgressDto.IS_MULTI_STEP_FLOW = false;
|
|
63
|
+
MovePaymentMethodRefundToInProgressDto.HAS_STEP_LINKS = false;
|
|
64
|
+
/**
|
|
65
|
+
* Step definitions with linking metadata
|
|
66
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
67
|
+
*/
|
|
68
|
+
MovePaymentMethodRefundToInProgressDto.stepDefinitions = [
|
|
69
|
+
{
|
|
70
|
+
stepKey: 'step_1',
|
|
71
|
+
dtoClass: 'unknown',
|
|
72
|
+
entity: 'unknown',
|
|
73
|
+
linksTo: null
|
|
74
|
+
}
|
|
75
|
+
];
|
|
76
|
+
/** Type-safe step key accessor */
|
|
77
|
+
MovePaymentMethodRefundToInProgressDto.Steps = exports.MovePaymentMethodRefundToInProgressSteps;
|
|
78
|
+
/** Step classes that can be used with this action */
|
|
79
|
+
MovePaymentMethodRefundToInProgressDto.stepClasses = [];
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MovePaymentMethodRefundToRetrying Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Move PMR To Retrying
|
|
5
|
+
*
|
|
6
|
+
* @module BillingModule
|
|
7
|
+
* @entity PaymentMethodRefund
|
|
8
|
+
* @actionKey MovePaymentMethodRefundToRetrying
|
|
9
|
+
* @event k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToRetrying
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
declare type StepClassMap = {};
|
|
15
|
+
/**
|
|
16
|
+
* Link definition for connecting steps in MovePaymentMethodRefundToRetrying
|
|
17
|
+
*/
|
|
18
|
+
export interface MovePaymentMethodRefundToRetryingStepLink {
|
|
19
|
+
/**
|
|
20
|
+
* The stepKey of the target step to link TO
|
|
21
|
+
* Must reference another step's stepKey in the same flow
|
|
22
|
+
*/
|
|
23
|
+
stepKey: string;
|
|
24
|
+
/**
|
|
25
|
+
* The schema association ID (UUID) defining the relationship
|
|
26
|
+
* Use the association.id from the schema association definition
|
|
27
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
28
|
+
*/
|
|
29
|
+
schemaAssociationId: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Step definition with linking metadata for MovePaymentMethodRefundToRetrying
|
|
33
|
+
*/
|
|
34
|
+
export interface MovePaymentMethodRefundToRetryingStepDefinition {
|
|
35
|
+
/** Unique identifier for this step */
|
|
36
|
+
stepKey: string;
|
|
37
|
+
/** The DTO class name for this step */
|
|
38
|
+
dtoClass: string;
|
|
39
|
+
/** The entity this step creates (Module:Entity format) */
|
|
40
|
+
entity: string;
|
|
41
|
+
/** Links to create after this step executes */
|
|
42
|
+
linksTo: MovePaymentMethodRefundToRetryingStepLink[] | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Type-safe step keys for MovePaymentMethodRefundToRetrying
|
|
46
|
+
*/
|
|
47
|
+
export declare const MovePaymentMethodRefundToRetryingSteps: {
|
|
48
|
+
readonly step_1: "step_1";
|
|
49
|
+
};
|
|
50
|
+
export declare type MovePaymentMethodRefundToRetryingStepKey = typeof MovePaymentMethodRefundToRetryingSteps[keyof typeof MovePaymentMethodRefundToRetryingSteps];
|
|
51
|
+
/**
|
|
52
|
+
* RabbitMQ message payload for MovePaymentMethodRefundToRetrying step flow events
|
|
53
|
+
*
|
|
54
|
+
* @event k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToRetrying
|
|
55
|
+
*/
|
|
56
|
+
export interface MovePaymentMethodRefundToRetryingMessage extends OdinRecordUpdatedEvent<MovePaymentMethodRefundToRetryingDto, {}> {
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Properties for MovePaymentMethodRefundToRetrying action
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
export interface MovePaymentMethodRefundToRetryingProperties {
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* MovePaymentMethodRefundToRetrying
|
|
66
|
+
*
|
|
67
|
+
* Move PMR To Retrying
|
|
68
|
+
*
|
|
69
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
70
|
+
* @module BillingModule
|
|
71
|
+
* @entity PaymentMethodRefund
|
|
72
|
+
* @targetStages PaymentMethodRefundPipelineStageRetrying
|
|
73
|
+
* @event k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToRetrying
|
|
74
|
+
* @permission schema.action.movepaymentmethodrefundtoretrying.trigger
|
|
75
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
76
|
+
*/
|
|
77
|
+
export declare class MovePaymentMethodRefundToRetryingDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
78
|
+
/** Used by SDK generators to identify action type */
|
|
79
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
80
|
+
static readonly ACTION_KEY = "MovePaymentMethodRefundToRetrying";
|
|
81
|
+
static readonly MODULE_NAME = "BillingModule";
|
|
82
|
+
static readonly ENTITIES: string[];
|
|
83
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToRetrying";
|
|
84
|
+
static readonly SCHEMA_ACTION_ID = "be11d1bc-d682-4513-8f59-c78ee7e470b5";
|
|
85
|
+
static readonly PERMISSION = "schema.action.movepaymentmethodrefundtoretrying.trigger";
|
|
86
|
+
static readonly TARGET_STAGES: readonly ["PaymentMethodRefundPipelineStageRetrying"];
|
|
87
|
+
static readonly IS_STAGE_TRANSITION = true;
|
|
88
|
+
static readonly IS_MULTI_STEP_FLOW = false;
|
|
89
|
+
static readonly HAS_STEP_LINKS = false;
|
|
90
|
+
/**
|
|
91
|
+
* Step definitions with linking metadata
|
|
92
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
93
|
+
*/
|
|
94
|
+
static readonly stepDefinitions: MovePaymentMethodRefundToRetryingStepDefinition[];
|
|
95
|
+
/** Type-safe step key accessor */
|
|
96
|
+
static readonly Steps: {
|
|
97
|
+
readonly step_1: "step_1";
|
|
98
|
+
};
|
|
99
|
+
readonly actionName: string;
|
|
100
|
+
readonly schemaActionId: string;
|
|
101
|
+
readonly entity: string;
|
|
102
|
+
readonly stageKey: string;
|
|
103
|
+
constructor(record: OdinRecord<any> | {
|
|
104
|
+
id: string;
|
|
105
|
+
entity: string;
|
|
106
|
+
type?: string;
|
|
107
|
+
}, options?: {
|
|
108
|
+
journeyId?: string;
|
|
109
|
+
});
|
|
110
|
+
/** Step classes that can be used with this action */
|
|
111
|
+
static readonly stepClasses: readonly [];
|
|
112
|
+
steps: StepClassMap[(typeof MovePaymentMethodRefundToRetryingDto.stepClasses)[number]][];
|
|
113
|
+
}
|
|
114
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MovePaymentMethodRefundToRetrying Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Move PMR To Retrying
|
|
6
|
+
*
|
|
7
|
+
* @module BillingModule
|
|
8
|
+
* @entity PaymentMethodRefund
|
|
9
|
+
* @actionKey MovePaymentMethodRefundToRetrying
|
|
10
|
+
* @event k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToRetrying
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.MovePaymentMethodRefundToRetryingDto = exports.MovePaymentMethodRefundToRetryingSteps = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Type-safe step keys for MovePaymentMethodRefundToRetrying
|
|
19
|
+
*/
|
|
20
|
+
exports.MovePaymentMethodRefundToRetryingSteps = {
|
|
21
|
+
step_1: 'step_1',
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* MovePaymentMethodRefundToRetrying
|
|
25
|
+
*
|
|
26
|
+
* Move PMR To Retrying
|
|
27
|
+
*
|
|
28
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
29
|
+
* @module BillingModule
|
|
30
|
+
* @entity PaymentMethodRefund
|
|
31
|
+
* @targetStages PaymentMethodRefundPipelineStageRetrying
|
|
32
|
+
* @event k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToRetrying
|
|
33
|
+
* @permission schema.action.movepaymentmethodrefundtoretrying.trigger
|
|
34
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
35
|
+
*/
|
|
36
|
+
class MovePaymentMethodRefundToRetryingDto extends core_1.OdinRecordUpdateDto {
|
|
37
|
+
constructor(record, options) {
|
|
38
|
+
super({
|
|
39
|
+
id: record.id,
|
|
40
|
+
entity: record.entity,
|
|
41
|
+
type: record.type,
|
|
42
|
+
properties: {},
|
|
43
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
44
|
+
});
|
|
45
|
+
this.actionName = 'MovePaymentMethodRefundToRetrying';
|
|
46
|
+
this.schemaActionId = 'be11d1bc-d682-4513-8f59-c78ee7e470b5';
|
|
47
|
+
this.entity = 'BillingModule:PaymentMethodRefund';
|
|
48
|
+
this.stageKey = 'PaymentMethodRefundPipelineStageRetrying';
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.MovePaymentMethodRefundToRetryingDto = MovePaymentMethodRefundToRetryingDto;
|
|
52
|
+
/** Used by SDK generators to identify action type */
|
|
53
|
+
MovePaymentMethodRefundToRetryingDto.ACTION_TYPE = 'UPDATE';
|
|
54
|
+
MovePaymentMethodRefundToRetryingDto.ACTION_KEY = 'MovePaymentMethodRefundToRetrying';
|
|
55
|
+
MovePaymentMethodRefundToRetryingDto.MODULE_NAME = 'BillingModule';
|
|
56
|
+
MovePaymentMethodRefundToRetryingDto.ENTITIES = ['PaymentMethodRefund'];
|
|
57
|
+
MovePaymentMethodRefundToRetryingDto.EVENT_NAME = 'k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToRetrying';
|
|
58
|
+
MovePaymentMethodRefundToRetryingDto.SCHEMA_ACTION_ID = 'be11d1bc-d682-4513-8f59-c78ee7e470b5';
|
|
59
|
+
MovePaymentMethodRefundToRetryingDto.PERMISSION = 'schema.action.movepaymentmethodrefundtoretrying.trigger';
|
|
60
|
+
MovePaymentMethodRefundToRetryingDto.TARGET_STAGES = ['PaymentMethodRefundPipelineStageRetrying'];
|
|
61
|
+
MovePaymentMethodRefundToRetryingDto.IS_STAGE_TRANSITION = true;
|
|
62
|
+
MovePaymentMethodRefundToRetryingDto.IS_MULTI_STEP_FLOW = false;
|
|
63
|
+
MovePaymentMethodRefundToRetryingDto.HAS_STEP_LINKS = false;
|
|
64
|
+
/**
|
|
65
|
+
* Step definitions with linking metadata
|
|
66
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
67
|
+
*/
|
|
68
|
+
MovePaymentMethodRefundToRetryingDto.stepDefinitions = [
|
|
69
|
+
{
|
|
70
|
+
stepKey: 'step_1',
|
|
71
|
+
dtoClass: 'unknown',
|
|
72
|
+
entity: 'unknown',
|
|
73
|
+
linksTo: null
|
|
74
|
+
}
|
|
75
|
+
];
|
|
76
|
+
/** Type-safe step key accessor */
|
|
77
|
+
MovePaymentMethodRefundToRetryingDto.Steps = exports.MovePaymentMethodRefundToRetryingSteps;
|
|
78
|
+
/** Step classes that can be used with this action */
|
|
79
|
+
MovePaymentMethodRefundToRetryingDto.stepClasses = [];
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateAgentStatus Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Change this agent’s current status and whether voice sync is enabled.
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity AgentStatus
|
|
8
|
+
* @actionKey UpdateAgentStatus
|
|
9
|
+
* @event k1.t-hEOJjsDb.SupportModule.AgentStatus.Update.UpdateAgentStatus
|
|
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 UpdateAgentStatus updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.SupportModule.AgentStatus.Update.UpdateAgentStatus
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateAgentStatusMessage extends OdinRecordUpdatedEvent<UpdateAgentStatusDto, UpdateAgentStatusProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateAgentStatus action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 1
|
|
25
|
+
* @property Optional fields: 1
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateAgentStatusProperties {
|
|
28
|
+
/**
|
|
29
|
+
* Status
|
|
30
|
+
*
|
|
31
|
+
* Current channel-agnostic availability status. Values mirror TwilioActivity.Name.
|
|
32
|
+
* @type {ENUM}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
Status: string;
|
|
36
|
+
/**
|
|
37
|
+
* Voice enabled
|
|
38
|
+
*
|
|
39
|
+
* Whether this user’s Odin status should sync to their Twilio Worker. Phase 1: stored only, never read by any sync (no Twilio calls happen yet) — the field exists now so Phase 2 does not need a schema change to turn sync on.
|
|
40
|
+
* @type {BOOLEAN}
|
|
41
|
+
*/
|
|
42
|
+
VoiceEnabled?: boolean | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Update status
|
|
46
|
+
*
|
|
47
|
+
* Change this agent’s current status and whether voice sync is enabled.
|
|
48
|
+
*
|
|
49
|
+
* @actionType UPDATE - Updates an existing AgentStatus record
|
|
50
|
+
* @module SupportModule
|
|
51
|
+
* @entity AgentStatus
|
|
52
|
+
* @event k1.t-hEOJjsDb.SupportModule.AgentStatus.Update.UpdateAgentStatus
|
|
53
|
+
* @permission schema.action.updateagentstatus.trigger
|
|
54
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
55
|
+
*/
|
|
56
|
+
export declare class UpdateAgentStatusDto extends OdinRecordUpdateDto<UpdateAgentStatusProperties> {
|
|
57
|
+
/** Used by SDK generators to identify action type */
|
|
58
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
59
|
+
static readonly ACTION_KEY = "UpdateAgentStatus";
|
|
60
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
61
|
+
static readonly ENTITIES: string[];
|
|
62
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.AgentStatus.Update.UpdateAgentStatus";
|
|
63
|
+
static readonly PERMISSION = "schema.action.updateagentstatus.trigger";
|
|
64
|
+
/** Step metadata - entity this action targets */
|
|
65
|
+
static readonly STEP_ENTITY = "SupportModule:AgentStatus";
|
|
66
|
+
static readonly STEP_SCHEMA_ID = "047ad49d-9d2d-4005-adf8-8ba24e45e1a3";
|
|
67
|
+
static readonly STEP_SCHEMA_ACTION_ID = "716fad44-75fe-42a8-a95b-f87094bdfd27";
|
|
68
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
69
|
+
readonly actionName: string;
|
|
70
|
+
readonly schemaActionId: string;
|
|
71
|
+
readonly entity: string;
|
|
72
|
+
constructor(record: OdinRecord<any> | {
|
|
73
|
+
id: string;
|
|
74
|
+
entity: string;
|
|
75
|
+
type?: string;
|
|
76
|
+
}, properties: UpdateAgentStatusProperties, options?: {
|
|
77
|
+
journeyId?: string;
|
|
78
|
+
stageKey?: string;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateAgentStatus Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Change this agent’s current status and whether voice sync is enabled.
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity AgentStatus
|
|
9
|
+
* @actionKey UpdateAgentStatus
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.AgentStatus.Update.UpdateAgentStatus
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateAgentStatusDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Update status
|
|
19
|
+
*
|
|
20
|
+
* Change this agent’s current status and whether voice sync is enabled.
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing AgentStatus record
|
|
23
|
+
* @module SupportModule
|
|
24
|
+
* @entity AgentStatus
|
|
25
|
+
* @event k1.t-hEOJjsDb.SupportModule.AgentStatus.Update.UpdateAgentStatus
|
|
26
|
+
* @permission schema.action.updateagentstatus.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateAgentStatusDto extends core_1.OdinRecordUpdateDto {
|
|
30
|
+
constructor(record, properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
id: record.id,
|
|
33
|
+
entity: record.entity,
|
|
34
|
+
type: record.type,
|
|
35
|
+
properties,
|
|
36
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
37
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'UpdateAgentStatus';
|
|
40
|
+
this.schemaActionId = '716fad44-75fe-42a8-a95b-f87094bdfd27';
|
|
41
|
+
this.entity = 'SupportModule:AgentStatus';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateAgentStatusDto = UpdateAgentStatusDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateAgentStatusDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateAgentStatusDto.ACTION_KEY = 'UpdateAgentStatus';
|
|
48
|
+
UpdateAgentStatusDto.MODULE_NAME = 'SupportModule';
|
|
49
|
+
UpdateAgentStatusDto.ENTITIES = ['AgentStatus'];
|
|
50
|
+
UpdateAgentStatusDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.AgentStatus.Update.UpdateAgentStatus';
|
|
51
|
+
UpdateAgentStatusDto.PERMISSION = 'schema.action.updateagentstatus.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateAgentStatusDto.STEP_ENTITY = 'SupportModule:AgentStatus';
|
|
54
|
+
UpdateAgentStatusDto.STEP_SCHEMA_ID = '047ad49d-9d2d-4005-adf8-8ba24e45e1a3';
|
|
55
|
+
UpdateAgentStatusDto.STEP_SCHEMA_ACTION_ID = '716fad44-75fe-42a8-a95b-f87094bdfd27';
|
|
56
|
+
UpdateAgentStatusDto.AUTO_LINK_PARENT = false;
|