@platelet-app/types 1.0.7 → 1.1.1
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/dist/API.d.ts +392 -392
- package/dist/API.js +18 -21
- package/dist/api.d.ts +9766 -0
- package/dist/api.js +77 -0
- package/dist/index.d.ts +1 -5
- package/dist/index.js +1 -41
- package/package.json +5 -13
- package/src/API.ts +10179 -0
- package/src/index.ts +1 -0
- package/tsconfig.json +15 -0
- package/dist/graphql/mutations.d.ts +0 -53
- package/dist/graphql/mutations.js +0 -3387
- package/dist/graphql/queries.d.ts +0 -53
- package/dist/graphql/queries.js +0 -2002
- package/dist/graphql/subscriptions.d.ts +0 -45
- package/dist/graphql/subscriptions.js +0 -2829
package/dist/api.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// This file was automatically generated and should not be edited.
|
|
4
|
+
export var ModelAttributeTypes;
|
|
5
|
+
(function (ModelAttributeTypes) {
|
|
6
|
+
ModelAttributeTypes["binary"] = "binary";
|
|
7
|
+
ModelAttributeTypes["binarySet"] = "binarySet";
|
|
8
|
+
ModelAttributeTypes["bool"] = "bool";
|
|
9
|
+
ModelAttributeTypes["list"] = "list";
|
|
10
|
+
ModelAttributeTypes["map"] = "map";
|
|
11
|
+
ModelAttributeTypes["number"] = "number";
|
|
12
|
+
ModelAttributeTypes["numberSet"] = "numberSet";
|
|
13
|
+
ModelAttributeTypes["string"] = "string";
|
|
14
|
+
ModelAttributeTypes["stringSet"] = "stringSet";
|
|
15
|
+
ModelAttributeTypes["_null"] = "_null";
|
|
16
|
+
})(ModelAttributeTypes || (ModelAttributeTypes = {}));
|
|
17
|
+
export var Role;
|
|
18
|
+
(function (Role) {
|
|
19
|
+
Role["USER"] = "USER";
|
|
20
|
+
Role["COORDINATOR"] = "COORDINATOR";
|
|
21
|
+
Role["RIDER"] = "RIDER";
|
|
22
|
+
Role["ADMIN"] = "ADMIN";
|
|
23
|
+
})(Role || (Role = {}));
|
|
24
|
+
export var CommentVisibility;
|
|
25
|
+
(function (CommentVisibility) {
|
|
26
|
+
CommentVisibility["EVERYONE"] = "EVERYONE";
|
|
27
|
+
CommentVisibility["ME"] = "ME";
|
|
28
|
+
})(CommentVisibility || (CommentVisibility = {}));
|
|
29
|
+
export var Priority;
|
|
30
|
+
(function (Priority) {
|
|
31
|
+
Priority["HIGH"] = "HIGH";
|
|
32
|
+
Priority["MEDIUM"] = "MEDIUM";
|
|
33
|
+
Priority["LOW"] = "LOW";
|
|
34
|
+
})(Priority || (Priority = {}));
|
|
35
|
+
export var DeliverableTypeIcon;
|
|
36
|
+
(function (DeliverableTypeIcon) {
|
|
37
|
+
DeliverableTypeIcon["BUG"] = "BUG";
|
|
38
|
+
DeliverableTypeIcon["CHILD"] = "CHILD";
|
|
39
|
+
DeliverableTypeIcon["DOCUMENT"] = "DOCUMENT";
|
|
40
|
+
DeliverableTypeIcon["EQUIPMENT"] = "EQUIPMENT";
|
|
41
|
+
DeliverableTypeIcon["OTHER"] = "OTHER";
|
|
42
|
+
})(DeliverableTypeIcon || (DeliverableTypeIcon = {}));
|
|
43
|
+
export var DeliverableUnit;
|
|
44
|
+
(function (DeliverableUnit) {
|
|
45
|
+
DeliverableUnit["NONE"] = "NONE";
|
|
46
|
+
DeliverableUnit["LITER"] = "LITER";
|
|
47
|
+
DeliverableUnit["MILLILITER"] = "MILLILITER";
|
|
48
|
+
DeliverableUnit["GRAM"] = "GRAM";
|
|
49
|
+
DeliverableUnit["ITEM"] = "ITEM";
|
|
50
|
+
DeliverableUnit["BOX"] = "BOX";
|
|
51
|
+
})(DeliverableUnit || (DeliverableUnit = {}));
|
|
52
|
+
export var TimeRelation;
|
|
53
|
+
(function (TimeRelation) {
|
|
54
|
+
TimeRelation["BEFORE"] = "BEFORE";
|
|
55
|
+
TimeRelation["AFTER"] = "AFTER";
|
|
56
|
+
TimeRelation["AT"] = "AT";
|
|
57
|
+
TimeRelation["ANYTIME"] = "ANYTIME";
|
|
58
|
+
TimeRelation["BETWEEN"] = "BETWEEN";
|
|
59
|
+
})(TimeRelation || (TimeRelation = {}));
|
|
60
|
+
export var TaskStatus;
|
|
61
|
+
(function (TaskStatus) {
|
|
62
|
+
TaskStatus["NEW"] = "NEW";
|
|
63
|
+
TaskStatus["ACTIVE"] = "ACTIVE";
|
|
64
|
+
TaskStatus["PICKED_UP"] = "PICKED_UP";
|
|
65
|
+
TaskStatus["DROPPED_OFF"] = "DROPPED_OFF";
|
|
66
|
+
TaskStatus["CANCELLED"] = "CANCELLED";
|
|
67
|
+
TaskStatus["REJECTED"] = "REJECTED";
|
|
68
|
+
TaskStatus["ABANDONED"] = "ABANDONED";
|
|
69
|
+
TaskStatus["COMPLETED"] = "COMPLETED";
|
|
70
|
+
TaskStatus["PENDING"] = "PENDING";
|
|
71
|
+
TaskStatus["FUTURE"] = "FUTURE";
|
|
72
|
+
})(TaskStatus || (TaskStatus = {}));
|
|
73
|
+
export var ModelSortDirection;
|
|
74
|
+
(function (ModelSortDirection) {
|
|
75
|
+
ModelSortDirection["ASC"] = "ASC";
|
|
76
|
+
ModelSortDirection["DESC"] = "DESC";
|
|
77
|
+
})(ModelSortDirection || (ModelSortDirection = {}));
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,41 +1 @@
|
|
|
1
|
-
|
|
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 __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.subscriptions = exports.queries = exports.mutations = exports.models = exports.API = void 0;
|
|
37
|
-
exports.API = __importStar(require("./API"));
|
|
38
|
-
exports.models = __importStar(require("./models"));
|
|
39
|
-
exports.mutations = __importStar(require("./graphql/mutations"));
|
|
40
|
-
exports.queries = __importStar(require("./graphql/queries"));
|
|
41
|
-
exports.subscriptions = __importStar(require("./graphql/subscriptions"));
|
|
1
|
+
export * from "./API";
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platelet-app/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Types for the platelet.app project",
|
|
5
|
-
"homepage": "https://
|
|
5
|
+
"homepage": "https://platelet.app",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/platelet-app/platelet/issues"
|
|
8
8
|
},
|
|
@@ -12,19 +12,11 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "Theo Cranmore <theo@platelet.app>",
|
|
15
|
-
"type": "
|
|
15
|
+
"type": "module",
|
|
16
16
|
"main": "dist/index.js",
|
|
17
17
|
"types": "dist/index.d.ts",
|
|
18
|
-
"files": [
|
|
19
|
-
"dist"
|
|
20
|
-
],
|
|
21
18
|
"scripts": {
|
|
22
|
-
"build": "tsc"
|
|
23
|
-
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"esm": "^3.2.25"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"typescript": "^4.8.3"
|
|
19
|
+
"build": "cd ../.. && amplify api gql-compile && amplify codegen && cp src/API.ts packages/types/src && cd packages/types && tsc --project tsconfig.json",
|
|
20
|
+
"prepublishOnly": "npm run build && npm version patch"
|
|
29
21
|
}
|
|
30
22
|
}
|