quankee-framework-identity-document 1.6.2

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/LICENSE ADDED
@@ -0,0 +1,15 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2025 Quankee Software, Lda
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,63 @@
1
+ # QuankeeFrameworkIdentityDocument
2
+
3
+ This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
8
+
9
+ ```bash
10
+ ng generate component component-name
11
+ ```
12
+
13
+ For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
14
+
15
+ ```bash
16
+ ng generate --help
17
+ ```
18
+
19
+ ## Building
20
+
21
+ To build the library, run:
22
+
23
+ ```bash
24
+ ng build quankee-framework-identity-document
25
+ ```
26
+
27
+ This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
28
+
29
+ ### Publishing the Library
30
+
31
+ Once the project is built, you can publish your library by following these steps:
32
+
33
+ 1. Navigate to the `dist` directory:
34
+ ```bash
35
+ cd dist/quankee-framework-identity-document
36
+ ```
37
+
38
+ 2. Run the `npm publish` command to publish your library to the npm registry:
39
+ ```bash
40
+ npm publish
41
+ ```
42
+
43
+ ## Running unit tests
44
+
45
+ To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
46
+
47
+ ```bash
48
+ ng test
49
+ ```
50
+
51
+ ## Running end-to-end tests
52
+
53
+ For end-to-end (e2e) testing, run:
54
+
55
+ ```bash
56
+ ng e2e
57
+ ```
58
+
59
+ Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
60
+
61
+ ## Additional Resources
62
+
63
+ For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
@@ -0,0 +1,35 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable } from '@angular/core';
3
+ import * as i1 from '@angular/common/http';
4
+
5
+ class IdentityDocumentService {
6
+ http;
7
+ constructor(http) {
8
+ this.http = http;
9
+ }
10
+ getDocumentTypes(baseUrl) {
11
+ return this.http.get(`${baseUrl}/api/identity/document/types`);
12
+ }
13
+ getDocumentIssuers(baseUrl) {
14
+ return this.http.get(`${baseUrl}/api/identity/document/issuers`);
15
+ }
16
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: IdentityDocumentService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
17
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: IdentityDocumentService, providedIn: 'root' });
18
+ }
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: IdentityDocumentService, decorators: [{
20
+ type: Injectable,
21
+ args: [{
22
+ providedIn: 'root'
23
+ }]
24
+ }], ctorParameters: () => [{ type: i1.HttpClient }] });
25
+
26
+ /*
27
+ * Public API Surface of quankee-framework-identity-document
28
+ */
29
+
30
+ /**
31
+ * Generated bundle index. Do not edit.
32
+ */
33
+
34
+ export { IdentityDocumentService };
35
+ //# sourceMappingURL=quankee-framework-identity-document.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quankee-framework-identity-document.mjs","sources":["../../../projects/quankee-framework-identity-document/src/lib/core/service/identity-document.service.ts","../../../projects/quankee-framework-identity-document/src/public-api.ts","../../../projects/quankee-framework-identity-document/src/quankee-framework-identity-document.ts"],"sourcesContent":["import {Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {Response} from 'quankee-framework-response';\nimport {IdentityDocumentType} from '../type/identity-document-type';\nimport { IdentityDocumentIssuer } from '../issuer/identity-document-issuer';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class IdentityDocumentService {\n\n constructor(private readonly http: HttpClient) {}\n\n getDocumentTypes(baseUrl: string): Observable<Response<IdentityDocumentType[]>> {\n return this.http.get<Response<IdentityDocumentType[]>>(`${baseUrl}/api/identity/document/types`);\n }\n\n getDocumentIssuers(baseUrl: string): Observable<Response<IdentityDocumentIssuer[]>> {\n return this.http.get<Response<IdentityDocumentIssuer[]>>(`${baseUrl}/api/identity/document/issuers`);\n\n }\n\n}\n","/*\n * Public API Surface of quankee-framework-identity-document\n */\n\nexport * from './lib/core/type/identity-document-type';\nexport * from './lib/core/service/identity-document.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAUa,uBAAuB,CAAA;AAEL,IAAA,IAAA;AAA7B,IAAA,WAAA,CAA6B,IAAgB,EAAA;QAAhB,IAAI,CAAA,IAAA,GAAJ,IAAI;;AAEjC,IAAA,gBAAgB,CAAC,OAAe,EAAA;QAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAmC,CAAG,EAAA,OAAO,CAA8B,4BAAA,CAAA,CAAC;;AAGlG,IAAA,kBAAkB,CAAC,OAAe,EAAA;QAChC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAqC,CAAG,EAAA,OAAO,CAAgC,8BAAA,CAAA,CAAC;;wGAT3F,uBAAuB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAvB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cAFtB,MAAM,EAAA,CAAA;;4FAEP,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACTD;;AAEG;;ACFH;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="quankee-framework-identity-document" />
5
+ export * from './public-api';
@@ -0,0 +1,4 @@
1
+ export interface IdentityDocumentIssuer {
2
+ identityDocumentIssuerId: string;
3
+ description: string;
4
+ }
@@ -0,0 +1,14 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { Response } from 'quankee-framework-response';
4
+ import { IdentityDocumentType } from '../type/identity-document-type';
5
+ import { IdentityDocumentIssuer } from '../issuer/identity-document-issuer';
6
+ import * as i0 from "@angular/core";
7
+ export declare class IdentityDocumentService {
8
+ private readonly http;
9
+ constructor(http: HttpClient);
10
+ getDocumentTypes(baseUrl: string): Observable<Response<IdentityDocumentType[]>>;
11
+ getDocumentIssuers(baseUrl: string): Observable<Response<IdentityDocumentIssuer[]>>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<IdentityDocumentService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<IdentityDocumentService>;
14
+ }
@@ -0,0 +1,4 @@
1
+ export interface IdentityDocumentType {
2
+ identityDocumentTypeId: string;
3
+ description: string;
4
+ }
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "quankee-framework-identity-document",
3
+ "version": "1.6.2",
4
+ "peerDependencies": {
5
+ "@angular/common": "^19.2.0",
6
+ "@angular/core": "^19.2.0"
7
+ },
8
+ "dependencies": {
9
+ "tslib": "^2.3.0"
10
+ },
11
+ "sideEffects": false,
12
+ "module": "fesm2022/quankee-framework-identity-document.mjs",
13
+ "typings": "index.d.ts",
14
+ "exports": {
15
+ "./package.json": {
16
+ "default": "./package.json"
17
+ },
18
+ ".": {
19
+ "types": "./index.d.ts",
20
+ "default": "./fesm2022/quankee-framework-identity-document.mjs"
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,2 @@
1
+ export * from './lib/core/type/identity-document-type';
2
+ export * from './lib/core/service/identity-document.service';