@vocollege/app 0.0.56 → 0.0.59
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/{types.d.ts → global.d.ts} +4 -0
- package/dist/{types.js → global.js} +0 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +9 -3
- package/dist/interceptor.js +41 -12
- package/dist/modules/Services/I18n/I18n.js +1 -1
- package/dist/modules/Services/I18n/strings.json +716 -21
- package/dist/modules/Services/Vapor/Vapor.js +15 -7
- package/dist/modules/VoApi/GraphClient.d.ts +3 -2
- package/dist/modules/VoApi/GraphClient.js +57 -14
- package/dist/modules/VoApi/VoApi.d.ts +4 -1
- package/dist/modules/VoApi/VoApi.js +20 -2
- package/dist/modules/VoApi/graphql.d.ts +32 -0
- package/dist/modules/VoApi/graphql.js +57 -0
- package/dist/modules/VoApi/index.d.ts +1 -21
- package/dist/modules/VoApi/index.js +7 -31
- package/dist/modules/VoApi/mutations/acl.js +5 -5
- package/dist/modules/VoApi/mutations/applications.d.ts +3 -0
- package/dist/modules/VoApi/mutations/applications.js +12 -0
- package/dist/modules/VoApi/mutations/articles.js +3 -3
- package/dist/modules/VoApi/mutations/books.d.ts +3 -0
- package/dist/modules/VoApi/mutations/books.js +12 -0
- package/dist/modules/VoApi/mutations/cards.d.ts +3 -0
- package/dist/modules/VoApi/mutations/cards.js +12 -0
- package/dist/modules/VoApi/mutations/events.d.ts +3 -0
- package/dist/modules/VoApi/mutations/events.js +12 -0
- package/dist/modules/VoApi/mutations/navigation.js +3 -3
- package/dist/modules/VoApi/mutations/pages.js +3 -3
- package/dist/modules/VoApi/mutations/queues.js +3 -3
- package/dist/modules/VoApi/mutations/sections.d.ts +3 -0
- package/dist/modules/VoApi/mutations/sections.js +12 -0
- package/dist/modules/VoApi/mutations/settings.js +1 -1
- package/dist/modules/VoApi/mutations/users.js +3 -3
- package/dist/modules/VoApi/mutations/vodocs.js +9 -9
- package/dist/modules/VoApi/mutations/vogroups.d.ts +1 -0
- package/dist/modules/VoApi/mutations/vogroups.js +10 -9
- package/dist/modules/VoApi/queries/acl.js +4 -4
- package/dist/modules/VoApi/queries/applications.d.ts +2 -0
- package/dist/modules/VoApi/queries/applications.js +11 -0
- package/dist/modules/VoApi/queries/articles.js +2 -2
- package/dist/modules/VoApi/queries/books.d.ts +4 -0
- package/dist/modules/VoApi/queries/books.js +13 -0
- package/dist/modules/VoApi/queries/cards.d.ts +2 -0
- package/dist/modules/VoApi/queries/cards.js +11 -0
- package/dist/modules/VoApi/queries/events.d.ts +2 -0
- package/dist/modules/VoApi/queries/events.js +11 -0
- package/dist/modules/VoApi/queries/help.d.ts +1 -0
- package/dist/modules/VoApi/queries/help.js +11 -0
- package/dist/modules/VoApi/queries/navigation.js +4 -4
- package/dist/modules/VoApi/queries/pages.js +2 -2
- package/dist/modules/VoApi/queries/queues.js +2 -2
- package/dist/modules/VoApi/queries/search.d.ts +2 -0
- package/dist/modules/VoApi/queries/search.js +5 -3
- package/dist/modules/VoApi/queries/sections.d.ts +2 -0
- package/dist/modules/VoApi/queries/sections.js +11 -0
- package/dist/modules/VoApi/queries/settings.js +1 -1
- package/dist/modules/VoApi/queries/users.d.ts +1 -0
- package/dist/modules/VoApi/queries/users.js +5 -4
- package/dist/modules/VoApi/queries/vodocs.js +3 -3
- package/dist/modules/VoApi/queries/vogroups.d.ts +1 -0
- package/dist/modules/VoApi/queries/vogroups.js +9 -8
- package/dist/modules/VoApp.d.ts +1 -0
- package/dist/modules/VoApp.js +17 -0
- package/dist/modules/VoAuth.d.ts +2 -1
- package/dist/modules/VoAuth.js +126 -42
- package/dist/modules/VoBase.js +2 -2
- package/dist/modules/VoConfig.js +10 -0
- package/dist/modules/VoDocs/VoDocs.d.ts +1 -2
- package/dist/modules/VoDocs/VoDocs.js +12 -44
- package/dist/modules/VoGroups.d.ts +7 -0
- package/dist/modules/VoGroups.js +39 -0
- package/dist/modules/VoHelpers.d.ts +38 -1
- package/dist/modules/VoHelpers.js +348 -51
- package/dist/modules/VoRouter.js +10 -2
- package/dist/modules/{VoUtils.d.ts → VoUtils_REMOVE.d.ts} +1 -1
- package/dist/modules/{VoUtils.js → VoUtils_REMOVE.js} +16 -12
- package/package.json +17 -8
- package/src/global.ts +44 -0
- package/src/index.ts +3 -2
- package/src/interceptor.ts +39 -8
- package/src/modules/Services/I18n/strings.json +718 -22
- package/src/modules/Services/Vapor/Vapor.ts +14 -15
- package/src/modules/VoApi/GraphClient.ts +87 -24
- package/src/modules/VoApi/VoApi.ts +23 -3
- package/src/modules/VoApi/graphql.ts +47 -0
- package/src/modules/VoApi/index.ts +1 -37
- package/src/modules/VoApi/mutations/applications.ts +27 -0
- package/src/modules/VoApi/mutations/books.ts +27 -0
- package/src/modules/VoApi/mutations/cards.ts +27 -0
- package/src/modules/VoApi/mutations/events.ts +27 -0
- package/src/modules/VoApi/mutations/queues.ts +9 -1
- package/src/modules/VoApi/mutations/sections.ts +27 -0
- package/src/modules/VoApi/mutations/settings.ts +11 -3
- package/src/modules/VoApi/mutations/users.ts +19 -9
- package/src/modules/VoApi/mutations/vodocs.ts +4 -0
- package/src/modules/VoApi/mutations/vogroups.ts +21 -7
- package/src/modules/VoApi/queries/applications.ts +71 -0
- package/src/modules/VoApi/queries/articles.ts +26 -4
- package/src/modules/VoApi/queries/books.ts +101 -0
- package/src/modules/VoApi/queries/cards.ts +87 -0
- package/src/modules/VoApi/queries/events.ts +80 -0
- package/src/modules/VoApi/queries/help.ts +12 -0
- package/src/modules/VoApi/queries/navigation.ts +3 -4
- package/src/modules/VoApi/queries/pages.ts +29 -4
- package/src/modules/VoApi/queries/queues.ts +69 -4
- package/src/modules/VoApi/queries/search.ts +105 -4
- package/src/modules/VoApi/queries/sections.ts +63 -0
- package/src/modules/VoApi/queries/settings.ts +9 -3
- package/src/modules/VoApi/queries/users.ts +93 -8
- package/src/modules/VoApi/queries/vodocs.ts +8 -4
- package/src/modules/VoApi/queries/vogroups.ts +48 -2
- package/src/modules/VoApp.ts +25 -8
- package/src/modules/VoAuth.ts +136 -37
- package/src/modules/VoConfig.ts +13 -0
- package/src/modules/VoDocs/VoDocs.ts +31 -58
- package/src/modules/VoGroups.ts +33 -0
- package/src/modules/VoHelpers.ts +283 -43
- package/src/modules/VoRouter.ts +10 -3
- package/src/modules/{VoUtils.ts → VoUtils_REMOVE.ts} +17 -13
- package/src/types.ts +0 -38
|
@@ -75,7 +75,9 @@ var Vapor = /** @class */ (function () {
|
|
|
75
75
|
var response, instance, headers, cancelToken;
|
|
76
76
|
return __generator(this, function (_a) {
|
|
77
77
|
switch (_a.label) {
|
|
78
|
-
case 0: return [4 /*yield*/, axios_1.default.post(
|
|
78
|
+
case 0: return [4 /*yield*/, axios_1.default.post(
|
|
79
|
+
// "/vapor/signed-storage-url",
|
|
80
|
+
"/api/v1/vapor/signed-storage-url", {
|
|
79
81
|
bucket: options.bucket || "",
|
|
80
82
|
content_type: options.contentType || file.type,
|
|
81
83
|
expires: options.expires || "",
|
|
@@ -97,12 +99,18 @@ var Vapor = /** @class */ (function () {
|
|
|
97
99
|
return [4 /*yield*/, instance.put(response.data.url, file, {
|
|
98
100
|
cancelToken: cancelToken,
|
|
99
101
|
headers: headers,
|
|
100
|
-
onUploadProgress: function (progressEvent) {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
// onUploadProgress: function (progressEvent: any) {
|
|
103
|
+
// // console.log("progressEvent.loaded", progressEvent.loaded);
|
|
104
|
+
// // options.progress(progressEvent.loaded / progressEvent.total);
|
|
105
|
+
// // let percentCompleted = Math.round(
|
|
106
|
+
// // (progressEvent.loaded * 100) / progressEvent.total
|
|
107
|
+
// // );
|
|
108
|
+
// // console.log(
|
|
109
|
+
// // "onUploadProgress called with",
|
|
110
|
+
// // arguments,
|
|
111
|
+
// // "Percent Completed:" + percentCompleted
|
|
112
|
+
// // );
|
|
113
|
+
// },
|
|
106
114
|
})];
|
|
107
115
|
case 2:
|
|
108
116
|
_a.sent();
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ApolloClient, ApolloLink } from "@apollo/client";
|
|
2
|
+
import { GeneralObject } from "../../global";
|
|
2
3
|
declare class GraphClient {
|
|
3
|
-
static createGraphClient(url: string, uploadLink?: boolean): ApolloClient<import("@apollo/client").NormalizedCacheObject>;
|
|
4
|
-
static getGraphClientLinks(): {
|
|
4
|
+
static createGraphClient(url: string, uploadLink?: boolean, params?: GeneralObject): ApolloClient<import("@apollo/client").NormalizedCacheObject>;
|
|
5
|
+
static getGraphClientLinks(params?: GeneralObject): {
|
|
5
6
|
errorLink: ApolloLink;
|
|
6
7
|
authLink: ApolloLink;
|
|
7
8
|
};
|
|
@@ -53,8 +53,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
53
53
|
var client_1 = require("@apollo/client");
|
|
54
54
|
var error_1 = require("@apollo/client/link/error");
|
|
55
55
|
var apollo_upload_client_1 = require("apollo-upload-client");
|
|
56
|
+
// import { getMainDefinition } from "@apollo/client/utilities";
|
|
57
|
+
// import { WebSocketLink } from "@apollo/client/link/ws";
|
|
56
58
|
var VoAuth_1 = __importDefault(require("../VoAuth"));
|
|
57
59
|
var VoRouter_1 = __importDefault(require("../VoRouter"));
|
|
60
|
+
// import ws from "ws";
|
|
61
|
+
var VoGroups_1 = __importDefault(require("../VoGroups"));
|
|
58
62
|
function redirect() {
|
|
59
63
|
return __awaiter(this, void 0, void 0, function () {
|
|
60
64
|
return __generator(this, function (_a) {
|
|
@@ -71,8 +75,9 @@ function redirect() {
|
|
|
71
75
|
var GraphClient = /** @class */ (function () {
|
|
72
76
|
function GraphClient() {
|
|
73
77
|
}
|
|
74
|
-
GraphClient.createGraphClient = function (url, uploadLink) {
|
|
78
|
+
GraphClient.createGraphClient = function (url, uploadLink, params) {
|
|
75
79
|
if (uploadLink === void 0) { uploadLink = false; }
|
|
80
|
+
if (params === void 0) { params = {}; }
|
|
76
81
|
var httpLink;
|
|
77
82
|
if (!uploadLink) {
|
|
78
83
|
// Create a httpLink to send GraphQL operations over HTTP.
|
|
@@ -80,20 +85,44 @@ var GraphClient = /** @class */ (function () {
|
|
|
80
85
|
}
|
|
81
86
|
else {
|
|
82
87
|
// Create a Apollo Link capable of file uploads.
|
|
83
|
-
httpLink = apollo_upload_client_1.createUploadLink({ uri: url });
|
|
88
|
+
httpLink = (0, apollo_upload_client_1.createUploadLink)({ uri: url });
|
|
84
89
|
}
|
|
90
|
+
// const wsLink = new WebSocketLink({
|
|
91
|
+
// uri: wsUrl,
|
|
92
|
+
// options: {
|
|
93
|
+
// reconnect: true,
|
|
94
|
+
// },
|
|
95
|
+
// // webSocketImpl: ws,
|
|
96
|
+
// });
|
|
97
|
+
// The split function takes three parameters:
|
|
98
|
+
//
|
|
99
|
+
// * A function that's called for each operation to execute
|
|
100
|
+
// * The Link to use for an operation if the function returns a "truthy" value
|
|
101
|
+
// * The Link to use for an operation if the function returns a "falsy" value
|
|
102
|
+
// const splitLink = split(
|
|
103
|
+
// ({ query }) => {
|
|
104
|
+
// const definition = getMainDefinition(query);
|
|
105
|
+
// return (
|
|
106
|
+
// definition.kind === "OperationDefinition" &&
|
|
107
|
+
// definition.operation === "subscription"
|
|
108
|
+
// );
|
|
109
|
+
// },
|
|
110
|
+
// wsLink,
|
|
111
|
+
// httpLink
|
|
112
|
+
// );
|
|
85
113
|
// Get other Apollo Links.
|
|
86
114
|
// const links = this.getGraphClientLinks(getToken, refreshToken);
|
|
87
|
-
var links = this.getGraphClientLinks();
|
|
115
|
+
var links = this.getGraphClientLinks(params);
|
|
88
116
|
return new client_1.ApolloClient({
|
|
89
117
|
cache: new client_1.InMemoryCache(),
|
|
90
|
-
link: client_1.from([links.errorLink, links.authLink, httpLink]),
|
|
118
|
+
link: (0, client_1.from)([links.errorLink, links.authLink, httpLink]),
|
|
91
119
|
});
|
|
92
120
|
};
|
|
93
|
-
GraphClient.getGraphClientLinks = function () {
|
|
121
|
+
GraphClient.getGraphClientLinks = function (params) {
|
|
122
|
+
if (params === void 0) { params = {}; }
|
|
94
123
|
// Create an errorLink to handle errors, e.g. when the token has expired
|
|
95
124
|
// and has to be renewed. This works as an interceptor for GraphQL calls.
|
|
96
|
-
var errorLink = error_1.onError(function (_a) {
|
|
125
|
+
var errorLink = (0, error_1.onError)(function (_a) {
|
|
97
126
|
var graphQLErrors = _a.graphQLErrors, networkError = _a.networkError, operation = _a.operation, forward = _a.forward;
|
|
98
127
|
if (graphQLErrors)
|
|
99
128
|
for (var _i = 0, graphQLErrors_1 = graphQLErrors; _i < graphQLErrors_1.length; _i++) {
|
|
@@ -101,11 +130,12 @@ var GraphClient = /** @class */ (function () {
|
|
|
101
130
|
switch (err.message) {
|
|
102
131
|
case "Unauthenticated.":
|
|
103
132
|
return new client_1.Observable(function (observer) {
|
|
104
|
-
VoAuth_1.default.refreshToken()
|
|
133
|
+
VoAuth_1.default.refreshToken()
|
|
134
|
+
.then(function (token) {
|
|
105
135
|
var oldHeaders = operation.getContext().headers;
|
|
106
136
|
operation.setContext({
|
|
107
137
|
headers: __assign(__assign({}, oldHeaders), { Authorization: token
|
|
108
|
-
? token.token_type
|
|
138
|
+
? "".concat(token.token_type, " ").concat(token.access_token)
|
|
109
139
|
: "" }),
|
|
110
140
|
});
|
|
111
141
|
var subscriber = {
|
|
@@ -114,27 +144,40 @@ var GraphClient = /** @class */ (function () {
|
|
|
114
144
|
complete: observer.complete.bind(observer),
|
|
115
145
|
};
|
|
116
146
|
forward(operation).subscribe(subscriber);
|
|
147
|
+
})
|
|
148
|
+
.catch(function (error) {
|
|
149
|
+
console.error(error);
|
|
150
|
+
redirect();
|
|
117
151
|
});
|
|
118
152
|
});
|
|
119
153
|
}
|
|
120
154
|
}
|
|
121
155
|
if (networkError) {
|
|
122
|
-
console.log("[Network error]: "
|
|
156
|
+
console.log("[Network error]: ".concat(networkError));
|
|
123
157
|
// @TODO Handle network error, e.g. through @apollo/client/link/retry
|
|
124
|
-
if ("statusCode" in networkError && networkError.statusCode === 403) {
|
|
125
|
-
|
|
126
|
-
}
|
|
158
|
+
// if ("statusCode" in networkError && networkError.statusCode === 403) {
|
|
159
|
+
// redirect();
|
|
160
|
+
// }
|
|
127
161
|
}
|
|
128
162
|
});
|
|
129
163
|
// Create authLink that ensures that all calls include
|
|
130
164
|
// the access token.
|
|
131
165
|
var authLink = new client_1.ApolloLink(function (operation, forward) {
|
|
132
|
-
var token = VoAuth_1.default.getToken();
|
|
166
|
+
var token = params.token || VoAuth_1.default.getToken();
|
|
133
167
|
var currentHeaders = operation.getContext().headers;
|
|
168
|
+
var groupId = "";
|
|
169
|
+
if (params.group) {
|
|
170
|
+
groupId = params.group;
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
var currentGroup = VoGroups_1.default.getCurrent(true);
|
|
174
|
+
groupId = currentGroup ? currentGroup.id : "";
|
|
175
|
+
}
|
|
134
176
|
operation.setContext(function () { return (__assign(__assign({}, currentHeaders), { headers: {
|
|
135
177
|
Authorization: token
|
|
136
|
-
? token.token_type
|
|
178
|
+
? "".concat(token.token_type, " ").concat(token.access_token)
|
|
137
179
|
: "",
|
|
180
|
+
VoGroup: groupId,
|
|
138
181
|
} })); });
|
|
139
182
|
return forward(operation);
|
|
140
183
|
});
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import VoBase from "../VoBase";
|
|
2
|
+
import { GeneralObject } from "../../global";
|
|
2
3
|
declare class VoApi extends VoBase {
|
|
3
4
|
graphqlClient: any;
|
|
4
|
-
|
|
5
|
+
graphqlSubscriptionClient: any;
|
|
6
|
+
init(params?: GeneralObject): void;
|
|
5
7
|
get getGraphqlUrl(): string;
|
|
8
|
+
get getGraphqlSubscriptionUrl(): string;
|
|
6
9
|
getUser(): Promise<import("axios").AxiosResponse<any>>;
|
|
7
10
|
logout(): Promise<boolean>;
|
|
8
11
|
}
|
|
@@ -7,6 +7,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -57,22 +59,38 @@ var axios_1 = __importDefault(require("axios"));
|
|
|
57
59
|
// Custom.
|
|
58
60
|
var GraphClient_1 = __importDefault(require("./GraphClient"));
|
|
59
61
|
var VoBase_1 = __importDefault(require("../VoBase"));
|
|
62
|
+
// import VoAuth from "../VoAuth";
|
|
60
63
|
var VoConfig_1 = __importDefault(require("../VoConfig"));
|
|
61
64
|
var VoApi = /** @class */ (function (_super) {
|
|
62
65
|
__extends(VoApi, _super);
|
|
63
66
|
function VoApi() {
|
|
64
67
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
65
68
|
}
|
|
66
|
-
VoApi.prototype.init = function () {
|
|
67
|
-
|
|
69
|
+
VoApi.prototype.init = function (params) {
|
|
70
|
+
if (params === void 0) { params = {}; }
|
|
71
|
+
this.graphqlClient = GraphClient_1.default.createGraphClient(this.getGraphqlUrl, false, params);
|
|
68
72
|
};
|
|
69
73
|
Object.defineProperty(VoApi.prototype, "getGraphqlUrl", {
|
|
74
|
+
// initSubscriptions() {
|
|
75
|
+
// this.graphqlSubscriptionClient = GraphClient.createGraphSubscriptionClient(
|
|
76
|
+
// this.getGraphqlSubscriptionUrl
|
|
77
|
+
// );
|
|
78
|
+
// }
|
|
70
79
|
get: function () {
|
|
71
80
|
return VoConfig_1.default.get.API_BASE_URL + "" + VoConfig_1.default.get.API_GRAPHQL;
|
|
72
81
|
},
|
|
73
82
|
enumerable: false,
|
|
74
83
|
configurable: true
|
|
75
84
|
});
|
|
85
|
+
Object.defineProperty(VoApi.prototype, "getGraphqlSubscriptionUrl", {
|
|
86
|
+
get: function () {
|
|
87
|
+
return (VoConfig_1.default.get.API_SUBSCRIPTIONS_BASE_URL +
|
|
88
|
+
"" +
|
|
89
|
+
VoConfig_1.default.get.API_GRAPHQL_SUBSCRIPTIONS);
|
|
90
|
+
},
|
|
91
|
+
enumerable: false,
|
|
92
|
+
configurable: true
|
|
93
|
+
});
|
|
76
94
|
VoApi.prototype.getUser = function () {
|
|
77
95
|
return __awaiter(this, void 0, void 0, function () {
|
|
78
96
|
var user, error_1;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export * from "./queries/applications";
|
|
2
|
+
export * from "./queries/articles";
|
|
3
|
+
export * from "./queries/acl";
|
|
4
|
+
export * from "./queries/books";
|
|
5
|
+
export * from "./queries/cards";
|
|
6
|
+
export * from "./queries/events";
|
|
7
|
+
export * from "./queries/help";
|
|
8
|
+
export * from "./queries/navigation";
|
|
9
|
+
export * from "./queries/pages";
|
|
10
|
+
export * from "./queries/queues";
|
|
11
|
+
export * from "./queries/users";
|
|
12
|
+
export * from "./queries/vodocs";
|
|
13
|
+
export * from "./queries/vogroups";
|
|
14
|
+
export * from "./queries/settings";
|
|
15
|
+
export * from "./queries/search";
|
|
16
|
+
export * from "./queries/sections";
|
|
17
|
+
export * from "./mutations/users";
|
|
18
|
+
export * from "./mutations/acl";
|
|
19
|
+
export * from "./mutations/applications";
|
|
20
|
+
export * from "./mutations/articles";
|
|
21
|
+
export * from "./mutations/books";
|
|
22
|
+
export * from "./mutations/cards";
|
|
23
|
+
export * from "./mutations/events";
|
|
24
|
+
export * from "./mutations/navigation";
|
|
25
|
+
export * from "./mutations/pages";
|
|
26
|
+
export * from "./mutations/queues";
|
|
27
|
+
export * from "./mutations/settings";
|
|
28
|
+
export * from "./mutations/sections";
|
|
29
|
+
export * from "./mutations/vodocs";
|
|
30
|
+
export * from "./mutations/vogroups";
|
|
31
|
+
export declare const fakeMutation: import("@apollo/client").DocumentNode;
|
|
32
|
+
export declare const fakeQuery: import("@apollo/client").DocumentNode;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.fakeQuery = exports.fakeMutation = void 0;
|
|
22
|
+
var client_1 = require("@apollo/client");
|
|
23
|
+
// Queries.
|
|
24
|
+
__exportStar(require("./queries/applications"), exports);
|
|
25
|
+
__exportStar(require("./queries/articles"), exports);
|
|
26
|
+
__exportStar(require("./queries/acl"), exports);
|
|
27
|
+
__exportStar(require("./queries/books"), exports);
|
|
28
|
+
__exportStar(require("./queries/cards"), exports);
|
|
29
|
+
__exportStar(require("./queries/events"), exports);
|
|
30
|
+
__exportStar(require("./queries/help"), exports);
|
|
31
|
+
__exportStar(require("./queries/navigation"), exports);
|
|
32
|
+
__exportStar(require("./queries/pages"), exports);
|
|
33
|
+
__exportStar(require("./queries/queues"), exports);
|
|
34
|
+
__exportStar(require("./queries/users"), exports);
|
|
35
|
+
__exportStar(require("./queries/vodocs"), exports);
|
|
36
|
+
__exportStar(require("./queries/vogroups"), exports);
|
|
37
|
+
__exportStar(require("./queries/settings"), exports);
|
|
38
|
+
__exportStar(require("./queries/search"), exports);
|
|
39
|
+
__exportStar(require("./queries/sections"), exports);
|
|
40
|
+
// Mutations.
|
|
41
|
+
__exportStar(require("./mutations/users"), exports);
|
|
42
|
+
__exportStar(require("./mutations/acl"), exports);
|
|
43
|
+
__exportStar(require("./mutations/applications"), exports);
|
|
44
|
+
__exportStar(require("./mutations/articles"), exports);
|
|
45
|
+
__exportStar(require("./mutations/books"), exports);
|
|
46
|
+
__exportStar(require("./mutations/cards"), exports);
|
|
47
|
+
__exportStar(require("./mutations/events"), exports);
|
|
48
|
+
__exportStar(require("./mutations/navigation"), exports);
|
|
49
|
+
__exportStar(require("./mutations/pages"), exports);
|
|
50
|
+
__exportStar(require("./mutations/queues"), exports);
|
|
51
|
+
__exportStar(require("./mutations/settings"), exports);
|
|
52
|
+
__exportStar(require("./mutations/sections"), exports);
|
|
53
|
+
__exportStar(require("./mutations/vodocs"), exports);
|
|
54
|
+
__exportStar(require("./mutations/vogroups"), exports);
|
|
55
|
+
exports.fakeMutation = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation fake {\n id\n }\n"], ["\n mutation fake {\n id\n }\n"])));
|
|
56
|
+
exports.fakeQuery = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query fake {\n id\n }\n"], ["\n query fake {\n id\n }\n"])));
|
|
57
|
+
var templateObject_1, templateObject_2;
|
|
@@ -2,24 +2,4 @@ import VoApi from "./VoApi";
|
|
|
2
2
|
import GraphClient from "./GraphClient";
|
|
3
3
|
export default VoApi;
|
|
4
4
|
export { VoApi, GraphClient };
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./queries/acl";
|
|
7
|
-
export * from "./queries/navigation";
|
|
8
|
-
export * from "./queries/pages";
|
|
9
|
-
export * from "./queries/queues";
|
|
10
|
-
export * from "./queries/users";
|
|
11
|
-
export * from "./queries/vodocs";
|
|
12
|
-
export * from "./queries/vogroups";
|
|
13
|
-
export * from "./queries/settings";
|
|
14
|
-
export * from "./queries/search";
|
|
15
|
-
export * from "./mutations/users";
|
|
16
|
-
export * from "./mutations/acl";
|
|
17
|
-
export * from "./mutations/articles";
|
|
18
|
-
export * from "./mutations/navigation";
|
|
19
|
-
export * from "./mutations/pages";
|
|
20
|
-
export * from "./mutations/queues";
|
|
21
|
-
export * from "./mutations/settings";
|
|
22
|
-
export * from "./mutations/vodocs";
|
|
23
|
-
export * from "./mutations/vogroups";
|
|
24
|
-
export declare const fakeMutation: import("@apollo/client").DocumentNode;
|
|
25
|
-
export declare const fakeQuery: import("@apollo/client").DocumentNode;
|
|
5
|
+
export * from "./graphql";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
3
|
if (k2 === undefined) k2 = k;
|
|
8
|
-
Object.
|
|
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
9
|
}) : (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
@@ -17,34 +17,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.
|
|
20
|
+
exports.GraphClient = exports.VoApi = void 0;
|
|
21
21
|
var VoApi_1 = __importDefault(require("./VoApi"));
|
|
22
22
|
exports.VoApi = VoApi_1.default;
|
|
23
23
|
var GraphClient_1 = __importDefault(require("./GraphClient"));
|
|
24
24
|
exports.GraphClient = GraphClient_1.default;
|
|
25
25
|
exports.default = VoApi_1.default;
|
|
26
|
-
|
|
27
|
-
// Queries.
|
|
28
|
-
__exportStar(require("./queries/articles"), exports);
|
|
29
|
-
__exportStar(require("./queries/acl"), exports);
|
|
30
|
-
__exportStar(require("./queries/navigation"), exports);
|
|
31
|
-
__exportStar(require("./queries/pages"), exports);
|
|
32
|
-
__exportStar(require("./queries/queues"), exports);
|
|
33
|
-
__exportStar(require("./queries/users"), exports);
|
|
34
|
-
__exportStar(require("./queries/vodocs"), exports);
|
|
35
|
-
__exportStar(require("./queries/vogroups"), exports);
|
|
36
|
-
__exportStar(require("./queries/settings"), exports);
|
|
37
|
-
__exportStar(require("./queries/search"), exports);
|
|
38
|
-
// Mutations.
|
|
39
|
-
__exportStar(require("./mutations/users"), exports);
|
|
40
|
-
__exportStar(require("./mutations/acl"), exports);
|
|
41
|
-
__exportStar(require("./mutations/articles"), exports);
|
|
42
|
-
__exportStar(require("./mutations/navigation"), exports);
|
|
43
|
-
__exportStar(require("./mutations/pages"), exports);
|
|
44
|
-
__exportStar(require("./mutations/queues"), exports);
|
|
45
|
-
__exportStar(require("./mutations/settings"), exports);
|
|
46
|
-
__exportStar(require("./mutations/vodocs"), exports);
|
|
47
|
-
__exportStar(require("./mutations/vogroups"), exports);
|
|
48
|
-
exports.fakeMutation = client_1.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation fake {\n id\n }\n"], ["\n mutation fake {\n id\n }\n"])));
|
|
49
|
-
exports.fakeQuery = client_1.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query fake {\n id\n }\n"], ["\n query fake {\n id\n }\n"])));
|
|
50
|
-
var templateObject_1, templateObject_2;
|
|
26
|
+
__exportStar(require("./graphql"), exports);
|
|
@@ -6,9 +6,9 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.UPDATE_PERMISSIONS = exports.UPDATE_PERMISSION = exports.DELETE_ROLE = exports.UPDATE_ROLE = exports.CREATE_ROLE = void 0;
|
|
8
8
|
var client_1 = require("@apollo/client");
|
|
9
|
-
exports.CREATE_ROLE = client_1.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation CreateRole($input: UpdateRoleInput!) {\n createRole(input: $input) {\n id\n name\n label,\n }\n }\n"], ["\n mutation CreateRole($input: UpdateRoleInput!) {\n createRole(input: $input) {\n id\n name\n label,\n }\n }\n"])));
|
|
10
|
-
exports.UPDATE_ROLE = client_1.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation UpdateRole($id: ID!, $input: UpdateRoleInput!) {\n updateRole(id: $id, input: $input) {\n id\n name\n label,\n }\n }\n"], ["\n mutation UpdateRole($id: ID!, $input: UpdateRoleInput!) {\n updateRole(id: $id, input: $input) {\n id\n name\n label,\n }\n }\n"])));
|
|
11
|
-
exports.DELETE_ROLE = client_1.gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation DeleteRole($id: ID!) {\n deleteRole(id: $id) {\n id\n name\n label,\n }\n }\n"], ["\n mutation DeleteRole($id: ID!) {\n deleteRole(id: $id) {\n id\n name\n label,\n }\n }\n"])));
|
|
12
|
-
exports.UPDATE_PERMISSION = client_1.gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n mutation UpdatePermission($id: ID!, $roles: [ID!]) {\n updatePermission(id: $id, roles: { sync: $roles } ) {\n id\n subject\n name\n label,\n roles {\n id\n }\n }\n }\n"], ["\n mutation UpdatePermission($id: ID!, $roles: [ID!]) {\n updatePermission(id: $id, roles: { sync: $roles } ) {\n id\n subject\n name\n label,\n roles {\n id\n }\n }\n }\n"])));
|
|
13
|
-
exports.UPDATE_PERMISSIONS = client_1.gql(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n mutation UpdatePermissions($input: [UpdatePermissionInput!]!) {\n updatePermissions(input: $input) {\n id\n subject\n name\n label\n roles {\n id\n }\n }\n }\n"], ["\n mutation UpdatePermissions($input: [UpdatePermissionInput!]!) {\n updatePermissions(input: $input) {\n id\n subject\n name\n label\n roles {\n id\n }\n }\n }\n"])));
|
|
9
|
+
exports.CREATE_ROLE = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation CreateRole($input: UpdateRoleInput!) {\n createRole(input: $input) {\n id\n name\n label,\n }\n }\n"], ["\n mutation CreateRole($input: UpdateRoleInput!) {\n createRole(input: $input) {\n id\n name\n label,\n }\n }\n"])));
|
|
10
|
+
exports.UPDATE_ROLE = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation UpdateRole($id: ID!, $input: UpdateRoleInput!) {\n updateRole(id: $id, input: $input) {\n id\n name\n label,\n }\n }\n"], ["\n mutation UpdateRole($id: ID!, $input: UpdateRoleInput!) {\n updateRole(id: $id, input: $input) {\n id\n name\n label,\n }\n }\n"])));
|
|
11
|
+
exports.DELETE_ROLE = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation DeleteRole($id: ID!) {\n deleteRole(id: $id) {\n id\n name\n label,\n }\n }\n"], ["\n mutation DeleteRole($id: ID!) {\n deleteRole(id: $id) {\n id\n name\n label,\n }\n }\n"])));
|
|
12
|
+
exports.UPDATE_PERMISSION = (0, client_1.gql)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n mutation UpdatePermission($id: ID!, $roles: [ID!]) {\n updatePermission(id: $id, roles: { sync: $roles } ) {\n id\n subject\n name\n label,\n roles {\n id\n }\n }\n }\n"], ["\n mutation UpdatePermission($id: ID!, $roles: [ID!]) {\n updatePermission(id: $id, roles: { sync: $roles } ) {\n id\n subject\n name\n label,\n roles {\n id\n }\n }\n }\n"])));
|
|
13
|
+
exports.UPDATE_PERMISSIONS = (0, client_1.gql)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n mutation UpdatePermissions($input: [UpdatePermissionInput!]!) {\n updatePermissions(input: $input) {\n id\n subject\n name\n label\n roles {\n id\n }\n }\n }\n"], ["\n mutation UpdatePermissions($input: [UpdatePermissionInput!]!) {\n updatePermissions(input: $input) {\n id\n subject\n name\n label\n roles {\n id\n }\n }\n }\n"])));
|
|
14
14
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.DELETE_APPLICATION = exports.UPDATE_APPLICATION = exports.CREATE_APPLICATION = void 0;
|
|
8
|
+
var client_1 = require("@apollo/client");
|
|
9
|
+
exports.CREATE_APPLICATION = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation CreateApplication($input: UpdateApplicationInput!) {\n createApplication(input: $input) {\n id\n email\n }\n }\n"], ["\n mutation CreateApplication($input: UpdateApplicationInput!) {\n createApplication(input: $input) {\n id\n email\n }\n }\n"])));
|
|
10
|
+
exports.UPDATE_APPLICATION = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation UpdateApplication($id: ID!, $input: UpdateApplicationInput!) {\n updateApplication(id: $id, input: $input) {\n id\n email\n }\n }\n"], ["\n mutation UpdateApplication($id: ID!, $input: UpdateApplicationInput!) {\n updateApplication(id: $id, input: $input) {\n id\n email\n }\n }\n"])));
|
|
11
|
+
exports.DELETE_APPLICATION = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation DeleteApplication($id: ID!) {\n deleteApplication(id: $id) {\n id\n }\n }\n"], ["\n mutation DeleteApplication($id: ID!) {\n deleteApplication(id: $id) {\n id\n }\n }\n"])));
|
|
12
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -6,7 +6,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.DELETE_ARTICLE = exports.UPDATE_ARTICLE = exports.CREATE_ARTICLE = void 0;
|
|
8
8
|
var client_1 = require("@apollo/client");
|
|
9
|
-
exports.CREATE_ARTICLE = client_1.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation CreateArticle($input: UpdateArticleInput!) {\n createArticle(input: $input) {\n id\n title\n }\n }\n"], ["\n mutation CreateArticle($input: UpdateArticleInput!) {\n createArticle(input: $input) {\n id\n title\n }\n }\n"])));
|
|
10
|
-
exports.UPDATE_ARTICLE = client_1.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation UpdateArticle($id: ID!, $input: UpdateArticleInput!) {\n updateArticle(id: $id, input: $input) {\n id\n title\n }\n }\n"], ["\n mutation UpdateArticle($id: ID!, $input: UpdateArticleInput!) {\n updateArticle(id: $id, input: $input) {\n id\n title\n }\n }\n"])));
|
|
11
|
-
exports.DELETE_ARTICLE = client_1.gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation DeleteArticle($id: ID!) {\n deleteArticle(id: $id) {\n id\n }\n }\n"], ["\n mutation DeleteArticle($id: ID!) {\n deleteArticle(id: $id) {\n id\n }\n }\n"])));
|
|
9
|
+
exports.CREATE_ARTICLE = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation CreateArticle($input: UpdateArticleInput!) {\n createArticle(input: $input) {\n id\n title\n }\n }\n"], ["\n mutation CreateArticle($input: UpdateArticleInput!) {\n createArticle(input: $input) {\n id\n title\n }\n }\n"])));
|
|
10
|
+
exports.UPDATE_ARTICLE = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation UpdateArticle($id: ID!, $input: UpdateArticleInput!) {\n updateArticle(id: $id, input: $input) {\n id\n title\n }\n }\n"], ["\n mutation UpdateArticle($id: ID!, $input: UpdateArticleInput!) {\n updateArticle(id: $id, input: $input) {\n id\n title\n }\n }\n"])));
|
|
11
|
+
exports.DELETE_ARTICLE = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation DeleteArticle($id: ID!) {\n deleteArticle(id: $id) {\n id\n }\n }\n"], ["\n mutation DeleteArticle($id: ID!) {\n deleteArticle(id: $id) {\n id\n }\n }\n"])));
|
|
12
12
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.DELETE_BOOK = exports.UPDATE_BOOK = exports.CREATE_BOOK = void 0;
|
|
8
|
+
var client_1 = require("@apollo/client");
|
|
9
|
+
exports.CREATE_BOOK = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation CreateBook($input: UpdateBookInput!) {\n createBook(input: $input) {\n id\n title\n }\n }\n"], ["\n mutation CreateBook($input: UpdateBookInput!) {\n createBook(input: $input) {\n id\n title\n }\n }\n"])));
|
|
10
|
+
exports.UPDATE_BOOK = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation UpdateBook($id: ID!, $input: UpdateBookInput!) {\n updateBook(id: $id, input: $input) {\n id\n title\n }\n }\n"], ["\n mutation UpdateBook($id: ID!, $input: UpdateBookInput!) {\n updateBook(id: $id, input: $input) {\n id\n title\n }\n }\n"])));
|
|
11
|
+
exports.DELETE_BOOK = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation DeleteBook($id: ID!) {\n deleteBook(id: $id) {\n id\n }\n }\n"], ["\n mutation DeleteBook($id: ID!) {\n deleteBook(id: $id) {\n id\n }\n }\n"])));
|
|
12
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.DELETE_CARD = exports.UPDATE_CARD = exports.CREATE_CARD = void 0;
|
|
8
|
+
var client_1 = require("@apollo/client");
|
|
9
|
+
exports.CREATE_CARD = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation CreateCard($input: UpdateCardInput!) {\n createCard(input: $input) {\n id\n title\n }\n }\n"], ["\n mutation CreateCard($input: UpdateCardInput!) {\n createCard(input: $input) {\n id\n title\n }\n }\n"])));
|
|
10
|
+
exports.UPDATE_CARD = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation UpdateCard($id: ID!, $input: UpdateCardInput!) {\n updateCard(id: $id, input: $input) {\n id\n title\n }\n }\n"], ["\n mutation UpdateCard($id: ID!, $input: UpdateCardInput!) {\n updateCard(id: $id, input: $input) {\n id\n title\n }\n }\n"])));
|
|
11
|
+
exports.DELETE_CARD = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation DeleteCard($id: ID!) {\n deleteCard(id: $id) {\n id\n }\n }\n"], ["\n mutation DeleteCard($id: ID!) {\n deleteCard(id: $id) {\n id\n }\n }\n"])));
|
|
12
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.DELETE_EVENT = exports.UPDATE_EVENT = exports.CREATE_EVENT = void 0;
|
|
8
|
+
var client_1 = require("@apollo/client");
|
|
9
|
+
exports.CREATE_EVENT = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation CreateEvent($input: UpdateEventInput!) {\n createEvent(input: $input) {\n id\n title\n }\n }\n"], ["\n mutation CreateEvent($input: UpdateEventInput!) {\n createEvent(input: $input) {\n id\n title\n }\n }\n"])));
|
|
10
|
+
exports.UPDATE_EVENT = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation UpdateEvent($id: ID!, $input: UpdateEventInput!) {\n updateEvent(id: $id, input: $input) {\n id\n title\n }\n }\n"], ["\n mutation UpdateEvent($id: ID!, $input: UpdateEventInput!) {\n updateEvent(id: $id, input: $input) {\n id\n title\n }\n }\n"])));
|
|
11
|
+
exports.DELETE_EVENT = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation DeleteEvent($id: ID!) {\n deleteEvent(id: $id) {\n id\n }\n }\n"], ["\n mutation DeleteEvent($id: ID!) {\n deleteEvent(id: $id) {\n id\n }\n }\n"])));
|
|
12
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -6,7 +6,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.DELETE_MENU = exports.UPDATE_MENU = exports.CREATE_MENU = void 0;
|
|
8
8
|
var client_1 = require("@apollo/client");
|
|
9
|
-
exports.CREATE_MENU = client_1.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation CreateMenu($input: UpdateMenuInput!) {\n createMenu(input: $input) {\n name\n title\n description\n }\n }\n"], ["\n mutation CreateMenu($input: UpdateMenuInput!) {\n createMenu(input: $input) {\n name\n title\n description\n }\n }\n"])));
|
|
10
|
-
exports.UPDATE_MENU = client_1.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation UpdateMenu($name: String!, $input: UpdateMenuInput!) {\n updateMenu(name: $name, input: $input) {\n name\n title\n description\n links {\n id\n }\n }\n }\n"], ["\n mutation UpdateMenu($name: String!, $input: UpdateMenuInput!) {\n updateMenu(name: $name, input: $input) {\n name\n title\n description\n links {\n id\n }\n }\n }\n"])));
|
|
11
|
-
exports.DELETE_MENU = client_1.gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation DeleteMenu($name: String!) {\n deleteMenu(name: $name) {\n name\n }\n }\n"], ["\n mutation DeleteMenu($name: String!) {\n deleteMenu(name: $name) {\n name\n }\n }\n"])));
|
|
9
|
+
exports.CREATE_MENU = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation CreateMenu($input: UpdateMenuInput!) {\n createMenu(input: $input) {\n name\n title\n description\n }\n }\n"], ["\n mutation CreateMenu($input: UpdateMenuInput!) {\n createMenu(input: $input) {\n name\n title\n description\n }\n }\n"])));
|
|
10
|
+
exports.UPDATE_MENU = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation UpdateMenu($name: String!, $input: UpdateMenuInput!) {\n updateMenu(name: $name, input: $input) {\n name\n title\n description\n links {\n id\n }\n }\n }\n"], ["\n mutation UpdateMenu($name: String!, $input: UpdateMenuInput!) {\n updateMenu(name: $name, input: $input) {\n name\n title\n description\n links {\n id\n }\n }\n }\n"])));
|
|
11
|
+
exports.DELETE_MENU = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation DeleteMenu($name: String!) {\n deleteMenu(name: $name) {\n name\n }\n }\n"], ["\n mutation DeleteMenu($name: String!) {\n deleteMenu(name: $name) {\n name\n }\n }\n"])));
|
|
12
12
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -6,7 +6,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.DELETE_PAGE = exports.UPDATE_PAGE = exports.CREATE_PAGE = void 0;
|
|
8
8
|
var client_1 = require("@apollo/client");
|
|
9
|
-
exports.CREATE_PAGE = client_1.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation CreatePage($input: UpdatePageInput!) {\n createPage(input: $input) {\n id\n title\n }\n }\n"], ["\n mutation CreatePage($input: UpdatePageInput!) {\n createPage(input: $input) {\n id\n title\n }\n }\n"])));
|
|
10
|
-
exports.UPDATE_PAGE = client_1.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation UpdatePage($id: ID!, $input: UpdatePageInput!) {\n updatePage(id: $id, input: $input) {\n id\n title\n }\n }\n"], ["\n mutation UpdatePage($id: ID!, $input: UpdatePageInput!) {\n updatePage(id: $id, input: $input) {\n id\n title\n }\n }\n"])));
|
|
11
|
-
exports.DELETE_PAGE = client_1.gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation DeletePage($id: ID!) {\n deletePage(id: $id) {\n id\n }\n }\n"], ["\n mutation DeletePage($id: ID!) {\n deletePage(id: $id) {\n id\n }\n }\n"])));
|
|
9
|
+
exports.CREATE_PAGE = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation CreatePage($input: UpdatePageInput!) {\n createPage(input: $input) {\n id\n title\n }\n }\n"], ["\n mutation CreatePage($input: UpdatePageInput!) {\n createPage(input: $input) {\n id\n title\n }\n }\n"])));
|
|
10
|
+
exports.UPDATE_PAGE = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation UpdatePage($id: ID!, $input: UpdatePageInput!) {\n updatePage(id: $id, input: $input) {\n id\n title\n }\n }\n"], ["\n mutation UpdatePage($id: ID!, $input: UpdatePageInput!) {\n updatePage(id: $id, input: $input) {\n id\n title\n }\n }\n"])));
|
|
11
|
+
exports.DELETE_PAGE = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation DeletePage($id: ID!) {\n deletePage(id: $id) {\n id\n }\n }\n"], ["\n mutation DeletePage($id: ID!) {\n deletePage(id: $id) {\n id\n }\n }\n"])));
|
|
12
12
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -6,7 +6,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.DELETE_QUEUE = exports.UPDATE_QUEUE = exports.CREATE_QUEUE = void 0;
|
|
8
8
|
var client_1 = require("@apollo/client");
|
|
9
|
-
exports.CREATE_QUEUE = client_1.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation CreateQueue($input: UpdateQueueInput!) {\n createQueue(input: $input) {\n id\n title\n items {\n ... on Article {\n id\n title\n }\n ... on Page {\n id\n title\n }\n }\n }\n }\n"], ["\n mutation CreateQueue($input: UpdateQueueInput!) {\n createQueue(input: $input) {\n id\n title\n items {\n ... on Article {\n id\n title\n }\n ... on Page {\n id\n title\n }\n }\n }\n }\n"])));
|
|
10
|
-
exports.UPDATE_QUEUE = client_1.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation UpdateQueue($id: ID!, $input: UpdateQueueInput!) {\n updateQueue(id: $id, input: $input) {\n id\n title\n status\n items {\n ... on Article {\n id\n title\n }\n ... on Page {\n id\n title\n }\n }\n created_at\n updated_at\n }\n }\n"], ["\n mutation UpdateQueue($id: ID!, $input: UpdateQueueInput!) {\n updateQueue(id: $id, input: $input) {\n id\n title\n status\n items {\n ... on Article {\n id\n title\n }\n ... on Page {\n id\n title\n }\n }\n created_at\n updated_at\n }\n }\n"])));
|
|
11
|
-
exports.DELETE_QUEUE = client_1.gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation DeleteQueue($id: ID!) {\n deleteQueue(id: $id) {\n id\n }\n }\n"], ["\n mutation DeleteQueue($id: ID!) {\n deleteQueue(id: $id) {\n id\n }\n }\n"])));
|
|
9
|
+
exports.CREATE_QUEUE = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation CreateQueue($input: UpdateQueueInput!) {\n createQueue(input: $input) {\n id\n title\n items {\n ... on Article {\n id\n title\n }\n ... on Page {\n id\n title\n }\n ... on Section {\n id\n title\n }\n }\n }\n }\n"], ["\n mutation CreateQueue($input: UpdateQueueInput!) {\n createQueue(input: $input) {\n id\n title\n items {\n ... on Article {\n id\n title\n }\n ... on Page {\n id\n title\n }\n ... on Section {\n id\n title\n }\n }\n }\n }\n"])));
|
|
10
|
+
exports.UPDATE_QUEUE = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation UpdateQueue($id: ID!, $input: UpdateQueueInput!) {\n updateQueue(id: $id, input: $input) {\n id\n title\n status\n items {\n ... on Article {\n id\n title\n }\n ... on Page {\n id\n title\n }\n ... on Section {\n id\n title\n }\n }\n created_at\n updated_at\n }\n }\n"], ["\n mutation UpdateQueue($id: ID!, $input: UpdateQueueInput!) {\n updateQueue(id: $id, input: $input) {\n id\n title\n status\n items {\n ... on Article {\n id\n title\n }\n ... on Page {\n id\n title\n }\n ... on Section {\n id\n title\n }\n }\n created_at\n updated_at\n }\n }\n"])));
|
|
11
|
+
exports.DELETE_QUEUE = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation DeleteQueue($id: ID!) {\n deleteQueue(id: $id) {\n id\n }\n }\n"], ["\n mutation DeleteQueue($id: ID!) {\n deleteQueue(id: $id) {\n id\n }\n }\n"])));
|
|
12
12
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.DELETE_SECTION = exports.UPDATE_SECTION = exports.CREATE_SECTION = void 0;
|
|
8
|
+
var client_1 = require("@apollo/client");
|
|
9
|
+
exports.CREATE_SECTION = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation CreateSection($input: UpdateSectionInput!) {\n createSection(input: $input) {\n id\n title\n }\n }\n"], ["\n mutation CreateSection($input: UpdateSectionInput!) {\n createSection(input: $input) {\n id\n title\n }\n }\n"])));
|
|
10
|
+
exports.UPDATE_SECTION = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation UpdateSection($id: ID!, $input: UpdateSectionInput!) {\n updateSection(id: $id, input: $input) {\n id\n title\n }\n }\n"], ["\n mutation UpdateSection($id: ID!, $input: UpdateSectionInput!) {\n updateSection(id: $id, input: $input) {\n id\n title\n }\n }\n"])));
|
|
11
|
+
exports.DELETE_SECTION = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation DeleteSection($id: ID!) {\n deleteSection(id: $id) {\n id\n }\n }\n"], ["\n mutation DeleteSection($id: ID!) {\n deleteSection(id: $id) {\n id\n }\n }\n"])));
|
|
12
|
+
var templateObject_1, templateObject_2, templateObject_3;
|