@d19n/youfibre-odin-sdk 2.0.98 → 2.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-sdk-v2/AddressApi.d.ts +2 -0
- package/dist/api-sdk-v2/AddressApi.js +6 -0
- package/dist/api-sdk-v2/AddressInteractionApi.d.ts +3 -0
- package/dist/api-sdk-v2/AddressInteractionApi.js +7 -3
- package/dist/db-sdk-v2/AddressDb.d.ts +2 -0
- package/dist/db-sdk-v2/AddressDb.js +6 -0
- package/dist/db-sdk-v2/AddressInteractionDb.d.ts +3 -0
- package/dist/db-sdk-v2/AddressInteractionDb.js +7 -3
- package/dist/entities-v2/Address.d.ts +3 -0
- package/dist/entities-v2/AddressInteraction.d.ts +8 -1
- package/dist/entities-v2/AddressInteraction.js +5 -1
- package/dist/entities-v2/Case.d.ts +0 -4
- package/dist/entities-v2/Case.js +0 -4
- package/package.json +1 -1
|
@@ -36,6 +36,7 @@ export declare class AddressApi extends ApiProvider {
|
|
|
36
36
|
private _onetouchswitch?;
|
|
37
37
|
private _case?;
|
|
38
38
|
private _crmdataset?;
|
|
39
|
+
private _addressinteraction?;
|
|
39
40
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
40
41
|
get file(): ApiRecordLinkManager;
|
|
41
42
|
get note(): ApiRecordLinkManager;
|
|
@@ -56,6 +57,7 @@ export declare class AddressApi extends ApiProvider {
|
|
|
56
57
|
get onetouchswitch(): ApiRecordLinkManager;
|
|
57
58
|
get case(): ApiRecordLinkManager;
|
|
58
59
|
get crmdataset(): ApiRecordLinkManager;
|
|
60
|
+
get addressinteraction(): ApiRecordLinkManager;
|
|
59
61
|
setRecord(sourceRecord: any): void;
|
|
60
62
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
61
63
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<AddressProperties>>>;
|
|
@@ -147,6 +147,12 @@ class AddressApi extends api_provider_1.ApiProvider {
|
|
|
147
147
|
}
|
|
148
148
|
return this._crmdataset;
|
|
149
149
|
}
|
|
150
|
+
get addressinteraction() {
|
|
151
|
+
if (!this._addressinteraction) {
|
|
152
|
+
this._addressinteraction = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Address', 'CrmModule:AddressInteraction', 'AddressInteraction__Address');
|
|
153
|
+
}
|
|
154
|
+
return this._addressinteraction;
|
|
155
|
+
}
|
|
150
156
|
// ============================================
|
|
151
157
|
// STANDARD METHODS (Unchanged API)
|
|
152
158
|
// ============================================
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OauthParams } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
2
2
|
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
3
3
|
import { OdinSearchV2, OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/core';
|
|
4
|
+
import { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
|
|
4
5
|
import { AddressInteractionProperties } from '../entities-v2/AddressInteraction';
|
|
5
6
|
/**
|
|
6
7
|
* @deprecated Use OdinApiClient.
|
|
@@ -16,7 +17,9 @@ export declare class AddressInteractionApi extends ApiProvider {
|
|
|
16
17
|
private readonly moduleName;
|
|
17
18
|
private readonly entityName;
|
|
18
19
|
private sourceRecord;
|
|
20
|
+
private _address?;
|
|
19
21
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
22
|
+
get address(): ApiRecordLinkManager;
|
|
20
23
|
setRecord(sourceRecord: any): void;
|
|
21
24
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
22
25
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<AddressInteractionProperties>>>;
|
|
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AddressInteractionApi = void 0;
|
|
13
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");
|
|
14
15
|
/**
|
|
15
16
|
* @deprecated Use OdinApiClient.
|
|
16
17
|
*
|
|
@@ -21,9 +22,6 @@ const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
|
21
22
|
* The new OdinApiClient returns typed record wrappers with action methods.
|
|
22
23
|
*/
|
|
23
24
|
class AddressInteractionApi extends api_provider_1.ApiProvider {
|
|
24
|
-
// ============================================
|
|
25
|
-
// PRIVATE BACKING FIELDS (Lazy Loading)
|
|
26
|
-
// ============================================
|
|
27
25
|
constructor(authParams, authToken) {
|
|
28
26
|
super(authParams, authToken);
|
|
29
27
|
this.authToken = authToken;
|
|
@@ -35,6 +33,12 @@ class AddressInteractionApi extends api_provider_1.ApiProvider {
|
|
|
35
33
|
// LAZY-LOADED LINK MANAGERS (Public Getters)
|
|
36
34
|
// ============================================
|
|
37
35
|
// Usage remains identical: api.address.list(recordId)
|
|
36
|
+
get address() {
|
|
37
|
+
if (!this._address) {
|
|
38
|
+
this._address = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:AddressInteraction', 'CrmModule:Address', 'AddressInteraction__Address');
|
|
39
|
+
}
|
|
40
|
+
return this._address;
|
|
41
|
+
}
|
|
38
42
|
// ============================================
|
|
39
43
|
// STANDARD METHODS (Unchanged API)
|
|
40
44
|
// ============================================
|
|
@@ -40,6 +40,7 @@ export declare class AddressDb extends DbProvider {
|
|
|
40
40
|
private _onetouchswitch?;
|
|
41
41
|
private _case?;
|
|
42
42
|
private _crmdataset?;
|
|
43
|
+
private _addressinteraction?;
|
|
43
44
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
44
45
|
get file(): DbRecordLinkManager;
|
|
45
46
|
get note(): DbRecordLinkManager;
|
|
@@ -60,6 +61,7 @@ export declare class AddressDb extends DbProvider {
|
|
|
60
61
|
get onetouchswitch(): DbRecordLinkManager;
|
|
61
62
|
get case(): DbRecordLinkManager;
|
|
62
63
|
get crmdataset(): DbRecordLinkManager;
|
|
64
|
+
get addressinteraction(): DbRecordLinkManager;
|
|
63
65
|
setRecord(sourceRecord: any): void;
|
|
64
66
|
/**
|
|
65
67
|
* Search records with manual pagination control
|
|
@@ -152,6 +152,12 @@ class AddressDb extends db_provider_1.DbProvider {
|
|
|
152
152
|
}
|
|
153
153
|
return this._crmdataset;
|
|
154
154
|
}
|
|
155
|
+
get addressinteraction() {
|
|
156
|
+
if (!this._addressinteraction) {
|
|
157
|
+
this._addressinteraction = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Address', 'CrmModule:AddressInteraction', 'AddressInteraction__Address');
|
|
158
|
+
}
|
|
159
|
+
return this._addressinteraction;
|
|
160
|
+
}
|
|
155
161
|
// ============================================
|
|
156
162
|
// STANDARD METHODS
|
|
157
163
|
// ============================================
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DbProvider, DbProviderOptions, DbGetQueryOptions } from '@d19n/odin-sdk-generator/dist/db.provider';
|
|
2
2
|
import { OdinSearchV2, OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/core';
|
|
3
|
+
import { DbRecordLinkManager } from '@d19n/odin-sdk-generator/dist/db.record.link.manager';
|
|
3
4
|
import { AddressInteractionProperties } from '../entities-v2/AddressInteraction';
|
|
4
5
|
/**
|
|
5
6
|
* @deprecated Use OdinDbClient.
|
|
@@ -20,7 +21,9 @@ export declare class AddressInteractionDb extends DbProvider {
|
|
|
20
21
|
private readonly moduleName;
|
|
21
22
|
private readonly entityName;
|
|
22
23
|
private sourceRecord;
|
|
24
|
+
private _address?;
|
|
23
25
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
26
|
+
get address(): DbRecordLinkManager;
|
|
24
27
|
setRecord(sourceRecord: any): void;
|
|
25
28
|
/**
|
|
26
29
|
* Search records with manual pagination control
|
|
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AddressInteractionDb = void 0;
|
|
13
13
|
const db_provider_1 = require("@d19n/odin-sdk-generator/dist/db.provider");
|
|
14
|
+
const db_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/db.record.link.manager");
|
|
14
15
|
/**
|
|
15
16
|
* @deprecated Use OdinDbClient.
|
|
16
17
|
*
|
|
@@ -25,9 +26,6 @@ const db_provider_1 = require("@d19n/odin-sdk-generator/dist/db.provider");
|
|
|
25
26
|
* - Method level: await db.getByPrimaryKey(id, { entities: [] }, { omitPermissionsCheck: true })
|
|
26
27
|
*/
|
|
27
28
|
class AddressInteractionDb extends db_provider_1.DbProvider {
|
|
28
|
-
// ============================================
|
|
29
|
-
// PRIVATE BACKING FIELDS (Lazy Loading)
|
|
30
|
-
// ============================================
|
|
31
29
|
constructor(principal, dbService, defaultOptions) {
|
|
32
30
|
super(principal, dbService, defaultOptions);
|
|
33
31
|
this.moduleName = 'CrmModule';
|
|
@@ -40,6 +38,12 @@ class AddressInteractionDb extends db_provider_1.DbProvider {
|
|
|
40
38
|
// LAZY-LOADED LINK MANAGERS (Public Getters)
|
|
41
39
|
// ============================================
|
|
42
40
|
// Usage remains identical: db.address.list(recordId)
|
|
41
|
+
get address() {
|
|
42
|
+
if (!this._address) {
|
|
43
|
+
this._address = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:AddressInteraction', 'CrmModule:Address', 'AddressInteraction__Address');
|
|
44
|
+
}
|
|
45
|
+
return this._address;
|
|
46
|
+
}
|
|
43
47
|
// ============================================
|
|
44
48
|
// STANDARD METHODS
|
|
45
49
|
// ============================================
|
|
@@ -29,6 +29,7 @@ import { UserProperties } from './User';
|
|
|
29
29
|
import { OneTouchSwitchProperties } from './OneTouchSwitch';
|
|
30
30
|
import { CaseProperties } from './Case';
|
|
31
31
|
import { CrmDatasetProperties } from './CrmDataset';
|
|
32
|
+
import { AddressInteractionProperties } from './AddressInteraction';
|
|
32
33
|
/**
|
|
33
34
|
* Available types for Address records
|
|
34
35
|
*/
|
|
@@ -647,6 +648,8 @@ export declare class Address extends OdinRecord<AddressProperties> {
|
|
|
647
648
|
Case: OdinLink<LinkedOdinRecord<CaseProperties>>;
|
|
648
649
|
/** Linked CrmDataset records (CrmDataset__Address) */
|
|
649
650
|
CrmDataset: OdinLink<LinkedOdinRecord<CrmDatasetProperties>>;
|
|
651
|
+
/** Linked AddressInteraction records (AddressInteraction__Address) */
|
|
652
|
+
AddressInteraction: OdinLink<LinkedOdinRecord<AddressInteractionProperties>>;
|
|
650
653
|
}
|
|
651
654
|
/**
|
|
652
655
|
* RabbitMQ routing keys for Address events
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
11
11
|
* Generated from Odin schema definition
|
|
12
12
|
*/
|
|
13
|
-
import { OdinRecord } from '@d19n/odin-types/dist/core';
|
|
13
|
+
import { OdinRecord, OdinLink, LinkedOdinRecord } from '@d19n/odin-types/dist/core';
|
|
14
|
+
import { AddressProperties } from './Address';
|
|
14
15
|
/**
|
|
15
16
|
* Available types for AddressInteraction records
|
|
16
17
|
*/
|
|
@@ -140,6 +141,8 @@ export declare class AddressInteraction extends OdinRecord<AddressInteractionPro
|
|
|
140
141
|
type: AddressInteractionEntityTypes;
|
|
141
142
|
schemaId: '4eab8349-297d-4a68-84fd-608443d74043';
|
|
142
143
|
properties: AddressInteractionProperties;
|
|
144
|
+
/** Linked Address records (AddressInteraction__Address) */
|
|
145
|
+
Address: OdinLink<LinkedOdinRecord<AddressProperties>>;
|
|
143
146
|
}
|
|
144
147
|
/**
|
|
145
148
|
* RabbitMQ routing keys for AddressInteraction events
|
|
@@ -157,3 +160,7 @@ export declare const ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_CREATED = "CrmModul
|
|
|
157
160
|
export declare const ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_UPDATED = "CrmModule.AddressInteraction.DEFAULT.SubDbRecordUpdated";
|
|
158
161
|
/** This is the default record type deleted */
|
|
159
162
|
export declare const ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_DELETED = "CrmModule.AddressInteraction.DEFAULT.SubDbRecordDeleted";
|
|
163
|
+
/** Event: AddressInteraction__Address link created */
|
|
164
|
+
export declare const ROUTING_KEY_LINK_ADDRESS_INTERACTION_ADDRESS_CREATED = "CrmModule.AddressInteraction.Address.SubDbRecordAssociationCreated";
|
|
165
|
+
/** Event: AddressInteraction__Address link deleted */
|
|
166
|
+
export declare const ROUTING_KEY_LINK_ADDRESS_INTERACTION_ADDRESS_DELETED = "CrmModule.AddressInteraction.Address.SubDbRecordAssociationDeleted";
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Generated from Odin schema definition
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_DELETED = exports.ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_UPDATED = exports.ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_CREATED = exports.ROUTING_KEY_ADDRESS_INTERACTION_DELETED = exports.ROUTING_KEY_ADDRESS_INTERACTION_UPDATED = exports.ROUTING_KEY_ADDRESS_INTERACTION_CREATED = exports.AddressInteraction = exports.AddressInteractionPropertyKeys = exports.AddressInteractionsource = exports.AddressInteractionEntityTypes = void 0;
|
|
15
|
+
exports.ROUTING_KEY_LINK_ADDRESS_INTERACTION_ADDRESS_DELETED = exports.ROUTING_KEY_LINK_ADDRESS_INTERACTION_ADDRESS_CREATED = exports.ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_DELETED = exports.ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_UPDATED = exports.ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_CREATED = exports.ROUTING_KEY_ADDRESS_INTERACTION_DELETED = exports.ROUTING_KEY_ADDRESS_INTERACTION_UPDATED = exports.ROUTING_KEY_ADDRESS_INTERACTION_CREATED = exports.AddressInteraction = exports.AddressInteractionPropertyKeys = exports.AddressInteractionsource = exports.AddressInteractionEntityTypes = void 0;
|
|
16
16
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
17
|
/**
|
|
18
18
|
* Available types for AddressInteraction records
|
|
@@ -100,3 +100,7 @@ exports.ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_CREATED = 'CrmModule.AddressInte
|
|
|
100
100
|
exports.ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_UPDATED = 'CrmModule.AddressInteraction.DEFAULT.SubDbRecordUpdated';
|
|
101
101
|
/** This is the default record type deleted */
|
|
102
102
|
exports.ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_DELETED = 'CrmModule.AddressInteraction.DEFAULT.SubDbRecordDeleted';
|
|
103
|
+
/** Event: AddressInteraction__Address link created */
|
|
104
|
+
exports.ROUTING_KEY_LINK_ADDRESS_INTERACTION_ADDRESS_CREATED = 'CrmModule.AddressInteraction.Address.SubDbRecordAssociationCreated';
|
|
105
|
+
/** Event: AddressInteraction__Address link deleted */
|
|
106
|
+
exports.ROUTING_KEY_LINK_ADDRESS_INTERACTION_ADDRESS_DELETED = 'CrmModule.AddressInteraction.Address.SubDbRecordAssociationDeleted';
|
|
@@ -53,8 +53,6 @@ export declare enum DefaultCaseStageNames {
|
|
|
53
53
|
PendingReply = "Pending Reply",
|
|
54
54
|
/** Pending Agent */
|
|
55
55
|
PendingAgent = "Pending Agent",
|
|
56
|
-
/** Pending Review */
|
|
57
|
-
PendingReview = "Pending Review",
|
|
58
56
|
/** The case is resolved (success) */
|
|
59
57
|
Solved = "Solved",
|
|
60
58
|
/** The case is closed (fail) */
|
|
@@ -74,8 +72,6 @@ export declare enum DefaultCaseStageKeys {
|
|
|
74
72
|
CaseDefaultStagePendingReply = "CaseDefaultStagePendingReply",
|
|
75
73
|
/** Pending Agent */
|
|
76
74
|
CaseDefaultStagePendingAgent = "CaseDefaultStagePendingAgent",
|
|
77
|
-
/** Pending Review */
|
|
78
|
-
CaseDefaultStagePendingReview = "CaseDefaultStagePendingReview",
|
|
79
75
|
/** The case is resolved */
|
|
80
76
|
CaseDefaultStageSolved = "CaseDefaultStageSolved",
|
|
81
77
|
/** The case is closed */
|
package/dist/entities-v2/Case.js
CHANGED
|
@@ -39,8 +39,6 @@ var DefaultCaseStageNames;
|
|
|
39
39
|
DefaultCaseStageNames["PendingReply"] = "Pending Reply";
|
|
40
40
|
/** Pending Agent */
|
|
41
41
|
DefaultCaseStageNames["PendingAgent"] = "Pending Agent";
|
|
42
|
-
/** Pending Review */
|
|
43
|
-
DefaultCaseStageNames["PendingReview"] = "Pending Review";
|
|
44
42
|
/** The case is resolved (success) */
|
|
45
43
|
DefaultCaseStageNames["Solved"] = "Solved";
|
|
46
44
|
/** The case is closed (fail) */
|
|
@@ -61,8 +59,6 @@ var DefaultCaseStageKeys;
|
|
|
61
59
|
DefaultCaseStageKeys["CaseDefaultStagePendingReply"] = "CaseDefaultStagePendingReply";
|
|
62
60
|
/** Pending Agent */
|
|
63
61
|
DefaultCaseStageKeys["CaseDefaultStagePendingAgent"] = "CaseDefaultStagePendingAgent";
|
|
64
|
-
/** Pending Review */
|
|
65
|
-
DefaultCaseStageKeys["CaseDefaultStagePendingReview"] = "CaseDefaultStagePendingReview";
|
|
66
62
|
/** The case is resolved */
|
|
67
63
|
DefaultCaseStageKeys["CaseDefaultStageSolved"] = "CaseDefaultStageSolved";
|
|
68
64
|
/** The case is closed */
|