@nomalism-com/api 0.44.10 → 0.44.12
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.js
CHANGED
|
@@ -8,64 +8,67 @@ var __export = (target, all) => {
|
|
|
8
8
|
var main_exports = {};
|
|
9
9
|
__export(main_exports, {
|
|
10
10
|
API: () => API,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
AccountCode: () => accountCode_exports,
|
|
12
|
+
AdminPanel: () => adminPanel_exports,
|
|
13
13
|
BankData: () => bankData_exports,
|
|
14
14
|
Channel: () => channel_exports,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
ChatRapidMessage: () => chatRapidMessage_exports,
|
|
16
|
+
ChatSubscriber: () => chatSubscriber_exports,
|
|
17
17
|
Client: () => clients_exports,
|
|
18
18
|
ClientType: () => clientType_exports,
|
|
19
19
|
Clt: () => clt_exports,
|
|
20
20
|
Commissioner: () => commissioner_exports,
|
|
21
21
|
Country: () => country_exports,
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
CurrentAccount: () => currentAccount_exports,
|
|
23
|
+
Dashboard: () => dashboard_exports,
|
|
24
24
|
DeliveryMethods: () => deliveryMethods_exports,
|
|
25
25
|
DocumentHeader: () => documentHeader_exports,
|
|
26
26
|
DocumentHeaderHistory: () => documentHeaderHistory_exports,
|
|
27
|
-
|
|
27
|
+
DocumentHeaderSubscriber: () => documentHeaderSubscriber_exports,
|
|
28
|
+
DocumentHeaderSurvey: () => documentHeaderSurvey_exports,
|
|
28
29
|
DocumentLine: () => documentLine_exports,
|
|
29
30
|
DocumentLineAssoc: () => documentLineAssoc_exports,
|
|
30
|
-
|
|
31
|
+
DocumentLineMt: () => documentLineMt_exports,
|
|
31
32
|
DocumentLineNote: () => documentLineNote_exports,
|
|
32
|
-
|
|
33
|
+
DocumentLineRm: () => documentLineRm_exports,
|
|
33
34
|
DocumentSet: () => documentSet_exports,
|
|
34
35
|
DocumentType: () => documentType_exports,
|
|
35
36
|
EmailLog: () => emailLog_exports,
|
|
36
37
|
EmailTemplate: () => emailTemplate_exports,
|
|
37
38
|
EmailTemplateAttachment: () => emailTemplateAttachment_exports,
|
|
38
39
|
EmailVerification: () => emailVerification_exports,
|
|
39
|
-
|
|
40
|
+
ErrorLog: () => errorLog_exports,
|
|
40
41
|
ExternalDocumentHeader: () => externalDocumentHeader_exports,
|
|
41
42
|
ExternalDocumentType: () => externalDocumentType_exports,
|
|
42
43
|
Favorites: () => favorites_exports,
|
|
43
44
|
File: () => file_exports,
|
|
44
|
-
|
|
45
|
+
Gmail: () => gmails_exports,
|
|
46
|
+
GoogleCalendar: () => googleCalendar_exports,
|
|
45
47
|
GoogleFilePermission: () => googleFilePermission_exports,
|
|
48
|
+
GoogleSheetPool: () => googleSheetPool_exports,
|
|
46
49
|
GoogleSheets: () => googleSheets_exports,
|
|
47
50
|
Inventario: () => inventario_exports,
|
|
48
|
-
|
|
51
|
+
LLM: () => llm_exports,
|
|
49
52
|
Language: () => language_exports,
|
|
50
53
|
Location: () => location_exports,
|
|
51
54
|
Logout: () => logout_exports,
|
|
52
55
|
MaterialEntrance: () => materialEntrance_exports,
|
|
53
56
|
MaturityDates: () => maturityDates_exports,
|
|
54
57
|
Multimedia: () => multimedia_exports,
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
NPF: () => NPF_exports,
|
|
59
|
+
NRCL: () => NRCL_exports,
|
|
57
60
|
Npc: () => npc_exports,
|
|
58
61
|
Observation: () => observation_exports,
|
|
59
62
|
ObservationType: () => observationType_exports,
|
|
60
63
|
Order: () => order_exports,
|
|
61
64
|
OrderManagement: () => orderManagement_exports,
|
|
62
65
|
Password: () => password_exports,
|
|
63
|
-
|
|
66
|
+
PatchNotes: () => patchNotes_exports,
|
|
64
67
|
Payment: () => payment_exports,
|
|
65
|
-
|
|
68
|
+
PaymentBatch: () => paymentBatch_exports,
|
|
66
69
|
PaymentMethods: () => paymentMethods_exports,
|
|
67
70
|
Persona: () => persona_exports,
|
|
68
|
-
|
|
71
|
+
Portal: () => portal_exports,
|
|
69
72
|
PreSale: () => preSale_exports,
|
|
70
73
|
PreSaleProduct: () => preSaleProduct_exports,
|
|
71
74
|
Printer: () => printer_exports,
|
|
@@ -96,17 +99,17 @@ __export(main_exports, {
|
|
|
96
99
|
Sessions: () => sessions_exports,
|
|
97
100
|
Settings: () => settings_exports,
|
|
98
101
|
Shippings: () => shippings_exports,
|
|
99
|
-
|
|
102
|
+
SideMenu: () => sideMenu_exports,
|
|
100
103
|
StartDocumentHeaderLastUpdate: () => startDocumentHeaderLastUpdate_exports,
|
|
101
104
|
StockMovement: () => stockMovement_exports,
|
|
102
105
|
StoreOperator: () => storeOperator_exports,
|
|
103
106
|
Swift: () => swift_exports,
|
|
104
|
-
|
|
107
|
+
Tag: () => tag_exports,
|
|
105
108
|
Task: () => task_exports,
|
|
106
109
|
TaskMessage: () => taskMessage_exports,
|
|
107
|
-
|
|
110
|
+
TaskRead: () => taskRead_exports,
|
|
108
111
|
Tenant: () => tenant_exports,
|
|
109
|
-
|
|
112
|
+
Theme: () => theme_exports,
|
|
110
113
|
Tickets: () => tickets_exports,
|
|
111
114
|
TicketsLanguage: () => language_exports2,
|
|
112
115
|
Transformado: () => transformado_exports,
|
|
@@ -3007,6 +3010,12 @@ var Repository83 = class {
|
|
|
3007
3010
|
async undoEntradaMaterial(data) {
|
|
3008
3011
|
await this.api.post(`${this.route}undo_material_entrance`, data);
|
|
3009
3012
|
}
|
|
3013
|
+
async findDoneById({
|
|
3014
|
+
id
|
|
3015
|
+
}) {
|
|
3016
|
+
const response = await this.api.get(`${this.route}${id}`);
|
|
3017
|
+
return response.data;
|
|
3018
|
+
}
|
|
3010
3019
|
printLabelToPdfUrl({ product_id }, {
|
|
3011
3020
|
quantity,
|
|
3012
3021
|
ef_name,
|
|
@@ -3991,6 +4000,10 @@ var Repository117 = class {
|
|
|
3991
4000
|
};
|
|
3992
4001
|
|
|
3993
4002
|
// src/modules/supply/googleSheetPool.ts
|
|
4003
|
+
var googleSheetPool_exports = {};
|
|
4004
|
+
__export(googleSheetPool_exports, {
|
|
4005
|
+
default: () => Repository118
|
|
4006
|
+
});
|
|
3994
4007
|
var Repository118 = class {
|
|
3995
4008
|
constructor({ api, route }) {
|
|
3996
4009
|
this.api = api;
|
|
@@ -4093,6 +4106,10 @@ var Repository121 = class {
|
|
|
4093
4106
|
};
|
|
4094
4107
|
|
|
4095
4108
|
// src/modules/supply/documentHeaderSurvey.ts
|
|
4109
|
+
var documentHeaderSurvey_exports = {};
|
|
4110
|
+
__export(documentHeaderSurvey_exports, {
|
|
4111
|
+
default: () => Repository122
|
|
4112
|
+
});
|
|
4096
4113
|
var Repository122 = class {
|
|
4097
4114
|
constructor({ api, route }) {
|
|
4098
4115
|
this.api = api;
|
|
@@ -4136,6 +4153,26 @@ var Repository123 = class {
|
|
|
4136
4153
|
}
|
|
4137
4154
|
};
|
|
4138
4155
|
|
|
4156
|
+
// src/modules/stock/googleCalendar.ts
|
|
4157
|
+
var googleCalendar_exports = {};
|
|
4158
|
+
__export(googleCalendar_exports, {
|
|
4159
|
+
default: () => Repository124
|
|
4160
|
+
});
|
|
4161
|
+
var Repository124 = class {
|
|
4162
|
+
constructor({ api, route }) {
|
|
4163
|
+
this.api = api;
|
|
4164
|
+
this.route = route;
|
|
4165
|
+
}
|
|
4166
|
+
async find() {
|
|
4167
|
+
const response = await this.api.get(`${this.route}`);
|
|
4168
|
+
return response.data;
|
|
4169
|
+
}
|
|
4170
|
+
async listEventsInRange(params) {
|
|
4171
|
+
const response = await this.api.get(`${this.route}range`, { params });
|
|
4172
|
+
return response.data;
|
|
4173
|
+
}
|
|
4174
|
+
};
|
|
4175
|
+
|
|
4139
4176
|
// src/main.ts
|
|
4140
4177
|
var API = class {
|
|
4141
4178
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
|
|
@@ -4341,6 +4378,7 @@ var API = class {
|
|
|
4341
4378
|
this.DocumentHeaderSubscriber = new Repository123(
|
|
4342
4379
|
getModuleParams("stock", "document_header_subscriber")
|
|
4343
4380
|
);
|
|
4381
|
+
this.GoogleCalendar = new Repository124(getModuleParams("stock", "google_calendar"));
|
|
4344
4382
|
}
|
|
4345
4383
|
};
|
|
4346
4384
|
|
package/dist/main.d.ts
CHANGED
|
@@ -122,6 +122,7 @@ import LLMClass from './modules/llm/llm';
|
|
|
122
122
|
import PatchNotesClass from './modules/integration/patchNotes';
|
|
123
123
|
import DocumentHeaderSurveyClass from './modules/supply/documentHeaderSurvey';
|
|
124
124
|
import DocumentHeaderSubscriberClass from './modules/supply/documentHeaderSubscriber';
|
|
125
|
+
import GoogleCalendarClass from './modules/stock/googleCalendar';
|
|
125
126
|
export * as BankData from './modules/user/bankData';
|
|
126
127
|
export * as Client from './modules/user/clients';
|
|
127
128
|
export * as ClientType from './modules/user/clientType';
|
|
@@ -214,27 +215,30 @@ export * as ProductGoogleSheets from './modules/stock/productGoogleSheets';
|
|
|
214
215
|
export * as Task from './modules/stock/task';
|
|
215
216
|
export * as TaskMessage from './modules/stock/taskMessage';
|
|
216
217
|
export * as RecurrentTasks from './modules/stock/recurrentTasks';
|
|
217
|
-
export * as
|
|
218
|
-
export * as
|
|
219
|
-
export * as
|
|
220
|
-
export * as
|
|
221
|
-
export * as
|
|
222
|
-
export * as
|
|
223
|
-
export * as
|
|
224
|
-
export * as
|
|
225
|
-
export * as
|
|
226
|
-
export * as
|
|
227
|
-
export * as
|
|
228
|
-
export * as
|
|
229
|
-
export * as
|
|
230
|
-
export * as
|
|
231
|
-
export * as
|
|
232
|
-
export * as
|
|
233
|
-
export * as
|
|
234
|
-
export * as
|
|
235
|
-
export * as
|
|
236
|
-
export * as
|
|
237
|
-
export * as
|
|
218
|
+
export * as TaskRead from './modules/stock/taskRead';
|
|
219
|
+
export * as Theme from './modules/user/theme';
|
|
220
|
+
export * as Dashboard from './modules/stock/dashboard';
|
|
221
|
+
export * as ChatRapidMessage from './modules/stock/chatRapidMessage';
|
|
222
|
+
export * as SideMenu from './modules/ui/sideMenu';
|
|
223
|
+
export * as ErrorLog from './modules/view/errorLog';
|
|
224
|
+
export * as AdminPanel from './modules/view/adminPanel';
|
|
225
|
+
export * as DocumentLineRm from './modules/supply/documentLineRm';
|
|
226
|
+
export * as DocumentLineMt from './modules/supply/documentLineMt';
|
|
227
|
+
export * as ChatSubscriber from './modules/user/chatSubscriber';
|
|
228
|
+
export * as Tag from './modules/stock/tag';
|
|
229
|
+
export * as Gmail from './modules/stock/gmails';
|
|
230
|
+
export * as NPF from './modules/document/NPF';
|
|
231
|
+
export * as NRCL from './modules/document/NRCL';
|
|
232
|
+
export * as CurrentAccount from './modules/supply/currentAccount';
|
|
233
|
+
export * as PaymentBatch from './modules/supply/paymentBatch';
|
|
234
|
+
export * as Portal from './modules/ui/portal';
|
|
235
|
+
export * as GoogleSheetPool from './modules/supply/googleSheetPool';
|
|
236
|
+
export * as AccountCode from './modules/stock/accountCode';
|
|
237
|
+
export * as LLM from './modules/llm/llm';
|
|
238
|
+
export * as PatchNotes from './modules/integration/patchNotes';
|
|
239
|
+
export * as DocumentHeaderSurvey from './modules/supply/documentHeaderSurvey';
|
|
240
|
+
export * as DocumentHeaderSubscriber from './modules/supply/documentHeaderSubscriber';
|
|
241
|
+
export * as GoogleCalendar from './modules/stock/googleCalendar';
|
|
238
242
|
export type IEnvironment = 'production' | 'uat' | 'development' | 'localhost';
|
|
239
243
|
type IService = 'stock' | 'users' | 'integration' | 'documents' | 'view' | 'print' | 'tickets' | 'llm';
|
|
240
244
|
export interface IOptions {
|
|
@@ -375,6 +379,7 @@ export declare class API {
|
|
|
375
379
|
PatchNotes: PatchNotesClass;
|
|
376
380
|
DocumentHeaderSurvey: DocumentHeaderSurveyClass;
|
|
377
381
|
DocumentHeaderSubscriber: DocumentHeaderSubscriberClass;
|
|
382
|
+
GoogleCalendar: GoogleCalendarClass;
|
|
378
383
|
private defaultHeaders;
|
|
379
384
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }: IOptions);
|
|
380
385
|
}
|
|
@@ -8,6 +8,7 @@ export default class Repository implements Nomalism.MaterialEntrance.IApi {
|
|
|
8
8
|
findUnfinishedPickings({ id, }: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.MaterialEntrance.IUnfinishedPickingsResponse[]>;
|
|
9
9
|
finalizarEntradaMaterial(data: Nomalism.MaterialEntrance.IFinalizarEntradaDeMaterialRequest): Promise<Nomalism.MaterialEntrance.IFinalizarEntradaDeMaterialResponse>;
|
|
10
10
|
undoEntradaMaterial(data: Nomalism.MaterialEntrance.IUndoEntradaDeMaterialRequest): Promise<void>;
|
|
11
|
+
findDoneById({ id, }: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.SavedEmPicking.ISavedEmPickingData | null>;
|
|
11
12
|
printLabelToPdfUrl({ product_id }: Nomalism.MaterialEntrance.IPrintLabelParamsRequest, { quantity, ef_name, pc_document_number, prison, note, availableStock, }: Nomalism.MaterialEntrance.IPrintLabelQueryRequest, token: string): string;
|
|
12
13
|
printBulkLabelToPdfUrl({ groupLabel, saved_em_picking_ids, token, }: Nomalism.MaterialEntrance.IPrintBulkLabelRequest): string;
|
|
13
14
|
}
|
|
@@ -5,4 +5,5 @@ export default class Repository implements Nomalism.GoogleCalendar.IRepository {
|
|
|
5
5
|
private api;
|
|
6
6
|
constructor({ api, route }: IModuleConstructor);
|
|
7
7
|
find(): Promise<Nomalism.GoogleCalendar.Entity[]>;
|
|
8
|
+
listEventsInRange(params: Nomalism.GoogleCalendar.IListEventsInRangeRequest): Promise<Nomalism.GoogleCalendar.IListEventsInRangeResponse[]>;
|
|
8
9
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/api",
|
|
3
3
|
"description": "A nomalism API package for performing HTTP requests on API endpoints",
|
|
4
|
-
"version": "0.44.
|
|
4
|
+
"version": "0.44.12",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
"prepack": "npm run lint && npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@nomalism-com/types": "^0.44.
|
|
27
|
-
"axios": "^1.
|
|
26
|
+
"@nomalism-com/types": "^0.44.11",
|
|
27
|
+
"axios": "^1.16.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@swc/core": "^1.15.
|
|
30
|
+
"@swc/core": "^1.15.33",
|
|
31
31
|
"@types/node": "^24.12.2",
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
33
|
-
"@typescript-eslint/parser": "^8.
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^8.59.2",
|
|
33
|
+
"@typescript-eslint/parser": "^8.59.2",
|
|
34
34
|
"eslint": "^9.39.4",
|
|
35
35
|
"eslint-config-prettier": "^10.1.8",
|
|
36
36
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
37
37
|
"eslint-plugin-prettier": "^5.5.5",
|
|
38
|
-
"prettier": "^3.8.
|
|
38
|
+
"prettier": "^3.8.3",
|
|
39
39
|
"tsup": "^8.5.1"
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|