@d19n/youfibre-odin-sdk 2.0.229 → 2.0.230
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 +10 -2
- 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/PgReportEventAccessor.d.ts +111 -0
- package/dist/accessors-v2/PgReportEventAccessor.js +190 -0
- package/dist/accessors-v2/index.d.ts +1 -0
- package/dist/accessors-v2/index.js +4 -2
- package/dist/actions-v2/CreatePgReportEventDto.d.ts +128 -0
- package/dist/actions-v2/CreatePgReportEventDto.js +59 -0
- package/dist/actions-v2/UpdateAdditionalCareDto.d.ts +2 -2
- package/dist/actions-v2/UpdateContactDto.d.ts +2 -2
- package/dist/actions-v2/UpdatePgReportEventDto.d.ts +95 -0
- package/dist/actions-v2/UpdatePgReportEventDto.js +56 -0
- package/dist/api-sdk-v2/PgDirectDebitFileApi.d.ts +2 -0
- package/dist/api-sdk-v2/PgDirectDebitFileApi.js +6 -0
- package/dist/api-sdk-v2/PgPaymentMethodApi.d.ts +2 -0
- package/dist/api-sdk-v2/PgPaymentMethodApi.js +6 -0
- package/dist/api-sdk-v2/PgReportEventApi.d.ts +52 -0
- package/dist/api-sdk-v2/PgReportEventApi.js +167 -0
- package/dist/api-sdk-v2/PgTransactionApi.d.ts +2 -0
- package/dist/api-sdk-v2/PgTransactionApi.js +6 -0
- package/dist/db-accessors-v2/PgReportEventDbAccessor.d.ts +149 -0
- package/dist/db-accessors-v2/PgReportEventDbAccessor.js +227 -0
- package/dist/db-accessors-v2/index.d.ts +1 -0
- package/dist/db-accessors-v2/index.js +4 -2
- package/dist/db-sdk-v2/PgDirectDebitFileDb.d.ts +2 -0
- package/dist/db-sdk-v2/PgDirectDebitFileDb.js +6 -0
- package/dist/db-sdk-v2/PgPaymentMethodDb.d.ts +2 -0
- package/dist/db-sdk-v2/PgPaymentMethodDb.js +6 -0
- package/dist/db-sdk-v2/PgReportEventDb.d.ts +124 -0
- package/dist/db-sdk-v2/PgReportEventDb.js +216 -0
- package/dist/db-sdk-v2/PgTransactionDb.d.ts +2 -0
- package/dist/db-sdk-v2/PgTransactionDb.js +6 -0
- package/dist/entities-v2/ChurnRequest.d.ts +4 -0
- package/dist/entities-v2/ChurnRequest.js +4 -0
- package/dist/entities-v2/Contact.d.ts +58 -72
- package/dist/entities-v2/Contact.js +40 -54
- package/dist/entities-v2/PgDirectDebitFile.d.ts +7 -0
- package/dist/entities-v2/PgDirectDebitFile.js +5 -1
- package/dist/entities-v2/PgPaymentMethod.d.ts +7 -0
- package/dist/entities-v2/PgPaymentMethod.js +5 -1
- package/dist/entities-v2/PgReportEvent.d.ts +187 -0
- package/dist/entities-v2/PgReportEvent.js +132 -0
- package/dist/entities-v2/PgTransaction.d.ts +7 -0
- package/dist/entities-v2/PgTransaction.js +5 -1
- package/dist/records-v2/PgDirectDebitFileRecord.d.ts +20 -0
- package/dist/records-v2/PgDirectDebitFileRecord.js +33 -0
- package/dist/records-v2/PgPaymentMethodRecord.d.ts +20 -0
- package/dist/records-v2/PgPaymentMethodRecord.js +33 -0
- package/dist/records-v2/PgReportEventRecord.d.ts +272 -0
- package/dist/records-v2/PgReportEventRecord.js +378 -0
- package/dist/records-v2/PgTransactionRecord.d.ts +20 -0
- package/dist/records-v2/PgTransactionRecord.js +33 -0
- package/dist/records-v2/index.d.ts +1 -0
- package/dist/records-v2/index.js +6 -3
- package/package.json +1 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreatePgReportEvent Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Creates a new report event
|
|
6
|
+
*
|
|
7
|
+
* @module BillingModule
|
|
8
|
+
* @entity PgReportEvent
|
|
9
|
+
* @entityType DEFAULT
|
|
10
|
+
* @actionKey CreatePgReportEvent
|
|
11
|
+
* @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Create.CreatePgReportEvent
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreatePgReportEventDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* CreatePgReportEvent
|
|
20
|
+
*
|
|
21
|
+
* Creates a new report event
|
|
22
|
+
*
|
|
23
|
+
* @actionType CREATE - Creates a new PgReportEvent record
|
|
24
|
+
* @module BillingModule
|
|
25
|
+
* @entity PgReportEvent
|
|
26
|
+
* @entityType DEFAULT (Default)
|
|
27
|
+
* @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Create.CreatePgReportEvent
|
|
28
|
+
* @permission schema.action.createpgreportevent.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class CreatePgReportEventDto extends core_1.OdinRecordCreateDto {
|
|
32
|
+
constructor(properties, options) {
|
|
33
|
+
super({
|
|
34
|
+
entity: 'BillingModule:PgReportEvent',
|
|
35
|
+
type: 'DEFAULT',
|
|
36
|
+
properties,
|
|
37
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'CreatePgReportEvent';
|
|
40
|
+
this.schemaActionId = '9a6764d8-e3e5-4052-af0e-d14b5f2ee95b';
|
|
41
|
+
this.entity = 'BillingModule:PgReportEvent';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CreatePgReportEventDto = CreatePgReportEventDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
CreatePgReportEventDto.ACTION_TYPE = 'CREATE';
|
|
47
|
+
CreatePgReportEventDto.ACTION_KEY = 'CreatePgReportEvent';
|
|
48
|
+
CreatePgReportEventDto.MODULE_NAME = 'BillingModule';
|
|
49
|
+
CreatePgReportEventDto.ENTITIES = ['PgReportEvent'];
|
|
50
|
+
CreatePgReportEventDto.ENTITY_TYPE = 'DEFAULT';
|
|
51
|
+
CreatePgReportEventDto.EVENT_NAME = 'k1.t-hEOJjsDb.BillingModule.PgReportEvent.Create.CreatePgReportEvent';
|
|
52
|
+
CreatePgReportEventDto.PERMISSION = 'schema.action.createpgreportevent.trigger';
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
CreatePgReportEventDto.STEP_ENTITY = 'BillingModule:PgReportEvent';
|
|
55
|
+
CreatePgReportEventDto.STEP_SCHEMA_ID = '759d5bc9-c05a-420d-9c9d-aadb4e51b503';
|
|
56
|
+
CreatePgReportEventDto.STEP_SCHEMA_ACTION_ID = '9a6764d8-e3e5-4052-af0e-d14b5f2ee95b';
|
|
57
|
+
CreatePgReportEventDto.STEP_SCHEMA_TYPE_ID = 'a09001c2-ae37-4e90-8839-b997ee5b924c';
|
|
58
|
+
CreatePgReportEventDto.STEP_TYPE = 'DEFAULT';
|
|
59
|
+
CreatePgReportEventDto.AUTO_LINK_PARENT = true;
|
|
@@ -57,10 +57,10 @@ export interface UpdateAdditionalCareProperties {
|
|
|
57
57
|
* Additional Care Consent
|
|
58
58
|
*
|
|
59
59
|
* Customer consent for recording additional care requiremetns (Sales - Contact)
|
|
60
|
-
* @type {
|
|
60
|
+
* @type {BOOLEAN}
|
|
61
61
|
* @requiredWhen TelecareAlarm = ["YES"] AND MedicallyDependant = ["YES"]
|
|
62
62
|
*/
|
|
63
|
-
AdditionalCareConsent?:
|
|
63
|
+
AdditionalCareConsent?: boolean | null;
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
66
|
* Additional Care
|
|
@@ -131,10 +131,10 @@ export interface UpdateContactProperties {
|
|
|
131
131
|
* Additional Care Consent
|
|
132
132
|
*
|
|
133
133
|
* Customer consent for recording additional care requiremetns (Sales - Contact)
|
|
134
|
-
* @type {
|
|
134
|
+
* @type {BOOLEAN}
|
|
135
135
|
* @requiredWhen MedicallyDependant = ["YES"] AND TelecareAlarm = ["YES"]
|
|
136
136
|
*/
|
|
137
|
-
AdditionalCareConsent?:
|
|
137
|
+
AdditionalCareConsent?: boolean | null;
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
140
|
* UpdateContact
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdatePgReportEvent Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update a Report Event
|
|
5
|
+
*
|
|
6
|
+
* @module BillingModule
|
|
7
|
+
* @entity PgReportEvent
|
|
8
|
+
* @actionKey UpdatePgReportEvent
|
|
9
|
+
* @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Update.UpdatePgReportEvent
|
|
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 UpdatePgReportEvent updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Update.UpdatePgReportEvent
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdatePgReportEventMessage extends OdinRecordUpdatedEvent<UpdatePgReportEventDto, UpdatePgReportEventProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdatePgReportEvent action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 2
|
|
25
|
+
* @property Optional fields: 2
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdatePgReportEventProperties {
|
|
28
|
+
/**
|
|
29
|
+
* Processed
|
|
30
|
+
*
|
|
31
|
+
* Processed tracker
|
|
32
|
+
* @type {BOOLEAN}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
Processed: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Message
|
|
38
|
+
*
|
|
39
|
+
* Message
|
|
40
|
+
* @type {TEXT_LONG}
|
|
41
|
+
* @required
|
|
42
|
+
*/
|
|
43
|
+
Message: string;
|
|
44
|
+
/**
|
|
45
|
+
* PaymentMethodId
|
|
46
|
+
*
|
|
47
|
+
* PaymentMethodId
|
|
48
|
+
* @type {LOOKUP}
|
|
49
|
+
*/
|
|
50
|
+
PaymentMethodId?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* TransactionId
|
|
53
|
+
*
|
|
54
|
+
* TransactionId
|
|
55
|
+
* @type {LOOKUP}
|
|
56
|
+
*/
|
|
57
|
+
TransactionId?: string | null;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* UpdatePgReportEvent
|
|
61
|
+
*
|
|
62
|
+
* Update a Report Event
|
|
63
|
+
*
|
|
64
|
+
* @actionType UPDATE - Updates an existing PgReportEvent record
|
|
65
|
+
* @module BillingModule
|
|
66
|
+
* @entity PgReportEvent
|
|
67
|
+
* @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Update.UpdatePgReportEvent
|
|
68
|
+
* @permission schema.action.updatepgreportevent.trigger
|
|
69
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
70
|
+
*/
|
|
71
|
+
export declare class UpdatePgReportEventDto extends OdinRecordUpdateDto<UpdatePgReportEventProperties> {
|
|
72
|
+
/** Used by SDK generators to identify action type */
|
|
73
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
74
|
+
static readonly ACTION_KEY = "UpdatePgReportEvent";
|
|
75
|
+
static readonly MODULE_NAME = "BillingModule";
|
|
76
|
+
static readonly ENTITIES: string[];
|
|
77
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.BillingModule.PgReportEvent.Update.UpdatePgReportEvent";
|
|
78
|
+
static readonly PERMISSION = "schema.action.updatepgreportevent.trigger";
|
|
79
|
+
/** Step metadata - entity this action targets */
|
|
80
|
+
static readonly STEP_ENTITY = "BillingModule:PgReportEvent";
|
|
81
|
+
static readonly STEP_SCHEMA_ID = "759d5bc9-c05a-420d-9c9d-aadb4e51b503";
|
|
82
|
+
static readonly STEP_SCHEMA_ACTION_ID = "58f1a17d-36bb-4e8a-ac34-5a53fe1014f7";
|
|
83
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
84
|
+
readonly actionName: string;
|
|
85
|
+
readonly schemaActionId: string;
|
|
86
|
+
readonly entity: string;
|
|
87
|
+
constructor(record: OdinRecord<any> | {
|
|
88
|
+
id: string;
|
|
89
|
+
entity: string;
|
|
90
|
+
type?: string;
|
|
91
|
+
}, properties: UpdatePgReportEventProperties, options?: {
|
|
92
|
+
journeyId?: string;
|
|
93
|
+
stageKey?: string;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdatePgReportEvent Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update a Report Event
|
|
6
|
+
*
|
|
7
|
+
* @module BillingModule
|
|
8
|
+
* @entity PgReportEvent
|
|
9
|
+
* @actionKey UpdatePgReportEvent
|
|
10
|
+
* @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Update.UpdatePgReportEvent
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdatePgReportEventDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdatePgReportEvent
|
|
19
|
+
*
|
|
20
|
+
* Update a Report Event
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing PgReportEvent record
|
|
23
|
+
* @module BillingModule
|
|
24
|
+
* @entity PgReportEvent
|
|
25
|
+
* @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Update.UpdatePgReportEvent
|
|
26
|
+
* @permission schema.action.updatepgreportevent.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdatePgReportEventDto 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 = 'UpdatePgReportEvent';
|
|
40
|
+
this.schemaActionId = '58f1a17d-36bb-4e8a-ac34-5a53fe1014f7';
|
|
41
|
+
this.entity = 'BillingModule:PgReportEvent';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdatePgReportEventDto = UpdatePgReportEventDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdatePgReportEventDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdatePgReportEventDto.ACTION_KEY = 'UpdatePgReportEvent';
|
|
48
|
+
UpdatePgReportEventDto.MODULE_NAME = 'BillingModule';
|
|
49
|
+
UpdatePgReportEventDto.ENTITIES = ['PgReportEvent'];
|
|
50
|
+
UpdatePgReportEventDto.EVENT_NAME = 'k1.t-hEOJjsDb.BillingModule.PgReportEvent.Update.UpdatePgReportEvent';
|
|
51
|
+
UpdatePgReportEventDto.PERMISSION = 'schema.action.updatepgreportevent.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdatePgReportEventDto.STEP_ENTITY = 'BillingModule:PgReportEvent';
|
|
54
|
+
UpdatePgReportEventDto.STEP_SCHEMA_ID = '759d5bc9-c05a-420d-9c9d-aadb4e51b503';
|
|
55
|
+
UpdatePgReportEventDto.STEP_SCHEMA_ACTION_ID = '58f1a17d-36bb-4e8a-ac34-5a53fe1014f7';
|
|
56
|
+
UpdatePgReportEventDto.AUTO_LINK_PARENT = false;
|
|
@@ -20,10 +20,12 @@ export declare class PgDirectDebitFileApi extends ApiProvider {
|
|
|
20
20
|
private _file?;
|
|
21
21
|
private _pgfileallocation?;
|
|
22
22
|
private _pgdispute?;
|
|
23
|
+
private _pgreportevent?;
|
|
23
24
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
24
25
|
get file(): ApiRecordLinkManager;
|
|
25
26
|
get pgfileallocation(): ApiRecordLinkManager;
|
|
26
27
|
get pgdispute(): ApiRecordLinkManager;
|
|
28
|
+
get pgreportevent(): ApiRecordLinkManager;
|
|
27
29
|
setRecord(sourceRecord: any): void;
|
|
28
30
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
29
31
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<PgDirectDebitFileProperties>>>;
|
|
@@ -51,6 +51,12 @@ class PgDirectDebitFileApi extends api_provider_1.ApiProvider {
|
|
|
51
51
|
}
|
|
52
52
|
return this._pgdispute;
|
|
53
53
|
}
|
|
54
|
+
get pgreportevent() {
|
|
55
|
+
if (!this._pgreportevent) {
|
|
56
|
+
this._pgreportevent = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'BillingModule:PgDirectDebitFile', 'BillingModule:PgReportEvent', 'PgDirectDebitFile__PgReportEvent');
|
|
57
|
+
}
|
|
58
|
+
return this._pgreportevent;
|
|
59
|
+
}
|
|
54
60
|
// ============================================
|
|
55
61
|
// STANDARD METHODS (Unchanged API)
|
|
56
62
|
// ============================================
|
|
@@ -21,11 +21,13 @@ export declare class PgPaymentMethodApi extends ApiProvider {
|
|
|
21
21
|
private _pgwebhook?;
|
|
22
22
|
private _pgcontact?;
|
|
23
23
|
private _pgfileallocation?;
|
|
24
|
+
private _pgreportevent?;
|
|
24
25
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
25
26
|
get pgtransaction(): ApiRecordLinkManager;
|
|
26
27
|
get pgwebhook(): ApiRecordLinkManager;
|
|
27
28
|
get pgcontact(): ApiRecordLinkManager;
|
|
28
29
|
get pgfileallocation(): ApiRecordLinkManager;
|
|
30
|
+
get pgreportevent(): ApiRecordLinkManager;
|
|
29
31
|
setRecord(sourceRecord: any): void;
|
|
30
32
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
31
33
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<PgPaymentMethodProperties>>>;
|
|
@@ -57,6 +57,12 @@ class PgPaymentMethodApi extends api_provider_1.ApiProvider {
|
|
|
57
57
|
}
|
|
58
58
|
return this._pgfileallocation;
|
|
59
59
|
}
|
|
60
|
+
get pgreportevent() {
|
|
61
|
+
if (!this._pgreportevent) {
|
|
62
|
+
this._pgreportevent = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'BillingModule:PgPaymentMethod', 'BillingModule:PgReportEvent', 'PgPaymentMethod__PgReportEvent');
|
|
63
|
+
}
|
|
64
|
+
return this._pgreportevent;
|
|
65
|
+
}
|
|
60
66
|
// ============================================
|
|
61
67
|
// STANDARD METHODS (Unchanged API)
|
|
62
68
|
// ============================================
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
|
|
5
|
+
import { PgReportEventProperties } from '../entities-v2/PgReportEvent';
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use OdinApiClient.
|
|
8
|
+
*
|
|
9
|
+
* Migration:
|
|
10
|
+
* - Old: new PgReportEventApi(authParams).get(id)
|
|
11
|
+
* - New: new odin.pgreportevent.get(id)
|
|
12
|
+
*
|
|
13
|
+
* The new OdinApiClient returns typed record wrappers with action methods.
|
|
14
|
+
*/
|
|
15
|
+
export declare class PgReportEventApi extends ApiProvider {
|
|
16
|
+
protected readonly authToken?: string;
|
|
17
|
+
private readonly moduleName;
|
|
18
|
+
private readonly entityName;
|
|
19
|
+
private sourceRecord;
|
|
20
|
+
private _pgdirectdebitfile?;
|
|
21
|
+
private _pgpaymentmethod?;
|
|
22
|
+
private _pgtransaction?;
|
|
23
|
+
constructor(authParams?: OauthParams, authToken?: string);
|
|
24
|
+
get pgdirectdebitfile(): ApiRecordLinkManager;
|
|
25
|
+
get pgpaymentmethod(): ApiRecordLinkManager;
|
|
26
|
+
get pgtransaction(): ApiRecordLinkManager;
|
|
27
|
+
setRecord(sourceRecord: any): void;
|
|
28
|
+
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
29
|
+
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<PgReportEventProperties>>>;
|
|
30
|
+
searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<PgReportEventProperties>>>;
|
|
31
|
+
reIndex(body: {
|
|
32
|
+
id: string;
|
|
33
|
+
schemaId: string;
|
|
34
|
+
}[]): Promise<any>;
|
|
35
|
+
get(pgReportEventId: string): Promise<import("@d19n/odin-types/dist/core").OdinRecord<PgReportEventProperties>>;
|
|
36
|
+
getMany(pgReportEventIds: string[]): Promise<import("@d19n/odin-types/dist/core").OdinRecord<PgReportEventProperties>[]>;
|
|
37
|
+
upsert(upsertDto: OdinRecordCreateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
|
|
38
|
+
upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
|
|
39
|
+
update(updateDto: OdinRecordUpdateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
|
|
40
|
+
updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
|
|
41
|
+
delete(pgReportEventId: string): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
|
|
42
|
+
deleteMany(pgReportEventIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
|
|
43
|
+
restore(pgReportEventIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinRestoreResponse[]>;
|
|
44
|
+
applyAction(dto: any): Promise<any[]>;
|
|
45
|
+
bulkApplyActions(dtos: any[]): Promise<any[]>;
|
|
46
|
+
getVersions(): Promise<{
|
|
47
|
+
[key: string]: Record<string, any>;
|
|
48
|
+
}>;
|
|
49
|
+
getRevisionTimeline(): Promise<{
|
|
50
|
+
[key: string]: Record<string, any>[];
|
|
51
|
+
}>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
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.PgReportEventApi = void 0;
|
|
13
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
14
|
+
const api_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/api.record.link.manager");
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Use OdinApiClient.
|
|
17
|
+
*
|
|
18
|
+
* Migration:
|
|
19
|
+
* - Old: new PgReportEventApi(authParams).get(id)
|
|
20
|
+
* - New: new odin.pgreportevent.get(id)
|
|
21
|
+
*
|
|
22
|
+
* The new OdinApiClient returns typed record wrappers with action methods.
|
|
23
|
+
*/
|
|
24
|
+
class PgReportEventApi extends api_provider_1.ApiProvider {
|
|
25
|
+
constructor(authParams, authToken) {
|
|
26
|
+
super(authParams, authToken);
|
|
27
|
+
this.authToken = authToken;
|
|
28
|
+
this.moduleName = 'BillingModule';
|
|
29
|
+
this.entityName = 'PgReportEvent';
|
|
30
|
+
// Link managers are lazy-loaded on first access
|
|
31
|
+
}
|
|
32
|
+
// ============================================
|
|
33
|
+
// LAZY-LOADED LINK MANAGERS (Public Getters)
|
|
34
|
+
// ============================================
|
|
35
|
+
// Usage remains identical: api.address.list(recordId)
|
|
36
|
+
get pgdirectdebitfile() {
|
|
37
|
+
if (!this._pgdirectdebitfile) {
|
|
38
|
+
this._pgdirectdebitfile = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'BillingModule:PgReportEvent', 'BillingModule:PgDirectDebitFile', 'PgDirectDebitFile__PgReportEvent');
|
|
39
|
+
}
|
|
40
|
+
return this._pgdirectdebitfile;
|
|
41
|
+
}
|
|
42
|
+
get pgpaymentmethod() {
|
|
43
|
+
if (!this._pgpaymentmethod) {
|
|
44
|
+
this._pgpaymentmethod = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'BillingModule:PgReportEvent', 'BillingModule:PgPaymentMethod', 'PgPaymentMethod__PgReportEvent');
|
|
45
|
+
}
|
|
46
|
+
return this._pgpaymentmethod;
|
|
47
|
+
}
|
|
48
|
+
get pgtransaction() {
|
|
49
|
+
if (!this._pgtransaction) {
|
|
50
|
+
this._pgtransaction = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'BillingModule:PgReportEvent', 'BillingModule:PgTransaction', 'PgTransaction__PgReportEvent');
|
|
51
|
+
}
|
|
52
|
+
return this._pgtransaction;
|
|
53
|
+
}
|
|
54
|
+
// ============================================
|
|
55
|
+
// STANDARD METHODS (Unchanged API)
|
|
56
|
+
// ============================================
|
|
57
|
+
setRecord(sourceRecord) {
|
|
58
|
+
this.sourceRecord = sourceRecord;
|
|
59
|
+
}
|
|
60
|
+
schema() {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
return yield this.getSchema(this.moduleName, this.entityName);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
66
|
+
search(params) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
return yield this._searchRecords(this.moduleName, this.entityName, params);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
// Use this function when you want paginating through the results to be handled
|
|
72
|
+
searchAndPaginate(params) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
// Use this function to re-index records in elastic search
|
|
78
|
+
reIndex(body) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
return yield this._reIndexRecords(body);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
// Use this function when you want to return a single record
|
|
84
|
+
get(pgReportEventId) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, pgReportEventId);
|
|
87
|
+
if (res)
|
|
88
|
+
this.setRecord(res);
|
|
89
|
+
return res;
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
// Use this function when you want to return many records by primaryKeys
|
|
93
|
+
getMany(pgReportEventIds) {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, pgReportEventIds);
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
// Use this function when you want to upsert one record
|
|
99
|
+
upsert(upsertDto) {
|
|
100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
+
const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto]);
|
|
102
|
+
return res[0];
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
// Use this function when you want to upsert many records
|
|
106
|
+
upsertMany(upsertDtos) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
// Use this function when you want to update one record
|
|
112
|
+
update(updateDto) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
const res = yield this._update(this.moduleName, this.entityName, [updateDto]);
|
|
115
|
+
return res[0];
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
// Use this function when you want to update many records
|
|
119
|
+
updateMany(updateDtos) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
return yield this._update(this.moduleName, this.entityName, updateDtos);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
// Use this function when you want to delete one record
|
|
125
|
+
delete(pgReportEventId) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
return yield this._delete(this.moduleName, this.entityName, [pgReportEventId]);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
// Use this function when you want to delete many records
|
|
131
|
+
deleteMany(pgReportEventIds) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
return yield this._delete(this.moduleName, this.entityName, pgReportEventIds);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
// Use this function when you want to restore one or many records
|
|
137
|
+
restore(pgReportEventIds) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
return yield this._restore(this.moduleName, this.entityName, pgReportEventIds);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
// Use this function when you want to apply a single action
|
|
143
|
+
applyAction(dto) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
return yield this._applyAction(this.moduleName, this.entityName, dto);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
// Use this function when you want to bulk apply actions
|
|
149
|
+
bulkApplyActions(dtos) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
return yield this._bulkApplyActions(this.moduleName, this.entityName, dtos);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
// Use this function when you want to return the versions for a single record
|
|
155
|
+
getVersions() {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
// Use this function when you want to return the change history for a single record
|
|
161
|
+
getRevisionTimeline() {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
exports.PgReportEventApi = PgReportEventApi;
|
|
@@ -21,11 +21,13 @@ export declare class PgTransactionApi extends ApiProvider {
|
|
|
21
21
|
private _pgpaymentmethod?;
|
|
22
22
|
private _pgdispute?;
|
|
23
23
|
private _pgfileallocation?;
|
|
24
|
+
private _pgreportevent?;
|
|
24
25
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
25
26
|
get pgwebhook(): ApiRecordLinkManager;
|
|
26
27
|
get pgpaymentmethod(): ApiRecordLinkManager;
|
|
27
28
|
get pgdispute(): ApiRecordLinkManager;
|
|
28
29
|
get pgfileallocation(): ApiRecordLinkManager;
|
|
30
|
+
get pgreportevent(): ApiRecordLinkManager;
|
|
29
31
|
setRecord(sourceRecord: any): void;
|
|
30
32
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
31
33
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<PgTransactionProperties>>>;
|
|
@@ -57,6 +57,12 @@ class PgTransactionApi extends api_provider_1.ApiProvider {
|
|
|
57
57
|
}
|
|
58
58
|
return this._pgfileallocation;
|
|
59
59
|
}
|
|
60
|
+
get pgreportevent() {
|
|
61
|
+
if (!this._pgreportevent) {
|
|
62
|
+
this._pgreportevent = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'BillingModule:PgTransaction', 'BillingModule:PgReportEvent', 'PgTransaction__PgReportEvent');
|
|
63
|
+
}
|
|
64
|
+
return this._pgreportevent;
|
|
65
|
+
}
|
|
60
66
|
// ============================================
|
|
61
67
|
// STANDARD METHODS (Unchanged API)
|
|
62
68
|
// ============================================
|