@nomalism-com/api 0.46.11 → 0.46.13
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
|
@@ -103,6 +103,7 @@ __export(main_exports, {
|
|
|
103
103
|
Shippings: () => shippings_exports,
|
|
104
104
|
SideMenu: () => sideMenu_exports,
|
|
105
105
|
SidemenuHighlight: () => sidemenuHighlight_exports,
|
|
106
|
+
SmsSender: () => smsSender_exports,
|
|
106
107
|
StartDocumentHeaderLastUpdate: () => startDocumentHeaderLastUpdate_exports,
|
|
107
108
|
StockMovement: () => stockMovement_exports,
|
|
108
109
|
StoreOperator: () => storeOperator_exports,
|
|
@@ -3184,6 +3185,9 @@ var Repository81 = class {
|
|
|
3184
3185
|
async regroupLinesInProviderOrder({ id }) {
|
|
3185
3186
|
await this.api.post(`${this.route}regroup/${id}`);
|
|
3186
3187
|
}
|
|
3188
|
+
async createProviderOrderChat(data) {
|
|
3189
|
+
await this.api.post(`${this.route}create_provider_order_chat`, data);
|
|
3190
|
+
}
|
|
3187
3191
|
};
|
|
3188
3192
|
|
|
3189
3193
|
// src/modules/document/purchase.ts
|
|
@@ -4055,6 +4059,18 @@ var Repository111 = class {
|
|
|
4055
4059
|
const response = await this.api.get(`${this.route}${id}`);
|
|
4056
4060
|
return response.data;
|
|
4057
4061
|
}
|
|
4062
|
+
async findByEmailToken({
|
|
4063
|
+
token
|
|
4064
|
+
}) {
|
|
4065
|
+
const response = await this.api.get(`${this.route}by_email_token/${token}`);
|
|
4066
|
+
return response.data;
|
|
4067
|
+
}
|
|
4068
|
+
async publicAuthenticateByEmailToken({
|
|
4069
|
+
token
|
|
4070
|
+
}) {
|
|
4071
|
+
const response = await this.api.get(`${this.route}authenticate_email_token/${token}`);
|
|
4072
|
+
return response.data;
|
|
4073
|
+
}
|
|
4058
4074
|
async createOrUpdate(data) {
|
|
4059
4075
|
const response = await this.api.post(`${this.route}`, data);
|
|
4060
4076
|
return response.data;
|
|
@@ -4209,7 +4225,7 @@ var Repository116 = class {
|
|
|
4209
4225
|
if (start_date) qs.set("start_date", start_date.toISOString());
|
|
4210
4226
|
if (end_date) qs.set("end_date", end_date.toISOString());
|
|
4211
4227
|
qs.set("token", token);
|
|
4212
|
-
return `${this.route}
|
|
4228
|
+
return `${this.route}export?${qs.toString()}`;
|
|
4213
4229
|
}
|
|
4214
4230
|
};
|
|
4215
4231
|
|
|
@@ -4570,6 +4586,33 @@ var Repository128 = class {
|
|
|
4570
4586
|
}
|
|
4571
4587
|
};
|
|
4572
4588
|
|
|
4589
|
+
// src/modules/stock/smsSender.ts
|
|
4590
|
+
var smsSender_exports = {};
|
|
4591
|
+
__export(smsSender_exports, {
|
|
4592
|
+
default: () => Repository129
|
|
4593
|
+
});
|
|
4594
|
+
var Repository129 = class {
|
|
4595
|
+
constructor({ api, route }) {
|
|
4596
|
+
this.api = api;
|
|
4597
|
+
this.route = route;
|
|
4598
|
+
}
|
|
4599
|
+
async claim() {
|
|
4600
|
+
const response = await this.api.get(`${this.route}claim`);
|
|
4601
|
+
return response.data;
|
|
4602
|
+
}
|
|
4603
|
+
async result(id, body) {
|
|
4604
|
+
await this.api.post(`${this.route}result/${id}`, body);
|
|
4605
|
+
}
|
|
4606
|
+
async findById(id) {
|
|
4607
|
+
const response = await this.api.get(`${this.route}${id}`);
|
|
4608
|
+
return response.data;
|
|
4609
|
+
}
|
|
4610
|
+
async findAll() {
|
|
4611
|
+
const response = await this.api.get(`${this.route}`);
|
|
4612
|
+
return response.data;
|
|
4613
|
+
}
|
|
4614
|
+
};
|
|
4615
|
+
|
|
4573
4616
|
// src/main.ts
|
|
4574
4617
|
var API = class {
|
|
4575
4618
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
|
|
@@ -4877,6 +4920,7 @@ var API = class {
|
|
|
4877
4920
|
);
|
|
4878
4921
|
this.TimeSheet = new TimesheetRepository(getModuleParams("users", Nomalism.TimeSheet.Route));
|
|
4879
4922
|
this.Catalogo = new Repository128(getModuleParams("stock", Nomalism.Catalogo.Route));
|
|
4923
|
+
this.SmsSender = new Repository129(getModuleParams("stock", Nomalism.SmsSender.Route));
|
|
4880
4924
|
}
|
|
4881
4925
|
};
|
|
4882
4926
|
|
package/dist/main.d.ts
CHANGED
|
@@ -129,6 +129,7 @@ import SaftClass from './modules/supply/saft';
|
|
|
129
129
|
import ProductLocationClass from './modules/stock/productLocation';
|
|
130
130
|
import TimeSheetClass from './modules/user/timeSheet';
|
|
131
131
|
import CatalogoClass from './modules/document/CAT';
|
|
132
|
+
import SmsSenderClass from './modules/stock/smsSender';
|
|
132
133
|
export * as BankData from './modules/user/bankData';
|
|
133
134
|
export * as Client from './modules/user/clients';
|
|
134
135
|
export * as ClientType from './modules/user/clientType';
|
|
@@ -250,6 +251,7 @@ export * as Saft from './modules/supply/saft';
|
|
|
250
251
|
export * as ProductLocation from './modules/stock/productLocation';
|
|
251
252
|
export * as TimeSheet from './modules/user/timeSheet';
|
|
252
253
|
export * as Catalogo from './modules/document/CAT';
|
|
254
|
+
export * as SmsSender from './modules/stock/smsSender';
|
|
253
255
|
export type IEnvironment = 'production' | 'uat' | 'development' | 'localhost';
|
|
254
256
|
type IService = 'stock' | 'users' | 'integration' | 'documents' | 'view' | 'print' | 'tickets' | 'llm';
|
|
255
257
|
export interface IOptions {
|
|
@@ -397,6 +399,7 @@ export declare class API {
|
|
|
397
399
|
ProductLocation: ProductLocationClass;
|
|
398
400
|
TimeSheet: TimeSheetClass;
|
|
399
401
|
Catalogo: CatalogoClass;
|
|
402
|
+
SmsSender: SmsSenderClass;
|
|
400
403
|
private defaultHeaders;
|
|
401
404
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }: IOptions);
|
|
402
405
|
}
|
|
@@ -13,4 +13,5 @@ export default class Repository implements Nomalism.Order.IRepository {
|
|
|
13
13
|
find(params: Nomalism.Order.IFindRequest): Promise<Nomalism.Order.IFindResponse[]>;
|
|
14
14
|
previewRegroupLinesInProviderOrder({ id, }: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.Order.IPreviewResponse>;
|
|
15
15
|
regroupLinesInProviderOrder({ id }: Nomalism.shared.IFindByIdRequest): Promise<void>;
|
|
16
|
+
createProviderOrderChat(data: Nomalism.Order.ICreateProviderOrderChatRequest): Promise<void>;
|
|
16
17
|
}
|
|
@@ -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
|
+
}
|
|
@@ -4,7 +4,7 @@ export default class Repository implements Nomalism.Portal.IRepository {
|
|
|
4
4
|
route: string;
|
|
5
5
|
private api;
|
|
6
6
|
constructor({ api, route }: IModuleConstructor);
|
|
7
|
-
publicFindBySubscriberId(params?: Nomalism.
|
|
7
|
+
publicFindBySubscriberId(params?: Nomalism.Portal.IPublicFindBySubscriberIdRequest): Promise<Nomalism.Portal.IPublicFindBySubscriberId>;
|
|
8
8
|
publicCreateDocumentHeaderNote(data: Nomalism.Portal.PublicDocumentHeaderNoteCreateRequest[]): Promise<Nomalism.Portal.PublicDocumentHeaderNote[]>;
|
|
9
9
|
publicUpdateDocumentHeaderNote({ id }: Nomalism.shared.IFindByIdRequest, data: Nomalism.Portal.PublicDocumentHeaderNoteUpdateRequest[]): Promise<Nomalism.Portal.PublicDocumentHeaderNote[]>;
|
|
10
10
|
}
|
|
@@ -8,6 +8,8 @@ export default class Repository implements Nomalism.ChatSubscriber.IRepository {
|
|
|
8
8
|
findDocumentHeaderSubscribersByLanguage(params: Nomalism.ChatSubscriber.IFindDocumentHeaderSubscribersByLanguageRequest): Promise<string[]>;
|
|
9
9
|
findSubscribedDocumentHeaders(params: Nomalism.ChatSubscriber.IFindSubscribedDocumentHeadersRequest): Promise<Nomalism.ChatSubscriber.IEntityWithPersonaAndSubscriptions>;
|
|
10
10
|
findById({ id, }: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.ChatSubscriber.IEntityWithPersonaAndSubscriptions>;
|
|
11
|
+
findByEmailToken({ token, }: Nomalism.ChatSubscriber.IFindByEmailTokenRequest): Promise<Nomalism.ChatSubscriber.IEntityWithPersonaAndSubscriptions>;
|
|
12
|
+
publicAuthenticateByEmailToken({ token, }: Nomalism.ChatSubscriber.IPublicAuthenticateByEmailTokenRequest): Promise<string | null>;
|
|
11
13
|
createOrUpdate(data: Nomalism.ChatSubscriber.ICreateOrUpdateRequest): Promise<string>;
|
|
12
14
|
deleteOne({ id }: Nomalism.shared.IFindByIdRequest): Promise<void>;
|
|
13
15
|
deleteByDocumentHeader({ id }: Nomalism.shared.IFindByIdRequest): Promise<void>;
|
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.46.
|
|
4
|
+
"version": "0.46.13",
|
|
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.46.
|
|
26
|
+
"@nomalism-com/types": "^0.46.13",
|
|
27
27
|
"axios": "^1.18.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|