@conduitplatform/grpc-sdk 0.17.0-alpha.1 → 0.17.0-alpha.3
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 +17 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -12
- package/dist/index.d.ts +10 -12
- package/dist/index.esm.js +17 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +16 -16
package/dist/index.cjs
CHANGED
|
@@ -16270,6 +16270,10 @@ var ConduitModule = class {
|
|
|
16270
16270
|
this._serviceUrl = _serviceUrl;
|
|
16271
16271
|
this._grpcToken = _grpcToken;
|
|
16272
16272
|
}
|
|
16273
|
+
_clientName;
|
|
16274
|
+
_serviceName;
|
|
16275
|
+
_serviceUrl;
|
|
16276
|
+
_grpcToken;
|
|
16273
16277
|
channel;
|
|
16274
16278
|
protoPath;
|
|
16275
16279
|
type;
|
|
@@ -16454,6 +16458,7 @@ var Storage = class extends ConduitModule {
|
|
|
16454
16458
|
this.moduleName = moduleName;
|
|
16455
16459
|
this.initializeClient(StorageDefinition);
|
|
16456
16460
|
}
|
|
16461
|
+
moduleName;
|
|
16457
16462
|
getFile(id, userIdOrOptions, scope) {
|
|
16458
16463
|
const options = normalizeAuthzOptions(userIdOrOptions, scope);
|
|
16459
16464
|
return this.client.getFile({ id, ...options });
|
|
@@ -16562,6 +16567,7 @@ var Router = class extends ConduitModule {
|
|
|
16562
16567
|
this.moduleName = moduleName;
|
|
16563
16568
|
this.initializeClient(RouterDefinition);
|
|
16564
16569
|
}
|
|
16570
|
+
moduleName;
|
|
16565
16571
|
register(paths, url) {
|
|
16566
16572
|
const request = {
|
|
16567
16573
|
routes: paths,
|
|
@@ -16588,6 +16594,7 @@ var Email = class extends ConduitModule {
|
|
|
16588
16594
|
this.moduleName = moduleName;
|
|
16589
16595
|
this.initializeClient(CommunicationsDefinition);
|
|
16590
16596
|
}
|
|
16597
|
+
moduleName;
|
|
16591
16598
|
registerTemplate(template) {
|
|
16592
16599
|
return this.client.registerTemplate({
|
|
16593
16600
|
name: template.name,
|
|
@@ -16653,6 +16660,7 @@ var DatabaseProvider = class extends ConduitModule {
|
|
|
16653
16660
|
this.moduleName = moduleName;
|
|
16654
16661
|
this.initializeClient(DatabaseProviderDefinition);
|
|
16655
16662
|
}
|
|
16663
|
+
moduleName;
|
|
16656
16664
|
getSchema(schemaName) {
|
|
16657
16665
|
return this.client.getSchema({ schemaName }).then((res) => {
|
|
16658
16666
|
return {
|
|
@@ -16942,6 +16950,7 @@ var Config = class extends ConduitModule {
|
|
|
16942
16950
|
this._serviceHealthStatusGetter = serviceHealthStatusGetter;
|
|
16943
16951
|
this.emitter.setMaxListeners(150);
|
|
16944
16952
|
}
|
|
16953
|
+
url;
|
|
16945
16954
|
emitter = new import_events2.EventEmitter();
|
|
16946
16955
|
coreLive = false;
|
|
16947
16956
|
_serviceHealthStatusGetter;
|
|
@@ -17065,6 +17074,7 @@ var Core = class extends ConduitModule {
|
|
|
17065
17074
|
this.moduleName = moduleName;
|
|
17066
17075
|
this.initializeClient(CoreDefinition);
|
|
17067
17076
|
}
|
|
17077
|
+
moduleName;
|
|
17068
17078
|
};
|
|
17069
17079
|
|
|
17070
17080
|
// src/modules/admin/index.ts
|
|
@@ -17074,6 +17084,7 @@ var Admin = class extends ConduitModule {
|
|
|
17074
17084
|
this.moduleName = moduleName;
|
|
17075
17085
|
this.initializeClient(AdminDefinition);
|
|
17076
17086
|
}
|
|
17087
|
+
moduleName;
|
|
17077
17088
|
register(paths, serverUrl) {
|
|
17078
17089
|
const request = {
|
|
17079
17090
|
routes: paths,
|
|
@@ -17098,6 +17109,7 @@ var PushNotifications = class extends ConduitModule {
|
|
|
17098
17109
|
this.moduleName = moduleName;
|
|
17099
17110
|
this.initializeClient(CommunicationsDefinition);
|
|
17100
17111
|
}
|
|
17112
|
+
moduleName;
|
|
17101
17113
|
sendNotificationToken(token, platform, userId) {
|
|
17102
17114
|
return this.client.setNotificationToken({
|
|
17103
17115
|
token,
|
|
@@ -17156,6 +17168,7 @@ var SMS = class extends ConduitModule {
|
|
|
17156
17168
|
this.moduleName = moduleName;
|
|
17157
17169
|
this.initializeClient(CommunicationsDefinition);
|
|
17158
17170
|
}
|
|
17171
|
+
moduleName;
|
|
17159
17172
|
sendSms(to, message) {
|
|
17160
17173
|
return this.client.sendSms({ to, message });
|
|
17161
17174
|
}
|
|
@@ -17174,6 +17187,7 @@ var Chat = class extends ConduitModule {
|
|
|
17174
17187
|
this.moduleName = moduleName;
|
|
17175
17188
|
this.initializeClient(ChatDefinition);
|
|
17176
17189
|
}
|
|
17190
|
+
moduleName;
|
|
17177
17191
|
sendMessage(messageData) {
|
|
17178
17192
|
return this.client.sendMessage(messageData);
|
|
17179
17193
|
}
|
|
@@ -17192,6 +17206,7 @@ var Authorization = class extends ConduitModule {
|
|
|
17192
17206
|
this.moduleName = moduleName;
|
|
17193
17207
|
this.initializeClient(AuthorizationDefinition);
|
|
17194
17208
|
}
|
|
17209
|
+
moduleName;
|
|
17195
17210
|
defineResource(data) {
|
|
17196
17211
|
return this.client.defineResource(data);
|
|
17197
17212
|
}
|
|
@@ -17240,6 +17255,7 @@ var Authentication = class extends ConduitModule {
|
|
|
17240
17255
|
this.moduleName = moduleName;
|
|
17241
17256
|
this.initializeClient(AuthenticationDefinition);
|
|
17242
17257
|
}
|
|
17258
|
+
moduleName;
|
|
17243
17259
|
userLogin(userId, clientId) {
|
|
17244
17260
|
return this.client.userLogin({ userId, clientId });
|
|
17245
17261
|
}
|
|
@@ -17310,6 +17326,7 @@ var Communications = class extends ConduitModule {
|
|
|
17310
17326
|
this.moduleName = moduleName;
|
|
17311
17327
|
this.initializeClient(CommunicationsDefinition);
|
|
17312
17328
|
}
|
|
17329
|
+
moduleName;
|
|
17313
17330
|
// Legacy Email methods
|
|
17314
17331
|
registerTemplate(template) {
|
|
17315
17332
|
return this.client.registerTemplate({
|