@nomalism-com/api 0.40.53 → 0.40.55

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
@@ -38,10 +38,8 @@ __export(main_exports, {
38
38
  EmailTemplateAttachment: () => emailTemplateAttachment_exports,
39
39
  EmailVerification: () => emailVerification_exports,
40
40
  ErrorLogClass: () => errorLog_exports,
41
- ExternalChatSubscriberClass: () => externalChatSubscriber_exports,
42
41
  ExternalDocumentHeader: () => externalDocumentHeader_exports,
43
42
  ExternalDocumentType: () => externalDocumentType_exports,
44
- ExternalPersonaClass: () => externalPersona_exports,
45
43
  Favorites: () => favorites_exports,
46
44
  File: () => file_exports,
47
45
  GmailsClass: () => gmails_exports,
@@ -4142,61 +4140,6 @@ var Repository119 = class {
4142
4140
  }
4143
4141
  };
4144
4142
 
4145
- // src/modules/user/externalPersona.ts
4146
- var externalPersona_exports = {};
4147
- __export(externalPersona_exports, {
4148
- default: () => Repository120
4149
- });
4150
- var Repository120 = class {
4151
- constructor({ api, route, publicRoute }) {
4152
- this.api = api;
4153
- this.route = route;
4154
- this.publicRoute = publicRoute;
4155
- }
4156
- async findByOwnerId(params) {
4157
- const response = await this.api.get(`${this.route}by_owner`, {
4158
- params
4159
- });
4160
- return response.data;
4161
- }
4162
- async create(body) {
4163
- const response = await this.api.post(`${this.route}`, body);
4164
- return response.data;
4165
- }
4166
- async update(selector, body) {
4167
- const response = await this.api.put(`${this.route}${selector.id}`, body);
4168
- return response.data;
4169
- }
4170
- async deleteOne(params) {
4171
- const response = await this.api.delete(`${this.route}`, { params });
4172
- return response.data;
4173
- }
4174
- };
4175
-
4176
- // src/modules/user/externalChatSubscriber.ts
4177
- var externalChatSubscriber_exports = {};
4178
- __export(externalChatSubscriber_exports, {
4179
- default: () => Repository121
4180
- });
4181
- var Repository121 = class {
4182
- constructor({ api, route, publicRoute }) {
4183
- this.api = api;
4184
- this.route = route;
4185
- this.publicRoute = publicRoute;
4186
- }
4187
- async createOrUpdate(data) {
4188
- const response = await this.api.post(`${this.route}`, data);
4189
- return response.data;
4190
- }
4191
- async find(params) {
4192
- const response = await this.api.get(`${this.route}`, { params });
4193
- return response.data;
4194
- }
4195
- async deleteOne({ id }) {
4196
- await this.api.delete(`${this.route}${id}`);
4197
- }
4198
- };
4199
-
4200
4143
  // src/main.ts
4201
4144
  var API = class {
4202
4145
  constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
@@ -4394,10 +4337,6 @@ var API = class {
4394
4337
  this.Portal = new Repository117(getModuleParams("stock", "portal"));
4395
4338
  this.GoogleSheetPool = new Repository118(getModuleParams("stock", "google_sheet_pool"));
4396
4339
  this.AccountCode = new Repository119(getModuleParams("stock", "account_code"));
4397
- this.ExternalPersona = new Repository120(getModuleParams("users", "external_persona"));
4398
- this.ExternalChatSubscriber = new Repository121(
4399
- getModuleParams("users", "external_chat_subscriber")
4400
- );
4401
4340
  }
4402
4341
  };
4403
4342
 
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.40.53",
4
+ "version": "0.40.55",
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.40.58",
26
+ "@nomalism-com/types": "^0.40.62",
27
27
  "axios": "^1.13.2"
28
28
  },
29
29
  "devDependencies": {