@nomalism-com/api 0.45.69 → 0.45.71
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 +29 -0
- package/dist/main.d.ts +3 -0
- package/dist/modules/stock/smsSender.d.ts +11 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -102,6 +102,7 @@ __export(main_exports, {
|
|
|
102
102
|
Shippings: () => shippings_exports,
|
|
103
103
|
SideMenu: () => sideMenu_exports,
|
|
104
104
|
SidemenuHighlight: () => sidemenuHighlight_exports,
|
|
105
|
+
SmsSender: () => smsSender_exports,
|
|
105
106
|
StartDocumentHeaderLastUpdate: () => startDocumentHeaderLastUpdate_exports,
|
|
106
107
|
StockMovement: () => stockMovement_exports,
|
|
107
108
|
StoreOperator: () => storeOperator_exports,
|
|
@@ -4543,6 +4544,33 @@ var Repository127 = class {
|
|
|
4543
4544
|
}
|
|
4544
4545
|
};
|
|
4545
4546
|
|
|
4547
|
+
// src/modules/stock/smsSender.ts
|
|
4548
|
+
var smsSender_exports = {};
|
|
4549
|
+
__export(smsSender_exports, {
|
|
4550
|
+
default: () => Repository128
|
|
4551
|
+
});
|
|
4552
|
+
var Repository128 = class {
|
|
4553
|
+
constructor({ api, route }) {
|
|
4554
|
+
this.api = api;
|
|
4555
|
+
this.route = route;
|
|
4556
|
+
}
|
|
4557
|
+
async claim() {
|
|
4558
|
+
const response = await this.api.get(`${this.route}claim`);
|
|
4559
|
+
return response.data;
|
|
4560
|
+
}
|
|
4561
|
+
async result(id, body) {
|
|
4562
|
+
await this.api.post(`${this.route}result/${id}`, body);
|
|
4563
|
+
}
|
|
4564
|
+
async findById(id) {
|
|
4565
|
+
const response = await this.api.get(`${this.route}${id}`);
|
|
4566
|
+
return response.data;
|
|
4567
|
+
}
|
|
4568
|
+
async findAll() {
|
|
4569
|
+
const response = await this.api.get(`${this.route}`);
|
|
4570
|
+
return response.data;
|
|
4571
|
+
}
|
|
4572
|
+
};
|
|
4573
|
+
|
|
4546
4574
|
// src/main.ts
|
|
4547
4575
|
var API = class {
|
|
4548
4576
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
|
|
@@ -4848,6 +4876,7 @@ var API = class {
|
|
|
4848
4876
|
);
|
|
4849
4877
|
this.TimeSheet = new TimesheetRepository(getModuleParams("users", Nomalism.TimeSheet.Route));
|
|
4850
4878
|
this.Catalogo = new Repository127(getModuleParams("stock", Nomalism.Catalogo.Route));
|
|
4879
|
+
this.SmsSender = new Repository128(getModuleParams("stock", Nomalism.SmsSender.Route));
|
|
4851
4880
|
}
|
|
4852
4881
|
};
|
|
4853
4882
|
|
package/dist/main.d.ts
CHANGED
|
@@ -128,6 +128,7 @@ import GoogleCalendarClass from './modules/stock/googleCalendar';
|
|
|
128
128
|
import ProductLocationClass from './modules/stock/productLocation';
|
|
129
129
|
import TimeSheetClass from './modules/user/timeSheet';
|
|
130
130
|
import CatalogoClass from './modules/document/CAT';
|
|
131
|
+
import SmsSenderClass from './modules/stock/smsSender';
|
|
131
132
|
export * as BankData from './modules/user/bankData';
|
|
132
133
|
export * as Client from './modules/user/clients';
|
|
133
134
|
export * as ClientType from './modules/user/clientType';
|
|
@@ -248,6 +249,7 @@ export * as GoogleCalendar from './modules/stock/googleCalendar';
|
|
|
248
249
|
export * as ProductLocation from './modules/stock/productLocation';
|
|
249
250
|
export * as TimeSheet from './modules/user/timeSheet';
|
|
250
251
|
export * as Catalogo from './modules/document/CAT';
|
|
252
|
+
export * as SmsSender from './modules/stock/smsSender';
|
|
251
253
|
export type IEnvironment = 'production' | 'uat' | 'development' | 'localhost';
|
|
252
254
|
type IService = 'stock' | 'users' | 'integration' | 'documents' | 'view' | 'print' | 'tickets' | 'llm';
|
|
253
255
|
export interface IOptions {
|
|
@@ -394,6 +396,7 @@ export declare class API {
|
|
|
394
396
|
ProductLocation: ProductLocationClass;
|
|
395
397
|
TimeSheet: TimeSheetClass;
|
|
396
398
|
Catalogo: CatalogoClass;
|
|
399
|
+
SmsSender: SmsSenderClass;
|
|
397
400
|
private defaultHeaders;
|
|
398
401
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }: IOptions);
|
|
399
402
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { IModuleConstructor } from '../../main';
|
|
3
|
+
export default class Repository implements Nomalism.SmsSender.IController {
|
|
4
|
+
route: string;
|
|
5
|
+
private api;
|
|
6
|
+
constructor({ api, route }: IModuleConstructor);
|
|
7
|
+
claim(): Promise<Nomalism.SmsSender.IClaimResponse>;
|
|
8
|
+
result(id: string, body: Nomalism.SmsSender.IResultRequest): Promise<void>;
|
|
9
|
+
findById(id: string): Promise<Nomalism.SmsSender.IFindResponse>;
|
|
10
|
+
findAll(): Promise<Nomalism.SmsSender.IFindResponse[]>;
|
|
11
|
+
}
|
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.45.
|
|
4
|
+
"version": "0.45.71",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"prepack": "npm run lint && npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@nomalism-com/types": "^0.45.
|
|
26
|
+
"@nomalism-com/types": "^0.45.74",
|
|
27
27
|
"axios": "^1.17.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|