@d19n/youfibre-odin-sdk 2.0.344 → 2.0.346
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 +17 -2
- package/dist/EntityRegistry.d.ts +4 -0
- package/dist/EntityRegistry.js +4 -0
- package/dist/OdinApiClient.d.ts +8 -0
- package/dist/OdinApiClient.js +16 -0
- package/dist/OdinDbClient.d.ts +8 -0
- package/dist/OdinDbClient.js +16 -0
- package/dist/accessors-v2/EquipmentReturnAccessor.d.ts +112 -0
- package/dist/accessors-v2/EquipmentReturnAccessor.js +191 -0
- package/dist/accessors-v2/EquipmentReturnItemAccessor.d.ts +112 -0
- package/dist/accessors-v2/EquipmentReturnItemAccessor.js +191 -0
- package/dist/accessors-v2/index.d.ts +2 -0
- package/dist/accessors-v2/index.js +7 -3
- package/dist/actions-v2/CreateEquipmentReturnDto.d.ts +117 -0
- package/dist/actions-v2/CreateEquipmentReturnDto.js +59 -0
- package/dist/actions-v2/CreateEquipmentReturnItemDto.d.ts +152 -0
- package/dist/actions-v2/CreateEquipmentReturnItemDto.js +59 -0
- package/dist/actions-v2/UpdateEquipmentReturnCompletionDto.d.ts +92 -0
- package/dist/actions-v2/UpdateEquipmentReturnCompletionDto.js +61 -0
- package/dist/api-sdk-v2/AccountApi.d.ts +4 -0
- package/dist/api-sdk-v2/AccountApi.js +12 -0
- package/dist/api-sdk-v2/CaseApi.d.ts +2 -0
- package/dist/api-sdk-v2/CaseApi.js +6 -0
- package/dist/api-sdk-v2/ContactApi.d.ts +2 -0
- package/dist/api-sdk-v2/ContactApi.js +6 -0
- package/dist/api-sdk-v2/CustomerDeviceApi.d.ts +2 -0
- package/dist/api-sdk-v2/CustomerDeviceApi.js +6 -0
- package/dist/api-sdk-v2/CustomerDeviceRouterApi.d.ts +2 -0
- package/dist/api-sdk-v2/CustomerDeviceRouterApi.js +6 -0
- package/dist/api-sdk-v2/EquipmentReturnApi.d.ts +5 -0
- package/dist/api-sdk-v2/EquipmentReturnApi.js +13 -3
- package/dist/api-sdk-v2/EquipmentReturnItemApi.d.ts +9 -0
- package/dist/api-sdk-v2/EquipmentReturnItemApi.js +25 -3
- package/dist/api-sdk-v2/FieldServiceProductApi.d.ts +2 -0
- package/dist/api-sdk-v2/FieldServiceProductApi.js +6 -0
- package/dist/api-sdk-v2/FrustrationEventApi.d.ts +50 -0
- package/dist/api-sdk-v2/FrustrationEventApi.js +161 -0
- package/dist/api-sdk-v2/FrustrationScoreApi.d.ts +54 -0
- package/dist/api-sdk-v2/FrustrationScoreApi.js +173 -0
- package/dist/api-sdk-v2/WorkOrderApi.d.ts +2 -0
- package/dist/api-sdk-v2/WorkOrderApi.js +6 -0
- package/dist/db-accessors-v2/EquipmentReturnDbAccessor.d.ts +180 -0
- package/dist/db-accessors-v2/EquipmentReturnDbAccessor.js +265 -0
- package/dist/db-accessors-v2/EquipmentReturnItemDbAccessor.d.ts +180 -0
- package/dist/db-accessors-v2/EquipmentReturnItemDbAccessor.js +265 -0
- package/dist/db-accessors-v2/index.d.ts +2 -0
- package/dist/db-accessors-v2/index.js +7 -3
- package/dist/db-sdk-v2/AccountDb.d.ts +4 -0
- package/dist/db-sdk-v2/AccountDb.js +12 -0
- package/dist/db-sdk-v2/CaseDb.d.ts +2 -0
- package/dist/db-sdk-v2/CaseDb.js +6 -0
- package/dist/db-sdk-v2/ContactDb.d.ts +2 -0
- package/dist/db-sdk-v2/ContactDb.js +6 -0
- package/dist/db-sdk-v2/CustomerDeviceDb.d.ts +2 -0
- package/dist/db-sdk-v2/CustomerDeviceDb.js +6 -0
- package/dist/db-sdk-v2/CustomerDeviceRouterDb.d.ts +2 -0
- package/dist/db-sdk-v2/CustomerDeviceRouterDb.js +6 -0
- package/dist/db-sdk-v2/EquipmentReturnDb.d.ts +5 -0
- package/dist/db-sdk-v2/EquipmentReturnDb.js +13 -3
- package/dist/db-sdk-v2/EquipmentReturnItemDb.d.ts +9 -0
- package/dist/db-sdk-v2/EquipmentReturnItemDb.js +25 -3
- package/dist/db-sdk-v2/FieldServiceProductDb.d.ts +2 -0
- package/dist/db-sdk-v2/FieldServiceProductDb.js +6 -0
- package/dist/db-sdk-v2/FrustrationEventDb.d.ts +122 -0
- package/dist/db-sdk-v2/FrustrationEventDb.js +210 -0
- package/dist/db-sdk-v2/FrustrationScoreDb.d.ts +126 -0
- package/dist/db-sdk-v2/FrustrationScoreDb.js +222 -0
- package/dist/db-sdk-v2/WorkOrderDb.d.ts +2 -0
- package/dist/db-sdk-v2/WorkOrderDb.js +6 -0
- package/dist/entities-v2/Account.d.ts +6 -0
- package/dist/entities-v2/Case.d.ts +58 -4
- package/dist/entities-v2/Case.js +31 -5
- package/dist/entities-v2/Contact.d.ts +3 -0
- package/dist/entities-v2/Conversation.d.ts +6 -0
- package/dist/entities-v2/Conversation.js +6 -0
- package/dist/entities-v2/CustomerDevice.d.ts +3 -0
- package/dist/entities-v2/CustomerDeviceRouter.d.ts +3 -0
- package/dist/entities-v2/EquipmentReturn.d.ts +145 -1
- package/dist/entities-v2/EquipmentReturn.js +79 -1
- package/dist/entities-v2/EquipmentReturnItem.d.ts +183 -1
- package/dist/entities-v2/EquipmentReturnItem.js +99 -1
- package/dist/entities-v2/FieldServiceProduct.d.ts +3 -0
- package/dist/entities-v2/FrustrationEvent.d.ts +222 -0
- package/dist/entities-v2/FrustrationEvent.js +160 -0
- package/dist/entities-v2/FrustrationScore.d.ts +171 -0
- package/dist/entities-v2/FrustrationScore.js +123 -0
- package/dist/entities-v2/WorkOrder.d.ts +3 -0
- package/dist/records-v2/CustomerDeviceRecord.d.ts +20 -0
- package/dist/records-v2/CustomerDeviceRecord.js +33 -0
- package/dist/records-v2/CustomerDeviceRouterRecord.d.ts +20 -0
- package/dist/records-v2/CustomerDeviceRouterRecord.js +33 -0
- package/dist/records-v2/EquipmentReturnItemRecord.d.ts +267 -0
- package/dist/records-v2/EquipmentReturnItemRecord.js +381 -0
- package/dist/records-v2/EquipmentReturnRecord.d.ts +254 -0
- package/dist/records-v2/EquipmentReturnRecord.js +347 -0
- package/dist/records-v2/FieldServiceProductRecord.d.ts +20 -0
- package/dist/records-v2/FieldServiceProductRecord.js +33 -0
- package/dist/records-v2/FileRecord.d.ts +12 -813
- package/dist/records-v2/FileRecord.js +31 -1352
- package/dist/records-v2/WorkOrderRecord.d.ts +20 -0
- package/dist/records-v2/WorkOrderRecord.js +33 -0
- package/dist/records-v2/index.d.ts +2 -0
- package/dist/records-v2/index.js +10 -4
- package/package.json +1 -1
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* EquipmentReturnItem Accessor
|
|
4
|
+
*
|
|
5
|
+
* Provides typed access to EquipmentReturnItem records via API.
|
|
6
|
+
* Returns wrapped records with typed action methods.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* // Get existing record
|
|
11
|
+
* const record = await accessor.get(id);
|
|
12
|
+
* await record.updateEquipmentReturnItem({ ... });
|
|
13
|
+
*
|
|
14
|
+
* // Create new record
|
|
15
|
+
* const newRecord = accessor.new();
|
|
16
|
+
* await newRecord.createEquipmentReturnItem({ ... });
|
|
17
|
+
* ```
|
|
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
|
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
31
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
32
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
33
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
34
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
35
|
+
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
36
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
37
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
38
|
+
function fulfill(value) { resume("next", value); }
|
|
39
|
+
function reject(value) { resume("throw", value); }
|
|
40
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.EquipmentReturnItemAccessor = void 0;
|
|
44
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
45
|
+
const query_builder_1 = require("@d19n/odin-sdk-generator/dist/query-builder");
|
|
46
|
+
const EquipmentReturnItemRecord_1 = require("../records-v2/EquipmentReturnItemRecord");
|
|
47
|
+
class EquipmentReturnItemAccessor {
|
|
48
|
+
constructor(providerOrAuth, host) {
|
|
49
|
+
this._moduleName = 'FieldServiceModule';
|
|
50
|
+
this._entityName = 'EquipmentReturnItem';
|
|
51
|
+
if (providerOrAuth instanceof api_provider_1.ApiProvider) {
|
|
52
|
+
this._provider = providerOrAuth;
|
|
53
|
+
}
|
|
54
|
+
else if (typeof providerOrAuth === 'string') {
|
|
55
|
+
// Auth token provided
|
|
56
|
+
this._provider = new api_provider_1.ApiProvider(host ? { host } : undefined, providerOrAuth);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
// OauthParams provided
|
|
60
|
+
this._provider = new api_provider_1.ApiProvider(providerOrAuth);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
get moduleName() { return this._moduleName; }
|
|
64
|
+
get entityName() { return this._entityName; }
|
|
65
|
+
// ============================================
|
|
66
|
+
// RECORD CREATION
|
|
67
|
+
// ============================================
|
|
68
|
+
/**
|
|
69
|
+
* Create a new empty EquipmentReturnItem record instance for create operations.
|
|
70
|
+
* Pre-generates an ID that can be referenced before the record is saved.
|
|
71
|
+
*
|
|
72
|
+
* @param id - Optional ID to use (auto-generated UUID if not provided)
|
|
73
|
+
* @returns A new record wrapper with pre-generated ID
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```typescript
|
|
77
|
+
* // Auto-generated ID
|
|
78
|
+
* const note = odinClient.notes.new();
|
|
79
|
+
* console.log(note.id); // UUID available immediately
|
|
80
|
+
*
|
|
81
|
+
* // Custom ID
|
|
82
|
+
* const order = odinClient.orders.new("custom-id-123");
|
|
83
|
+
*
|
|
84
|
+
* // Reference ID before save
|
|
85
|
+
* const account = odinClient.accounts.new();
|
|
86
|
+
* const contact = odinClient.contacts.new();
|
|
87
|
+
* await contact
|
|
88
|
+
* .link({ id: account.id, entity: "CrmModule:Account" })
|
|
89
|
+
* .createContact({ FirstName: "John" });
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
new(id) {
|
|
93
|
+
return new EquipmentReturnItemRecord_1.EquipmentReturnItemRecord(null, this._provider, id);
|
|
94
|
+
}
|
|
95
|
+
// ============================================
|
|
96
|
+
// RECORD RETRIEVAL
|
|
97
|
+
// ============================================
|
|
98
|
+
/**
|
|
99
|
+
* Get a single EquipmentReturnItem record by ID
|
|
100
|
+
*/
|
|
101
|
+
get(id) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
const record = yield this._provider._getByPrimaryKey(this._moduleName, this._entityName, id);
|
|
104
|
+
return new EquipmentReturnItemRecord_1.EquipmentReturnItemRecord(record, this._provider);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Get multiple EquipmentReturnItem records by IDs
|
|
109
|
+
*/
|
|
110
|
+
getMany(ids) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
if (ids.length === 0)
|
|
113
|
+
return [];
|
|
114
|
+
const records = yield this._provider._getManyByPrimaryKey(this._moduleName, this._entityName, ids);
|
|
115
|
+
return records.map((r) => new EquipmentReturnItemRecord_1.EquipmentReturnItemRecord(r, this._provider));
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
// ============================================
|
|
119
|
+
// SEARCH OPERATIONS
|
|
120
|
+
// ============================================
|
|
121
|
+
/**
|
|
122
|
+
* Search EquipmentReturnItem records
|
|
123
|
+
*/
|
|
124
|
+
search(params) {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
const result = yield this._provider._searchRecords(this._moduleName, this._entityName, params);
|
|
127
|
+
return {
|
|
128
|
+
records: result.records.map((r) => new EquipmentReturnItemRecord_1.EquipmentReturnItemRecord(r, this._provider)),
|
|
129
|
+
totalRecords: result.totalRecords,
|
|
130
|
+
hasMore: result.hasMore,
|
|
131
|
+
aggregations: result.aggregations,
|
|
132
|
+
};
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Search all EquipmentReturnItem records with automatic pagination
|
|
137
|
+
*/
|
|
138
|
+
searchAll(params) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
const result = yield this._provider._searchAllRecordsAndPaginate(this._moduleName, this._entityName, params);
|
|
141
|
+
return result.records.map((r) => new EquipmentReturnItemRecord_1.EquipmentReturnItemRecord(r, this._provider));
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Async generator for paginating through all matching records.
|
|
146
|
+
* Yields batches of wrapped records.
|
|
147
|
+
*/
|
|
148
|
+
paginate(params) {
|
|
149
|
+
var _a;
|
|
150
|
+
return __asyncGenerator(this, arguments, function* paginate_1() {
|
|
151
|
+
let hasMore = true;
|
|
152
|
+
let searchAfter;
|
|
153
|
+
const query = Object.assign(Object.assign({}, params.query), { pageSize: ((_a = params.query) === null || _a === void 0 ? void 0 : _a.pageSize) || 500 });
|
|
154
|
+
while (hasMore) {
|
|
155
|
+
const result = yield __await(this._provider._searchRecords(this._moduleName, this._entityName, Object.assign(Object.assign({}, params), { query: Object.assign(Object.assign({}, query), { searchAfter }) })));
|
|
156
|
+
if (result.records.length > 0) {
|
|
157
|
+
yield yield __await(result.records.map((r) => new EquipmentReturnItemRecord_1.EquipmentReturnItemRecord(r, this._provider)));
|
|
158
|
+
const lastRecord = result.records[result.records.length - 1];
|
|
159
|
+
searchAfter = lastRecord === null || lastRecord === void 0 ? void 0 : lastRecord.sort;
|
|
160
|
+
}
|
|
161
|
+
hasMore = result.hasMore && result.records.length >= query.pageSize;
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
// ============================================
|
|
166
|
+
// QUERY BUILDER
|
|
167
|
+
// ============================================
|
|
168
|
+
/**
|
|
169
|
+
* Create a fluent query builder for EquipmentReturnItem records
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* ```typescript
|
|
173
|
+
* const results = await accessor
|
|
174
|
+
* .query()
|
|
175
|
+
* .where('Status', 'in', ['Active', 'Pending'])
|
|
176
|
+
* .where('CreatedAt', 'gte', '2025-01-01')
|
|
177
|
+
* .select('id', 'title', 'properties.*')
|
|
178
|
+
* .sortBy('createdAt', 'desc')
|
|
179
|
+
* .limit(100)
|
|
180
|
+
* .execute();
|
|
181
|
+
* ```
|
|
182
|
+
*/
|
|
183
|
+
query() {
|
|
184
|
+
return (0, query_builder_1.createQueryBuilder)(this);
|
|
185
|
+
}
|
|
186
|
+
/** Access the underlying ApiProvider */
|
|
187
|
+
get provider() {
|
|
188
|
+
return this._provider;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
exports.EquipmentReturnItemAccessor = EquipmentReturnItemAccessor;
|
|
@@ -47,6 +47,8 @@ export { DocumentAccessor, DocumentSearchResponse, DocumentListResponse } from '
|
|
|
47
47
|
export { EmailAccessor, EmailSearchResponse, EmailListResponse } from './EmailAccessor';
|
|
48
48
|
export { EmailSenderAccessor, EmailSenderSearchResponse, EmailSenderListResponse } from './EmailSenderAccessor';
|
|
49
49
|
export { EmailTemplateAccessor, EmailTemplateSearchResponse, EmailTemplateListResponse } from './EmailTemplateAccessor';
|
|
50
|
+
export { EquipmentReturnItemAccessor, EquipmentReturnItemSearchResponse, EquipmentReturnItemListResponse } from './EquipmentReturnItemAccessor';
|
|
51
|
+
export { EquipmentReturnAccessor, EquipmentReturnSearchResponse, EquipmentReturnListResponse } from './EquipmentReturnAccessor';
|
|
50
52
|
export { ExchangeAccessor, ExchangeSearchResponse, ExchangeListResponse } from './ExchangeAccessor';
|
|
51
53
|
export { FieldServiceDispatchedProductAccessor, FieldServiceDispatchedProductSearchResponse, FieldServiceDispatchedProductListResponse } from './FieldServiceDispatchedProductAccessor';
|
|
52
54
|
export { FieldServiceProductAccessor, FieldServiceProductSearchResponse, FieldServiceProductListResponse } from './FieldServiceProductAccessor';
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.YfWifiSurveyAccessor = exports.YfFieldVisitOutcomeFormAccessor = exports.YfAgentLocationAccessor = exports.WorkOrderStatusUpdateAccessor = exports.WorkOrderAccessor = exports.WayleaveAuditAccessor = exports.VoiceConfigurationAccessor = exports.VisitAccessor = exports.UserAccessor = exports.UgExternalAuditAccessor = exports.TwilioWorkerAccessor = exports.TwilioUserUpdateAccessor = exports.TwilioTaskQueueAccessor = exports.TwilioCallEventAccessor = exports.TwilioActivityAccessor = exports.TransactionAccessor = exports.TimeSlotAccessor = exports.TeamAccessor = exports.SmsTemplateAccessor = exports.SmsMessageAccessor = exports.SiteSpecificRiskAssessmentOutcomeFormAccessor = exports.ServiceAccessor = exports.ServiceAppointmentAccessor = exports.ServiceAppointmentConfigAccessor = exports.ScheduleSlotAccessor = exports.SalesTerritoryAccessor = exports.RewardAccessor = exports.ReturnsAccessor = void 0;
|
|
11
|
+
exports.InvoiceAccessor = exports.InvoiceItemAccessor = exports.ImpersonationTrackerAccessor = exports.FileAccessor = exports.FieldServiceProductAccessor = exports.FieldServiceDispatchedProductAccessor = exports.ExchangeAccessor = exports.EquipmentReturnAccessor = exports.EquipmentReturnItemAccessor = exports.EmailTemplateAccessor = exports.EmailSenderAccessor = exports.EmailAccessor = exports.DocumentAccessor = exports.DocumentProcessingAccessor = exports.DiscountAccessor = exports.DataIssueAccessor = exports.CustomerPhonePortingAccessor = exports.CustomerDeviceRouterAccessor = exports.CustomerDeviceAccessor = exports.CustomerDeviceOntAccessor = exports.CustomerDeviceConfigurationAccessor = exports.CustomerDeviceAtaAccessor = exports.CrmDatasetAccessor = exports.CreditNoteAccessor = exports.ConversationSummaryFeedbackAccessor = exports.ConversationAccessor = exports.ContractBuyOutAccessor = exports.ContactAccessor = exports.ContactIdentityAccessor = exports.ConfigAccessor = exports.ChurnRequestAccessor = exports.ChangeReasonAccessor = exports.CaseAccessor = exports.CampaignAccessor = exports.CallAccessor = exports.CallLegAccessor = exports.BrskEntityMigrationErrorAccessor = exports.BngProvisionAccessor = exports.BillingRequestAccessor = exports.BillingAdjustmentAccessor = exports.AppointmentAccessor = exports.AiRouteRequestAccessor = exports.AgentStatusAccessor = exports.AffiliateCodeAccessor = exports.AddressAccessor = exports.AddressInteractionAccessor = exports.ActivityAccessor = exports.ActivityLogAccessor = exports.AccountAccessor = exports.AccountCreditAccessor = void 0;
|
|
12
|
+
exports.RegionAccessor = exports.ReferralAccessor = exports.RecontractAccessor = exports.QaRubricSectionAccessor = exports.QaRubricAccessor = exports.QaRubricItemAccessor = exports.QaReportAccessor = exports.QaAutoFailAccessor = exports.PushNotificationAccessor = exports.ProductAccessor = exports.PriceBookAccessor = exports.PgWebhookAccessor = exports.PgWebhookAttemptAccessor = exports.PgVocalinkAccessor = exports.PgTransactionAccessor = exports.PgSortCodeSubstitutionAccessor = exports.PgReportEventAccessor = exports.PgPaymentMethodAccessor = exports.PgLogAccessor = exports.PgFileAllocationAccessor = exports.PgDisputeAccessor = exports.PgDirectDebitFileAccessor = exports.PgContactAccessor = exports.PgAccountValidationAccessor = exports.PermissionToFailAccessor = exports.PaymentAccessor = exports.PaymentMethodRefundAccessor = exports.PaymentMethodAccessor = exports.PICRequestAccessor = exports.OverlayRealA55Accessor = exports.OutboundDialSessionAccessor = exports.OutboundDialCampaignAccessor = exports.OutboundDialCampaignCaseAccessor = exports.OutageAccessor = exports.OrderAccessor = exports.OrderKciAccessor = exports.OrderItemAccessor = exports.OrderCheckAccessor = exports.OntReplacementApprovalAccessor = exports.OneTouchSwitchAccessor = exports.OhExternalAuditAccessor = exports.OfferTemplateAccessor = exports.OfferAccessor = exports.NotificationTemplateAccessor = exports.NoteAccessor = exports.NetworkDeviceAccessor = exports.ModifyServiceRequestAccessor = exports.MessageAccessor = exports.LeadAccessor = exports.KnowledgeArticleAccessor = void 0;
|
|
13
|
+
exports.YfWifiSurveyAccessor = exports.YfFieldVisitOutcomeFormAccessor = exports.YfAgentLocationAccessor = exports.WorkOrderStatusUpdateAccessor = exports.WorkOrderAccessor = exports.WayleaveAuditAccessor = exports.VoiceConfigurationAccessor = exports.VisitAccessor = exports.UserAccessor = exports.UgExternalAuditAccessor = exports.TwilioWorkerAccessor = exports.TwilioUserUpdateAccessor = exports.TwilioTaskQueueAccessor = exports.TwilioCallEventAccessor = exports.TwilioActivityAccessor = exports.TransactionAccessor = exports.TimeSlotAccessor = exports.TeamAccessor = exports.SmsTemplateAccessor = exports.SmsMessageAccessor = exports.SiteSpecificRiskAssessmentOutcomeFormAccessor = exports.ServiceAccessor = exports.ServiceAppointmentAccessor = exports.ServiceAppointmentConfigAccessor = exports.ScheduleSlotAccessor = exports.SalesTerritoryAccessor = exports.RewardAccessor = exports.ReturnsAccessor = exports.RemediationRequiredReasonAccessor = exports.RemediationOutcomeFormAccessor = void 0;
|
|
14
14
|
var AccountCreditAccessor_1 = require("./AccountCreditAccessor");
|
|
15
15
|
Object.defineProperty(exports, "AccountCreditAccessor", { enumerable: true, get: function () { return AccountCreditAccessor_1.AccountCreditAccessor; } });
|
|
16
16
|
var AccountAccessor_1 = require("./AccountAccessor");
|
|
@@ -93,6 +93,10 @@ var EmailSenderAccessor_1 = require("./EmailSenderAccessor");
|
|
|
93
93
|
Object.defineProperty(exports, "EmailSenderAccessor", { enumerable: true, get: function () { return EmailSenderAccessor_1.EmailSenderAccessor; } });
|
|
94
94
|
var EmailTemplateAccessor_1 = require("./EmailTemplateAccessor");
|
|
95
95
|
Object.defineProperty(exports, "EmailTemplateAccessor", { enumerable: true, get: function () { return EmailTemplateAccessor_1.EmailTemplateAccessor; } });
|
|
96
|
+
var EquipmentReturnItemAccessor_1 = require("./EquipmentReturnItemAccessor");
|
|
97
|
+
Object.defineProperty(exports, "EquipmentReturnItemAccessor", { enumerable: true, get: function () { return EquipmentReturnItemAccessor_1.EquipmentReturnItemAccessor; } });
|
|
98
|
+
var EquipmentReturnAccessor_1 = require("./EquipmentReturnAccessor");
|
|
99
|
+
Object.defineProperty(exports, "EquipmentReturnAccessor", { enumerable: true, get: function () { return EquipmentReturnAccessor_1.EquipmentReturnAccessor; } });
|
|
96
100
|
var ExchangeAccessor_1 = require("./ExchangeAccessor");
|
|
97
101
|
Object.defineProperty(exports, "ExchangeAccessor", { enumerable: true, get: function () { return ExchangeAccessor_1.ExchangeAccessor; } });
|
|
98
102
|
var FieldServiceDispatchedProductAccessor_1 = require("./FieldServiceDispatchedProductAccessor");
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateEquipmentReturn Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Record a warehouse inspection of equipment returned against a work order
|
|
5
|
+
*
|
|
6
|
+
* @module FieldServiceModule
|
|
7
|
+
* @entity EquipmentReturn
|
|
8
|
+
* @entityType DEFAULT
|
|
9
|
+
* @actionKey CreateEquipmentReturn
|
|
10
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.EquipmentReturn.Create.CreateEquipmentReturn
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
15
|
+
/**
|
|
16
|
+
* RabbitMQ message payload for CreateEquipmentReturn created events
|
|
17
|
+
*
|
|
18
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.EquipmentReturn.Create.CreateEquipmentReturn
|
|
19
|
+
*/
|
|
20
|
+
export interface CreateEquipmentReturnMessage extends OdinRecordCreatedEvent<CreateEquipmentReturnDto, CreateEquipmentReturnProperties> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Properties for CreateEquipmentReturn action
|
|
24
|
+
*
|
|
25
|
+
* @property Required fields: 3
|
|
26
|
+
* @property Optional fields: 4
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateEquipmentReturnProperties {
|
|
29
|
+
/**
|
|
30
|
+
* Work Order
|
|
31
|
+
*
|
|
32
|
+
* The work order this return closes out
|
|
33
|
+
* @type {LOOKUP}
|
|
34
|
+
* @required
|
|
35
|
+
*/
|
|
36
|
+
WorkOrder: string;
|
|
37
|
+
/**
|
|
38
|
+
* Inspected By
|
|
39
|
+
*
|
|
40
|
+
* Who inspected the returned equipment
|
|
41
|
+
* @type {ENUM}
|
|
42
|
+
* @required
|
|
43
|
+
*/
|
|
44
|
+
InspectedBy: string;
|
|
45
|
+
/**
|
|
46
|
+
* Outcome
|
|
47
|
+
*
|
|
48
|
+
* The verdict this inspection reached. Stored rather than derived so it survives any later stage move
|
|
49
|
+
* @type {ENUM}
|
|
50
|
+
* @required
|
|
51
|
+
*/
|
|
52
|
+
Outcome: string;
|
|
53
|
+
/**
|
|
54
|
+
* Comments
|
|
55
|
+
*
|
|
56
|
+
* Free-text notes from the inspection. Same column name as Returns.Comments on purpose, so one report can union the two while both flows run
|
|
57
|
+
* @type {TEXT_LONG}
|
|
58
|
+
*/
|
|
59
|
+
Comments?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* Additional Equipment
|
|
62
|
+
*
|
|
63
|
+
* Non-device items in the box — power supplies, cables, brackets. Devices get their own EquipmentReturnItem row instead
|
|
64
|
+
* @type {TEXT}
|
|
65
|
+
*/
|
|
66
|
+
AdditionalEquipment?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Expected Device Count
|
|
69
|
+
*
|
|
70
|
+
* How many devices this return expected back. Denormalised because an Odin list view cannot render an association count
|
|
71
|
+
* @type {NUMBER}
|
|
72
|
+
*/
|
|
73
|
+
ExpectedDeviceCount?: number | null;
|
|
74
|
+
/**
|
|
75
|
+
* Returned Device Count
|
|
76
|
+
*
|
|
77
|
+
* How many of them actually arrived
|
|
78
|
+
* @type {NUMBER}
|
|
79
|
+
*/
|
|
80
|
+
ReturnedDeviceCount?: number | null;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Create Equipment Return
|
|
84
|
+
*
|
|
85
|
+
* Record a warehouse inspection of equipment returned against a work order
|
|
86
|
+
*
|
|
87
|
+
* @actionType CREATE - Creates a new EquipmentReturn record
|
|
88
|
+
* @module FieldServiceModule
|
|
89
|
+
* @entity EquipmentReturn
|
|
90
|
+
* @entityType DEFAULT (Default)
|
|
91
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.EquipmentReturn.Create.CreateEquipmentReturn
|
|
92
|
+
* @permission schema.action.createequipmentreturn.trigger
|
|
93
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
94
|
+
*/
|
|
95
|
+
export declare class CreateEquipmentReturnDto extends OdinRecordCreateDto<CreateEquipmentReturnProperties> {
|
|
96
|
+
/** Used by SDK generators to identify action type */
|
|
97
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
98
|
+
static readonly ACTION_KEY = "CreateEquipmentReturn";
|
|
99
|
+
static readonly MODULE_NAME = "FieldServiceModule";
|
|
100
|
+
static readonly ENTITIES: string[];
|
|
101
|
+
static readonly ENTITY_TYPE = "DEFAULT";
|
|
102
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.EquipmentReturn.Create.CreateEquipmentReturn";
|
|
103
|
+
static readonly PERMISSION = "schema.action.createequipmentreturn.trigger";
|
|
104
|
+
/** Step metadata - entity this action targets */
|
|
105
|
+
static readonly STEP_ENTITY = "FieldServiceModule:EquipmentReturn";
|
|
106
|
+
static readonly STEP_SCHEMA_ID = "d74a5bd0-d153-4dfb-ad8a-6c3233a3e0ce";
|
|
107
|
+
static readonly STEP_SCHEMA_ACTION_ID = "0950c0d1-011c-454f-8b6f-99f621438ab5";
|
|
108
|
+
static readonly STEP_SCHEMA_TYPE_ID = "018616c7-0460-4ac4-aa87-d12966c3b4c8";
|
|
109
|
+
static readonly STEP_TYPE = "DEFAULT";
|
|
110
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
111
|
+
readonly actionName: string;
|
|
112
|
+
readonly schemaActionId: string;
|
|
113
|
+
readonly entity: string;
|
|
114
|
+
constructor(properties: CreateEquipmentReturnProperties, options?: {
|
|
115
|
+
journeyId?: string;
|
|
116
|
+
});
|
|
117
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateEquipmentReturn Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Record a warehouse inspection of equipment returned against a work order
|
|
6
|
+
*
|
|
7
|
+
* @module FieldServiceModule
|
|
8
|
+
* @entity EquipmentReturn
|
|
9
|
+
* @entityType DEFAULT
|
|
10
|
+
* @actionKey CreateEquipmentReturn
|
|
11
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.EquipmentReturn.Create.CreateEquipmentReturn
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateEquipmentReturnDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* Create Equipment Return
|
|
20
|
+
*
|
|
21
|
+
* Record a warehouse inspection of equipment returned against a work order
|
|
22
|
+
*
|
|
23
|
+
* @actionType CREATE - Creates a new EquipmentReturn record
|
|
24
|
+
* @module FieldServiceModule
|
|
25
|
+
* @entity EquipmentReturn
|
|
26
|
+
* @entityType DEFAULT (Default)
|
|
27
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.EquipmentReturn.Create.CreateEquipmentReturn
|
|
28
|
+
* @permission schema.action.createequipmentreturn.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class CreateEquipmentReturnDto extends core_1.OdinRecordCreateDto {
|
|
32
|
+
constructor(properties, options) {
|
|
33
|
+
super({
|
|
34
|
+
entity: 'FieldServiceModule:EquipmentReturn',
|
|
35
|
+
type: 'DEFAULT',
|
|
36
|
+
properties,
|
|
37
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'CreateEquipmentReturn';
|
|
40
|
+
this.schemaActionId = '0950c0d1-011c-454f-8b6f-99f621438ab5';
|
|
41
|
+
this.entity = 'FieldServiceModule:EquipmentReturn';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CreateEquipmentReturnDto = CreateEquipmentReturnDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
CreateEquipmentReturnDto.ACTION_TYPE = 'CREATE';
|
|
47
|
+
CreateEquipmentReturnDto.ACTION_KEY = 'CreateEquipmentReturn';
|
|
48
|
+
CreateEquipmentReturnDto.MODULE_NAME = 'FieldServiceModule';
|
|
49
|
+
CreateEquipmentReturnDto.ENTITIES = ['EquipmentReturn'];
|
|
50
|
+
CreateEquipmentReturnDto.ENTITY_TYPE = 'DEFAULT';
|
|
51
|
+
CreateEquipmentReturnDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.EquipmentReturn.Create.CreateEquipmentReturn';
|
|
52
|
+
CreateEquipmentReturnDto.PERMISSION = 'schema.action.createequipmentreturn.trigger';
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
CreateEquipmentReturnDto.STEP_ENTITY = 'FieldServiceModule:EquipmentReturn';
|
|
55
|
+
CreateEquipmentReturnDto.STEP_SCHEMA_ID = 'd74a5bd0-d153-4dfb-ad8a-6c3233a3e0ce';
|
|
56
|
+
CreateEquipmentReturnDto.STEP_SCHEMA_ACTION_ID = '0950c0d1-011c-454f-8b6f-99f621438ab5';
|
|
57
|
+
CreateEquipmentReturnDto.STEP_SCHEMA_TYPE_ID = '018616c7-0460-4ac4-aa87-d12966c3b4c8';
|
|
58
|
+
CreateEquipmentReturnDto.STEP_TYPE = 'DEFAULT';
|
|
59
|
+
CreateEquipmentReturnDto.AUTO_LINK_PARENT = true;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateEquipmentReturnItem Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Record one device against an equipment return — expected off the work order, or added because it was in the box
|
|
5
|
+
*
|
|
6
|
+
* @module FieldServiceModule
|
|
7
|
+
* @entity EquipmentReturnItem
|
|
8
|
+
* @entityType DEFAULT
|
|
9
|
+
* @actionKey CreateEquipmentReturnItem
|
|
10
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.EquipmentReturnItem.Create.CreateEquipmentReturnItem
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
15
|
+
/**
|
|
16
|
+
* RabbitMQ message payload for CreateEquipmentReturnItem created events
|
|
17
|
+
*
|
|
18
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.EquipmentReturnItem.Create.CreateEquipmentReturnItem
|
|
19
|
+
*/
|
|
20
|
+
export interface CreateEquipmentReturnItemMessage extends OdinRecordCreatedEvent<CreateEquipmentReturnItemDto, CreateEquipmentReturnItemProperties> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Properties for CreateEquipmentReturnItem action
|
|
24
|
+
*
|
|
25
|
+
* @property Required fields: 3
|
|
26
|
+
* @property Optional fields: 9
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateEquipmentReturnItemProperties {
|
|
29
|
+
/**
|
|
30
|
+
* Source
|
|
31
|
+
*
|
|
32
|
+
* Whether this row came off the work order, or the warehouse added it because it was in the box
|
|
33
|
+
* @type {ENUM}
|
|
34
|
+
* @required
|
|
35
|
+
*/
|
|
36
|
+
Source: string;
|
|
37
|
+
/**
|
|
38
|
+
* Device Kind
|
|
39
|
+
*
|
|
40
|
+
* What the unit is. Needed on top of the entity because router and mesh are the SAME schema, as are TV device and battery pack
|
|
41
|
+
* @type {ENUM}
|
|
42
|
+
* @required
|
|
43
|
+
*/
|
|
44
|
+
DeviceKind: string;
|
|
45
|
+
/**
|
|
46
|
+
* Returned
|
|
47
|
+
*
|
|
48
|
+
* The tick. Always true on an additional row — it is in the box by definition
|
|
49
|
+
* @type {BOOLEAN}
|
|
50
|
+
* @required
|
|
51
|
+
*/
|
|
52
|
+
Returned: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Device Entity
|
|
55
|
+
*
|
|
56
|
+
* Which device association is populated. Null on an additional row whose serial matched nothing
|
|
57
|
+
* @type {ENUM}
|
|
58
|
+
*/
|
|
59
|
+
DeviceEntity?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* Device Id
|
|
62
|
+
*
|
|
63
|
+
* The device record id, denormalised so a list view needs no relation read. Null on the same rows as DeviceEntity
|
|
64
|
+
* @type {TEXT}
|
|
65
|
+
*/
|
|
66
|
+
DeviceId?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Catalogue Product
|
|
69
|
+
*
|
|
70
|
+
* The catalogue entry the warehouse picked on an additional row. Its type gives the device kind, its Name the model, its Vendor the vendor
|
|
71
|
+
* @type {LOOKUP}
|
|
72
|
+
*/
|
|
73
|
+
FieldServiceProduct?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Model
|
|
76
|
+
*
|
|
77
|
+
* Snapshot of the catalogue product's Name at inspection time, so the row survives a rename or retirement
|
|
78
|
+
* @type {TEXT}
|
|
79
|
+
*/
|
|
80
|
+
ModelName?: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* Vendor
|
|
83
|
+
*
|
|
84
|
+
* Snapshot of the catalogue product's Vendor
|
|
85
|
+
* @type {TEXT}
|
|
86
|
+
*/
|
|
87
|
+
Vendor?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* Serial Number
|
|
90
|
+
*
|
|
91
|
+
* Snapshot for an expected device, typed by the warehouse for an additional one
|
|
92
|
+
* @type {TEXT}
|
|
93
|
+
*/
|
|
94
|
+
SerialNumber?: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* MAC Address
|
|
97
|
+
*
|
|
98
|
+
* Same, where we hold one
|
|
99
|
+
* @type {TEXT}
|
|
100
|
+
*/
|
|
101
|
+
MacAddress?: string | null;
|
|
102
|
+
/**
|
|
103
|
+
* Matched By Serial
|
|
104
|
+
*
|
|
105
|
+
* True when an additional row's typed serial resolved to a real device record and was linked. Those are the rows worth unlinking from whoever still holds them
|
|
106
|
+
* @type {BOOLEAN}
|
|
107
|
+
*/
|
|
108
|
+
MatchedBySerial?: boolean | null;
|
|
109
|
+
/**
|
|
110
|
+
* Grade
|
|
111
|
+
*
|
|
112
|
+
* Condition as inspected. Same option set as Returns.Cpe{n}Grade. Only meaningful when Returned is true
|
|
113
|
+
* @type {ENUM}
|
|
114
|
+
*/
|
|
115
|
+
Grade?: string | null;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Create Equipment Return Item
|
|
119
|
+
*
|
|
120
|
+
* Record one device against an equipment return — expected off the work order, or added because it was in the box
|
|
121
|
+
*
|
|
122
|
+
* @actionType CREATE - Creates a new EquipmentReturnItem record
|
|
123
|
+
* @module FieldServiceModule
|
|
124
|
+
* @entity EquipmentReturnItem
|
|
125
|
+
* @entityType DEFAULT (Default)
|
|
126
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.EquipmentReturnItem.Create.CreateEquipmentReturnItem
|
|
127
|
+
* @permission schema.action.createequipmentreturnitem.trigger
|
|
128
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
129
|
+
*/
|
|
130
|
+
export declare class CreateEquipmentReturnItemDto extends OdinRecordCreateDto<CreateEquipmentReturnItemProperties> {
|
|
131
|
+
/** Used by SDK generators to identify action type */
|
|
132
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
133
|
+
static readonly ACTION_KEY = "CreateEquipmentReturnItem";
|
|
134
|
+
static readonly MODULE_NAME = "FieldServiceModule";
|
|
135
|
+
static readonly ENTITIES: string[];
|
|
136
|
+
static readonly ENTITY_TYPE = "DEFAULT";
|
|
137
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.EquipmentReturnItem.Create.CreateEquipmentReturnItem";
|
|
138
|
+
static readonly PERMISSION = "schema.action.createequipmentreturnitem.trigger";
|
|
139
|
+
/** Step metadata - entity this action targets */
|
|
140
|
+
static readonly STEP_ENTITY = "FieldServiceModule:EquipmentReturnItem";
|
|
141
|
+
static readonly STEP_SCHEMA_ID = "bb475f2a-2770-452c-b8d9-09d2d4b7a8b1";
|
|
142
|
+
static readonly STEP_SCHEMA_ACTION_ID = "11a64fce-b18f-436f-b05b-abb1c4d92899";
|
|
143
|
+
static readonly STEP_SCHEMA_TYPE_ID = "cb7083e9-c082-49f1-9d28-f78fdba5f652";
|
|
144
|
+
static readonly STEP_TYPE = "DEFAULT";
|
|
145
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
146
|
+
readonly actionName: string;
|
|
147
|
+
readonly schemaActionId: string;
|
|
148
|
+
readonly entity: string;
|
|
149
|
+
constructor(properties: CreateEquipmentReturnItemProperties, options?: {
|
|
150
|
+
journeyId?: string;
|
|
151
|
+
});
|
|
152
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateEquipmentReturnItem Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Record one device against an equipment return — expected off the work order, or added because it was in the box
|
|
6
|
+
*
|
|
7
|
+
* @module FieldServiceModule
|
|
8
|
+
* @entity EquipmentReturnItem
|
|
9
|
+
* @entityType DEFAULT
|
|
10
|
+
* @actionKey CreateEquipmentReturnItem
|
|
11
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.EquipmentReturnItem.Create.CreateEquipmentReturnItem
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateEquipmentReturnItemDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* Create Equipment Return Item
|
|
20
|
+
*
|
|
21
|
+
* Record one device against an equipment return — expected off the work order, or added because it was in the box
|
|
22
|
+
*
|
|
23
|
+
* @actionType CREATE - Creates a new EquipmentReturnItem record
|
|
24
|
+
* @module FieldServiceModule
|
|
25
|
+
* @entity EquipmentReturnItem
|
|
26
|
+
* @entityType DEFAULT (Default)
|
|
27
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.EquipmentReturnItem.Create.CreateEquipmentReturnItem
|
|
28
|
+
* @permission schema.action.createequipmentreturnitem.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class CreateEquipmentReturnItemDto extends core_1.OdinRecordCreateDto {
|
|
32
|
+
constructor(properties, options) {
|
|
33
|
+
super({
|
|
34
|
+
entity: 'FieldServiceModule:EquipmentReturnItem',
|
|
35
|
+
type: 'DEFAULT',
|
|
36
|
+
properties,
|
|
37
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'CreateEquipmentReturnItem';
|
|
40
|
+
this.schemaActionId = '11a64fce-b18f-436f-b05b-abb1c4d92899';
|
|
41
|
+
this.entity = 'FieldServiceModule:EquipmentReturnItem';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CreateEquipmentReturnItemDto = CreateEquipmentReturnItemDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
CreateEquipmentReturnItemDto.ACTION_TYPE = 'CREATE';
|
|
47
|
+
CreateEquipmentReturnItemDto.ACTION_KEY = 'CreateEquipmentReturnItem';
|
|
48
|
+
CreateEquipmentReturnItemDto.MODULE_NAME = 'FieldServiceModule';
|
|
49
|
+
CreateEquipmentReturnItemDto.ENTITIES = ['EquipmentReturnItem'];
|
|
50
|
+
CreateEquipmentReturnItemDto.ENTITY_TYPE = 'DEFAULT';
|
|
51
|
+
CreateEquipmentReturnItemDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.EquipmentReturnItem.Create.CreateEquipmentReturnItem';
|
|
52
|
+
CreateEquipmentReturnItemDto.PERMISSION = 'schema.action.createequipmentreturnitem.trigger';
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
CreateEquipmentReturnItemDto.STEP_ENTITY = 'FieldServiceModule:EquipmentReturnItem';
|
|
55
|
+
CreateEquipmentReturnItemDto.STEP_SCHEMA_ID = 'bb475f2a-2770-452c-b8d9-09d2d4b7a8b1';
|
|
56
|
+
CreateEquipmentReturnItemDto.STEP_SCHEMA_ACTION_ID = '11a64fce-b18f-436f-b05b-abb1c4d92899';
|
|
57
|
+
CreateEquipmentReturnItemDto.STEP_SCHEMA_TYPE_ID = 'cb7083e9-c082-49f1-9d28-f78fdba5f652';
|
|
58
|
+
CreateEquipmentReturnItemDto.STEP_TYPE = 'DEFAULT';
|
|
59
|
+
CreateEquipmentReturnItemDto.AUTO_LINK_PARENT = true;
|