@friggframework/core 0.2.31-v1-alpha-package-update.0 → 1.0.1-v1-alpha-package-update.0
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/assertions/CHANGELOG.md +87 -0
- package/assertions/LICENSE.md +9 -0
- package/assertions/README.md +3 -0
- package/assertions/bump.txt +1 -0
- package/assertions/get.js +139 -0
- package/assertions/index.js +19 -0
- package/assertions/is-equal.js +17 -0
- package/associations/LICENSE.md +9 -0
- package/associations/README.md +3 -0
- package/associations/association.js +78 -0
- package/associations/bump3.txt +0 -0
- package/associations/jest.config.js +5 -0
- package/associations/model.js +54 -0
- package/bump.txt +0 -0
- package/core/.eslintrc.json +3 -0
- package/{Delegate.js → core/Delegate.js} +1 -1
- package/core/LICENSE.md +9 -0
- package/{Worker.js → core/Worker.js} +2 -2
- package/core/bump3.txt +0 -0
- package/{create-handler.js → core/create-handler.js} +2 -2
- package/core/index.js +6 -0
- package/core/jest.config.js +5 -0
- package/database/.eslintrc.json +3 -0
- package/database/CHANGELOG.md +97 -0
- package/database/LICENSE.md +9 -0
- package/database/README.md +3 -0
- package/database/bump3.txt +0 -0
- package/database/index.js +17 -0
- package/database/jest.config.js +5 -0
- package/database/models/IndividualUser.js +76 -0
- package/database/models/OrganizationUser.js +29 -0
- package/database/models/State.js +9 -0
- package/database/models/Token.js +70 -0
- package/database/models/UserModel.js +7 -0
- package/database/mongo.js +45 -0
- package/database/mongoose.js +5 -0
- package/encrypt/.eslintrc.json +3 -0
- package/encrypt/CHANGELOG.md +65 -0
- package/encrypt/Cryptor.js +236 -0
- package/encrypt/Cryptor.test.js +32 -0
- package/encrypt/LICENSE.md +9 -0
- package/encrypt/README.md +3 -0
- package/encrypt/aes.js +27 -0
- package/encrypt/bump3.txt +0 -0
- package/encrypt/encrypt.js +124 -0
- package/encrypt/encrypt.test.js +1068 -0
- package/encrypt/index.js +3 -0
- package/encrypt/jest.config.js +5 -0
- package/encrypt/test-encrypt.js +107 -0
- package/errors/.eslintrc.json +3 -0
- package/errors/CHANGELOG.md +44 -0
- package/errors/LICENSE.md +9 -0
- package/errors/README.md +3 -0
- package/errors/base-error.js +23 -0
- package/errors/base-error.test.js +32 -0
- package/errors/bump.txt +1 -0
- package/errors/bump3.txt +0 -0
- package/errors/fetch-error.js +72 -0
- package/errors/fetch-error.test.js +79 -0
- package/errors/halt-error.js +10 -0
- package/errors/halt-error.test.js +11 -0
- package/errors/index.js +15 -0
- package/errors/jest.config.js +5 -0
- package/errors/validation-errors.js +23 -0
- package/errors/validation-errors.test.js +120 -0
- package/eslint-config/.eslintrc.json +3 -0
- package/eslint-config/CHANGELOG.md +17 -0
- package/eslint-config/LICENSE.md +9 -0
- package/eslint-config/README.md +3 -0
- package/eslint-config/bump3.txt +0 -0
- package/eslint-config/index.js +38 -0
- package/index.js +29 -5
- package/integrations/.eslintrc.json +3 -0
- package/integrations/CHANGELOG.md +244 -0
- package/integrations/LICENSE.md +9 -0
- package/integrations/README.md +3 -0
- package/integrations/bump3.txt +0 -0
- package/integrations/create-frigg-backend.js +31 -0
- package/integrations/index.js +19 -0
- package/integrations/integration-base.js +162 -0
- package/integrations/integration-factory.js +166 -0
- package/integrations/integration-mapping.js +43 -0
- package/integrations/integration-model.js +42 -0
- package/integrations/integration-router.js +367 -0
- package/integrations/integration-user.js +144 -0
- package/integrations/jest-setup.js +2 -0
- package/integrations/jest-teardown.js +2 -0
- package/integrations/jest.config.js +12 -0
- package/integrations/options.js +54 -0
- package/integrations/test/integration-base.test.js +143 -0
- package/lambda/README.md +3 -0
- package/lambda/TimeoutCatcher.js +43 -0
- package/lambda/TimeoutCatcher.test.js +68 -0
- package/lambda/bump3.txt +0 -0
- package/lambda/index.js +3 -0
- package/lambda/jest.config.js +3 -0
- package/logs/.eslintrc.json +3 -0
- package/logs/CHANGELOG.md +57 -0
- package/logs/LICENSE.md +9 -0
- package/logs/README.md +3 -0
- package/logs/bump3.txt +0 -0
- package/logs/index.js +7 -0
- package/logs/jest.config.js +5 -0
- package/logs/logger.js +69 -0
- package/logs/logger.test.js +76 -0
- package/migrations/README.md +3 -0
- package/migrations/bump3.txt +0 -0
- package/migrations/index.js +9 -0
- package/migrations/jest.config.js +3 -0
- package/migrations/manager.js +33 -0
- package/migrations/migrator.js +170 -0
- package/migrations/options.js +28 -0
- package/module-plugin/.eslintrc.json +3 -0
- package/module-plugin/CHANGELOG.md +224 -0
- package/module-plugin/LICENSE.md +9 -0
- package/module-plugin/ModuleConstants.js +10 -0
- package/module-plugin/README.md +3 -0
- package/module-plugin/auther.js +342 -0
- package/module-plugin/bump3.txt +0 -0
- package/module-plugin/credential.js +22 -0
- package/module-plugin/entity-manager.js +70 -0
- package/module-plugin/entity.js +46 -0
- package/module-plugin/index.js +25 -0
- package/module-plugin/jest-setup.js +3 -0
- package/module-plugin/jest-teardown.js +2 -0
- package/module-plugin/jest.config.js +20 -0
- package/module-plugin/manager.js +169 -0
- package/module-plugin/module-factory.js +60 -0
- package/module-plugin/requester/api-key.js +36 -0
- package/module-plugin/requester/basic.js +43 -0
- package/module-plugin/requester/oauth-2.js +219 -0
- package/module-plugin/requester/requester.js +150 -0
- package/module-plugin/requester/requester.test.js +28 -0
- package/module-plugin/test/auther.test.js +97 -0
- package/module-plugin/test/mock-api/api.js +29 -0
- package/module-plugin/test/mock-api/definition.js +48 -0
- package/module-plugin/test/mock-api/mocks/hubspot.js +43 -0
- package/package.json +37 -12
- package/prettier-config/.eslintrc.json +3 -0
- package/prettier-config/CHANGELOG.md +17 -0
- package/prettier-config/LICENSE.md +9 -0
- package/prettier-config/README.md +3 -0
- package/prettier-config/bump3.txt +0 -0
- package/prettier-config/index.js +6 -0
- package/syncs/README.md +3 -0
- package/syncs/bump3.txt +0 -0
- package/syncs/jest.config.js +5 -0
- package/syncs/manager.js +466 -0
- package/syncs/model.js +62 -0
- package/syncs/sync.js +114 -0
- package/test-environment/.eslintrc.json +3 -0
- package/test-environment/Authenticator.js +73 -0
- package/test-environment/CHANGELOG.md +46 -0
- package/test-environment/LICENSE.md +9 -0
- package/test-environment/README.md +3 -0
- package/test-environment/auther-definition-method-tester.js +45 -0
- package/test-environment/auther-definition-tester.js +104 -0
- package/test-environment/bump3.txt +0 -0
- package/test-environment/index.js +24 -0
- package/test-environment/integration-validator.js +2 -0
- package/test-environment/jest-global-setup.js +6 -0
- package/test-environment/jest-global-teardown.js +3 -0
- package/test-environment/jest-preset.js +14 -0
- package/test-environment/mock-api-readme.md +102 -0
- package/test-environment/mock-api.js +284 -0
- package/test-environment/mock-integration.js +82 -0
- package/test-environment/mongodb.js +22 -0
- package/test-environment/override-environment.js +11 -0
- package/types/CHANGELOG.md +49 -0
- package/types/README.md +24 -0
- package/types/assertions/index.d.ts +83 -0
- package/types/associations/index.d.ts +74 -0
- package/types/bump3.txt +0 -0
- package/types/core/index.d.ts +54 -0
- package/types/database/index.d.ts +3 -0
- package/types/encrypt/index.d.ts +5 -0
- package/types/errors/index.d.ts +66 -0
- package/types/eslint-config/index.d.ts +41 -0
- package/types/index.d.ts +14 -0
- package/types/integrations/index.d.ts +191 -0
- package/types/lambda/index.d.ts +31 -0
- package/types/logs/index.d.ts +5 -0
- package/types/module-plugin/index.d.ts +293 -0
- package/types/prettier-config/index.d.ts +6 -0
- package/types/syncs/index.d.ts +128 -0
- package/types/test-environment/index.d.ts +17 -0
- package/types/tsconfig.json +103 -0
- /package/{.eslintrc.json → assertions/.eslintrc.json} +0 -0
- /package/{bump3.txt → assertions/bump3.txt} +0 -0
- /package/{jest.config.js → assertions/jest.config.js} +0 -0
- /package/{CHANGELOG.md → core/CHANGELOG.md} +0 -0
- /package/{README.md → core/README.md} +0 -0
- /package/{load-installed-modules.js → core/load-installed-modules.js} +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
const { debug, initDebugLog, flushDebugLog } = require('./logger');
|
|
2
|
+
const sinon = require('sinon');
|
|
3
|
+
const {
|
|
4
|
+
overrideEnvironment,
|
|
5
|
+
restoreEnvironment,
|
|
6
|
+
} = require('../test-environment');
|
|
7
|
+
|
|
8
|
+
/* eslint-disable no-console */
|
|
9
|
+
|
|
10
|
+
describe('Logger', () => {
|
|
11
|
+
beforeEach(() => {
|
|
12
|
+
sinon.stub(console, 'debug');
|
|
13
|
+
sinon.stub(console, 'error');
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
afterEach(() => {
|
|
17
|
+
console.debug.restore();
|
|
18
|
+
console.error.restore();
|
|
19
|
+
restoreEnvironment();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('runs', () => {
|
|
23
|
+
initDebugLog('Test Event', { test: true });
|
|
24
|
+
debug('Add a message', 'or two', { or: 3 });
|
|
25
|
+
flushDebugLog(new Error());
|
|
26
|
+
|
|
27
|
+
expect(console.debug).toHaveProperty('callCount', 2);
|
|
28
|
+
expect(console.error).toHaveProperty('callCount', 1);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it('logs immediately when environment variable set', () => {
|
|
32
|
+
overrideEnvironment({ DEBUG_VERBOSE: '1' });
|
|
33
|
+
|
|
34
|
+
debug('Add a message', 'or two', { or: 3 });
|
|
35
|
+
debug('And another');
|
|
36
|
+
|
|
37
|
+
expect(console.debug).toHaveProperty('callCount', 2);
|
|
38
|
+
expect(console.error).toHaveProperty('callCount', 0);
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
it('is resilient to missing parameters', () => {
|
|
42
|
+
initDebugLog();
|
|
43
|
+
debug();
|
|
44
|
+
flushDebugLog();
|
|
45
|
+
|
|
46
|
+
expect(console.debug).toHaveProperty('callCount', 0);
|
|
47
|
+
expect(console.error).toHaveProperty('callCount', 1);
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
it('outputs parent errors', () => {
|
|
51
|
+
initDebugLog();
|
|
52
|
+
|
|
53
|
+
const error = new Error();
|
|
54
|
+
error.cause = new Error();
|
|
55
|
+
error.cause.cause = new Error();
|
|
56
|
+
error.cause.cause.cause = new Error();
|
|
57
|
+
|
|
58
|
+
flushDebugLog(error);
|
|
59
|
+
|
|
60
|
+
expect(console.debug).toHaveProperty('callCount', 0);
|
|
61
|
+
expect(console.error).toHaveProperty('callCount', 7); // 1 + 2 for each cause
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
it('adds a debug message if more than 1 error encountered', () => {
|
|
65
|
+
initDebugLog();
|
|
66
|
+
flushDebugLog(new Error());
|
|
67
|
+
|
|
68
|
+
expect(console.debug).toHaveProperty('callCount', 0);
|
|
69
|
+
expect(console.error).toHaveProperty('callCount', 1);
|
|
70
|
+
|
|
71
|
+
flushDebugLog(new Error());
|
|
72
|
+
|
|
73
|
+
expect(console.debug).toHaveProperty('callCount', 1);
|
|
74
|
+
expect(console.error).toHaveProperty('callCount', 2);
|
|
75
|
+
});
|
|
76
|
+
});
|
|
File without changes
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const hubspotMigrator = require("./HubSpotMigrator");
|
|
2
|
+
const salesforceMigrator = require("./SalesforceMigrator");
|
|
3
|
+
|
|
4
|
+
class MigrationManager {
|
|
5
|
+
static migratorClasses = [hubspotMigrator, salesforceMigrator];
|
|
6
|
+
|
|
7
|
+
static integrationTypes = MigrationManager.migratorClasses.map(
|
|
8
|
+
(MigratorClass) => MigratorClass.getName()
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
constructor() {
|
|
12
|
+
// ...
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
static async getMigrator(params) {
|
|
16
|
+
const { integrationType, fromVersion, toVersion } = params;
|
|
17
|
+
const indexOfMigrator =
|
|
18
|
+
MigrationManager.integrationTypes.indexOf(integrationType);
|
|
19
|
+
if (indexOfMigrator < 0) {
|
|
20
|
+
throw new Error(
|
|
21
|
+
`Error: Invalid integration type of ${
|
|
22
|
+
params.integrationType
|
|
23
|
+
}, options are ${MigrationManager.integrationTypes.join(", ")}`
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
const instance = await MigrationManager.migratorClasses[
|
|
27
|
+
indexOfMigrator
|
|
28
|
+
].getInstance();
|
|
29
|
+
return instance;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
module.exports = MigrationManager;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
const { Delegate } = require('../core');
|
|
2
|
+
const { Integration } = require('../integrations');
|
|
3
|
+
const { get } = require('../assertions');
|
|
4
|
+
|
|
5
|
+
class Migrator extends Delegate {
|
|
6
|
+
constructor(params) {
|
|
7
|
+
super(params);
|
|
8
|
+
this.options = [];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
static getInstance() {
|
|
12
|
+
const instance = new this();
|
|
13
|
+
return instance;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
static getName() {
|
|
17
|
+
return this.integrationManager.getName();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
async migrate(params) {
|
|
21
|
+
try {
|
|
22
|
+
const fromVersion = get(params, "fromVersion", null);
|
|
23
|
+
const toVersion = get(params, "toVersion");
|
|
24
|
+
|
|
25
|
+
console.log("Migrate called. First validating whether it can be done.");
|
|
26
|
+
if (
|
|
27
|
+
!this.integrationManager.Config.supportedVersions.some(
|
|
28
|
+
(version) => version === toVersion
|
|
29
|
+
)
|
|
30
|
+
) {
|
|
31
|
+
return this.throwException(
|
|
32
|
+
`Attempting to migrate to an unsupported version. Current supported versions are ${this.integrationManager.Config.supportedVersions.join(
|
|
33
|
+
", "
|
|
34
|
+
)}`,
|
|
35
|
+
"Migration Error"
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
const migrationOption = this.options
|
|
39
|
+
.map((val) => val.get())
|
|
40
|
+
.find(
|
|
41
|
+
(option) =>
|
|
42
|
+
option.fromVersion === fromVersion && option.toVersion === toVersion
|
|
43
|
+
);
|
|
44
|
+
if (!migrationOption)
|
|
45
|
+
return this.throwException(
|
|
46
|
+
`No migration option found for version ${fromVersion} to ${toVersion}`,
|
|
47
|
+
"Migration Error"
|
|
48
|
+
);
|
|
49
|
+
// Run all general functions
|
|
50
|
+
for (const generalFunct of migrationOption.generalFunctions) {
|
|
51
|
+
console.log("Running general functions first");
|
|
52
|
+
const res = await generalFunct();
|
|
53
|
+
console.log(res);
|
|
54
|
+
}
|
|
55
|
+
// Get all integration records based on fromVersion
|
|
56
|
+
const filter = {
|
|
57
|
+
"config.type": this.integrationManager.getName(),
|
|
58
|
+
};
|
|
59
|
+
console.log(
|
|
60
|
+
`Retrieved all ${this.integrationManager.getName()} integrations`
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
const integrations = await Integration.find(filter);
|
|
64
|
+
const filteredIntegrations = integrations.filter((int) => {
|
|
65
|
+
const isNotToVersion = int.version !== toVersion;
|
|
66
|
+
let isFromVersion = true;
|
|
67
|
+
if (fromVersion && fromVersion !== "*") {
|
|
68
|
+
isFromVersion = int.version === fromVersion;
|
|
69
|
+
}
|
|
70
|
+
return isNotToVersion && isFromVersion;
|
|
71
|
+
});
|
|
72
|
+
const results = {
|
|
73
|
+
integrationType: this.integrationManager.getName(),
|
|
74
|
+
totalIntegrations: integrations.length,
|
|
75
|
+
versionReport: {
|
|
76
|
+
startVersions: {},
|
|
77
|
+
endVersions: {},
|
|
78
|
+
},
|
|
79
|
+
statusReport: {
|
|
80
|
+
startStatuses: {},
|
|
81
|
+
endStatuses: {},
|
|
82
|
+
},
|
|
83
|
+
toMigrate: filteredIntegrations.length,
|
|
84
|
+
migrationResults: {
|
|
85
|
+
success: 0,
|
|
86
|
+
needsConfig: 0,
|
|
87
|
+
error: 0,
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
for (const integration of integrations) {
|
|
92
|
+
if (results.versionReport.startVersions[integration.version]) {
|
|
93
|
+
results.versionReport.startVersions[integration.version] += 1;
|
|
94
|
+
} else {
|
|
95
|
+
results.versionReport.startVersions[integration.version] = 1;
|
|
96
|
+
}
|
|
97
|
+
if (results.statusReport.startStatuses[integration.status]) {
|
|
98
|
+
results.statusReport.startStatuses[integration.status] += 1;
|
|
99
|
+
} else {
|
|
100
|
+
results.statusReport.startStatuses[integration.status] = 1;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Instantiate the integrationManager based on integration ID, run all specific functions for each integration
|
|
105
|
+
for (const integration of filteredIntegrations) {
|
|
106
|
+
let integrationManagerInstance;
|
|
107
|
+
try {
|
|
108
|
+
integrationManagerInstance =
|
|
109
|
+
await this.integrationManager.getInstanceFromIntegrationId({
|
|
110
|
+
integrationId: integration.id,
|
|
111
|
+
userId: integration.user.id,
|
|
112
|
+
});
|
|
113
|
+
} catch (e) {
|
|
114
|
+
console.log(e);
|
|
115
|
+
}
|
|
116
|
+
// Test Auth
|
|
117
|
+
if (integrationManagerInstance) {
|
|
118
|
+
await integrationManagerInstance.testAuth();
|
|
119
|
+
|
|
120
|
+
// Run functions
|
|
121
|
+
if (integrationManagerInstance.integration.status !== "ERROR") {
|
|
122
|
+
for (const func of migrationOption.perIntegrationFunctions) {
|
|
123
|
+
const res = await func(integrationManagerInstance);
|
|
124
|
+
console.log(res);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Validate Config
|
|
129
|
+
if (integrationManagerInstance.integration.status !== "ERROR") {
|
|
130
|
+
await integrationManagerInstance.validateConfig();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Add to results tally
|
|
134
|
+
const currentStatus = integrationManagerInstance.integration.status;
|
|
135
|
+
if (currentStatus === "ENABLED") {
|
|
136
|
+
integrationManagerInstance.integration.version = toVersion;
|
|
137
|
+
await integrationManagerInstance.integration.save();
|
|
138
|
+
results.migrationResults.success += 1;
|
|
139
|
+
}
|
|
140
|
+
if (currentStatus === "NEEDS_CONFIG") {
|
|
141
|
+
integrationManagerInstance.integration.version = toVersion;
|
|
142
|
+
await integrationManagerInstance.integration.save();
|
|
143
|
+
results.migrationResults.needsConfig += 1;
|
|
144
|
+
}
|
|
145
|
+
if (currentStatus === "ERROR") results.migrationResults.error += 1;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const freshRetrieve = await Integration.find(filter);
|
|
150
|
+
for (const int of freshRetrieve) {
|
|
151
|
+
if (results.versionReport.endVersions[int.version]) {
|
|
152
|
+
results.versionReport.endVersions[int.version] += 1;
|
|
153
|
+
} else {
|
|
154
|
+
results.versionReport.endVersions[int.version] = 1;
|
|
155
|
+
}
|
|
156
|
+
if (results.statusReport.endStatuses[int.status]) {
|
|
157
|
+
results.statusReport.endStatuses[int.status] += 1;
|
|
158
|
+
} else {
|
|
159
|
+
results.statusReport.endStatuses[int.status] = 1;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return results;
|
|
164
|
+
} catch (e) {
|
|
165
|
+
this.throwException(e.message, "Migrate Error");
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
module.exports = Migrator;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const IntegrationManager = require('../integrations');
|
|
2
|
+
const { get, getAndVerifyType } = require('../assertions');
|
|
3
|
+
|
|
4
|
+
class Options {
|
|
5
|
+
constructor(params) {
|
|
6
|
+
this.integrationManager = getAndVerifyType(
|
|
7
|
+
params,
|
|
8
|
+
"integrationManager",
|
|
9
|
+
IntegrationManager
|
|
10
|
+
);
|
|
11
|
+
this.fromVersion = get(params, "fromVersion");
|
|
12
|
+
this.toVersion = get(params, "toVersion");
|
|
13
|
+
this.generalFunctions = get(params, "generalFunctions", []);
|
|
14
|
+
this.perIntegrationFunctions = get(params, "perIntegrationFunctions", []);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
get() {
|
|
18
|
+
return {
|
|
19
|
+
type: this.integrationManager.getName(),
|
|
20
|
+
fromVersion: this.fromVersion,
|
|
21
|
+
toVersion: this.toVersion,
|
|
22
|
+
generalFunctions: this.generalFunctions,
|
|
23
|
+
perIntegrationFunctions: this.perIntegrationFunctions,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
module.exports = Options;
|
|
@@ -0,0 +1,224 @@
|
|
|
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))
|
|
@@ -0,0 +1,9 @@
|
|
|
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.
|