@d19n/youfibre-odin-sdk 2.0.284 → 2.0.286
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 +35 -23
- package/dist/EntityRegistry.d.ts +2 -0
- package/dist/EntityRegistry.js +2 -0
- package/dist/OdinApiClient.d.ts +4 -0
- package/dist/OdinApiClient.js +8 -0
- package/dist/OdinDbClient.d.ts +4 -0
- package/dist/OdinDbClient.js +8 -0
- package/dist/accessors-v2/RecontractAccessor.d.ts +111 -0
- package/dist/accessors-v2/RecontractAccessor.js +190 -0
- package/dist/accessors-v2/index.d.ts +1 -0
- package/dist/accessors-v2/index.js +4 -2
- package/dist/actions-v2/AddCaseAdditionalNotesDto.d.ts +73 -0
- package/dist/actions-v2/AddCaseAdditionalNotesDto.js +56 -0
- package/dist/actions-v2/CreateCustomerDeviceRouterFromDispatchDto.d.ts +74 -0
- package/dist/actions-v2/CreateCustomerDeviceRouterFromDispatchDto.js +54 -0
- package/dist/actions-v2/CreateRecontractDto.d.ts +63 -0
- package/dist/actions-v2/CreateRecontractDto.js +59 -0
- package/dist/actions-v2/FlagVulnerableCustomerDto.d.ts +73 -0
- package/dist/actions-v2/FlagVulnerableCustomerDto.js +56 -0
- package/dist/actions-v2/RecordAiTagsAccuracyDto.d.ts +73 -0
- package/dist/actions-v2/RecordAiTagsAccuracyDto.js +56 -0
- package/dist/actions-v2/UpdateCaseProvidersDto.d.ts +73 -0
- package/dist/actions-v2/UpdateCaseProvidersDto.js +56 -0
- package/dist/actions-v2/UpdateCaseSlaDto.d.ts +86 -0
- package/dist/actions-v2/UpdateCaseSlaDto.js +56 -0
- package/dist/db-accessors-v2/RecontractDbAccessor.d.ts +149 -0
- package/dist/db-accessors-v2/RecontractDbAccessor.js +227 -0
- package/dist/db-accessors-v2/index.d.ts +1 -0
- package/dist/db-accessors-v2/index.js +4 -2
- package/dist/records-v2/CaseRecord.d.ts +136 -0
- package/dist/records-v2/CaseRecord.js +153 -0
- package/dist/records-v2/CustomerDeviceRouterRecord.d.ts +29 -0
- package/dist/records-v2/CustomerDeviceRouterRecord.js +36 -0
- package/dist/records-v2/OrderRecord.d.ts +20 -0
- package/dist/records-v2/OrderRecord.js +33 -0
- package/dist/records-v2/RecontractRecord.d.ts +205 -0
- package/dist/records-v2/RecontractRecord.js +280 -0
- package/dist/records-v2/index.d.ts +3 -2
- package/dist/records-v2/index.js +14 -11
- package/package.json +1 -1
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recontract Record Wrapper
|
|
3
|
+
*
|
|
4
|
+
* Provides typed action methods and link management.
|
|
5
|
+
* Works with both ApiProvider and DbProvider.
|
|
6
|
+
*
|
|
7
|
+
* All action methods return an ActionBuilder or FlowBuilder.
|
|
8
|
+
* Call .execute() to run or .dryRun() to get the payload for debugging.
|
|
9
|
+
*
|
|
10
|
+
* Can be instantiated with null record for create operations:
|
|
11
|
+
* ```typescript
|
|
12
|
+
* const record = odinClient.recontracts.new();
|
|
13
|
+
* await record.createRecontract({ ... }).execute();
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* Entity Types: DEFAULT
|
|
17
|
+
*
|
|
18
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
19
|
+
*/
|
|
20
|
+
import { OdinRecord, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
|
|
21
|
+
import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
|
|
22
|
+
import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/v1.db.interfaces';
|
|
23
|
+
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
24
|
+
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
25
|
+
import { RecontractProperties } from '../entities-v2/Recontract';
|
|
26
|
+
import { CreateRecontractProperties } from '../actions-v2/CreateRecontractDto';
|
|
27
|
+
import { OrderRecord } from './OrderRecord';
|
|
28
|
+
/** Valid entity types for Recontract */
|
|
29
|
+
export declare type RecontractType = 'DEFAULT';
|
|
30
|
+
/**
|
|
31
|
+
* Builder for action execution with dryRun support
|
|
32
|
+
*
|
|
33
|
+
* Provides a consistent API across all action types:
|
|
34
|
+
* - `.execute()` - Execute the action and return results
|
|
35
|
+
* - `.dryRun()` - Return the payload without executing (for debugging)
|
|
36
|
+
*/
|
|
37
|
+
declare class ActionBuilder<T = IDbRecordCreateUpdateRes[]> {
|
|
38
|
+
private _provider;
|
|
39
|
+
private _moduleName;
|
|
40
|
+
private _entityName;
|
|
41
|
+
private _payload;
|
|
42
|
+
private _clearPendingLinks;
|
|
43
|
+
constructor(provider: IOdinProvider, moduleName: string, entityName: string, payload: Record<string, any>, clearPendingLinks: () => void);
|
|
44
|
+
/**
|
|
45
|
+
* Set an external system identifier for this record.
|
|
46
|
+
* Links the record to a corresponding entry in an external application.
|
|
47
|
+
*
|
|
48
|
+
* @param externalId - The ID in the external system
|
|
49
|
+
* @param externalAppId - The external application identifier
|
|
50
|
+
* @returns this (for chaining)
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```typescript
|
|
54
|
+
* await record.createOrder({ ... }).withExternalId('SF-123', 'salesforce').execute();
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
withExternalId(externalId: string, externalAppId: string): this;
|
|
58
|
+
/**
|
|
59
|
+
* Set security/access groups for this record.
|
|
60
|
+
* Controls which user groups can access the record.
|
|
61
|
+
*
|
|
62
|
+
* @param groups - Array of group names
|
|
63
|
+
* @returns this (for chaining)
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```typescript
|
|
67
|
+
* await record.createOrder({ ... }).withGroups(['TenantA', 'BillingTeam']).execute();
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
withGroups(groups: string[]): this;
|
|
71
|
+
/**
|
|
72
|
+
* Execute the action
|
|
73
|
+
* @returns The result from the API
|
|
74
|
+
*/
|
|
75
|
+
execute(): Promise<T>;
|
|
76
|
+
/**
|
|
77
|
+
* Returns the request payload without executing (for debugging)
|
|
78
|
+
* @returns The request payload that would be sent to the API
|
|
79
|
+
*/
|
|
80
|
+
dryRun(): Record<string, any>;
|
|
81
|
+
/**
|
|
82
|
+
* Prevents accidental `await actionBuilder` without .execute()
|
|
83
|
+
* Forces developers to explicitly call .execute()
|
|
84
|
+
* @throws Error always - use .execute() or .dryRun() instead
|
|
85
|
+
*/
|
|
86
|
+
then(): never;
|
|
87
|
+
}
|
|
88
|
+
export declare class RecontractRecord<TProps = RecontractProperties> {
|
|
89
|
+
private _record;
|
|
90
|
+
private _provider;
|
|
91
|
+
private _pendingLinks;
|
|
92
|
+
private _preGeneratedId;
|
|
93
|
+
private _orders?;
|
|
94
|
+
/**
|
|
95
|
+
* Create a record wrapper.
|
|
96
|
+
* @param record - The underlying record, or null for create operations
|
|
97
|
+
* @param provider - The API or DB provider
|
|
98
|
+
* @param preGeneratedId - Optional pre-generated ID for new records (auto-generated if not provided)
|
|
99
|
+
*/
|
|
100
|
+
constructor(record: OdinRecord<TProps> | null, provider: IOdinProvider, preGeneratedId?: string);
|
|
101
|
+
/** Returns true if this is a new (unsaved) record */
|
|
102
|
+
get isNew(): boolean;
|
|
103
|
+
/** Record ID - always available (pre-generated for new records) */
|
|
104
|
+
get id(): string;
|
|
105
|
+
get entity(): string;
|
|
106
|
+
get type(): RecontractType | undefined;
|
|
107
|
+
/** Record properties - empty object for new (unsaved) records */
|
|
108
|
+
get properties(): TProps;
|
|
109
|
+
get title(): string | undefined;
|
|
110
|
+
get recordNumber(): string | undefined;
|
|
111
|
+
get stage(): PipelineStageEntity | undefined;
|
|
112
|
+
get createdAt(): string | undefined;
|
|
113
|
+
get updatedAt(): string | undefined;
|
|
114
|
+
get externalId(): string | undefined;
|
|
115
|
+
get externalAppId(): string | undefined;
|
|
116
|
+
get groups(): string[];
|
|
117
|
+
/** Access the underlying OdinRecord (null for new records) */
|
|
118
|
+
get record(): OdinRecord<TProps> | null;
|
|
119
|
+
/**
|
|
120
|
+
* Type guard: check if this record is of type DEFAULT
|
|
121
|
+
*
|
|
122
|
+
* When this returns true, TypeScript automatically narrows the type,
|
|
123
|
+
* giving you access to DEFAULT-specific properties.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```typescript
|
|
127
|
+
* if (record.isDefault()) {
|
|
128
|
+
* // TypeScript knows record.properties is RecontractProperties
|
|
129
|
+
* console.log(record.properties.SomeTypeSpecificField);
|
|
130
|
+
* }
|
|
131
|
+
* ```
|
|
132
|
+
* @remarks This is the default record type
|
|
133
|
+
*/
|
|
134
|
+
isDefault(): this is RecontractRecord<RecontractProperties>;
|
|
135
|
+
/** Valid labels for Order associations */
|
|
136
|
+
static readonly ordersLabels: readonly ["Recontract__Order"];
|
|
137
|
+
/**
|
|
138
|
+
* Access linked Order records
|
|
139
|
+
* @remarks Available labels: Recontract__Order
|
|
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: 'Recontract__Order' });
|
|
150
|
+
* ```
|
|
151
|
+
*/
|
|
152
|
+
get orders(): RecordLinkManager<OrderRecord, typeof RecontractRecord['ordersLabels'][number]>;
|
|
153
|
+
/**
|
|
154
|
+
* Queue a link to be created with the next action.
|
|
155
|
+
* Works for both create and update actions.
|
|
156
|
+
* @returns this (for chaining)
|
|
157
|
+
*/
|
|
158
|
+
link(target: OdinRecord<any> | {
|
|
159
|
+
id: string;
|
|
160
|
+
entity: string;
|
|
161
|
+
}): this;
|
|
162
|
+
/** Get the currently queued links */
|
|
163
|
+
get pendingLinks(): OdinRecordLinkDto[];
|
|
164
|
+
/** Clear pending links without executing an action */
|
|
165
|
+
clearPendingLinks(): this;
|
|
166
|
+
/**
|
|
167
|
+
* Immediately unlink a record (API call).
|
|
168
|
+
* Unlike link(), this executes immediately.
|
|
169
|
+
* @throws Error if called on a new (unsaved) record
|
|
170
|
+
*/
|
|
171
|
+
unlink(target: OdinRecord<any> | {
|
|
172
|
+
id: string;
|
|
173
|
+
} | string): Promise<void>;
|
|
174
|
+
/**
|
|
175
|
+
* CreateRecontract
|
|
176
|
+
*
|
|
177
|
+
* Creates a new Recontract record with the specified properties.
|
|
178
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
179
|
+
*
|
|
180
|
+
* @remarks Record type: DEFAULT
|
|
181
|
+
*
|
|
182
|
+
* @param properties - The properties for the new record
|
|
183
|
+
* @param options - Optional settings
|
|
184
|
+
* @param options.journeyId - Associate with a journey
|
|
185
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
186
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* ```typescript
|
|
190
|
+
* // Create with properties
|
|
191
|
+
* const record = odinClient.recontracts.new();
|
|
192
|
+
* await record.createRecontract({ ... }).execute();
|
|
193
|
+
*
|
|
194
|
+
* // Dry run (for debugging)
|
|
195
|
+
* const payload = record.createRecontract({ ... }).dryRun();
|
|
196
|
+
* ```
|
|
197
|
+
*/
|
|
198
|
+
createRecontract(properties?: CreateRecontractProperties, options?: {
|
|
199
|
+
journeyId?: string;
|
|
200
|
+
stageKey?: string;
|
|
201
|
+
}): ActionBuilder;
|
|
202
|
+
}
|
|
203
|
+
/** Type guard to check if an object is a RecontractRecord */
|
|
204
|
+
export declare function isRecontractRecord(obj: any): obj is RecontractRecord;
|
|
205
|
+
export {};
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Recontract Record Wrapper
|
|
4
|
+
*
|
|
5
|
+
* Provides typed action methods and link management.
|
|
6
|
+
* Works with both ApiProvider and DbProvider.
|
|
7
|
+
*
|
|
8
|
+
* All action methods return an ActionBuilder or FlowBuilder.
|
|
9
|
+
* Call .execute() to run or .dryRun() to get the payload for debugging.
|
|
10
|
+
*
|
|
11
|
+
* Can be instantiated with null record for create operations:
|
|
12
|
+
* ```typescript
|
|
13
|
+
* const record = odinClient.recontracts.new();
|
|
14
|
+
* await record.createRecontract({ ... }).execute();
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* Entity Types: DEFAULT
|
|
18
|
+
*
|
|
19
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
20
|
+
*/
|
|
21
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
22
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
25
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
26
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
exports.isRecontractRecord = exports.RecontractRecord = void 0;
|
|
32
|
+
const uuid_1 = require("uuid");
|
|
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");
|
|
36
|
+
/**
|
|
37
|
+
* Builder for action execution with dryRun support
|
|
38
|
+
*
|
|
39
|
+
* Provides a consistent API across all action types:
|
|
40
|
+
* - `.execute()` - Execute the action and return results
|
|
41
|
+
* - `.dryRun()` - Return the payload without executing (for debugging)
|
|
42
|
+
*/
|
|
43
|
+
class ActionBuilder {
|
|
44
|
+
constructor(provider, moduleName, entityName, payload, clearPendingLinks) {
|
|
45
|
+
this._provider = provider;
|
|
46
|
+
this._moduleName = moduleName;
|
|
47
|
+
this._entityName = entityName;
|
|
48
|
+
this._payload = payload;
|
|
49
|
+
this._clearPendingLinks = clearPendingLinks;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Set an external system identifier for this record.
|
|
53
|
+
* Links the record to a corresponding entry in an external application.
|
|
54
|
+
*
|
|
55
|
+
* @param externalId - The ID in the external system
|
|
56
|
+
* @param externalAppId - The external application identifier
|
|
57
|
+
* @returns this (for chaining)
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```typescript
|
|
61
|
+
* await record.createOrder({ ... }).withExternalId('SF-123', 'salesforce').execute();
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
withExternalId(externalId, externalAppId) {
|
|
65
|
+
this._payload.externalId = externalId;
|
|
66
|
+
this._payload.externalAppId = externalAppId;
|
|
67
|
+
return this;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Set security/access groups for this record.
|
|
71
|
+
* Controls which user groups can access the record.
|
|
72
|
+
*
|
|
73
|
+
* @param groups - Array of group names
|
|
74
|
+
* @returns this (for chaining)
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```typescript
|
|
78
|
+
* await record.createOrder({ ... }).withGroups(['TenantA', 'BillingTeam']).execute();
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
withGroups(groups) {
|
|
82
|
+
this._payload.groups = groups;
|
|
83
|
+
return this;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Execute the action
|
|
87
|
+
* @returns The result from the API
|
|
88
|
+
*/
|
|
89
|
+
execute() {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
const result = yield this._provider._applyAction(this._moduleName, this._entityName, this._payload);
|
|
92
|
+
this._clearPendingLinks();
|
|
93
|
+
return result;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Returns the request payload without executing (for debugging)
|
|
98
|
+
* @returns The request payload that would be sent to the API
|
|
99
|
+
*/
|
|
100
|
+
dryRun() {
|
|
101
|
+
return this._payload;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Prevents accidental `await actionBuilder` without .execute()
|
|
105
|
+
* Forces developers to explicitly call .execute()
|
|
106
|
+
* @throws Error always - use .execute() or .dryRun() instead
|
|
107
|
+
*/
|
|
108
|
+
then() {
|
|
109
|
+
throw new Error('ActionBuilder cannot be awaited directly. Call .execute() to run the action or .dryRun() to get the payload.');
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
class RecontractRecord {
|
|
113
|
+
/**
|
|
114
|
+
* Create a record wrapper.
|
|
115
|
+
* @param record - The underlying record, or null for create operations
|
|
116
|
+
* @param provider - The API or DB provider
|
|
117
|
+
* @param preGeneratedId - Optional pre-generated ID for new records (auto-generated if not provided)
|
|
118
|
+
*/
|
|
119
|
+
constructor(record, provider, preGeneratedId) {
|
|
120
|
+
this._pendingLinks = [];
|
|
121
|
+
this._record = record;
|
|
122
|
+
this._provider = provider;
|
|
123
|
+
this._preGeneratedId = preGeneratedId !== null && preGeneratedId !== void 0 ? preGeneratedId : (0, uuid_1.v4)();
|
|
124
|
+
}
|
|
125
|
+
// ============================================
|
|
126
|
+
// CORE PROPERTIES
|
|
127
|
+
// ============================================
|
|
128
|
+
/** Returns true if this is a new (unsaved) record */
|
|
129
|
+
get isNew() { var _a; return !((_a = this._record) === null || _a === void 0 ? void 0 : _a.id); }
|
|
130
|
+
/** Record ID - always available (pre-generated for new records) */
|
|
131
|
+
get id() { var _a, _b; return (_b = (_a = this._record) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : this._preGeneratedId; }
|
|
132
|
+
get entity() { var _a, _b; return (_b = (_a = this._record) === null || _a === void 0 ? void 0 : _a.entity) !== null && _b !== void 0 ? _b : 'OrderModule:Recontract'; }
|
|
133
|
+
get type() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.type; }
|
|
134
|
+
/** Record properties - empty object for new (unsaved) records */
|
|
135
|
+
get properties() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.properties) || {}; }
|
|
136
|
+
get title() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.title; }
|
|
137
|
+
get recordNumber() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.recordNumber; }
|
|
138
|
+
get stage() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.stage; }
|
|
139
|
+
get createdAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.createdAt; }
|
|
140
|
+
get updatedAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.updatedAt; }
|
|
141
|
+
get externalId() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.externalId; }
|
|
142
|
+
get externalAppId() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.externalAppId; }
|
|
143
|
+
get groups() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.groups) || []; }
|
|
144
|
+
/** Access the underlying OdinRecord (null for new records) */
|
|
145
|
+
get record() { return this._record; }
|
|
146
|
+
// ============================================
|
|
147
|
+
// TYPE GUARDS (with TypeScript type predicates)
|
|
148
|
+
// ============================================
|
|
149
|
+
/**
|
|
150
|
+
* Type guard: check if this record is of type DEFAULT
|
|
151
|
+
*
|
|
152
|
+
* When this returns true, TypeScript automatically narrows the type,
|
|
153
|
+
* giving you access to DEFAULT-specific properties.
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* ```typescript
|
|
157
|
+
* if (record.isDefault()) {
|
|
158
|
+
* // TypeScript knows record.properties is RecontractProperties
|
|
159
|
+
* console.log(record.properties.SomeTypeSpecificField);
|
|
160
|
+
* }
|
|
161
|
+
* ```
|
|
162
|
+
* @remarks This is the default record type
|
|
163
|
+
*/
|
|
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: Recontract__Order
|
|
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: 'Recontract__Order' });
|
|
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:Recontract',
|
|
187
|
+
targetEntity: 'OrderModule:Order',
|
|
188
|
+
targetModuleName: 'OrderModule',
|
|
189
|
+
targetEntityName: 'Order',
|
|
190
|
+
labels: ['Recontract__Order'],
|
|
191
|
+
}, OrderRecord_1.OrderRecord);
|
|
192
|
+
}
|
|
193
|
+
return this._orders;
|
|
194
|
+
}
|
|
195
|
+
// ============================================
|
|
196
|
+
// LINK MANAGEMENT
|
|
197
|
+
// ============================================
|
|
198
|
+
/**
|
|
199
|
+
* Queue a link to be created with the next action.
|
|
200
|
+
* Works for both create and update actions.
|
|
201
|
+
* @returns this (for chaining)
|
|
202
|
+
*/
|
|
203
|
+
link(target) {
|
|
204
|
+
this._pendingLinks.push(new core_1.OdinRecordLinkDto({ id: target.id, entity: target.entity }));
|
|
205
|
+
return this;
|
|
206
|
+
}
|
|
207
|
+
/** Get the currently queued links */
|
|
208
|
+
get pendingLinks() {
|
|
209
|
+
return [...this._pendingLinks];
|
|
210
|
+
}
|
|
211
|
+
/** Clear pending links without executing an action */
|
|
212
|
+
clearPendingLinks() {
|
|
213
|
+
this._pendingLinks = [];
|
|
214
|
+
return this;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Immediately unlink a record (API call).
|
|
218
|
+
* Unlike link(), this executes immediately.
|
|
219
|
+
* @throws Error if called on a new (unsaved) record
|
|
220
|
+
*/
|
|
221
|
+
unlink(target) {
|
|
222
|
+
var _a;
|
|
223
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
224
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
225
|
+
throw new Error('Cannot unlink from a new (unsaved) record');
|
|
226
|
+
const targetId = typeof target === 'string' ? target : target.id;
|
|
227
|
+
yield this._provider._deleteLinks('OrderModule', 'Recontract', this._record.id, targetId);
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
// ============================================
|
|
231
|
+
// CREATE ACTIONS (no existing record required)
|
|
232
|
+
// ============================================
|
|
233
|
+
/**
|
|
234
|
+
* CreateRecontract
|
|
235
|
+
*
|
|
236
|
+
* Creates a new Recontract record with the specified properties.
|
|
237
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
238
|
+
*
|
|
239
|
+
* @remarks Record type: DEFAULT
|
|
240
|
+
*
|
|
241
|
+
* @param properties - The properties for the new record
|
|
242
|
+
* @param options - Optional settings
|
|
243
|
+
* @param options.journeyId - Associate with a journey
|
|
244
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
245
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
246
|
+
*
|
|
247
|
+
* @example
|
|
248
|
+
* ```typescript
|
|
249
|
+
* // Create with properties
|
|
250
|
+
* const record = odinClient.recontracts.new();
|
|
251
|
+
* await record.createRecontract({ ... }).execute();
|
|
252
|
+
*
|
|
253
|
+
* // Dry run (for debugging)
|
|
254
|
+
* const payload = record.createRecontract({ ... }).dryRun();
|
|
255
|
+
* ```
|
|
256
|
+
*/
|
|
257
|
+
createRecontract(properties, options) {
|
|
258
|
+
const payload = {
|
|
259
|
+
entity: 'OrderModule:Recontract',
|
|
260
|
+
type: 'DEFAULT',
|
|
261
|
+
actionName: 'CreateRecontract',
|
|
262
|
+
properties: properties || {},
|
|
263
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
264
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
265
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
266
|
+
};
|
|
267
|
+
return new ActionBuilder(this._provider, 'OrderModule', 'Recontract', payload, () => { this._pendingLinks = []; });
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
exports.RecontractRecord = RecontractRecord;
|
|
271
|
+
// ============================================
|
|
272
|
+
// TYPED LINK ACCESSORS
|
|
273
|
+
// ============================================
|
|
274
|
+
/** Valid labels for Order associations */
|
|
275
|
+
RecontractRecord.ordersLabels = ['Recontract__Order'];
|
|
276
|
+
/** Type guard to check if an object is a RecontractRecord */
|
|
277
|
+
function isRecontractRecord(obj) {
|
|
278
|
+
return obj instanceof RecontractRecord;
|
|
279
|
+
}
|
|
280
|
+
exports.isRecontractRecord = isRecontractRecord;
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export { OrderRecord, isOrderRecord } from './OrderRecord';
|
|
13
13
|
export { WorkOrderRecord, isWorkOrderRecord } from './WorkOrderRecord';
|
|
14
|
+
export { CaseRecord, isCaseRecord } from './CaseRecord';
|
|
14
15
|
export { AddressRecord, isAddressRecord } from './AddressRecord';
|
|
15
16
|
export { AddressInteractionRecord, isAddressInteractionRecord } from './AddressInteractionRecord';
|
|
16
|
-
export { CaseRecord, isCaseRecord } from './CaseRecord';
|
|
17
17
|
export { ContractBuyOutRecord, isContractBuyOutRecord } from './ContractBuyOutRecord';
|
|
18
18
|
export { DataIssueRecord, isDataIssueRecord } from './DataIssueRecord';
|
|
19
19
|
export { NoteRecord, isNoteRecord } from './NoteRecord';
|
|
@@ -57,6 +57,7 @@ export { ConversationSummaryFeedbackRecord, isConversationSummaryFeedbackRecord
|
|
|
57
57
|
export { CustomerDeviceRecord, isCustomerDeviceRecord } from './CustomerDeviceRecord';
|
|
58
58
|
export { CustomerDeviceConfigurationRecord, isCustomerDeviceConfigurationRecord } from './CustomerDeviceConfigurationRecord';
|
|
59
59
|
export { CustomerDeviceOntRecord, isCustomerDeviceOntRecord } from './CustomerDeviceOntRecord';
|
|
60
|
+
export { CustomerDeviceRouterRecord, isCustomerDeviceRouterRecord } from './CustomerDeviceRouterRecord';
|
|
60
61
|
export { EmailSenderRecord, isEmailSenderRecord } from './EmailSenderRecord';
|
|
61
62
|
export { EmailTemplateRecord, isEmailTemplateRecord } from './EmailTemplateRecord';
|
|
62
63
|
export { ExchangeRecord, isExchangeRecord } from './ExchangeRecord';
|
|
@@ -92,6 +93,7 @@ export { PgAccountValidationRecord, isPgAccountValidationRecord } from './PgAcco
|
|
|
92
93
|
export { PgWebhookAttemptRecord, isPgWebhookAttemptRecord } from './PgWebhookAttemptRecord';
|
|
93
94
|
export { PgWebhookRecord, isPgWebhookRecord } from './PgWebhookRecord';
|
|
94
95
|
export { PushNotificationRecord, isPushNotificationRecord } from './PushNotificationRecord';
|
|
96
|
+
export { RecontractRecord, isRecontractRecord } from './RecontractRecord';
|
|
95
97
|
export { OrderItemRecord, isOrderItemRecord } from './OrderItemRecord';
|
|
96
98
|
export { VoiceConfigurationRecord, isVoiceConfigurationRecord } from './VoiceConfigurationRecord';
|
|
97
99
|
export { RegionRecord, isRegionRecord } from './RegionRecord';
|
|
@@ -110,7 +112,6 @@ export { YfWifiSurveyRecord, isYfWifiSurveyRecord } from './YfWifiSurveyRecord';
|
|
|
110
112
|
export { OutboundDialCampaignCaseRecord, isOutboundDialCampaignCaseRecord } from './OutboundDialCampaignCaseRecord';
|
|
111
113
|
export { CreditNoteRecord, isCreditNoteRecord } from './CreditNoteRecord';
|
|
112
114
|
export { CustomerDeviceAtaRecord, isCustomerDeviceAtaRecord } from './CustomerDeviceAtaRecord';
|
|
113
|
-
export { CustomerDeviceRouterRecord, isCustomerDeviceRouterRecord } from './CustomerDeviceRouterRecord';
|
|
114
115
|
export { DiscountRecord, isDiscountRecord } from './DiscountRecord';
|
|
115
116
|
export { InvoiceRecord, isInvoiceRecord } from './InvoiceRecord';
|
|
116
117
|
export { KnowledgeArticleRecord, isKnowledgeArticleRecord } from './KnowledgeArticleRecord';
|
package/dist/records-v2/index.js
CHANGED
|
@@ -11,26 +11,26 @@
|
|
|
11
11
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.isRemediationOutcomeFormRecord = exports.RemediationOutcomeFormRecord = exports.isOhExternalAuditRecord = exports.OhExternalAuditRecord = exports.isUgExternalAuditRecord = exports.UgExternalAuditRecord = exports.isPaymentMethodRefundRecord = exports.PaymentMethodRefundRecord = exports.isConversationRecord = exports.ConversationRecord = exports.isOntReplacementApprovalRecord = exports.OntReplacementApprovalRecord = exports.isAccountRecord = exports.AccountRecord = exports.isPermissionToFailRecord = exports.PermissionToFailRecord = exports.isTransactionRecord = exports.TransactionRecord = exports.isPaymentRecord = exports.PaymentRecord = exports.isPICRequestRecord = exports.PICRequestRecord = exports.isChangeReasonRecord = exports.ChangeReasonRecord = exports.isChurnRequestRecord = exports.ChurnRequestRecord = exports.isBillingRequestRecord = exports.BillingRequestRecord = exports.isBillingAdjustmentRecord = exports.BillingAdjustmentRecord = exports.isServiceAppointmentConfigRecord = exports.ServiceAppointmentConfigRecord = exports.isCrmDatasetRecord = exports.CrmDatasetRecord = exports.isNoteRecord = exports.NoteRecord = exports.isDataIssueRecord = exports.DataIssueRecord = exports.isContractBuyOutRecord = exports.ContractBuyOutRecord = exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.isCustomerPhonePortingRecord = exports.CustomerPhonePortingRecord = exports.isVisitRecord = exports.VisitRecord = exports.isSmsTemplateRecord = exports.SmsTemplateRecord = exports.isServiceRecord = exports.ServiceRecord = exports.isNotificationTemplateRecord = exports.NotificationTemplateRecord = exports.isScheduleSlotRecord = exports.ScheduleSlotRecord = exports.isPriceBookRecord = exports.PriceBookRecord = exports.isOverlayRealA55Record = exports.OverlayRealA55Record = exports.isOfferRecord = exports.OfferRecord = exports.isServiceAppointmentRecord = exports.ServiceAppointmentRecord = exports.isOutageRecord = exports.OutageRecord = exports.isSiteSpecificRiskAssessmentOutcomeFormRecord = exports.SiteSpecificRiskAssessmentOutcomeFormRecord = exports.isRemediationRequiredReasonRecord = exports.RemediationRequiredReasonRecord = exports.isKnowledgeArticleRecord = exports.KnowledgeArticleRecord = exports.isInvoiceRecord = exports.InvoiceRecord = exports.isDiscountRecord = exports.DiscountRecord = exports.
|
|
14
|
+
exports.isRemediationOutcomeFormRecord = exports.RemediationOutcomeFormRecord = exports.isOhExternalAuditRecord = exports.OhExternalAuditRecord = exports.isUgExternalAuditRecord = exports.UgExternalAuditRecord = exports.isPaymentMethodRefundRecord = exports.PaymentMethodRefundRecord = exports.isConversationRecord = exports.ConversationRecord = exports.isOntReplacementApprovalRecord = exports.OntReplacementApprovalRecord = exports.isAccountRecord = exports.AccountRecord = exports.isPermissionToFailRecord = exports.PermissionToFailRecord = exports.isTransactionRecord = exports.TransactionRecord = exports.isPaymentRecord = exports.PaymentRecord = exports.isPICRequestRecord = exports.PICRequestRecord = exports.isChangeReasonRecord = exports.ChangeReasonRecord = exports.isChurnRequestRecord = exports.ChurnRequestRecord = exports.isBillingRequestRecord = exports.BillingRequestRecord = exports.isBillingAdjustmentRecord = exports.BillingAdjustmentRecord = exports.isServiceAppointmentConfigRecord = exports.ServiceAppointmentConfigRecord = exports.isCrmDatasetRecord = exports.CrmDatasetRecord = exports.isNoteRecord = exports.NoteRecord = exports.isDataIssueRecord = exports.DataIssueRecord = exports.isContractBuyOutRecord = exports.ContractBuyOutRecord = exports.isAddressInteractionRecord = exports.AddressInteractionRecord = exports.isAddressRecord = exports.AddressRecord = exports.isCaseRecord = exports.CaseRecord = exports.isWorkOrderRecord = exports.WorkOrderRecord = exports.isOrderRecord = exports.OrderRecord = void 0;
|
|
15
|
+
exports.isEmailSenderRecord = exports.EmailSenderRecord = exports.isCustomerDeviceRouterRecord = exports.CustomerDeviceRouterRecord = exports.isCustomerDeviceOntRecord = exports.CustomerDeviceOntRecord = exports.isCustomerDeviceConfigurationRecord = exports.CustomerDeviceConfigurationRecord = exports.isCustomerDeviceRecord = exports.CustomerDeviceRecord = exports.isConversationSummaryFeedbackRecord = exports.ConversationSummaryFeedbackRecord = exports.isContactIdentityRecord = exports.ContactIdentityRecord = exports.isConfigRecord = exports.ConfigRecord = exports.isMessageRecord = exports.MessageRecord = exports.isOrderKciRecord = exports.OrderKciRecord = exports.isEmailRecord = exports.EmailRecord = exports.isRewardRecord = exports.RewardRecord = exports.isContactRecord = exports.ContactRecord = exports.isCallRecord = exports.CallRecord = exports.isTwilioCallEventRecord = exports.TwilioCallEventRecord = exports.isProductRecord = exports.ProductRecord = exports.isBrskEntityMigrationErrorRecord = exports.BrskEntityMigrationErrorRecord = exports.isBngProvisionRecord = exports.BngProvisionRecord = exports.isPgFileAllocationRecord = exports.PgFileAllocationRecord = exports.isAppointmentRecord = exports.AppointmentRecord = exports.isCallLegRecord = exports.CallLegRecord = exports.isAffiliateCodeRecord = exports.AffiliateCodeRecord = exports.isActivityLogRecord = exports.ActivityLogRecord = exports.isAccountCreditRecord = exports.AccountCreditRecord = exports.isYfFieldServiceVisitRecord = exports.YfFieldServiceVisitRecord = void 0;
|
|
16
|
+
exports.isPgPaymentMethodRecord = exports.PgPaymentMethodRecord = exports.isPgLogRecord = exports.PgLogRecord = exports.isPgDisputeRecord = exports.PgDisputeRecord = exports.isPgContactRecord = exports.PgContactRecord = exports.isPaymentMethodRecord = exports.PaymentMethodRecord = exports.isSmsMessageRecord = exports.SmsMessageRecord = exports.isOutboundDialSessionRecord = exports.OutboundDialSessionRecord = exports.isOutboundDialCampaignRecord = exports.OutboundDialCampaignRecord = exports.isReferralRecord = exports.ReferralRecord = exports.isOrderCheckRecord = exports.OrderCheckRecord = exports.isCampaignRecord = exports.CampaignRecord = exports.isOneTouchSwitchRecord = exports.OneTouchSwitchRecord = exports.isOfferTemplateRecord = exports.OfferTemplateRecord = exports.isReturnsRecord = exports.ReturnsRecord = exports.isNetworkDeviceRecord = exports.NetworkDeviceRecord = exports.isModifyServiceRequestRecord = exports.ModifyServiceRequestRecord = exports.isLeadRecord = exports.LeadRecord = exports.isInvoiceItemRecord = exports.InvoiceItemRecord = exports.isImpersonationTrackerRecord = exports.ImpersonationTrackerRecord = exports.isActivityRecord = exports.ActivityRecord = exports.isFileRecord = exports.FileRecord = exports.isFieldServiceProductRecord = exports.FieldServiceProductRecord = exports.isFieldServiceDispatchedProductRecord = exports.FieldServiceDispatchedProductRecord = exports.isExchangeRecord = exports.ExchangeRecord = exports.isEmailTemplateRecord = exports.EmailTemplateRecord = void 0;
|
|
17
|
+
exports.isYfWifiSurveyRecord = exports.YfWifiSurveyRecord = exports.isYfAgentLocationRecord = exports.YfAgentLocationRecord = exports.isWorkOrderStatusUpdateRecord = exports.WorkOrderStatusUpdateRecord = exports.isWayleaveAuditRecord = exports.WayleaveAuditRecord = exports.isUserRecord = exports.UserRecord = exports.isTwilioWorkerRecord = exports.TwilioWorkerRecord = exports.isTwilioUserUpdateRecord = exports.TwilioUserUpdateRecord = exports.isTwilioTaskQueueRecord = exports.TwilioTaskQueueRecord = exports.isTwilioActivityRecord = exports.TwilioActivityRecord = exports.isTimeSlotRecord = exports.TimeSlotRecord = exports.isTeamRecord = exports.TeamRecord = exports.isSalesTerritoryRecord = exports.SalesTerritoryRecord = exports.isRegionRecord = exports.RegionRecord = exports.isVoiceConfigurationRecord = exports.VoiceConfigurationRecord = exports.isOrderItemRecord = exports.OrderItemRecord = exports.isRecontractRecord = exports.RecontractRecord = exports.isPushNotificationRecord = exports.PushNotificationRecord = exports.isPgWebhookRecord = exports.PgWebhookRecord = exports.isPgWebhookAttemptRecord = exports.PgWebhookAttemptRecord = exports.isPgAccountValidationRecord = exports.PgAccountValidationRecord = exports.isPgTransactionRecord = exports.PgTransactionRecord = exports.isPgSortCodeSubstitutionRecord = exports.PgSortCodeSubstitutionRecord = exports.isPgVocalinkRecord = exports.PgVocalinkRecord = exports.isPgDirectDebitFileRecord = exports.PgDirectDebitFileRecord = exports.isPgReportEventRecord = exports.PgReportEventRecord = void 0;
|
|
18
|
+
exports.isCustomerPhonePortingRecord = exports.CustomerPhonePortingRecord = exports.isVisitRecord = exports.VisitRecord = exports.isSmsTemplateRecord = exports.SmsTemplateRecord = exports.isServiceRecord = exports.ServiceRecord = exports.isNotificationTemplateRecord = exports.NotificationTemplateRecord = exports.isScheduleSlotRecord = exports.ScheduleSlotRecord = exports.isPriceBookRecord = exports.PriceBookRecord = exports.isOverlayRealA55Record = exports.OverlayRealA55Record = exports.isOfferRecord = exports.OfferRecord = exports.isServiceAppointmentRecord = exports.ServiceAppointmentRecord = exports.isOutageRecord = exports.OutageRecord = exports.isSiteSpecificRiskAssessmentOutcomeFormRecord = exports.SiteSpecificRiskAssessmentOutcomeFormRecord = exports.isRemediationRequiredReasonRecord = exports.RemediationRequiredReasonRecord = exports.isKnowledgeArticleRecord = exports.KnowledgeArticleRecord = exports.isInvoiceRecord = exports.InvoiceRecord = exports.isDiscountRecord = exports.DiscountRecord = exports.isCustomerDeviceAtaRecord = exports.CustomerDeviceAtaRecord = exports.isCreditNoteRecord = exports.CreditNoteRecord = exports.isOutboundDialCampaignCaseRecord = exports.OutboundDialCampaignCaseRecord = void 0;
|
|
19
19
|
var OrderRecord_1 = require("./OrderRecord");
|
|
20
20
|
Object.defineProperty(exports, "OrderRecord", { enumerable: true, get: function () { return OrderRecord_1.OrderRecord; } });
|
|
21
21
|
Object.defineProperty(exports, "isOrderRecord", { enumerable: true, get: function () { return OrderRecord_1.isOrderRecord; } });
|
|
22
22
|
var WorkOrderRecord_1 = require("./WorkOrderRecord");
|
|
23
23
|
Object.defineProperty(exports, "WorkOrderRecord", { enumerable: true, get: function () { return WorkOrderRecord_1.WorkOrderRecord; } });
|
|
24
24
|
Object.defineProperty(exports, "isWorkOrderRecord", { enumerable: true, get: function () { return WorkOrderRecord_1.isWorkOrderRecord; } });
|
|
25
|
+
var CaseRecord_1 = require("./CaseRecord");
|
|
26
|
+
Object.defineProperty(exports, "CaseRecord", { enumerable: true, get: function () { return CaseRecord_1.CaseRecord; } });
|
|
27
|
+
Object.defineProperty(exports, "isCaseRecord", { enumerable: true, get: function () { return CaseRecord_1.isCaseRecord; } });
|
|
25
28
|
var AddressRecord_1 = require("./AddressRecord");
|
|
26
29
|
Object.defineProperty(exports, "AddressRecord", { enumerable: true, get: function () { return AddressRecord_1.AddressRecord; } });
|
|
27
30
|
Object.defineProperty(exports, "isAddressRecord", { enumerable: true, get: function () { return AddressRecord_1.isAddressRecord; } });
|
|
28
31
|
var AddressInteractionRecord_1 = require("./AddressInteractionRecord");
|
|
29
32
|
Object.defineProperty(exports, "AddressInteractionRecord", { enumerable: true, get: function () { return AddressInteractionRecord_1.AddressInteractionRecord; } });
|
|
30
33
|
Object.defineProperty(exports, "isAddressInteractionRecord", { enumerable: true, get: function () { return AddressInteractionRecord_1.isAddressInteractionRecord; } });
|
|
31
|
-
var CaseRecord_1 = require("./CaseRecord");
|
|
32
|
-
Object.defineProperty(exports, "CaseRecord", { enumerable: true, get: function () { return CaseRecord_1.CaseRecord; } });
|
|
33
|
-
Object.defineProperty(exports, "isCaseRecord", { enumerable: true, get: function () { return CaseRecord_1.isCaseRecord; } });
|
|
34
34
|
var ContractBuyOutRecord_1 = require("./ContractBuyOutRecord");
|
|
35
35
|
Object.defineProperty(exports, "ContractBuyOutRecord", { enumerable: true, get: function () { return ContractBuyOutRecord_1.ContractBuyOutRecord; } });
|
|
36
36
|
Object.defineProperty(exports, "isContractBuyOutRecord", { enumerable: true, get: function () { return ContractBuyOutRecord_1.isContractBuyOutRecord; } });
|
|
@@ -160,6 +160,9 @@ Object.defineProperty(exports, "isCustomerDeviceConfigurationRecord", { enumerab
|
|
|
160
160
|
var CustomerDeviceOntRecord_1 = require("./CustomerDeviceOntRecord");
|
|
161
161
|
Object.defineProperty(exports, "CustomerDeviceOntRecord", { enumerable: true, get: function () { return CustomerDeviceOntRecord_1.CustomerDeviceOntRecord; } });
|
|
162
162
|
Object.defineProperty(exports, "isCustomerDeviceOntRecord", { enumerable: true, get: function () { return CustomerDeviceOntRecord_1.isCustomerDeviceOntRecord; } });
|
|
163
|
+
var CustomerDeviceRouterRecord_1 = require("./CustomerDeviceRouterRecord");
|
|
164
|
+
Object.defineProperty(exports, "CustomerDeviceRouterRecord", { enumerable: true, get: function () { return CustomerDeviceRouterRecord_1.CustomerDeviceRouterRecord; } });
|
|
165
|
+
Object.defineProperty(exports, "isCustomerDeviceRouterRecord", { enumerable: true, get: function () { return CustomerDeviceRouterRecord_1.isCustomerDeviceRouterRecord; } });
|
|
163
166
|
var EmailSenderRecord_1 = require("./EmailSenderRecord");
|
|
164
167
|
Object.defineProperty(exports, "EmailSenderRecord", { enumerable: true, get: function () { return EmailSenderRecord_1.EmailSenderRecord; } });
|
|
165
168
|
Object.defineProperty(exports, "isEmailSenderRecord", { enumerable: true, get: function () { return EmailSenderRecord_1.isEmailSenderRecord; } });
|
|
@@ -265,6 +268,9 @@ Object.defineProperty(exports, "isPgWebhookRecord", { enumerable: true, get: fun
|
|
|
265
268
|
var PushNotificationRecord_1 = require("./PushNotificationRecord");
|
|
266
269
|
Object.defineProperty(exports, "PushNotificationRecord", { enumerable: true, get: function () { return PushNotificationRecord_1.PushNotificationRecord; } });
|
|
267
270
|
Object.defineProperty(exports, "isPushNotificationRecord", { enumerable: true, get: function () { return PushNotificationRecord_1.isPushNotificationRecord; } });
|
|
271
|
+
var RecontractRecord_1 = require("./RecontractRecord");
|
|
272
|
+
Object.defineProperty(exports, "RecontractRecord", { enumerable: true, get: function () { return RecontractRecord_1.RecontractRecord; } });
|
|
273
|
+
Object.defineProperty(exports, "isRecontractRecord", { enumerable: true, get: function () { return RecontractRecord_1.isRecontractRecord; } });
|
|
268
274
|
var OrderItemRecord_1 = require("./OrderItemRecord");
|
|
269
275
|
Object.defineProperty(exports, "OrderItemRecord", { enumerable: true, get: function () { return OrderItemRecord_1.OrderItemRecord; } });
|
|
270
276
|
Object.defineProperty(exports, "isOrderItemRecord", { enumerable: true, get: function () { return OrderItemRecord_1.isOrderItemRecord; } });
|
|
@@ -319,9 +325,6 @@ Object.defineProperty(exports, "isCreditNoteRecord", { enumerable: true, get: fu
|
|
|
319
325
|
var CustomerDeviceAtaRecord_1 = require("./CustomerDeviceAtaRecord");
|
|
320
326
|
Object.defineProperty(exports, "CustomerDeviceAtaRecord", { enumerable: true, get: function () { return CustomerDeviceAtaRecord_1.CustomerDeviceAtaRecord; } });
|
|
321
327
|
Object.defineProperty(exports, "isCustomerDeviceAtaRecord", { enumerable: true, get: function () { return CustomerDeviceAtaRecord_1.isCustomerDeviceAtaRecord; } });
|
|
322
|
-
var CustomerDeviceRouterRecord_1 = require("./CustomerDeviceRouterRecord");
|
|
323
|
-
Object.defineProperty(exports, "CustomerDeviceRouterRecord", { enumerable: true, get: function () { return CustomerDeviceRouterRecord_1.CustomerDeviceRouterRecord; } });
|
|
324
|
-
Object.defineProperty(exports, "isCustomerDeviceRouterRecord", { enumerable: true, get: function () { return CustomerDeviceRouterRecord_1.isCustomerDeviceRouterRecord; } });
|
|
325
328
|
var DiscountRecord_1 = require("./DiscountRecord");
|
|
326
329
|
Object.defineProperty(exports, "DiscountRecord", { enumerable: true, get: function () { return DiscountRecord_1.DiscountRecord; } });
|
|
327
330
|
Object.defineProperty(exports, "isDiscountRecord", { enumerable: true, get: function () { return DiscountRecord_1.isDiscountRecord; } });
|