@d19n/youfibre-odin-sdk 2.0.229 → 2.0.231
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 +19 -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/CompletePicRequestDto.d.ts +13 -3
- package/dist/actions-v2/CompletePicRequestDto.js +2 -0
- package/dist/actions-v2/CompletePicRequestFlowDto.d.ts +11 -3
- package/dist/actions-v2/CreatePgReportEventDto.d.ts +135 -0
- package/dist/actions-v2/CreatePgReportEventDto.js +59 -0
- package/dist/actions-v2/MovePgReportEventToFailedDto.d.ts +117 -0
- package/dist/actions-v2/MovePgReportEventToFailedDto.js +82 -0
- package/dist/actions-v2/MovePgReportEventToSkippedDto.d.ts +117 -0
- package/dist/actions-v2/MovePgReportEventToSkippedDto.js +82 -0
- package/dist/actions-v2/MovePgReportEventToSucceededDto.d.ts +117 -0
- package/dist/actions-v2/MovePgReportEventToSucceededDto.js +82 -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 +194 -0
- package/dist/entities-v2/PgReportEvent.js +134 -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 +347 -0
- package/dist/records-v2/PgReportEventRecord.js +465 -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
|
@@ -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
|
// ============================================
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PgReportEvent DB Accessor
|
|
3
|
+
*
|
|
4
|
+
* Provides typed access to PgReportEvent records via direct database access.
|
|
5
|
+
* For use in backend services with principal + dbService.
|
|
6
|
+
* Returns wrapped records with typed action methods.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* // Simple get
|
|
11
|
+
* const record = await accessor.get(id);
|
|
12
|
+
*
|
|
13
|
+
* // With related entities
|
|
14
|
+
* const record = await accessor.get(id, { entities: ["Contact", "Address"] });
|
|
15
|
+
*
|
|
16
|
+
* // With permissions bypass (separate options)
|
|
17
|
+
* const record = await accessor.get(id, {}, { omitPermissionsCheck: true });
|
|
18
|
+
*
|
|
19
|
+
* // Silent write (no RabbitMQ events)
|
|
20
|
+
* const result = await accessor.upsert([dto], { omitWriteEvents: true });
|
|
21
|
+
*
|
|
22
|
+
* // Constructor-level default (applies to all calls)
|
|
23
|
+
* const accessor = new PgReportEventDbAccessor(principal, dbService, { omitPermissionsCheck: true });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
27
|
+
*/
|
|
28
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/core';
|
|
29
|
+
import { DbProvider, DbProviderOptions, DbGetQueryOptions } from '@d19n/odin-sdk-generator/dist/db.provider';
|
|
30
|
+
import { QueryBuilder } from '@d19n/odin-sdk-generator/dist/query-builder';
|
|
31
|
+
import { PgReportEventProperties } from '../entities-v2/PgReportEvent';
|
|
32
|
+
import { PgReportEventRecord } from '../records-v2/PgReportEventRecord';
|
|
33
|
+
/** Search response with wrapped records */
|
|
34
|
+
export interface PgReportEventDbSearchResponse {
|
|
35
|
+
records: PgReportEventRecord[];
|
|
36
|
+
totalRecords: number;
|
|
37
|
+
hasMore: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare class PgReportEventDbAccessor {
|
|
40
|
+
private readonly _provider;
|
|
41
|
+
private readonly _moduleName;
|
|
42
|
+
private readonly _entityName;
|
|
43
|
+
private readonly _defaultOptions?;
|
|
44
|
+
/**
|
|
45
|
+
* Create a new PgReportEventDbAccessor
|
|
46
|
+
* @param principal - The authenticated principal
|
|
47
|
+
* @param dbService - The database service instance
|
|
48
|
+
* @param defaultOptions - Default provider options applied to all operations
|
|
49
|
+
*/
|
|
50
|
+
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
51
|
+
get moduleName(): string;
|
|
52
|
+
get entityName(): string;
|
|
53
|
+
/**
|
|
54
|
+
* Create a new empty PgReportEvent record instance for create operations.
|
|
55
|
+
* Pre-generates an ID that can be referenced before the record is saved.
|
|
56
|
+
*
|
|
57
|
+
* @param id - Optional ID to use (auto-generated UUID if not provided)
|
|
58
|
+
* @returns A new record wrapper with pre-generated ID
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```typescript
|
|
62
|
+
* // Auto-generated ID
|
|
63
|
+
* const note = odinDb.notes.new();
|
|
64
|
+
* console.log(note.id); // UUID available immediately
|
|
65
|
+
*
|
|
66
|
+
* // Custom ID
|
|
67
|
+
* const order = odinDb.orders.new("custom-id-123");
|
|
68
|
+
*
|
|
69
|
+
* // Reference ID before save
|
|
70
|
+
* const account = odinDb.accounts.new();
|
|
71
|
+
* const contact = odinDb.contacts.new();
|
|
72
|
+
* await contact
|
|
73
|
+
* .link({ id: account.id, entity: "CrmModule:Account" })
|
|
74
|
+
* .createContact({ FirstName: "John" });
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
new(id?: string): PgReportEventRecord;
|
|
78
|
+
/**
|
|
79
|
+
* Get a single PgReportEvent record by ID
|
|
80
|
+
*
|
|
81
|
+
* @param id - The record ID
|
|
82
|
+
* @param queryOptions - Query options (WHAT to fetch: entities to include)
|
|
83
|
+
* @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```typescript
|
|
87
|
+
* // Simple get
|
|
88
|
+
* const record = await accessor.get(id);
|
|
89
|
+
*
|
|
90
|
+
* // With related entities
|
|
91
|
+
* const record = await accessor.get(id, { entities: ["Contact", "Address"] });
|
|
92
|
+
*
|
|
93
|
+
* // With permissions bypass
|
|
94
|
+
* const record = await accessor.get(id, {}, { omitPermissionsCheck: true });
|
|
95
|
+
*
|
|
96
|
+
* // Both options
|
|
97
|
+
* const record = await accessor.get(id, { entities: ["Invoice"] }, { omitPermissionsCheck: true });
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
get(id: string, queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<PgReportEventRecord>;
|
|
101
|
+
/**
|
|
102
|
+
* Get multiple PgReportEvent records by IDs
|
|
103
|
+
*
|
|
104
|
+
* @param ids - Array of record IDs
|
|
105
|
+
* @param queryOptions - Query options (WHAT to fetch: entities to include)
|
|
106
|
+
* @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
|
|
107
|
+
*/
|
|
108
|
+
getMany(ids: string[], queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<PgReportEventRecord[]>;
|
|
109
|
+
/**
|
|
110
|
+
* Search PgReportEvent records
|
|
111
|
+
*
|
|
112
|
+
* @param params - Search parameters
|
|
113
|
+
* @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
|
|
114
|
+
*/
|
|
115
|
+
search(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<PgReportEventDbSearchResponse>;
|
|
116
|
+
/**
|
|
117
|
+
* Search all PgReportEvent records with automatic pagination
|
|
118
|
+
*
|
|
119
|
+
* @param params - Search parameters
|
|
120
|
+
* @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
|
|
121
|
+
*/
|
|
122
|
+
searchAll(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<PgReportEventRecord[]>;
|
|
123
|
+
/**
|
|
124
|
+
* Async generator for paginating through all matching records.
|
|
125
|
+
* Yields batches of wrapped records.
|
|
126
|
+
*
|
|
127
|
+
* @param params - Search parameters
|
|
128
|
+
* @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
|
|
129
|
+
*/
|
|
130
|
+
paginate(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): AsyncGenerator<PgReportEventRecord[]>;
|
|
131
|
+
/**
|
|
132
|
+
* Create a fluent query builder for PgReportEvent records
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```typescript
|
|
136
|
+
* const results = await accessor
|
|
137
|
+
* .query()
|
|
138
|
+
* .where('Status', 'in', ['Active', 'Pending'])
|
|
139
|
+
* .where('CreatedAt', 'gte', '2025-01-01')
|
|
140
|
+
* .select('id', 'title', 'properties.*')
|
|
141
|
+
* .sortBy('createdAt', 'desc')
|
|
142
|
+
* .limit(100)
|
|
143
|
+
* .execute();
|
|
144
|
+
* ```
|
|
145
|
+
*/
|
|
146
|
+
query(): QueryBuilder<PgReportEventProperties, PgReportEventRecord>;
|
|
147
|
+
/** Access the underlying DbProvider */
|
|
148
|
+
get provider(): DbProvider;
|
|
149
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* PgReportEvent DB Accessor
|
|
4
|
+
*
|
|
5
|
+
* Provides typed access to PgReportEvent records via direct database access.
|
|
6
|
+
* For use in backend services with principal + dbService.
|
|
7
|
+
* Returns wrapped records with typed action methods.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* // Simple get
|
|
12
|
+
* const record = await accessor.get(id);
|
|
13
|
+
*
|
|
14
|
+
* // With related entities
|
|
15
|
+
* const record = await accessor.get(id, { entities: ["Contact", "Address"] });
|
|
16
|
+
*
|
|
17
|
+
* // With permissions bypass (separate options)
|
|
18
|
+
* const record = await accessor.get(id, {}, { omitPermissionsCheck: true });
|
|
19
|
+
*
|
|
20
|
+
* // Silent write (no RabbitMQ events)
|
|
21
|
+
* const result = await accessor.upsert([dto], { omitWriteEvents: true });
|
|
22
|
+
*
|
|
23
|
+
* // Constructor-level default (applies to all calls)
|
|
24
|
+
* const accessor = new PgReportEventDbAccessor(principal, dbService, { omitPermissionsCheck: true });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
28
|
+
*/
|
|
29
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
33
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
34
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
35
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
39
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
40
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
41
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
42
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
43
|
+
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
44
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
45
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
46
|
+
function fulfill(value) { resume("next", value); }
|
|
47
|
+
function reject(value) { resume("throw", value); }
|
|
48
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.PgReportEventDbAccessor = void 0;
|
|
52
|
+
const db_provider_1 = require("@d19n/odin-sdk-generator/dist/db.provider");
|
|
53
|
+
const query_builder_1 = require("@d19n/odin-sdk-generator/dist/query-builder");
|
|
54
|
+
const PgReportEventRecord_1 = require("../records-v2/PgReportEventRecord");
|
|
55
|
+
class PgReportEventDbAccessor {
|
|
56
|
+
/**
|
|
57
|
+
* Create a new PgReportEventDbAccessor
|
|
58
|
+
* @param principal - The authenticated principal
|
|
59
|
+
* @param dbService - The database service instance
|
|
60
|
+
* @param defaultOptions - Default provider options applied to all operations
|
|
61
|
+
*/
|
|
62
|
+
constructor(principal, dbService, defaultOptions) {
|
|
63
|
+
this._moduleName = 'BillingModule';
|
|
64
|
+
this._entityName = 'PgReportEvent';
|
|
65
|
+
this._provider = new db_provider_1.DbProvider(principal, dbService, defaultOptions);
|
|
66
|
+
this._defaultOptions = defaultOptions;
|
|
67
|
+
}
|
|
68
|
+
get moduleName() { return this._moduleName; }
|
|
69
|
+
get entityName() { return this._entityName; }
|
|
70
|
+
// ============================================
|
|
71
|
+
// RECORD CREATION
|
|
72
|
+
// ============================================
|
|
73
|
+
/**
|
|
74
|
+
* Create a new empty PgReportEvent record instance for create operations.
|
|
75
|
+
* Pre-generates an ID that can be referenced before the record is saved.
|
|
76
|
+
*
|
|
77
|
+
* @param id - Optional ID to use (auto-generated UUID if not provided)
|
|
78
|
+
* @returns A new record wrapper with pre-generated ID
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```typescript
|
|
82
|
+
* // Auto-generated ID
|
|
83
|
+
* const note = odinDb.notes.new();
|
|
84
|
+
* console.log(note.id); // UUID available immediately
|
|
85
|
+
*
|
|
86
|
+
* // Custom ID
|
|
87
|
+
* const order = odinDb.orders.new("custom-id-123");
|
|
88
|
+
*
|
|
89
|
+
* // Reference ID before save
|
|
90
|
+
* const account = odinDb.accounts.new();
|
|
91
|
+
* const contact = odinDb.contacts.new();
|
|
92
|
+
* await contact
|
|
93
|
+
* .link({ id: account.id, entity: "CrmModule:Account" })
|
|
94
|
+
* .createContact({ FirstName: "John" });
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
new(id) {
|
|
98
|
+
return new PgReportEventRecord_1.PgReportEventRecord(null, this._provider, id);
|
|
99
|
+
}
|
|
100
|
+
// ============================================
|
|
101
|
+
// RECORD RETRIEVAL
|
|
102
|
+
// ============================================
|
|
103
|
+
/**
|
|
104
|
+
* Get a single PgReportEvent record by ID
|
|
105
|
+
*
|
|
106
|
+
* @param id - The record ID
|
|
107
|
+
* @param queryOptions - Query options (WHAT to fetch: entities to include)
|
|
108
|
+
* @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```typescript
|
|
112
|
+
* // Simple get
|
|
113
|
+
* const record = await accessor.get(id);
|
|
114
|
+
*
|
|
115
|
+
* // With related entities
|
|
116
|
+
* const record = await accessor.get(id, { entities: ["Contact", "Address"] });
|
|
117
|
+
*
|
|
118
|
+
* // With permissions bypass
|
|
119
|
+
* const record = await accessor.get(id, {}, { omitPermissionsCheck: true });
|
|
120
|
+
*
|
|
121
|
+
* // Both options
|
|
122
|
+
* const record = await accessor.get(id, { entities: ["Invoice"] }, { omitPermissionsCheck: true });
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
get(id, queryOptions, providerOptions) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const record = yield this._provider._getByPrimaryKey(this._moduleName, this._entityName, id, queryOptions, providerOptions);
|
|
128
|
+
return new PgReportEventRecord_1.PgReportEventRecord(record, this._provider);
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Get multiple PgReportEvent records by IDs
|
|
133
|
+
*
|
|
134
|
+
* @param ids - Array of record IDs
|
|
135
|
+
* @param queryOptions - Query options (WHAT to fetch: entities to include)
|
|
136
|
+
* @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
|
|
137
|
+
*/
|
|
138
|
+
getMany(ids, queryOptions, providerOptions) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
if (ids.length === 0)
|
|
141
|
+
return [];
|
|
142
|
+
const records = yield this._provider._getManyByPrimaryKey(this._moduleName, this._entityName, ids, queryOptions, providerOptions);
|
|
143
|
+
return records.map((r) => new PgReportEventRecord_1.PgReportEventRecord(r, this._provider));
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
// ============================================
|
|
147
|
+
// SEARCH OPERATIONS
|
|
148
|
+
// ============================================
|
|
149
|
+
/**
|
|
150
|
+
* Search PgReportEvent records
|
|
151
|
+
*
|
|
152
|
+
* @param params - Search parameters
|
|
153
|
+
* @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
|
|
154
|
+
*/
|
|
155
|
+
search(params, providerOptions) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
const result = yield this._provider._searchRecords(this._moduleName, this._entityName, params, providerOptions);
|
|
158
|
+
return {
|
|
159
|
+
records: result.records.map((r) => new PgReportEventRecord_1.PgReportEventRecord(r, this._provider)),
|
|
160
|
+
totalRecords: result.totalRecords,
|
|
161
|
+
hasMore: result.hasMore,
|
|
162
|
+
};
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Search all PgReportEvent records with automatic pagination
|
|
167
|
+
*
|
|
168
|
+
* @param params - Search parameters
|
|
169
|
+
* @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
|
|
170
|
+
*/
|
|
171
|
+
searchAll(params, providerOptions) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
173
|
+
const result = yield this._provider._searchAllRecordsAndPaginate(this._moduleName, this._entityName, params, 0, providerOptions);
|
|
174
|
+
return result.records.map((r) => new PgReportEventRecord_1.PgReportEventRecord(r, this._provider));
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Async generator for paginating through all matching records.
|
|
179
|
+
* Yields batches of wrapped records.
|
|
180
|
+
*
|
|
181
|
+
* @param params - Search parameters
|
|
182
|
+
* @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
|
|
183
|
+
*/
|
|
184
|
+
paginate(params, providerOptions) {
|
|
185
|
+
var _a;
|
|
186
|
+
return __asyncGenerator(this, arguments, function* paginate_1() {
|
|
187
|
+
let hasMore = true;
|
|
188
|
+
let searchAfter;
|
|
189
|
+
const query = Object.assign(Object.assign({}, params.query), { pageSize: ((_a = params.query) === null || _a === void 0 ? void 0 : _a.pageSize) || 500 });
|
|
190
|
+
while (hasMore) {
|
|
191
|
+
const result = yield __await(this._provider._searchRecords(this._moduleName, this._entityName, Object.assign(Object.assign({}, params), { query: Object.assign(Object.assign({}, query), { searchAfter }) }), providerOptions));
|
|
192
|
+
if (result.records.length > 0) {
|
|
193
|
+
yield yield __await(result.records.map((r) => new PgReportEventRecord_1.PgReportEventRecord(r, this._provider)));
|
|
194
|
+
const lastRecord = result.records[result.records.length - 1];
|
|
195
|
+
searchAfter = lastRecord === null || lastRecord === void 0 ? void 0 : lastRecord.sort;
|
|
196
|
+
}
|
|
197
|
+
hasMore = result.hasMore && result.records.length >= query.pageSize;
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
// ============================================
|
|
202
|
+
// QUERY BUILDER
|
|
203
|
+
// ============================================
|
|
204
|
+
/**
|
|
205
|
+
* Create a fluent query builder for PgReportEvent records
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* ```typescript
|
|
209
|
+
* const results = await accessor
|
|
210
|
+
* .query()
|
|
211
|
+
* .where('Status', 'in', ['Active', 'Pending'])
|
|
212
|
+
* .where('CreatedAt', 'gte', '2025-01-01')
|
|
213
|
+
* .select('id', 'title', 'properties.*')
|
|
214
|
+
* .sortBy('createdAt', 'desc')
|
|
215
|
+
* .limit(100)
|
|
216
|
+
* .execute();
|
|
217
|
+
* ```
|
|
218
|
+
*/
|
|
219
|
+
query() {
|
|
220
|
+
return (0, query_builder_1.createQueryBuilder)(this);
|
|
221
|
+
}
|
|
222
|
+
/** Access the underlying DbProvider */
|
|
223
|
+
get provider() {
|
|
224
|
+
return this._provider;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
exports.PgReportEventDbAccessor = PgReportEventDbAccessor;
|
|
@@ -80,6 +80,7 @@ export { PgDisputeDbAccessor, PgDisputeDbSearchResponse } from './PgDisputeDbAcc
|
|
|
80
80
|
export { PgFileAllocationDbAccessor, PgFileAllocationDbSearchResponse } from './PgFileAllocationDbAccessor';
|
|
81
81
|
export { PgLogDbAccessor, PgLogDbSearchResponse } from './PgLogDbAccessor';
|
|
82
82
|
export { PgPaymentMethodDbAccessor, PgPaymentMethodDbSearchResponse } from './PgPaymentMethodDbAccessor';
|
|
83
|
+
export { PgReportEventDbAccessor, PgReportEventDbSearchResponse } from './PgReportEventDbAccessor';
|
|
83
84
|
export { PgSortCodeSubstitutionDbAccessor, PgSortCodeSubstitutionDbSearchResponse } from './PgSortCodeSubstitutionDbAccessor';
|
|
84
85
|
export { PgTransactionDbAccessor, PgTransactionDbSearchResponse } from './PgTransactionDbAccessor';
|
|
85
86
|
export { PgVocalinkDbAccessor, PgVocalinkDbSearchResponse } from './PgVocalinkDbAccessor';
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.OhExternalAuditDbAccessor = exports.OfferTemplateDbAccessor = exports.OfferDbAccessor = exports.NoteDbAccessor = exports.NetworkDeviceDbAccessor = exports.MessageDbAccessor = exports.LeadDbAccessor = exports.KnowledgeArticleDbAccessor = exports.InvoiceDbAccessor = exports.InvoiceItemDbAccessor = exports.ImpersonationTrackerDbAccessor = exports.FileDbAccessor = exports.FieldServiceProductDbAccessor = exports.FieldServiceDispatchedProductDbAccessor = exports.ExchangeDbAccessor = exports.EmailTemplateDbAccessor = exports.EmailSenderDbAccessor = exports.EmailDbAccessor = exports.DiscountDbAccessor = exports.CustomerPhonePortingDbAccessor = exports.CustomerDeviceRouterDbAccessor = exports.CustomerDeviceOntDbAccessor = exports.CustomerDeviceConfigurationDbAccessor = exports.CustomerDeviceAtaDbAccessor = exports.CrmDatasetDbAccessor = exports.CreditNoteDbAccessor = exports.ConversationSummaryFeedbackDbAccessor = exports.ConversationDbAccessor = exports.ContractBuyOutDbAccessor = exports.ContactDbAccessor = exports.ContactIdentityDbAccessor = exports.ConfigDbAccessor = exports.ChurnRequestDbAccessor = exports.ChangeReasonDbAccessor = exports.CaseDbAccessor = exports.CampaignDbAccessor = exports.CallDbAccessor = exports.CallLegDbAccessor = exports.BrskEntityMigrationErrorDbAccessor = exports.BngProvisionDbAccessor = exports.BillingRequestDbAccessor = exports.BillingAdjustmentDbAccessor = exports.AppointmentDbAccessor = exports.AffiliateCodeDbAccessor = exports.AddressDbAccessor = exports.AddressInteractionDbAccessor = exports.ActivityDbAccessor = exports.ActivityLogDbAccessor = exports.AccountDbAccessor = exports.AccountCreditDbAccessor = void 0;
|
|
13
|
-
exports.
|
|
14
|
-
exports.YfFieldServiceVisitDbAccessor = exports.WorkOrderStatusUpdateDbAccessor = exports.WorkOrderDbAccessor = exports.WayleaveAuditDbAccessor = exports.VoiceConfigurationDbAccessor = exports.VisitDbAccessor = exports.UserDbAccessor = exports.UgExternalAuditDbAccessor = exports.TwilioWorkerDbAccessor = exports.TwilioUserUpdateDbAccessor = void 0;
|
|
13
|
+
exports.TwilioCallEventDbAccessor = exports.TwilioActivityDbAccessor = exports.TransactionDbAccessor = exports.TimeSlotDbAccessor = exports.TeamDbAccessor = exports.SmsMessageDbAccessor = exports.SiteSpecificRiskAssessmentOutcomeFormDbAccessor = exports.ServiceDbAccessor = exports.ServiceAppointmentDbAccessor = exports.ServiceAppointmentConfigDbAccessor = exports.ScheduleSlotDbAccessor = exports.SalesTerritoryDbAccessor = exports.RewardDbAccessor = exports.ReturnsDbAccessor = exports.RemediationRequiredReasonDbAccessor = exports.RemediationOutcomeFormDbAccessor = exports.RegionDbAccessor = exports.ReferralDbAccessor = exports.PushNotificationDbAccessor = exports.ProductDbAccessor = exports.PriceBookDbAccessor = exports.PgWebhookDbAccessor = exports.PgWebhookAttemptDbAccessor = exports.PgVocalinkDbAccessor = exports.PgTransactionDbAccessor = exports.PgSortCodeSubstitutionDbAccessor = exports.PgReportEventDbAccessor = exports.PgPaymentMethodDbAccessor = exports.PgLogDbAccessor = exports.PgFileAllocationDbAccessor = exports.PgDisputeDbAccessor = exports.PgDirectDebitFileDbAccessor = exports.PgContactDbAccessor = exports.PgAccountValidationDbAccessor = exports.PermissionToFailDbAccessor = exports.PaymentDbAccessor = exports.PaymentMethodRefundDbAccessor = exports.PaymentMethodDbAccessor = exports.PICRequestDbAccessor = exports.OverlayRealA55DbAccessor = exports.OutboundDialSessionDbAccessor = exports.OutboundDialCampaignDbAccessor = exports.OutboundDialCampaignCaseDbAccessor = exports.OutageDbAccessor = exports.OrderDbAccessor = exports.OrderKciDbAccessor = exports.OrderItemDbAccessor = exports.OrderCheckDbAccessor = exports.OntReplacementApprovalDbAccessor = exports.OneTouchSwitchDbAccessor = void 0;
|
|
14
|
+
exports.YfFieldServiceVisitDbAccessor = exports.WorkOrderStatusUpdateDbAccessor = exports.WorkOrderDbAccessor = exports.WayleaveAuditDbAccessor = exports.VoiceConfigurationDbAccessor = exports.VisitDbAccessor = exports.UserDbAccessor = exports.UgExternalAuditDbAccessor = exports.TwilioWorkerDbAccessor = exports.TwilioUserUpdateDbAccessor = exports.TwilioTaskQueueDbAccessor = void 0;
|
|
15
15
|
var AccountCreditDbAccessor_1 = require("./AccountCreditDbAccessor");
|
|
16
16
|
Object.defineProperty(exports, "AccountCreditDbAccessor", { enumerable: true, get: function () { return AccountCreditDbAccessor_1.AccountCreditDbAccessor; } });
|
|
17
17
|
var AccountDbAccessor_1 = require("./AccountDbAccessor");
|
|
@@ -158,6 +158,8 @@ var PgLogDbAccessor_1 = require("./PgLogDbAccessor");
|
|
|
158
158
|
Object.defineProperty(exports, "PgLogDbAccessor", { enumerable: true, get: function () { return PgLogDbAccessor_1.PgLogDbAccessor; } });
|
|
159
159
|
var PgPaymentMethodDbAccessor_1 = require("./PgPaymentMethodDbAccessor");
|
|
160
160
|
Object.defineProperty(exports, "PgPaymentMethodDbAccessor", { enumerable: true, get: function () { return PgPaymentMethodDbAccessor_1.PgPaymentMethodDbAccessor; } });
|
|
161
|
+
var PgReportEventDbAccessor_1 = require("./PgReportEventDbAccessor");
|
|
162
|
+
Object.defineProperty(exports, "PgReportEventDbAccessor", { enumerable: true, get: function () { return PgReportEventDbAccessor_1.PgReportEventDbAccessor; } });
|
|
161
163
|
var PgSortCodeSubstitutionDbAccessor_1 = require("./PgSortCodeSubstitutionDbAccessor");
|
|
162
164
|
Object.defineProperty(exports, "PgSortCodeSubstitutionDbAccessor", { enumerable: true, get: function () { return PgSortCodeSubstitutionDbAccessor_1.PgSortCodeSubstitutionDbAccessor; } });
|
|
163
165
|
var PgTransactionDbAccessor_1 = require("./PgTransactionDbAccessor");
|
|
@@ -24,10 +24,12 @@ export declare class PgDirectDebitFileDb extends DbProvider {
|
|
|
24
24
|
private _file?;
|
|
25
25
|
private _pgfileallocation?;
|
|
26
26
|
private _pgdispute?;
|
|
27
|
+
private _pgreportevent?;
|
|
27
28
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
28
29
|
get file(): DbRecordLinkManager;
|
|
29
30
|
get pgfileallocation(): DbRecordLinkManager;
|
|
30
31
|
get pgdispute(): DbRecordLinkManager;
|
|
32
|
+
get pgreportevent(): DbRecordLinkManager;
|
|
31
33
|
setRecord(sourceRecord: any): void;
|
|
32
34
|
/**
|
|
33
35
|
* Search records with manual pagination control
|
|
@@ -56,6 +56,12 @@ class PgDirectDebitFileDb extends db_provider_1.DbProvider {
|
|
|
56
56
|
}
|
|
57
57
|
return this._pgdispute;
|
|
58
58
|
}
|
|
59
|
+
get pgreportevent() {
|
|
60
|
+
if (!this._pgreportevent) {
|
|
61
|
+
this._pgreportevent = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'BillingModule:PgDirectDebitFile', 'BillingModule:PgReportEvent', 'PgDirectDebitFile__PgReportEvent');
|
|
62
|
+
}
|
|
63
|
+
return this._pgreportevent;
|
|
64
|
+
}
|
|
59
65
|
// ============================================
|
|
60
66
|
// STANDARD METHODS
|
|
61
67
|
// ============================================
|
|
@@ -25,11 +25,13 @@ export declare class PgPaymentMethodDb extends DbProvider {
|
|
|
25
25
|
private _pgwebhook?;
|
|
26
26
|
private _pgcontact?;
|
|
27
27
|
private _pgfileallocation?;
|
|
28
|
+
private _pgreportevent?;
|
|
28
29
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
29
30
|
get pgtransaction(): DbRecordLinkManager;
|
|
30
31
|
get pgwebhook(): DbRecordLinkManager;
|
|
31
32
|
get pgcontact(): DbRecordLinkManager;
|
|
32
33
|
get pgfileallocation(): DbRecordLinkManager;
|
|
34
|
+
get pgreportevent(): DbRecordLinkManager;
|
|
33
35
|
setRecord(sourceRecord: any): void;
|
|
34
36
|
/**
|
|
35
37
|
* Search records with manual pagination control
|
|
@@ -62,6 +62,12 @@ class PgPaymentMethodDb extends db_provider_1.DbProvider {
|
|
|
62
62
|
}
|
|
63
63
|
return this._pgfileallocation;
|
|
64
64
|
}
|
|
65
|
+
get pgreportevent() {
|
|
66
|
+
if (!this._pgreportevent) {
|
|
67
|
+
this._pgreportevent = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'BillingModule:PgPaymentMethod', 'BillingModule:PgReportEvent', 'PgPaymentMethod__PgReportEvent');
|
|
68
|
+
}
|
|
69
|
+
return this._pgreportevent;
|
|
70
|
+
}
|
|
65
71
|
// ============================================
|
|
66
72
|
// STANDARD METHODS
|
|
67
73
|
// ============================================
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { DbProvider, DbProviderOptions, DbGetQueryOptions } from '@d19n/odin-sdk-generator/dist/db.provider';
|
|
2
|
+
import { OdinSearchV2, OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/core';
|
|
3
|
+
import { DbRecordLinkManager } from '@d19n/odin-sdk-generator/dist/db.record.link.manager';
|
|
4
|
+
import { PgReportEventProperties } from '../entities-v2/PgReportEvent';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use OdinDbClient.
|
|
7
|
+
*
|
|
8
|
+
* Migration:
|
|
9
|
+
* - Old: new PgReportEventApi(authParams).get(id)
|
|
10
|
+
* - New: new odin.pgreportevent.get(id)
|
|
11
|
+
*
|
|
12
|
+
* The new OdinDbClient returns typed record wrappers with action methods.
|
|
13
|
+
*
|
|
14
|
+
* Supports separate query options and provider options:
|
|
15
|
+
* - Constructor level: new PgReportEventDb(principal, dbService, { omitPermissionsCheck: true })
|
|
16
|
+
* - Method level: await db.getByPrimaryKey(id, { entities: [] }, { omitPermissionsCheck: true })
|
|
17
|
+
*/
|
|
18
|
+
export declare class PgReportEventDb extends DbProvider {
|
|
19
|
+
protected readonly principal: any;
|
|
20
|
+
protected readonly dbService: any;
|
|
21
|
+
private readonly moduleName;
|
|
22
|
+
private readonly entityName;
|
|
23
|
+
private sourceRecord;
|
|
24
|
+
private _pgdirectdebitfile?;
|
|
25
|
+
private _pgpaymentmethod?;
|
|
26
|
+
private _pgtransaction?;
|
|
27
|
+
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
28
|
+
get pgdirectdebitfile(): DbRecordLinkManager;
|
|
29
|
+
get pgpaymentmethod(): DbRecordLinkManager;
|
|
30
|
+
get pgtransaction(): DbRecordLinkManager;
|
|
31
|
+
setRecord(sourceRecord: any): void;
|
|
32
|
+
/**
|
|
33
|
+
* Search records with manual pagination control
|
|
34
|
+
* @param params - Search parameters
|
|
35
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
36
|
+
*/
|
|
37
|
+
searchRecords(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core/interfaces/v2.db.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<PgReportEventProperties>>>;
|
|
38
|
+
/**
|
|
39
|
+
* Search all records with automatic pagination
|
|
40
|
+
* @param params - Search parameters
|
|
41
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
42
|
+
*/
|
|
43
|
+
searchAllRecordsAndPaginate(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core/interfaces/v2.db.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<PgReportEventProperties>>>;
|
|
44
|
+
/**
|
|
45
|
+
* Get a single record by primary key
|
|
46
|
+
* @param pgReportEventId - Record ID
|
|
47
|
+
* @param queryOptions - Query options (WHAT: entities to include)
|
|
48
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* // Simple get
|
|
52
|
+
* const record = await db.getByPrimaryKey(id);
|
|
53
|
+
*
|
|
54
|
+
* // With related entities
|
|
55
|
+
* const record = await db.getByPrimaryKey(id, { entities: ['InvoiceItem', 'Transaction'] });
|
|
56
|
+
*
|
|
57
|
+
* // With permissions bypass
|
|
58
|
+
* const record = await db.getByPrimaryKey(id, {}, { omitPermissionsCheck: true });
|
|
59
|
+
*
|
|
60
|
+
* // Both options
|
|
61
|
+
* const record = await db.getByPrimaryKey(id, { entities: ['Invoice'] }, { omitPermissionsCheck: true });
|
|
62
|
+
*/
|
|
63
|
+
getByPrimaryKey(pgReportEventId: string, queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").OdinRecord<PgReportEventProperties>>;
|
|
64
|
+
/**
|
|
65
|
+
* Get multiple records by primary keys
|
|
66
|
+
* @param pgReportEventIds - Array of record IDs
|
|
67
|
+
* @param queryOptions - Query options (WHAT: entities to include)
|
|
68
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
69
|
+
*/
|
|
70
|
+
getManyByPrimaryKey(pgReportEventIds: string[], queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").OdinRecord<PgReportEventProperties>[]>;
|
|
71
|
+
/**
|
|
72
|
+
* Upsert a single record
|
|
73
|
+
* @param upsertDto - Record to upsert
|
|
74
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
75
|
+
*/
|
|
76
|
+
upsert(upsertDto: OdinRecordCreateDto, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes>;
|
|
77
|
+
/**
|
|
78
|
+
* Upsert multiple records
|
|
79
|
+
* @param upsertDtos - Records to upsert
|
|
80
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
81
|
+
*/
|
|
82
|
+
upsertMany(upsertDtos: OdinRecordCreateDto[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes[]>;
|
|
83
|
+
/**
|
|
84
|
+
* Update a single record
|
|
85
|
+
* @param updateDto - Record to update
|
|
86
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
87
|
+
*/
|
|
88
|
+
update(updateDto: OdinRecordUpdateDto, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes>;
|
|
89
|
+
/**
|
|
90
|
+
* Update multiple records
|
|
91
|
+
* @param updateDtos - Records to update
|
|
92
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
93
|
+
*/
|
|
94
|
+
updateMany(updateDtos: OdinRecordUpdateDto[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes[]>;
|
|
95
|
+
/**
|
|
96
|
+
* Delete one or many records
|
|
97
|
+
* @param pgReportEventIds - Record IDs to delete
|
|
98
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
99
|
+
*/
|
|
100
|
+
delete(pgReportEventIds: string[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").DbRecordDeleted[]>;
|
|
101
|
+
/**
|
|
102
|
+
* Restore one or many deleted records
|
|
103
|
+
* @param pgReportEventIds - Record IDs to restore
|
|
104
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
105
|
+
*/
|
|
106
|
+
restore(pgReportEventIds: string[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").DbRecordRestored[]>;
|
|
107
|
+
/**
|
|
108
|
+
* Apply an action to a record
|
|
109
|
+
* @param actionName - The action key
|
|
110
|
+
* @param dto - The action DTO
|
|
111
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
112
|
+
*/
|
|
113
|
+
applyAction(actionName: string, dto: any, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes[]>;
|
|
114
|
+
/**
|
|
115
|
+
* Get version history for the current source record
|
|
116
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
117
|
+
*/
|
|
118
|
+
getVersions(providerOptions?: DbProviderOptions): Promise<any>;
|
|
119
|
+
/**
|
|
120
|
+
* Get revision timeline for the current source record
|
|
121
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
122
|
+
*/
|
|
123
|
+
getRevisionTimeline(providerOptions?: DbProviderOptions): Promise<any>;
|
|
124
|
+
}
|