@workwell-global/toolkit 1.1.65 → 1.1.66
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/models/schemas/bff/assignmentChangeRequestDetail/SGetAssignmentChangeRequestDetailBFF.d.ts +25 -15
- package/dist/models/schemas/bff/assignmentChangeRequestDetail/SGetAssignmentChangeRequestDetailBFF.d.ts.map +1 -1
- package/dist/models/schemas/bff/assignmentChangeRequestDetail/SGetAssignmentChangeRequestDetailBFF.js +17 -7
- package/dist/models/schemas/bff/assignmentChangeRequestDetail/SGetAssignmentChangeRequestDetailBFF.js.map +1 -1
- package/dist/models/schemas/bff/engagementEdit/SPostEngagementEdit.d.ts +2 -2
- package/package.json +1 -1
|
@@ -283,7 +283,7 @@ export declare const SGetACRDetailBFF: z.ZodEffects<z.ZodObject<Pick<import("../
|
|
|
283
283
|
readonly entityKey: "contractorDocument";
|
|
284
284
|
readonly isArray: true;
|
|
285
285
|
};
|
|
286
|
-
}, false>, "status" | "startDate" | "endDate" | "changerequestId" | "crReference" | "changeTypes" | "legalStatus" | "legalStatusComment" | "proposedEndDate" | "proposedStartDate" | "reasonForChange">, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
286
|
+
}, false>, "status" | "startDate" | "endDate" | "changerequestId" | "crReference" | "changeTypes" | "legalStatus" | "legalStatusComment" | "requestedDate" | "proposedEndDate" | "proposedStartDate" | "reasonForChange">, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
287
287
|
changerequestId: string;
|
|
288
288
|
status?: number | null | undefined;
|
|
289
289
|
startDate?: string | null | undefined;
|
|
@@ -292,6 +292,7 @@ export declare const SGetACRDetailBFF: z.ZodEffects<z.ZodObject<Pick<import("../
|
|
|
292
292
|
changeTypes?: number[] | null | undefined;
|
|
293
293
|
legalStatus?: number | null | undefined;
|
|
294
294
|
legalStatusComment?: string | null | undefined;
|
|
295
|
+
requestedDate?: string | null | undefined;
|
|
295
296
|
proposedEndDate?: string | null | undefined;
|
|
296
297
|
proposedStartDate?: string | null | undefined;
|
|
297
298
|
reasonForChange?: string | null | undefined;
|
|
@@ -304,28 +305,35 @@ export declare const SGetACRDetailBFF: z.ZodEffects<z.ZodObject<Pick<import("../
|
|
|
304
305
|
changeTypes?: number[] | null | undefined;
|
|
305
306
|
legalStatus?: number | null | undefined;
|
|
306
307
|
legalStatusComment?: string | null | undefined;
|
|
308
|
+
requestedDate?: string | null | undefined;
|
|
307
309
|
proposedEndDate?: string | null | undefined;
|
|
308
310
|
proposedStartDate?: string | null | undefined;
|
|
309
311
|
reasonForChange?: string | null | undefined;
|
|
310
312
|
}>, {
|
|
311
|
-
changeTypes:
|
|
313
|
+
changeTypes: number[] | null | undefined;
|
|
314
|
+
changesRequested: ({
|
|
312
315
|
changeType: 24;
|
|
313
|
-
changes:
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
})[];
|
|
316
|
+
changes: {
|
|
317
|
+
originalValue: {
|
|
318
|
+
key: string;
|
|
319
|
+
value: string | null;
|
|
320
|
+
};
|
|
321
|
+
proposedValue: {
|
|
322
|
+
key: string;
|
|
323
|
+
value: string | null;
|
|
324
|
+
};
|
|
325
|
+
}[];
|
|
324
326
|
} | {
|
|
325
327
|
changeType: 1 | 23;
|
|
326
328
|
changes: {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
+
originalValue: {
|
|
330
|
+
key: string;
|
|
331
|
+
value: string | null;
|
|
332
|
+
};
|
|
333
|
+
proposedValue: {
|
|
334
|
+
key: string;
|
|
335
|
+
value: string | null;
|
|
336
|
+
};
|
|
329
337
|
}[];
|
|
330
338
|
})[] | undefined;
|
|
331
339
|
changerequestId: string;
|
|
@@ -333,6 +341,7 @@ export declare const SGetACRDetailBFF: z.ZodEffects<z.ZodObject<Pick<import("../
|
|
|
333
341
|
crReference?: string | null | undefined;
|
|
334
342
|
legalStatus?: number | null | undefined;
|
|
335
343
|
legalStatusComment?: string | null | undefined;
|
|
344
|
+
requestedDate?: string | null | undefined;
|
|
336
345
|
reasonForChange?: string | null | undefined;
|
|
337
346
|
}, {
|
|
338
347
|
changerequestId: string;
|
|
@@ -343,6 +352,7 @@ export declare const SGetACRDetailBFF: z.ZodEffects<z.ZodObject<Pick<import("../
|
|
|
343
352
|
changeTypes?: number[] | null | undefined;
|
|
344
353
|
legalStatus?: number | null | undefined;
|
|
345
354
|
legalStatusComment?: string | null | undefined;
|
|
355
|
+
requestedDate?: string | null | undefined;
|
|
346
356
|
proposedEndDate?: string | null | undefined;
|
|
347
357
|
proposedStartDate?: string | null | undefined;
|
|
348
358
|
reasonForChange?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SGetAssignmentChangeRequestDetailBFF.d.ts","sourceRoot":"","sources":["../../../../../src/models/schemas/bff/assignmentChangeRequestDetail/SGetAssignmentChangeRequestDetailBFF.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"SGetAssignmentChangeRequestDetailBFF.d.ts","sourceRoot":"","sources":["../../../../../src/models/schemas/bff/assignmentChangeRequestDetail/SGetAssignmentChangeRequestDetailBFF.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoE3B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|
|
@@ -9,6 +9,7 @@ export const SGetACRDetailBFF = ChangeRequestEntity.SResponseAPI.pick({
|
|
|
9
9
|
legalStatus: true,
|
|
10
10
|
legalStatusComment: true,
|
|
11
11
|
reasonForChange: true,
|
|
12
|
+
requestedDate: true,
|
|
12
13
|
//type specific
|
|
13
14
|
startDate: true,
|
|
14
15
|
proposedStartDate: true,
|
|
@@ -17,26 +18,35 @@ export const SGetACRDetailBFF = ChangeRequestEntity.SResponseAPI.pick({
|
|
|
17
18
|
}).transform(data => {
|
|
18
19
|
const { startDate, proposedStartDate, endDate, proposedEndDate, changeTypes, ...rest } = data;
|
|
19
20
|
const { extendEndDate, amendStartDate, earlyEndAorTerminationEnactedByClient, } = ChangeRequest.Options.ChangeType;
|
|
21
|
+
const startChange = {
|
|
22
|
+
originalValue: { key: 'startDate', value: startDate ?? null },
|
|
23
|
+
proposedValue: {
|
|
24
|
+
key: 'proposedStartDate',
|
|
25
|
+
value: proposedStartDate ?? null,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
const endChange = {
|
|
29
|
+
originalValue: { key: 'endDate', value: endDate ?? null },
|
|
30
|
+
proposedValue: { key: 'proposedEndDate', value: proposedEndDate ?? null },
|
|
31
|
+
};
|
|
20
32
|
return {
|
|
21
33
|
...rest,
|
|
22
|
-
changeTypes
|
|
34
|
+
changeTypes,
|
|
35
|
+
changesRequested: changeTypes?.flatMap(changeType => {
|
|
23
36
|
if (changeType === amendStartDate) {
|
|
24
37
|
return {
|
|
25
38
|
changeType,
|
|
26
|
-
changes: [
|
|
27
|
-
{ startDate, proposedStartDate },
|
|
28
|
-
{ endDate, proposedEndDate },
|
|
29
|
-
],
|
|
39
|
+
changes: [startChange, endChange],
|
|
30
40
|
};
|
|
31
41
|
}
|
|
32
42
|
if (changeType === extendEndDate ||
|
|
33
43
|
changeType === earlyEndAorTerminationEnactedByClient) {
|
|
34
44
|
return {
|
|
35
45
|
changeType,
|
|
36
|
-
changes: [
|
|
46
|
+
changes: [endChange],
|
|
37
47
|
};
|
|
38
48
|
}
|
|
39
|
-
|
|
49
|
+
return [];
|
|
40
50
|
}),
|
|
41
51
|
};
|
|
42
52
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SGetAssignmentChangeRequestDetailBFF.js","sourceRoot":"","sources":["../../../../../src/models/schemas/bff/assignmentChangeRequestDetail/SGetAssignmentChangeRequestDetailBFF.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAA;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,CAAC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC;IACpE,eAAe,EAAE,IAAI;IACrB,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,IAAI;IACjB,MAAM,EAAE,IAAI;IACZ,WAAW,EAAE,IAAI;IACjB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"SGetAssignmentChangeRequestDetailBFF.js","sourceRoot":"","sources":["../../../../../src/models/schemas/bff/assignmentChangeRequestDetail/SGetAssignmentChangeRequestDetailBFF.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAA;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,CAAC,MAA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SAAS,CAAC;iBAClC,CAAA;YACH,CAAC;YAED,IACE,UAAU,KAAK,aAAa;gBAC5B,UAAU,KAAK,qCAAqC,EACpD,CAAC;gBACD,OAAO;oBACL,UAAU;oBACV,OAAO,EAAE,CAAC,SAAS,CAAC;iBACrB,CAAA;YACH,CAAC;YAED,OAAO,EAAE,CAAA;QACX,CAAC,CAAC;KACH,CAAA;AACH,CAAC,CAAC,CAAA"}
|
|
@@ -191,12 +191,12 @@ export declare const SPostEarlyEndBFF: z.ZodObject<{
|
|
|
191
191
|
}>>;
|
|
192
192
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
193
193
|
proposedEndDate?: string | null | undefined;
|
|
194
|
-
requestedById?: string | null | undefined;
|
|
195
194
|
changeType?: 1 | 2 | 3 | 4 | 6 | 7 | 5 | 10 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 17 | 18 | 19 | 23 | 24 | 25 | undefined;
|
|
195
|
+
requestedById?: string | null | undefined;
|
|
196
196
|
}, {
|
|
197
197
|
proposedEndDate?: string | null | undefined;
|
|
198
|
-
requestedById?: string | null | undefined;
|
|
199
198
|
changeType?: 1 | 2 | 3 | 4 | 6 | 7 | 5 | 10 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 17 | 18 | 19 | 23 | 24 | 25 | undefined;
|
|
199
|
+
requestedById?: string | null | undefined;
|
|
200
200
|
}>;
|
|
201
201
|
export type TPostExtensionBFF = z.infer<typeof SPostExtensionBFF>;
|
|
202
202
|
export type TPostEarlyEndBFF = z.infer<typeof SPostEarlyEndBFF>;
|