@dereekb/firebase-server 13.4.1 → 13.4.2

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 (101) hide show
  1. package/index.cjs.js +455 -113
  2. package/index.esm.js +456 -114
  3. package/mailgun/package.json +9 -9
  4. package/model/index.cjs.js +645 -350
  5. package/model/index.esm.js +646 -351
  6. package/model/package.json +9 -9
  7. package/model/src/lib/mailgun/notification.send.service.mailgun.d.ts +1 -0
  8. package/model/src/lib/notification/index.d.ts +2 -2
  9. package/model/src/lib/notification/{notification.action.service.d.ts → notification.action.server.d.ts} +53 -1
  10. package/model/src/lib/notification/{notification.action.init.service.d.ts → notification.action.server.init.d.ts} +20 -0
  11. package/model/src/lib/notification/notification.config.service.d.ts +2 -0
  12. package/model/src/lib/notification/notification.create.run.d.ts +1 -0
  13. package/model/src/lib/notification/notification.error.d.ts +16 -0
  14. package/model/src/lib/notification/notification.expedite.service.d.ts +11 -3
  15. package/model/src/lib/notification/notification.module.d.ts +19 -6
  16. package/model/src/lib/notification/notification.send.service.notificationsummary.d.ts +1 -0
  17. package/model/src/lib/notification/notification.send.service.text.d.ts +2 -0
  18. package/model/src/lib/notification/notification.task.service.handler.d.ts +1 -0
  19. package/model/src/lib/notification/notification.task.service.util.d.ts +1 -0
  20. package/model/src/lib/notification/notification.task.subtask.handler.d.ts +3 -0
  21. package/model/src/lib/notification/notification.util.d.ts +4 -2
  22. package/model/src/lib/storagefile/index.d.ts +1 -1
  23. package/model/src/lib/storagefile/storagefile.action.server.d.ts +98 -1
  24. package/model/src/lib/storagefile/{storagefile.action.init.service.d.ts → storagefile.action.server.init.d.ts} +13 -2
  25. package/model/src/lib/storagefile/storagefile.error.d.ts +27 -0
  26. package/model/src/lib/storagefile/storagefile.module.d.ts +14 -4
  27. package/model/src/lib/storagefile/storagefile.task.service.handler.d.ts +29 -7
  28. package/model/src/lib/storagefile/storagefile.upload.service.initializer.d.ts +2 -0
  29. package/oidc/index.cjs.js +150 -32
  30. package/oidc/index.esm.js +150 -32
  31. package/oidc/package.json +10 -10
  32. package/oidc/src/lib/controller/oidc.interaction.controller.d.ts +12 -0
  33. package/oidc/src/lib/controller/oidc.wellknown.controller.d.ts +6 -0
  34. package/oidc/src/lib/model/jwks/jwks.d.ts +9 -0
  35. package/oidc/src/lib/model/jwks/jwks.query.d.ts +9 -0
  36. package/oidc/src/lib/model/oidc/oidcmodel.action.server.d.ts +13 -0
  37. package/oidc/src/lib/model/oidc/oidcmodel.module.d.ts +5 -1
  38. package/oidc/src/lib/oidc.config.d.ts +2 -1
  39. package/oidc/src/lib/oidc.module.d.ts +9 -2
  40. package/oidc/src/lib/service/oidc.account.service.d.ts +7 -0
  41. package/oidc/src/lib/service/oidc.adapter.service.d.ts +1 -0
  42. package/oidc/src/lib/service/oidc.config.service.d.ts +1 -0
  43. package/oidc/src/lib/service/oidc.encryption.service.d.ts +6 -0
  44. package/oidc/src/lib/service/oidc.interaction.service.d.ts +15 -0
  45. package/oidc/src/lib/service/oidc.jwks.service.d.ts +18 -2
  46. package/oidc/src/lib/service/oidc.service.d.ts +7 -3
  47. package/package.json +10 -10
  48. package/src/lib/auth/auth.context.d.ts +1 -0
  49. package/src/lib/auth/auth.service.d.ts +13 -0
  50. package/src/lib/env/env.config.d.ts +2 -0
  51. package/src/lib/env/env.service.d.ts +21 -7
  52. package/src/lib/firestore/array.d.ts +1 -0
  53. package/src/lib/firestore/driver.accessor.batch.d.ts +4 -0
  54. package/src/lib/firestore/driver.accessor.d.ts +4 -0
  55. package/src/lib/firestore/driver.accessor.default.d.ts +5 -1
  56. package/src/lib/firestore/driver.accessor.transaction.d.ts +4 -0
  57. package/src/lib/firestore/driver.d.ts +2 -0
  58. package/src/lib/firestore/driver.query.d.ts +4 -0
  59. package/src/lib/firestore/increment.d.ts +1 -0
  60. package/src/lib/function/assert.d.ts +7 -0
  61. package/src/lib/function/context.d.ts +4 -0
  62. package/src/lib/function/error.auth.d.ts +2 -0
  63. package/src/lib/function/error.d.ts +86 -11
  64. package/src/lib/index.d.ts +0 -1
  65. package/src/lib/nest/analytics/analytics.service.listener.d.ts +2 -0
  66. package/src/lib/nest/app.d.ts +6 -3
  67. package/src/lib/nest/auth/auth.module.d.ts +6 -0
  68. package/src/lib/nest/auth/auth.util.d.ts +19 -1
  69. package/src/lib/nest/development/development.app.function.d.ts +12 -4
  70. package/src/lib/nest/development/development.assert.function.d.ts +6 -2
  71. package/src/lib/nest/development/development.function.d.ts +6 -1
  72. package/src/lib/nest/development/development.schedule.function.d.ts +3 -1
  73. package/src/lib/nest/development/development.schedule.function.error.d.ts +8 -0
  74. package/src/lib/nest/env/env.service.d.ts +2 -0
  75. package/src/lib/nest/env/env.util.d.ts +6 -0
  76. package/src/lib/nest/firebase/firebase.module.d.ts +1 -0
  77. package/src/lib/nest/firestore/firestore.module.d.ts +8 -0
  78. package/src/lib/nest/function/context.d.ts +2 -0
  79. package/src/lib/nest/model/analytics.details.d.ts +21 -7
  80. package/src/lib/nest/model/analytics.emit.d.ts +3 -0
  81. package/src/lib/nest/model/analytics.handler.d.ts +30 -10
  82. package/src/lib/nest/model/api.details.d.ts +34 -1
  83. package/src/lib/nest/model/call.model.function.d.ts +20 -4
  84. package/src/lib/nest/model/create.model.function.d.ts +6 -1
  85. package/src/lib/nest/model/crud.assert.function.d.ts +12 -4
  86. package/src/lib/nest/model/delete.model.function.d.ts +6 -1
  87. package/src/lib/nest/model/permission.error.d.ts +7 -0
  88. package/src/lib/nest/model/read.model.function.d.ts +6 -1
  89. package/src/lib/nest/model/specifier.function.d.ts +3 -0
  90. package/src/lib/nest/model/update.model.function.d.ts +6 -1
  91. package/src/lib/nest/nest.provider.d.ts +10 -0
  92. package/src/lib/nest/storage/storage.module.d.ts +9 -0
  93. package/src/lib/storage/driver.accessor.d.ts +22 -0
  94. package/src/lib/storage/driver.d.ts +2 -0
  95. package/src/lib/storage/storage.d.ts +1 -0
  96. package/test/package.json +10 -10
  97. package/zoho/index.cjs.js +8 -6
  98. package/zoho/index.esm.js +8 -6
  99. package/zoho/package.json +9 -9
  100. package/zoho/src/lib/zoho.accounts.firebase.d.ts +2 -1
  101. package/zoho/src/lib/zoho.accounts.firebase.system.d.ts +2 -1
package/zoho/index.esm.js CHANGED
@@ -47,7 +47,8 @@ var zohoAccessTokenSystemStateEmbeddedTokenConverter = firestoreSubObject({
47
47
  * Loads the {@link SystemStateDocument} that stores {@link ZohoAccessTokenSystemStateData},
48
48
  * using {@link ZOHO_ACCESS_TOKEN_SYSTEM_STATE_TYPE} as the document ID.
49
49
  *
50
- * @param accessor - the document accessor for the SystemState collection
50
+ * @param accessor - the document accessor for the SystemState collection.
51
+ * @returns The SystemState document for the Zoho access token data.
51
52
  *
52
53
  * @example
53
54
  * ```ts
@@ -265,7 +266,8 @@ function _ts_generator(thisArg, body) {
265
266
  * Tokens are stored in a single {@link SystemState} document (type {@link ZOHO_ACCESS_TOKEN_SYSTEM_STATE_TYPE})
266
267
  * and token updates/clears use Firestore transactions for concurrency safety.
267
268
  *
268
- * @param systemStateCollection - the Firestore collection for system state documents
269
+ * @param systemStateCollection - the Firestore collection for system state documents.
270
+ * @returns A cache service backed by Firestore system state documents.
269
271
  *
270
272
  * @example
271
273
  * ```ts
@@ -280,7 +282,7 @@ function _ts_generator(thisArg, body) {
280
282
  var cache = {
281
283
  loadCachedToken: function loadCachedToken() {
282
284
  return _async_to_generator(function() {
283
- var document, existingData, result, _ref, _existingData_data, tokensArray;
285
+ var document, existingData, result, tokensArray;
284
286
  return _ts_generator(this, function(_state) {
285
287
  switch(_state.label){
286
288
  case 0:
@@ -293,7 +295,7 @@ function _ts_generator(thisArg, body) {
293
295
  existingData = _state.sent();
294
296
  result = null;
295
297
  if (existingData != null) {
296
- tokensArray = (_ref = existingData === null || existingData === void 0 ? void 0 : (_existingData_data = existingData.data) === null || _existingData_data === void 0 ? void 0 : _existingData_data.tokens) !== null && _ref !== void 0 ? _ref : [];
298
+ tokensArray = existingData.data.tokens;
297
299
  result = tokensArray.find(function(x) {
298
300
  return x.key === serviceKey;
299
301
  });
@@ -316,7 +318,7 @@ function _ts_generator(thisArg, body) {
316
318
  4,
317
319
  systemStateCollection.firestoreContext.runTransaction(function(transaction) {
318
320
  return _async_to_generator(function() {
319
- var _ref, _existingData_data, documentInTransaction, existingData, existingTokens, tokens, templateOrUpdate;
321
+ var _ref, documentInTransaction, existingData, existingTokens, tokens, templateOrUpdate;
320
322
  return _ts_generator(this, function(_state) {
321
323
  switch(_state.label){
322
324
  case 0:
@@ -327,7 +329,7 @@ function _ts_generator(thisArg, body) {
327
329
  ];
328
330
  case 1:
329
331
  existingData = _state.sent();
330
- existingTokens = (_ref = existingData === null || existingData === void 0 ? void 0 : (_existingData_data = existingData.data) === null || _existingData_data === void 0 ? void 0 : _existingData_data.tokens) !== null && _ref !== void 0 ? _ref : [];
332
+ existingTokens = (_ref = existingData === null || existingData === void 0 ? void 0 : existingData.data.tokens) !== null && _ref !== void 0 ? _ref : [];
331
333
  tokens = // filter any potential old token for this service key
332
334
  _to_consumable_array(existingTokens.filter(function(x) {
333
335
  return x.key !== serviceKey;
package/zoho/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server/zoho",
3
- "version": "13.4.1",
3
+ "version": "13.4.2",
4
4
  "peerDependencies": {
5
- "@dereekb/analytics": "13.4.1",
6
- "@dereekb/date": "13.4.1",
7
- "@dereekb/model": "13.4.1",
8
- "@dereekb/nestjs": "13.4.1",
9
- "@dereekb/rxjs": "13.4.1",
10
- "@dereekb/firebase": "13.4.1",
11
- "@dereekb/util": "13.4.1",
12
- "@dereekb/zoho": "13.4.1"
5
+ "@dereekb/analytics": "13.4.2",
6
+ "@dereekb/date": "13.4.2",
7
+ "@dereekb/model": "13.4.2",
8
+ "@dereekb/nestjs": "13.4.2",
9
+ "@dereekb/rxjs": "13.4.2",
10
+ "@dereekb/firebase": "13.4.2",
11
+ "@dereekb/util": "13.4.2",
12
+ "@dereekb/zoho": "13.4.2"
13
13
  },
14
14
  "exports": {
15
15
  "./package.json": "./package.json",
@@ -7,7 +7,8 @@ import { type ZohoAccountsAccessTokenCacheService } from '@dereekb/zoho/nestjs';
7
7
  * Tokens are stored in a single {@link SystemState} document (type {@link ZOHO_ACCESS_TOKEN_SYSTEM_STATE_TYPE})
8
8
  * and token updates/clears use Firestore transactions for concurrency safety.
9
9
  *
10
- * @param systemStateCollection - the Firestore collection for system state documents
10
+ * @param systemStateCollection - the Firestore collection for system state documents.
11
+ * @returns A cache service backed by Firestore system state documents.
11
12
  *
12
13
  * @example
13
14
  * ```ts
@@ -44,7 +44,8 @@ export declare const zohoAccessTokenSystemStateDataConverter: SystemStateStoredD
44
44
  * Loads the {@link SystemStateDocument} that stores {@link ZohoAccessTokenSystemStateData},
45
45
  * using {@link ZOHO_ACCESS_TOKEN_SYSTEM_STATE_TYPE} as the document ID.
46
46
  *
47
- * @param accessor - the document accessor for the SystemState collection
47
+ * @param accessor - the document accessor for the SystemState collection.
48
+ * @returns The SystemState document for the Zoho access token data.
48
49
  *
49
50
  * @example
50
51
  * ```ts