@friggframework/core 0.2.31-v1-alpha-package-update.0 → 1.0.1-canary.278.7b20420.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.
Files changed (156) hide show
  1. package/assertions/CHANGELOG.md +87 -0
  2. package/assertions/LICENSE.md +9 -0
  3. package/assertions/README.md +3 -0
  4. package/assertions/bump.txt +1 -0
  5. package/assertions/get.js +139 -0
  6. package/assertions/index.js +19 -0
  7. package/assertions/is-equal.js +17 -0
  8. package/associations/LICENSE.md +9 -0
  9. package/associations/README.md +3 -0
  10. package/associations/association.js +78 -0
  11. package/associations/bump3.txt +0 -0
  12. package/associations/jest.config.js +5 -0
  13. package/associations/model.js +54 -0
  14. package/bump0.txt +1 -0
  15. package/core/.eslintrc.json +3 -0
  16. package/{Delegate.js → core/Delegate.js} +1 -1
  17. package/core/LICENSE.md +9 -0
  18. package/{Worker.js → core/Worker.js} +2 -2
  19. package/core/bump3.txt +0 -0
  20. package/{create-handler.js → core/create-handler.js} +2 -2
  21. package/core/index.js +6 -0
  22. package/core/jest.config.js +5 -0
  23. package/database/.eslintrc.json +3 -0
  24. package/database/CHANGELOG.md +97 -0
  25. package/database/LICENSE.md +9 -0
  26. package/database/README.md +3 -0
  27. package/database/bump3.txt +0 -0
  28. package/database/index.js +23 -0
  29. package/database/jest.config.js +5 -0
  30. package/database/models/IndividualUser.js +76 -0
  31. package/database/models/OrganizationUser.js +29 -0
  32. package/database/models/State.js +9 -0
  33. package/database/models/Token.js +70 -0
  34. package/database/models/UserModel.js +7 -0
  35. package/database/mongo.js +45 -0
  36. package/database/mongoose.js +5 -0
  37. package/encrypt/.eslintrc.json +3 -0
  38. package/encrypt/CHANGELOG.md +78 -0
  39. package/encrypt/Cryptor.js +236 -0
  40. package/encrypt/Cryptor.test.js +32 -0
  41. package/encrypt/LICENSE.md +9 -0
  42. package/encrypt/README.md +13 -0
  43. package/encrypt/aes.js +27 -0
  44. package/encrypt/bump3.txt +0 -0
  45. package/encrypt/encrypt.js +132 -0
  46. package/encrypt/encrypt.test.js +1069 -0
  47. package/encrypt/index.js +4 -0
  48. package/encrypt/jest.config.js +5 -0
  49. package/encrypt/test-encrypt.js +107 -0
  50. package/errors/.eslintrc.json +3 -0
  51. package/errors/CHANGELOG.md +44 -0
  52. package/errors/LICENSE.md +9 -0
  53. package/errors/README.md +3 -0
  54. package/errors/base-error.js +23 -0
  55. package/errors/base-error.test.js +32 -0
  56. package/errors/bump.txt +1 -0
  57. package/errors/bump3.txt +0 -0
  58. package/errors/fetch-error.js +76 -0
  59. package/errors/fetch-error.test.js +79 -0
  60. package/errors/halt-error.js +10 -0
  61. package/errors/halt-error.test.js +11 -0
  62. package/errors/index.js +15 -0
  63. package/errors/jest.config.js +5 -0
  64. package/errors/validation-errors.js +23 -0
  65. package/errors/validation-errors.test.js +120 -0
  66. package/index.js +123 -5
  67. package/integrations/.eslintrc.json +3 -0
  68. package/integrations/CHANGELOG.md +244 -0
  69. package/integrations/LICENSE.md +9 -0
  70. package/integrations/README.md +3 -0
  71. package/integrations/bump3.txt +0 -0
  72. package/integrations/create-frigg-backend.js +31 -0
  73. package/integrations/index.js +19 -0
  74. package/integrations/integration-base.js +162 -0
  75. package/integrations/integration-factory.js +166 -0
  76. package/integrations/integration-mapping.js +43 -0
  77. package/integrations/integration-model.js +42 -0
  78. package/integrations/integration-router.js +367 -0
  79. package/integrations/integration-user.js +144 -0
  80. package/integrations/jest-setup.js +2 -0
  81. package/integrations/jest-teardown.js +2 -0
  82. package/integrations/jest.config.js +12 -0
  83. package/integrations/options.js +54 -0
  84. package/integrations/test/integration-base.test.js +143 -0
  85. package/lambda/README.md +3 -0
  86. package/lambda/TimeoutCatcher.js +43 -0
  87. package/lambda/TimeoutCatcher.test.js +68 -0
  88. package/lambda/bump3.txt +0 -0
  89. package/lambda/index.js +3 -0
  90. package/lambda/jest.config.js +3 -0
  91. package/logs/.eslintrc.json +3 -0
  92. package/logs/CHANGELOG.md +57 -0
  93. package/logs/LICENSE.md +9 -0
  94. package/logs/README.md +3 -0
  95. package/logs/bump3.txt +0 -0
  96. package/logs/index.js +7 -0
  97. package/logs/jest.config.js +5 -0
  98. package/logs/logger.js +69 -0
  99. package/logs/logger.test.js +76 -0
  100. package/module-plugin/.eslintrc.json +3 -0
  101. package/module-plugin/CHANGELOG.md +224 -0
  102. package/module-plugin/LICENSE.md +9 -0
  103. package/module-plugin/ModuleConstants.js +10 -0
  104. package/module-plugin/README.md +3 -0
  105. package/module-plugin/auther.js +342 -0
  106. package/module-plugin/bump3.txt +0 -0
  107. package/module-plugin/credential.js +22 -0
  108. package/module-plugin/entity-manager.js +70 -0
  109. package/module-plugin/entity.js +46 -0
  110. package/module-plugin/index.js +25 -0
  111. package/module-plugin/jest-setup.js +3 -0
  112. package/module-plugin/jest-teardown.js +2 -0
  113. package/module-plugin/jest.config.js +20 -0
  114. package/module-plugin/manager.js +169 -0
  115. package/module-plugin/module-factory.js +60 -0
  116. package/module-plugin/requester/api-key.js +36 -0
  117. package/module-plugin/requester/basic.js +43 -0
  118. package/module-plugin/requester/oauth-2.js +219 -0
  119. package/module-plugin/requester/requester.js +151 -0
  120. package/module-plugin/requester/requester.test.js +28 -0
  121. package/module-plugin/test/auther.test.js +97 -0
  122. package/module-plugin/test/mock-api/api.js +29 -0
  123. package/module-plugin/test/mock-api/definition.js +48 -0
  124. package/module-plugin/test/mock-api/mocks/hubspot.js +43 -0
  125. package/package.json +28 -12
  126. package/syncs/README.md +3 -0
  127. package/syncs/bump3.txt +0 -0
  128. package/syncs/jest.config.js +5 -0
  129. package/syncs/manager.js +464 -0
  130. package/syncs/model.js +62 -0
  131. package/syncs/sync.js +114 -0
  132. package/types/CHANGELOG.md +49 -0
  133. package/types/README.md +24 -0
  134. package/types/assertions/index.d.ts +83 -0
  135. package/types/associations/index.d.ts +74 -0
  136. package/types/bump3.txt +0 -0
  137. package/types/core/index.d.ts +54 -0
  138. package/types/database/index.d.ts +3 -0
  139. package/types/encrypt/index.d.ts +5 -0
  140. package/types/errors/index.d.ts +66 -0
  141. package/types/eslint-config/index.d.ts +41 -0
  142. package/types/index.d.ts +14 -0
  143. package/types/integrations/index.d.ts +191 -0
  144. package/types/lambda/index.d.ts +31 -0
  145. package/types/logs/index.d.ts +5 -0
  146. package/types/module-plugin/index.d.ts +293 -0
  147. package/types/prettier-config/index.d.ts +6 -0
  148. package/types/syncs/index.d.ts +128 -0
  149. package/types/test-environment/index.d.ts +17 -0
  150. package/types/tsconfig.json +103 -0
  151. /package/{.eslintrc.json → assertions/.eslintrc.json} +0 -0
  152. /package/{bump3.txt → assertions/bump3.txt} +0 -0
  153. /package/{jest.config.js → assertions/jest.config.js} +0 -0
  154. /package/{CHANGELOG.md → core/CHANGELOG.md} +0 -0
  155. /package/{README.md → core/README.md} +0 -0
  156. /package/{load-installed-modules.js → core/load-installed-modules.js} +0 -0
@@ -0,0 +1,293 @@
1
+ declare module "@friggframework/module-plugin" {
2
+ import { Model } from "mongoose";
3
+ import { Delegate, IFriggDelegate } from "@friggframework/core";
4
+
5
+ export class Credential extends Model {
6
+ userId: string;
7
+ auth_is_valid: boolean;
8
+ subType: string;
9
+ externalId: string;
10
+ }
11
+
12
+ export class EntityManager implements IFriggEntityManager {
13
+ static primaryEntityClass: any;
14
+ static entityManagerClasses: any[];
15
+ static entityTypes: string[];
16
+ static getEntitiesForUser(userId: string): Promise<any[]>;
17
+ static checkIsValidType(entityType: string): boolean;
18
+ static getEntityManagerClass(entityType?: string): any;
19
+
20
+ static getEntityManagerInstanceFromEntityId(
21
+ entityId: string,
22
+ userId: string
23
+ ): Promise<any>;
24
+ }
25
+
26
+ interface IFriggEntityManager {}
27
+
28
+ export class Entity extends Model {
29
+ credentialId: string;
30
+ subType: string;
31
+ userId: string;
32
+ name: string;
33
+ externalId: string;
34
+ }
35
+
36
+ export type MappedEntity = Entity & { id: string; type: any };
37
+ export class ModuleManager extends Delegate implements IFriggModuleManager {
38
+ static Entity: Entity;
39
+ static Credential: Credential;
40
+
41
+ constructor(params: { userId: string });
42
+
43
+ static getName(): any;
44
+ static getInstance(params: any): Promise<any>;
45
+ static getEntitiesForUserId(userId: string): Promise<MappedEntity[]>;
46
+
47
+ batchCreateSyncObjects(syncObjects: any, syncManager: any): Promise<any>;
48
+ batchUpdateSyncObjects(syncObjects: any, syncManager: any): Promise<any>;
49
+ findOrCreateEntity(params: any): Promise<any>;
50
+ getAllSyncObjects(SyncClass: any): Promise<any>;
51
+ getAuthorizationRequirements(params: any): Promise<any>;
52
+ getEntityId(): Promise<string>;
53
+ getEntityOptions(): Promise<any>;
54
+ markCredentialsInvalid(): Promise<Credential>;
55
+ processAuthorizationCallback(params: any): Promise<any>;
56
+ testAuth(params: any): Promise<any>;
57
+ validateAuthorizationRequirements(): Promise<boolean>;
58
+ }
59
+
60
+ interface IFriggModuleManager extends IFriggDelegate {
61
+ getEntityId(): Promise<string>;
62
+ validateAuthorizationRequirements(): Promise<boolean>;
63
+ getAuthorizationRequirements(params: any): Promise<any>;
64
+ testAuth(params: any): Promise<any>;
65
+ processAuthorizationCallback(params: any): Promise<any>;
66
+ getEntityOptions(): Promise<any>;
67
+ findOrCreateEntity(params: any): Promise<any>;
68
+ getAllSyncObjects(SyncClass: any): Promise<any>;
69
+ batchCreateSyncObjects(syncObjects: any, syncManager: any): Promise<any>;
70
+ batchUpdateSyncObjects(syncObjects: any, syncManager: any): Promise<any>;
71
+ markCredentialsInvalid(): Promise<Credential>;
72
+ }
73
+
74
+ export class Requester implements IFriggRequester {
75
+ DLGT_INVALID_AUTH: string;
76
+ backOff: number[];
77
+ fetch: any;
78
+ isRefreshable: boolean;
79
+ refreshCount: number;
80
+
81
+ _delete(options: RequestOptions): Promise<any>;
82
+ _get(options: RequestOptions): Promise<any>;
83
+ _patch(options: RequestOptions): Promise<any>;
84
+ _post(options: RequestOptions, stringify?: boolean): Promise<any>;
85
+ _put(options: RequestOptions): Promise<any>;
86
+ _request(
87
+ url: string,
88
+ options: Omit<RequestOptions, "url">,
89
+ i?: number
90
+ ): Promise<any>;
91
+ parseBody(response: any): Promise<any>;
92
+ refreshAuth(): Promise<any>;
93
+
94
+ delegate: any;
95
+ delegateTypes: any[];
96
+
97
+ notify(delegateString: string, object?: any): Promise<any>;
98
+ receiveNotification(
99
+ notifier: any,
100
+ delegateString: string,
101
+ object?: any
102
+ ): Promise<any>;
103
+ }
104
+
105
+ interface IFriggRequester extends IFriggDelegate {
106
+ backOff: number[];
107
+ isRefreshable: boolean;
108
+ refreshCount: number;
109
+ DLGT_INVALID_AUTH: string;
110
+ fetch: any;
111
+
112
+ parseBody(response: any): Promise<any>;
113
+ _request(
114
+ url: string,
115
+ options: Omit<RequestOptions, "url">,
116
+ i?: number
117
+ ): Promise<any>;
118
+ _get(options: RequestOptions): Promise<any>;
119
+ _post(options: RequestOptions, stringify?: boolean): Promise<any>;
120
+ _patch(options: RequestOptions): Promise<any>;
121
+ _put(options: RequestOptions): Promise<any>;
122
+ _delete(options: RequestOptions): Promise<any>;
123
+ refreshAuth(): Promise<any>;
124
+ }
125
+
126
+ type RequestOptions = {
127
+ url: string;
128
+ headers?: object;
129
+ query?: object;
130
+ returnFullRes?: boolean;
131
+ body?: any;
132
+ };
133
+
134
+ type RequesterConstructor = {
135
+ backOff?: number[];
136
+ fetch?: any;
137
+ };
138
+
139
+ export class ApiKeyRequester
140
+ extends Requester
141
+ implements IFriggApiKeyRequester
142
+ {
143
+ API_KEY_NAME: string;
144
+ API_KEY_VALUE: any;
145
+
146
+ constructor(params: RequesterConstructor);
147
+ addAuthHeaders(headers: object): Promise<object>;
148
+ isAuthenticated(): boolean;
149
+ setApiKey(api_key: any): void;
150
+ }
151
+
152
+ interface IFriggApiKeyRequester extends IFriggRequester {
153
+ API_KEY_NAME: string;
154
+ API_KEY_VALUE: string;
155
+
156
+ addAuthHeaders(headers: object): Promise<object>;
157
+ isAuthenticated(): boolean;
158
+ setApiKey(api_key: string): void;
159
+ }
160
+
161
+ export class BasicAuthRequester
162
+ extends Requester
163
+ implements IFriggBasicAuthRequester
164
+ {
165
+ password: string;
166
+ username: string;
167
+
168
+ constructor(params: BasicAuthRequesterConstructor);
169
+ addAuthHeaders(headers: object): Promise<object>;
170
+ isAuthenticated(): boolean;
171
+ setPassword(password: string): void;
172
+ setUsername(username: string): void;
173
+ }
174
+
175
+ interface IFriggBasicAuthRequester extends IFriggRequester {
176
+ username: string;
177
+ password: string;
178
+
179
+ addAuthHeaders(headers: object): Promise<object>;
180
+ isAuthenticated(): boolean;
181
+ setUsername(username: string): void;
182
+ setPassword(password: string): void;
183
+ }
184
+
185
+ type BasicAuthRequesterConstructor = RequesterConstructor & {
186
+ username?: string;
187
+ password?: string;
188
+ };
189
+
190
+ export class OAuth2Requester
191
+ extends Requester
192
+ implements IFriggOAuth2Requester
193
+ {
194
+ DLGT_TOKEN_DEAUTHORIZED: string;
195
+ DLGT_TOKEN_UPDATE: string;
196
+ accessTokenExpire: any;
197
+ access_token: string;
198
+ audience: any;
199
+ authorizationUri: any;
200
+ baseURL: string;
201
+ client_id: string;
202
+ client_secret: string;
203
+ grant_type: string;
204
+ password: string;
205
+ redirect_uri: string;
206
+ refreshTokenExpire: any;
207
+ refresh_token: string;
208
+ scope: string;
209
+ state: any;
210
+ username: string;
211
+
212
+ constructor(params: OAuth2RequesterConstructor);
213
+
214
+ addAuthHeaders(headers: object): Promise<object>;
215
+ getAuthorizationUri(): string;
216
+ getTokenFromClientCredentials(): Promise<Token>;
217
+ getTokenFromCode(code: string): Promise<Token>;
218
+ getTokenFromCodeBasicAuthHeader(code: string): Promise<Token>;
219
+ getTokenFromUsernamePassword(): Promise<Token>;
220
+ isAuthenticated(): boolean;
221
+ refreshAccessToken(refreshTokenObject: {
222
+ refresh_token: string;
223
+ }): Promise<Token>;
224
+ setTokens(params: Token): Promise<void>;
225
+ }
226
+ interface IFriggOAuth2Requester extends IFriggRequester {
227
+ DLGT_TOKEN_UPDATE: string;
228
+ DLGT_TOKEN_DEAUTHORIZED: string;
229
+
230
+ grant_type?: string;
231
+ client_id?: string;
232
+ client_secret?: string;
233
+ redirect_uri?: string;
234
+ scope?: string;
235
+ authorizationUri?: any;
236
+ baseURL?: string;
237
+ access_token?: string;
238
+ refresh_token?: string;
239
+ accessTokenExpire?: any;
240
+ refreshTokenExpire?: any;
241
+ audience?: any;
242
+ username?: string;
243
+ password?: string;
244
+ state?: any;
245
+
246
+ setTokens(params: Token): Promise<void>;
247
+ getAuthorizationUri(): string;
248
+ getTokenFromCode(code: string): Promise<Token>;
249
+ getTokenFromCodeBasicAuthHeader(code: string): Promise<Token>;
250
+ refreshAccessToken(refreshTokenObject: {
251
+ refresh_token: string;
252
+ }): Promise<Token>;
253
+ addAuthHeaders(headers: object): Promise<object>;
254
+ isAuthenticated(): boolean;
255
+ refreshAuth(): Promise<void>;
256
+ getTokenFromUsernamePassword(): Promise<Token>;
257
+ getTokenFromClientCredentials(): Promise<Token>;
258
+ }
259
+
260
+ type Token = {
261
+ access_token?: string;
262
+ refresh_token?: string;
263
+ expires_in: any;
264
+ x_refresh_token_expires_in: any;
265
+ };
266
+
267
+ type OAuth2RequesterConstructor = {
268
+ grant_type?: string;
269
+ client_id?: string;
270
+ client_secret?: string;
271
+ redirect_uri?: string;
272
+ scope?: string;
273
+ authorizationUri?: any;
274
+ baseURL?: string;
275
+ access_token?: string;
276
+ refresh_token?: string;
277
+ accessTokenExpire?: any;
278
+ refreshTokenExpire?: any;
279
+ audience?: any;
280
+ username?: string;
281
+ password?: string;
282
+ state?: any;
283
+ };
284
+
285
+ export const ModuleConstants: {
286
+ authType: {
287
+ oauth2: "oauth2";
288
+ oauth1: "oauth1";
289
+ basic: "basic";
290
+ apiKey: "apiKey";
291
+ };
292
+ };
293
+ }
@@ -0,0 +1,6 @@
1
+ declare module "@friggframework/prettier-config" {
2
+ export const semi: true;
3
+ export const tabWidth = 4;
4
+ export const singleQuote = true;
5
+ export const useTabs: false;
6
+ }
@@ -0,0 +1,128 @@
1
+ declare module "@friggframework/syncs/model" {
2
+ import { Model } from "mongoose";
3
+
4
+ export class Sync extends Model {
5
+ entities: any[];
6
+ hash: string;
7
+ name: string;
8
+ dataIdentifiers: {
9
+ entity: any;
10
+ id: object;
11
+ hash: string;
12
+ }[];
13
+ }
14
+ }
15
+
16
+ declare module "@friggframework/syncs/manager" {
17
+ import Sync from "@friggframework/syncs/sync";
18
+
19
+ export default class SyncManager implements IFriggSyncManager {
20
+ ignoreEmptyMatchValues: boolean;
21
+ integration: any;
22
+ isUnidirectionalSync: boolean;
23
+ omitEmptyStringsFromData: boolean;
24
+ syncObjectClass: Sync;
25
+ useFirstMatchingDuplicate: boolean;
26
+
27
+ constructor(params: SyncManagerConstructor);
28
+ confirmCreate(
29
+ syncObj: Sync,
30
+ createdId: string,
31
+ moduleManager: any
32
+ ): Promise<any>;
33
+ confirmUpdate(syncObj: Sync): Promise<any>;
34
+ createSyncDBObject(objArr: any[], entities: any[]): Promise<any>;
35
+ initialSync(): Promise<void>;
36
+ sync(syncObjects: Sync[]): Promise<any[]>;
37
+ }
38
+
39
+ interface IFriggSyncManager {
40
+ syncObjectClass: Sync;
41
+ ignoreEmptyMatchValues: boolean;
42
+ isUnidirectionalSync: boolean;
43
+ useFirstMatchingDuplicate: boolean;
44
+ omitEmptyStringsFromData: boolean;
45
+ integration: any;
46
+
47
+ initialSync(): Promise<void>;
48
+ createSyncDBObject(objArr: any[], entities: any[]): Promise<any>;
49
+ sync(syncObjects: Sync[]): Promise<any[]>;
50
+ confirmCreate(
51
+ syncObj: Sync,
52
+ createdId: string,
53
+ moduleManager: any
54
+ ): Promise<any>;
55
+ confirmUpdate(syncObj: Sync): Promise<any>;
56
+ }
57
+
58
+ type SyncManagerConstructor = {
59
+ syncObjectClass: Sync;
60
+ ignoreEmptyMatchValues?: boolean;
61
+ isUnidirectionalSync?: boolean;
62
+ useFirstMatchingDuplicate?: boolean;
63
+ omitEmptyStringsFromData?: boolean;
64
+ integration: any;
65
+ };
66
+ }
67
+
68
+ declare module "@friggframework/syncs/sync" {
69
+ export default class Sync implements IFriggSync {
70
+ data: object;
71
+ dataIdentifier: any;
72
+ dataIdentifierHash: string;
73
+ matchHash: string;
74
+ missingMatchData: boolean;
75
+ moduleName: string;
76
+ syncId: string;
77
+ useMapping: boolean;
78
+
79
+ static Config: {
80
+ name: string;
81
+ keys: any[];
82
+ matchOn: any[];
83
+ moduleMap: object;
84
+ reverseModuleMap: object;
85
+ };
86
+
87
+ static hashJSON(data: any): string;
88
+
89
+ constructor(params: SyncConstructor);
90
+ dataKeyIsReplaceable(key: string): boolean;
91
+ equals(syncObj: IFriggSync): boolean;
92
+ getHashData(params: GetHashData): any;
93
+ getName(): string;
94
+ isModuleInMap(moduleName: string): any;
95
+ reverseModuleMap(moduleName: string): any;
96
+ setSyncId(syncId: string): void;
97
+ }
98
+
99
+ interface IFriggSync {
100
+ data: object;
101
+ moduleName: string;
102
+ dataIdentifier: any;
103
+ useMapping?: boolean;
104
+ dataIdentifierHash: string;
105
+ missingMatchData: boolean;
106
+ matchHash: string;
107
+ syncId: string;
108
+
109
+ equals(syncObj: IFriggSync): boolean;
110
+ dataKeyIsReplaceable(key: string): boolean;
111
+ isModuleInMap(moduleName: string): any;
112
+ getName(): string;
113
+ getHashData(params: GetHashData): any;
114
+ setSyncId(syncId: string): void;
115
+ reverseModuleMap(moduleName: string): any;
116
+ }
117
+
118
+ type SyncConstructor = {
119
+ data: any;
120
+ moduleName: string;
121
+ dataIdentifier: any;
122
+ useMapping?: boolean;
123
+ };
124
+
125
+ type GetHashData = {
126
+ omitEmptyStringsFromData?: boolean;
127
+ };
128
+ }
@@ -0,0 +1,17 @@
1
+ declare module "@friggframework/test-environment" {
2
+ export class TestMongo implements IFriggTestDatabase {
3
+ #mongoServer: any;
4
+ start(): Promise<void>;
5
+ stop(): Promise<void>;
6
+ }
7
+
8
+ interface IFriggTestDatabase {
9
+ start(): Promise<void>;
10
+ stop(): Promise<void>;
11
+ }
12
+
13
+ export function overrideEnvironment(overrideByKey: any): void;
14
+ export function restoreEnvironment(): void;
15
+ export function globalTeardown(): Promise<void>;
16
+ export function globalSetup(): Promise<void>;
17
+ }
@@ -0,0 +1,103 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig to read more about this file */
4
+
5
+ /* Projects */
6
+ // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
7
+ // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8
+ // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
9
+ // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
10
+ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11
+ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
+
13
+ /* Language and Environment */
14
+ "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15
+ "lib": ["es2022"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16
+ // "jsx": "preserve", /* Specify what JSX code is generated. */
17
+ // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
18
+ // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
19
+ // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
20
+ // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
21
+ // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
22
+ // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
23
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
24
+ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
25
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
26
+
27
+ /* Modules */
28
+ "module": "commonjs", /* Specify what module code is generated. */
29
+ // "rootDir": "./", /* Specify the root folder within your source files. */
30
+ // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
31
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
33
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
34
+ // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
35
+ // "types": [], /* Specify type package names to be included without being referenced in a source file. */
36
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
37
+ // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
38
+ // "resolveJsonModule": true, /* Enable importing .json files. */
39
+ // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
40
+
41
+ /* JavaScript Support */
42
+ // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
43
+ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
44
+ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
45
+
46
+ /* Emit */
47
+ // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
48
+ // "declarationMap": true, /* Create sourcemaps for d.ts files. */
49
+ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
50
+ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
51
+ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
52
+ // "outDir": "./", /* Specify an output folder for all emitted files. */
53
+ // "removeComments": true, /* Disable emitting comments. */
54
+ // "noEmit": true, /* Disable emitting files from a compilation. */
55
+ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
56
+ // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
57
+ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
58
+ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
59
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
60
+ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
61
+ // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
62
+ // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
63
+ // "newLine": "crlf", /* Set the newline character for emitting files. */
64
+ // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
65
+ // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
66
+ // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
67
+ // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
68
+ // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
69
+ // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
70
+
71
+ /* Interop Constraints */
72
+ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
73
+ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
74
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
75
+ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
76
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
77
+
78
+ /* Type Checking */
79
+ "strict": true, /* Enable all strict type-checking options. */
80
+ // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
81
+ // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
82
+ // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
83
+ // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
84
+ // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
85
+ // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
86
+ // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
87
+ // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
88
+ // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
89
+ // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
90
+ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
91
+ // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
92
+ // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
93
+ // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
94
+ // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
95
+ // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
96
+ // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
97
+ // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
98
+
99
+ /* Completeness */
100
+ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
101
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */
102
+ }
103
+ }
File without changes
File without changes
File without changes
File without changes
File without changes