@d19n/youfibre-odin-sdk 2.0.12-beta.0 → 2.0.13-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions-v2/CreateConversationDto.d.ts +8 -1
- package/dist/api-sdk-v2/OrderApi.d.ts +2 -0
- package/dist/api-sdk-v2/OrderApi.js +6 -0
- package/dist/api-sdk-v2/OrderKciApi.d.ts +3 -0
- package/dist/api-sdk-v2/OrderKciApi.js +7 -3
- package/dist/db-sdk-v2/OrderDb.d.ts +2 -0
- package/dist/db-sdk-v2/OrderDb.js +6 -0
- package/dist/db-sdk-v2/OrderKciDb.d.ts +3 -0
- package/dist/db-sdk-v2/OrderKciDb.js +7 -3
- package/dist/entities-v2/Conversation.d.ts +21 -0
- package/dist/entities-v2/Conversation.js +17 -1
- package/dist/entities-v2/CreditNote.d.ts +20 -20
- package/dist/entities-v2/CreditNote.js +6 -6
- package/dist/entities-v2/Order.d.ts +7 -0
- package/dist/entities-v2/Order.js +6 -2
- package/dist/entities-v2/OrderKci.d.ts +4 -1
- package/dist/entities-v2/Product.d.ts +0 -42
- package/dist/entities-v2/Product.js +0 -2
- package/dist/entities-v2/Transaction.d.ts +2 -0
- package/dist/entities-v2/Transaction.js +2 -0
- package/dist/records-v2/OrderKciRecord.d.ts +21 -0
- package/dist/records-v2/OrderKciRecord.js +37 -0
- package/dist/records-v2/OrderRecord.d.ts +20 -0
- package/dist/records-v2/OrderRecord.js +33 -0
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ export interface CreateConversationMessage extends OdinRecordCreatedEvent<Create
|
|
|
22
22
|
* Properties for CreateConversation action
|
|
23
23
|
*
|
|
24
24
|
* @property Required fields: 1
|
|
25
|
-
* @property Optional fields:
|
|
25
|
+
* @property Optional fields: 6
|
|
26
26
|
*/
|
|
27
27
|
export interface CreateConversationProperties {
|
|
28
28
|
/**
|
|
@@ -62,6 +62,13 @@ export interface CreateConversationProperties {
|
|
|
62
62
|
* @type {TEXT}
|
|
63
63
|
*/
|
|
64
64
|
CaseId?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* Mode
|
|
67
|
+
*
|
|
68
|
+
* Conversation Mode
|
|
69
|
+
* @type {ENUM}
|
|
70
|
+
*/
|
|
71
|
+
Mode?: string | null;
|
|
65
72
|
}
|
|
66
73
|
/**
|
|
67
74
|
* CreateConversation
|
|
@@ -23,6 +23,7 @@ export declare class OrderApi extends ApiProvider {
|
|
|
23
23
|
private _activitylog?;
|
|
24
24
|
private _invoice?;
|
|
25
25
|
private _billingadjustment?;
|
|
26
|
+
private _orderkci?;
|
|
26
27
|
private _fieldservicedispatchedproduct?;
|
|
27
28
|
private _account?;
|
|
28
29
|
private _commission?;
|
|
@@ -61,6 +62,7 @@ export declare class OrderApi extends ApiProvider {
|
|
|
61
62
|
get activitylog(): ApiRecordLinkManager;
|
|
62
63
|
get invoice(): ApiRecordLinkManager;
|
|
63
64
|
get billingadjustment(): ApiRecordLinkManager;
|
|
65
|
+
get orderkci(): ApiRecordLinkManager;
|
|
64
66
|
get fieldservicedispatchedproduct(): ApiRecordLinkManager;
|
|
65
67
|
get account(): ApiRecordLinkManager;
|
|
66
68
|
get commission(): ApiRecordLinkManager;
|
|
@@ -69,6 +69,12 @@ class OrderApi extends api_provider_1.ApiProvider {
|
|
|
69
69
|
}
|
|
70
70
|
return this._billingadjustment;
|
|
71
71
|
}
|
|
72
|
+
get orderkci() {
|
|
73
|
+
if (!this._orderkci) {
|
|
74
|
+
this._orderkci = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'OrderModule:Order', 'OrderModule:OrderKci', 'Order__OrderKci');
|
|
75
|
+
}
|
|
76
|
+
return this._orderkci;
|
|
77
|
+
}
|
|
72
78
|
get fieldservicedispatchedproduct() {
|
|
73
79
|
if (!this._fieldservicedispatchedproduct) {
|
|
74
80
|
this._fieldservicedispatchedproduct = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'OrderModule:Order', 'FieldServiceModule:FieldServiceDispatchedProduct', 'FieldServiceDispatchedProduct__Order');
|
|
@@ -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 { OrderKciProperties } from '../entities-v2/OrderKci';
|
|
5
6
|
/**
|
|
6
7
|
* @deprecated Use OdinApiClient.
|
|
@@ -16,7 +17,9 @@ export declare class OrderKciApi extends ApiProvider {
|
|
|
16
17
|
private readonly moduleName;
|
|
17
18
|
private readonly entityName;
|
|
18
19
|
private sourceRecord;
|
|
20
|
+
private _order?;
|
|
19
21
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
22
|
+
get order(): 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<OrderKciProperties>>>;
|
|
@@ -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.OrderKciApi = 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 OrderKciApi 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 OrderKciApi 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 order() {
|
|
37
|
+
if (!this._order) {
|
|
38
|
+
this._order = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'OrderModule:OrderKci', 'OrderModule:Order', 'Order__OrderKci');
|
|
39
|
+
}
|
|
40
|
+
return this._order;
|
|
41
|
+
}
|
|
38
42
|
// ============================================
|
|
39
43
|
// STANDARD METHODS (Unchanged API)
|
|
40
44
|
// ============================================
|
|
@@ -27,6 +27,7 @@ export declare class OrderDb extends DbProvider {
|
|
|
27
27
|
private _activitylog?;
|
|
28
28
|
private _invoice?;
|
|
29
29
|
private _billingadjustment?;
|
|
30
|
+
private _orderkci?;
|
|
30
31
|
private _fieldservicedispatchedproduct?;
|
|
31
32
|
private _account?;
|
|
32
33
|
private _commission?;
|
|
@@ -65,6 +66,7 @@ export declare class OrderDb extends DbProvider {
|
|
|
65
66
|
get activitylog(): DbRecordLinkManager;
|
|
66
67
|
get invoice(): DbRecordLinkManager;
|
|
67
68
|
get billingadjustment(): DbRecordLinkManager;
|
|
69
|
+
get orderkci(): DbRecordLinkManager;
|
|
68
70
|
get fieldservicedispatchedproduct(): DbRecordLinkManager;
|
|
69
71
|
get account(): DbRecordLinkManager;
|
|
70
72
|
get commission(): DbRecordLinkManager;
|
|
@@ -74,6 +74,12 @@ class OrderDb extends db_provider_1.DbProvider {
|
|
|
74
74
|
}
|
|
75
75
|
return this._billingadjustment;
|
|
76
76
|
}
|
|
77
|
+
get orderkci() {
|
|
78
|
+
if (!this._orderkci) {
|
|
79
|
+
this._orderkci = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Order', 'OrderModule:OrderKci', 'Order__OrderKci');
|
|
80
|
+
}
|
|
81
|
+
return this._orderkci;
|
|
82
|
+
}
|
|
77
83
|
get fieldservicedispatchedproduct() {
|
|
78
84
|
if (!this._fieldservicedispatchedproduct) {
|
|
79
85
|
this._fieldservicedispatchedproduct = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Order', 'FieldServiceModule:FieldServiceDispatchedProduct', 'FieldServiceDispatchedProduct__Order');
|
|
@@ -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 { OrderKciProperties } from '../entities-v2/OrderKci';
|
|
4
5
|
/**
|
|
5
6
|
* @deprecated Use OdinDbClient.
|
|
@@ -20,7 +21,9 @@ export declare class OrderKciDb extends DbProvider {
|
|
|
20
21
|
private readonly moduleName;
|
|
21
22
|
private readonly entityName;
|
|
22
23
|
private sourceRecord;
|
|
24
|
+
private _order?;
|
|
23
25
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
26
|
+
get order(): 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.OrderKciDb = 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 OrderKciDb 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 = 'OrderModule';
|
|
@@ -40,6 +38,12 @@ class OrderKciDb 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 order() {
|
|
42
|
+
if (!this._order) {
|
|
43
|
+
this._order = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:OrderKci', 'OrderModule:Order', 'Order__OrderKci');
|
|
44
|
+
}
|
|
45
|
+
return this._order;
|
|
46
|
+
}
|
|
43
47
|
// ============================================
|
|
44
48
|
// STANDARD METHODS
|
|
45
49
|
// ============================================
|
|
@@ -22,6 +22,19 @@ export declare enum ConversationEntityTypes {
|
|
|
22
22
|
/** This is the default record type */
|
|
23
23
|
DEFAULT = "DEFAULT"
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Valid values for Conversation.Mode
|
|
27
|
+
*
|
|
28
|
+
* Conversation Mode
|
|
29
|
+
*
|
|
30
|
+
* @remarks Available options:
|
|
31
|
+
* - `ASYNC` - Async
|
|
32
|
+
* - `LIVE` - Live
|
|
33
|
+
*/
|
|
34
|
+
export declare enum ConversationMode {
|
|
35
|
+
ASYNC = "ASYNC",
|
|
36
|
+
LIVE = "LIVE"
|
|
37
|
+
}
|
|
25
38
|
/**
|
|
26
39
|
* Valid values for Conversation.Channel
|
|
27
40
|
*
|
|
@@ -90,6 +103,8 @@ export declare enum ConversationSource {
|
|
|
90
103
|
* Use these constants instead of string literals for type safety
|
|
91
104
|
*/
|
|
92
105
|
export declare enum ConversationPropertyKeys {
|
|
106
|
+
/** Conversation Mode */
|
|
107
|
+
Mode = "Mode",
|
|
93
108
|
/** The channel (Chat, SMS, Whatsapp, Facebook etc..) (Communications - Conversation) */
|
|
94
109
|
Channel = "Channel",
|
|
95
110
|
/** Data field for Conversation records. Used by Communications team. */
|
|
@@ -113,6 +128,12 @@ export declare enum ConversationPropertyKeys {
|
|
|
113
128
|
* @see NotificationModule:Conversation
|
|
114
129
|
*/
|
|
115
130
|
export interface ConversationProperties {
|
|
131
|
+
/** Conversation Mode
|
|
132
|
+
*
|
|
133
|
+
* @type {ENUM}
|
|
134
|
+
* @enum {ConversationMode}
|
|
135
|
+
*/
|
|
136
|
+
Mode: ConversationMode;
|
|
116
137
|
/** The channel (Chat, SMS, Whatsapp, Facebook etc..) (Communications - Conversation)
|
|
117
138
|
*
|
|
118
139
|
* @type {ENUM}
|
|
@@ -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_LINK_CONVERSATION_PUSH_NOTIFICATION_DELETED = exports.ROUTING_KEY_LINK_CONVERSATION_PUSH_NOTIFICATION_CREATED = exports.ROUTING_KEY_LINK_CONVERSATION_MESSAGE_DELETED = exports.ROUTING_KEY_LINK_CONVERSATION_MESSAGE_CREATED = exports.ROUTING_KEY_CONVERSATION_DEFAULT_DELETED = exports.ROUTING_KEY_CONVERSATION_DEFAULT_UPDATED = exports.ROUTING_KEY_CONVERSATION_DEFAULT_CREATED = exports.ROUTING_KEY_CONVERSATION_DELETED = exports.ROUTING_KEY_CONVERSATION_UPDATED = exports.ROUTING_KEY_CONVERSATION_CREATED = exports.Conversation = exports.ConversationPropertyKeys = exports.ConversationSource = exports.ConversationStatus = exports.ConversationChannel = exports.ConversationEntityTypes = void 0;
|
|
15
|
+
exports.ROUTING_KEY_LINK_CONVERSATION_PUSH_NOTIFICATION_DELETED = exports.ROUTING_KEY_LINK_CONVERSATION_PUSH_NOTIFICATION_CREATED = exports.ROUTING_KEY_LINK_CONVERSATION_MESSAGE_DELETED = exports.ROUTING_KEY_LINK_CONVERSATION_MESSAGE_CREATED = exports.ROUTING_KEY_CONVERSATION_DEFAULT_DELETED = exports.ROUTING_KEY_CONVERSATION_DEFAULT_UPDATED = exports.ROUTING_KEY_CONVERSATION_DEFAULT_CREATED = exports.ROUTING_KEY_CONVERSATION_DELETED = exports.ROUTING_KEY_CONVERSATION_UPDATED = exports.ROUTING_KEY_CONVERSATION_CREATED = exports.Conversation = exports.ConversationPropertyKeys = exports.ConversationSource = exports.ConversationStatus = exports.ConversationChannel = exports.ConversationMode = exports.ConversationEntityTypes = void 0;
|
|
16
16
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
17
|
/**
|
|
18
18
|
* Available types for Conversation records
|
|
@@ -22,6 +22,20 @@ var ConversationEntityTypes;
|
|
|
22
22
|
/** This is the default record type */
|
|
23
23
|
ConversationEntityTypes["DEFAULT"] = "DEFAULT";
|
|
24
24
|
})(ConversationEntityTypes = exports.ConversationEntityTypes || (exports.ConversationEntityTypes = {}));
|
|
25
|
+
/**
|
|
26
|
+
* Valid values for Conversation.Mode
|
|
27
|
+
*
|
|
28
|
+
* Conversation Mode
|
|
29
|
+
*
|
|
30
|
+
* @remarks Available options:
|
|
31
|
+
* - `ASYNC` - Async
|
|
32
|
+
* - `LIVE` - Live
|
|
33
|
+
*/
|
|
34
|
+
var ConversationMode;
|
|
35
|
+
(function (ConversationMode) {
|
|
36
|
+
ConversationMode["ASYNC"] = "ASYNC";
|
|
37
|
+
ConversationMode["LIVE"] = "LIVE";
|
|
38
|
+
})(ConversationMode = exports.ConversationMode || (exports.ConversationMode = {}));
|
|
25
39
|
/**
|
|
26
40
|
* Valid values for Conversation.Channel
|
|
27
41
|
*
|
|
@@ -94,6 +108,8 @@ var ConversationSource;
|
|
|
94
108
|
*/
|
|
95
109
|
var ConversationPropertyKeys;
|
|
96
110
|
(function (ConversationPropertyKeys) {
|
|
111
|
+
/** Conversation Mode */
|
|
112
|
+
ConversationPropertyKeys["Mode"] = "Mode";
|
|
97
113
|
/** The channel (Chat, SMS, Whatsapp, Facebook etc..) (Communications - Conversation) */
|
|
98
114
|
ConversationPropertyKeys["Channel"] = "Channel";
|
|
99
115
|
/** Data field for Conversation records. Used by Communications team. */
|
|
@@ -71,18 +71,18 @@ export declare enum CreditNoteReason {
|
|
|
71
71
|
* Use these constants instead of string literals for type safety
|
|
72
72
|
*/
|
|
73
73
|
export declare enum CreditNotePropertyKeys {
|
|
74
|
-
/**
|
|
75
|
-
|
|
74
|
+
/** credit note reason (Finance - CreditNote) */
|
|
75
|
+
Reason = "Reason",
|
|
76
|
+
/** credit note status (Finance - CreditNote) */
|
|
77
|
+
Status = "Status",
|
|
76
78
|
/** description of the credit note (Finance - CreditNote) */
|
|
77
79
|
Description = "Description",
|
|
78
80
|
/** the record # of the invoice (Finance - CreditNote) */
|
|
79
81
|
InvoiceRef = "InvoiceRef",
|
|
80
|
-
/** credit note reason (Finance - CreditNote) */
|
|
81
|
-
Reason = "Reason",
|
|
82
82
|
/** reason code (Finance - CreditNote) */
|
|
83
83
|
ReasonCode = "ReasonCode",
|
|
84
|
-
/** credit note
|
|
85
|
-
|
|
84
|
+
/** amount of the credit note (Finance - CreditNote) */
|
|
85
|
+
Amount = "Amount"
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
88
|
* Properties for CreditNote records
|
|
@@ -90,12 +90,18 @@ export declare enum CreditNotePropertyKeys {
|
|
|
90
90
|
* @see BillingModule:CreditNote
|
|
91
91
|
*/
|
|
92
92
|
export interface CreditNoteProperties {
|
|
93
|
-
/**
|
|
93
|
+
/** credit note reason (Finance - CreditNote)
|
|
94
94
|
*
|
|
95
|
-
* @type {
|
|
96
|
-
* @
|
|
95
|
+
* @type {ENUM}
|
|
96
|
+
* @enum {CreditNoteReason}
|
|
97
97
|
*/
|
|
98
|
-
|
|
98
|
+
Reason: CreditNoteReason;
|
|
99
|
+
/** credit note status (Finance - CreditNote)
|
|
100
|
+
*
|
|
101
|
+
* @type {TEXT}
|
|
102
|
+
* @hidden This field is hidden in the UI
|
|
103
|
+
*/
|
|
104
|
+
Status: string;
|
|
99
105
|
/** description of the credit note (Finance - CreditNote)
|
|
100
106
|
*
|
|
101
107
|
* @type {TEXT_LONG}
|
|
@@ -106,24 +112,18 @@ export interface CreditNoteProperties {
|
|
|
106
112
|
* @type {TEXT}
|
|
107
113
|
*/
|
|
108
114
|
InvoiceRef: string;
|
|
109
|
-
/** credit note reason (Finance - CreditNote)
|
|
110
|
-
*
|
|
111
|
-
* @type {ENUM}
|
|
112
|
-
* @enum {CreditNoteReason}
|
|
113
|
-
*/
|
|
114
|
-
Reason: CreditNoteReason;
|
|
115
115
|
/** reason code (Finance - CreditNote)
|
|
116
116
|
*
|
|
117
117
|
* @type {TEXT}
|
|
118
118
|
* @hidden This field is hidden in the UI
|
|
119
119
|
*/
|
|
120
120
|
ReasonCode: string;
|
|
121
|
-
/** credit note
|
|
121
|
+
/** amount of the credit note (Finance - CreditNote)
|
|
122
122
|
*
|
|
123
|
-
* @type {
|
|
124
|
-
* @
|
|
123
|
+
* @type {CURRENCY}
|
|
124
|
+
* @default 0
|
|
125
125
|
*/
|
|
126
|
-
|
|
126
|
+
Amount: string;
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
129
|
* CreditNote entity from BillingModule
|
|
@@ -73,18 +73,18 @@ var CreditNoteReason;
|
|
|
73
73
|
*/
|
|
74
74
|
var CreditNotePropertyKeys;
|
|
75
75
|
(function (CreditNotePropertyKeys) {
|
|
76
|
-
/**
|
|
77
|
-
CreditNotePropertyKeys["
|
|
76
|
+
/** credit note reason (Finance - CreditNote) */
|
|
77
|
+
CreditNotePropertyKeys["Reason"] = "Reason";
|
|
78
|
+
/** credit note status (Finance - CreditNote) */
|
|
79
|
+
CreditNotePropertyKeys["Status"] = "Status";
|
|
78
80
|
/** description of the credit note (Finance - CreditNote) */
|
|
79
81
|
CreditNotePropertyKeys["Description"] = "Description";
|
|
80
82
|
/** the record # of the invoice (Finance - CreditNote) */
|
|
81
83
|
CreditNotePropertyKeys["InvoiceRef"] = "InvoiceRef";
|
|
82
|
-
/** credit note reason (Finance - CreditNote) */
|
|
83
|
-
CreditNotePropertyKeys["Reason"] = "Reason";
|
|
84
84
|
/** reason code (Finance - CreditNote) */
|
|
85
85
|
CreditNotePropertyKeys["ReasonCode"] = "ReasonCode";
|
|
86
|
-
/** credit note
|
|
87
|
-
CreditNotePropertyKeys["
|
|
86
|
+
/** amount of the credit note (Finance - CreditNote) */
|
|
87
|
+
CreditNotePropertyKeys["Amount"] = "Amount";
|
|
88
88
|
})(CreditNotePropertyKeys = exports.CreditNotePropertyKeys || (exports.CreditNotePropertyKeys = {}));
|
|
89
89
|
/**
|
|
90
90
|
* CreditNote entity from BillingModule
|
|
@@ -17,6 +17,7 @@ import { DeactivationApprovalProperties } from './DeactivationApproval';
|
|
|
17
17
|
import { ActivityLogProperties } from './ActivityLog';
|
|
18
18
|
import { InvoiceProperties } from './Invoice';
|
|
19
19
|
import { BillingAdjustmentProperties } from './BillingAdjustment';
|
|
20
|
+
import { OrderKciProperties } from './OrderKci';
|
|
20
21
|
import { FieldServiceDispatchedProductProperties } from './FieldServiceDispatchedProduct';
|
|
21
22
|
import { AccountProperties } from './Account';
|
|
22
23
|
import { CommissionProperties } from './Commission';
|
|
@@ -1026,6 +1027,8 @@ export declare class Order extends OdinRecord<OrderProperties> {
|
|
|
1026
1027
|
Invoice: OdinLink<LinkedOdinRecord<InvoiceProperties>>;
|
|
1027
1028
|
/** Linked BillingAdjustment records (Order__BillingAdjustment) */
|
|
1028
1029
|
BillingAdjustment: OdinLink<LinkedOdinRecord<BillingAdjustmentProperties>>;
|
|
1030
|
+
/** Linked OrderKci records (Order__OrderKci) */
|
|
1031
|
+
OrderKci: OdinLink<LinkedOdinRecord<OrderKciProperties>>;
|
|
1029
1032
|
/** Linked FieldServiceDispatchedProduct records (FieldServiceDispatchedProduct__Order) */
|
|
1030
1033
|
FieldServiceDispatchedProduct: OdinLink<LinkedOdinRecord<FieldServiceDispatchedProductProperties>>;
|
|
1031
1034
|
/** Linked Account records (Account__Order) */
|
|
@@ -1119,6 +1122,10 @@ export declare const ROUTING_KEY_LINK_ORDER_INVOICE_DELETED = "OrderModule.Order
|
|
|
1119
1122
|
export declare const ROUTING_KEY_LINK_ORDER_BILLING_ADJUSTMENT_CREATED = "OrderModule.Order.BillingAdjustment.SubDbRecordAssociationCreated";
|
|
1120
1123
|
/** Event: Order__BillingAdjustment link deleted */
|
|
1121
1124
|
export declare const ROUTING_KEY_LINK_ORDER_BILLING_ADJUSTMENT_DELETED = "OrderModule.Order.BillingAdjustment.SubDbRecordAssociationDeleted";
|
|
1125
|
+
/** Event: Order__OrderKci link created */
|
|
1126
|
+
export declare const ROUTING_KEY_LINK_ORDER_ORDER_KCI_CREATED = "OrderModule.Order.OrderKci.SubDbRecordAssociationCreated";
|
|
1127
|
+
/** Event: Order__OrderKci link deleted */
|
|
1128
|
+
export declare const ROUTING_KEY_LINK_ORDER_ORDER_KCI_DELETED = "OrderModule.Order.OrderKci.SubDbRecordAssociationDeleted";
|
|
1122
1129
|
/** Event: Order__Commission link created */
|
|
1123
1130
|
export declare const ROUTING_KEY_LINK_ORDER_COMMISSION_CREATED = "OrderModule.Order.Commission.SubDbRecordAssociationCreated";
|
|
1124
1131
|
/** Event: Order__Commission link deleted */
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* Generated from Odin schema definition
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
16
|
-
exports.ROUTING_KEY_LINK_ORDER_PUSH_NOTIFICATION_DELETED = exports.ROUTING_KEY_LINK_ORDER_PUSH_NOTIFICATION_CREATED = exports.ROUTING_KEY_LINK_ORDER_REFERRAL_DELETED = exports.ROUTING_KEY_LINK_ORDER_REFERRAL_CREATED = exports.ROUTING_KEY_LINK_ORDER_ACTIVITY_DELETED = exports.ROUTING_KEY_LINK_ORDER_ACTIVITY_CREATED = exports.ROUTING_KEY_LINK_ORDER_APPOINTMENT_DELETED = exports.ROUTING_KEY_LINK_ORDER_APPOINTMENT_CREATED = exports.ROUTING_KEY_LINK_ORDER_ORDER_CHECK_DELETED = exports.ROUTING_KEY_LINK_ORDER_ORDER_CHECK_CREATED = exports.ROUTING_KEY_LINK_ORDER_ORDER_DELETED = exports.ROUTING_KEY_LINK_ORDER_ORDER_CREATED = exports.ROUTING_KEY_LINK_ORDER_CONTACT_DELETED = exports.ROUTING_KEY_LINK_ORDER_CONTACT_CREATED = exports.ROUTING_KEY_LINK_ORDER_CONTRACT_BUY_OUT_DELETED = exports.ROUTING_KEY_LINK_ORDER_CONTRACT_BUY_OUT_CREATED = exports.ROUTING_KEY_LINK_ORDER_FILE_DELETED = exports.ROUTING_KEY_LINK_ORDER_FILE_CREATED = exports.ROUTING_KEY_LINK_ORDER_DISCOUNT_DELETED = void 0;
|
|
15
|
+
exports.ROUTING_KEY_LINK_ORDER_VISIT_CREATED = exports.ROUTING_KEY_LINK_ORDER_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_ORDER_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_ORDER_CUSTOMER_DEVICE_ROUTER_DELETED = exports.ROUTING_KEY_LINK_ORDER_CUSTOMER_DEVICE_ROUTER_CREATED = exports.ROUTING_KEY_LINK_ORDER_CONTACT_IDENTITY_DELETED = exports.ROUTING_KEY_LINK_ORDER_CONTACT_IDENTITY_CREATED = exports.ROUTING_KEY_LINK_ORDER_CUSTOMER_DEVICE_ONT_DELETED = exports.ROUTING_KEY_LINK_ORDER_CUSTOMER_DEVICE_ONT_CREATED = exports.ROUTING_KEY_LINK_ORDER_SMS_MESSAGE_DELETED = exports.ROUTING_KEY_LINK_ORDER_SMS_MESSAGE_CREATED = exports.ROUTING_KEY_LINK_ORDER_NOTE_DELETED = exports.ROUTING_KEY_LINK_ORDER_NOTE_CREATED = exports.ROUTING_KEY_LINK_ORDER_PHONE_NUMBER_DELETED = exports.ROUTING_KEY_LINK_ORDER_PHONE_NUMBER_CREATED = exports.ROUTING_KEY_LINK_ORDER_ORDER_ITEM_DELETED = exports.ROUTING_KEY_LINK_ORDER_ORDER_ITEM_CREATED = exports.ROUTING_KEY_LINK_ORDER_COMMISSION_DELETED = exports.ROUTING_KEY_LINK_ORDER_COMMISSION_CREATED = exports.ROUTING_KEY_LINK_ORDER_ORDER_KCI_DELETED = exports.ROUTING_KEY_LINK_ORDER_ORDER_KCI_CREATED = exports.ROUTING_KEY_LINK_ORDER_BILLING_ADJUSTMENT_DELETED = exports.ROUTING_KEY_LINK_ORDER_BILLING_ADJUSTMENT_CREATED = exports.ROUTING_KEY_LINK_ORDER_INVOICE_DELETED = exports.ROUTING_KEY_LINK_ORDER_INVOICE_CREATED = exports.ROUTING_KEY_LINK_ORDER_ACTIVITY_LOG_DELETED = exports.ROUTING_KEY_LINK_ORDER_ACTIVITY_LOG_CREATED = exports.ROUTING_KEY_LINK_ORDER_ADDRESS_DELETED = exports.ROUTING_KEY_LINK_ORDER_ADDRESS_CREATED = exports.ROUTING_KEY_ORDER_DEFAULT_DELETED = exports.ROUTING_KEY_ORDER_DEFAULT_UPDATED = exports.ROUTING_KEY_ORDER_DEFAULT_CREATED = exports.ROUTING_KEY_ORDER_DELETED = exports.ROUTING_KEY_ORDER_UPDATED = exports.ROUTING_KEY_ORDER_CREATED = exports.Order = exports.OrderPropertyKeys = exports.OrderDiscountUnit = exports.OrderTrialUnit = exports.OrderContractType = exports.OrderActivationStatus = exports.OrderDeactivationReason = exports.OrderWithholdCommissionReason = exports.OrderProvider = exports.OrderBillingTerms = exports.OrderDiscountType = exports.OrderCurrencyCode = exports.DefaultOrderStageKeys = exports.DefaultOrderStageNames = exports.OrderEntityTypes = void 0;
|
|
16
|
+
exports.ROUTING_KEY_LINK_ORDER_PUSH_NOTIFICATION_DELETED = exports.ROUTING_KEY_LINK_ORDER_PUSH_NOTIFICATION_CREATED = exports.ROUTING_KEY_LINK_ORDER_REFERRAL_DELETED = exports.ROUTING_KEY_LINK_ORDER_REFERRAL_CREATED = exports.ROUTING_KEY_LINK_ORDER_ACTIVITY_DELETED = exports.ROUTING_KEY_LINK_ORDER_ACTIVITY_CREATED = exports.ROUTING_KEY_LINK_ORDER_APPOINTMENT_DELETED = exports.ROUTING_KEY_LINK_ORDER_APPOINTMENT_CREATED = exports.ROUTING_KEY_LINK_ORDER_ORDER_CHECK_DELETED = exports.ROUTING_KEY_LINK_ORDER_ORDER_CHECK_CREATED = exports.ROUTING_KEY_LINK_ORDER_ORDER_DELETED = exports.ROUTING_KEY_LINK_ORDER_ORDER_CREATED = exports.ROUTING_KEY_LINK_ORDER_CONTACT_DELETED = exports.ROUTING_KEY_LINK_ORDER_CONTACT_CREATED = exports.ROUTING_KEY_LINK_ORDER_CONTRACT_BUY_OUT_DELETED = exports.ROUTING_KEY_LINK_ORDER_CONTRACT_BUY_OUT_CREATED = exports.ROUTING_KEY_LINK_ORDER_FILE_DELETED = exports.ROUTING_KEY_LINK_ORDER_FILE_CREATED = exports.ROUTING_KEY_LINK_ORDER_DISCOUNT_DELETED = exports.ROUTING_KEY_LINK_ORDER_DISCOUNT_CREATED = exports.ROUTING_KEY_LINK_ORDER_VISIT_DELETED = void 0;
|
|
17
17
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
18
|
/**
|
|
19
19
|
* Available types for Order records
|
|
@@ -478,6 +478,10 @@ exports.ROUTING_KEY_LINK_ORDER_INVOICE_DELETED = 'OrderModule.Order.Invoice.SubD
|
|
|
478
478
|
exports.ROUTING_KEY_LINK_ORDER_BILLING_ADJUSTMENT_CREATED = 'OrderModule.Order.BillingAdjustment.SubDbRecordAssociationCreated';
|
|
479
479
|
/** Event: Order__BillingAdjustment link deleted */
|
|
480
480
|
exports.ROUTING_KEY_LINK_ORDER_BILLING_ADJUSTMENT_DELETED = 'OrderModule.Order.BillingAdjustment.SubDbRecordAssociationDeleted';
|
|
481
|
+
/** Event: Order__OrderKci link created */
|
|
482
|
+
exports.ROUTING_KEY_LINK_ORDER_ORDER_KCI_CREATED = 'OrderModule.Order.OrderKci.SubDbRecordAssociationCreated';
|
|
483
|
+
/** Event: Order__OrderKci link deleted */
|
|
484
|
+
exports.ROUTING_KEY_LINK_ORDER_ORDER_KCI_DELETED = 'OrderModule.Order.OrderKci.SubDbRecordAssociationDeleted';
|
|
481
485
|
/** Event: Order__Commission link created */
|
|
482
486
|
exports.ROUTING_KEY_LINK_ORDER_COMMISSION_CREATED = 'OrderModule.Order.Commission.SubDbRecordAssociationCreated';
|
|
483
487
|
/** Event: Order__Commission link deleted */
|
|
@@ -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 { OrderProperties } from './Order';
|
|
14
15
|
/**
|
|
15
16
|
* Available types for OrderKci records
|
|
16
17
|
*/
|
|
@@ -95,6 +96,8 @@ export declare class OrderKci extends OdinRecord<OrderKciProperties> {
|
|
|
95
96
|
type: OrderKciEntityTypes;
|
|
96
97
|
schemaId: 'dc4af102-3fec-4004-9fbb-9014baa3b99c';
|
|
97
98
|
properties: OrderKciProperties;
|
|
99
|
+
/** Linked Order records (Order__OrderKci) */
|
|
100
|
+
Order: OdinLink<LinkedOdinRecord<OrderProperties>>;
|
|
98
101
|
}
|
|
99
102
|
/**
|
|
100
103
|
* RabbitMQ routing keys for OrderKci events
|
|
@@ -309,8 +309,6 @@ export declare enum ProductContractType {
|
|
|
309
309
|
* Use these constants instead of string literals for type safety
|
|
310
310
|
*/
|
|
311
311
|
export declare enum ProductPropertyKeys {
|
|
312
|
-
/** External Reference ID */
|
|
313
|
-
ExternalRef = "ExternalRef",
|
|
314
312
|
/** suggested price to sell a single product (Product Management - Product) */
|
|
315
313
|
UnitPrice = "UnitPrice",
|
|
316
314
|
/** promo label pricing box down (Product Management - Product) */
|
|
@@ -418,11 +416,6 @@ export declare enum ProductPropertyKeys {
|
|
|
418
416
|
* @see ProductModule:Product
|
|
419
417
|
*/
|
|
420
418
|
export interface ProductProperties {
|
|
421
|
-
/** External Reference ID
|
|
422
|
-
*
|
|
423
|
-
* @type {TEXT}
|
|
424
|
-
*/
|
|
425
|
-
ExternalRef: string;
|
|
426
419
|
/** suggested price to sell a single product (Product Management - Product)
|
|
427
420
|
*
|
|
428
421
|
* @type {CURRENCY}
|
|
@@ -735,11 +728,6 @@ export interface ProductProperties {
|
|
|
735
728
|
* @see ProductModule:Product
|
|
736
729
|
*/
|
|
737
730
|
export interface BundleProductProperties {
|
|
738
|
-
/** External Reference ID
|
|
739
|
-
*
|
|
740
|
-
* @type {TEXT}
|
|
741
|
-
*/
|
|
742
|
-
ExternalRef: string;
|
|
743
731
|
/** suggested price to sell a single product (Product Management - Product)
|
|
744
732
|
*
|
|
745
733
|
* @type {CURRENCY}
|
|
@@ -1052,11 +1040,6 @@ export interface BundleProductProperties {
|
|
|
1052
1040
|
* @see ProductModule:Product
|
|
1053
1041
|
*/
|
|
1054
1042
|
export interface InternetProductProperties {
|
|
1055
|
-
/** External Reference ID
|
|
1056
|
-
*
|
|
1057
|
-
* @type {TEXT}
|
|
1058
|
-
*/
|
|
1059
|
-
ExternalRef: string;
|
|
1060
1043
|
/** suggested price to sell a single product (Product Management - Product)
|
|
1061
1044
|
*
|
|
1062
1045
|
* @type {CURRENCY}
|
|
@@ -1369,11 +1352,6 @@ export interface InternetProductProperties {
|
|
|
1369
1352
|
* @see ProductModule:Product
|
|
1370
1353
|
*/
|
|
1371
1354
|
export interface LaborProductProperties {
|
|
1372
|
-
/** External Reference ID
|
|
1373
|
-
*
|
|
1374
|
-
* @type {TEXT}
|
|
1375
|
-
*/
|
|
1376
|
-
ExternalRef: string;
|
|
1377
1355
|
/** suggested price to sell a single product (Product Management - Product)
|
|
1378
1356
|
*
|
|
1379
1357
|
* @type {CURRENCY}
|
|
@@ -1686,11 +1664,6 @@ export interface LaborProductProperties {
|
|
|
1686
1664
|
* @see ProductModule:Product
|
|
1687
1665
|
*/
|
|
1688
1666
|
export interface LandlineProductProperties {
|
|
1689
|
-
/** External Reference ID
|
|
1690
|
-
*
|
|
1691
|
-
* @type {TEXT}
|
|
1692
|
-
*/
|
|
1693
|
-
ExternalRef: string;
|
|
1694
1667
|
/** suggested price to sell a single product (Product Management - Product)
|
|
1695
1668
|
*
|
|
1696
1669
|
* @type {CURRENCY}
|
|
@@ -2003,11 +1976,6 @@ export interface LandlineProductProperties {
|
|
|
2003
1976
|
* @see ProductModule:Product
|
|
2004
1977
|
*/
|
|
2005
1978
|
export interface MeshProductProperties {
|
|
2006
|
-
/** External Reference ID
|
|
2007
|
-
*
|
|
2008
|
-
* @type {TEXT}
|
|
2009
|
-
*/
|
|
2010
|
-
ExternalRef: string;
|
|
2011
1979
|
/** suggested price to sell a single product (Product Management - Product)
|
|
2012
1980
|
*
|
|
2013
1981
|
* @type {CURRENCY}
|
|
@@ -2320,11 +2288,6 @@ export interface MeshProductProperties {
|
|
|
2320
2288
|
* @see ProductModule:Product
|
|
2321
2289
|
*/
|
|
2322
2290
|
export interface MobileProductProperties {
|
|
2323
|
-
/** External Reference ID
|
|
2324
|
-
*
|
|
2325
|
-
* @type {TEXT}
|
|
2326
|
-
*/
|
|
2327
|
-
ExternalRef: string;
|
|
2328
2291
|
/** suggested price to sell a single product (Product Management - Product)
|
|
2329
2292
|
*
|
|
2330
2293
|
* @type {CURRENCY}
|
|
@@ -2637,11 +2600,6 @@ export interface MobileProductProperties {
|
|
|
2637
2600
|
* @see ProductModule:Product
|
|
2638
2601
|
*/
|
|
2639
2602
|
export interface TelevisionProductProperties {
|
|
2640
|
-
/** External Reference ID
|
|
2641
|
-
*
|
|
2642
|
-
* @type {TEXT}
|
|
2643
|
-
*/
|
|
2644
|
-
ExternalRef: string;
|
|
2645
2603
|
/** suggested price to sell a single product (Product Management - Product)
|
|
2646
2604
|
*
|
|
2647
2605
|
* @type {CURRENCY}
|
|
@@ -323,8 +323,6 @@ var ProductContractType;
|
|
|
323
323
|
*/
|
|
324
324
|
var ProductPropertyKeys;
|
|
325
325
|
(function (ProductPropertyKeys) {
|
|
326
|
-
/** External Reference ID */
|
|
327
|
-
ProductPropertyKeys["ExternalRef"] = "ExternalRef";
|
|
328
326
|
/** suggested price to sell a single product (Product Management - Product) */
|
|
329
327
|
ProductPropertyKeys["UnitPrice"] = "UnitPrice";
|
|
330
328
|
/** promo label pricing box down (Product Management - Product) */
|
|
@@ -83,6 +83,7 @@ export declare enum TransactionStatus {
|
|
|
83
83
|
* - `CARD_PAYLINK` - Card PayLink
|
|
84
84
|
* - `DCA_PAYMENT` - DCA Payment
|
|
85
85
|
* - `GOCARDLESS` - GoCardless
|
|
86
|
+
* - `PAYMENT_GATEWAY` - Payment Gateway
|
|
86
87
|
* - `PHONE_PAYMENT` - Phone Payment
|
|
87
88
|
*/
|
|
88
89
|
export declare enum TransactionPaymentMethod {
|
|
@@ -90,6 +91,7 @@ export declare enum TransactionPaymentMethod {
|
|
|
90
91
|
CARD_PAY_LINK = "CARD_PAYLINK",
|
|
91
92
|
DCA_PAYMENT = "DCA_PAYMENT",
|
|
92
93
|
GO_CARDLESS = "GOCARDLESS",
|
|
94
|
+
PAYMENT_GATEWAY = "PAYMENT_GATEWAY",
|
|
93
95
|
PHONE_PAYMENT = "PHONE_PAYMENT"
|
|
94
96
|
}
|
|
95
97
|
/**
|
|
@@ -81,6 +81,7 @@ var TransactionStatus;
|
|
|
81
81
|
* - `CARD_PAYLINK` - Card PayLink
|
|
82
82
|
* - `DCA_PAYMENT` - DCA Payment
|
|
83
83
|
* - `GOCARDLESS` - GoCardless
|
|
84
|
+
* - `PAYMENT_GATEWAY` - Payment Gateway
|
|
84
85
|
* - `PHONE_PAYMENT` - Phone Payment
|
|
85
86
|
*/
|
|
86
87
|
var TransactionPaymentMethod;
|
|
@@ -89,6 +90,7 @@ var TransactionPaymentMethod;
|
|
|
89
90
|
TransactionPaymentMethod["CARD_PAY_LINK"] = "CARD_PAYLINK";
|
|
90
91
|
TransactionPaymentMethod["DCA_PAYMENT"] = "DCA_PAYMENT";
|
|
91
92
|
TransactionPaymentMethod["GO_CARDLESS"] = "GOCARDLESS";
|
|
93
|
+
TransactionPaymentMethod["PAYMENT_GATEWAY"] = "PAYMENT_GATEWAY";
|
|
92
94
|
TransactionPaymentMethod["PHONE_PAYMENT"] = "PHONE_PAYMENT";
|
|
93
95
|
})(TransactionPaymentMethod = exports.TransactionPaymentMethod || (exports.TransactionPaymentMethod = {}));
|
|
94
96
|
/**
|
|
@@ -21,8 +21,10 @@ import { OdinRecord, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
|
|
|
21
21
|
import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
|
|
22
22
|
import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/v1.db.interfaces';
|
|
23
23
|
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
24
|
+
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
24
25
|
import { OrderKciProperties } from '../entities-v2/OrderKci';
|
|
25
26
|
import { CreateOrderKciProperties } from '../actions-v2/CreateOrderKciDto';
|
|
27
|
+
import { OrderRecord } from './OrderRecord';
|
|
26
28
|
/** Valid entity types for OrderKci */
|
|
27
29
|
export declare type OrderKciType = 'DEFAULT';
|
|
28
30
|
/**
|
|
@@ -88,6 +90,7 @@ export declare class OrderKciRecord<TProps = OrderKciProperties> {
|
|
|
88
90
|
private _provider;
|
|
89
91
|
private _pendingLinks;
|
|
90
92
|
private _preGeneratedId;
|
|
93
|
+
private _orders?;
|
|
91
94
|
/**
|
|
92
95
|
* Create a record wrapper.
|
|
93
96
|
* @param record - The underlying record, or null for create operations
|
|
@@ -129,6 +132,24 @@ export declare class OrderKciRecord<TProps = OrderKciProperties> {
|
|
|
129
132
|
* @remarks This is the default record type
|
|
130
133
|
*/
|
|
131
134
|
isDefault(): this is OrderKciRecord<OrderKciProperties>;
|
|
135
|
+
/** Valid labels for Order associations */
|
|
136
|
+
static readonly ordersLabels: readonly ["Order__OrderKci"];
|
|
137
|
+
/**
|
|
138
|
+
* Access linked Order records
|
|
139
|
+
* @remarks Available labels: Order__OrderKci
|
|
140
|
+
* @throws Error if called on a new (unsaved) record
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* ```typescript
|
|
144
|
+
* // Get all linked Order records
|
|
145
|
+
* const items = await record.orders.list();
|
|
146
|
+
* const first = await record.orders.first();
|
|
147
|
+
*
|
|
148
|
+
* // Filter by label
|
|
149
|
+
* const specific = await record.orders.first({ label: 'Order__OrderKci' });
|
|
150
|
+
* ```
|
|
151
|
+
*/
|
|
152
|
+
get orders(): RecordLinkManager<OrderRecord, typeof OrderKciRecord['ordersLabels'][number]>;
|
|
132
153
|
/**
|
|
133
154
|
* Queue a link to be created with the next action.
|
|
134
155
|
* Works for both create and update actions.
|
|
@@ -31,6 +31,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
31
31
|
exports.isOrderKciRecord = exports.OrderKciRecord = void 0;
|
|
32
32
|
const uuid_1 = require("uuid");
|
|
33
33
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
34
|
+
const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
|
|
35
|
+
const OrderRecord_1 = require("./OrderRecord");
|
|
34
36
|
/**
|
|
35
37
|
* Builder for action execution with dryRun support
|
|
36
38
|
*
|
|
@@ -160,6 +162,36 @@ class OrderKciRecord {
|
|
|
160
162
|
* @remarks This is the default record type
|
|
161
163
|
*/
|
|
162
164
|
isDefault() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'DEFAULT'; }
|
|
165
|
+
/**
|
|
166
|
+
* Access linked Order records
|
|
167
|
+
* @remarks Available labels: Order__OrderKci
|
|
168
|
+
* @throws Error if called on a new (unsaved) record
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* ```typescript
|
|
172
|
+
* // Get all linked Order records
|
|
173
|
+
* const items = await record.orders.list();
|
|
174
|
+
* const first = await record.orders.first();
|
|
175
|
+
*
|
|
176
|
+
* // Filter by label
|
|
177
|
+
* const specific = await record.orders.first({ label: 'Order__OrderKci' });
|
|
178
|
+
* ```
|
|
179
|
+
*/
|
|
180
|
+
get orders() {
|
|
181
|
+
var _a;
|
|
182
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
183
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
184
|
+
if (!this._orders) {
|
|
185
|
+
this._orders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
186
|
+
sourceEntity: 'OrderModule:OrderKci',
|
|
187
|
+
targetEntity: 'OrderModule:Order',
|
|
188
|
+
targetModuleName: 'OrderModule',
|
|
189
|
+
targetEntityName: 'Order',
|
|
190
|
+
labels: ['Order__OrderKci'],
|
|
191
|
+
}, OrderRecord_1.OrderRecord);
|
|
192
|
+
}
|
|
193
|
+
return this._orders;
|
|
194
|
+
}
|
|
163
195
|
// ============================================
|
|
164
196
|
// LINK MANAGEMENT
|
|
165
197
|
// ============================================
|
|
@@ -236,6 +268,11 @@ class OrderKciRecord {
|
|
|
236
268
|
}
|
|
237
269
|
}
|
|
238
270
|
exports.OrderKciRecord = OrderKciRecord;
|
|
271
|
+
// ============================================
|
|
272
|
+
// TYPED LINK ACCESSORS
|
|
273
|
+
// ============================================
|
|
274
|
+
/** Valid labels for Order associations */
|
|
275
|
+
OrderKciRecord.ordersLabels = ['Order__OrderKci'];
|
|
239
276
|
/** Type guard to check if an object is a OrderKciRecord */
|
|
240
277
|
function isOrderKciRecord(obj) {
|
|
241
278
|
return obj instanceof OrderKciRecord;
|
|
@@ -40,6 +40,7 @@ import { AddressRecord } from './AddressRecord';
|
|
|
40
40
|
import { ActivityLogRecord } from './ActivityLogRecord';
|
|
41
41
|
import { InvoiceRecord } from './InvoiceRecord';
|
|
42
42
|
import { BillingAdjustmentRecord } from './BillingAdjustmentRecord';
|
|
43
|
+
import { OrderKciRecord } from './OrderKciRecord';
|
|
43
44
|
import { FieldServiceDispatchedProductRecord } from './FieldServiceDispatchedProductRecord';
|
|
44
45
|
import { AccountRecord } from './AccountRecord';
|
|
45
46
|
import { PICRequestRecord } from './PICRequestRecord';
|
|
@@ -625,6 +626,7 @@ export declare class OrderRecord<TProps = OrderProperties> {
|
|
|
625
626
|
private _activityLogs?;
|
|
626
627
|
private _invoices?;
|
|
627
628
|
private _billingAdjustments?;
|
|
629
|
+
private _orderKcis?;
|
|
628
630
|
private _fieldServiceDispatchedProducts?;
|
|
629
631
|
private _accounts?;
|
|
630
632
|
private _picRequests?;
|
|
@@ -748,6 +750,24 @@ export declare class OrderRecord<TProps = OrderProperties> {
|
|
|
748
750
|
* ```
|
|
749
751
|
*/
|
|
750
752
|
get billingAdjustments(): RecordLinkManager<BillingAdjustmentRecord, typeof OrderRecord['billingAdjustmentsLabels'][number]>;
|
|
753
|
+
/** Valid labels for OrderKci associations */
|
|
754
|
+
static readonly orderKcisLabels: readonly ["Order__OrderKci"];
|
|
755
|
+
/**
|
|
756
|
+
* Access linked OrderKci records
|
|
757
|
+
* @remarks Available labels: Order__OrderKci
|
|
758
|
+
* @throws Error if called on a new (unsaved) record
|
|
759
|
+
*
|
|
760
|
+
* @example
|
|
761
|
+
* ```typescript
|
|
762
|
+
* // Get all linked OrderKci records
|
|
763
|
+
* const items = await record.orderKcis.list();
|
|
764
|
+
* const first = await record.orderKcis.first();
|
|
765
|
+
*
|
|
766
|
+
* // Filter by label
|
|
767
|
+
* const specific = await record.orderKcis.first({ label: 'Order__OrderKci' });
|
|
768
|
+
* ```
|
|
769
|
+
*/
|
|
770
|
+
get orderKcis(): RecordLinkManager<OrderKciRecord, typeof OrderRecord['orderKcisLabels'][number]>;
|
|
751
771
|
/** Valid labels for FieldServiceDispatchedProduct associations */
|
|
752
772
|
static readonly fieldServiceDispatchedProductsLabels: readonly ["FieldServiceDispatchedProduct__Order"];
|
|
753
773
|
/**
|
|
@@ -34,6 +34,7 @@ const AddressRecord_1 = require("./AddressRecord");
|
|
|
34
34
|
const ActivityLogRecord_1 = require("./ActivityLogRecord");
|
|
35
35
|
const InvoiceRecord_1 = require("./InvoiceRecord");
|
|
36
36
|
const BillingAdjustmentRecord_1 = require("./BillingAdjustmentRecord");
|
|
37
|
+
const OrderKciRecord_1 = require("./OrderKciRecord");
|
|
37
38
|
const FieldServiceDispatchedProductRecord_1 = require("./FieldServiceDispatchedProductRecord");
|
|
38
39
|
const AccountRecord_1 = require("./AccountRecord");
|
|
39
40
|
const PICRequestRecord_1 = require("./PICRequestRecord");
|
|
@@ -1175,6 +1176,36 @@ class OrderRecord {
|
|
|
1175
1176
|
}
|
|
1176
1177
|
return this._billingAdjustments;
|
|
1177
1178
|
}
|
|
1179
|
+
/**
|
|
1180
|
+
* Access linked OrderKci records
|
|
1181
|
+
* @remarks Available labels: Order__OrderKci
|
|
1182
|
+
* @throws Error if called on a new (unsaved) record
|
|
1183
|
+
*
|
|
1184
|
+
* @example
|
|
1185
|
+
* ```typescript
|
|
1186
|
+
* // Get all linked OrderKci records
|
|
1187
|
+
* const items = await record.orderKcis.list();
|
|
1188
|
+
* const first = await record.orderKcis.first();
|
|
1189
|
+
*
|
|
1190
|
+
* // Filter by label
|
|
1191
|
+
* const specific = await record.orderKcis.first({ label: 'Order__OrderKci' });
|
|
1192
|
+
* ```
|
|
1193
|
+
*/
|
|
1194
|
+
get orderKcis() {
|
|
1195
|
+
var _a;
|
|
1196
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1197
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1198
|
+
if (!this._orderKcis) {
|
|
1199
|
+
this._orderKcis = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1200
|
+
sourceEntity: 'OrderModule:Order',
|
|
1201
|
+
targetEntity: 'OrderModule:OrderKci',
|
|
1202
|
+
targetModuleName: 'OrderModule',
|
|
1203
|
+
targetEntityName: 'OrderKci',
|
|
1204
|
+
labels: ['Order__OrderKci'],
|
|
1205
|
+
}, OrderKciRecord_1.OrderKciRecord);
|
|
1206
|
+
}
|
|
1207
|
+
return this._orderKcis;
|
|
1208
|
+
}
|
|
1178
1209
|
/**
|
|
1179
1210
|
* Access linked FieldServiceDispatchedProduct records
|
|
1180
1211
|
* @remarks Available labels: FieldServiceDispatchedProduct__Order
|
|
@@ -2935,6 +2966,8 @@ OrderRecord.activityLogsLabels = ['Order__ActivityLog'];
|
|
|
2935
2966
|
OrderRecord.invoicesLabels = ['Order__Invoice'];
|
|
2936
2967
|
/** Valid labels for BillingAdjustment associations */
|
|
2937
2968
|
OrderRecord.billingAdjustmentsLabels = ['Order__BillingAdjustment'];
|
|
2969
|
+
/** Valid labels for OrderKci associations */
|
|
2970
|
+
OrderRecord.orderKcisLabels = ['Order__OrderKci'];
|
|
2938
2971
|
/** Valid labels for FieldServiceDispatchedProduct associations */
|
|
2939
2972
|
OrderRecord.fieldServiceDispatchedProductsLabels = ['FieldServiceDispatchedProduct__Order'];
|
|
2940
2973
|
/** Valid labels for Account associations */
|