@extrahorizon/javascript-sdk 8.10.0 → 8.11.0-dev-168-bf985ec

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/index.cjs.js +38 -1
  3. package/build/index.mjs +38 -1
  4. package/build/mockType.d.ts +36 -0
  5. package/build/services/auth/applications/types.d.ts +17 -0
  6. package/build/services/auth/oauth1/types.d.ts +9 -0
  7. package/build/services/auth/oauth2/types.d.ts +9 -0
  8. package/build/services/events/types.d.ts +16 -19
  9. package/build/services/files/types.d.ts +16 -7
  10. package/build/services/helpers.d.ts +1 -1
  11. package/build/services/localizations/types.d.ts +19 -18
  12. package/build/services/mails/types.d.ts +18 -15
  13. package/build/services/users/activationRequests/types.d.ts +8 -0
  14. package/build/services/users/forgotPasswordRequests/types.d.ts +8 -0
  15. package/build/services/users/types.d.ts +17 -0
  16. package/build/types/mockType.d.ts +36 -0
  17. package/build/types/services/auth/applications/types.d.ts +17 -0
  18. package/build/types/services/auth/oauth1/types.d.ts +9 -0
  19. package/build/types/services/auth/oauth2/types.d.ts +9 -0
  20. package/build/types/services/events/types.d.ts +16 -19
  21. package/build/types/services/files/types.d.ts +16 -7
  22. package/build/types/services/helpers.d.ts +1 -1
  23. package/build/types/services/localizations/types.d.ts +19 -18
  24. package/build/types/services/mails/types.d.ts +18 -15
  25. package/build/types/services/users/activationRequests/types.d.ts +8 -0
  26. package/build/types/services/users/forgotPasswordRequests/types.d.ts +8 -0
  27. package/build/types/services/users/types.d.ts +17 -0
  28. package/build/types/version.d.ts +1 -1
  29. package/build/version.d.ts +1 -1
  30. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [8.11.0]
9
+
10
+ ### Added
11
+ - Added the `findAll` methods for listing endpoints missing them
12
+
13
+ ### Fixed
14
+ - Bumped Axios version to resolve vulnerabilities (vulnerable code was not in use): `CVE-2026-42033`, `CVE-2026-42034`, `CVE-2026-42035`, `CVE-2026-42036`, `CVE-2026-42038`, `CVE-2026-42039`, `CVE-2026-42040`, `CVE-2026-42041`, `CVE-2026-42042` and `CVE-2026-42043`
15
+
8
16
  ## [8.10.0]
9
17
 
10
18
  ### Fixed
@@ -3337,6 +3337,9 @@ var applications = (client, httpWithAuth) => ({
3337
3337
  const rqlWithName = rqlBuilder(options === null || options === void 0 ? void 0 : options.rql).eq('name', name).build();
3338
3338
  return await this.findFirst({ ...options, rql: rqlWithName });
3339
3339
  },
3340
+ async findAll(options) {
3341
+ return await findAllGeneric(this.find, options);
3342
+ },
3340
3343
  async get(options) {
3341
3344
  return this.find(options);
3342
3345
  },
@@ -3384,6 +3387,9 @@ function createTokenService$1(client, httpWithAuth) {
3384
3387
  const rqlWithId = rqlBuilder(options === null || options === void 0 ? void 0 : options.rql).eq('id', id).build();
3385
3388
  return await this.findFirst({ ...options, rql: rqlWithId });
3386
3389
  },
3390
+ async findAll(options) {
3391
+ return await findAllGeneric(this.find, options);
3392
+ },
3387
3393
  async remove(tokenId) {
3388
3394
  return (await client.delete(httpWithAuth, `/oauth1/tokens/${tokenId}`)).data;
3389
3395
  },
@@ -3415,6 +3421,9 @@ function createTokenService(client, httpWithAuth) {
3415
3421
  const rqlWithId = rqlBuilder(options === null || options === void 0 ? void 0 : options.rql).eq('id', id).build();
3416
3422
  return await this.findFirst({ ...options, rql: rqlWithId });
3417
3423
  },
3424
+ async findAll(options) {
3425
+ return await findAllGeneric(this.find, options);
3426
+ },
3418
3427
  async remove(id) {
3419
3428
  return (await client.delete(httpWithAuth, `/oauth2/tokens/${id}`)).data;
3420
3429
  },
@@ -3851,6 +3860,9 @@ var files = (client, httpAuth) => ({
3851
3860
  const res = await this.find(options);
3852
3861
  return res.data[0];
3853
3862
  },
3863
+ async findAll(options) {
3864
+ return await findAllGeneric(this.find, options);
3865
+ },
3854
3866
  async createFromText(text, options) {
3855
3867
  const boundary = generateBoundary();
3856
3868
  const formData = createCustomFormData(text, boundary);
@@ -4193,6 +4205,9 @@ const activationRequestsService = (client, httpWithAuth) => ({
4193
4205
  const rql = rqlBuilder(options === null || options === void 0 ? void 0 : options.rql).eq('user_id', userId).build();
4194
4206
  return await this.findFirst({ ...options, rql });
4195
4207
  },
4208
+ async findAll(options) {
4209
+ return await findAllGeneric(this.find, options);
4210
+ },
4196
4211
  async remove(id, options) {
4197
4212
  const response = await client.delete(httpWithAuth, `/activation_requests/${id}`, options);
4198
4213
  return response.data;
@@ -4216,6 +4231,9 @@ const forgotPasswordRequestsService = (client, httpWithAuth) => ({
4216
4231
  const rql = rqlBuilder(options === null || options === void 0 ? void 0 : options.rql).eq('user_id', userId).build();
4217
4232
  return await this.findFirst({ ...options, rql });
4218
4233
  },
4234
+ async findAll(options) {
4235
+ return await findAllGeneric(this.find, options);
4236
+ },
4219
4237
  async remove(id, options) {
4220
4238
  const response = await client.delete(httpWithAuth, `/forgot_password_requests/${id}`, options);
4221
4239
  return response.data;
@@ -4241,6 +4259,9 @@ var globalRoles = (client, httpWithAuth) => ({
4241
4259
  const rqlWithName = rqlBuilder(options === null || options === void 0 ? void 0 : options.rql).eq('name', name).build();
4242
4260
  return await this.findFirst({ ...options, rql: rqlWithName });
4243
4261
  },
4262
+ async findAll(options) {
4263
+ return await findAllGeneric(this.find, options);
4264
+ },
4244
4265
  async get(options) {
4245
4266
  return this.find(options);
4246
4267
  },
@@ -4288,6 +4309,10 @@ var groupRoles = (client, httpWithAuth) => ({
4288
4309
  const rqlWithName = rqlBuilder(options === null || options === void 0 ? void 0 : options.rql).eq('name', roleName).build();
4289
4310
  return await this.findFirst(groupId, { ...options, rql: rqlWithName });
4290
4311
  },
4312
+ async findAll(groupId, options) {
4313
+ // Inner function is needed since this.find requires a groupId parameter, but findAllGeneric only passes options
4314
+ return await findAllGeneric(innerOptions => this.find(groupId, innerOptions), options);
4315
+ },
4291
4316
  async get(groupId, options) {
4292
4317
  return this.find(groupId, options);
4293
4318
  },
@@ -4736,6 +4761,9 @@ var mails = (client, httpAuth) => ({
4736
4761
  const res = await this.find(options);
4737
4762
  return res.data[0];
4738
4763
  },
4764
+ async findAll(options) {
4765
+ return await findAllGeneric(this.find, options);
4766
+ },
4739
4767
  async send(requestBody, options) {
4740
4768
  const result = await client.post(httpAuth, '/', requestBody, {
4741
4769
  ...options,
@@ -5146,6 +5174,9 @@ var localizations = (client, httpAuth) => ({
5146
5174
  const res = await this.find(options);
5147
5175
  return res.data[0];
5148
5176
  },
5177
+ async findAll(options) {
5178
+ return await findAllGeneric(this.find, options);
5179
+ },
5149
5180
  async create(requestBody, options) {
5150
5181
  return (await client.post(httpAuth, '/', requestBody, options)).data;
5151
5182
  },
@@ -5473,6 +5504,9 @@ var events = (client, httpAuth) => ({
5473
5504
  const res = await this.find(options);
5474
5505
  return res.data[0];
5475
5506
  },
5507
+ async findAll(options) {
5508
+ return await findAllGeneric(this.find, options);
5509
+ },
5476
5510
  async create(requestBody, options) {
5477
5511
  const requestOptions = { ...options };
5478
5512
  if ((options === null || options === void 0 ? void 0 : options.normalizeEventContent) === false) {
@@ -5500,6 +5534,9 @@ var subscriptions = (client, httpAuth) => ({
5500
5534
  const res = await this.find(options);
5501
5535
  return res.data[0];
5502
5536
  },
5537
+ async findAll(options) {
5538
+ return await findAllGeneric(this.find, options);
5539
+ },
5503
5540
  async create(requestBody, options) {
5504
5541
  return (await client.post(httpAuth, '/subscriptions', requestBody, options))
5505
5542
  .data;
@@ -5615,7 +5652,7 @@ const templatesV2Service = (httpWithAuth) => {
5615
5652
  };
5616
5653
  };
5617
5654
 
5618
- const version = '8.10.0';
5655
+ const version = '8.11.0-dev-168-bf985ec';
5619
5656
 
5620
5657
  /**
5621
5658
  * Create ExtraHorizon client.
package/build/index.mjs CHANGED
@@ -3307,6 +3307,9 @@ var applications = (client, httpWithAuth) => ({
3307
3307
  const rqlWithName = rqlBuilder(options === null || options === void 0 ? void 0 : options.rql).eq('name', name).build();
3308
3308
  return await this.findFirst({ ...options, rql: rqlWithName });
3309
3309
  },
3310
+ async findAll(options) {
3311
+ return await findAllGeneric(this.find, options);
3312
+ },
3310
3313
  async get(options) {
3311
3314
  return this.find(options);
3312
3315
  },
@@ -3354,6 +3357,9 @@ function createTokenService$1(client, httpWithAuth) {
3354
3357
  const rqlWithId = rqlBuilder(options === null || options === void 0 ? void 0 : options.rql).eq('id', id).build();
3355
3358
  return await this.findFirst({ ...options, rql: rqlWithId });
3356
3359
  },
3360
+ async findAll(options) {
3361
+ return await findAllGeneric(this.find, options);
3362
+ },
3357
3363
  async remove(tokenId) {
3358
3364
  return (await client.delete(httpWithAuth, `/oauth1/tokens/${tokenId}`)).data;
3359
3365
  },
@@ -3385,6 +3391,9 @@ function createTokenService(client, httpWithAuth) {
3385
3391
  const rqlWithId = rqlBuilder(options === null || options === void 0 ? void 0 : options.rql).eq('id', id).build();
3386
3392
  return await this.findFirst({ ...options, rql: rqlWithId });
3387
3393
  },
3394
+ async findAll(options) {
3395
+ return await findAllGeneric(this.find, options);
3396
+ },
3388
3397
  async remove(id) {
3389
3398
  return (await client.delete(httpWithAuth, `/oauth2/tokens/${id}`)).data;
3390
3399
  },
@@ -3821,6 +3830,9 @@ var files = (client, httpAuth) => ({
3821
3830
  const res = await this.find(options);
3822
3831
  return res.data[0];
3823
3832
  },
3833
+ async findAll(options) {
3834
+ return await findAllGeneric(this.find, options);
3835
+ },
3824
3836
  async createFromText(text, options) {
3825
3837
  const boundary = generateBoundary();
3826
3838
  const formData = createCustomFormData(text, boundary);
@@ -4163,6 +4175,9 @@ const activationRequestsService = (client, httpWithAuth) => ({
4163
4175
  const rql = rqlBuilder(options === null || options === void 0 ? void 0 : options.rql).eq('user_id', userId).build();
4164
4176
  return await this.findFirst({ ...options, rql });
4165
4177
  },
4178
+ async findAll(options) {
4179
+ return await findAllGeneric(this.find, options);
4180
+ },
4166
4181
  async remove(id, options) {
4167
4182
  const response = await client.delete(httpWithAuth, `/activation_requests/${id}`, options);
4168
4183
  return response.data;
@@ -4186,6 +4201,9 @@ const forgotPasswordRequestsService = (client, httpWithAuth) => ({
4186
4201
  const rql = rqlBuilder(options === null || options === void 0 ? void 0 : options.rql).eq('user_id', userId).build();
4187
4202
  return await this.findFirst({ ...options, rql });
4188
4203
  },
4204
+ async findAll(options) {
4205
+ return await findAllGeneric(this.find, options);
4206
+ },
4189
4207
  async remove(id, options) {
4190
4208
  const response = await client.delete(httpWithAuth, `/forgot_password_requests/${id}`, options);
4191
4209
  return response.data;
@@ -4211,6 +4229,9 @@ var globalRoles = (client, httpWithAuth) => ({
4211
4229
  const rqlWithName = rqlBuilder(options === null || options === void 0 ? void 0 : options.rql).eq('name', name).build();
4212
4230
  return await this.findFirst({ ...options, rql: rqlWithName });
4213
4231
  },
4232
+ async findAll(options) {
4233
+ return await findAllGeneric(this.find, options);
4234
+ },
4214
4235
  async get(options) {
4215
4236
  return this.find(options);
4216
4237
  },
@@ -4258,6 +4279,10 @@ var groupRoles = (client, httpWithAuth) => ({
4258
4279
  const rqlWithName = rqlBuilder(options === null || options === void 0 ? void 0 : options.rql).eq('name', roleName).build();
4259
4280
  return await this.findFirst(groupId, { ...options, rql: rqlWithName });
4260
4281
  },
4282
+ async findAll(groupId, options) {
4283
+ // Inner function is needed since this.find requires a groupId parameter, but findAllGeneric only passes options
4284
+ return await findAllGeneric(innerOptions => this.find(groupId, innerOptions), options);
4285
+ },
4261
4286
  async get(groupId, options) {
4262
4287
  return this.find(groupId, options);
4263
4288
  },
@@ -4706,6 +4731,9 @@ var mails = (client, httpAuth) => ({
4706
4731
  const res = await this.find(options);
4707
4732
  return res.data[0];
4708
4733
  },
4734
+ async findAll(options) {
4735
+ return await findAllGeneric(this.find, options);
4736
+ },
4709
4737
  async send(requestBody, options) {
4710
4738
  const result = await client.post(httpAuth, '/', requestBody, {
4711
4739
  ...options,
@@ -5116,6 +5144,9 @@ var localizations = (client, httpAuth) => ({
5116
5144
  const res = await this.find(options);
5117
5145
  return res.data[0];
5118
5146
  },
5147
+ async findAll(options) {
5148
+ return await findAllGeneric(this.find, options);
5149
+ },
5119
5150
  async create(requestBody, options) {
5120
5151
  return (await client.post(httpAuth, '/', requestBody, options)).data;
5121
5152
  },
@@ -5443,6 +5474,9 @@ var events = (client, httpAuth) => ({
5443
5474
  const res = await this.find(options);
5444
5475
  return res.data[0];
5445
5476
  },
5477
+ async findAll(options) {
5478
+ return await findAllGeneric(this.find, options);
5479
+ },
5446
5480
  async create(requestBody, options) {
5447
5481
  const requestOptions = { ...options };
5448
5482
  if ((options === null || options === void 0 ? void 0 : options.normalizeEventContent) === false) {
@@ -5470,6 +5504,9 @@ var subscriptions = (client, httpAuth) => ({
5470
5504
  const res = await this.find(options);
5471
5505
  return res.data[0];
5472
5506
  },
5507
+ async findAll(options) {
5508
+ return await findAllGeneric(this.find, options);
5509
+ },
5473
5510
  async create(requestBody, options) {
5474
5511
  return (await client.post(httpAuth, '/subscriptions', requestBody, options))
5475
5512
  .data;
@@ -5585,7 +5622,7 @@ const templatesV2Service = (httpWithAuth) => {
5585
5622
  };
5586
5623
  };
5587
5624
 
5588
- const version = '8.10.0';
5625
+ const version = '8.11.0-dev-168-bf985ec';
5589
5626
 
5590
5627
  /**
5591
5628
  * Create ExtraHorizon client.
@@ -37,6 +37,7 @@ export declare type MockClientOAuth1<MockFn> = {
37
37
  findFirst: MockFn;
38
38
  findById: MockFn;
39
39
  findByName: MockFn;
40
+ findAll: MockFn;
40
41
  get: MockFn;
41
42
  add: MockFn;
42
43
  update: MockFn;
@@ -54,6 +55,7 @@ export declare type MockClientOAuth1<MockFn> = {
54
55
  findFirst: MockFn;
55
56
  findById: MockFn;
56
57
  findByName: MockFn;
58
+ findAll: MockFn;
57
59
  get: MockFn;
58
60
  create: MockFn;
59
61
  remove: MockFn;
@@ -68,6 +70,7 @@ export declare type MockClientOAuth1<MockFn> = {
68
70
  findFirst: MockFn;
69
71
  findById: MockFn;
70
72
  findByUserId: MockFn;
73
+ findAll: MockFn;
71
74
  remove: MockFn;
72
75
  };
73
76
  forgotPasswordRequests: {
@@ -75,6 +78,7 @@ export declare type MockClientOAuth1<MockFn> = {
75
78
  findFirst: MockFn;
76
79
  findById: MockFn;
77
80
  findByUserId: MockFn;
81
+ findAll: MockFn;
78
82
  remove: MockFn;
79
83
  };
80
84
  settings: {
@@ -152,6 +156,7 @@ export declare type MockClientOAuth1<MockFn> = {
152
156
  find: MockFn;
153
157
  findByName: MockFn;
154
158
  findFirst: MockFn;
159
+ findAll: MockFn;
155
160
  createFromText: MockFn;
156
161
  create: MockFn;
157
162
  remove: MockFn;
@@ -247,6 +252,7 @@ export declare type MockClientOAuth1<MockFn> = {
247
252
  find: MockFn;
248
253
  findById: MockFn;
249
254
  findFirst: MockFn;
255
+ findAll: MockFn;
250
256
  send: MockFn;
251
257
  track: MockFn;
252
258
  findOutbound: MockFn;
@@ -393,6 +399,7 @@ export declare type MockClientOAuth1<MockFn> = {
393
399
  find: MockFn;
394
400
  findByKey: MockFn;
395
401
  findFirst: MockFn;
402
+ findAll: MockFn;
396
403
  create: MockFn;
397
404
  update: MockFn;
398
405
  remove: MockFn;
@@ -471,12 +478,14 @@ export declare type MockClientOAuth1<MockFn> = {
471
478
  find: MockFn;
472
479
  findById: MockFn;
473
480
  findFirst: MockFn;
481
+ findAll: MockFn;
474
482
  create: MockFn;
475
483
  health: MockFn;
476
484
  subscriptions: {
477
485
  find: MockFn;
478
486
  findById: MockFn;
479
487
  findFirst: MockFn;
488
+ findAll: MockFn;
480
489
  create: MockFn;
481
490
  };
482
491
  };
@@ -493,6 +502,7 @@ export declare type MockClientOAuth1<MockFn> = {
493
502
  findFirst: MockFn;
494
503
  findById: MockFn;
495
504
  findByName: MockFn;
505
+ findAll: MockFn;
496
506
  get: MockFn;
497
507
  update: MockFn;
498
508
  remove: MockFn;
@@ -504,6 +514,7 @@ export declare type MockClientOAuth1<MockFn> = {
504
514
  find: MockFn;
505
515
  findFirst: MockFn;
506
516
  findById: MockFn;
517
+ findAll: MockFn;
507
518
  remove: MockFn;
508
519
  };
509
520
  createAuthorization: MockFn;
@@ -515,6 +526,7 @@ export declare type MockClientOAuth1<MockFn> = {
515
526
  find: MockFn;
516
527
  findFirst: MockFn;
517
528
  findById: MockFn;
529
+ findAll: MockFn;
518
530
  remove: MockFn;
519
531
  };
520
532
  generateSsoToken: MockFn;
@@ -612,6 +624,7 @@ export declare type MockClientOAuth2<MockFn> = {
612
624
  findFirst: MockFn;
613
625
  findById: MockFn;
614
626
  findByName: MockFn;
627
+ findAll: MockFn;
615
628
  get: MockFn;
616
629
  add: MockFn;
617
630
  update: MockFn;
@@ -629,6 +642,7 @@ export declare type MockClientOAuth2<MockFn> = {
629
642
  findFirst: MockFn;
630
643
  findById: MockFn;
631
644
  findByName: MockFn;
645
+ findAll: MockFn;
632
646
  get: MockFn;
633
647
  create: MockFn;
634
648
  remove: MockFn;
@@ -643,6 +657,7 @@ export declare type MockClientOAuth2<MockFn> = {
643
657
  findFirst: MockFn;
644
658
  findById: MockFn;
645
659
  findByUserId: MockFn;
660
+ findAll: MockFn;
646
661
  remove: MockFn;
647
662
  };
648
663
  forgotPasswordRequests: {
@@ -650,6 +665,7 @@ export declare type MockClientOAuth2<MockFn> = {
650
665
  findFirst: MockFn;
651
666
  findById: MockFn;
652
667
  findByUserId: MockFn;
668
+ findAll: MockFn;
653
669
  remove: MockFn;
654
670
  };
655
671
  settings: {
@@ -727,6 +743,7 @@ export declare type MockClientOAuth2<MockFn> = {
727
743
  find: MockFn;
728
744
  findByName: MockFn;
729
745
  findFirst: MockFn;
746
+ findAll: MockFn;
730
747
  createFromText: MockFn;
731
748
  create: MockFn;
732
749
  remove: MockFn;
@@ -822,6 +839,7 @@ export declare type MockClientOAuth2<MockFn> = {
822
839
  find: MockFn;
823
840
  findById: MockFn;
824
841
  findFirst: MockFn;
842
+ findAll: MockFn;
825
843
  send: MockFn;
826
844
  track: MockFn;
827
845
  findOutbound: MockFn;
@@ -968,6 +986,7 @@ export declare type MockClientOAuth2<MockFn> = {
968
986
  find: MockFn;
969
987
  findByKey: MockFn;
970
988
  findFirst: MockFn;
989
+ findAll: MockFn;
971
990
  create: MockFn;
972
991
  update: MockFn;
973
992
  remove: MockFn;
@@ -1046,12 +1065,14 @@ export declare type MockClientOAuth2<MockFn> = {
1046
1065
  find: MockFn;
1047
1066
  findById: MockFn;
1048
1067
  findFirst: MockFn;
1068
+ findAll: MockFn;
1049
1069
  create: MockFn;
1050
1070
  health: MockFn;
1051
1071
  subscriptions: {
1052
1072
  find: MockFn;
1053
1073
  findById: MockFn;
1054
1074
  findFirst: MockFn;
1075
+ findAll: MockFn;
1055
1076
  create: MockFn;
1056
1077
  };
1057
1078
  };
@@ -1068,6 +1089,7 @@ export declare type MockClientOAuth2<MockFn> = {
1068
1089
  findFirst: MockFn;
1069
1090
  findById: MockFn;
1070
1091
  findByName: MockFn;
1092
+ findAll: MockFn;
1071
1093
  get: MockFn;
1072
1094
  update: MockFn;
1073
1095
  remove: MockFn;
@@ -1079,6 +1101,7 @@ export declare type MockClientOAuth2<MockFn> = {
1079
1101
  find: MockFn;
1080
1102
  findFirst: MockFn;
1081
1103
  findById: MockFn;
1104
+ findAll: MockFn;
1082
1105
  remove: MockFn;
1083
1106
  };
1084
1107
  createAuthorization: MockFn;
@@ -1090,6 +1113,7 @@ export declare type MockClientOAuth2<MockFn> = {
1090
1113
  find: MockFn;
1091
1114
  findFirst: MockFn;
1092
1115
  findById: MockFn;
1116
+ findAll: MockFn;
1093
1117
  remove: MockFn;
1094
1118
  };
1095
1119
  generateSsoToken: MockFn;
@@ -1187,6 +1211,7 @@ export declare type MockClientProxy<MockFn> = {
1187
1211
  findFirst: MockFn;
1188
1212
  findById: MockFn;
1189
1213
  findByName: MockFn;
1214
+ findAll: MockFn;
1190
1215
  get: MockFn;
1191
1216
  add: MockFn;
1192
1217
  update: MockFn;
@@ -1204,6 +1229,7 @@ export declare type MockClientProxy<MockFn> = {
1204
1229
  findFirst: MockFn;
1205
1230
  findById: MockFn;
1206
1231
  findByName: MockFn;
1232
+ findAll: MockFn;
1207
1233
  get: MockFn;
1208
1234
  create: MockFn;
1209
1235
  remove: MockFn;
@@ -1218,6 +1244,7 @@ export declare type MockClientProxy<MockFn> = {
1218
1244
  findFirst: MockFn;
1219
1245
  findById: MockFn;
1220
1246
  findByUserId: MockFn;
1247
+ findAll: MockFn;
1221
1248
  remove: MockFn;
1222
1249
  };
1223
1250
  forgotPasswordRequests: {
@@ -1225,6 +1252,7 @@ export declare type MockClientProxy<MockFn> = {
1225
1252
  findFirst: MockFn;
1226
1253
  findById: MockFn;
1227
1254
  findByUserId: MockFn;
1255
+ findAll: MockFn;
1228
1256
  remove: MockFn;
1229
1257
  };
1230
1258
  settings: {
@@ -1302,6 +1330,7 @@ export declare type MockClientProxy<MockFn> = {
1302
1330
  find: MockFn;
1303
1331
  findByName: MockFn;
1304
1332
  findFirst: MockFn;
1333
+ findAll: MockFn;
1305
1334
  createFromText: MockFn;
1306
1335
  create: MockFn;
1307
1336
  remove: MockFn;
@@ -1397,6 +1426,7 @@ export declare type MockClientProxy<MockFn> = {
1397
1426
  find: MockFn;
1398
1427
  findById: MockFn;
1399
1428
  findFirst: MockFn;
1429
+ findAll: MockFn;
1400
1430
  send: MockFn;
1401
1431
  track: MockFn;
1402
1432
  findOutbound: MockFn;
@@ -1543,6 +1573,7 @@ export declare type MockClientProxy<MockFn> = {
1543
1573
  find: MockFn;
1544
1574
  findByKey: MockFn;
1545
1575
  findFirst: MockFn;
1576
+ findAll: MockFn;
1546
1577
  create: MockFn;
1547
1578
  update: MockFn;
1548
1579
  remove: MockFn;
@@ -1621,12 +1652,14 @@ export declare type MockClientProxy<MockFn> = {
1621
1652
  find: MockFn;
1622
1653
  findById: MockFn;
1623
1654
  findFirst: MockFn;
1655
+ findAll: MockFn;
1624
1656
  create: MockFn;
1625
1657
  health: MockFn;
1626
1658
  subscriptions: {
1627
1659
  find: MockFn;
1628
1660
  findById: MockFn;
1629
1661
  findFirst: MockFn;
1662
+ findAll: MockFn;
1630
1663
  create: MockFn;
1631
1664
  };
1632
1665
  };
@@ -1643,6 +1676,7 @@ export declare type MockClientProxy<MockFn> = {
1643
1676
  findFirst: MockFn;
1644
1677
  findById: MockFn;
1645
1678
  findByName: MockFn;
1679
+ findAll: MockFn;
1646
1680
  get: MockFn;
1647
1681
  update: MockFn;
1648
1682
  remove: MockFn;
@@ -1654,6 +1688,7 @@ export declare type MockClientProxy<MockFn> = {
1654
1688
  find: MockFn;
1655
1689
  findFirst: MockFn;
1656
1690
  findById: MockFn;
1691
+ findAll: MockFn;
1657
1692
  remove: MockFn;
1658
1693
  };
1659
1694
  createAuthorization: MockFn;
@@ -1665,6 +1700,7 @@ export declare type MockClientProxy<MockFn> = {
1665
1700
  find: MockFn;
1666
1701
  findFirst: MockFn;
1667
1702
  findById: MockFn;
1703
+ findAll: MockFn;
1668
1704
  remove: MockFn;
1669
1705
  };
1670
1706
  generateSsoToken: MockFn;
@@ -32,6 +32,23 @@ export interface AuthApplicationsService {
32
32
  * @throws {@link NoPermissionError} when the user doesn't have the required permissions to execute the function.
33
33
  * */
34
34
  find(options?: OptionsWithRql): Promise<PagedResult<OAuth1Application | OAuth2Application>>;
35
+ /**
36
+ * ## Get a list of applications
37
+ * Provides a list of applications currently registered in the cluster.
38
+ *
39
+ * Every logged-in user is able to retrieve a limited set of fields (only `name`, `description`, `logo` and `type`).
40
+ *
41
+ * #### Global Permissions
42
+ * `VIEW_APPLICATIONS` - Returns all applications fields
43
+ *
44
+ * #### Function details
45
+ * @param options {@link OptionsWithRql} additional options with rql that can be set for your request to the cluster.
46
+ *
47
+ * @returns Provides a list of applications currently registered in the cluster.
48
+ *
49
+ * @throws {@link NoPermissionError} when the user doesn't have the required permissions to execute the function.
50
+ * */
51
+ findAll(options?: OptionsWithRql): Promise<(OAuth1Application | OAuth2Application)[]>;
35
52
  /**
36
53
  * ## Get the first application found
37
54
  * Gets the first application from the paginated list of applications currently registered in the cluster.
@@ -54,6 +54,15 @@ export interface AuthOauth1TokenService {
54
54
  * VIEW_AUTHORIZATIONS | global | Can see a list of OAuth1 tokens for any account
55
55
  */
56
56
  find(options?: OptionsWithRql): Promise<PagedResult<OAuth1Token>>;
57
+ /**
58
+ * Get a list of OAuth1 tokens
59
+ *
60
+ * Permission | Scope | Effect
61
+ * - | - | -
62
+ * none | | Can only see a list of OAuth1 tokens for this account
63
+ * VIEW_AUTHORIZATIONS | global | Can see a list of OAuth1 tokens for any account
64
+ */
65
+ findAll(options?: OptionsWithRql): Promise<OAuth1Token[]>;
57
66
  /**
58
67
  * Get the first OAuth1 token found
59
68
  *
@@ -43,6 +43,15 @@ export interface AuthOauth2TokenService {
43
43
  * VIEW_AUTHORIZATIONS | global | Can see a list of OAuth2 tokens for any account
44
44
  */
45
45
  find(options?: OptionsWithRql): Promise<PagedResult<OAuth2Token>>;
46
+ /**
47
+ * Get a list of OAuth2 tokens
48
+ *
49
+ * Permission | Scope | Effect
50
+ * - | - | -
51
+ * none | | Can only see a list of OAuth2 tokens for this account
52
+ * VIEW_AUTHORIZATIONS | global | Can see a list of OAuth2 tokens for any account
53
+ */
54
+ findAll(options?: OptionsWithRql): Promise<OAuth2Token[]>;
46
55
  /**
47
56
  * Get the first OAuth2 token found
48
57
  *
@@ -32,21 +32,22 @@ export interface EventsService {
32
32
  * Permission | Scope | Effect
33
33
  * - | - | -
34
34
  * `VIEW_EVENTS` | `global` | **Required** for this endpoint
35
- * @param rql Add filters to the requested list.
36
- * @returns PagedResult<Event>
37
35
  */
38
36
  find(options?: OptionsWithRql): Promise<PagedResult<Event>>;
37
+ /**
38
+ * Returns a list of events
39
+ *
40
+ * Permission | Scope | Effect
41
+ * - | - | -
42
+ * `VIEW_EVENTS` | `global` | **Required** for this endpoint
43
+ */
44
+ findAll(options?: OptionsWithRql): Promise<Event[]>;
39
45
  /**
40
46
  * Find By Id
41
- * @param id the Id to search for
42
- * @param rql an optional rql string
43
- * @returns the first element found
44
47
  */
45
48
  findById(id: ObjectId, options?: OptionsWithRql): Promise<Event | undefined>;
46
49
  /**
47
50
  * Find First
48
- * @param rql an optional rql string
49
- * @returns the first element found
50
51
  */
51
52
  findFirst(options?: OptionsWithRql): Promise<Event | undefined>;
52
53
  /**
@@ -58,13 +59,10 @@ export interface EventsService {
58
59
  * Permission | Scope | Effect
59
60
  * - | - | -
60
61
  * `CREATE_EVENTS` | `global` | **Required** for this endpoint
61
- * @param requestBody
62
- * @returns Event
63
62
  */
64
63
  create(requestBody: CreateEvent, options?: CreateEventOptions): Promise<Event>;
65
64
  /**
66
65
  * Perform a health check
67
- * @returns {boolean} success
68
66
  */
69
67
  health(): Promise<boolean>;
70
68
  }
@@ -75,21 +73,22 @@ export interface SubscriptionsService {
75
73
  * Permission | Scope | Effect
76
74
  * - | - | -
77
75
  * `VIEW_SUBSCRIPTIONS` | `global` | **Required** for this endpoint
78
- * @param rql Add filters to the requested list.
79
- * @returns PagedResult<Subscription>
80
76
  */
81
77
  find(options?: OptionsWithRql): Promise<PagedResult<Subscription>>;
78
+ /**
79
+ * Returns a list of event subscriptions
80
+ *
81
+ * Permission | Scope | Effect
82
+ * - | - | -
83
+ * `VIEW_SUBSCRIPTIONS` | `global` | **Required** for this endpoint
84
+ */
85
+ findAll(options?: OptionsWithRql): Promise<Subscription[]>;
82
86
  /**
83
87
  * Find By Id
84
- * @param id the Id to search for
85
- * @param rql an optional rql string
86
- * @returns the first element found
87
88
  */
88
89
  findById(id: ObjectId, options?: OptionsWithRql): Promise<Subscription | undefined>;
89
90
  /**
90
91
  * Find First
91
- * @param rql an optional rql string
92
- * @returns the first element found
93
92
  */
94
93
  findFirst(options?: OptionsWithRql): Promise<Subscription | undefined>;
95
94
  /**
@@ -100,8 +99,6 @@ export interface SubscriptionsService {
100
99
  * Permission | Scope | Effect
101
100
  * - | - | -
102
101
  * `CREATE_SUBSCRIPTIONS` | `global` | **Required** for this endpoint
103
- * @param requestBody
104
- * @returns Subscription
105
102
  */
106
103
  create(requestBody: CreateSubscription, options?: OptionsBase): Promise<Subscription>;
107
104
  }