@nomalism-com/api 0.36.4 → 0.36.10
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 +29 -0
- package/dist/index.d.ts +350 -334
- package/dist/index.js +29 -0
- package/package-lock.json +9 -9
- package/package.json +2 -2
- package/src/main.ts +6 -0
- package/src/modules/stock/tag.ts +37 -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,33 @@ 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 updateMany(body) {
|
|
4128
|
+
await this.api.put(`${this.route}update_many`, body);
|
|
4129
|
+
}
|
|
4130
|
+
async delete(selector) {
|
|
4131
|
+
await this.api.delete(`${this.route}${selector.id}`);
|
|
4132
|
+
}
|
|
4133
|
+
};
|
|
4134
|
+
|
|
4107
4135
|
// src/main.ts
|
|
4108
4136
|
var API = class {
|
|
4109
4137
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
|
|
@@ -4298,6 +4326,7 @@ var API = class {
|
|
|
4298
4326
|
this.DocumentLineRm = new Repository112(getModuleParams("stock", "document_line_rm"));
|
|
4299
4327
|
this.DocumentLineMt = new Repository113(getModuleParams("stock", "document_line_mt"));
|
|
4300
4328
|
this.ChatSubscriber = new Repository114(getModuleParams("users", "chat_subscriber"));
|
|
4329
|
+
this.Tag = new Repository115(getModuleParams("stock", "tag"));
|
|
4301
4330
|
}
|
|
4302
4331
|
};
|
|
4303
4332
|
|