@workwell-global/toolkit 1.1.35 → 1.1.37

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.
Files changed (51) hide show
  1. package/dist/models/schemas/api/activityPointer/DActivityPointerAPI.d.ts +5 -0
  2. package/dist/models/schemas/api/activityPointer/DActivityPointerAPI.d.ts.map +1 -1
  3. package/dist/models/schemas/api/activityPointer/DActivityPointerAPI.js +2 -0
  4. package/dist/models/schemas/api/activityPointer/DActivityPointerAPI.js.map +1 -1
  5. package/dist/models/schemas/api/activityPointer/TActivityPointerAPI.d.ts +11 -1
  6. package/dist/models/schemas/api/activityPointer/TActivityPointerAPI.d.ts.map +1 -1
  7. package/dist/models/schemas/api/activityPointer/index.d.ts +12 -1
  8. package/dist/models/schemas/api/activityPointer/index.d.ts.map +1 -1
  9. package/dist/models/schemas/api/changeRequest/DChangeRequestAPI.d.ts +9 -0
  10. package/dist/models/schemas/api/changeRequest/DChangeRequestAPI.d.ts.map +1 -1
  11. package/dist/models/schemas/api/changeRequest/DChangeRequestAPI.js +9 -0
  12. package/dist/models/schemas/api/changeRequest/DChangeRequestAPI.js.map +1 -1
  13. package/dist/models/schemas/api/changeRequest/TChangeRequestAPI.d.ts +41 -3
  14. package/dist/models/schemas/api/changeRequest/TChangeRequestAPI.d.ts.map +1 -1
  15. package/dist/models/schemas/api/changeRequest/TChangeRequestAPI.js +7 -1
  16. package/dist/models/schemas/api/changeRequest/TChangeRequestAPI.js.map +1 -1
  17. package/dist/models/schemas/api/changeRequest/index.d.ts +64 -0
  18. package/dist/models/schemas/api/changeRequest/index.d.ts.map +1 -1
  19. package/dist/models/schemas/api/changeRequest/index.js +1 -0
  20. package/dist/models/schemas/api/changeRequest/index.js.map +1 -1
  21. package/dist/models/schemas/api/webMessage/webMessage.test.js +1 -0
  22. package/dist/models/schemas/api/webMessage/webMessage.test.js.map +1 -1
  23. package/dist/models/schemas/bff/caseDetail/SGetCaseActivityBFF.d.ts +6 -0
  24. package/dist/models/schemas/bff/caseDetail/SGetCaseActivityBFF.d.ts.map +1 -1
  25. package/dist/models/schemas/bff/caseDetail/SGetCaseActivityBFF.js +1 -0
  26. package/dist/models/schemas/bff/caseDetail/SGetCaseActivityBFF.js.map +1 -1
  27. package/dist/models/schemas/bff/caseDetail/SGetCaseBFF.d.ts +8 -0
  28. package/dist/models/schemas/bff/caseDetail/SGetCaseBFF.d.ts.map +1 -1
  29. package/dist/models/schemas/bff/casesMetrics/SGetCasesMetricsBFF.d.ts +34 -0
  30. package/dist/models/schemas/bff/casesMetrics/SGetCasesMetricsBFF.d.ts.map +1 -0
  31. package/dist/models/schemas/bff/casesMetrics/SGetCasesMetricsBFF.js +13 -0
  32. package/dist/models/schemas/bff/casesMetrics/SGetCasesMetricsBFF.js.map +1 -0
  33. package/dist/models/schemas/bff/casesMetrics/index.d.ts +2 -0
  34. package/dist/models/schemas/bff/casesMetrics/index.d.ts.map +1 -0
  35. package/dist/models/schemas/bff/casesMetrics/index.js +2 -0
  36. package/dist/models/schemas/bff/casesMetrics/index.js.map +1 -0
  37. package/dist/models/schemas/bff/changeRequest/SGetChangeRequestBFF.d.ts +337 -3
  38. package/dist/models/schemas/bff/changeRequest/SGetChangeRequestBFF.d.ts.map +1 -1
  39. package/dist/models/schemas/bff/changeRequest/SGetChangeRequestBFF.js +17 -6
  40. package/dist/models/schemas/bff/changeRequest/SGetChangeRequestBFF.js.map +1 -1
  41. package/dist/models/schemas/bff/changeRequest/SGetChangeRequestDocumentBFF.d.ts +298 -0
  42. package/dist/models/schemas/bff/changeRequest/SGetChangeRequestDocumentBFF.d.ts.map +1 -0
  43. package/dist/models/schemas/bff/changeRequest/SGetChangeRequestDocumentBFF.js +8 -0
  44. package/dist/models/schemas/bff/changeRequest/SGetChangeRequestDocumentBFF.js.map +1 -0
  45. package/dist/models/schemas/bff/changeRequest/SPostExtensionBFF.d.ts +1 -0
  46. package/dist/models/schemas/bff/changeRequest/SPostExtensionBFF.d.ts.map +1 -1
  47. package/dist/models/schemas/bff/index.d.ts +1 -0
  48. package/dist/models/schemas/bff/index.d.ts.map +1 -1
  49. package/dist/models/schemas/bff/index.js +1 -0
  50. package/dist/models/schemas/bff/index.js.map +1 -1
  51. package/package.json +2 -1
@@ -43,11 +43,313 @@ export declare const SGetChangeRequestBFF: z.ZodEffects<z.ZodObject<Pick<{
43
43
  readonly proposedWorkCountryValue: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
44
44
  readonly solutionTypeValue: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
45
45
  readonly proposedSolutionTypeValue: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
46
+ readonly documents: z.ZodOptional<z.ZodTypeAny>;
46
47
  readonly reasonForChange: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
47
- }, "source" | "status" | "endDate" | "changeApplies" | "changeType" | "legalStatus" | "relatedAssignmentValue" | "requestedDate" | "requestedByValue" | "assignmentStageAtSubmission" | "proposedEndDate">, z.UnknownKeysParam, z.ZodTypeAny, {
48
+ }, "source" | "status" | "endDate" | "changeApplies" | "changeType" | "legalStatus" | "relatedAssignmentValue" | "requestedDate" | "requestedByValue" | "assignmentStageAtSubmission" | "proposedEndDate"> & {
49
+ documents: z.ZodOptional<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<import("../../api/_entityTools/SchemasEntityTools.js").TPrettyShape<{
50
+ readonly _ownerid_value: {
51
+ readonly pretty: "ownerIdValue";
52
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ };
54
+ readonly _owningbusinessunit_value: {
55
+ readonly pretty: "owningBusinessUnitValue";
56
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ };
58
+ readonly _owningteam_value: {
59
+ readonly pretty: "owningTeamValue";
60
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ };
62
+ readonly _owninguser_value: {
63
+ readonly pretty: "owningUserValue";
64
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ };
66
+ readonly '@odata.etag': {
67
+ readonly pretty: "etag";
68
+ readonly type: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, string | null | undefined>;
69
+ };
70
+ readonly versionnumber: {
71
+ readonly pretty: "versionNumber";
72
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
73
+ };
74
+ readonly _createdby_value: {
75
+ readonly pretty: "createdByValue";
76
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ };
78
+ readonly createdon: {
79
+ readonly pretty: "createdOn";
80
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
+ };
82
+ readonly _createdonbehalfby_value: {
83
+ readonly pretty: "createdOnBehalfByValue";
84
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ };
86
+ readonly _modifiedby_value: {
87
+ readonly pretty: "modifiedByValue";
88
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ };
90
+ readonly modifiedon: {
91
+ readonly pretty: "modifiedOn";
92
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
+ };
94
+ readonly _modifiedonbehalfby_value: {
95
+ readonly pretty: "modifiedOnBehalfByValue";
96
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ };
98
+ readonly statecode: {
99
+ readonly pretty: "stateCode";
100
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
101
+ };
102
+ readonly statuscode: {
103
+ readonly pretty: "statusCode";
104
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
105
+ };
106
+ readonly importsequencenumber: {
107
+ readonly pretty: "importSequenceNumber";
108
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
109
+ };
110
+ readonly overriddencreatedon: {
111
+ readonly pretty: "overriddenCreatedOn";
112
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ };
114
+ readonly timezoneruleversionnumber: {
115
+ readonly pretty: "timezoneRuleVersionNumber";
116
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
117
+ };
118
+ readonly utcconversiontimezonecode: {
119
+ readonly pretty: "utcConversionTimezoneCode";
120
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
121
+ };
122
+ } & {
123
+ readonly _ww_contractor_value: {
124
+ readonly relationshipName: "ww_Contractor";
125
+ readonly entity: "contacts";
126
+ readonly pretty: "contractorValue";
127
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
128
+ };
129
+ readonly _ww_directorapproved_value: {
130
+ readonly relationshipName: "ww_DirectorApproved";
131
+ readonly entity: "contacts";
132
+ readonly pretty: "directorApprovedValue";
133
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
+ };
135
+ readonly _ww_scats_contractingContractor_value: {
136
+ readonly pretty: "scatsContractingContractorValue";
137
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ };
139
+ readonly ww_contractordocumentid: {
140
+ readonly pretty: "contractorDocumentId";
141
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
+ };
143
+ readonly ww_customeripaddress: {
144
+ readonly pretty: "customerIpAddress";
145
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
+ };
147
+ readonly ww_directorapprovalrequired: {
148
+ readonly pretty: "directorApprovalRequired";
149
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
150
+ };
151
+ readonly ww_directorapproveddate: {
152
+ readonly pretty: "directorApprovedDate";
153
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
+ };
155
+ readonly ww_documentid: {
156
+ readonly pretty: "documentId";
157
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
158
+ };
159
+ readonly ww_documentreceiveddate: {
160
+ readonly pretty: "documentReceivedDate";
161
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
+ };
163
+ readonly ww_documentstatus: {
164
+ readonly pretty: "documentStatus";
165
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
166
+ };
167
+ readonly ww_documentdisplay: {
168
+ readonly pretty: "documentDisplay";
169
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
170
+ };
171
+ readonly ww_file: {
172
+ readonly pretty: "file";
173
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodType<File, z.ZodTypeDef, File>>>;
174
+ };
175
+ readonly ww_file_name: {
176
+ readonly pretty: "fileName";
177
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
+ };
179
+ readonly ww_requirescontractorsignature: {
180
+ readonly pretty: "requiresContractorSignature";
181
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
182
+ };
183
+ readonly ww_signedon: {
184
+ readonly pretty: "signedOn";
185
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
186
+ };
187
+ readonly ww_type: {
188
+ readonly pretty: "type";
189
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
190
+ };
191
+ readonly ww_uploadedfromweb: {
192
+ readonly pretty: "uploadedFromWeb";
193
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
194
+ };
195
+ readonly ww_workerapproved: {
196
+ readonly pretty: "workerApproved";
197
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
198
+ };
199
+ readonly ww_Contractor: {
200
+ readonly pretty: "contractor";
201
+ readonly entityKey: "contact";
202
+ };
203
+ readonly ww_DirectorApproved: {
204
+ readonly pretty: "directorApproved";
205
+ readonly entityKey: "contact";
206
+ };
207
+ readonly _ww_account_value: {
208
+ readonly pretty: "accountValue";
209
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
+ };
211
+ readonly ww_attachment: {
212
+ readonly pretty: "attachment";
213
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
214
+ };
215
+ readonly ww_attachment_name: {
216
+ readonly pretty: "attachmentName";
217
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
+ };
219
+ readonly ww_category: {
220
+ readonly pretty: "category";
221
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
222
+ };
223
+ readonly ww_date6catssigned: {
224
+ readonly pretty: "date6catsSigned";
225
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
+ };
227
+ readonly ww_dateagencysigned: {
228
+ readonly pretty: "dateAgencySigned";
229
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
+ };
231
+ readonly ww_datereceived: {
232
+ readonly pretty: "dateReceived";
233
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
234
+ };
235
+ readonly ww_datereviewed: {
236
+ readonly pretty: "dateReviewed";
237
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
238
+ };
239
+ readonly ww_documentrefnumber: {
240
+ readonly pretty: "documentRefNumber";
241
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
+ };
243
+ readonly ww_documenttype: {
244
+ readonly pretty: "documentType";
245
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
246
+ };
247
+ readonly ww_ipaddress: {
248
+ readonly pretty: "ipAddress";
249
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
+ };
251
+ readonly ww_name: {
252
+ readonly pretty: "name";
253
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
254
+ };
255
+ readonly ww_signature: {
256
+ readonly pretty: "signature";
257
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
258
+ };
259
+ readonly ww_signature_timestamp: {
260
+ readonly pretty: "signatureTimestamp";
261
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
262
+ };
263
+ readonly ww_signature_url: {
264
+ readonly pretty: "signatureUrl";
265
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
266
+ };
267
+ readonly ww_signatureid: {
268
+ readonly pretty: "signatureId";
269
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
+ };
271
+ readonly ww_validfrom: {
272
+ readonly pretty: "validFrom";
273
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
274
+ };
275
+ readonly ww_validto: {
276
+ readonly pretty: "validTo";
277
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
278
+ };
279
+ readonly ww_documentreceivedtime: {
280
+ readonly pretty: "documentReceivedTime";
281
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
282
+ };
283
+ readonly ww_source: {
284
+ readonly pretty: "source";
285
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
286
+ };
287
+ readonly _ww_changerequestdocuments_value: {
288
+ readonly pretty: "changeRequestDocumentsValue";
289
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
290
+ };
291
+ readonly ww_identityverificationstatus: {
292
+ readonly pretty: "identityVerificationStatus";
293
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
294
+ };
295
+ readonly _ww_simulation_value: {
296
+ readonly pretty: "simulationValue";
297
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
298
+ };
299
+ readonly ww_employmenttype: {
300
+ readonly pretty: "employmentType";
301
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
+ };
303
+ readonly _ww_assignmentextensions_value: {
304
+ readonly pretty: "assignmentExtensionsValue";
305
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
+ };
307
+ readonly ww_reasons: {
308
+ readonly pretty: "reasons";
309
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
310
+ };
311
+ readonly ww_contracttype: {
312
+ readonly pretty: "contractType";
313
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
314
+ };
315
+ readonly ww_requiredbeforelegalapproval: {
316
+ readonly pretty: "requiredBeforeLegalApproval";
317
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
318
+ };
319
+ readonly ww_value: {
320
+ readonly pretty: "value";
321
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
322
+ };
323
+ readonly ww_limitedcompanyname: {
324
+ readonly pretty: "limitedCompanyName";
325
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
326
+ };
327
+ readonly ww_config: {
328
+ readonly pretty: "config";
329
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
330
+ };
331
+ readonly ww_identityverificationurl: {
332
+ readonly pretty: "identityVerificationUrl";
333
+ readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
334
+ };
335
+ }>, "name" | "contractorDocumentId" | "fileName">, z.UnknownKeysParam, z.ZodTypeAny, {
336
+ name?: string | null | undefined;
337
+ contractorDocumentId?: string | null | undefined;
338
+ fileName?: string | null | undefined;
339
+ }, {
340
+ name?: string | null | undefined;
341
+ contractorDocumentId?: string | null | undefined;
342
+ fileName?: string | null | undefined;
343
+ }>>>, "many">>;
344
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
48
345
  source?: number | null | undefined;
49
346
  status?: number | null | undefined;
50
347
  endDate?: string | null | undefined;
348
+ documents?: ({
349
+ name?: string | null | undefined;
350
+ contractorDocumentId?: string | null | undefined;
351
+ fileName?: string | null | undefined;
352
+ } | null | undefined)[] | undefined;
51
353
  changeApplies?: number | null | undefined;
52
354
  changeType?: number | null | undefined;
53
355
  legalStatus?: number | null | undefined;
@@ -60,6 +362,11 @@ export declare const SGetChangeRequestBFF: z.ZodEffects<z.ZodObject<Pick<{
60
362
  source?: number | null | undefined;
61
363
  status?: number | null | undefined;
62
364
  endDate?: string | null | undefined;
365
+ documents?: ({
366
+ name?: string | null | undefined;
367
+ contractorDocumentId?: string | null | undefined;
368
+ fileName?: string | null | undefined;
369
+ } | null | undefined)[] | undefined;
63
370
  changeApplies?: number | null | undefined;
64
371
  changeType?: number | null | undefined;
65
372
  legalStatus?: number | null | undefined;
@@ -72,6 +379,11 @@ export declare const SGetChangeRequestBFF: z.ZodEffects<z.ZodObject<Pick<{
72
379
  source?: number | null | undefined;
73
380
  status?: number | null | undefined;
74
381
  endDate?: string | null | undefined;
382
+ documents?: ({
383
+ name?: string | null | undefined;
384
+ contractorDocumentId?: string | null | undefined;
385
+ fileName?: string | null | undefined;
386
+ } | null | undefined)[] | undefined;
75
387
  changeApplies?: number | null | undefined;
76
388
  changeType?: number | null | undefined;
77
389
  legalStatus?: number | null | undefined;
@@ -84,6 +396,11 @@ export declare const SGetChangeRequestBFF: z.ZodEffects<z.ZodObject<Pick<{
84
396
  source?: number | null | undefined;
85
397
  status?: number | null | undefined;
86
398
  endDate?: string | null | undefined;
399
+ documents?: ({
400
+ name?: string | null | undefined;
401
+ contractorDocumentId?: string | null | undefined;
402
+ fileName?: string | null | undefined;
403
+ } | null | undefined)[] | undefined;
87
404
  changeApplies?: number | null | undefined;
88
405
  changeType?: number | null | undefined;
89
406
  legalStatus?: number | null | undefined;
@@ -96,18 +413,35 @@ export declare const SGetChangeRequestBFF: z.ZodEffects<z.ZodObject<Pick<{
96
413
  export type TGetChangeRequestBFF = z.infer<typeof SGetChangeRequestBFF>;
97
414
  export declare const SChangeRequestPathParamsBFF: z.ZodObject<{
98
415
  id: z.ZodString;
416
+ includeDocuments: z.ZodOptional<z.ZodBoolean>;
99
417
  }, "strip", z.ZodTypeAny, {
100
418
  id: string;
419
+ includeDocuments?: boolean | undefined;
101
420
  }, {
102
421
  id: string;
422
+ includeDocuments?: boolean | undefined;
103
423
  }>;
104
424
  export type TChangeRequestPathParamsBFF = z.infer<typeof SChangeRequestPathParamsBFF>;
105
- export declare const SChangeRequestsPathByContactIdParamsBFF: z.ZodObject<{
425
+ export declare const SChangeRequestsPathByWorkerParamsBFF: z.ZodObject<{
106
426
  contactId: z.ZodString;
427
+ includeDocuments: z.ZodOptional<z.ZodBoolean>;
107
428
  }, "strip", z.ZodTypeAny, {
108
429
  contactId: string;
430
+ includeDocuments?: boolean | undefined;
109
431
  }, {
110
432
  contactId: string;
433
+ includeDocuments?: boolean | undefined;
111
434
  }>;
112
- export type TChangeRequestsPathByContactIdParamsBFF = z.infer<typeof SChangeRequestsPathByContactIdParamsBFF>;
435
+ export type TChangeRequestsPathByWorkerParamsBFF = z.infer<typeof SChangeRequestsPathByWorkerParamsBFF>;
436
+ export declare const SChangeRequestsPathByAssignmentParamsBFF: z.ZodObject<{
437
+ assignmentId: z.ZodString;
438
+ includeDocuments: z.ZodOptional<z.ZodBoolean>;
439
+ }, "strip", z.ZodTypeAny, {
440
+ assignmentId: string;
441
+ includeDocuments?: boolean | undefined;
442
+ }, {
443
+ assignmentId: string;
444
+ includeDocuments?: boolean | undefined;
445
+ }>;
446
+ export type TChangeRequestsPathByAssignmentParamsBFF = z.infer<typeof SChangeRequestsPathByAssignmentParamsBFF>;
113
447
  //# sourceMappingURL=SGetChangeRequestBFF.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SGetChangeRequestBFF.d.ts","sourceRoot":"","sources":["../../../../../src/models/schemas/bff/changeRequest/SGetChangeRequestBFF.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuB/B,CAAA;AAGF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAGvE,eAAO,MAAM,2BAA2B;;;;;;EAEtC,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO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;;;EAGnD,CAAA;AAEF,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAC5D,OAAO,wCAAwC,CAChD,CAAA"}
@@ -1,18 +1,23 @@
1
1
  import { z } from 'zod';
2
2
  import { ChangeRequestEntity } from '../../api/changeRequest/TChangeRequestAPI.js';
3
+ import { SChangeRequestDocumentBFF } from './SGetChangeRequestDocumentBFF.js';
3
4
  export const SGetChangeRequestBFF = ChangeRequestEntity.SPayloadAPI.pick({
4
5
  assignmentStageAtSubmission: true,
5
6
  changeApplies: true,
6
- changeType: true, // required
7
+ changeType: true,
7
8
  endDate: true,
8
- legalStatus: true, // required
9
+ legalStatus: true,
9
10
  proposedEndDate: true,
10
- relatedAssignmentValue: true, // required
11
+ relatedAssignmentValue: true,
11
12
  requestedByValue: true,
12
13
  requestedDate: true,
13
14
  source: true,
14
- status: true, // required
15
- }).transform(data => {
15
+ status: true,
16
+ })
17
+ .extend({
18
+ documents: z.array(SChangeRequestDocumentBFF).optional(),
19
+ })
20
+ .transform(data => {
16
21
  const { relatedAssignmentValue: assignmentId, requestedByValue: requestedById, ...rest } = data;
17
22
  return {
18
23
  assignmentId,
@@ -23,8 +28,14 @@ export const SGetChangeRequestBFF = ChangeRequestEntity.SPayloadAPI.pick({
23
28
  // Params
24
29
  export const SChangeRequestPathParamsBFF = z.object({
25
30
  id: z.string().uuid(),
31
+ includeDocuments: z.boolean().optional(),
26
32
  });
27
- export const SChangeRequestsPathByContactIdParamsBFF = z.object({
33
+ export const SChangeRequestsPathByWorkerParamsBFF = z.object({
28
34
  contactId: z.string().uuid(),
35
+ includeDocuments: z.boolean().optional(),
36
+ });
37
+ export const SChangeRequestsPathByAssignmentParamsBFF = z.object({
38
+ assignmentId: z.string().uuid(),
39
+ includeDocuments: z.boolean().optional(),
29
40
  });
30
41
  //# sourceMappingURL=SGetChangeRequestBFF.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SGetChangeRequestBFF.js","sourceRoot":"","sources":["../../../../../src/models/schemas/bff/changeRequest/SGetChangeRequestBFF.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAA;AAElF,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC;IACvE,2BAA2B,EAAE,IAAI;IACjC,aAAa,EAAE,IAAI;IACnB,UAAU,EAAE,IAAI,EAAE,WAAW;IAC7B,OAAO,EAAE,IAAI;IACb,WAAW,EAAE,IAAI,EAAE,WAAW;IAC9B,eAAe,EAAE,IAAI;IACrB,sBAAsB,EAAE,IAAI,EAAE,WAAW;IACzC,gBAAgB,EAAE,IAAI;IACtB,aAAa,EAAE,IAAI;IACnB,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI,EAAE,WAAW;CAC1B,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;IAClB,MAAM,EACJ,sBAAsB,EAAE,YAAY,EACpC,gBAAgB,EAAE,aAAa,EAC/B,GAAG,IAAI,EACR,GAAG,IAAI,CAAA;IACR,OAAO;QACL,YAAY;QACZ,aAAa;QACb,GAAG,IAAI;KACR,CAAA;AACH,CAAC,CAAC,CAAA;AAKF,SAAS;AACT,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CACtB,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CAC7B,CAAC,CAAA"}
1
+ {"version":3,"file":"SGetChangeRequestBFF.js","sourceRoot":"","sources":["../../../../../src/models/schemas/bff/changeRequest/SGetChangeRequestBFF.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MA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