@d19n/youfibre-odin-sdk 1.0.191 → 1.0.192
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/dist/actions-v2/CancelPaymentDto.d.ts +18 -0
- package/dist/actions-v2/CancelPaymentDto.js +21 -0
- package/dist/actions-v2/KnowledgeArticleUserGuideCreateDto.d.ts +15 -0
- package/dist/actions-v2/KnowledgeArticleUserGuideCreateDto.js +18 -0
- package/dist/actions-v2/SetPaymentProcessingDto.d.ts +18 -0
- package/dist/actions-v2/SetPaymentProcessingDto.js +21 -0
- package/package.json +1 -1
- package/src/actions-v2/CancelPaymentDto.ts +62 -0
- package/src/actions-v2/KnowledgeArticleUserGuideCreateDto.ts +49 -0
- package/src/actions-v2/SetPaymentProcessingDto.ts +62 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
2
|
+
export interface CancelPaymentMessage extends OdinRecordUpdatedEvent<CancelPaymentDto, {}> {
|
|
3
|
+
}
|
|
4
|
+
export declare class CancelPaymentDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
5
|
+
readonly actionName: string;
|
|
6
|
+
readonly schemaActionId: string;
|
|
7
|
+
readonly stageKey: string;
|
|
8
|
+
constructor(record: OdinRecord<any> | {
|
|
9
|
+
id: string;
|
|
10
|
+
entity: string;
|
|
11
|
+
type?: string;
|
|
12
|
+
}, options?: {
|
|
13
|
+
journeyId?: string;
|
|
14
|
+
});
|
|
15
|
+
static readonly stepClasses: readonly [];
|
|
16
|
+
steps: [];
|
|
17
|
+
}
|
|
18
|
+
export declare const ROUTING_KEY_CANCEL_PAYMENT = "CancelPayment";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROUTING_KEY_CANCEL_PAYMENT = exports.CancelPaymentDto = void 0;
|
|
4
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
5
|
+
class CancelPaymentDto extends core_1.OdinRecordUpdateDto {
|
|
6
|
+
constructor(record, options) {
|
|
7
|
+
super({
|
|
8
|
+
id: record.id,
|
|
9
|
+
entity: record.entity,
|
|
10
|
+
type: record.type,
|
|
11
|
+
properties: {},
|
|
12
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
13
|
+
});
|
|
14
|
+
this.actionName = 'CancelPayment';
|
|
15
|
+
this.schemaActionId = 'ef0f9467-2a31-4f8b-9272-5624de7a4d8d';
|
|
16
|
+
this.stageKey = 'PaymentStageCancelled';
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.CancelPaymentDto = CancelPaymentDto;
|
|
20
|
+
CancelPaymentDto.stepClasses = [];
|
|
21
|
+
exports.ROUTING_KEY_CANCEL_PAYMENT = 'CancelPayment';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
2
|
+
interface KnowledgeArticleUserGuideCreateProperties {
|
|
3
|
+
Status: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class KnowledgeArticleUserGuideCreateDto extends OdinRecordCreateDto<KnowledgeArticleUserGuideCreateProperties> {
|
|
6
|
+
readonly actionName: string;
|
|
7
|
+
readonly schemaActionId: string;
|
|
8
|
+
constructor(properties: KnowledgeArticleUserGuideCreateProperties, options?: {
|
|
9
|
+
journeyId?: string;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
export interface KnowledgeArticleUserGuideCreateMessage extends OdinRecordCreatedEvent<KnowledgeArticleUserGuideCreateDto, KnowledgeArticleUserGuideCreateProperties> {
|
|
13
|
+
}
|
|
14
|
+
export declare const ROUTING_KEY_KNOWLEDGE_ARTICLE_USER_GUIDE_CREATE = "KnowledgeArticleUserGuideCreate";
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROUTING_KEY_KNOWLEDGE_ARTICLE_USER_GUIDE_CREATE = exports.KnowledgeArticleUserGuideCreateDto = void 0;
|
|
4
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
5
|
+
class KnowledgeArticleUserGuideCreateDto extends core_1.OdinRecordCreateDto {
|
|
6
|
+
constructor(properties, options) {
|
|
7
|
+
super({
|
|
8
|
+
entity: 'SupportModule:KnowledgeArticle',
|
|
9
|
+
type: 'USER_GUIDE',
|
|
10
|
+
properties,
|
|
11
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
12
|
+
});
|
|
13
|
+
this.actionName = 'KnowledgeArticleUserGuideCreate';
|
|
14
|
+
this.schemaActionId = 'a1fad5dd-541c-4063-b39a-c0d3d777a105';
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.KnowledgeArticleUserGuideCreateDto = KnowledgeArticleUserGuideCreateDto;
|
|
18
|
+
exports.ROUTING_KEY_KNOWLEDGE_ARTICLE_USER_GUIDE_CREATE = 'KnowledgeArticleUserGuideCreate';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
2
|
+
export interface SetPaymentProcessingMessage extends OdinRecordUpdatedEvent<SetPaymentProcessingDto, {}> {
|
|
3
|
+
}
|
|
4
|
+
export declare class SetPaymentProcessingDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
5
|
+
readonly actionName: string;
|
|
6
|
+
readonly schemaActionId: string;
|
|
7
|
+
readonly stageKey: string;
|
|
8
|
+
constructor(record: OdinRecord<any> | {
|
|
9
|
+
id: string;
|
|
10
|
+
entity: string;
|
|
11
|
+
type?: string;
|
|
12
|
+
}, options?: {
|
|
13
|
+
journeyId?: string;
|
|
14
|
+
});
|
|
15
|
+
static readonly stepClasses: readonly [];
|
|
16
|
+
steps: [];
|
|
17
|
+
}
|
|
18
|
+
export declare const ROUTING_KEY_SET_PAYMENT_PROCESSING = "SetPaymentProcessing";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROUTING_KEY_SET_PAYMENT_PROCESSING = exports.SetPaymentProcessingDto = void 0;
|
|
4
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
5
|
+
class SetPaymentProcessingDto extends core_1.OdinRecordUpdateDto {
|
|
6
|
+
constructor(record, options) {
|
|
7
|
+
super({
|
|
8
|
+
id: record.id,
|
|
9
|
+
entity: record.entity,
|
|
10
|
+
type: record.type,
|
|
11
|
+
properties: {},
|
|
12
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
13
|
+
});
|
|
14
|
+
this.actionName = 'SetPaymentProcessing';
|
|
15
|
+
this.schemaActionId = '861cabb4-13dc-4d3b-9fd1-ab5077df2fd9';
|
|
16
|
+
this.stageKey = 'PaymentStageProcessing';
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.SetPaymentProcessingDto = SetPaymentProcessingDto;
|
|
20
|
+
SetPaymentProcessingDto.stepClasses = [];
|
|
21
|
+
exports.ROUTING_KEY_SET_PAYMENT_PROCESSING = 'SetPaymentProcessing';
|
package/package.json
CHANGED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
|
|
2
|
+
import {
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
OdinRecord,
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
OdinRecordCreateDto,
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
OdinRecordUpdateDto,
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
OdinRecordUpdatedEvent,
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
OdinRecordCreatedEvent,
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
OdinRecordDeletedEvent,
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
OdinRecordLinkCreatedEvent
|
|
24
|
+
|
|
25
|
+
} from '@d19n/odin-types/dist/core';
|
|
26
|
+
// ODIN ACTION
|
|
27
|
+
// An Action is a single transaction that changes the properties of one or more objects.
|
|
28
|
+
//================================================
|
|
29
|
+
|
|
30
|
+
type StepClassMap = {
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
export interface CancelPaymentMessage extends OdinRecordUpdatedEvent<CancelPaymentDto, {}> {}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
export class CancelPaymentDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
39
|
+
public readonly actionName: string = 'CancelPayment'
|
|
40
|
+
public readonly schemaActionId: string = 'ef0f9467-2a31-4f8b-9272-5624de7a4d8d';
|
|
41
|
+
public override readonly stageKey: string = 'PaymentStageCancelled'
|
|
42
|
+
constructor(
|
|
43
|
+
record: OdinRecord<any> | { id: string; entity: string; type?: string },
|
|
44
|
+
options?: { journeyId?: string }
|
|
45
|
+
) {
|
|
46
|
+
super({
|
|
47
|
+
id: record.id,
|
|
48
|
+
entity: record.entity,
|
|
49
|
+
type: record.type,
|
|
50
|
+
properties: {},
|
|
51
|
+
journeyId: options?.journeyId,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public static readonly stepClasses = [] as const;
|
|
56
|
+
|
|
57
|
+
steps: [];
|
|
58
|
+
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export const ROUTING_KEY_CANCEL_PAYMENT = 'CancelPayment';
|
|
62
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
|
|
2
|
+
import {
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
OdinRecord,
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
OdinRecordCreateDto,
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
OdinRecordUpdateDto,
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
OdinRecordUpdatedEvent,
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
OdinRecordCreatedEvent,
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
OdinRecordDeletedEvent,
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
OdinRecordLinkCreatedEvent
|
|
24
|
+
|
|
25
|
+
} from '@d19n/odin-types/dist/core';
|
|
26
|
+
// ODIN ACTION
|
|
27
|
+
// An Action is a single transaction that changes the properties of one or more objects.
|
|
28
|
+
interface KnowledgeArticleUserGuideCreateProperties {
|
|
29
|
+
Status: string,
|
|
30
|
+
}
|
|
31
|
+
export class KnowledgeArticleUserGuideCreateDto extends OdinRecordCreateDto<KnowledgeArticleUserGuideCreateProperties> {
|
|
32
|
+
public readonly actionName: string = 'KnowledgeArticleUserGuideCreate';
|
|
33
|
+
public readonly schemaActionId: string = 'a1fad5dd-541c-4063-b39a-c0d3d777a105';
|
|
34
|
+
constructor(properties: KnowledgeArticleUserGuideCreateProperties, options?: { journeyId?: string }) {
|
|
35
|
+
super({
|
|
36
|
+
entity: 'SupportModule:KnowledgeArticle',
|
|
37
|
+
type: 'USER_GUIDE',
|
|
38
|
+
properties,
|
|
39
|
+
journeyId: options?.journeyId,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
export interface KnowledgeArticleUserGuideCreateMessage extends OdinRecordCreatedEvent<KnowledgeArticleUserGuideCreateDto, KnowledgeArticleUserGuideCreateProperties> {}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
export const ROUTING_KEY_KNOWLEDGE_ARTICLE_USER_GUIDE_CREATE = 'KnowledgeArticleUserGuideCreate';
|
|
49
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
|
|
2
|
+
import {
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
OdinRecord,
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
OdinRecordCreateDto,
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
OdinRecordUpdateDto,
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
OdinRecordUpdatedEvent,
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
OdinRecordCreatedEvent,
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
OdinRecordDeletedEvent,
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
OdinRecordLinkCreatedEvent
|
|
24
|
+
|
|
25
|
+
} from '@d19n/odin-types/dist/core';
|
|
26
|
+
// ODIN ACTION
|
|
27
|
+
// An Action is a single transaction that changes the properties of one or more objects.
|
|
28
|
+
//================================================
|
|
29
|
+
|
|
30
|
+
type StepClassMap = {
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
export interface SetPaymentProcessingMessage extends OdinRecordUpdatedEvent<SetPaymentProcessingDto, {}> {}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
export class SetPaymentProcessingDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
39
|
+
public readonly actionName: string = 'SetPaymentProcessing'
|
|
40
|
+
public readonly schemaActionId: string = '861cabb4-13dc-4d3b-9fd1-ab5077df2fd9';
|
|
41
|
+
public override readonly stageKey: string = 'PaymentStageProcessing'
|
|
42
|
+
constructor(
|
|
43
|
+
record: OdinRecord<any> | { id: string; entity: string; type?: string },
|
|
44
|
+
options?: { journeyId?: string }
|
|
45
|
+
) {
|
|
46
|
+
super({
|
|
47
|
+
id: record.id,
|
|
48
|
+
entity: record.entity,
|
|
49
|
+
type: record.type,
|
|
50
|
+
properties: {},
|
|
51
|
+
journeyId: options?.journeyId,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public static readonly stepClasses = [] as const;
|
|
56
|
+
|
|
57
|
+
steps: [];
|
|
58
|
+
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export const ROUTING_KEY_SET_PAYMENT_PROCESSING = 'SetPaymentProcessing';
|
|
62
|
+
|