@d19n/youfibre-odin-sdk 2.0.375 → 2.0.377
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 +5 -2
- package/dist/actions-v2/SetContactYouFibreTvInterestDto.d.ts +72 -0
- package/dist/actions-v2/SetContactYouFibreTvInterestDto.js +56 -0
- package/dist/actions-v2/UpdateWorkOrderWithdrawEquipmentChargeDto.d.ts +5 -5
- package/dist/api-sdk-v2/DocumentApi.d.ts +2 -0
- package/dist/api-sdk-v2/DocumentApi.js +6 -0
- package/dist/api-sdk-v2/DocumentValueApi.d.ts +48 -0
- package/dist/api-sdk-v2/DocumentValueApi.js +155 -0
- package/dist/api-sdk-v2/QaBatchApi.d.ts +2 -0
- package/dist/api-sdk-v2/QaBatchApi.js +6 -0
- package/dist/api-sdk-v2/QaBatchSummaryApi.d.ts +48 -0
- package/dist/api-sdk-v2/QaBatchSummaryApi.js +155 -0
- package/dist/db-sdk-v2/DocumentDb.d.ts +2 -0
- package/dist/db-sdk-v2/DocumentDb.js +6 -0
- package/dist/db-sdk-v2/DocumentValueDb.d.ts +120 -0
- package/dist/db-sdk-v2/DocumentValueDb.js +204 -0
- package/dist/db-sdk-v2/QaBatchDb.d.ts +2 -0
- package/dist/db-sdk-v2/QaBatchDb.js +6 -0
- package/dist/db-sdk-v2/QaBatchSummaryDb.d.ts +120 -0
- package/dist/db-sdk-v2/QaBatchSummaryDb.js +204 -0
- package/dist/entities-v2/Contact.d.ts +9 -1
- package/dist/entities-v2/Contact.js +2 -0
- package/dist/entities-v2/Document.d.ts +167 -2
- package/dist/entities-v2/Document.js +19 -1
- package/dist/entities-v2/DocumentProcessing.d.ts +2 -0
- package/dist/entities-v2/DocumentProcessing.js +2 -0
- package/dist/entities-v2/DocumentValue.d.ts +213 -0
- package/dist/entities-v2/DocumentValue.js +130 -0
- package/dist/entities-v2/QaBatch.d.ts +46 -1
- package/dist/entities-v2/QaBatch.js +25 -1
- package/dist/entities-v2/QaBatchSummary.d.ts +219 -0
- package/dist/entities-v2/QaBatchSummary.js +124 -0
- package/dist/entities-v2/QaReport.d.ts +17 -1
- package/dist/entities-v2/QaReport.js +4 -0
- package/dist/entities-v2/Recontract.d.ts +2 -0
- package/dist/entities-v2/Recontract.js +2 -0
- package/dist/records-v2/ContactRecord.d.ts +28 -0
- package/dist/records-v2/ContactRecord.js +37 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -124,7 +124,7 @@ await workOrder.completeWorkOrder({ ... });
|
|
|
124
124
|
|
|
125
125
|
## Entities
|
|
126
126
|
|
|
127
|
-
This SDK includes **
|
|
127
|
+
This SDK includes **207** entities across **13** modules.
|
|
128
128
|
|
|
129
129
|
### CrmModule
|
|
130
130
|
|
|
@@ -223,6 +223,7 @@ This SDK includes **205** entities across **13** modules.
|
|
|
223
223
|
| **OutboundDialSession** | OutboundDialSession Entity Definition | DEFAULT |
|
|
224
224
|
| **QaAutoFail** | QaAutoFail Entity Definition | DEFAULT |
|
|
225
225
|
| **QaBatch** | QaBatch Entity Definition | DEFAULT |
|
|
226
|
+
| **QaBatchSummary** | QaBatchSummary Entity Definition | DEFAULT |
|
|
226
227
|
| **QaEvaluation** | QaEvaluation Entity Definition | DEFAULT |
|
|
227
228
|
| **QaEvaluationAnswer** | QaEvaluationAnswer Entity Definition | DEFAULT |
|
|
228
229
|
| **QaReport** | QaReport Entity Definition | DEFAULT |
|
|
@@ -374,6 +375,7 @@ This SDK includes **205** entities across **13** modules.
|
|
|
374
375
|
|--------|-------------|-------|
|
|
375
376
|
| **Document** | Document Entity Definition | CONTRACT, CONTRACT_BUYOUT, CORPORATE_DOCUMENT... |
|
|
376
377
|
| **DocumentProcessing** | DocumentProcessing Entity Definition | DEFAULT |
|
|
378
|
+
| **DocumentValue** | DocumentValue Entity Definition | DEFAULT |
|
|
377
379
|
|
|
378
380
|
### ProjectModule
|
|
379
381
|
|
|
@@ -398,7 +400,7 @@ This SDK includes **205** entities across **13** modules.
|
|
|
398
400
|
|
|
399
401
|
## Actions
|
|
400
402
|
|
|
401
|
-
This SDK includes **
|
|
403
|
+
This SDK includes **938** actions.
|
|
402
404
|
|
|
403
405
|
### Action Types
|
|
404
406
|
|
|
@@ -1641,6 +1643,7 @@ This SDK includes **937** actions.
|
|
|
1641
1643
|
| `CreateContactSalesApp` | CREATE | k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactSalesApp |
|
|
1642
1644
|
| `OrderBuilderCreateContact` | CREATE | k1.t-hEOJjsDb.CrmModule.Contact.Create.OrderBuilderCreateContact |
|
|
1643
1645
|
| `OrderBuilderUpdateContact` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.OrderBuilderUpdateContact |
|
|
1646
|
+
| `SetContactYouFibreTvInterest` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.SetContactYouFibreTvInterest |
|
|
1644
1647
|
| `UpdateAdditionalCare` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateAdditionalCare |
|
|
1645
1648
|
| `UpdateContactAppPreferences` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateContactAppPreferences |
|
|
1646
1649
|
| `UpdateContact` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateContact |
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SetContactYouFibreTvInterest Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Record the moment this contact expressed interest in the TV product.
|
|
5
|
+
*
|
|
6
|
+
* @module CrmModule
|
|
7
|
+
* @entity Contact
|
|
8
|
+
* @actionKey SetContactYouFibreTvInterest
|
|
9
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Update.SetContactYouFibreTvInterest
|
|
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 SetContactYouFibreTvInterest updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Update.SetContactYouFibreTvInterest
|
|
18
|
+
*/
|
|
19
|
+
export interface SetContactYouFibreTvInterestMessage extends OdinRecordUpdatedEvent<SetContactYouFibreTvInterestDto, SetContactYouFibreTvInterestProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for SetContactYouFibreTvInterest action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 0
|
|
25
|
+
* @property Optional fields: 1
|
|
26
|
+
*/
|
|
27
|
+
export interface SetContactYouFibreTvInterestProperties {
|
|
28
|
+
/**
|
|
29
|
+
* YouFibreTvInterest
|
|
30
|
+
*
|
|
31
|
+
* Timestamp of when this contact expressed interest in the TV product. Set by SetContactYouFibreTvInterest (CORE-1523), called from the customer-portal endpoint (PORTAPP-3551).
|
|
32
|
+
* @type {DATE_TIME}
|
|
33
|
+
*/
|
|
34
|
+
YouFibreTvInterest?: string | null;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Set TV Interest
|
|
38
|
+
*
|
|
39
|
+
* Record the moment this contact expressed interest in the TV product.
|
|
40
|
+
*
|
|
41
|
+
* @actionType UPDATE - Updates an existing Contact record
|
|
42
|
+
* @module CrmModule
|
|
43
|
+
* @entity Contact
|
|
44
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Update.SetContactYouFibreTvInterest
|
|
45
|
+
* @permission schema.action.setcontactyoufibretvinterest.trigger
|
|
46
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
47
|
+
*/
|
|
48
|
+
export declare class SetContactYouFibreTvInterestDto extends OdinRecordUpdateDto<SetContactYouFibreTvInterestProperties> {
|
|
49
|
+
/** Used by SDK generators to identify action type */
|
|
50
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
51
|
+
static readonly ACTION_KEY = "SetContactYouFibreTvInterest";
|
|
52
|
+
static readonly MODULE_NAME = "CrmModule";
|
|
53
|
+
static readonly ENTITIES: string[];
|
|
54
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.CrmModule.Contact.Update.SetContactYouFibreTvInterest";
|
|
55
|
+
static readonly PERMISSION = "schema.action.setcontactyoufibretvinterest.trigger";
|
|
56
|
+
/** Step metadata - entity this action targets */
|
|
57
|
+
static readonly STEP_ENTITY = "CrmModule:Contact";
|
|
58
|
+
static readonly STEP_SCHEMA_ID = "33643a0d-5b77-4895-a2da-991e0fd3432f";
|
|
59
|
+
static readonly STEP_SCHEMA_ACTION_ID = "c46ceb9a-4971-49a7-8aef-08d223fc340c";
|
|
60
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
61
|
+
readonly actionName: string;
|
|
62
|
+
readonly schemaActionId: string;
|
|
63
|
+
readonly entity: string;
|
|
64
|
+
constructor(record: OdinRecord<any> | {
|
|
65
|
+
id: string;
|
|
66
|
+
entity: string;
|
|
67
|
+
type?: string;
|
|
68
|
+
}, properties: SetContactYouFibreTvInterestProperties, options?: {
|
|
69
|
+
journeyId?: string;
|
|
70
|
+
stageKey?: string;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* SetContactYouFibreTvInterest Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Record the moment this contact expressed interest in the TV product.
|
|
6
|
+
*
|
|
7
|
+
* @module CrmModule
|
|
8
|
+
* @entity Contact
|
|
9
|
+
* @actionKey SetContactYouFibreTvInterest
|
|
10
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Update.SetContactYouFibreTvInterest
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SetContactYouFibreTvInterestDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Set TV Interest
|
|
19
|
+
*
|
|
20
|
+
* Record the moment this contact expressed interest in the TV product.
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing Contact record
|
|
23
|
+
* @module CrmModule
|
|
24
|
+
* @entity Contact
|
|
25
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Update.SetContactYouFibreTvInterest
|
|
26
|
+
* @permission schema.action.setcontactyoufibretvinterest.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class SetContactYouFibreTvInterestDto 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 = 'SetContactYouFibreTvInterest';
|
|
40
|
+
this.schemaActionId = 'c46ceb9a-4971-49a7-8aef-08d223fc340c';
|
|
41
|
+
this.entity = 'CrmModule:Contact';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.SetContactYouFibreTvInterestDto = SetContactYouFibreTvInterestDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
SetContactYouFibreTvInterestDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
SetContactYouFibreTvInterestDto.ACTION_KEY = 'SetContactYouFibreTvInterest';
|
|
48
|
+
SetContactYouFibreTvInterestDto.MODULE_NAME = 'CrmModule';
|
|
49
|
+
SetContactYouFibreTvInterestDto.ENTITIES = ['Contact'];
|
|
50
|
+
SetContactYouFibreTvInterestDto.EVENT_NAME = 'k1.t-hEOJjsDb.CrmModule.Contact.Update.SetContactYouFibreTvInterest';
|
|
51
|
+
SetContactYouFibreTvInterestDto.PERMISSION = 'schema.action.setcontactyoufibretvinterest.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
SetContactYouFibreTvInterestDto.STEP_ENTITY = 'CrmModule:Contact';
|
|
54
|
+
SetContactYouFibreTvInterestDto.STEP_SCHEMA_ID = '33643a0d-5b77-4895-a2da-991e0fd3432f';
|
|
55
|
+
SetContactYouFibreTvInterestDto.STEP_SCHEMA_ACTION_ID = 'c46ceb9a-4971-49a7-8aef-08d223fc340c';
|
|
56
|
+
SetContactYouFibreTvInterestDto.AUTO_LINK_PARENT = false;
|
|
@@ -39,7 +39,7 @@ export interface UpdateWorkOrderWithdrawEquipmentChargeProperties {
|
|
|
39
39
|
* Contact information field for WorkOrder. Used by Field Operations team for communication.
|
|
40
40
|
* @type {TEXT}
|
|
41
41
|
* @required
|
|
42
|
-
* @visibleWhen SendAnotherBag = ["
|
|
42
|
+
* @visibleWhen SendAnotherBag = ["true"] AND UseAlternativeAddressManual = ["true"]
|
|
43
43
|
*/
|
|
44
44
|
AlternativeAddressLine1: string;
|
|
45
45
|
/**
|
|
@@ -48,7 +48,7 @@ export interface UpdateWorkOrderWithdrawEquipmentChargeProperties {
|
|
|
48
48
|
* Contact information field for WorkOrder. Used by Field Operations team for communication.
|
|
49
49
|
* @type {TEXT}
|
|
50
50
|
* @required
|
|
51
|
-
* @visibleWhen SendAnotherBag = ["
|
|
51
|
+
* @visibleWhen SendAnotherBag = ["true"] AND UseAlternativeAddressManual = ["true"]
|
|
52
52
|
*/
|
|
53
53
|
AlternativeAddressCityTown: string;
|
|
54
54
|
/**
|
|
@@ -57,7 +57,7 @@ export interface UpdateWorkOrderWithdrawEquipmentChargeProperties {
|
|
|
57
57
|
* Contact information field for WorkOrder. Used by Field Operations team for communication.
|
|
58
58
|
* @type {TEXT}
|
|
59
59
|
* @required
|
|
60
|
-
* @visibleWhen SendAnotherBag = ["
|
|
60
|
+
* @visibleWhen SendAnotherBag = ["true"] AND UseAlternativeAddressManual = ["true"]
|
|
61
61
|
*/
|
|
62
62
|
AlternativeAddressPostCode: string;
|
|
63
63
|
/**
|
|
@@ -72,7 +72,7 @@ export interface UpdateWorkOrderWithdrawEquipmentChargeProperties {
|
|
|
72
72
|
*
|
|
73
73
|
* UseAlternativeAddressManual (Field Operations - WorkOrder)
|
|
74
74
|
* @type {BOOLEAN}
|
|
75
|
-
* @visibleWhen SendAnotherBag = ["
|
|
75
|
+
* @visibleWhen SendAnotherBag = ["true"]
|
|
76
76
|
*/
|
|
77
77
|
UseAlternativeAddressManual?: boolean | null;
|
|
78
78
|
/**
|
|
@@ -80,7 +80,7 @@ export interface UpdateWorkOrderWithdrawEquipmentChargeProperties {
|
|
|
80
80
|
*
|
|
81
81
|
* Contact information field for WorkOrder. Used by Field Operations team for communication.
|
|
82
82
|
* @type {TEXT}
|
|
83
|
-
* @visibleWhen SendAnotherBag = ["
|
|
83
|
+
* @visibleWhen SendAnotherBag = ["true"] AND UseAlternativeAddressManual = ["true"]
|
|
84
84
|
*/
|
|
85
85
|
AlternativeAddressLine2?: string | null;
|
|
86
86
|
}
|
|
@@ -20,10 +20,12 @@ export declare class DocumentApi extends ApiProvider {
|
|
|
20
20
|
private _file?;
|
|
21
21
|
private _documentprocessing?;
|
|
22
22
|
private _contractbuyout?;
|
|
23
|
+
private _documentvalue?;
|
|
23
24
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
24
25
|
get file(): ApiRecordLinkManager;
|
|
25
26
|
get documentprocessing(): ApiRecordLinkManager;
|
|
26
27
|
get contractbuyout(): ApiRecordLinkManager;
|
|
28
|
+
get documentvalue(): 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<DocumentProperties>>>;
|
|
@@ -51,6 +51,12 @@ class DocumentApi extends api_provider_1.ApiProvider {
|
|
|
51
51
|
}
|
|
52
52
|
return this._contractbuyout;
|
|
53
53
|
}
|
|
54
|
+
get documentvalue() {
|
|
55
|
+
if (!this._documentvalue) {
|
|
56
|
+
this._documentvalue = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'AiModule:Document', 'AiModule:DocumentValue', 'Document__DocumentValue');
|
|
57
|
+
}
|
|
58
|
+
return this._documentvalue;
|
|
59
|
+
}
|
|
54
60
|
// ============================================
|
|
55
61
|
// STANDARD METHODS (Unchanged API)
|
|
56
62
|
// ============================================
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { DocumentValueProperties } from '../entities-v2/DocumentValue';
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use OdinApiClient.
|
|
8
|
+
*
|
|
9
|
+
* Migration:
|
|
10
|
+
* - Old: new DocumentValueApi(authParams).get(id)
|
|
11
|
+
* - New: new odin.documentvalue.get(id)
|
|
12
|
+
*
|
|
13
|
+
* The new OdinApiClient returns typed record wrappers with action methods.
|
|
14
|
+
*/
|
|
15
|
+
export declare class DocumentValueApi extends ApiProvider {
|
|
16
|
+
protected readonly authToken?: string;
|
|
17
|
+
private readonly moduleName;
|
|
18
|
+
private readonly entityName;
|
|
19
|
+
private sourceRecord;
|
|
20
|
+
private _document?;
|
|
21
|
+
constructor(authParams?: OauthParams, authToken?: string);
|
|
22
|
+
get document(): ApiRecordLinkManager;
|
|
23
|
+
setRecord(sourceRecord: any): void;
|
|
24
|
+
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
25
|
+
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<DocumentValueProperties>>>;
|
|
26
|
+
searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<DocumentValueProperties>>>;
|
|
27
|
+
reIndex(body: {
|
|
28
|
+
id: string;
|
|
29
|
+
schemaId: string;
|
|
30
|
+
}[]): Promise<any>;
|
|
31
|
+
get(documentValueId: string): Promise<import("@d19n/odin-types/dist/core").OdinRecord<DocumentValueProperties>>;
|
|
32
|
+
getMany(documentValueIds: string[]): Promise<import("@d19n/odin-types/dist/core").OdinRecord<DocumentValueProperties>[]>;
|
|
33
|
+
upsert(upsertDto: OdinRecordCreateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
|
|
34
|
+
upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
|
|
35
|
+
update(updateDto: OdinRecordUpdateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
|
|
36
|
+
updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
|
|
37
|
+
delete(documentValueId: string): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
|
|
38
|
+
deleteMany(documentValueIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
|
|
39
|
+
restore(documentValueIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinRestoreResponse[]>;
|
|
40
|
+
applyAction(dto: any): Promise<any[]>;
|
|
41
|
+
bulkApplyActions(dtos: any[]): Promise<any[]>;
|
|
42
|
+
getVersions(): Promise<{
|
|
43
|
+
[key: string]: Record<string, any>;
|
|
44
|
+
}>;
|
|
45
|
+
getRevisionTimeline(): Promise<{
|
|
46
|
+
[key: string]: Record<string, any>[];
|
|
47
|
+
}>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
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.DocumentValueApi = 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 DocumentValueApi(authParams).get(id)
|
|
20
|
+
* - New: new odin.documentvalue.get(id)
|
|
21
|
+
*
|
|
22
|
+
* The new OdinApiClient returns typed record wrappers with action methods.
|
|
23
|
+
*/
|
|
24
|
+
class DocumentValueApi extends api_provider_1.ApiProvider {
|
|
25
|
+
constructor(authParams, authToken) {
|
|
26
|
+
super(authParams, authToken);
|
|
27
|
+
this.authToken = authToken;
|
|
28
|
+
this.moduleName = 'AiModule';
|
|
29
|
+
this.entityName = 'DocumentValue';
|
|
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 document() {
|
|
37
|
+
if (!this._document) {
|
|
38
|
+
this._document = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'AiModule:DocumentValue', 'AiModule:Document', 'Document__DocumentValue');
|
|
39
|
+
}
|
|
40
|
+
return this._document;
|
|
41
|
+
}
|
|
42
|
+
// ============================================
|
|
43
|
+
// STANDARD METHODS (Unchanged API)
|
|
44
|
+
// ============================================
|
|
45
|
+
setRecord(sourceRecord) {
|
|
46
|
+
this.sourceRecord = sourceRecord;
|
|
47
|
+
}
|
|
48
|
+
schema() {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
return yield this.getSchema(this.moduleName, this.entityName);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
54
|
+
search(params) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
return yield this._searchRecords(this.moduleName, this.entityName, params);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
// Use this function when you want paginating through the results to be handled
|
|
60
|
+
searchAndPaginate(params) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
// Use this function to re-index records in elastic search
|
|
66
|
+
reIndex(body) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
return yield this._reIndexRecords(body);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
// Use this function when you want to return a single record
|
|
72
|
+
get(documentValueId) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, documentValueId);
|
|
75
|
+
if (res)
|
|
76
|
+
this.setRecord(res);
|
|
77
|
+
return res;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
// Use this function when you want to return many records by primaryKeys
|
|
81
|
+
getMany(documentValueIds) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, documentValueIds);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
// Use this function when you want to upsert one record
|
|
87
|
+
upsert(upsertDto) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto]);
|
|
90
|
+
return res[0];
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
// Use this function when you want to upsert many records
|
|
94
|
+
upsertMany(upsertDtos) {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
// Use this function when you want to update one record
|
|
100
|
+
update(updateDto) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
const res = yield this._update(this.moduleName, this.entityName, [updateDto]);
|
|
103
|
+
return res[0];
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
// Use this function when you want to update many records
|
|
107
|
+
updateMany(updateDtos) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
return yield this._update(this.moduleName, this.entityName, updateDtos);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
// Use this function when you want to delete one record
|
|
113
|
+
delete(documentValueId) {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
+
return yield this._delete(this.moduleName, this.entityName, [documentValueId]);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
// Use this function when you want to delete many records
|
|
119
|
+
deleteMany(documentValueIds) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
return yield this._delete(this.moduleName, this.entityName, documentValueIds);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
// Use this function when you want to restore one or many records
|
|
125
|
+
restore(documentValueIds) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
return yield this._restore(this.moduleName, this.entityName, documentValueIds);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
// Use this function when you want to apply a single action
|
|
131
|
+
applyAction(dto) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
return yield this._applyAction(this.moduleName, this.entityName, dto);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
// Use this function when you want to bulk apply actions
|
|
137
|
+
bulkApplyActions(dtos) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
return yield this._bulkApplyActions(this.moduleName, this.entityName, dtos);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
// Use this function when you want to return the versions for a single record
|
|
143
|
+
getVersions() {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
// Use this function when you want to return the change history for a single record
|
|
149
|
+
getRevisionTimeline() {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
exports.DocumentValueApi = DocumentValueApi;
|
|
@@ -18,8 +18,10 @@ export declare class QaBatchApi extends ApiProvider {
|
|
|
18
18
|
private readonly entityName;
|
|
19
19
|
private sourceRecord;
|
|
20
20
|
private _qareport?;
|
|
21
|
+
private _qabatchsummary?;
|
|
21
22
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
22
23
|
get qareport(): ApiRecordLinkManager;
|
|
24
|
+
get qabatchsummary(): ApiRecordLinkManager;
|
|
23
25
|
setRecord(sourceRecord: any): void;
|
|
24
26
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
25
27
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<QaBatchProperties>>>;
|
|
@@ -39,6 +39,12 @@ class QaBatchApi extends api_provider_1.ApiProvider {
|
|
|
39
39
|
}
|
|
40
40
|
return this._qareport;
|
|
41
41
|
}
|
|
42
|
+
get qabatchsummary() {
|
|
43
|
+
if (!this._qabatchsummary) {
|
|
44
|
+
this._qabatchsummary = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'SupportModule:QaBatch', 'SupportModule:QaBatchSummary', 'QaBatch__Summary');
|
|
45
|
+
}
|
|
46
|
+
return this._qabatchsummary;
|
|
47
|
+
}
|
|
42
48
|
// ============================================
|
|
43
49
|
// STANDARD METHODS (Unchanged API)
|
|
44
50
|
// ============================================
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { QaBatchSummaryProperties } from '../entities-v2/QaBatchSummary';
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use OdinApiClient.
|
|
8
|
+
*
|
|
9
|
+
* Migration:
|
|
10
|
+
* - Old: new QaBatchSummaryApi(authParams).get(id)
|
|
11
|
+
* - New: new odin.qabatchsummary.get(id)
|
|
12
|
+
*
|
|
13
|
+
* The new OdinApiClient returns typed record wrappers with action methods.
|
|
14
|
+
*/
|
|
15
|
+
export declare class QaBatchSummaryApi extends ApiProvider {
|
|
16
|
+
protected readonly authToken?: string;
|
|
17
|
+
private readonly moduleName;
|
|
18
|
+
private readonly entityName;
|
|
19
|
+
private sourceRecord;
|
|
20
|
+
private _qabatch?;
|
|
21
|
+
constructor(authParams?: OauthParams, authToken?: string);
|
|
22
|
+
get qabatch(): ApiRecordLinkManager;
|
|
23
|
+
setRecord(sourceRecord: any): void;
|
|
24
|
+
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
25
|
+
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<QaBatchSummaryProperties>>>;
|
|
26
|
+
searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<QaBatchSummaryProperties>>>;
|
|
27
|
+
reIndex(body: {
|
|
28
|
+
id: string;
|
|
29
|
+
schemaId: string;
|
|
30
|
+
}[]): Promise<any>;
|
|
31
|
+
get(qaBatchSummaryId: string): Promise<import("@d19n/odin-types/dist/core").OdinRecord<QaBatchSummaryProperties>>;
|
|
32
|
+
getMany(qaBatchSummaryIds: string[]): Promise<import("@d19n/odin-types/dist/core").OdinRecord<QaBatchSummaryProperties>[]>;
|
|
33
|
+
upsert(upsertDto: OdinRecordCreateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
|
|
34
|
+
upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
|
|
35
|
+
update(updateDto: OdinRecordUpdateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
|
|
36
|
+
updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
|
|
37
|
+
delete(qaBatchSummaryId: string): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
|
|
38
|
+
deleteMany(qaBatchSummaryIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
|
|
39
|
+
restore(qaBatchSummaryIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinRestoreResponse[]>;
|
|
40
|
+
applyAction(dto: any): Promise<any[]>;
|
|
41
|
+
bulkApplyActions(dtos: any[]): Promise<any[]>;
|
|
42
|
+
getVersions(): Promise<{
|
|
43
|
+
[key: string]: Record<string, any>;
|
|
44
|
+
}>;
|
|
45
|
+
getRevisionTimeline(): Promise<{
|
|
46
|
+
[key: string]: Record<string, any>[];
|
|
47
|
+
}>;
|
|
48
|
+
}
|