@nomalism-com/api 0.39.0 → 0.39.1

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 CHANGED
@@ -40,6 +40,7 @@ __export(main_exports, {
40
40
  ExternalDocumentType: () => externalDocumentType_exports,
41
41
  Favorites: () => favorites_exports,
42
42
  File: () => file_exports,
43
+ GmailsClass: () => gmails_exports,
43
44
  GoogleFilePermission: () => googleFilePermission_exports,
44
45
  GoogleSheets: () => googleSheets_exports,
45
46
  GroupPermissions: () => groupPermission_exports,
@@ -4089,6 +4090,35 @@ var Repository114 = class {
4089
4090
  }
4090
4091
  };
4091
4092
 
4093
+ // src/modules/stock/gmails.ts
4094
+ var gmails_exports = {};
4095
+ __export(gmails_exports, {
4096
+ default: () => Repository115
4097
+ });
4098
+ var Repository115 = class {
4099
+ constructor({ api, route, publicRoute }) {
4100
+ this.api = api;
4101
+ this.route = route;
4102
+ this.publicRoute = publicRoute;
4103
+ }
4104
+ async emails() {
4105
+ const response = await this.api.get(`${this.route}emails`);
4106
+ return response.data;
4107
+ }
4108
+ async executeGmailCommand(selector) {
4109
+ const response = await this.api.post(
4110
+ `${this.route}execute_gmail_command/${selector.id}`
4111
+ );
4112
+ return response.data;
4113
+ }
4114
+ async editPreviewChatMessage(selector) {
4115
+ const response = await this.api.post(
4116
+ `${this.route}edit_preview_chat_message/${selector.id}`
4117
+ );
4118
+ return response.data;
4119
+ }
4120
+ };
4121
+
4092
4122
  // src/main.ts
4093
4123
  var API = class {
4094
4124
  constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
@@ -4281,6 +4311,7 @@ var API = class {
4281
4311
  this.DocumentLineMt = new Repository112(getModuleParams("stock", "document_line_mt"));
4282
4312
  this.ChatSubscriber = new Repository113(getModuleParams("users", "chat_subscriber"));
4283
4313
  this.Tag = new Repository114(getModuleParams("stock", "tag"));
4314
+ this.Gmails = new Repository115(getModuleParams("stock", "gmails"));
4284
4315
  }
4285
4316
  };
4286
4317