@nomalism-com/api 0.13.5 → 0.13.7
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.ts
CHANGED
|
@@ -257,7 +257,7 @@ export * as SavedEmPicking from './modules/stock/savedEmPicking';
|
|
|
257
257
|
export * as EmailTemplate from './modules/integration/emailTemplate';
|
|
258
258
|
export * as EmailTemplateAttachment from './modules/integration/emailTemplateAttachment';
|
|
259
259
|
export { shared };
|
|
260
|
-
type IEnvironment = 'production' | 'uat' | 'development' | 'localhost';
|
|
260
|
+
export type IEnvironment = 'production' | 'uat' | 'development' | 'localhost';
|
|
261
261
|
declare const serviceEnum: readonly ["stock", "user", "integration", "documentmanagement", "view", "print", "ticket", "pdf"];
|
|
262
262
|
type IService = (typeof serviceEnum)[number];
|
|
263
263
|
export interface IServiceExternalPath {
|
|
@@ -276,8 +276,8 @@ export interface IModuleConstructor {
|
|
|
276
276
|
defaultHeaders?: AxiosRequestHeaders;
|
|
277
277
|
}
|
|
278
278
|
export declare class API {
|
|
279
|
-
|
|
280
|
-
|
|
279
|
+
processEnvironment: IEnvironment;
|
|
280
|
+
gatewayUrl: string;
|
|
281
281
|
private defaultHeaders;
|
|
282
282
|
client: AxiosInstance;
|
|
283
283
|
services: Record<IService, IServiceExternalPath>;
|
|
@@ -6,12 +6,13 @@ export import IFindByGooglesheetIdResponse = Entity.IFindByGooglesheetIdResponse
|
|
|
6
6
|
export import IDocumentLinePendingConflict = Entity.Entity;
|
|
7
7
|
export import IConflictFindByOwnerIdResponse = Entity.IConflictFindByOwnerIdResponse;
|
|
8
8
|
export import ICreateSheetFromDocumentResponse = Entity.ICreateSheetFromDocumentResponse;
|
|
9
|
+
export import IIsProcessingResponse = Entity.IIsProcessingResponse;
|
|
9
10
|
export default class Repository implements Entity.IRepository {
|
|
10
11
|
route: string;
|
|
11
12
|
publicRoute: string;
|
|
12
13
|
private api;
|
|
13
14
|
constructor({ api, route, publicRoute }: IModuleConstructor);
|
|
14
|
-
isProcessing(params: shared.IFindByIdRequest): Promise<
|
|
15
|
+
isProcessing(params: shared.IFindByIdRequest): Promise<IIsProcessingResponse>;
|
|
15
16
|
importFromSheet(params: shared.IFindByIdRequest): Promise<IFindByGooglesheetIdResponse>;
|
|
16
17
|
createSheetFromDocument(params: shared.IFindByIdRequest): Promise<ICreateSheetFromDocumentResponse>;
|
|
17
18
|
conflictAccept(params: shared.IFindByIdRequest): Promise<void>;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.13.
|
|
12
|
+
"version": "0.13.7",
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/convert-units": "^2.3.9",
|
|
35
|
-
"@types/node": "^
|
|
35
|
+
"@types/node": "^20.9.4",
|
|
36
36
|
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
37
37
|
"@typescript-eslint/parser": "^6.12.0",
|
|
38
38
|
"concurrently": "^8.2.2",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"eslint-plugin-import": "^2.29.0",
|
|
44
44
|
"eslint-plugin-prettier": "^5.0.1",
|
|
45
45
|
"prettier": "^3.1.0",
|
|
46
|
-
"tsx": "^4.
|
|
46
|
+
"tsx": "^4.4.0",
|
|
47
47
|
"typescript": "^5.3.2"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@nomalism-com/types": "^0.13.
|
|
50
|
+
"@nomalism-com/types": "^0.13.2",
|
|
51
51
|
"axios": "^0.27.2"
|
|
52
52
|
}
|
|
53
53
|
}
|