@things-factory/compliance 10.1.254 → 10.1.256
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-client/pages/regulation-detail.d.ts +3 -0
- package/dist-client/pages/regulation-detail.js +45 -3
- package/dist-client/pages/regulation-detail.js.map +1 -1
- package/dist-client/pages/regulations.js +41 -12
- package/dist-client/pages/regulations.js.map +1 -1
- package/dist-client/regulation/regulation-fragments.js +5 -0
- package/dist-client/regulation/regulation-fragments.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-client/words.js +1 -1
- package/dist-client/words.js.map +1 -1
- package/dist-server/activities/index.js +9 -7
- package/dist-server/activities/index.js.map +1 -1
- package/dist-server/index.d.ts +1 -0
- package/dist-server/index.js +1 -0
- package/dist-server/index.js.map +1 -1
- package/dist-server/service/index.d.ts +1 -1
- package/dist-server/service/index.js +2 -1
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/regulation/regulation-mutation.d.ts +1 -0
- package/dist-server/service/regulation/regulation-mutation.js +14 -0
- package/dist-server/service/regulation/regulation-mutation.js.map +1 -1
- package/dist-server/service/regulation/regulation-read.js +11 -2
- package/dist-server/service/regulation/regulation-read.js.map +1 -1
- package/dist-server/service/regulation/regulation-rules.d.ts +22 -3
- package/dist-server/service/regulation/regulation-rules.js +69 -13
- package/dist-server/service/regulation/regulation-rules.js.map +1 -1
- package/dist-server/service/regulation/regulation-service.d.ts +12 -0
- package/dist-server/service/regulation/regulation-service.js +48 -7
- package/dist-server/service/regulation/regulation-service.js.map +1 -1
- package/dist-server/service/regulation/regulation-type.d.ts +4 -0
- package/dist-server/service/regulation/regulation-type.js +16 -0
- package/dist-server/service/regulation/regulation-type.js.map +1 -1
- package/dist-server/service/regulation/regulation.d.ts +2 -0
- package/dist-server/service/regulation/regulation.js +11 -1
- package/dist-server/service/regulation/regulation.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/dist-server/work-doors.d.ts +1 -0
- package/dist-server/work-doors.js +15 -0
- package/dist-server/work-doors.js.map +1 -0
- package/package.json +14 -14
- package/translations/en.json +22 -1
- package/translations/es.json +22 -1
- package/translations/ja.json +22 -1
- package/translations/ko.json +78 -57
- package/translations/ms.json +22 -1
- package/translations/zh.json +22 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regulation.js","sourceRoot":"","sources":["../../../server/service/regulation/regulation.ts"],"names":[],"mappings":";;;;AAAA,+CAA2E;AAC3E,qCAAkI;AAElI,yDAAgD;AAChD,iDAA8C;AAE9C,2FAA2F;AAC3F,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,mHAAmH;IACnH,2CAAyB,CAAA;IACzB,0HAA0H;IAC1H,uDAAqC,CAAA;IACrC,2CAA2C;IAC3C,mDAAiC,CAAA;IACjC,aAAa;IACb,+CAA6B,CAAA;IAC7B,uFAAuF;IACvF,iCAAe,CAAA;AACjB,CAAC,EAXW,cAAc,8BAAd,cAAc,QAWzB;AAED,IAAA,+BAAgB,EAAC,cAAc,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,qFAAqF,EAAE,CAAC,CAAA;AAEhK,4HAA4H;AAC5H,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,0CAAe,CAAA;IACf,sDAA2B,CAAA;IAC3B,8CAAmB,CAAA;AACrB,CAAC,EAJW,uBAAuB,uCAAvB,uBAAuB,QAIlC;AAED,IAAA,+BAAgB,EAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,yBAAyB,EAAE,WAAW,EAAE,wCAAwC,EAAE,CAAC,CAAA;AAErI,+DAA+D;AAC/D,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IACjC,qFAAqF;IACrF,8CAAmB,CAAA;IACnB,0EAA0E;IAC1E,8CAAmB,CAAA;IACnB,yCAAyC;IACzC,4CAAiB,CAAA;AACnB,CAAC,EAPW,uBAAuB,uCAAvB,uBAAuB,QAOlC;AA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;AAIhB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;sCAC3D,gBAAI;oDAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,GAAwB,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC;;sDACpC;8BAnDP,mBAAmB;IAH/B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kCAAkC,EAAE,CAAC;IACpD,IAAA,eAAK,EAAC,sCAAsC,EAAE,CAAC,GAAwB,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IACpG,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,4FAA4F,EAAE,CAAC;GAC7G,mBAAmB,CAoD/B","sourcesContent":["import { Field, ID, Int, ObjectType, registerEnumType } from 'type-graphql'\nimport { Column, CreateDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\n\n/** What a rule is, and so which procedure its adoption needs (ADR-0187 decisions 2, 4). */\nexport enum RegulationKind {\n /** 취업규칙 - filed with the labour office; the workers' majority opinion, their consent for a change against them. */\n WORK_RULES = 'WORK_RULES',\n /** 부속 규정 - rules of working conditions apart from the work rules: the use of the business systems, evaluation, travel. */\n WORK_RULES_ANNEX = 'WORK_RULES_ANNEX',\n /** 개인정보 처리방침 - published (개인정보보호법 §30). */\n PRIVACY_POLICY = 'PRIVACY_POLICY',\n /** 내부관리계획 */\n PRIVACY_PLAN = 'PRIVACY_PLAN',\n /** 그 밖의 규정 - none of the working conditions: the keeping of documents and the like. */\n OTHER = 'OTHER'\n}\n\nregisterEnumType(RegulationKind, { name: 'RegulationKind', description: 'work rules, an annex of them, the privacy policy, the privacy plan, or another rule' })\n\n/** Where a version stands. An adopted one is due, in force or past by its effective day - read on the day, never stored. */\nexport enum RegulationVersionStatus {\n DRAFT = 'DRAFT',\n IN_APPROVAL = 'IN_APPROVAL',\n ADOPTED = 'ADOPTED'\n}\n\nregisterEnumType(RegulationVersionStatus, { name: 'RegulationVersionStatus', description: 'being written, in approval, or adopted' })\n\n/** A step the law asks of a rule's change (근로기준법 §93, §94). */\nexport enum RegulationProcedureKind {\n /** 의견 청취 - the opinion of the workers' majority, or of the union of the majority. */\n OPINION = 'OPINION',\n /** 동의 - the consent of the majority, for a change against the workers. */\n CONSENT = 'CONSENT',\n /** 신고 - filed with the labour office. */\n FILING = 'FILING'\n}\n\nregisterEnumType(RegulationProcedureKind, { name: 'RegulationProcedureKind', description: 'the opinion heard, the consent given, or the filing' })\n\n/**\n * 규정 (ADR-0187 decision 2) - one rule of the company, by code: its name, kind and the topics of the guide it answers.\n * Its text is in its versions.\n */\n@Entity({ name: 'compliance_regulations' })\n@Index('ix_compliance_regulation_0', (row: Regulation) => [row.domain, row.code], { unique: true })\n@ObjectType({ description: 'A rule of the company - work rules, an annex, the privacy policy - with its versions (ADR-0187)' })\nexport class Regulation {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Regulation id' })\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain, { nullable: true, description: 'The domain' })\n domain?: Domain\n\n @RelationId((row: Regulation) => row.domain)\n domainId?: string\n\n @Column()\n @Field({ description: 'The code, unique in the domain - `WORK`' })\n code: string\n\n @Column()\n @Field({ description: 'The name - 취업규칙' })\n name: string\n\n @Column()\n @Field(type => RegulationKind, { description: 'What it is, and so the procedure its adoption needs' })\n kind: RegulationKind\n\n @Column('simple-json', { nullable: true })\n @Field(type => [String], { nullable: true, description: \"The guide's sections it answers - `severance`, `leave` (the section ids of the guide on the law)\" })\n topics?: string[]\n\n @Column('int', { default: 0 })\n @Field(type => Int, { description: 'Its place in the list' })\n rank: number\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'Creation timestamp' })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true, description: 'Last update timestamp' })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who wrote it' })\n creator?: User\n\n @RelationId((row: Regulation) => row.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who changed it last' })\n updater?: User\n\n @RelationId((row: Regulation) => row.updater)\n updaterId?: string\n}\n\n/**\n * 판 (ADR-0187 decisions 2-6) - one text of a rule: written, put up for adoption, adopted to take effect on a day. Once\n * adopted its text, day, whether it is against the workers and its procedure stay as they were; a correction is a new\n * version.\n */\n@Entity({ name: 'compliance_regulation_versions' })\n@Index('ix_compliance_regulation_version_0', (row: RegulationVersion) => [row.regulation, row.version], { unique: true })\n@Index('ix_compliance_regulation_version_1', (row: RegulationVersion) => [row.domain, row.status, row.effectiveOn])\n@ObjectType({ description: 'One version of a rule - its text, the day it takes effect, the procedure it went through (ADR-0187)' })\nexport class RegulationVersion {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Version id' })\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain, { nullable: true, description: 'The domain' })\n domain?: Domain\n\n @RelationId((row: RegulationVersion) => row.domain)\n domainId?: string\n\n @ManyToOne(type => Regulation, { onDelete: 'CASCADE' })\n @Field(type => Regulation, { nullable: true, description: 'The rule' })\n regulation?: Regulation\n\n @RelationId((row: RegulationVersion) => row.regulation)\n @Field({ nullable: true, description: 'The rule' })\n regulationId?: string\n\n @Column('int')\n @Field(type => Int, { description: 'The version number - 1, 2 ...' })\n version: number\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true, description: 'The text in Markdown; its articles begin `제n조(제목)`' })\n body?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'YYYY-MM-DD it takes effect - on or after the day its approval ends' })\n effectiveOn?: string\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true, description: 'What changed, in the words of its writer' })\n changeSummary?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Whether the change is against the workers (불이익 변경) - none until its writer says' })\n unfavourable?: boolean\n\n @Column({ default: RegulationVersionStatus.DRAFT })\n @Field(type => RegulationVersionStatus, { description: 'Being written, in approval, or adopted' })\n status: RegulationVersionStatus\n\n @Column({ type: 'int', nullable: true })\n @Field(type => Int, { nullable: true, description: 'How many workers the procedure is of - written by its keeper' })\n workersCount?: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n activityInstanceId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'When it was adopted' })\n adoptedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who decided its adoption' })\n adoptedBy?: User\n\n @RelationId((row: RegulationVersion) => row.adoptedBy)\n adoptedById?: string\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true, description: 'Why an approval did not adopt it - its effective day had passed' })\n adoptionNote?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The announcement that told the employees of it' })\n announcementId?: string\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'Creation timestamp' })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true, description: 'Last update timestamp' })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who wrote it' })\n creator?: User\n\n @RelationId((row: RegulationVersion) => row.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who changed it last' })\n updater?: User\n\n @RelationId((row: RegulationVersion) => row.updater)\n updaterId?: string\n}\n\n/** 조문 (ADR-0187 decision 2) - one article of an adopted version, cut from its text at `제n조`. */\n@Entity({ name: 'compliance_regulation_clauses' })\n@Index('ix_compliance_regulation_clause_0', (row: RegulationClause) => [row.version, row.rank])\n@ObjectType({ description: 'One article of a version of a rule, cut from its text' })\nexport class RegulationClause {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Clause id' })\n readonly id: string\n\n @ManyToOne(type => Domain)\n domain?: Domain\n\n @ManyToOne(type => RegulationVersion, { onDelete: 'CASCADE' })\n version?: RegulationVersion\n\n @RelationId((row: RegulationClause) => row.version)\n @Field({ nullable: true, description: 'The version' })\n versionId?: string\n\n @Column('int')\n @Field(type => Int, { description: 'Its place in the text' })\n rank: number\n\n @Column()\n @Field({ description: 'The article number as written - `3`, `3의2`' })\n number: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The heading in the brackets - 근로시간' })\n title?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The chapter it stands in - 제2장 근로시간' })\n chapter?: string\n\n @Column({ type: 'text' })\n @Field({ description: 'The words of the article' })\n text: string\n}\n\n/**\n * 절차 기록 (ADR-0187 decision 4) - the evidence the law asks of a change: the majority's opinion heard, their consent,\n * the filing. Its papers (opinion, consent, filing and receipt) hang on it as attachments.\n */\n@Entity({ name: 'compliance_regulation_procedures' })\n@Index('ix_compliance_regulation_procedure_0', (row: RegulationProcedure) => [row.version, row.kind])\n@ObjectType({ description: 'The opinion heard, the consent given or the filing of a version of a rule, with its papers' })\nexport class RegulationProcedure {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Procedure id' })\n readonly id: string\n\n @ManyToOne(type => Domain)\n domain?: Domain\n\n @RelationId((row: RegulationProcedure) => row.domain)\n domainId?: string\n\n @ManyToOne(type => RegulationVersion, { onDelete: 'CASCADE' })\n version?: RegulationVersion\n\n @RelationId((row: RegulationProcedure) => row.version)\n @Field({ nullable: true, description: 'The version' })\n versionId?: string\n\n @Column()\n @Field(type => RegulationProcedureKind, { description: 'Opinion, consent or filing' })\n kind: RegulationProcedureKind\n\n @Column()\n @Field({ description: 'YYYY-MM-DD it was heard, given or filed' })\n day: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'How - a code of the module: the union of the majority, a meeting of the workers, signatures, online filing' })\n method?: string\n\n @Column({ type: 'int', nullable: true })\n @Field(type => Int, { nullable: true, description: 'How many workers it was of' })\n workersCount?: number\n\n @Column({ type: 'int', nullable: true })\n @Field(type => Int, { nullable: true, description: 'How many consented - for a consent' })\n consentCount?: number\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true })\n notes?: string\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'Creation timestamp' })\n createdAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who wrote it' })\n creator?: User\n\n @RelationId((row: RegulationProcedure) => row.creator)\n creatorId?: string\n}\n"]}
|
|
1
|
+
{"version":3,"file":"regulation.js","sourceRoot":"","sources":["../../../server/service/regulation/regulation.ts"],"names":[],"mappings":";;;;AAAA,+CAA2E;AAC3E,qCAAkI;AAElI,yDAAgD;AAChD,iDAA8C;AAE9C,2FAA2F;AAC3F,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,mHAAmH;IACnH,2CAAyB,CAAA;IACzB,0HAA0H;IAC1H,uDAAqC,CAAA;IACrC,2CAA2C;IAC3C,mDAAiC,CAAA;IACjC,aAAa;IACb,+CAA6B,CAAA;IAC7B,uFAAuF;IACvF,iCAAe,CAAA;AACjB,CAAC,EAXW,cAAc,8BAAd,cAAc,QAWzB;AAED,IAAA,+BAAgB,EAAC,cAAc,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,qFAAqF,EAAE,CAAC,CAAA;AAEhK,4HAA4H;AAC5H,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,0CAAe,CAAA;IACf,sDAA2B,CAAA;IAC3B,8CAAmB,CAAA;AACrB,CAAC,EAJW,uBAAuB,uCAAvB,uBAAuB,QAIlC;AAED,IAAA,+BAAgB,EAAC,uBAAuB,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E,4FAA4F,EAAE,CAAC;GAC7G,mBAAmB,CAoD/B","sourcesContent":["import { Field, ID, Int, ObjectType, registerEnumType } from 'type-graphql'\nimport { Column, CreateDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\n\n/** What a rule is, and so which procedure its adoption needs (ADR-0187 decisions 2, 4). */\nexport enum RegulationKind {\n /** 취업규칙 - filed with the labour office; the workers' majority opinion, their consent for a change against them. */\n WORK_RULES = 'WORK_RULES',\n /** 부속 규정 - rules of working conditions apart from the work rules: the use of the business systems, evaluation, travel. */\n WORK_RULES_ANNEX = 'WORK_RULES_ANNEX',\n /** 개인정보 처리방침 - published (개인정보보호법 §30). */\n PRIVACY_POLICY = 'PRIVACY_POLICY',\n /** 내부관리계획 */\n PRIVACY_PLAN = 'PRIVACY_PLAN',\n /** 그 밖의 규정 - none of the working conditions: the keeping of documents and the like. */\n OTHER = 'OTHER'\n}\n\nregisterEnumType(RegulationKind, { name: 'RegulationKind', description: 'work rules, an annex of them, the privacy policy, the privacy plan, or another rule' })\n\n/** Where a version stands. An adopted one is due, in force or past by its effective day - read on the day, never stored. */\nexport enum RegulationVersionStatus {\n DRAFT = 'DRAFT',\n IN_APPROVAL = 'IN_APPROVAL',\n ADOPTED = 'ADOPTED'\n}\n\nregisterEnumType(RegulationVersionStatus, { name: 'RegulationVersionStatus', description: 'being written, in approval, or adopted' })\n\n/** A step the law asks of a rule's change (근로기준법 §93, §94). */\nexport enum RegulationProcedureKind {\n /** 의견 청취 - the opinion of the workers' majority, or of the union of the majority. */\n OPINION = 'OPINION',\n /** 동의 - the consent of the majority, for a change against the workers. */\n CONSENT = 'CONSENT',\n /** 신고 - filed with the labour office. */\n FILING = 'FILING'\n}\n\nregisterEnumType(RegulationProcedureKind, { name: 'RegulationProcedureKind', description: 'the opinion heard, the consent given, or the filing' })\n\n/**\n * 규정 (ADR-0187 decision 2) - one rule of the company, by code: its name, kind and the topics of the guide it answers.\n * Its text is in its versions.\n */\n@Entity({ name: 'compliance_regulations' })\n@Index('ix_compliance_regulation_0', (row: Regulation) => [row.domain, row.code], { unique: true })\n@ObjectType({ description: 'A rule of the company - work rules, an annex, the privacy policy - with its versions (ADR-0187)' })\nexport class Regulation {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Regulation id' })\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain, { nullable: true, description: 'The domain' })\n domain?: Domain\n\n @RelationId((row: Regulation) => row.domain)\n domainId?: string\n\n @Column()\n @Field({ description: 'The code, unique in the domain - `WORK`' })\n code: string\n\n @Column()\n @Field({ description: 'The name - 취업규칙' })\n name: string\n\n @Column()\n @Field(type => RegulationKind, { description: 'What it is, and so the procedure its adoption needs' })\n kind: RegulationKind\n\n @Column('simple-json', { nullable: true })\n @Field(type => [String], { nullable: true, description: \"The guide's sections it answers - `severance`, `leave` (the section ids of the guide on the law)\" })\n topics?: string[]\n\n @Column('int', { default: 0 })\n @Field(type => Int, { description: 'Its place in the list' })\n rank: number\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'Creation timestamp' })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true, description: 'Last update timestamp' })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who wrote it' })\n creator?: User\n\n @RelationId((row: Regulation) => row.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who changed it last' })\n updater?: User\n\n @RelationId((row: Regulation) => row.updater)\n updaterId?: string\n}\n\n/**\n * 판 (ADR-0187 decisions 2-6) - one text of a rule: written, put up for adoption, adopted to take effect on a day. Once\n * adopted its text, day, whether it is against the workers and its procedure stay as they were; a correction is a new\n * version.\n */\n@Entity({ name: 'compliance_regulation_versions' })\n@Index('ix_compliance_regulation_version_0', (row: RegulationVersion) => [row.regulation, row.version], { unique: true })\n@Index('ix_compliance_regulation_version_1', (row: RegulationVersion) => [row.domain, row.status, row.effectiveOn])\n@ObjectType({ description: 'One version of a rule - its text, the day it takes effect, the procedure it went through (ADR-0187)' })\nexport class RegulationVersion {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Version id' })\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain, { nullable: true, description: 'The domain' })\n domain?: Domain\n\n @RelationId((row: RegulationVersion) => row.domain)\n domainId?: string\n\n @ManyToOne(type => Regulation, { onDelete: 'CASCADE' })\n @Field(type => Regulation, { nullable: true, description: 'The rule' })\n regulation?: Regulation\n\n @RelationId((row: RegulationVersion) => row.regulation)\n @Field({ nullable: true, description: 'The rule' })\n regulationId?: string\n\n @Column('int')\n @Field(type => Int, { description: 'The version number - 1, 2 ...' })\n version: number\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true, description: 'The text in Markdown; its articles begin `제n조(제목)`' })\n body?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'YYYY-MM-DD it takes effect - on or after the day its approval ends' })\n effectiveOn?: string\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true, description: 'What changed, in the words of its writer' })\n changeSummary?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Whether the change is against the workers (불이익 변경) - none until its writer says' })\n unfavourable?: boolean\n\n @Column({ default: RegulationVersionStatus.DRAFT })\n @Field(type => RegulationVersionStatus, { description: 'Being written, in approval, or adopted' })\n status: RegulationVersionStatus\n\n @Column({ type: 'int', nullable: true })\n @Field(type => Int, { nullable: true, description: 'How many workers the procedure is of - written by its keeper' })\n workersCount?: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n activityInstanceId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'When it was adopted' })\n adoptedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who decided its adoption' })\n adoptedBy?: User\n\n @RelationId((row: RegulationVersion) => row.adoptedBy)\n adoptedById?: string\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true, description: 'Why an approval did not adopt it - its effective day had passed' })\n adoptionNote?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Whether it was registered as in force already - a rule taken before the system, adopted without approval or announcement' })\n registeredInForce?: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The announcement that told the employees of it' })\n announcementId?: string\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'Creation timestamp' })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true, description: 'Last update timestamp' })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who wrote it' })\n creator?: User\n\n @RelationId((row: RegulationVersion) => row.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who changed it last' })\n updater?: User\n\n @RelationId((row: RegulationVersion) => row.updater)\n updaterId?: string\n}\n\n/** 조문 (ADR-0187 decision 2) - one article of an adopted version, cut from its text at `제n조`. */\n@Entity({ name: 'compliance_regulation_clauses' })\n@Index('ix_compliance_regulation_clause_0', (row: RegulationClause) => [row.version, row.rank])\n@ObjectType({ description: 'One article of a version of a rule, cut from its text' })\nexport class RegulationClause {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Clause id' })\n readonly id: string\n\n @ManyToOne(type => Domain)\n domain?: Domain\n\n @ManyToOne(type => RegulationVersion, { onDelete: 'CASCADE' })\n version?: RegulationVersion\n\n @RelationId((row: RegulationClause) => row.version)\n @Field({ nullable: true, description: 'The version' })\n versionId?: string\n\n @Column('int')\n @Field(type => Int, { description: 'Its place in the text' })\n rank: number\n\n @Column()\n @Field({ description: 'The article number as written - `3`, `3의2`; in the addenda `부칙1`' })\n number: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'How it is named on the page - 제3조(휴게), 부칙 제1조(시행일)' })\n heading?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The heading in the brackets - 근로시간' })\n title?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The chapter it stands in - 제2장 근로시간' })\n chapter?: string\n\n @Column({ type: 'text' })\n @Field({ description: 'The words of the article' })\n text: string\n}\n\n/**\n * 절차 기록 (ADR-0187 decision 4) - the evidence the law asks of a change: the majority's opinion heard, their consent,\n * the filing. Its papers (opinion, consent, filing and receipt) hang on it as attachments.\n */\n@Entity({ name: 'compliance_regulation_procedures' })\n@Index('ix_compliance_regulation_procedure_0', (row: RegulationProcedure) => [row.version, row.kind])\n@ObjectType({ description: 'The opinion heard, the consent given or the filing of a version of a rule, with its papers' })\nexport class RegulationProcedure {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Procedure id' })\n readonly id: string\n\n @ManyToOne(type => Domain)\n domain?: Domain\n\n @RelationId((row: RegulationProcedure) => row.domain)\n domainId?: string\n\n @ManyToOne(type => RegulationVersion, { onDelete: 'CASCADE' })\n version?: RegulationVersion\n\n @RelationId((row: RegulationProcedure) => row.version)\n @Field({ nullable: true, description: 'The version' })\n versionId?: string\n\n @Column()\n @Field(type => RegulationProcedureKind, { description: 'Opinion, consent or filing' })\n kind: RegulationProcedureKind\n\n @Column()\n @Field({ description: 'YYYY-MM-DD it was heard, given or filed' })\n day: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'How - a code of the module: the union of the majority, a meeting of the workers, signatures, online filing' })\n method?: string\n\n @Column({ type: 'int', nullable: true })\n @Field(type => Int, { nullable: true, description: 'How many workers it was of' })\n workersCount?: number\n\n @Column({ type: 'int', nullable: true })\n @Field(type => Int, { nullable: true, description: 'How many consented - for a consent' })\n consentCount?: number\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true })\n notes?: string\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'Creation timestamp' })\n createdAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who wrote it' })\n creator?: User\n\n @RelationId((row: RegulationProcedure) => row.creator)\n creatorId?: string\n}\n"]}
|