@memberjunction/server 1.0.6 → 1.0.7

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 (62) hide show
  1. package/.eslintignore +4 -4
  2. package/.eslintrc +24 -24
  3. package/CHANGELOG.json +92 -0
  4. package/CHANGELOG.md +25 -0
  5. package/README.md +141 -141
  6. package/dist/config.d.ts +3 -0
  7. package/dist/config.d.ts.map +1 -1
  8. package/dist/config.js +4 -1
  9. package/dist/config.js.map +1 -1
  10. package/dist/entitySubclasses/entityPermissions.server.d.ts +23 -0
  11. package/dist/entitySubclasses/entityPermissions.server.d.ts.map +1 -0
  12. package/dist/entitySubclasses/entityPermissions.server.js +99 -0
  13. package/dist/entitySubclasses/entityPermissions.server.js.map +1 -0
  14. package/dist/entitySubclasses/userViewEntity.server.js +17 -17
  15. package/dist/generated/generated.d.ts.map +1 -1
  16. package/dist/generated/generated.js.map +1 -1
  17. package/dist/index.d.ts +1 -0
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +1 -0
  20. package/dist/index.js.map +1 -1
  21. package/dist/resolvers/AskSkipResolver.js +10 -10
  22. package/dist/resolvers/FileCategoryResolver.js +2 -2
  23. package/dist/resolvers/ReportResolver.js +4 -4
  24. package/package.json +80 -80
  25. package/src/apolloServer/TransactionPlugin.ts +57 -57
  26. package/src/apolloServer/index.ts +33 -33
  27. package/src/auth/exampleNewUserSubClass.ts +73 -73
  28. package/src/auth/index.ts +151 -151
  29. package/src/auth/newUsers.ts +56 -56
  30. package/src/auth/tokenExpiredError.ts +12 -12
  31. package/src/cache.ts +10 -10
  32. package/src/config.ts +89 -84
  33. package/src/context.ts +119 -119
  34. package/src/directives/Public.ts +42 -42
  35. package/src/directives/index.ts +1 -1
  36. package/src/entitySubclasses/entityPermissions.server.ts +111 -0
  37. package/src/entitySubclasses/userViewEntity.server.ts +187 -187
  38. package/src/generated/generated.ts +2573 -2573
  39. package/src/generic/PushStatusResolver.ts +40 -40
  40. package/src/generic/ResolverBase.ts +331 -331
  41. package/src/generic/RunViewResolver.ts +350 -350
  42. package/src/index.ts +133 -137
  43. package/src/orm.ts +36 -36
  44. package/src/resolvers/AskSkipResolver.ts +782 -782
  45. package/src/resolvers/ColorResolver.ts +72 -72
  46. package/src/resolvers/DatasetResolver.ts +115 -115
  47. package/src/resolvers/EntityRecordNameResolver.ts +77 -77
  48. package/src/resolvers/EntityResolver.ts +37 -37
  49. package/src/resolvers/FileCategoryResolver.ts +38 -38
  50. package/src/resolvers/FileResolver.ts +110 -110
  51. package/src/resolvers/MergeRecordsResolver.ts +198 -198
  52. package/src/resolvers/PotentialDuplicateRecordResolver.ts +59 -59
  53. package/src/resolvers/QueryResolver.ts +42 -42
  54. package/src/resolvers/ReportResolver.ts +131 -131
  55. package/src/resolvers/UserFavoriteResolver.ts +102 -102
  56. package/src/resolvers/UserResolver.ts +29 -29
  57. package/src/resolvers/UserViewResolver.ts +64 -64
  58. package/src/types.ts +19 -19
  59. package/src/util.ts +106 -106
  60. package/tsconfig.json +31 -31
  61. package/typedoc.json +4 -4
  62. package/build.log.json +0 -47
package/.eslintignore CHANGED
@@ -1,5 +1,5 @@
1
- node_modules
2
- dist
3
- package-lock.json
4
- src/generated/**
1
+ node_modules
2
+ dist
3
+ package-lock.json
4
+ src/generated/**
5
5
  src/generic/**
package/.eslintrc CHANGED
@@ -1,24 +1,24 @@
1
- {
2
- "env": {
3
- "node": true
4
- },
5
- "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
6
- "parser": "@typescript-eslint/parser",
7
- "plugins": ["prettier", "@typescript-eslint"],
8
- "rules": {
9
- "@typescript-eslint/no-explicit-any": "error",
10
- "@typescript-eslint/no-shadow": "error",
11
- "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
12
- "class-methods-use-this": "off",
13
- "no-shadow": "off",
14
- "no-unused-vars": "off",
15
- "object-shorthand": "error",
16
- "prettier/prettier": "error",
17
- "spaced-comment": "off"
18
- },
19
- "settings": {
20
- "import/resolver": {
21
- "typescript": {}
22
- }
23
- }
24
- }
1
+ {
2
+ "env": {
3
+ "node": true
4
+ },
5
+ "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
6
+ "parser": "@typescript-eslint/parser",
7
+ "plugins": ["prettier", "@typescript-eslint"],
8
+ "rules": {
9
+ "@typescript-eslint/no-explicit-any": "error",
10
+ "@typescript-eslint/no-shadow": "error",
11
+ "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
12
+ "class-methods-use-this": "off",
13
+ "no-shadow": "off",
14
+ "no-unused-vars": "off",
15
+ "object-shorthand": "error",
16
+ "prettier/prettier": "error",
17
+ "spaced-comment": "off"
18
+ },
19
+ "settings": {
20
+ "import/resolver": {
21
+ "typescript": {}
22
+ }
23
+ }
24
+ }
package/CHANGELOG.json ADDED
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "@memberjunction/server",
3
+ "entries": [
4
+ {
5
+ "date": "Thu, 11 Apr 2024 23:51:06 GMT",
6
+ "version": "1.0.7",
7
+ "tag": "@memberjunction/server_v1.0.7",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "craig.adam@bluecypress.io",
12
+ "package": "@memberjunction/server",
13
+ "commit": "c4a77dd280ed0e9fe5978421381ca65124ed8bd4",
14
+ "comment": "Add build and publish automation"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@memberjunction/server",
19
+ "comment": "Bump @memberjunction/ai to v1.0.7",
20
+ "commit": "not available"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@memberjunction/server",
25
+ "comment": "Bump @memberjunction/ai-openai to v1.0.7",
26
+ "commit": "not available"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@memberjunction/server",
31
+ "comment": "Bump @memberjunction/aiengine to v1.0.7",
32
+ "commit": "not available"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@memberjunction/server",
37
+ "comment": "Bump @memberjunction/core to v1.0.7",
38
+ "commit": "not available"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@memberjunction/server",
43
+ "comment": "Bump @memberjunction/core-entities to v1.0.7",
44
+ "commit": "not available"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@memberjunction/server",
49
+ "comment": "Bump @memberjunction/data-context to v1.0.7",
50
+ "commit": "not available"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@memberjunction/server",
55
+ "comment": "Bump @memberjunction/data-context-server to v1.0.7",
56
+ "commit": "not available"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@memberjunction/server",
61
+ "comment": "Bump @memberjunction/global to v1.0.7",
62
+ "commit": "not available"
63
+ },
64
+ {
65
+ "author": "beachball",
66
+ "package": "@memberjunction/server",
67
+ "comment": "Bump @memberjunction/storage to v1.0.7",
68
+ "commit": "not available"
69
+ },
70
+ {
71
+ "author": "beachball",
72
+ "package": "@memberjunction/server",
73
+ "comment": "Bump @memberjunction/queue to v1.0.7",
74
+ "commit": "not available"
75
+ },
76
+ {
77
+ "author": "beachball",
78
+ "package": "@memberjunction/server",
79
+ "comment": "Bump @memberjunction/sqlserver-dataprovider to v1.0.7",
80
+ "commit": "not available"
81
+ },
82
+ {
83
+ "author": "beachball",
84
+ "package": "@memberjunction/server",
85
+ "comment": "Bump @memberjunction/skip-types to v1.0.7",
86
+ "commit": "not available"
87
+ }
88
+ ]
89
+ }
90
+ }
91
+ ]
92
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,25 @@
1
+ # Change Log - @memberjunction/server
2
+
3
+ This log was last generated on Thu, 11 Apr 2024 23:51:06 GMT and should not be manually modified.
4
+
5
+ <!-- Start content -->
6
+
7
+ ## 1.0.7
8
+
9
+ Thu, 11 Apr 2024 23:51:06 GMT
10
+
11
+ ### Patches
12
+
13
+ - Add build and publish automation (craig.adam@bluecypress.io)
14
+ - Bump @memberjunction/ai to v1.0.7
15
+ - Bump @memberjunction/ai-openai to v1.0.7
16
+ - Bump @memberjunction/aiengine to v1.0.7
17
+ - Bump @memberjunction/core to v1.0.7
18
+ - Bump @memberjunction/core-entities to v1.0.7
19
+ - Bump @memberjunction/data-context to v1.0.7
20
+ - Bump @memberjunction/data-context-server to v1.0.7
21
+ - Bump @memberjunction/global to v1.0.7
22
+ - Bump @memberjunction/storage to v1.0.7
23
+ - Bump @memberjunction/queue to v1.0.7
24
+ - Bump @memberjunction/sqlserver-dataprovider to v1.0.7
25
+ - Bump @memberjunction/skip-types to v1.0.7
package/README.md CHANGED
@@ -1,141 +1,141 @@
1
- # @memberjunction/server
2
-
3
- The `@memberjunction/server` library provides a simple way to run the MemberJunction API server. It includes all the functions required to start up the GraphQL server, manage authentication, and connect to the common data store.
4
-
5
- comprehensive interface for accessing and managing metadata within MemberJunction, along with facilities for working with entities, applications, and various other aspects central to the MemberJunction ecosystem. This library primarily exports a `Metadata` class which acts as the gateway to many functionalities.
6
-
7
- ## Installation
8
-
9
- ```shell
10
- npm install @memberjunction/server
11
- ```
12
-
13
- ## Configuration
14
-
15
- The server uses configuration from its environment
16
-
17
- | Env variable | Description |
18
- | ------------------------ | ------------------------------------------------------------ |
19
- | DB_HOST | The hostname for the common data store database |
20
- | DB_PORT | The port for the common data store database (default 1433) |
21
- | DB_USERNAME | The username used to authenticate with the common data store |
22
- | DB_PASSWORD | The password used to authenticate with the common data store |
23
- | DB_DATABASE | The common data store database name |
24
- | PORT | The port used by the server (default 4000) |
25
- | ROOT_PATH | The GraphQL root path (default /) |
26
- | WEB_CLIENT_ID | The client ID used for MSAL authentication |
27
- | TENANT_ID | The tenant ID used for MSAL authentication |
28
- | ENABLE_INTROSPECTION | A flag to allow GraphQL introspection (default false) |
29
- | WEBSITE_RUN_FROM_PACKAGE | An Azure flag to indicate a read-only file system |
30
- | AUTH0_DOMAIN | The Auth0 domain |
31
- | AUTH0_CLIENT_ID | The Auth0 Client ID |
32
- | AUTH0_CLIENT_SECRET | The Auth0 Client secret |
33
- | MJ_CORE_SCHEMA | The core schema to use for the data provider |
34
- | CONFIG_FILE | An absolute path to the config file json |
35
-
36
-
37
- ## Usage
38
-
39
- Import the `serve` function from the package and run it as part of the server's main function. The function accepts an array of absolute paths to the resolver code.
40
-
41
- ```ts
42
- import { serve } from '@memberjunction/server';
43
- import { resolve } from 'node:path';
44
-
45
- const localPath = (p: string) => resolve(__dirname, p);
46
-
47
- const resolverPaths = [
48
- 'resolvers/**/*Resolver.{js,ts}',
49
- 'generic/*Resolver.{js,ts}',
50
- 'generated/generated.ts',
51
- ]
52
-
53
- serve(resolverPaths.map(localPath));
54
- ```
55
-
56
- ### Custom New User Behavior
57
-
58
- The behavior to handle new users can be customized by subclassing the `NewUserBase` class. The subclass can pre-process, post-process or entirely override the base class behavior as needed. Import the class before calling `serve` to ensure the class is registered.
59
-
60
- `index.ts`
61
-
62
- ```ts
63
- import { serve } from '@memberjunction/server';
64
- import { resolve } from 'node:path';
65
-
66
- import './auth/exampleNewUserSubClass'; // make sure this new class gets registered
67
-
68
- // ...
69
- ```
70
-
71
-
72
- `auth/exampleNewUserSubClass.ts`
73
-
74
- ```ts
75
- import { LogError, Metadata, RunView } from "@memberjunction/core";
76
- import { RegisterClass } from "@memberjunction/global";
77
- import { NewUserBase, configInfo } from '@memberjunction/server';
78
- import { UserCache } from "@memberjunction/sqlserver-dataprovider";
79
-
80
- /**
81
- * This example class subclasses the @NewUserBase class and overrides the createNewUser method to create a new person record and then call the base class to create the user record. In this example there is an entity
82
- * called "Persons" that is mapped to the User table in the core MemberJunction schema. You can sub-class the NewUserBase to do whatever behavior you want and pre-process, post-process or entirely override the base
83
- * class behavior.
84
- */
85
- @RegisterClass(NewUserBase, undefined, 1) /*by putting 1 into the priority setting, MJGlobal ClassFactory will use this instead of the base class as that registration had no priority*/
86
- export class ExampleNewUserSubClass extends NewUserBase {
87
- public override async createNewUser(firstName: string, lastName: string, email: string) {
88
- try {
89
- const md = new Metadata();
90
- const contextUser = UserCache.Instance.Users.find(u => u.Email.trim().toLowerCase() === configInfo?.userHandling?.contextUserForNewUserCreation?.trim().toLowerCase())
91
- if(!contextUser) {
92
- LogError(`Failed to load context user ${configInfo?.userHandling?.contextUserForNewUserCreation}, if you've not specified this on your config.json you must do so. This is the user that is contextually used for creating a new user record dynamically.`);
93
- return undefined;
94
- }
95
-
96
- const pEntity = md.Entities.find(e => e.Name === 'Persons'); // look up the entity info for the Persons entity
97
- if (!pEntity) {
98
- LogError('Failed to find Persons entity');
99
- return undefined;
100
- }
101
-
102
- let personId;
103
- // this block of code only executes if we have an entity called Persons
104
- const rv = new RunView();
105
- const viewResults = await rv.RunView({
106
- EntityName: 'Persons',
107
- ExtraFilter: `Email = '${email}'`
108
- }, contextUser)
109
-
110
- if (viewResults && viewResults.Success && Array.isArray(viewResults.Results) && viewResults.Results.length > 0) {
111
- // we have a match so use it
112
- const row = (viewResults.Results as { ID: number }[])[0]; // we know the rows will have an ID number
113
- personId = row['ID'];
114
- }
115
-
116
- if (!personId) {
117
- // we don't have a match so create a new person record
118
- const p = await md.GetEntityObject('Persons', contextUser);
119
- p.NewRecord(); // assumes we have an entity called Persons that has FirstName/LastName/Email fields
120
- p.FirstName = firstName;
121
- p.LastName = lastName;
122
- p.Email = email;
123
- p.Status = 'active';
124
- if (await p.Save()) {
125
- personId = p.ID;
126
- }
127
- else {
128
- LogError(`Failed to create new person ${firstName} ${lastName} ${email}`)
129
- }
130
- }
131
-
132
- // now call the base class to create the user, and pass in our LinkedRecordType and ID
133
- return super.createNewUser(firstName, lastName, email, 'Other', pEntity?.ID, personId);
134
- }
135
- catch (e) {
136
- LogError(`Error creating new user ${email} ${e}`);
137
- return undefined;
138
- }
139
- }
140
- }
141
- ```
1
+ # @memberjunction/server
2
+
3
+ The `@memberjunction/server` library provides a simple way to run the MemberJunction API server. It includes all the functions required to start up the GraphQL server, manage authentication, and connect to the common data store.
4
+
5
+ comprehensive interface for accessing and managing metadata within MemberJunction, along with facilities for working with entities, applications, and various other aspects central to the MemberJunction ecosystem. This library primarily exports a `Metadata` class which acts as the gateway to many functionalities.
6
+
7
+ ## Installation
8
+
9
+ ```shell
10
+ npm install @memberjunction/server
11
+ ```
12
+
13
+ ## Configuration
14
+
15
+ The server uses configuration from its environment
16
+
17
+ | Env variable | Description |
18
+ | ------------------------ | ------------------------------------------------------------ |
19
+ | DB_HOST | The hostname for the common data store database |
20
+ | DB_PORT | The port for the common data store database (default 1433) |
21
+ | DB_USERNAME | The username used to authenticate with the common data store |
22
+ | DB_PASSWORD | The password used to authenticate with the common data store |
23
+ | DB_DATABASE | The common data store database name |
24
+ | PORT | The port used by the server (default 4000) |
25
+ | ROOT_PATH | The GraphQL root path (default /) |
26
+ | WEB_CLIENT_ID | The client ID used for MSAL authentication |
27
+ | TENANT_ID | The tenant ID used for MSAL authentication |
28
+ | ENABLE_INTROSPECTION | A flag to allow GraphQL introspection (default false) |
29
+ | WEBSITE_RUN_FROM_PACKAGE | An Azure flag to indicate a read-only file system |
30
+ | AUTH0_DOMAIN | The Auth0 domain |
31
+ | AUTH0_CLIENT_ID | The Auth0 Client ID |
32
+ | AUTH0_CLIENT_SECRET | The Auth0 Client secret |
33
+ | MJ_CORE_SCHEMA | The core schema to use for the data provider |
34
+ | CONFIG_FILE | An absolute path to the config file json |
35
+
36
+
37
+ ## Usage
38
+
39
+ Import the `serve` function from the package and run it as part of the server's main function. The function accepts an array of absolute paths to the resolver code.
40
+
41
+ ```ts
42
+ import { serve } from '@memberjunction/server';
43
+ import { resolve } from 'node:path';
44
+
45
+ const localPath = (p: string) => resolve(__dirname, p);
46
+
47
+ const resolverPaths = [
48
+ 'resolvers/**/*Resolver.{js,ts}',
49
+ 'generic/*Resolver.{js,ts}',
50
+ 'generated/generated.ts',
51
+ ]
52
+
53
+ serve(resolverPaths.map(localPath));
54
+ ```
55
+
56
+ ### Custom New User Behavior
57
+
58
+ The behavior to handle new users can be customized by subclassing the `NewUserBase` class. The subclass can pre-process, post-process or entirely override the base class behavior as needed. Import the class before calling `serve` to ensure the class is registered.
59
+
60
+ `index.ts`
61
+
62
+ ```ts
63
+ import { serve } from '@memberjunction/server';
64
+ import { resolve } from 'node:path';
65
+
66
+ import './auth/exampleNewUserSubClass'; // make sure this new class gets registered
67
+
68
+ // ...
69
+ ```
70
+
71
+
72
+ `auth/exampleNewUserSubClass.ts`
73
+
74
+ ```ts
75
+ import { LogError, Metadata, RunView } from "@memberjunction/core";
76
+ import { RegisterClass } from "@memberjunction/global";
77
+ import { NewUserBase, configInfo } from '@memberjunction/server';
78
+ import { UserCache } from "@memberjunction/sqlserver-dataprovider";
79
+
80
+ /**
81
+ * This example class subclasses the @NewUserBase class and overrides the createNewUser method to create a new person record and then call the base class to create the user record. In this example there is an entity
82
+ * called "Persons" that is mapped to the User table in the core MemberJunction schema. You can sub-class the NewUserBase to do whatever behavior you want and pre-process, post-process or entirely override the base
83
+ * class behavior.
84
+ */
85
+ @RegisterClass(NewUserBase, undefined, 1) /*by putting 1 into the priority setting, MJGlobal ClassFactory will use this instead of the base class as that registration had no priority*/
86
+ export class ExampleNewUserSubClass extends NewUserBase {
87
+ public override async createNewUser(firstName: string, lastName: string, email: string) {
88
+ try {
89
+ const md = new Metadata();
90
+ const contextUser = UserCache.Instance.Users.find(u => u.Email.trim().toLowerCase() === configInfo?.userHandling?.contextUserForNewUserCreation?.trim().toLowerCase())
91
+ if(!contextUser) {
92
+ LogError(`Failed to load context user ${configInfo?.userHandling?.contextUserForNewUserCreation}, if you've not specified this on your config.json you must do so. This is the user that is contextually used for creating a new user record dynamically.`);
93
+ return undefined;
94
+ }
95
+
96
+ const pEntity = md.Entities.find(e => e.Name === 'Persons'); // look up the entity info for the Persons entity
97
+ if (!pEntity) {
98
+ LogError('Failed to find Persons entity');
99
+ return undefined;
100
+ }
101
+
102
+ let personId;
103
+ // this block of code only executes if we have an entity called Persons
104
+ const rv = new RunView();
105
+ const viewResults = await rv.RunView({
106
+ EntityName: 'Persons',
107
+ ExtraFilter: `Email = '${email}'`
108
+ }, contextUser)
109
+
110
+ if (viewResults && viewResults.Success && Array.isArray(viewResults.Results) && viewResults.Results.length > 0) {
111
+ // we have a match so use it
112
+ const row = (viewResults.Results as { ID: number }[])[0]; // we know the rows will have an ID number
113
+ personId = row['ID'];
114
+ }
115
+
116
+ if (!personId) {
117
+ // we don't have a match so create a new person record
118
+ const p = await md.GetEntityObject('Persons', contextUser);
119
+ p.NewRecord(); // assumes we have an entity called Persons that has FirstName/LastName/Email fields
120
+ p.FirstName = firstName;
121
+ p.LastName = lastName;
122
+ p.Email = email;
123
+ p.Status = 'active';
124
+ if (await p.Save()) {
125
+ personId = p.ID;
126
+ }
127
+ else {
128
+ LogError(`Failed to create new person ${firstName} ${lastName} ${email}`)
129
+ }
130
+ }
131
+
132
+ // now call the base class to create the user, and pass in our LinkedRecordType and ID
133
+ return super.createNewUser(firstName, lastName, email, 'Other', pEntity?.ID, personId);
134
+ }
135
+ catch (e) {
136
+ LogError(`Error creating new user ${email} ${e}`);
137
+ return undefined;
138
+ }
139
+ }
140
+ }
141
+ ```
package/dist/config.d.ts CHANGED
@@ -8,6 +8,9 @@ export declare const dbDatabase: string;
8
8
  export declare const dbInstanceName: string;
9
9
  export declare const dbTrustServerCertificate: boolean;
10
10
  export declare const graphqlPort: number;
11
+ export declare const ___codeGenAPIURL: string;
12
+ export declare const ___codeGenAPIPort: number;
13
+ export declare const ___codeGenAPISubmissionDelay: number;
11
14
  export declare const graphqlRootPath: string;
12
15
  export declare const webClientID: string;
13
16
  export declare const tenantID: string;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,OAAO,QAAiC,CAAC;AAEtD,eAAO,MAAM,MAAM,QAA2C,CAAC;AAC/D,eAAO,MAAM,MAAM,QAAoD,CAAC;AACxE,eAAO,MAAM,UAAU,QAA+C,CAAC;AACv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AM,cAAc,QAAuC,CAAC;AAEnE,eAAO,MAAM,UAAU,QAAoC,CAAC;AAE5D,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAQ1B,CAAC;AAEH,QAAA,MAAM,0BAA0B;;;;;;;;;;;;EAI9B,CAAC;AAEH,QAAA,MAAM,uBAAuB;;;;;;EAE3B,CAAC;AAMH,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKpB,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAChF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,UAAU,EAAE,UAAyB,CAAC;AAEnD,wBAAgB,UAAU;;;;;;;;;;;;;;;;;;;;;EASzB"}
package/dist/config.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.loadConfig = exports.configInfo = exports.configFile = exports.mj_core_schema = exports.auth0ClientSecret = exports.auth0WebClientID = exports.auth0Domain = exports.___skipAPIOrgId = exports.___skipAPIurl = exports.userEmailMap = exports.websiteRunFromPackage = exports.enableIntrospection = exports.tenantID = exports.webClientID = exports.graphqlRootPath = exports.graphqlPort = exports.dbTrustServerCertificate = exports.dbInstanceName = exports.dbDatabase = exports.dbPassword = exports.dbUsername = exports.dbPort = exports.dbHost = exports.nodeEnv = void 0;
6
+ exports.loadConfig = exports.configInfo = exports.configFile = exports.mj_core_schema = exports.auth0ClientSecret = exports.auth0WebClientID = exports.auth0Domain = exports.___skipAPIOrgId = exports.___skipAPIurl = exports.userEmailMap = exports.websiteRunFromPackage = exports.enableIntrospection = exports.tenantID = exports.webClientID = exports.graphqlRootPath = exports.___codeGenAPISubmissionDelay = exports.___codeGenAPIPort = exports.___codeGenAPIURL = exports.graphqlPort = exports.dbTrustServerCertificate = exports.dbInstanceName = exports.dbDatabase = exports.dbPassword = exports.dbUsername = exports.dbPort = exports.dbHost = exports.nodeEnv = void 0;
7
7
  const env_var_1 = __importDefault(require("env-var"));
8
8
  const fs_1 = __importDefault(require("fs"));
9
9
  const path_1 = __importDefault(require("path"));
@@ -17,6 +17,9 @@ exports.dbDatabase = env_var_1.default.get('DB_DATABASE').required().asString();
17
17
  exports.dbInstanceName = env_var_1.default.get('DB_INSTANCE_NAME').asString();
18
18
  exports.dbTrustServerCertificate = env_var_1.default.get('DB_TRUST_SERVER_CERTIFICATE').asBool();
19
19
  exports.graphqlPort = env_var_1.default.get('PORT').default('4000').asPortNumber();
20
+ exports.___codeGenAPIURL = env_var_1.default.get('CODEGEN_API_URL').asString();
21
+ exports.___codeGenAPIPort = env_var_1.default.get('CODEGEN_API_PORT').default('3999').asPortNumber();
22
+ exports.___codeGenAPISubmissionDelay = env_var_1.default.get('CODEGEN_API_SUBMISSION_DELAY').default(5000).asIntPositive();
20
23
  exports.graphqlRootPath = env_var_1.default.get('ROOT_PATH').default('/').asString();
21
24
  exports.webClientID = env_var_1.default.get('WEB_CLIENT_ID').asString();
22
25
  exports.tenantID = env_var_1.default.get('TENANT_ID').asString();
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;;;;;AAAA,sDAA0B;AAC1B,4CAAoB;AACpB,gDAAwB;AACxB,6BAAwB;AAEX,QAAA,OAAO,GAA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I,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;AACxD,CAAC;AATD,gCASC"}
@@ -0,0 +1,23 @@
1
+ /// <reference types="node" />
2
+ import { EntitySaveOptions } from "@memberjunction/core";
3
+ import { EntityPermissionEntity } from '@memberjunction/core-entities';
4
+ export declare class EntityPermissionsEntity_Server extends EntityPermissionEntity {
5
+ protected static _entityIDQueue: number[];
6
+ protected static _lastModifiedTime: Date | null;
7
+ protected static _submissionTimer: NodeJS.Timeout | null;
8
+ protected static _submissionDelay: number;
9
+ protected static _baseURL: string;
10
+ protected static _port: number;
11
+ protected static _apiEndpoint: string;
12
+ protected static getSubmissionURL(): string;
13
+ static get EntityIDQueue(): number[];
14
+ static ClearQueue(): void;
15
+ static AddToQueue(entityID: number): void;
16
+ protected static CheckStartSubmissionTimer(): void;
17
+ protected static StartSubmissionTimer(): void;
18
+ protected static SubmitQueue(): Promise<void>;
19
+ Save(options?: EntitySaveOptions): Promise<boolean>;
20
+ Delete(): Promise<boolean>;
21
+ }
22
+ export declare function LoadEntityPermissionsServerSubClass(): void;
23
+ //# sourceMappingURL=entityPermissions.server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entityPermissions.server.d.ts","sourceRoot":"","sources":["../../src/entitySubclasses/entityPermissions.server.ts"],"names":[],"mappings":";AACA,OAAO,EAAc,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AAQtE,qBACa,8BAA+B,SAAQ,sBAAsB;IACtE,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,CAAM;IAC/C,SAAS,CAAC,MAAM,CAAC,iBAAiB,EAAE,IAAI,GAAG,IAAI,CAAQ;IACvD,SAAS,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAQ;IAChE,SAAS,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAgC;IACzE,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAoB;IACrD,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAqB;IACnD,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAA6B;IAGlE,SAAS,CAAC,MAAM,CAAC,gBAAgB,IAAI,MAAM;IAI3C,WAAkB,aAAa,IAAI,MAAM,EAAE,CAE1C;WAEa,UAAU,IAAI,IAAI;WAIlB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAOhD,SAAS,CAAC,MAAM,CAAC,yBAAyB,IAAI,IAAI;IAWlD,SAAS,CAAC,MAAM,CAAC,oBAAoB,IAAI,IAAI;qBAMtB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAgC1C,IAAI,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC;IAQ7C,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC;CAS5C;AAED,wBAAgB,mCAAmC,SAElD"}