@pgpmjs/types 2.12.1 → 2.12.3

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/esm/jobs.js CHANGED
@@ -38,16 +38,9 @@ export const jobsDefaults = {
38
38
  pollInterval: 1000,
39
39
  gracefulShutdown: true
40
40
  },
41
- openFaas: {
42
- gateway: {
43
- gatewayUrl: 'http://gateway:8080',
44
- callbackUrl: 'http://callback:12345',
45
- callbackPort: 12345
46
- },
47
- server: {
48
- schema: 'app_jobs',
49
- port: 3000,
50
- host: 'localhost'
51
- }
41
+ gateway: {
42
+ gatewayUrl: 'http://gateway:8080',
43
+ callbackUrl: 'http://callback:12345',
44
+ callbackPort: 12345
52
45
  }
53
46
  };
package/esm/pgpm.js CHANGED
@@ -90,18 +90,6 @@ export const pgpmDefaults = {
90
90
  supported: [],
91
91
  pollInterval: 1000,
92
92
  gracefulShutdown: true
93
- },
94
- openFaas: {
95
- gateway: {
96
- gatewayUrl: 'http://gateway:8080',
97
- callbackUrl: 'http://callback:12345',
98
- callbackPort: 12345
99
- },
100
- server: {
101
- schema: 'app_jobs',
102
- port: 3000,
103
- host: 'localhost'
104
- }
105
93
  }
106
94
  }
107
95
  };
package/jobs.d.ts CHANGED
@@ -31,10 +31,10 @@ export interface JobTaskSupportConfig {
31
31
  supported: string[];
32
32
  }
33
33
  /**
34
- * OpenFaaS job system gateway configuration
34
+ * Job HTTP gateway configuration
35
35
  */
36
36
  export interface JobGatewayConfig {
37
- /** Internal gateway URL for OpenFaaS function calls */
37
+ /** Internal gateway URL for job HTTP function calls */
38
38
  gatewayUrl: string;
39
39
  /** Callback URL for job completion notifications */
40
40
  callbackUrl: string;
@@ -156,20 +156,6 @@ export interface JobSchedulerConfig extends JobPgConfig, JobSchemaConfig, JobHos
156
156
  /** Whether to enable graceful shutdown */
157
157
  gracefulShutdown?: boolean;
158
158
  }
159
- /**
160
- * OpenFaaS worker configuration
161
- */
162
- export interface OpenFaasJobWorkerConfig extends JobWorkerConfig, JobGatewayConfig {
163
- }
164
- /**
165
- * OpenFaaS server configuration
166
- */
167
- export interface OpenFaasJobServerConfig extends JobSchemaConfig {
168
- /** Port for the job server */
169
- port: number;
170
- /** Host address for the job server */
171
- host?: string;
172
- }
173
159
  /**
174
160
  * Complete job system configuration
175
161
  */
@@ -182,15 +168,8 @@ export interface JobsConfig {
182
168
  worker?: Partial<JobWorkerConfig>;
183
169
  /** Scheduler configuration */
184
170
  scheduler?: Partial<JobSchedulerConfig>;
185
- /** OpenFaaS specific configuration */
186
- openFaas?: {
187
- /** OpenFaaS worker config */
188
- worker?: Partial<OpenFaasJobWorkerConfig>;
189
- /** OpenFaaS server config */
190
- server?: Partial<OpenFaasJobServerConfig>;
191
- /** Gateway config */
192
- gateway?: Partial<JobGatewayConfig>;
193
- };
171
+ /** Job HTTP gateway configuration */
172
+ gateway?: Partial<JobGatewayConfig>;
194
173
  }
195
174
  /**
196
175
  * Default configuration values for job system
package/jobs.js CHANGED
@@ -41,16 +41,9 @@ exports.jobsDefaults = {
41
41
  pollInterval: 1000,
42
42
  gracefulShutdown: true
43
43
  },
44
- openFaas: {
45
- gateway: {
46
- gatewayUrl: 'http://gateway:8080',
47
- callbackUrl: 'http://callback:12345',
48
- callbackPort: 12345
49
- },
50
- server: {
51
- schema: 'app_jobs',
52
- port: 3000,
53
- host: 'localhost'
54
- }
44
+ gateway: {
45
+ gatewayUrl: 'http://gateway:8080',
46
+ callbackUrl: 'http://callback:12345',
47
+ callbackPort: 12345
55
48
  }
56
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/types",
3
- "version": "2.12.1",
3
+ "version": "2.12.3",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PGPM types",
6
6
  "main": "index.js",
@@ -29,7 +29,7 @@
29
29
  "test:watch": "jest --watch"
30
30
  },
31
31
  "dependencies": {
32
- "pg-env": "^1.2.1"
32
+ "pg-env": "^1.2.2"
33
33
  },
34
34
  "keywords": [
35
35
  "types",
@@ -42,5 +42,5 @@
42
42
  "devDependencies": {
43
43
  "makage": "^0.1.8"
44
44
  },
45
- "gitHead": "52828c38b144fdc02b6a9a0c8b0ff795d1752d53"
45
+ "gitHead": "86d74dc4fce9051df0d2b5bcc163607aba42f009"
46
46
  }
package/pgpm.js CHANGED
@@ -94,18 +94,6 @@ exports.pgpmDefaults = {
94
94
  supported: [],
95
95
  pollInterval: 1000,
96
96
  gracefulShutdown: true
97
- },
98
- openFaas: {
99
- gateway: {
100
- gatewayUrl: 'http://gateway:8080',
101
- callbackUrl: 'http://callback:12345',
102
- callbackPort: 12345
103
- },
104
- server: {
105
- schema: 'app_jobs',
106
- port: 3000,
107
- host: 'localhost'
108
- }
109
97
  }
110
98
  }
111
99
  };