@socotra/ec-react-schemas 2.15.6 → 2.16.0-next.0

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/index.d.ts CHANGED
@@ -2922,11 +2922,11 @@ export declare const AssignmentListResponseBffSchema: z.ZodObject<{
2922
2922
  listCompleted: z.ZodBoolean;
2923
2923
  items: z.ZodArray<z.ZodObject<{
2924
2924
  referenceDetails: z.ZodOptional<z.ZodObject<{
2925
- entityNumber: z.ZodOptional<z.ZodString>;
2925
+ entityNumber: z.ZodString;
2926
2926
  }, "strip", z.ZodTypeAny, {
2927
- entityNumber?: string | undefined;
2927
+ entityNumber: string;
2928
2928
  }, {
2929
- entityNumber?: string | undefined;
2929
+ entityNumber: string;
2930
2930
  }>>;
2931
2931
  assignedTo: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2932
2932
  locator: z.ZodString;
@@ -3048,7 +3048,7 @@ export declare const AssignmentListResponseBffSchema: z.ZodObject<{
3048
3048
  isDeleted: boolean;
3049
3049
  } | undefined;
3050
3050
  referenceDetails?: {
3051
- entityNumber?: string | undefined;
3051
+ entityNumber: string;
3052
3052
  } | undefined;
3053
3053
  }, {
3054
3054
  locator: string;
@@ -3087,7 +3087,7 @@ export declare const AssignmentListResponseBffSchema: z.ZodObject<{
3087
3087
  isDeleted: boolean;
3088
3088
  } | undefined;
3089
3089
  referenceDetails?: {
3090
- entityNumber?: string | undefined;
3090
+ entityNumber: string;
3091
3091
  } | undefined;
3092
3092
  }>, "many">;
3093
3093
  }, "strip", z.ZodTypeAny, {
@@ -3128,7 +3128,7 @@ export declare const AssignmentListResponseBffSchema: z.ZodObject<{
3128
3128
  isDeleted: boolean;
3129
3129
  } | undefined;
3130
3130
  referenceDetails?: {
3131
- entityNumber?: string | undefined;
3131
+ entityNumber: string;
3132
3132
  } | undefined;
3133
3133
  }[];
3134
3134
  listCompleted: boolean;
@@ -3170,7 +3170,7 @@ export declare const AssignmentListResponseBffSchema: z.ZodObject<{
3170
3170
  isDeleted: boolean;
3171
3171
  } | undefined;
3172
3172
  referenceDetails?: {
3173
- entityNumber?: string | undefined;
3173
+ entityNumber: string;
3174
3174
  } | undefined;
3175
3175
  }[];
3176
3176
  listCompleted: boolean;
@@ -3260,11 +3260,11 @@ export declare type AssignmentResponseBff = z.infer<typeof AssignmentResponseBff
3260
3260
 
3261
3261
  export declare const AssignmentResponseBffSchema: z.ZodObject<{
3262
3262
  referenceDetails: z.ZodOptional<z.ZodObject<{
3263
- entityNumber: z.ZodOptional<z.ZodString>;
3263
+ entityNumber: z.ZodString;
3264
3264
  }, "strip", z.ZodTypeAny, {
3265
- entityNumber?: string | undefined;
3265
+ entityNumber: string;
3266
3266
  }, {
3267
- entityNumber?: string | undefined;
3267
+ entityNumber: string;
3268
3268
  }>>;
3269
3269
  assignedTo: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3270
3270
  locator: z.ZodString;
@@ -3386,7 +3386,7 @@ export declare const AssignmentResponseBffSchema: z.ZodObject<{
3386
3386
  isDeleted: boolean;
3387
3387
  } | undefined;
3388
3388
  referenceDetails?: {
3389
- entityNumber?: string | undefined;
3389
+ entityNumber: string;
3390
3390
  } | undefined;
3391
3391
  }, {
3392
3392
  locator: string;
@@ -3425,7 +3425,7 @@ export declare const AssignmentResponseBffSchema: z.ZodObject<{
3425
3425
  isDeleted: boolean;
3426
3426
  } | undefined;
3427
3427
  referenceDetails?: {
3428
- entityNumber?: string | undefined;
3428
+ entityNumber: string;
3429
3429
  } | undefined;
3430
3430
  }>;
3431
3431
 
@@ -3552,18 +3552,18 @@ export declare const AttachDocumentRequestBodySchema: z.ZodObject<{
3552
3552
  name: z.ZodString;
3553
3553
  filename: z.ZodString;
3554
3554
  size: z.ZodNumber;
3555
- buffer: z.ZodType<Buffer<ArrayBuffer>, z.ZodTypeDef, Buffer<ArrayBuffer>>;
3555
+ buffer: z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>;
3556
3556
  }>, "strip", z.ZodTypeAny, {
3557
3557
  name: string;
3558
3558
  filename: string;
3559
3559
  size: number;
3560
- buffer: Buffer<ArrayBuffer>;
3560
+ buffer: Buffer<ArrayBufferLike>;
3561
3561
  mimetype: MimeType_2.applicationOctetStream | MimeType_2.applicationPdf | MimeType_2.applicationZip | MimeType_2.applicationZipWindows | MimeType_2.imageJpg | MimeType_2.textCsv | MimeType_2.textHtml | MimeType_2.text;
3562
3562
  }, {
3563
3563
  name: string;
3564
3564
  filename: string;
3565
3565
  size: number;
3566
- buffer: Buffer<ArrayBuffer>;
3566
+ buffer: Buffer<ArrayBufferLike>;
3567
3567
  mimetype: MimeType_2.applicationOctetStream | MimeType_2.applicationPdf | MimeType_2.applicationZip | MimeType_2.applicationZipWindows | MimeType_2.imageJpg | MimeType_2.textCsv | MimeType_2.textHtml | MimeType_2.text;
3568
3568
  }>;
3569
3569
  }, "strip", z.ZodTypeAny, {
@@ -3571,7 +3571,7 @@ export declare const AttachDocumentRequestBodySchema: z.ZodObject<{
3571
3571
  name: string;
3572
3572
  filename: string;
3573
3573
  size: number;
3574
- buffer: Buffer<ArrayBuffer>;
3574
+ buffer: Buffer<ArrayBufferLike>;
3575
3575
  mimetype: MimeType_2.applicationOctetStream | MimeType_2.applicationPdf | MimeType_2.applicationZip | MimeType_2.applicationZipWindows | MimeType_2.imageJpg | MimeType_2.textCsv | MimeType_2.textHtml | MimeType_2.text;
3576
3576
  };
3577
3577
  }, {
@@ -3579,7 +3579,7 @@ export declare const AttachDocumentRequestBodySchema: z.ZodObject<{
3579
3579
  name: string;
3580
3580
  filename: string;
3581
3581
  size: number;
3582
- buffer: Buffer<ArrayBuffer>;
3582
+ buffer: Buffer<ArrayBufferLike>;
3583
3583
  mimetype: MimeType_2.applicationOctetStream | MimeType_2.applicationPdf | MimeType_2.applicationZip | MimeType_2.applicationZipWindows | MimeType_2.imageJpg | MimeType_2.textCsv | MimeType_2.textHtml | MimeType_2.text;
3584
3584
  };
3585
3585
  }>;
@@ -14153,6 +14153,133 @@ export declare const ListBasicUserResponseSchema: z.ZodObject<{
14153
14153
 
14154
14154
  export declare type ListPolicyResponse = PolicyListResponse;
14155
14155
 
14156
+ export declare type ListQualifiedUser = z.infer<typeof ListQualifiedUserSchema>;
14157
+
14158
+ export declare type ListQualifiedUserBff = z.infer<typeof ListQualifiedUserBffSchema>;
14159
+
14160
+ export declare const ListQualifiedUserBffSchema: z.ZodObject<{
14161
+ listCompleted: z.ZodBoolean;
14162
+ items: z.ZodArray<z.ZodObject<{
14163
+ user: z.ZodUnion<[z.ZodObject<{
14164
+ locator: z.ZodString;
14165
+ userName: z.ZodString;
14166
+ firstName: z.ZodOptional<z.ZodString>;
14167
+ lastName: z.ZodOptional<z.ZodString>;
14168
+ }, "strip", z.ZodTypeAny, {
14169
+ locator: string;
14170
+ userName: string;
14171
+ firstName?: string | undefined;
14172
+ lastName?: string | undefined;
14173
+ }, {
14174
+ locator: string;
14175
+ userName: string;
14176
+ firstName?: string | undefined;
14177
+ lastName?: string | undefined;
14178
+ }>, z.ZodObject<{
14179
+ locator: z.ZodString;
14180
+ isDeleted: z.ZodBoolean;
14181
+ }, "strip", z.ZodTypeAny, {
14182
+ locator: string;
14183
+ isDeleted: boolean;
14184
+ }, {
14185
+ locator: string;
14186
+ isDeleted: boolean;
14187
+ }>]>;
14188
+ userLocator: z.ZodString;
14189
+ category: z.ZodString;
14190
+ level: z.ZodString;
14191
+ }, "strip", z.ZodTypeAny, {
14192
+ level: string;
14193
+ category: string;
14194
+ userLocator: string;
14195
+ user: {
14196
+ locator: string;
14197
+ userName: string;
14198
+ firstName?: string | undefined;
14199
+ lastName?: string | undefined;
14200
+ } | {
14201
+ locator: string;
14202
+ isDeleted: boolean;
14203
+ };
14204
+ }, {
14205
+ level: string;
14206
+ category: string;
14207
+ userLocator: string;
14208
+ user: {
14209
+ locator: string;
14210
+ userName: string;
14211
+ firstName?: string | undefined;
14212
+ lastName?: string | undefined;
14213
+ } | {
14214
+ locator: string;
14215
+ isDeleted: boolean;
14216
+ };
14217
+ }>, "many">;
14218
+ }, "strip", z.ZodTypeAny, {
14219
+ items: {
14220
+ level: string;
14221
+ category: string;
14222
+ userLocator: string;
14223
+ user: {
14224
+ locator: string;
14225
+ userName: string;
14226
+ firstName?: string | undefined;
14227
+ lastName?: string | undefined;
14228
+ } | {
14229
+ locator: string;
14230
+ isDeleted: boolean;
14231
+ };
14232
+ }[];
14233
+ listCompleted: boolean;
14234
+ }, {
14235
+ items: {
14236
+ level: string;
14237
+ category: string;
14238
+ userLocator: string;
14239
+ user: {
14240
+ locator: string;
14241
+ userName: string;
14242
+ firstName?: string | undefined;
14243
+ lastName?: string | undefined;
14244
+ } | {
14245
+ locator: string;
14246
+ isDeleted: boolean;
14247
+ };
14248
+ }[];
14249
+ listCompleted: boolean;
14250
+ }>;
14251
+
14252
+ export declare const ListQualifiedUserSchema: z.ZodObject<{
14253
+ listCompleted: z.ZodBoolean;
14254
+ items: z.ZodArray<z.ZodObject<{
14255
+ userLocator: z.ZodString;
14256
+ category: z.ZodString;
14257
+ level: z.ZodString;
14258
+ }, "strip", z.ZodTypeAny, {
14259
+ level: string;
14260
+ category: string;
14261
+ userLocator: string;
14262
+ }, {
14263
+ level: string;
14264
+ category: string;
14265
+ userLocator: string;
14266
+ }>, "many">;
14267
+ }, "strip", z.ZodTypeAny, {
14268
+ items: {
14269
+ level: string;
14270
+ category: string;
14271
+ userLocator: string;
14272
+ }[];
14273
+ listCompleted: boolean;
14274
+ }, {
14275
+ items: {
14276
+ level: string;
14277
+ category: string;
14278
+ userLocator: string;
14279
+ }[];
14280
+ listCompleted: boolean;
14281
+ }>;
14282
+
14156
14283
  export declare type ListRoleResponse = z.infer<typeof ListRoleResponseSchema>;
14157
14284
 
14158
14285
  export declare const ListRoleResponseSchema: z.ZodObject<{
@@ -23243,6 +23370,81 @@ export declare const PropertyRefSchema: z.ZodObject<{
23243
23370
  max?: number | undefined;
23244
23371
  }>;
23245
23372
 
23373
+ export declare type QualifiedUser = z.infer<typeof QualifiedUserSchema>;
23374
+
23375
+ export declare type QualifiedUserBff = z.infer<typeof QualifiedUserBffSchema>;
23376
+
23377
+ export declare const QualifiedUserBffSchema: z.ZodObject<{
23378
+ user: z.ZodUnion<[z.ZodObject<{
23379
+ locator: z.ZodString;
23380
+ userName: z.ZodString;
23381
+ firstName: z.ZodOptional<z.ZodString>;
23382
+ lastName: z.ZodOptional<z.ZodString>;
23383
+ }, "strip", z.ZodTypeAny, {
23384
+ locator: string;
23385
+ userName: string;
23386
+ firstName?: string | undefined;
23387
+ lastName?: string | undefined;
23388
+ }, {
23389
+ locator: string;
23390
+ userName: string;
23391
+ firstName?: string | undefined;
23392
+ lastName?: string | undefined;
23393
+ }>, z.ZodObject<{
23394
+ locator: z.ZodString;
23395
+ isDeleted: z.ZodBoolean;
23396
+ }, "strip", z.ZodTypeAny, {
23397
+ locator: string;
23398
+ isDeleted: boolean;
23399
+ }, {
23400
+ locator: string;
23401
+ isDeleted: boolean;
23402
+ }>]>;
23403
+ userLocator: z.ZodString;
23404
+ category: z.ZodString;
23405
+ level: z.ZodString;
23406
+ }, "strip", z.ZodTypeAny, {
23407
+ level: string;
23408
+ category: string;
23409
+ userLocator: string;
23410
+ user: {
23411
+ locator: string;
23412
+ userName: string;
23413
+ firstName?: string | undefined;
23414
+ lastName?: string | undefined;
23415
+ } | {
23416
+ locator: string;
23417
+ isDeleted: boolean;
23418
+ };
23419
+ }, {
23420
+ level: string;
23421
+ category: string;
23422
+ userLocator: string;
23423
+ user: {
23424
+ locator: string;
23425
+ userName: string;
23426
+ firstName?: string | undefined;
23427
+ lastName?: string | undefined;
23428
+ } | {
23429
+ locator: string;
23430
+ isDeleted: boolean;
23431
+ };
23432
+ }>;
23433
+
23434
+ export declare const QualifiedUserSchema: z.ZodObject<{
23435
+ userLocator: z.ZodString;
23436
+ category: z.ZodString;
23437
+ level: z.ZodString;
23438
+ }, "strip", z.ZodTypeAny, {
23439
+ level: string;
23440
+ category: string;
23441
+ userLocator: string;
23442
+ }, {
23443
+ level: string;
23444
+ category: string;
23445
+ userLocator: string;
23446
+ }>;
23447
+
23246
23448
  export declare type Quantifiers = z.infer<typeof quantifiersSchema>;
23247
23449
 
23248
23450
  export declare const quantifiersSchema: z.ZodEnum<["", "?", "+", "*", "!"]>;
@@ -29993,106 +30195,6 @@ export declare const UserUpdateRequestSchema: z.ZodObject<{
29993
30195
  lastName: string;
29994
30196
  }>;
29995
30197
 
29996
- export declare type UserWithQualsBff = z.infer<typeof UserWithQualsBffSchema>;
29997
-
29998
- export declare const UserWithQualsBffSchema: z.ZodObject<{
29999
- qualifications: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
30000
- locator: z.ZodString;
30001
- firstName: z.ZodOptional<z.ZodString>;
30002
- lastName: z.ZodOptional<z.ZodString>;
30003
- email: z.ZodOptional<z.ZodString>;
30004
- roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30005
- tenants: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30006
- permissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30007
- userName: z.ZodString;
30008
- }, "strip", z.ZodTypeAny, {
30009
- locator: string;
30010
- userName: string;
30011
- qualifications?: Record<string, string> | undefined;
30012
- roles?: string[] | undefined;
30013
- email?: string | undefined;
30014
- tenants?: string[] | undefined;
30015
- permissions?: string[] | undefined;
30016
- firstName?: string | undefined;
30017
- lastName?: string | undefined;
30018
- }, {
30019
- locator: string;
30020
- userName: string;
30021
- qualifications?: Record<string, string> | undefined;
30022
- roles?: string[] | undefined;
30023
- email?: string | undefined;
30024
- tenants?: string[] | undefined;
30025
- permissions?: string[] | undefined;
30026
- firstName?: string | undefined;
30027
- lastName?: string | undefined;
30028
- }>;
30029
-
30030
- export declare type UserWithQualsListResponseBff = z.infer<typeof UserWithQualsListResponseBffSchema>;
30031
-
30032
- export declare const UserWithQualsListResponseBffSchema: z.ZodObject<{
30033
- count: z.ZodNumber;
30034
- listCompleted: z.ZodBoolean;
30035
- items: z.ZodArray<z.ZodObject<{
30036
- qualifications: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
30037
- locator: z.ZodString;
30038
- firstName: z.ZodOptional<z.ZodString>;
30039
- lastName: z.ZodOptional<z.ZodString>;
30040
- email: z.ZodOptional<z.ZodString>;
30041
- roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30042
- tenants: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30043
- permissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30044
- userName: z.ZodString;
30045
- }, "strip", z.ZodTypeAny, {
30046
- locator: string;
30047
- userName: string;
30048
- qualifications?: Record<string, string> | undefined;
30049
- roles?: string[] | undefined;
30050
- email?: string | undefined;
30051
- tenants?: string[] | undefined;
30052
- permissions?: string[] | undefined;
30053
- firstName?: string | undefined;
30054
- lastName?: string | undefined;
30055
- }, {
30056
- locator: string;
30057
- userName: string;
30058
- qualifications?: Record<string, string> | undefined;
30059
- roles?: string[] | undefined;
30060
- email?: string | undefined;
30061
- tenants?: string[] | undefined;
30062
- permissions?: string[] | undefined;
30063
- firstName?: string | undefined;
30064
- lastName?: string | undefined;
30065
- }>, "many">;
30066
- }, "strip", z.ZodTypeAny, {
30067
- items: {
30068
- locator: string;
30069
- userName: string;
30070
- qualifications?: Record<string, string> | undefined;
30071
- roles?: string[] | undefined;
30072
- email?: string | undefined;
30073
- tenants?: string[] | undefined;
30074
- permissions?: string[] | undefined;
30075
- firstName?: string | undefined;
30076
- lastName?: string | undefined;
30077
- }[];
30078
- count: number;
30079
- listCompleted: boolean;
30080
- }, {
30081
- items: {
30082
- locator: string;
30083
- userName: string;
30084
- qualifications?: Record<string, string> | undefined;
30085
- roles?: string[] | undefined;
30086
- email?: string | undefined;
30087
- tenants?: string[] | undefined;
30088
- permissions?: string[] | undefined;
30089
- firstName?: string | undefined;
30090
- lastName?: string | undefined;
30091
- }[];
30092
- count: number;
30093
- listCompleted: boolean;
30094
- }>;
30095
-
30096
30198
  export declare const UUIDZ: z.ZodString;
30097
30199
 
30098
30200
  export declare type ValidationItem = z.infer<typeof validationItemSchema>;