@vulog/aima-document 1.1.82 → 1.1.84
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.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
- package/src/getUserDocuments.test.ts +3 -3
- package/src/types.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -60,9 +60,9 @@ type DocumentSummary = {
|
|
|
60
60
|
documentByService: DocumentByService[];
|
|
61
61
|
documentByFranchise: DocumentByFranchise[] | null;
|
|
62
62
|
};
|
|
63
|
-
declare const personalInformationDocumentTypes: readonly ["
|
|
63
|
+
declare const personalInformationDocumentTypes: readonly ["DOCUMENT_NUMBER_1"];
|
|
64
64
|
type PersonalInformationDocumentType = (typeof personalInformationDocumentTypes)[number];
|
|
65
|
-
declare const personalInformationDocumentTypeSchema: z.ZodEnum<["
|
|
65
|
+
declare const personalInformationDocumentTypeSchema: z.ZodEnum<["DOCUMENT_NUMBER_1"]>;
|
|
66
66
|
type PersonalInformationDocument = {
|
|
67
67
|
fleetId: string;
|
|
68
68
|
userId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -60,9 +60,9 @@ type DocumentSummary = {
|
|
|
60
60
|
documentByService: DocumentByService[];
|
|
61
61
|
documentByFranchise: DocumentByFranchise[] | null;
|
|
62
62
|
};
|
|
63
|
-
declare const personalInformationDocumentTypes: readonly ["
|
|
63
|
+
declare const personalInformationDocumentTypes: readonly ["DOCUMENT_NUMBER_1"];
|
|
64
64
|
type PersonalInformationDocumentType = (typeof personalInformationDocumentTypes)[number];
|
|
65
|
-
declare const personalInformationDocumentTypeSchema: z.ZodEnum<["
|
|
65
|
+
declare const personalInformationDocumentTypeSchema: z.ZodEnum<["DOCUMENT_NUMBER_1"]>;
|
|
66
66
|
type PersonalInformationDocument = {
|
|
67
67
|
fleetId: string;
|
|
68
68
|
userId: string;
|
package/dist/index.js
CHANGED
|
@@ -51,7 +51,7 @@ var import_zod3 = require("zod");
|
|
|
51
51
|
|
|
52
52
|
// src/types.ts
|
|
53
53
|
var import_zod2 = require("zod");
|
|
54
|
-
var personalInformationDocumentTypes = ["
|
|
54
|
+
var personalInformationDocumentTypes = ["DOCUMENT_NUMBER_1"];
|
|
55
55
|
var personalInformationDocumentTypeSchema = import_zod2.z.enum(personalInformationDocumentTypes);
|
|
56
56
|
|
|
57
57
|
// src/getUserDocuments.ts
|
package/dist/index.mjs
CHANGED
|
@@ -21,7 +21,7 @@ import { z as z3 } from "zod";
|
|
|
21
21
|
|
|
22
22
|
// src/types.ts
|
|
23
23
|
import { z as z2 } from "zod";
|
|
24
|
-
var personalInformationDocumentTypes = ["
|
|
24
|
+
var personalInformationDocumentTypes = ["DOCUMENT_NUMBER_1"];
|
|
25
25
|
var personalInformationDocumentTypeSchema = z2.enum(personalInformationDocumentTypes);
|
|
26
26
|
|
|
27
27
|
// src/getUserDocuments.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vulog/aima-document",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.84",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"author": "Vulog",
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@vulog/aima-client": "1.1.
|
|
23
|
-
"@vulog/aima-core": "1.1.
|
|
22
|
+
"@vulog/aima-client": "1.1.84",
|
|
23
|
+
"@vulog/aima-core": "1.1.84"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"zod": "^3.25.76"
|
|
27
27
|
},
|
|
28
28
|
"description": ""
|
|
29
|
-
}
|
|
29
|
+
}
|
|
@@ -206,11 +206,11 @@ describe('getUserDocument', () => {
|
|
|
206
206
|
|
|
207
207
|
test('call with PI', async () => {
|
|
208
208
|
|
|
209
|
-
const docs = await getUserDocuments(client, USER_ID, ['
|
|
209
|
+
const docs = await getUserDocuments(client, USER_ID, ['DOCUMENT_NUMBER_1']);
|
|
210
210
|
expect(getMock).toHaveBeenCalledTimes(3);
|
|
211
211
|
expect(getMock).toBeCalledWith(`/boapi/proxy/user/fleets/${FLEET_ID}/users/${USER_ID}/documents`);
|
|
212
|
-
expect(getMock).toBeCalledWith(`/boapi/proxy/user/fleets/${FLEET_ID}/users/${USER_ID}/documents/${idDocId}/pi?types=
|
|
213
|
-
expect(getMock).toBeCalledWith(`/boapi/proxy/user/fleets/${FLEET_ID}/users/${USER_ID}/documents/${dlDocId}/pi?types=
|
|
212
|
+
expect(getMock).toBeCalledWith(`/boapi/proxy/user/fleets/${FLEET_ID}/users/${USER_ID}/documents/${idDocId}/pi?types=DOCUMENT_NUMBER_1`);
|
|
213
|
+
expect(getMock).toBeCalledWith(`/boapi/proxy/user/fleets/${FLEET_ID}/users/${USER_ID}/documents/${dlDocId}/pi?types=DOCUMENT_NUMBER_1`);
|
|
214
214
|
|
|
215
215
|
expect(docs).toBeTruthy();
|
|
216
216
|
expect(docs.documents).toBeTruthy();
|
package/src/types.ts
CHANGED
|
@@ -320,7 +320,7 @@ export type DocumentSummary = {
|
|
|
320
320
|
documentByFranchise: DocumentByFranchise[] | null;
|
|
321
321
|
};
|
|
322
322
|
|
|
323
|
-
export const personalInformationDocumentTypes = ['
|
|
323
|
+
export const personalInformationDocumentTypes = ['DOCUMENT_NUMBER_1'] as const;
|
|
324
324
|
export type PersonalInformationDocumentType = (typeof personalInformationDocumentTypes)[number];
|
|
325
325
|
export const personalInformationDocumentTypeSchema = z.enum(personalInformationDocumentTypes);
|
|
326
326
|
|