{"version":3,"file":"documenttemplateService-a04c03af.js","sources":["../../src/app/services/generated/documenttemplateService.ts"],"sourcesContent":["import Guid from \"@/app/types/common/guid\";\nimport { Instant, LocalDate, LocalTime } from \"@js-joda/core\";\nimport {ModelObject, BaseModelObject, ValidationRule} from \"@/app/services/modelObject\";\nimport ServiceBase from \"@/app/services/serviceBase\";\nimport converters from \"@/app/services/converters\"\nimport { EnumDocumentTagType } from \"./enums/enumDocumentTagType.generated\";\nimport { EnumDocumentType } from \"./enums/enumDocumentType.generated\";\nimport { EnumDocumentTypeGroup } from \"./enums/enumDocumentTypeGroup.generated\";\n\n// Model Objects\n\nexport class AvailableTag extends ModelObject {\n\n public tagKey: string = \"\";\n public tagType: EnumDocumentTagType = EnumDocumentTagType.string;\n public hideable: boolean = false;\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.tagKey = jsonSerializedObject.tagKey;\n this.tagType = EnumDocumentTagType.getByValue(jsonSerializedObject.tagType, this.tagType);\n this.hideable = jsonSerializedObject.hideable;\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.tagKey = this.tagKey;\n toRet.tagType = this.tagType.value;\n toRet.hideable = this.hideable;\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n ];\n}\n\n\nexport class TagOverride extends ModelObject {\n\n public tagKey: string = \"\";\n public hidden: boolean = false;\n /**\n * For images use a Base64Encoded string\n * Not Nullable\n * Preserves leading and trailing whitespce.\n */\n public overrideValue: string = \"\";\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.tagKey = jsonSerializedObject.tagKey;\n this.hidden = jsonSerializedObject.hidden;\n this.overrideValue = jsonSerializedObject.overrideValue;\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.tagKey = this.tagKey;\n toRet.hidden = this.hidden;\n toRet.overrideValue = this.overrideValue;\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n ];\n}\n\n\nexport class DocumentTemplateReadOnly extends ModelObject {\n\n public availableTags: AvailableTag[] = [];\n /**\n * Whether this template is locked for modification\n */\n public isLocked: boolean = false;\n /**\n * Timestamp at which the template was created on the system. Captured by system not user editable.\n */\n public createdAt: Instant = Instant.ofEpochMilli(0);\n /**\n * Timestamp at which the template was last updated on the system. Captured by system not user editable.\n */\n public lastUpdatedAt: Instant = Instant.ofEpochMilli(0);\n /**\n * Whether this document is available based on the tenant's country location\n */\n public isAvailableForTenant: boolean = false;\n /**\n * Used for grouping document types\n */\n public documentTypeGroup: EnumDocumentTypeGroup = EnumDocumentTypeGroup.other;\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.availableTags = jsonSerializedObject.availableTags.map((v: any) => new AvailableTag(v));\n this.isLocked = jsonSerializedObject.isLocked;\n this.createdAt = Instant.parse(jsonSerializedObject.createdAt);\n this.lastUpdatedAt = Instant.parse(jsonSerializedObject.lastUpdatedAt);\n this.isAvailableForTenant = jsonSerializedObject.isAvailableForTenant;\n this.documentTypeGroup = EnumDocumentTypeGroup.getByValue(jsonSerializedObject.documentTypeGroup, this.documentTypeGroup);\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.availableTags = this.availableTags.map(v => v.toJsonSerializedObject());\n toRet.isLocked = this.isLocked;\n toRet.createdAt = this.createdAt.toString();\n toRet.lastUpdatedAt = this.lastUpdatedAt.toString();\n toRet.isAvailableForTenant = this.isAvailableForTenant;\n toRet.documentTypeGroup = this.documentTypeGroup.value;\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"availableTags\", rule: (v: any) => !!v || \"availableTags is required\"},\n {field: \"availableTags\", rule: (v: any) => {\n if (v === null) {\n return true;\n }\n\n return (v as AvailableTag[]).reduce((acc: Array, curr: AvailableTag) => acc.concat(curr.validate()), new Array());\n }},\n ];\n}\n\n\nexport class EmailDetails extends ModelObject {\n\n public emailBcc: string = \"\";\n public emailSubject: string = \"\";\n public emailBody: string = \"\";\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.emailBcc = jsonSerializedObject.emailBcc;\n this.emailSubject = jsonSerializedObject.emailSubject;\n this.emailBody = jsonSerializedObject.emailBody;\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.emailBcc = this.emailBcc;\n toRet.emailSubject = this.emailSubject;\n toRet.emailBody = this.emailBody;\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n ];\n}\n\n\nexport class DocumentTemplate extends ModelObject {\n\n public version: number = 0;\n public id: Guid = Guid.createEmpty();\n /**\n * Template type\n * Not Nullable\n * Not Empty\n * Max Length : 1000\n * Preserves leading and trailing whitespce.\n */\n public name: string = \"\";\n /**\n * Template type\n */\n public documentType: EnumDocumentType = EnumDocumentType.none;\n /**\n * Template file id\n */\n public documentTemplateFileId: Guid = Guid.createEmpty();\n /**\n * Whether this is default document template for this type\n */\n public isDocumentTypeDefault: boolean = false;\n public tagOverrides: TagOverride[] = [];\n public emailDetails: EmailDetails = new EmailDetails();\n public readOnly: DocumentTemplateReadOnly = new DocumentTemplateReadOnly();\n public isHidden: boolean = false;\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.version = jsonSerializedObject.version;\n this.id = Guid.fromString(jsonSerializedObject.id);\n this.name = jsonSerializedObject.name;\n this.documentType = EnumDocumentType.getByValue(jsonSerializedObject.documentType, this.documentType);\n this.documentTemplateFileId = Guid.fromString(jsonSerializedObject.documentTemplateFileId);\n this.isDocumentTypeDefault = jsonSerializedObject.isDocumentTypeDefault;\n this.tagOverrides = jsonSerializedObject.tagOverrides.map((v: any) => new TagOverride(v));\n this.emailDetails = new EmailDetails(jsonSerializedObject.emailDetails);\n this.readOnly = new DocumentTemplateReadOnly(jsonSerializedObject.readOnly);\n this.isHidden = jsonSerializedObject.isHidden;\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.version = this.version;\n toRet.id = this.id.toString();\n toRet.name = this.name;\n toRet.documentType = this.documentType.value;\n toRet.documentTemplateFileId = this.documentTemplateFileId.toString();\n toRet.isDocumentTypeDefault = this.isDocumentTypeDefault;\n toRet.tagOverrides = this.tagOverrides.map(v => v.toJsonSerializedObject());\n toRet.emailDetails = this.emailDetails.toJsonSerializedObject();\n toRet.readOnly = this.readOnly.toJsonSerializedObject();\n toRet.isHidden = this.isHidden;\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"version\", rule: (v: any) => v == null || v >= -9223372036854775808 || \"Version is not greater than minimum allowed value: -9223372036854775808\"},\n {field: \"version\", rule: (v: any) => v == null || v <= 9223372036854775807 || \"Version is above maximum allowed value: 9223372036854775807\"},\n {field: \"id\", rule: (v: any) => !v.isEmpty() || \"DocumentTemplate.Id cannot be empty\"},\n {field: \"name\", rule: (v: any) => v == null || v.length !== 0 || \"Name cannot be empty\"},\n {field: \"name\", rule: (v: any) => v == null || v.length <= 1000 || \"Name has too many characters (1000)\"},\n {field: \"documentTemplateFileId\", rule: (v: any) => !v.isEmpty() || \"DocumentTemplate.DocumentTemplateFileId cannot be empty\"},\n {field: \"tagOverrides\", rule: (v: any) => !!v || \"tagOverrides is required\"},\n {field: \"tagOverrides\", rule: (v: any) => {\n if (v === null) {\n return true;\n }\n\n return (v as TagOverride[]).reduce((acc: Array, curr: TagOverride) => acc.concat(curr.validate()), new Array());\n }},\n {field: \"emailDetails\", rule: (v: any) => !!v || \"emailDetails is required\"},\n {field: \"emailDetails\", rule: (v: any) => v.validate()},\n {field: \"readOnly\", rule: (v: any) => !!v || \"readOnly is required\"},\n ];\n}\n\n\nexport class FilteredDocumentTemplateResult extends ModelObject {\n\n public matchingCount: number = 0;\n public documentTemplates: DocumentTemplate[] = [];\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.matchingCount = jsonSerializedObject.matchingCount;\n this.documentTemplates = jsonSerializedObject.documentTemplates.map((v: any) => new DocumentTemplate(v));\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.matchingCount = this.matchingCount;\n toRet.documentTemplates = this.documentTemplates.map(v => v.toJsonSerializedObject());\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"matchingCount\", rule: (v: any) => v == null || v >= -2147483648 || \"MatchingCount is not greater than minimum allowed value: -2147483648\"},\n {field: \"matchingCount\", rule: (v: any) => v == null || v <= 2147483647 || \"MatchingCount is above maximum allowed value: 2147483647\"},\n {field: \"documentTemplates\", rule: (v: any) => !!v || \"documentTemplates is required\"},\n {field: \"documentTemplates\", rule: (v: any) => {\n if (v === null) {\n return true;\n }\n\n return (v as DocumentTemplate[]).reduce((acc: Array, curr: DocumentTemplate) => acc.concat(curr.validate()), new Array());\n }},\n ];\n}\n\n\nexport class DocumentTemplateFilter extends ModelObject {\n\n private _maximumResults: number | null = null;\n public get maximumResults(): number | null { return this._maximumResults }\n public set maximumResults(value: number | null) {\n this._maximumResults = value === undefined ? null : value;\n }\n private _documentTypes: EnumDocumentType[] | null = null;\n public get documentTypes(): EnumDocumentType[] | null { return this._documentTypes }\n public set documentTypes(value: EnumDocumentType[] | null) {\n this._documentTypes = value === undefined ? null : value;\n }\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.maximumResults = jsonSerializedObject.maximumResults == null ? null : jsonSerializedObject.maximumResults;\n this.documentTypes = jsonSerializedObject.documentTypes == null ? null : jsonSerializedObject.documentTypes.map((v: any) => EnumDocumentType.getByValue(v));\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.maximumResults = this.maximumResults == null ? null : this.maximumResults;\n toRet.documentTypes = this.documentTypes == null ? null : this.documentTypes.map(v => v.value);\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"maximumResults\", rule: (v: any) => v == null || v >= 0 || \"MaximumResults is not greater than minimum allowed value: 0\"},\n {field: \"maximumResults\", rule: (v: any) => v == null || v <= 2147483647 || \"MaximumResults is above maximum allowed value: 2147483647\"},\n ];\n}\n\n\nexport class GetAllDocumentTemplatesRequest extends ModelObject {\n\n public tenantId: Guid = Guid.createEmpty();\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.tenantId = Guid.fromString(jsonSerializedObject.tenantId);\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.tenantId = this.tenantId.toString();\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"tenantId\", rule: (v: any) => !v.isEmpty() || \".TenantId cannot be empty\"},\n ];\n}\n\n\nexport class GetAllDocumentTemplatesResponse extends ModelObject {\n\n public documentTemplate: DocumentTemplate[] = [];\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.documentTemplate = jsonSerializedObject.documentTemplate.map((v: any) => new DocumentTemplate(v));\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.documentTemplate = this.documentTemplate.map(v => v.toJsonSerializedObject());\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"documentTemplate\", rule: (v: any) => !!v || \"documentTemplate is required\"},\n {field: \"documentTemplate\", rule: (v: any) => {\n if (v === null) {\n return true;\n }\n\n return (v as DocumentTemplate[]).reduce((acc: Array, curr: DocumentTemplate) => acc.concat(curr.validate()), new Array());\n }},\n ];\n}\n\n\nexport class GetDocumentTemplateRequest extends ModelObject {\n\n public tenantId: Guid = Guid.createEmpty();\n public documentTemplateId: Guid = Guid.createEmpty();\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.tenantId = Guid.fromString(jsonSerializedObject.tenantId);\n this.documentTemplateId = Guid.fromString(jsonSerializedObject.documentTemplateId);\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.tenantId = this.tenantId.toString();\n toRet.documentTemplateId = this.documentTemplateId.toString();\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"tenantId\", rule: (v: any) => !v.isEmpty() || \".TenantId cannot be empty\"},\n {field: \"documentTemplateId\", rule: (v: any) => !v.isEmpty() || \".DocumentTemplateId cannot be empty\"},\n ];\n}\n\n\nexport class GetDocumentTemplateResponse extends ModelObject {\n\n public documentTemplate: DocumentTemplate = new DocumentTemplate();\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.documentTemplate = new DocumentTemplate(jsonSerializedObject.documentTemplate);\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.documentTemplate = this.documentTemplate.toJsonSerializedObject();\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"documentTemplate\", rule: (v: any) => !!v || \"documentTemplate is required\"},\n {field: \"documentTemplate\", rule: (v: any) => v.validate()},\n ];\n}\n\n\nexport class GetTemplateIdOfTypeDefaultRequest extends ModelObject {\n\n public tenantId: Guid = Guid.createEmpty();\n public documentType: EnumDocumentType = EnumDocumentType.none;\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.tenantId = Guid.fromString(jsonSerializedObject.tenantId);\n this.documentType = EnumDocumentType.getByValue(jsonSerializedObject.documentType, this.documentType);\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.tenantId = this.tenantId.toString();\n toRet.documentType = this.documentType.value;\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"tenantId\", rule: (v: any) => !v.isEmpty() || \".TenantId cannot be empty\"},\n ];\n}\n\n\nexport class GetTemplateIdOfTypeDefaultResponse extends ModelObject {\n\n private _documentId: Guid | null = null;\n public get documentId(): Guid | null { return this._documentId }\n public set documentId(value: Guid | null) {\n this._documentId = value === undefined ? null : value;\n }\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.documentId = jsonSerializedObject.documentId == null ? null : Guid.fromString(jsonSerializedObject.documentId);\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.documentId = this.documentId == null ? null : this.documentId.toString();\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"documentId\", rule: (v: any) => v == null || !v.isEmpty() || \".DocumentId cannot be empty\"},\n ];\n}\n\n\nexport class GetRequiredTypeDefaultTemplateRequest extends ModelObject {\n\n public tenantId: Guid = Guid.createEmpty();\n public documentType: EnumDocumentType = EnumDocumentType.none;\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.tenantId = Guid.fromString(jsonSerializedObject.tenantId);\n this.documentType = EnumDocumentType.getByValue(jsonSerializedObject.documentType, this.documentType);\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.tenantId = this.tenantId.toString();\n toRet.documentType = this.documentType.value;\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"tenantId\", rule: (v: any) => !v.isEmpty() || \".TenantId cannot be empty\"},\n ];\n}\n\n\nexport class GetRequiredTypeDefaultTemplateResponse extends ModelObject {\n\n public documentTemplate: DocumentTemplate = new DocumentTemplate();\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.documentTemplate = new DocumentTemplate(jsonSerializedObject.documentTemplate);\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.documentTemplate = this.documentTemplate.toJsonSerializedObject();\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"documentTemplate\", rule: (v: any) => !!v || \"documentTemplate is required\"},\n {field: \"documentTemplate\", rule: (v: any) => v.validate()},\n ];\n}\n\n\nexport class SaveDocumentTemplateRequest extends ModelObject {\n\n public tenantId: Guid = Guid.createEmpty();\n public documentTemplate: DocumentTemplate = new DocumentTemplate();\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.tenantId = Guid.fromString(jsonSerializedObject.tenantId);\n this.documentTemplate = new DocumentTemplate(jsonSerializedObject.documentTemplate);\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.tenantId = this.tenantId.toString();\n toRet.documentTemplate = this.documentTemplate.toJsonSerializedObject();\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"tenantId\", rule: (v: any) => !v.isEmpty() || \".TenantId cannot be empty\"},\n {field: \"documentTemplate\", rule: (v: any) => !!v || \"documentTemplate is required\"},\n {field: \"documentTemplate\", rule: (v: any) => v.validate()},\n ];\n}\n\n\nexport class SetDocumentTemplateIsHiddenRequest extends ModelObject {\n\n public tenantId: Guid = Guid.createEmpty();\n public documentTemplateId: Guid = Guid.createEmpty();\n /**\n * True to hide, false to unhide.\n */\n public hide: boolean = false;\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.tenantId = Guid.fromString(jsonSerializedObject.tenantId);\n this.documentTemplateId = Guid.fromString(jsonSerializedObject.documentTemplateId);\n this.hide = jsonSerializedObject.hide;\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.tenantId = this.tenantId.toString();\n toRet.documentTemplateId = this.documentTemplateId.toString();\n toRet.hide = this.hide;\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"tenantId\", rule: (v: any) => !v.isEmpty() || \".TenantId cannot be empty\"},\n {field: \"documentTemplateId\", rule: (v: any) => !v.isEmpty() || \".DocumentTemplateId cannot be empty\"},\n ];\n}\n\n\nexport class GetEmailDetailsRequest extends ModelObject {\n\n public tenantId: Guid = Guid.createEmpty();\n public documentType: EnumDocumentType = EnumDocumentType.none;\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.tenantId = Guid.fromString(jsonSerializedObject.tenantId);\n this.documentType = EnumDocumentType.getByValue(jsonSerializedObject.documentType, this.documentType);\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.tenantId = this.tenantId.toString();\n toRet.documentType = this.documentType.value;\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"tenantId\", rule: (v: any) => !v.isEmpty() || \".TenantId cannot be empty\"},\n ];\n}\n\n\nexport class GetEmailDetailsResponse extends ModelObject {\n\n public emailDetails: EmailDetails = new EmailDetails();\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.emailDetails = new EmailDetails(jsonSerializedObject.emailDetails);\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.emailDetails = this.emailDetails.toJsonSerializedObject();\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"emailDetails\", rule: (v: any) => !!v || \"emailDetails is required\"},\n {field: \"emailDetails\", rule: (v: any) => v.validate()},\n ];\n}\n\n\nexport class GetDocumentTemplatesByFilterRequest extends ModelObject {\n\n public tenantId: Guid = Guid.createEmpty();\n public filter: DocumentTemplateFilter = new DocumentTemplateFilter();\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.tenantId = Guid.fromString(jsonSerializedObject.tenantId);\n this.filter = new DocumentTemplateFilter(jsonSerializedObject.filter);\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.tenantId = this.tenantId.toString();\n toRet.filter = this.filter.toJsonSerializedObject();\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"tenantId\", rule: (v: any) => !v.isEmpty() || \".TenantId cannot be empty\"},\n {field: \"filter\", rule: (v: any) => !!v || \"filter is required\"},\n {field: \"filter\", rule: (v: any) => v.validate()},\n ];\n}\n\n\nexport class GetDocumentTemplatesByFilterResponse extends ModelObject {\n\n public results: FilteredDocumentTemplateResult = new FilteredDocumentTemplateResult();\n\n public constructor(jsonSerializedObject?: any) {\n super();\n if (jsonSerializedObject) {\n this.results = new FilteredDocumentTemplateResult(jsonSerializedObject.results);\n }\n\n }\n\n public toJsonSerializedObject(): any {\n const toRet = {} as any;\n toRet.results = this.results.toJsonSerializedObject();\n return toRet;\n }\n\n public toProto(): any {\n return this.toJsonSerializedObject();\n }\n\n public toBinary(): Uint8Array {\n return new TextEncoder().encode(JSON.stringify(this.toJsonSerializedObject()));\n }\n\n public validationRules: ValidationRule = [\n {field: \"results\", rule: (v: any) => !!v || \"results is required\"},\n {field: \"results\", rule: (v: any) => v.validate()},\n ];\n}\n\n\nexport class DocumentTemplateService extends ServiceBase {\n\n public async getAllDocumentTemplates(tenantId: Guid, opts?: {requestTimeoutMs?: number, sessionToken?: string}): Promise {\n const req = new GetAllDocumentTemplatesRequest();\n req.tenantId = tenantId;\n const extractor = (response:any) => new GetAllDocumentTemplatesResponse(response).documentTemplate;\n return this.makeJsonRequest(\"documentTemplate/v1/getAllDocumentTemplates\", req.toJsonSerializedObject(), extractor, opts);\n };\n\n public async getDocumentTemplate(tenantId: Guid, documentTemplateId: Guid, opts?: {requestTimeoutMs?: number, sessionToken?: string}): Promise {\n const req = new GetDocumentTemplateRequest();\n req.tenantId = tenantId;\n req.documentTemplateId = documentTemplateId;\n const extractor = (response:any) => new GetDocumentTemplateResponse(response).documentTemplate;\n return this.makeJsonRequest(\"documentTemplate/v1/getDocumentTemplate\", req.toJsonSerializedObject(), extractor, opts);\n };\n\n public async getTemplateIdOfTypeDefault(tenantId: Guid, documentType: EnumDocumentType, opts?: {requestTimeoutMs?: number, sessionToken?: string}): Promise {\n const req = new GetTemplateIdOfTypeDefaultRequest();\n req.tenantId = tenantId;\n req.documentType = documentType;\n const extractor = (response:any) => new GetTemplateIdOfTypeDefaultResponse(response).documentId;\n return this.makeJsonRequest(\"documentTemplate/v1/getTemplateIdOfTypeDefault\", req.toJsonSerializedObject(), extractor, opts);\n };\n\n public async getRequiredTypeDefaultTemplate(tenantId: Guid, documentType: EnumDocumentType, opts?: {requestTimeoutMs?: number, sessionToken?: string}): Promise {\n const req = new GetRequiredTypeDefaultTemplateRequest();\n req.tenantId = tenantId;\n req.documentType = documentType;\n const extractor = (response:any) => new GetRequiredTypeDefaultTemplateResponse(response).documentTemplate;\n return this.makeJsonRequest(\"documentTemplate/v1/getRequiredTypeDefaultTemplate\", req.toJsonSerializedObject(), extractor, opts);\n };\n\n public async saveDocumentTemplate(tenantId: Guid, documentTemplate: DocumentTemplate, opts?: {requestTimeoutMs?: number, sessionToken?: string}): Promise {\n const req = new SaveDocumentTemplateRequest();\n req.tenantId = tenantId;\n req.documentTemplate = documentTemplate;\n const extractor = null;\n return this.makeJsonRequest(\"documentTemplate/v1/saveDocumentTemplate\", req.toJsonSerializedObject(), extractor, opts);\n };\n\n public async setDocumentTemplateIsHidden(tenantId: Guid, documentTemplateId: Guid, hide: boolean, opts?: {requestTimeoutMs?: number, sessionToken?: string}): Promise {\n const req = new SetDocumentTemplateIsHiddenRequest();\n req.tenantId = tenantId;\n req.documentTemplateId = documentTemplateId;\n req.hide = hide;\n const extractor = null;\n return this.makeJsonRequest(\"documentTemplate/v1/setDocumentTemplateIsHidden\", req.toJsonSerializedObject(), extractor, opts);\n };\n\n public async getEmailDetails(tenantId: Guid, documentType: EnumDocumentType, opts?: {requestTimeoutMs?: number, sessionToken?: string}): Promise {\n const req = new GetEmailDetailsRequest();\n req.tenantId = tenantId;\n req.documentType = documentType;\n const extractor = (response:any) => new GetEmailDetailsResponse(response).emailDetails;\n return this.makeJsonRequest(\"documentTemplate/v1/getEmailDetails\", req.toJsonSerializedObject(), extractor, opts);\n };\n\n public async getDocumentTemplatesByFilter(tenantId: Guid, filter: DocumentTemplateFilter, opts?: {requestTimeoutMs?: number, sessionToken?: string}): Promise {\n const req = new GetDocumentTemplatesByFilterRequest();\n req.tenantId = tenantId;\n req.filter = filter;\n const extractor = (response:any) => new GetDocumentTemplatesByFilterResponse(response).results;\n return this.makeJsonRequest(\"documentTemplate/v1/getDocumentTemplatesByFilter\", req.toJsonSerializedObject(), extractor, opts);\n };\n}\n\nexport const documentTemplateService = new DocumentTemplateService();"],"names":[],"mappings":"6gBAWO,MAAM,qBAAqB,WAA0B,CAMjD,YAAY,qBAA4B,CACrC,QALH,4BAAiB,IACjB,6BAA+B,oBAAoB,QACnD,8BAAoB,IA4BpB,qCAAkC,CAAA,GAxBjC,uBACF,KAAK,OAAS,qBAAqB,OACnC,KAAK,QAAU,oBAAoB,WAAW,qBAAqB,QAAS,KAAK,OAAO,EACxF,KAAK,SAAW,qBAAqB,SAG3C,CAEO,wBAA8B,CACjC,MAAM,MAAQ,CAAA,EACd,aAAM,OAAS,KAAK,OACd,MAAA,QAAU,KAAK,QAAQ,MAC7B,MAAM,SAAW,KAAK,SACf,KACX,CAEO,SAAe,CACpB,OAAO,KAAK,wBACd,CAEO,UAAuB,C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