@friggframework/core 1.2.0-canary.293.5731c31.0 → 1.2.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.
Files changed (85) hide show
  1. package/CHANGELOG.md +154 -0
  2. package/README.md +80 -0
  3. package/encrypt/encrypt.test.js +1 -1
  4. package/errors/validation-errors.js +2 -2
  5. package/index.js +3 -11
  6. package/integrations/index.js +1 -4
  7. package/integrations/integration-base.js +24 -0
  8. package/integrations/integration-factory.js +0 -12
  9. package/integrations/integration-router.js +133 -53
  10. package/integrations/test/integration-base.test.js +2 -1
  11. package/jest-setup.js +2 -0
  12. package/jest-teardown.js +2 -0
  13. package/{module-plugin/jest.config.js → jest.config.js} +2 -1
  14. package/logs/logger.test.js +1 -1
  15. package/module-plugin/auther.js +14 -6
  16. package/module-plugin/index.js +1 -5
  17. package/module-plugin/module-factory.js +18 -17
  18. package/module-plugin/requester/requester.js +15 -1
  19. package/package.json +12 -11
  20. package/assertions/CHANGELOG.md +0 -87
  21. package/assertions/LICENSE.md +0 -9
  22. package/assertions/README.md +0 -3
  23. package/assertions/bump.txt +0 -1
  24. package/assertions/bump3.txt +0 -0
  25. package/associations/LICENSE.md +0 -9
  26. package/associations/README.md +0 -3
  27. package/associations/bump3.txt +0 -0
  28. package/associations/jest.config.js +0 -5
  29. package/core/.eslintrc.json +0 -3
  30. package/core/CHANGELOG.md +0 -103
  31. package/core/LICENSE.md +0 -9
  32. package/core/README.md +0 -3
  33. package/core/bump3.txt +0 -0
  34. package/core/jest.config.js +0 -5
  35. package/database/.eslintrc.json +0 -3
  36. package/database/CHANGELOG.md +0 -97
  37. package/database/LICENSE.md +0 -9
  38. package/database/README.md +0 -3
  39. package/database/bump3.txt +0 -0
  40. package/encrypt/.eslintrc.json +0 -3
  41. package/encrypt/CHANGELOG.md +0 -78
  42. package/encrypt/LICENSE.md +0 -9
  43. package/encrypt/README.md +0 -13
  44. package/encrypt/bump3.txt +0 -0
  45. package/encrypt/jest.config.js +0 -5
  46. package/errors/.eslintrc.json +0 -3
  47. package/errors/CHANGELOG.md +0 -44
  48. package/errors/LICENSE.md +0 -9
  49. package/errors/README.md +0 -3
  50. package/errors/bump.txt +0 -1
  51. package/errors/bump3.txt +0 -0
  52. package/errors/jest.config.js +0 -5
  53. package/integrations/.eslintrc.json +0 -3
  54. package/integrations/CHANGELOG.md +0 -244
  55. package/integrations/LICENSE.md +0 -9
  56. package/integrations/README.md +0 -3
  57. package/integrations/bump3.txt +0 -0
  58. package/integrations/jest-setup.js +0 -2
  59. package/integrations/jest-teardown.js +0 -2
  60. package/integrations/jest.config.js +0 -12
  61. package/integrations/mock-integration.js +0 -83
  62. package/lambda/README.md +0 -3
  63. package/lambda/bump3.txt +0 -0
  64. package/lambda/jest.config.js +0 -3
  65. package/logs/CHANGELOG.md +0 -57
  66. package/logs/LICENSE.md +0 -9
  67. package/logs/README.md +0 -3
  68. package/logs/bump3.txt +0 -0
  69. package/logs/jest.config.js +0 -5
  70. package/module-plugin/.eslintrc.json +0 -3
  71. package/module-plugin/CHANGELOG.md +0 -224
  72. package/module-plugin/LICENSE.md +0 -9
  73. package/module-plugin/README.md +0 -3
  74. package/module-plugin/auther-definition-method-tester.js +0 -45
  75. package/module-plugin/auther-definition-tester.js +0 -121
  76. package/module-plugin/bump3.txt +0 -0
  77. package/module-plugin/jest-setup.js +0 -3
  78. package/module-plugin/jest-teardown.js +0 -2
  79. package/syncs/README.md +0 -3
  80. package/syncs/bump3.txt +0 -0
  81. package/syncs/jest.config.js +0 -5
  82. package/types/CHANGELOG.md +0 -49
  83. package/types/README.md +0 -24
  84. package/types/bump3.txt +0 -0
  85. /package/{assertions/.eslintrc.json → .eslintrc.json} +0 -0
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "@friggframework/eslint-config"
3
- }
@@ -1,224 +0,0 @@
1
- # v1.1.0 (Wed Sep 06 2023)
2
-
3
- #### 🚀 Enhancement
4
-
5
- - Slack lookup by externalId, remove the user requirement from Mongoose DB models [#218](https://github.com/friggframework/frigg/pull/218) ([@seanspeaks](https://github.com/seanspeaks))
6
-
7
- #### 🐛 Bug Fix
8
-
9
- - Looking good ([@seanspeaks](https://github.com/seanspeaks))
10
- - Bump independent versions \[skip ci\] ([@seanspeaks](https://github.com/seanspeaks))
11
-
12
- #### Authors: 1
13
-
14
- - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
15
-
16
- ---
17
-
18
- # v1.0.27 (Thu Jun 08 2023)
19
-
20
- #### 🐛 Bug Fix
21
-
22
- - Fr/gdrive lef 280 [#175](https://github.com/friggframework/frigg/pull/175) (michael.webber@lefthook.com [@seanspeaks](https://github.com/seanspeaks))
23
- - Google Drive update ([@seanspeaks](https://github.com/seanspeaks))
24
- - Bump independent versions \[skip ci\] ([@seanspeaks](https://github.com/seanspeaks))
25
-
26
- #### Authors: 2
27
-
28
- - Michael Webber (michael.webber@lefthook.com)
29
- - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
30
-
31
- ---
32
-
33
- # v1.0.26 (Thu May 25 2023)
34
-
35
- #### 🐛 Bug Fix
36
-
37
- - Support calling localhost for ironclad api [#160](https://github.com/friggframework/frigg/pull/160) ([@debbie-yu](https://github.com/debbie-yu))
38
- - remove agent at method call level ([@debbie-yu](https://github.com/debbie-yu))
39
- - address feedback to put agent in requester class ([@debbie-yu](https://github.com/debbie-yu))
40
- - support calling localhost for ironclad api ([@debbie-yu](https://github.com/debbie-yu))
41
- - Bump independent versions \[skip ci\] ([@seanspeaks](https://github.com/seanspeaks))
42
-
43
- #### Authors: 2
44
-
45
- - [@debbie-yu](https://github.com/debbie-yu)
46
- - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
47
-
48
- ---
49
-
50
- # v1.0.25 (Tue Apr 04 2023)
51
-
52
- :tada: This release contains work from a new contributor! :tada:
53
-
54
- Thank you, null[@debbie-yu](https://github.com/debbie-yu), for all your work!
55
-
56
- #### 🐛 Bug Fix
57
-
58
- - Adding new IntegrationMapping collection [#142](https://github.com/friggframework/frigg/pull/142) ([@debbie-yu](https://github.com/debbie-yu))
59
- - Merge branch 'main' of https://github.com/friggframework/frigg into debbie.yu/integration-mapping ([@debbie-yu](https://github.com/debbie-yu))
60
- - addressing PR feedback and adding unit tests around IntegrationMapping ([@debbie-yu](https://github.com/debbie-yu))
61
- - adding new IntegrationMapping collection to better handle keeping track of mappings for integrations ([@debbie-yu](https://github.com/debbie-yu))
62
- - Bump independent versions \[skip ci\] ([@seanspeaks](https://github.com/seanspeaks))
63
-
64
- #### Authors: 2
65
-
66
- - [@debbie-yu](https://github.com/debbie-yu)
67
- - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
68
-
69
- ---
70
-
71
- # v1.0.24 (Tue Feb 21 2023)
72
-
73
- #### 🐛 Bug Fix
74
-
75
- - Updates to HubSpot Module [#132](https://github.com/friggframework/frigg/pull/132) ([@seanspeaks](https://github.com/seanspeaks))
76
- - Merge branch 'main' into hubspot-updates ([@seanspeaks](https://github.com/seanspeaks))
77
- - WIP Updates... cleanup, simplify, and fix ([@seanspeaks](https://github.com/seanspeaks))
78
- - Bump independent versions \[skip ci\] ([@seanspeaks](https://github.com/seanspeaks))
79
-
80
- #### Authors: 1
81
-
82
- - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
83
-
84
- ---
85
-
86
- # v1.0.23 (Wed Feb 08 2023)
87
-
88
- #### 🐛 Bug Fix
89
-
90
- - Fixed a Slack bug via requester improvement [#125](https://github.com/friggframework/frigg/pull/125) ([@seanspeaks](https://github.com/seanspeaks))
91
- - Fixed a Slack bug via requester improvement ([@seanspeaks](https://github.com/seanspeaks))
92
-
93
- #### Authors: 1
94
-
95
- - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
96
-
97
- ---
98
-
99
- # v1.0.22 (Tue Jan 31 2023)
100
-
101
- #### 🐛 Bug Fix
102
-
103
- - Bump independent versions \[skip ci\] ([@seanspeaks](https://github.com/seanspeaks))
104
-
105
- #### Authors: 1
106
-
107
- - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
108
-
109
- ---
110
-
111
- # v1.0.21 (Wed Jan 18 2023)
112
-
113
- #### 🐛 Bug Fix
114
-
115
- - Ironclad and slack updates [#96](https://github.com/friggframework/frigg/pull/96) ([@seanspeaks](https://github.com/seanspeaks))
116
- - Refresh Auth attempt only once, instead of potential for infinite loop [#95](https://github.com/friggframework/frigg/pull/95) ([@seanspeaks](https://github.com/seanspeaks))
117
- - Refresh Auth attempt only once, instead of potential for infinite loop ([@seanspeaks](https://github.com/seanspeaks))
118
-
119
- #### Authors: 1
120
-
121
- - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
122
-
123
- ---
124
-
125
- # v1.0.20 (Wed Jan 11 2023)
126
-
127
- #### 🐛 Bug Fix
128
-
129
- - Ironclad updates and sub type [#91](https://github.com/friggframework/frigg/pull/91) ([@JonathanEdMoore](https://github.com/JonathanEdMoore) [@seanspeaks](https://github.com/seanspeaks))
130
- - subType support for ironclad ([@seanspeaks](https://github.com/seanspeaks))
131
- - Bump independent versions \[skip ci\] ([@seanspeaks](https://github.com/seanspeaks))
132
-
133
- #### Authors: 2
134
-
135
- - Jonathan Moore ([@JonathanEdMoore](https://github.com/JonathanEdMoore))
136
- - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
137
-
138
- ---
139
-
140
- # v1.0.19 (Tue Jan 10 2023)
141
-
142
- :tada: This release contains work from a new contributor! :tada:
143
-
144
- Thank you, Jonathan O'Donnell ([@joncodo](https://github.com/joncodo)), for all your work!
145
-
146
- #### 🐛 Bug Fix
147
-
148
- - Merge branch 'main' of github.com:friggframework/frigg into doc-updates ([@joncodo](https://github.com/joncodo))
149
- - Bump independent versions \[skip ci\] ([@seanspeaks](https://github.com/seanspeaks))
150
-
151
- #### Authors: 2
152
-
153
- - Jonathan O'Donnell ([@joncodo](https://github.com/joncodo))
154
- - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
155
-
156
- ---
157
-
158
- # v1.0.18 (Mon Jan 09 2023)
159
-
160
- #### 🐛 Bug Fix
161
-
162
- - Merge remote-tracking branch 'origin/main' into gitbook-updates [#48](https://github.com/friggframework/frigg/pull/48) ([@seanspeaks](https://github.com/seanspeaks))
163
- - Bump independent versions \[skip ci\] ([@seanspeaks](https://github.com/seanspeaks))
164
- - Updates to managers [#24](https://github.com/friggframework/frigg/pull/24) ([@seanspeaks](https://github.com/seanspeaks))
165
- - Update integrationManager createIntegration function to accept EntityManager param (WIP) (Could be improved) ([@seanspeaks](https://github.com/seanspeaks))
166
- - module-plugin manager file uses MO instead of just Entity ([@seanspeaks](https://github.com/seanspeaks))
167
- - A lot of changes all rolled into one [#21](https://github.com/friggframework/frigg/pull/21) ([@seanspeaks](https://github.com/seanspeaks))
168
- - Bumped versions with patches ([@seanspeaks](https://github.com/seanspeaks))
169
- - Mongoose models tweak for sls offline as per https://nesin.io/blog/fix-mongoose-cannot-overwrite-model-once-compiled-error ([@seanspeaks](https://github.com/seanspeaks))
170
- - Continued updating of references and refactoring API modules ([@seanspeaks](https://github.com/seanspeaks))
171
- - Merge remote-tracking branch 'origin/main' into simplify-mongoose-models ([@seanspeaks](https://github.com/seanspeaks))
172
- - Change references to the module instead of local file reference ([@seanspeaks](https://github.com/seanspeaks))
173
- - Added core as a dependency of module-plugin ([@seanspeaks](https://github.com/seanspeaks))
174
- - Add READMEs for all packages and api-modules [#20](https://github.com/friggframework/frigg/pull/20) ([@seanspeaks](https://github.com/seanspeaks))
175
- - Add READMEs for all packages and api-modules ([@seanspeaks](https://github.com/seanspeaks))
176
- - Begin tweaks for mongo/mongoose models ([@seanspeaks](https://github.com/seanspeaks))
177
-
178
- #### ⚠️ Pushed to `main`
179
-
180
- - Merge branch 'main' into gitbook-updates ([@seanspeaks](https://github.com/seanspeaks))
181
- - Refactored for more conventional naming (at least for packages) ([@seanspeaks](https://github.com/seanspeaks))
182
-
183
- #### Authors: 1
184
-
185
- - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
186
-
187
- ---
188
-
189
- # v1.0.17 (Fri Dec 23 2022)
190
-
191
- #### 🐛 Bug Fix
192
-
193
- - this may break folks' implementations, but that's what unit tests are… [#81](https://github.com/friggframework/frigg/pull/81) ([@seanspeaks](https://github.com/seanspeaks))
194
- - this may break folks' implementations, but that's what unit tests are for. ([@seanspeaks](https://github.com/seanspeaks))
195
-
196
- #### Authors: 1
197
-
198
- - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
199
-
200
- ---
201
-
202
- # v1.0.15 (Tue Dec 06 2022)
203
-
204
- #### 🐛 Bug Fix
205
-
206
- - fix modules to @friggframework [#74](https://github.com/friggframework/frigg/pull/74) ([@sheehantoufiq](https://github.com/sheehantoufiq))
207
- - Bump independent versions \[skip ci\] ([@seanspeaks](https://github.com/seanspeaks))
208
-
209
- #### Authors: 2
210
-
211
- - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
212
- - Sheehan Toufiq Khan ([@sheehantoufiq](https://github.com/sheehantoufiq))
213
-
214
- ---
215
-
216
- # v1.0.12 (Mon Sep 19 2022)
217
-
218
- #### 🐛 Bug Fix
219
-
220
- - Merge remote-tracking branch 'origin/main' into gitbook-updates [#48](https://github.com/friggframework/frigg/pull/48) ([@seanspeaks](https://github.com/seanspeaks))
221
-
222
- #### Authors: 1
223
-
224
- - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2022 Left Hook Inc.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,3 +0,0 @@
1
- # module-plugin
2
-
3
- This package exports the `module-plugin` library of models, classes, and functions used in [Frigg](https://friggframework.org). You can find its documentation [on Frigg's website](https://docs.friggframework.org/packages/module-plugin).
@@ -1,45 +0,0 @@
1
- const {flushDebugLog} = require('../logs');
2
-
3
- async function testDefinitionRequiredAuthMethods(api, definition, authCallbackParams, tokenResponse, userId) {
4
-
5
- // const response = await definition.getToken(api, authCallbackParams);
6
- // expect(api.setTokens).toHaveBeenCalled();
7
- // if (tokenResponse) {
8
- // expect(response).toMatchObject(tokenResponse);
9
- // }
10
-
11
- const entityDetails = await definition.requiredAuthMethods.getEntityDetails(api, authCallbackParams, tokenResponse, userId);
12
- expect(entityDetails).toHaveProperty('identifiers');
13
- expect(Object.values(entityDetails.identifiers).length).toBeGreaterThan(0);
14
- for (const key of Object.keys(entityDetails.identifiers)){
15
- expect(key).toBeDefined();
16
- expect(entityDetails.identifiers[key]).toBeDefined();
17
- }
18
-
19
-
20
- const credentialDetails = await definition.requiredAuthMethods.getCredentialDetails(api);
21
- expect(credentialDetails).toHaveProperty('identifiers');
22
- expect(Object.values(entityDetails.identifiers).length).toBeGreaterThan(0);
23
- for (const key of Object.keys(entityDetails.identifiers)){
24
- expect(key).toBeDefined();
25
- expect(entityDetails.identifiers[key]).toBeDefined();
26
- }
27
-
28
- const successResponse = await definition.requiredAuthMethods.testAuthRequest(api);
29
- expect(successResponse).toBeTruthy();
30
- const savedKeys = {};
31
- for (const key of definition.requiredAuthMethods.apiPropertiesToPersist.credential){
32
- savedKeys[key] = api[key];
33
- delete api[key];
34
- }
35
- let validAuth = false;
36
- try {
37
- if (await definition.requiredAuthMethods.testAuthRequest(api)) validAuth = true;
38
- } catch (e) {
39
- flushDebugLog(e);
40
- }
41
- expect(validAuth).not.toBeTruthy();
42
- Object.assign(api, savedKeys);
43
- }
44
-
45
- module.exports = { testDefinitionRequiredAuthMethods }
@@ -1,121 +0,0 @@
1
- const { Auther } = require('./auther');
2
- const { ModuleConstants } = require('./ModuleConstants');
3
- const { createObjectId,connectToDatabase, disconnectFromDatabase } = require('../database');
4
- const { createMockApiObject } = require("../integrations/mock-integration");
5
-
6
-
7
- function testAutherDefinition(definition, mocks) {
8
- const getModule = async (params) => {
9
- const module = await Auther.getInstance({
10
- definition,
11
- userId: createObjectId(),
12
- ...params,
13
- });
14
- if (mocks.tokenResponse) {
15
- mocks.getTokenFrom = async function(code) {
16
- await this.setTokens(mocks.tokenResponse);
17
- return mocks.tokenResponse
18
- }
19
- mocks.getTokenFromCode = mocks.getTokenFromCode || mocks.getTokenFrom
20
- mocks.getTokenFromCodeBasicAuthHeader = mocks.getTokenFromCodeBasicAuthHeader || mocks.getTokenFrom
21
- mocks.getTokenFromClientCredentials = mocks.getTokenFromClientCredentials || mocks.getTokenFrom
22
- mocks.getTokenFromUsernamePassword = mocks.getTokenFromUsernamePassword || mocks.getTokenFrom
23
- }
24
- if (mocks.refreshResponse) {
25
- mocks.refreshAccessToken = async function(code) {
26
- await this.setTokens(mocks.refreshResponse);
27
- return mocks.refreshResponse
28
- }
29
- }
30
- module.api = createMockApiObject(jest, module.api, mocks);
31
- return module
32
- }
33
-
34
-
35
- describe(`${definition.moduleName} Module Tests`, () => {
36
- let module, authUrl;
37
- beforeAll(async () => {
38
- await connectToDatabase();
39
- module = await getModule();
40
- });
41
-
42
- afterAll(async () => {
43
- await disconnectFromDatabase();
44
- });
45
-
46
- let requirements, authCallbackParams;
47
- if (definition.API.requesterType === ModuleConstants.authType.oauth2) {
48
- authCallbackParams = mocks.authorizeResponse || mocks.authorizeParams;
49
- describe('getAuthorizationRequirements() test', () => {
50
- it('should return auth requirements', async () => {
51
- requirements = module.getAuthorizationRequirements();
52
- expect(requirements).toBeDefined();
53
- expect(requirements.type).toEqual(ModuleConstants.authType.oauth2);
54
- expect(requirements.url).toBeDefined();
55
- authUrl = requirements.url;
56
- });
57
- });
58
- } else if (definition.API.requesterType === ModuleConstants.authType.basic) {
59
- // could also confirm authCallbackParams against the auth requirements
60
- authCallbackParams = mocks.authorizeParams
61
- describe('getAuthorizationRequirements() test', () => {
62
- it('should return auth requirements', async () => {
63
- requirements = module.getAuthorizationRequirements();
64
- expect(requirements).toBeDefined();
65
- expect(requirements.type).toEqual(ModuleConstants.authType.basic);
66
- });
67
- });
68
- } else if (definition.API.requesterType === ModuleConstants.authType.apiKey) {
69
- // could also confirm authCallbackParams against the auth requirements
70
- authCallbackParams = mocks.authorizeParams
71
- describe('getAuthorizationRequirements() test', () => {
72
- it('should return auth requirements', async () => {
73
- requirements = module.getAuthorizationRequirements();
74
- expect(requirements).toBeDefined();
75
- expect(requirements.type).toEqual(ModuleConstants.authType.apiKey);
76
- });
77
- });
78
- }
79
-
80
- describe('Authorization requests', () => {
81
- let firstRes;
82
- it('processAuthorizationCallback()', async () => {
83
- firstRes = await module.processAuthorizationCallback(authCallbackParams);
84
- expect(firstRes).toBeDefined();
85
- expect(firstRes.entity_id).toBeDefined();
86
- expect(firstRes.credential_id).toBeDefined();
87
- });
88
- it('retrieves existing entity on subsequent calls', async () => {
89
- const res = await module.processAuthorizationCallback(authCallbackParams);
90
- expect(res).toEqual(firstRes);
91
- });
92
- });
93
-
94
- describe('Test credential retrieval and module instantiation', () => {
95
- it('retrieve by entity id', async () => {
96
- const newModule = await getModule({
97
- userId: module.userId,
98
- entityId: module.entity.id
99
- });
100
- expect(newModule).toBeDefined();
101
- expect(newModule.entity).toBeDefined();
102
- expect(newModule.credential).toBeDefined();
103
- expect(await newModule.testAuth()).toBeTruthy();
104
-
105
- });
106
-
107
- it('retrieve by credential id', async () => {
108
- const newModule = await getModule({
109
- userId: module.userId,
110
- credentialId: module.credential.id
111
- });
112
- expect(newModule).toBeDefined();
113
- expect(newModule.credential).toBeDefined();
114
- expect(await newModule.testAuth()).toBeTruthy();
115
- });
116
- });
117
- });
118
- }
119
-
120
- module.exports = { testAutherDefinition }
121
-
File without changes
@@ -1,3 +0,0 @@
1
- require('dotenv').config();
2
- const { globalSetup } = require('@friggframework/devtools');
3
- module.exports = globalSetup;
@@ -1,2 +0,0 @@
1
- const { globalTeardown } = require('@friggframework/devtools');
2
- module.exports = globalTeardown;
package/syncs/README.md DELETED
@@ -1,3 +0,0 @@
1
- # syncs
2
-
3
- This package exports the `syncs` classes, models, and functions used in [Frigg](https://friggframework.org). You can find its documentation [on Frigg's website](https://docs.friggframework.org/packages/syncs).
package/syncs/bump3.txt DELETED
File without changes
@@ -1,5 +0,0 @@
1
- module.exports = async () => {
2
- return {
3
- preset: "@friggframework/test-environment",
4
- };
5
- };
@@ -1,49 +0,0 @@
1
- # v0.2.0 (Wed Sep 06 2023)
2
-
3
- #### 🐛 Bug Fix
4
-
5
- - Bump independent versions \[skip ci\] ([@seanspeaks](https://github.com/seanspeaks))
6
-
7
- #### Authors: 1
8
-
9
- - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
10
-
11
- ---
12
-
13
- # v0.1.2 (Thu Aug 03 2023)
14
-
15
- #### 🐛 Bug Fix
16
-
17
- - Bump independent versions \[skip ci\] ([@seanspeaks](https://github.com/seanspeaks))
18
-
19
- #### Authors: 1
20
-
21
- - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
22
-
23
- ---
24
-
25
- # v0.1.1 (Wed Jul 05 2023)
26
-
27
- :tada: This release contains work from new contributors! :tada:
28
-
29
- Thanks for all your work!
30
-
31
- :heart: Leonardo Ferreira ([@leofmds](https://github.com/leofmds))
32
-
33
- :heart: Roberto Oliveros ([@roboli](https://github.com/roboli))
34
-
35
- :heart: Charaf ([@Fibii](https://github.com/Fibii))
36
-
37
- #### 🐛 Bug Fix
38
-
39
- - Add publicshConfig: public and changed license to MIT in types package [#195](https://github.com/friggframework/frigg/pull/195) ([@leofmds](https://github.com/leofmds))
40
- - Add publicshConfig: public and changed license to MIT in types package ([@leofmds](https://github.com/leofmds))
41
- - Feature/lef 270 list organizations sites [#192](https://github.com/friggframework/frigg/pull/192) ([@roboli](https://github.com/roboli))
42
- - add types [#165](https://github.com/friggframework/frigg/pull/165) ([@Fibii](https://github.com/Fibii))
43
- - add types ([@Fibii](https://github.com/Fibii))
44
-
45
- #### Authors: 3
46
-
47
- - Charaf ([@Fibii](https://github.com/Fibii))
48
- - Leonardo Ferreira ([@leofmds](https://github.com/leofmds))
49
- - Roberto Oliveros ([@roboli](https://github.com/roboli))
package/types/README.md DELETED
@@ -1,24 +0,0 @@
1
- # types
2
-
3
- This package exports the `types` used in [Frigg](https://friggframework.org) packages.
4
-
5
-
6
- ### Get Started
7
- Install the package with `npm` or `yarn`:
8
-
9
- ```bash
10
- npm install @friggframework/types
11
- ```
12
- or
13
- ```bash
14
- yarn add @friggframework/types
15
- ```
16
-
17
- Make sure to reference the types in your `tsconfig.json`
18
-
19
- ```json
20
- "typeRoots": [
21
- "./node_modules/@types",
22
- "./node_modules/@friggframework/types"
23
- ]
24
- ```
package/types/bump3.txt DELETED
File without changes
File without changes