bullmq-publish-lambda 0.1.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/build/generated/schema.json +59 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +43 -0
- package/build/index.js.map +1 -0
- package/build/schema.d.ts +4 -0
- package/build/schema.js +3 -0
- package/build/schema.js.map +1 -0
- package/package.json +19 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/Input",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"Input": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"payload": {},
|
|
9
|
+
"taskIdentifier": {
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"taskSpec": {
|
|
13
|
+
"$ref": "#/definitions/TaskSpec"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["taskIdentifier"],
|
|
17
|
+
"type": "object"
|
|
18
|
+
},
|
|
19
|
+
"TaskSpec": {
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"properties": {
|
|
22
|
+
"flags": {
|
|
23
|
+
"description": "Flags for the job, can be used to dynamically filter which jobs can and cannot run at runtime. (Default: null)",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"type": "array"
|
|
28
|
+
},
|
|
29
|
+
"jobKey": {
|
|
30
|
+
"description": "Unique identifier for the job, can be used to update or remove it later if needed. (Default: null)",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"jobKeyMode": {
|
|
34
|
+
"description": "Modifies the behavior of `jobKey`; when 'replace' all attributes will be updated, when 'preserve_run_at' all attributes except 'run_at' will be updated, when 'unsafe_dedupe' a new job will only be added if no existing job (including locked jobs and permanently failed jobs) with matching job key exists. (Default: 'replace')",
|
|
35
|
+
"enum": ["replace", "preserve_run_at", "unsafe_dedupe"],
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"maxAttempts": {
|
|
39
|
+
"description": "How many retries should this task get? (Default: 25)",
|
|
40
|
+
"type": "number"
|
|
41
|
+
},
|
|
42
|
+
"priority": {
|
|
43
|
+
"description": "Jobs are executed in numerically ascending order of priority (jobs with a numerically smaller priority are run first). (Default: 0)",
|
|
44
|
+
"type": "number"
|
|
45
|
+
},
|
|
46
|
+
"queueName": {
|
|
47
|
+
"description": "The queue to run this task under (only specify if you want jobs in this queue to run serially). (Default: null)",
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"runAt": {
|
|
51
|
+
"description": "A Date to schedule this task to run in the future. (Default: now)",
|
|
52
|
+
"format": "date-time",
|
|
53
|
+
"type": "string"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"type": "object"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
package/build/index.d.ts
ADDED
package/build/index.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.jsonSchema = void 0;
|
|
40
|
+
__exportStar(require("./schema"), exports);
|
|
41
|
+
const jsonSchema = __importStar(require("./generated/schema.json")); // eslint-disable-line import/first
|
|
42
|
+
exports.jsonSchema = jsonSchema;
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,oEAAqD,CAAC,mCAAmC;AAEhF,gCAAU"}
|
package/build/schema.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bullmq-publish-lambda",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Types for the bullmq-publish Lambda function",
|
|
5
|
+
"main": "build",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"prepare": "npm run build",
|
|
8
|
+
"prebuild": "../../node_modules/.bin/del build",
|
|
9
|
+
"build": "../../node_modules/.bin/tsc",
|
|
10
|
+
"prepublishOnly": "cd .. && npm run check-package-version",
|
|
11
|
+
"postpublish": "cd .. && npm run release"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"build"
|
|
15
|
+
],
|
|
16
|
+
"repository": "curvewise/bullmq-publish-lambda",
|
|
17
|
+
"author": "Metabolize LLC",
|
|
18
|
+
"license": "Apache-2.0"
|
|
19
|
+
}
|