@dereekb/firebase-server 12.3.7 → 12.3.9

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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [12.3.9](https://github.com/dereekb/dbx-components/compare/v12.3.8-dev...v12.3.9) (2025-08-15)
6
+
7
+
8
+
9
+ ## [12.3.8](https://github.com/dereekb/dbx-components/compare/v12.3.7-dev...v12.3.8) (2025-08-14)
10
+
11
+
12
+
5
13
  ## [12.3.7](https://github.com/dereekb/dbx-components/compare/v12.3.6-dev...v12.3.7) (2025-08-14)
6
14
 
7
15
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server/mailgun",
3
- "version": "12.3.7",
3
+ "version": "12.3.9",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "mailgun.js": "^12.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server/model",
3
- "version": "12.3.7",
3
+ "version": "12.3.9",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "main": "./src/index.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server",
3
- "version": "12.3.7",
3
+ "version": "12.3.9",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./src/index.d.ts",
package/test/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server/test",
3
- "version": "12.3.7",
3
+ "version": "12.3.9",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "main": "./src/index.js"
package/zoho/index.cjs.js CHANGED
@@ -93,6 +93,22 @@ function firebaseZohoAccountsAccessTokenCacheService(systemStateCollection) {
93
93
  await documentInTransaction.update(templateOrUpdate);
94
94
  }
95
95
  });
96
+ },
97
+ clearCachedToken: async function () {
98
+ await systemStateCollection.firestoreContext.runTransaction(async transaction => {
99
+ const documentInTransaction = loadZohoAccessTokenSystemState(systemStateCollection.documentAccessorForTransaction(transaction));
100
+ const existingData = await documentInTransaction.snapshotData();
101
+ const templateOrUpdate = {
102
+ data: {
103
+ tokens: [],
104
+ lat: new Date()
105
+ }
106
+ };
107
+ // clear the tokens
108
+ if (existingData) {
109
+ await documentInTransaction.update(templateOrUpdate);
110
+ }
111
+ });
96
112
  }
97
113
  };
98
114
  return cache;
package/zoho/index.esm.js CHANGED
@@ -91,6 +91,22 @@ function firebaseZohoAccountsAccessTokenCacheService(systemStateCollection) {
91
91
  await documentInTransaction.update(templateOrUpdate);
92
92
  }
93
93
  });
94
+ },
95
+ clearCachedToken: async function () {
96
+ await systemStateCollection.firestoreContext.runTransaction(async transaction => {
97
+ const documentInTransaction = loadZohoAccessTokenSystemState(systemStateCollection.documentAccessorForTransaction(transaction));
98
+ const existingData = await documentInTransaction.snapshotData();
99
+ const templateOrUpdate = {
100
+ data: {
101
+ tokens: [],
102
+ lat: new Date()
103
+ }
104
+ };
105
+ // clear the tokens
106
+ if (existingData) {
107
+ await documentInTransaction.update(templateOrUpdate);
108
+ }
109
+ });
94
110
  }
95
111
  };
96
112
  return cache;
package/zoho/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server/zoho",
3
- "version": "12.3.7",
3
+ "version": "12.3.9",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./src/index.d.ts",