@d19n/youfibre-odin-sdk 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-sdk-v1/BillingRequestApi.d.ts +0 -7
- package/dist/api-sdk-v1/BillingRequestApi.js +0 -26
- package/dist/api-sdk-v1/CaseApi.d.ts +0 -7
- package/dist/api-sdk-v1/CaseApi.js +0 -26
- package/dist/api-sdk-v1/ConsumptionRateApi.d.ts +0 -7
- package/dist/api-sdk-v1/ConsumptionRateApi.js +0 -26
- package/dist/api-sdk-v1/ConsumptionScheduleApi.d.ts +0 -7
- package/dist/api-sdk-v1/ConsumptionScheduleApi.js +0 -26
- package/dist/api-sdk-v1/ContactApi.d.ts +87 -3
- package/dist/api-sdk-v1/ContactApi.js +319 -7
- package/dist/api-sdk-v1/ContactIdentityApi.d.ts +0 -7
- package/dist/api-sdk-v1/ContactIdentityApi.js +0 -26
- package/dist/api-sdk-v1/FileApi.d.ts +338 -3
- package/dist/api-sdk-v1/FileApi.js +1249 -7
- package/dist/api-sdk-v1/InvoiceItemApi.d.ts +0 -7
- package/dist/api-sdk-v1/InvoiceItemApi.js +0 -26
- package/dist/api-sdk-v1/LeadApi.d.ts +24 -3
- package/dist/api-sdk-v1/LeadApi.js +85 -7
- package/dist/api-sdk-v1/MilestoneApi.d.ts +0 -7
- package/dist/api-sdk-v1/MilestoneApi.js +0 -26
- package/dist/api-sdk-v1/NoteApi.d.ts +3 -4
- package/dist/api-sdk-v1/NoteApi.js +7 -13
- package/dist/api-sdk-v1/OfferApi.d.ts +0 -7
- package/dist/api-sdk-v1/OfferApi.js +0 -26
- package/dist/api-sdk-v1/OrderApi.d.ts +7 -8
- package/dist/api-sdk-v1/OrderApi.js +21 -27
- package/dist/api-sdk-v1/OrderItemApi.d.ts +0 -7
- package/dist/api-sdk-v1/OrderItemApi.js +0 -26
- package/dist/api-sdk-v1/OrganizationApi.d.ts +0 -7
- package/dist/api-sdk-v1/OrganizationApi.js +0 -26
- package/dist/api-sdk-v1/ProductApi.d.ts +1 -9
- package/dist/api-sdk-v1/ProductApi.js +0 -31
- package/dist/api-sdk-v1/ProductComponentApi.d.ts +0 -7
- package/dist/api-sdk-v1/ProductComponentApi.js +0 -26
- package/dist/api-sdk-v1/RestrictionApi.d.ts +0 -7
- package/dist/api-sdk-v1/RestrictionApi.js +0 -26
- package/dist/api-sdk-v1/ServiceApi.d.ts +0 -7
- package/dist/api-sdk-v1/ServiceApi.js +0 -26
- package/dist/api-sdk-v1/ServiceAppointmentConfigApi.d.ts +12 -0
- package/dist/api-sdk-v1/ServiceAppointmentConfigApi.js +40 -0
- package/dist/api-sdk-v1/SplitOrderApi.d.ts +2 -3
- package/dist/api-sdk-v1/SplitOrderApi.js +6 -12
- package/dist/api-sdk-v1/TransactionApi.d.ts +0 -7
- package/dist/api-sdk-v1/TransactionApi.js +0 -26
- package/dist/api-sdk-v1/UserApi.d.ts +18 -0
- package/dist/api-sdk-v1/UserApi.js +60 -0
- package/dist/api-sdk-v1/WorkOrderApi.d.ts +44 -3
- package/dist/api-sdk-v1/WorkOrderApi.js +157 -7
- package/dist/db-sdk-v1/BillingRequestDb.d.ts +0 -7
- package/dist/db-sdk-v1/BillingRequestDb.js +0 -33
- package/dist/db-sdk-v1/CaseDb.d.ts +0 -7
- package/dist/db-sdk-v1/CaseDb.js +0 -33
- package/dist/db-sdk-v1/ConsumptionRateDb.d.ts +0 -7
- package/dist/db-sdk-v1/ConsumptionRateDb.js +0 -33
- package/dist/db-sdk-v1/ConsumptionScheduleDb.d.ts +0 -7
- package/dist/db-sdk-v1/ConsumptionScheduleDb.js +0 -33
- package/dist/db-sdk-v1/ContactDb.d.ts +87 -3
- package/dist/db-sdk-v1/ContactDb.js +403 -7
- package/dist/db-sdk-v1/ContactIdentityDb.d.ts +0 -7
- package/dist/db-sdk-v1/ContactIdentityDb.js +0 -33
- package/dist/db-sdk-v1/FileDb.d.ts +338 -3
- package/dist/db-sdk-v1/FileDb.js +1585 -7
- package/dist/db-sdk-v1/InvoiceItemDb.d.ts +0 -7
- package/dist/db-sdk-v1/InvoiceItemDb.js +0 -33
- package/dist/db-sdk-v1/LeadDb.d.ts +24 -3
- package/dist/db-sdk-v1/LeadDb.js +106 -7
- package/dist/db-sdk-v1/MilestoneDb.d.ts +0 -7
- package/dist/db-sdk-v1/MilestoneDb.js +0 -33
- package/dist/db-sdk-v1/NoteDb.d.ts +3 -4
- package/dist/db-sdk-v1/NoteDb.js +7 -13
- package/dist/db-sdk-v1/OfferDb.d.ts +0 -7
- package/dist/db-sdk-v1/OfferDb.js +0 -33
- package/dist/db-sdk-v1/OrderDb.d.ts +7 -8
- package/dist/db-sdk-v1/OrderDb.js +28 -34
- package/dist/db-sdk-v1/OrderItemDb.d.ts +0 -7
- package/dist/db-sdk-v1/OrderItemDb.js +0 -33
- package/dist/db-sdk-v1/OrganizationDb.d.ts +0 -7
- package/dist/db-sdk-v1/OrganizationDb.js +0 -33
- package/dist/db-sdk-v1/ProductComponentDb.d.ts +0 -7
- package/dist/db-sdk-v1/ProductComponentDb.js +0 -33
- package/dist/db-sdk-v1/ProductDb.d.ts +1 -9
- package/dist/db-sdk-v1/ProductDb.js +0 -38
- package/dist/db-sdk-v1/RestrictionDb.d.ts +0 -7
- package/dist/db-sdk-v1/RestrictionDb.js +0 -33
- package/dist/db-sdk-v1/ServiceAppointmentConfigDb.d.ts +12 -0
- package/dist/db-sdk-v1/ServiceAppointmentConfigDb.js +54 -0
- package/dist/db-sdk-v1/ServiceDb.d.ts +0 -7
- package/dist/db-sdk-v1/ServiceDb.js +0 -33
- package/dist/db-sdk-v1/SplitOrderDb.d.ts +2 -3
- package/dist/db-sdk-v1/SplitOrderDb.js +6 -12
- package/dist/db-sdk-v1/TransactionDb.d.ts +0 -7
- package/dist/db-sdk-v1/TransactionDb.js +0 -33
- package/dist/db-sdk-v1/UserDb.d.ts +18 -0
- package/dist/db-sdk-v1/UserDb.js +81 -0
- package/dist/db-sdk-v1/WorkOrderDb.d.ts +44 -3
- package/dist/db-sdk-v1/WorkOrderDb.js +199 -7
- package/package.json +2 -2
- package/src/api-sdk-v1/BillingRequestApi.ts +0 -27
- package/src/api-sdk-v1/CaseApi.ts +0 -27
- package/src/api-sdk-v1/ConsumptionRateApi.ts +0 -27
- package/src/api-sdk-v1/ConsumptionScheduleApi.ts +0 -27
- package/src/api-sdk-v1/ContactApi.ts +343 -19
- package/src/api-sdk-v1/ContactIdentityApi.ts +0 -27
- package/src/api-sdk-v1/FileApi.ts +1310 -19
- package/src/api-sdk-v1/InvoiceItemApi.ts +0 -27
- package/src/api-sdk-v1/LeadApi.ts +100 -19
- package/src/api-sdk-v1/MilestoneApi.ts +0 -27
- package/src/api-sdk-v1/NoteApi.ts +7 -12
- package/src/api-sdk-v1/OfferApi.ts +0 -27
- package/src/api-sdk-v1/OrderApi.ts +23 -28
- package/src/api-sdk-v1/OrderItemApi.ts +0 -27
- package/src/api-sdk-v1/OrganizationApi.ts +0 -27
- package/src/api-sdk-v1/ProductApi.ts +0 -31
- package/src/api-sdk-v1/ProductComponentApi.ts +0 -27
- package/src/api-sdk-v1/RestrictionApi.ts +0 -27
- package/src/api-sdk-v1/ServiceApi.ts +0 -27
- package/src/api-sdk-v1/ServiceAppointmentConfigApi.ts +44 -0
- package/src/api-sdk-v1/SplitOrderApi.ts +17 -22
- package/src/api-sdk-v1/TransactionApi.ts +0 -27
- package/src/api-sdk-v1/UserApi.ts +66 -0
- package/src/api-sdk-v1/WorkOrderApi.ts +178 -21
- package/src/db-sdk-v1/BillingRequestDb.ts +0 -35
- package/src/db-sdk-v1/CaseDb.ts +0 -35
- package/src/db-sdk-v1/ConsumptionRateDb.ts +0 -35
- package/src/db-sdk-v1/ConsumptionScheduleDb.ts +0 -35
- package/src/db-sdk-v1/ContactDb.ts +443 -23
- package/src/db-sdk-v1/ContactIdentityDb.ts +0 -35
- package/src/db-sdk-v1/FileDb.ts +1698 -23
- package/src/db-sdk-v1/InvoiceItemDb.ts +0 -35
- package/src/db-sdk-v1/LeadDb.ts +128 -23
- package/src/db-sdk-v1/MilestoneDb.ts +0 -35
- package/src/db-sdk-v1/NoteDb.ts +7 -12
- package/src/db-sdk-v1/OfferDb.ts +0 -35
- package/src/db-sdk-v1/OrderDb.ts +31 -36
- package/src/db-sdk-v1/OrderItemDb.ts +0 -35
- package/src/db-sdk-v1/OrganizationDb.ts +0 -35
- package/src/db-sdk-v1/ProductComponentDb.ts +0 -35
- package/src/db-sdk-v1/ProductDb.ts +0 -39
- package/src/db-sdk-v1/RestrictionDb.ts +0 -35
- package/src/db-sdk-v1/ServiceAppointmentConfigDb.ts +60 -0
- package/src/db-sdk-v1/ServiceDb.ts +0 -35
- package/src/db-sdk-v1/SplitOrderDb.ts +20 -25
- package/src/db-sdk-v1/TransactionDb.ts +0 -35
- package/src/db-sdk-v1/UserDb.ts +90 -0
- package/src/db-sdk-v1/WorkOrderDb.ts +229 -24
- package/src/generators/runner.ts +2 -3
|
@@ -142,31 +142,5 @@ class ProductComponentApi extends api_provider_1.ApiProvider {
|
|
|
142
142
|
return yield this._deleteLinks(this.moduleName, this.entityName, productComponentId, linkedProductId);
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
|
-
// Use this function when you want to return a single record
|
|
146
|
-
getProductComponents(productComponentId) {
|
|
147
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
-
return yield this._getLinks(this.moduleName, this.entityName, productComponentId, 'ProductComponent');
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
linkProductComponentProductComponents(productComponentId, productComponentIds) {
|
|
152
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
-
const associationDtos = [];
|
|
154
|
-
for (const param of productComponentIds) {
|
|
155
|
-
associationDtos.push({
|
|
156
|
-
entity: 'ProductModule:ProductComponent',
|
|
157
|
-
recordId: param.id,
|
|
158
|
-
linkType: 'ProductComponent__ProductComponent',
|
|
159
|
-
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
160
|
-
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
return yield this._createLinks(this.moduleName, this.entityName, productComponentId, associationDtos);
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
unLinkProductComponentProductComponents(productComponentId, linkedProductComponentId) {
|
|
167
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, productComponentId, linkedProductComponentId);
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
145
|
}
|
|
172
146
|
exports.ProductComponentApi = ProductComponentApi;
|
|
@@ -41,11 +41,4 @@ export declare class RestrictionApi extends ApiProvider {
|
|
|
41
41
|
relatedAssociationId?: string;
|
|
42
42
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
43
43
|
unLinkProductComponentRestrictions(restrictionId: string, linkedProductComponentId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
44
|
-
getRestrictions(restrictionId: string): Promise<any>;
|
|
45
|
-
linkRestrictionRestrictions(restrictionId: string, restrictionIds: {
|
|
46
|
-
id: string;
|
|
47
|
-
relationType?: RelationTypeEnum;
|
|
48
|
-
relatedAssociationId?: string;
|
|
49
|
-
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
50
|
-
unLinkRestrictionRestrictions(restrictionId: string, linkedRestrictionId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
51
44
|
}
|
|
@@ -142,31 +142,5 @@ class RestrictionApi extends api_provider_1.ApiProvider {
|
|
|
142
142
|
return yield this._deleteLinks(this.moduleName, this.entityName, restrictionId, linkedProductComponentId);
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
|
-
// Use this function when you want to return a single record
|
|
146
|
-
getRestrictions(restrictionId) {
|
|
147
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
-
return yield this._getLinks(this.moduleName, this.entityName, restrictionId, 'Restriction');
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
linkRestrictionRestrictions(restrictionId, restrictionIds) {
|
|
152
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
-
const associationDtos = [];
|
|
154
|
-
for (const param of restrictionIds) {
|
|
155
|
-
associationDtos.push({
|
|
156
|
-
entity: 'ProductModule:Restriction',
|
|
157
|
-
recordId: param.id,
|
|
158
|
-
linkType: 'Restriction__Restriction',
|
|
159
|
-
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
160
|
-
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
return yield this._createLinks(this.moduleName, this.entityName, restrictionId, associationDtos);
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
unLinkRestrictionRestrictions(restrictionId, linkedRestrictionId) {
|
|
167
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, restrictionId, linkedRestrictionId);
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
145
|
}
|
|
172
146
|
exports.RestrictionApi = RestrictionApi;
|
|
@@ -34,11 +34,4 @@ export declare class ServiceApi extends ApiProvider {
|
|
|
34
34
|
relatedAssociationId?: string;
|
|
35
35
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
36
36
|
unLinkProductServices(serviceId: string, linkedProductId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
37
|
-
getServices(serviceId: string): Promise<any>;
|
|
38
|
-
linkServiceServices(serviceId: string, serviceIds: {
|
|
39
|
-
id: string;
|
|
40
|
-
relationType?: RelationTypeEnum;
|
|
41
|
-
relatedAssociationId?: string;
|
|
42
|
-
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
43
|
-
unLinkServiceServices(serviceId: string, linkedServiceId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
44
37
|
}
|
|
@@ -116,31 +116,5 @@ class ServiceApi extends api_provider_1.ApiProvider {
|
|
|
116
116
|
return yield this._deleteLinks(this.moduleName, this.entityName, serviceId, linkedProductId);
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
-
// Use this function when you want to return a single record
|
|
120
|
-
getServices(serviceId) {
|
|
121
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
-
return yield this._getLinks(this.moduleName, this.entityName, serviceId, 'Service');
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
linkServiceServices(serviceId, serviceIds) {
|
|
126
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
-
const associationDtos = [];
|
|
128
|
-
for (const param of serviceIds) {
|
|
129
|
-
associationDtos.push({
|
|
130
|
-
entity: 'ServiceModule:Service',
|
|
131
|
-
recordId: param.id,
|
|
132
|
-
linkType: 'Service__Service',
|
|
133
|
-
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
134
|
-
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
return yield this._createLinks(this.moduleName, this.entityName, serviceId, associationDtos);
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
unLinkServiceServices(serviceId, linkedServiceId) {
|
|
141
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, serviceId, linkedServiceId);
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
119
|
}
|
|
146
120
|
exports.ServiceApi = ServiceApi;
|
|
@@ -76,4 +76,16 @@ export declare class ServiceAppointmentConfigApi extends ApiProvider {
|
|
|
76
76
|
relatedAssociationId?: string;
|
|
77
77
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
78
78
|
unLinkServiceAppointmentConfigRegions(serviceAppointmentConfigId: string, linkedRegionId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
79
|
+
linkManagers(serviceAppointmentConfigId: string, userIds: {
|
|
80
|
+
id: string;
|
|
81
|
+
relationType?: RelationTypeEnum;
|
|
82
|
+
relatedAssociationId?: string;
|
|
83
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
84
|
+
unLinkManagers(serviceAppointmentConfigId: string, linkedUserId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
85
|
+
linkSupervisors(serviceAppointmentConfigId: string, userIds: {
|
|
86
|
+
id: string;
|
|
87
|
+
relationType?: RelationTypeEnum;
|
|
88
|
+
relatedAssociationId?: string;
|
|
89
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
90
|
+
unLinkSupervisors(serviceAppointmentConfigId: string, linkedUserId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
79
91
|
}
|
|
@@ -272,5 +272,45 @@ class ServiceAppointmentConfigApi extends api_provider_1.ApiProvider {
|
|
|
272
272
|
return yield this._deleteLinks(this.moduleName, this.entityName, serviceAppointmentConfigId, linkedRegionId);
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
+
linkManagers(serviceAppointmentConfigId, userIds) {
|
|
276
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
277
|
+
const associationDtos = [];
|
|
278
|
+
for (const param of userIds) {
|
|
279
|
+
associationDtos.push({
|
|
280
|
+
entity: 'IdentityModule:User',
|
|
281
|
+
recordId: param.id,
|
|
282
|
+
linkType: 'Manager',
|
|
283
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
284
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
return yield this._createLinks(this.moduleName, this.entityName, serviceAppointmentConfigId, associationDtos);
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
unLinkManagers(serviceAppointmentConfigId, linkedUserId) {
|
|
291
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, serviceAppointmentConfigId, linkedUserId);
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
linkSupervisors(serviceAppointmentConfigId, userIds) {
|
|
296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
297
|
+
const associationDtos = [];
|
|
298
|
+
for (const param of userIds) {
|
|
299
|
+
associationDtos.push({
|
|
300
|
+
entity: 'IdentityModule:User',
|
|
301
|
+
recordId: param.id,
|
|
302
|
+
linkType: 'Supervisor',
|
|
303
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
304
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
return yield this._createLinks(this.moduleName, this.entityName, serviceAppointmentConfigId, associationDtos);
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
unLinkSupervisors(serviceAppointmentConfigId, linkedUserId) {
|
|
311
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
312
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, serviceAppointmentConfigId, linkedUserId);
|
|
313
|
+
});
|
|
314
|
+
}
|
|
275
315
|
}
|
|
276
316
|
exports.ServiceAppointmentConfigApi = ServiceAppointmentConfigApi;
|
|
@@ -41,11 +41,10 @@ export declare class SplitOrderApi extends ApiProvider {
|
|
|
41
41
|
relatedAssociationId?: string;
|
|
42
42
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
43
43
|
unLinkSplitOrderOrders(splitOrderId: string, linkedOrderId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
44
|
-
|
|
45
|
-
linkSplitOrderSplitOrders(splitOrderId: string, splitOrderIds: {
|
|
44
|
+
linkOrderSplitOrders(splitOrderId: string, orderIds: {
|
|
46
45
|
id: string;
|
|
47
46
|
relationType?: RelationTypeEnum;
|
|
48
47
|
relatedAssociationId?: string;
|
|
49
48
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
50
|
-
|
|
49
|
+
unLinkOrderSplitOrders(splitOrderId: string, linkedOrderId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
51
50
|
}
|
|
@@ -142,20 +142,14 @@ class SplitOrderApi extends api_provider_1.ApiProvider {
|
|
|
142
142
|
return yield this._deleteLinks(this.moduleName, this.entityName, splitOrderId, linkedOrderId);
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
|
-
|
|
146
|
-
getSplitOrders(splitOrderId) {
|
|
147
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
-
return yield this._getLinks(this.moduleName, this.entityName, splitOrderId, 'SplitOrder');
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
linkSplitOrderSplitOrders(splitOrderId, splitOrderIds) {
|
|
145
|
+
linkOrderSplitOrders(splitOrderId, orderIds) {
|
|
152
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
153
147
|
const associationDtos = [];
|
|
154
|
-
for (const param of
|
|
148
|
+
for (const param of orderIds) {
|
|
155
149
|
associationDtos.push({
|
|
156
|
-
entity: 'OrderModule:
|
|
150
|
+
entity: 'OrderModule:Order',
|
|
157
151
|
recordId: param.id,
|
|
158
|
-
linkType: '
|
|
152
|
+
linkType: 'Order__SplitOrder',
|
|
159
153
|
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
160
154
|
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
161
155
|
});
|
|
@@ -163,9 +157,9 @@ class SplitOrderApi extends api_provider_1.ApiProvider {
|
|
|
163
157
|
return yield this._createLinks(this.moduleName, this.entityName, splitOrderId, associationDtos);
|
|
164
158
|
});
|
|
165
159
|
}
|
|
166
|
-
|
|
160
|
+
unLinkOrderSplitOrders(splitOrderId, linkedOrderId) {
|
|
167
161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, splitOrderId,
|
|
162
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, splitOrderId, linkedOrderId);
|
|
169
163
|
});
|
|
170
164
|
}
|
|
171
165
|
}
|
|
@@ -34,13 +34,6 @@ export declare class TransactionApi extends ApiProvider {
|
|
|
34
34
|
relatedAssociationId?: string;
|
|
35
35
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
36
36
|
unLinkTransactionPaymentMethods(transactionId: string, linkedPaymentMethodId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
37
|
-
getTransactions(transactionId: string): Promise<any>;
|
|
38
|
-
linkTransactionTransactions(transactionId: string, transactionIds: {
|
|
39
|
-
id: string;
|
|
40
|
-
relationType?: RelationTypeEnum;
|
|
41
|
-
relatedAssociationId?: string;
|
|
42
|
-
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
43
|
-
unLinkTransactionTransactions(transactionId: string, linkedTransactionId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
44
37
|
getInvoices(transactionId: string): Promise<any>;
|
|
45
38
|
linkInvoiceTransactions(transactionId: string, invoiceIds: {
|
|
46
39
|
id: string;
|
|
@@ -117,32 +117,6 @@ class TransactionApi extends api_provider_1.ApiProvider {
|
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
// Use this function when you want to return a single record
|
|
120
|
-
getTransactions(transactionId) {
|
|
121
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
-
return yield this._getLinks(this.moduleName, this.entityName, transactionId, 'Transaction');
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
linkTransactionTransactions(transactionId, transactionIds) {
|
|
126
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
-
const associationDtos = [];
|
|
128
|
-
for (const param of transactionIds) {
|
|
129
|
-
associationDtos.push({
|
|
130
|
-
entity: 'BillingModule:Transaction',
|
|
131
|
-
recordId: param.id,
|
|
132
|
-
linkType: 'Transaction__Transaction',
|
|
133
|
-
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
134
|
-
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
return yield this._createLinks(this.moduleName, this.entityName, transactionId, associationDtos);
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
unLinkTransactionTransactions(transactionId, linkedTransactionId) {
|
|
141
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, transactionId, linkedTransactionId);
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
// Use this function when you want to return a single record
|
|
146
120
|
getInvoices(transactionId) {
|
|
147
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
148
122
|
return yield this._getLinks(this.moduleName, this.entityName, transactionId, 'Invoice');
|
|
@@ -104,4 +104,22 @@ export declare class UserApi extends ApiProvider {
|
|
|
104
104
|
relatedAssociationId?: string;
|
|
105
105
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
106
106
|
unLinkTeamUsers(userId: string, linkedTeamId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
107
|
+
linkWorkOrderOwners(userId: string, workOrderIds: {
|
|
108
|
+
id: string;
|
|
109
|
+
relationType?: RelationTypeEnum;
|
|
110
|
+
relatedAssociationId?: string;
|
|
111
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
112
|
+
unLinkWorkOrderOwners(userId: string, linkedWorkOrderId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
113
|
+
linkManagers(userId: string, serviceAppointmentConfigIds: {
|
|
114
|
+
id: string;
|
|
115
|
+
relationType?: RelationTypeEnum;
|
|
116
|
+
relatedAssociationId?: string;
|
|
117
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
118
|
+
unLinkManagers(userId: string, linkedServiceAppointmentConfigId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
119
|
+
linkSupervisors(userId: string, serviceAppointmentConfigIds: {
|
|
120
|
+
id: string;
|
|
121
|
+
relationType?: RelationTypeEnum;
|
|
122
|
+
relatedAssociationId?: string;
|
|
123
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
124
|
+
unLinkSupervisors(userId: string, linkedServiceAppointmentConfigId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
107
125
|
}
|
|
@@ -376,5 +376,65 @@ class UserApi extends api_provider_1.ApiProvider {
|
|
|
376
376
|
return yield this._deleteLinks(this.moduleName, this.entityName, userId, linkedTeamId);
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
|
+
linkWorkOrderOwners(userId, workOrderIds) {
|
|
380
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
381
|
+
const associationDtos = [];
|
|
382
|
+
for (const param of workOrderIds) {
|
|
383
|
+
associationDtos.push({
|
|
384
|
+
entity: 'FieldServiceModule:WorkOrder',
|
|
385
|
+
recordId: param.id,
|
|
386
|
+
linkType: 'WorkOrderOwner',
|
|
387
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
388
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
return yield this._createLinks(this.moduleName, this.entityName, userId, associationDtos);
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
unLinkWorkOrderOwners(userId, linkedWorkOrderId) {
|
|
395
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
396
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, userId, linkedWorkOrderId);
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
linkManagers(userId, serviceAppointmentConfigIds) {
|
|
400
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
401
|
+
const associationDtos = [];
|
|
402
|
+
for (const param of serviceAppointmentConfigIds) {
|
|
403
|
+
associationDtos.push({
|
|
404
|
+
entity: 'FieldServiceModule:ServiceAppointmentConfig',
|
|
405
|
+
recordId: param.id,
|
|
406
|
+
linkType: 'Manager',
|
|
407
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
408
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
return yield this._createLinks(this.moduleName, this.entityName, userId, associationDtos);
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
unLinkManagers(userId, linkedServiceAppointmentConfigId) {
|
|
415
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
416
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, userId, linkedServiceAppointmentConfigId);
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
linkSupervisors(userId, serviceAppointmentConfigIds) {
|
|
420
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
421
|
+
const associationDtos = [];
|
|
422
|
+
for (const param of serviceAppointmentConfigIds) {
|
|
423
|
+
associationDtos.push({
|
|
424
|
+
entity: 'FieldServiceModule:ServiceAppointmentConfig',
|
|
425
|
+
recordId: param.id,
|
|
426
|
+
linkType: 'Supervisor',
|
|
427
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
428
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
return yield this._createLinks(this.moduleName, this.entityName, userId, associationDtos);
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
unLinkSupervisors(userId, linkedServiceAppointmentConfigId) {
|
|
435
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
436
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, userId, linkedServiceAppointmentConfigId);
|
|
437
|
+
});
|
|
438
|
+
}
|
|
379
439
|
}
|
|
380
440
|
exports.UserApi = UserApi;
|
|
@@ -69,13 +69,13 @@ export declare class WorkOrderApi extends ApiProvider {
|
|
|
69
69
|
relatedAssociationId?: string;
|
|
70
70
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
71
71
|
unLinkWorkOrderOrderItems(workOrderId: string, linkedOrderItemId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
72
|
-
|
|
73
|
-
linkAccountWorkOrders(workOrderId: string,
|
|
72
|
+
getAccounts(workOrderId: string): Promise<any>;
|
|
73
|
+
linkAccountWorkOrders(workOrderId: string, accountIds: {
|
|
74
74
|
id: string;
|
|
75
75
|
relationType?: RelationTypeEnum;
|
|
76
76
|
relatedAssociationId?: string;
|
|
77
77
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
78
|
-
unLinkAccountWorkOrders(workOrderId: string,
|
|
78
|
+
unLinkAccountWorkOrders(workOrderId: string, linkedAccountId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
79
79
|
getChangeReasons(workOrderId: string): Promise<any>;
|
|
80
80
|
linkWorkOrderChangeReasons(workOrderId: string, changeReasonIds: {
|
|
81
81
|
id: string;
|
|
@@ -125,6 +125,13 @@ export declare class WorkOrderApi extends ApiProvider {
|
|
|
125
125
|
relatedAssociationId?: string;
|
|
126
126
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
127
127
|
unLinkWorkOrderServiceAppointments(workOrderId: string, linkedServiceAppointmentId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
128
|
+
getPaymentMethodRefunds(workOrderId: string): Promise<any>;
|
|
129
|
+
linkPaymentMethodRefundWorkOrders(workOrderId: string, paymentMethodRefundIds: {
|
|
130
|
+
id: string;
|
|
131
|
+
relationType?: RelationTypeEnum;
|
|
132
|
+
relatedAssociationId?: string;
|
|
133
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
134
|
+
unLinkPaymentMethodRefundWorkOrders(workOrderId: string, linkedPaymentMethodRefundId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
128
135
|
getLeads(workOrderId: string): Promise<any>;
|
|
129
136
|
linkWorkOrderLeads(workOrderId: string, leadIds: {
|
|
130
137
|
id: string;
|
|
@@ -160,6 +167,13 @@ export declare class WorkOrderApi extends ApiProvider {
|
|
|
160
167
|
relatedAssociationId?: string;
|
|
161
168
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
162
169
|
unLinkWorkOrderYfEquipmentCollections(workOrderId: string, linkedYfEquipmentCollectionId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
170
|
+
getOrders(workOrderId: string): Promise<any>;
|
|
171
|
+
linkOrderWorkOrders(workOrderId: string, orderIds: {
|
|
172
|
+
id: string;
|
|
173
|
+
relationType?: RelationTypeEnum;
|
|
174
|
+
relatedAssociationId?: string;
|
|
175
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
176
|
+
unLinkOrderWorkOrders(workOrderId: string, linkedOrderId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
163
177
|
getServiceAppointmentConfigs(workOrderId: string): Promise<any>;
|
|
164
178
|
linkWorkOrderServiceAppointmentConfigs(workOrderId: string, serviceAppointmentConfigIds: {
|
|
165
179
|
id: string;
|
|
@@ -181,6 +195,27 @@ export declare class WorkOrderApi extends ApiProvider {
|
|
|
181
195
|
relatedAssociationId?: string;
|
|
182
196
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
183
197
|
unLinkWorkOrderRemediationRequiredReasons(workOrderId: string, linkedRemediationRequiredReasonId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
198
|
+
getOrderRemediationTasks(workOrderId: string): Promise<any>;
|
|
199
|
+
linkOrderRemediationTaskWorkOrders(workOrderId: string, orderRemediationTaskIds: {
|
|
200
|
+
id: string;
|
|
201
|
+
relationType?: RelationTypeEnum;
|
|
202
|
+
relatedAssociationId?: string;
|
|
203
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
204
|
+
unLinkOrderRemediationTaskWorkOrders(workOrderId: string, linkedOrderRemediationTaskId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
205
|
+
getCases(workOrderId: string): Promise<any>;
|
|
206
|
+
linkCaseWorkOrders(workOrderId: string, caseIds: {
|
|
207
|
+
id: string;
|
|
208
|
+
relationType?: RelationTypeEnum;
|
|
209
|
+
relatedAssociationId?: string;
|
|
210
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
211
|
+
unLinkCaseWorkOrders(workOrderId: string, linkedCaseId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
212
|
+
getCalls(workOrderId: string): Promise<any>;
|
|
213
|
+
linkCallWorkOrders(workOrderId: string, callIds: {
|
|
214
|
+
id: string;
|
|
215
|
+
relationType?: RelationTypeEnum;
|
|
216
|
+
relatedAssociationId?: string;
|
|
217
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
218
|
+
unLinkCallWorkOrders(workOrderId: string, linkedCallId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
184
219
|
getPermissionToFails(workOrderId: string): Promise<any>;
|
|
185
220
|
linkWorkOrderPermissionToFails(workOrderId: string, permissionToFailIds: {
|
|
186
221
|
id: string;
|
|
@@ -230,6 +265,12 @@ export declare class WorkOrderApi extends ApiProvider {
|
|
|
230
265
|
relatedAssociationId?: string;
|
|
231
266
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
232
267
|
unLinkWorkOrderTeams(workOrderId: string, linkedTeamId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
268
|
+
linkWorkOrderOwners(workOrderId: string, userIds: {
|
|
269
|
+
id: string;
|
|
270
|
+
relationType?: RelationTypeEnum;
|
|
271
|
+
relatedAssociationId?: string;
|
|
272
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
273
|
+
unLinkWorkOrderOwners(workOrderId: string, linkedUserId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
233
274
|
getNetomniaFtthServiceVisitSheets(workOrderId: string): Promise<any>;
|
|
234
275
|
linkWorkOrderNetomniaFtthServiceVisitSheets(workOrderId: string, netomniaFtthServiceVisitSheetIds: {
|
|
235
276
|
id: string;
|