@devizovaburza/mdm-sdk 0.0.7 → 0.0.8

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/v1/index.mjs CHANGED
@@ -12038,9 +12038,39 @@ const idDocumentsListOutputSchema = z$1.object({
12038
12038
  totalCount: z$1.number(),
12039
12039
  idDocuments: z$1.array(idDocumentOutputSchema)
12040
12040
  });
12041
+ const DOCUMENT_SIDE = ["front", "back"];
12042
+ const idDocumentCreateInputSchema = z$1.object({
12043
+ partyId: z$1.uuid(),
12044
+ idDocType: z$1.enum(IdDocTypeZod),
12045
+ idDocNumber: z$1.string(),
12046
+ idDocHolderName: z$1.string(),
12047
+ issueDate: z$1.coerce.date().optional(),
12048
+ expirationDate: z$1.coerce.date().optional(),
12049
+ issuer: z$1.string().optional(),
12050
+ countryOfIssue: z$1.enum(COUNTRY_CODES_2).optional(),
12051
+ idDocStatus: z$1.enum(IdDocStatusZod).optional()
12052
+ });
12053
+ const idDocumentUpdateInputSchema = z$1.object({
12054
+ partyId: z$1.uuid().optional(),
12055
+ idDocType: z$1.enum(IdDocTypeZod).optional(),
12056
+ idDocNumber: z$1.string().optional(),
12057
+ idDocHolderName: z$1.string().optional(),
12058
+ issueDate: z$1.coerce.date().optional(),
12059
+ expirationDate: z$1.coerce.date().optional(),
12060
+ issuer: z$1.string().optional(),
12061
+ countryOfIssue: z$1.enum(COUNTRY_CODES_2).optional(),
12062
+ frontImageUri: z$1.string().optional(),
12063
+ backImageUri: z$1.string().optional(),
12064
+ idDocStatus: z$1.enum(IdDocStatusZod).optional()
12065
+ });
12066
+ const idDocumentMultipartSchema = z$1.object({
12067
+ idDocument: z$1.string(),
12068
+ documentSide: z$1.enum(DOCUMENT_SIDE),
12069
+ file: z$1.any()
12070
+ });
12041
12071
 
12042
12072
  const messageResponseSchema = z$1.object({
12043
12073
  message: z$1.string()
12044
12074
  });
12045
12075
 
12046
- export { AddressTypeZod$1 as AddressTypeZod, AmlScoreTypeZod, ClientStatusActionZod, ContactTypeZod, CustomerStatusZod$1 as CustomerStatusZod, GenderZod$1 as GenderZod, IdDocStatusZod$1 as IdDocStatusZod, IdDocTypeZod$1 as IdDocTypeZod, IdentificationTypeZod, KycStatusZod, PartyRelationshipTypeZod, PartyTypeZod$1 as PartyTypeZod, TRADER_TYPE, createMdmClient, createPartyInputSchema, idDocumentOutputSchema, idDocumentsListOutputSchema, messageResponseSchema, partiesOutputDataSchema, partyCreateOutputSchema, partyOutputSchema, partySchema, partyUpdateInputSchema, updatePartyOuputSchema };
12076
+ export { AddressTypeZod$1 as AddressTypeZod, AmlScoreTypeZod, ClientStatusActionZod, ContactTypeZod, CustomerStatusZod$1 as CustomerStatusZod, DOCUMENT_SIDE, GenderZod$1 as GenderZod, IdDocStatusZod$1 as IdDocStatusZod, IdDocTypeZod$1 as IdDocTypeZod, IdentificationTypeZod, KycStatusZod, PartyRelationshipTypeZod, PartyTypeZod$1 as PartyTypeZod, TRADER_TYPE, createMdmClient, createPartyInputSchema, idDocumentCreateInputSchema, idDocumentMultipartSchema, idDocumentOutputSchema, idDocumentUpdateInputSchema, idDocumentsListOutputSchema, messageResponseSchema, partiesOutputDataSchema, partyCreateOutputSchema, partyOutputSchema, partySchema, partyUpdateInputSchema, updatePartyOuputSchema };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devizovaburza/mdm-sdk",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "NODE_OPTIONS='--max-old-space-size=8192' unbuild",