@nomalism-com/api 0.34.30 → 0.35.0
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.cjs +33 -0
- package/dist/index.d.ts +351 -334
- package/dist/index.js +33 -0
- package/package-lock.json +6 -6
- package/package.json +2 -2
- package/src/main.ts +6 -0
- package/src/modules/stock/tag.ts +45 -0
package/dist/index.cjs
CHANGED
|
@@ -96,6 +96,7 @@ __export(main_exports, {
|
|
|
96
96
|
StockMovement: () => stockMovement_exports,
|
|
97
97
|
StoreOperator: () => storeOperator_exports,
|
|
98
98
|
Swift: () => swift_exports,
|
|
99
|
+
TagClass: () => tag_exports,
|
|
99
100
|
Task: () => task_exports,
|
|
100
101
|
TaskMessage: () => taskMessage_exports,
|
|
101
102
|
TaskReadClass: () => taskRead_exports,
|
|
@@ -4104,6 +4105,37 @@ var Repository114 = class {
|
|
|
4104
4105
|
}
|
|
4105
4106
|
};
|
|
4106
4107
|
|
|
4108
|
+
// src/modules/stock/tag.ts
|
|
4109
|
+
var tag_exports = {};
|
|
4110
|
+
__export(tag_exports, {
|
|
4111
|
+
default: () => Repository115
|
|
4112
|
+
});
|
|
4113
|
+
var Repository115 = class {
|
|
4114
|
+
constructor({ api, route, publicRoute }) {
|
|
4115
|
+
this.api = api;
|
|
4116
|
+
this.route = route;
|
|
4117
|
+
this.publicRoute = publicRoute;
|
|
4118
|
+
}
|
|
4119
|
+
async create(body) {
|
|
4120
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
4121
|
+
return response.data;
|
|
4122
|
+
}
|
|
4123
|
+
async findByDocumentHeaderId(selector) {
|
|
4124
|
+
const response = await this.api.get(`${this.route}document_header_id/${selector.id}`);
|
|
4125
|
+
return response.data;
|
|
4126
|
+
}
|
|
4127
|
+
async findById(selector) {
|
|
4128
|
+
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
4129
|
+
return response.data;
|
|
4130
|
+
}
|
|
4131
|
+
async update(selector, body) {
|
|
4132
|
+
await this.api.put(`${this.route}${selector.id}`, body);
|
|
4133
|
+
}
|
|
4134
|
+
async delete(selector) {
|
|
4135
|
+
await this.api.delete(`${this.route}${selector.id}`);
|
|
4136
|
+
}
|
|
4137
|
+
};
|
|
4138
|
+
|
|
4107
4139
|
// src/main.ts
|
|
4108
4140
|
var API = class {
|
|
4109
4141
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
|
|
@@ -4298,6 +4330,7 @@ var API = class {
|
|
|
4298
4330
|
this.DocumentLineRm = new Repository112(getModuleParams("stock", "document_line_rm"));
|
|
4299
4331
|
this.DocumentLineMt = new Repository113(getModuleParams("stock", "document_line_mt"));
|
|
4300
4332
|
this.ChatSubscriber = new Repository114(getModuleParams("users", "chat_subscriber"));
|
|
4333
|
+
this.Tag = new Repository115(getModuleParams("stock", "tag"));
|
|
4301
4334
|
}
|
|
4302
4335
|
};
|
|
4303
4336
|
|