@messenger-box/core 0.0.1-alpha.10 → 0.0.1-alpha.100
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/lib/index.js +327 -5
- package/lib/index.js.map +1 -1
- package/lib/interfaces/generated-models.d.ts +1224 -331
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -104,7 +104,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
104
104
|
o[k2] = m[k];
|
|
105
105
|
}));
|
|
106
106
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
107
|
-
for (var p in m) if (p !== "default" && !
|
|
107
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
108
108
|
};
|
|
109
109
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
110
110
|
__exportStar(__webpack_require__(/*! ./interfaces */ "./src/interfaces/index.ts"), exports);
|
|
@@ -122,7 +122,10 @@ __exportStar(__webpack_require__(/*! ./interfaces */ "./src/interfaces/index.ts"
|
|
|
122
122
|
"use strict";
|
|
123
123
|
|
|
124
124
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
125
|
-
exports.IVisibility = exports.IUserOrderBy = exports.ISortEnum = exports.ISettingValueType = exports.IRoomType = exports.IRole = exports.IProjectType = exports.IPreDefinedRole = exports.IPortalLanguage = exports.IPermissionType = exports.IPermissionResource = exports.IPermissionAction = exports.IOrgUserRole = exports.IOrganizationContextPubSubEvents = exports.IOrgainizationInvitationRole = exports.IMoleculerServiceName = exports.IMessengerUserStatus = exports.IInviteStatus = exports.IConfigurationTarget = exports.IConfigurationScope = exports.IConfigFragmentName = exports.IConfigCollectionName = exports.IClientTypes = exports.IChannelSort = exports.IChannelPrivacy = exports.IApplicationRoles = void 0;
|
|
125
|
+
exports.GetMessagesDocument = exports.useGetAllChannelLazyQuery = exports.useGetAllChannelQuery = exports.GetAllChannelDocument = exports.useGetChannelsByUserLazyQuery = exports.useGetChannelsByUserQuery = exports.GetChannelsByUserDocument = exports.useEditMessageMutation = exports.EditMessageDocument = exports.useDeleteMessageMutation = exports.DeleteMessageDocument = exports.useSendMessagesMutation = exports.SendMessagesDocument = exports.useDeleteChannelMutation = exports.DeleteChannelDocument = exports.useAddMemberToChannelMutation = exports.AddMemberToChannelDocument = exports.useAddDirectChannelMutation = exports.AddDirectChannelDocument = exports.useAddChannelMutation = exports.AddChannelDocument = exports.PostPropsFragmentDoc = exports.ConfigurationFragmentDoc = exports.IVisibility = exports.IUserOrderBy = exports.ISortEnum = exports.ISettingValueType = exports.IRoomType = exports.IRole = exports.IProjectType = exports.IPreDefinedRole = exports.IPortalLanguage = exports.IPermissionType = exports.IPermissionResource = exports.IPermissionAction = exports.IOrgUserRole = exports.IOrganizationContextPubSubEvents = exports.IOrgainizationInvitationRole = exports.IMoleculerServiceName = exports.IMessengerUserStatus = exports.IInviteStatus = exports.IConfigurationTarget = exports.IConfigurationScope = exports.IConfigFragmentName = exports.IConfigCollectionName = exports.IClientTypes = exports.IClientCacheTypeNames = exports.IChannelSort = exports.IChannelPrivacy = exports.IApplicationRoles = void 0;
|
|
126
|
+
exports.useGetUserByIdLazyQuery = exports.useGetUserByIdQuery = exports.GetUserByIdDocument = exports.useGetAllUsersLazyQuery = exports.useGetAllUsersQuery = exports.GetAllUsersDocument = exports.useGetMessagesLazyQuery = exports.useGetMessagesQuery = void 0;
|
|
127
|
+
const Apollo = __webpack_require__(/*! @apollo/client */ "@apollo/client");
|
|
128
|
+
const defaultOptions = {};
|
|
126
129
|
var IApplicationRoles;
|
|
127
130
|
(function (IApplicationRoles) {
|
|
128
131
|
/** Admin of an Organization */
|
|
@@ -156,6 +159,10 @@ var IChannelSort;
|
|
|
156
159
|
IChannelSort["NAME"] = "NAME";
|
|
157
160
|
IChannelSort["NUMBER_OF_MESSAGES"] = "NUMBER_OF_MESSAGES";
|
|
158
161
|
})(IChannelSort = exports.IChannelSort || (exports.IChannelSort = {}));
|
|
162
|
+
var IClientCacheTypeNames;
|
|
163
|
+
(function (IClientCacheTypeNames) {
|
|
164
|
+
IClientCacheTypeNames["Post"] = "Post";
|
|
165
|
+
})(IClientCacheTypeNames = exports.IClientCacheTypeNames || (exports.IClientCacheTypeNames = {}));
|
|
159
166
|
var IClientTypes;
|
|
160
167
|
(function (IClientTypes) {
|
|
161
168
|
IClientTypes["Business"] = "Business";
|
|
@@ -166,6 +173,7 @@ var IConfigCollectionName;
|
|
|
166
173
|
IConfigCollectionName["application"] = "application";
|
|
167
174
|
IConfigCollectionName["accounts"] = "accounts";
|
|
168
175
|
IConfigCollectionName["organizations"] = "organizations";
|
|
176
|
+
IConfigCollectionName["machines"] = "machines";
|
|
169
177
|
IConfigCollectionName["workspaces"] = "workspaces";
|
|
170
178
|
IConfigCollectionName["teams"] = "teams";
|
|
171
179
|
IConfigCollectionName["projects"] = "projects";
|
|
@@ -206,8 +214,8 @@ var IConfigurationTarget;
|
|
|
206
214
|
(function (IConfigurationTarget) {
|
|
207
215
|
/** Targets the user configuration file for writing. */
|
|
208
216
|
IConfigurationTarget["USER"] = "USER";
|
|
209
|
-
IConfigurationTarget["
|
|
210
|
-
IConfigurationTarget["
|
|
217
|
+
IConfigurationTarget["APPLICATION"] = "APPLICATION";
|
|
218
|
+
IConfigurationTarget["MACHINE"] = "MACHINE";
|
|
211
219
|
/** Targets the organization configuration file for writing. This only works if a organization is opened. */
|
|
212
220
|
IConfigurationTarget["ORGANIZATION"] = "ORGANIZATION";
|
|
213
221
|
/** Targets the resource configuration file for writing. This only works if a organization is opened. */
|
|
@@ -327,6 +335,7 @@ var IRoomType;
|
|
|
327
335
|
IRoomType["CHANNEL"] = "CHANNEL";
|
|
328
336
|
IRoomType["DIRECT"] = "DIRECT";
|
|
329
337
|
IRoomType["GROUP"] = "GROUP";
|
|
338
|
+
IRoomType["PRIVATE"] = "PRIVATE";
|
|
330
339
|
IRoomType["VISITOR"] = "VISITOR";
|
|
331
340
|
})(IRoomType = exports.IRoomType || (exports.IRoomType = {}));
|
|
332
341
|
var ISettingValueType;
|
|
@@ -365,6 +374,308 @@ var IVisibility;
|
|
|
365
374
|
IVisibility["private"] = "private";
|
|
366
375
|
IVisibility["public"] = "public";
|
|
367
376
|
})(IVisibility = exports.IVisibility || (exports.IVisibility = {}));
|
|
377
|
+
exports.ConfigurationFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "Configuration" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "IConfigurationModel" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "resource" } }, { "kind": "Field", "name": { "kind": "Name", "value": "target" } }, { "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, { "kind": "Field", "name": { "kind": "Name", "value": "keys" } }, { "kind": "Field", "name": { "kind": "Name", "value": "overrides" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, { "kind": "Field", "name": { "kind": "Name", "value": "identifiers" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "__typename" } }] } }] };
|
|
378
|
+
exports.PostPropsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "PostProps" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "Post" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "author" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "username" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "message" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "editedBy" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "alias" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "propsConfiguration" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "Configuration" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "isPinned" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "center" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "compactDisplay" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isFirstReply" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "shouldHighlight" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "consecutivePostByUser" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "previousPostIsComment" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isCommentMention" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "hasReplies" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isLastPost" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "channelArchived" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isFlagged" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isCollapsedThreadsEnabled" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "Configuration" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "IConfigurationModel" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "resource" } }, { "kind": "Field", "name": { "kind": "Name", "value": "target" } }, { "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, { "kind": "Field", "name": { "kind": "Name", "value": "keys" } }, { "kind": "Field", "name": { "kind": "Name", "value": "overrides" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, { "kind": "Field", "name": { "kind": "Name", "value": "identifiers" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "__typename" } }] } }] };
|
|
379
|
+
exports.AddChannelDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "AddChannel" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "name" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "description" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "createChannel" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "name" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "name" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "description" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "description" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "type" } }] } }] } }] };
|
|
380
|
+
/**
|
|
381
|
+
* __useAddChannelMutation__
|
|
382
|
+
*
|
|
383
|
+
* To run a mutation, you first call `useAddChannelMutation` within a React component and pass it any options that fit your needs.
|
|
384
|
+
* When your component renders, `useAddChannelMutation` returns a tuple that includes:
|
|
385
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
386
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
387
|
+
*
|
|
388
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
389
|
+
*
|
|
390
|
+
* @example
|
|
391
|
+
* const [addChannelMutation, { data, loading, error }] = useAddChannelMutation({
|
|
392
|
+
* variables: {
|
|
393
|
+
* name: // value for 'name'
|
|
394
|
+
* description: // value for 'description'
|
|
395
|
+
* },
|
|
396
|
+
* });
|
|
397
|
+
*/
|
|
398
|
+
function useAddChannelMutation(baseOptions) {
|
|
399
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
400
|
+
return Apollo.useMutation(exports.AddChannelDocument, options);
|
|
401
|
+
}
|
|
402
|
+
exports.useAddChannelMutation = useAddChannelMutation;
|
|
403
|
+
exports.AddDirectChannelDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "AddDirectChannel" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "receiver" } }, "type": { "kind": "NonNullType", "type": { "kind": "ListType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "displayName" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "createDirectChannel" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "receiver" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "receiver" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "displayName" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "displayName" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "type" } }] } }] } }] };
|
|
404
|
+
/**
|
|
405
|
+
* __useAddDirectChannelMutation__
|
|
406
|
+
*
|
|
407
|
+
* To run a mutation, you first call `useAddDirectChannelMutation` within a React component and pass it any options that fit your needs.
|
|
408
|
+
* When your component renders, `useAddDirectChannelMutation` returns a tuple that includes:
|
|
409
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
410
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
411
|
+
*
|
|
412
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
413
|
+
*
|
|
414
|
+
* @example
|
|
415
|
+
* const [addDirectChannelMutation, { data, loading, error }] = useAddDirectChannelMutation({
|
|
416
|
+
* variables: {
|
|
417
|
+
* receiver: // value for 'receiver'
|
|
418
|
+
* displayName: // value for 'displayName'
|
|
419
|
+
* },
|
|
420
|
+
* });
|
|
421
|
+
*/
|
|
422
|
+
function useAddDirectChannelMutation(baseOptions) {
|
|
423
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
424
|
+
return Apollo.useMutation(exports.AddDirectChannelDocument, options);
|
|
425
|
+
}
|
|
426
|
+
exports.useAddDirectChannelMutation = useAddDirectChannelMutation;
|
|
427
|
+
exports.AddMemberToChannelDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "AddMemberToChannel" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "memberId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "addMemberToChannel" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "channelId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "memberId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "memberId" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "type" } }, { "kind": "Field", "name": { "kind": "Name", "value": "members" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "user" } }] } }] } }] } }] };
|
|
428
|
+
/**
|
|
429
|
+
* __useAddMemberToChannelMutation__
|
|
430
|
+
*
|
|
431
|
+
* To run a mutation, you first call `useAddMemberToChannelMutation` within a React component and pass it any options that fit your needs.
|
|
432
|
+
* When your component renders, `useAddMemberToChannelMutation` returns a tuple that includes:
|
|
433
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
434
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
435
|
+
*
|
|
436
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
437
|
+
*
|
|
438
|
+
* @example
|
|
439
|
+
* const [addMemberToChannelMutation, { data, loading, error }] = useAddMemberToChannelMutation({
|
|
440
|
+
* variables: {
|
|
441
|
+
* channelId: // value for 'channelId'
|
|
442
|
+
* memberId: // value for 'memberId'
|
|
443
|
+
* },
|
|
444
|
+
* });
|
|
445
|
+
*/
|
|
446
|
+
function useAddMemberToChannelMutation(baseOptions) {
|
|
447
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
448
|
+
return Apollo.useMutation(exports.AddMemberToChannelDocument, options);
|
|
449
|
+
}
|
|
450
|
+
exports.useAddMemberToChannelMutation = useAddMemberToChannelMutation;
|
|
451
|
+
exports.DeleteChannelDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "DeleteChannel" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "ChannelId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "deleteChannel" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "id" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "ChannelId" } } }] }] } }] };
|
|
452
|
+
/**
|
|
453
|
+
* __useDeleteChannelMutation__
|
|
454
|
+
*
|
|
455
|
+
* To run a mutation, you first call `useDeleteChannelMutation` within a React component and pass it any options that fit your needs.
|
|
456
|
+
* When your component renders, `useDeleteChannelMutation` returns a tuple that includes:
|
|
457
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
458
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
459
|
+
*
|
|
460
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
461
|
+
*
|
|
462
|
+
* @example
|
|
463
|
+
* const [deleteChannelMutation, { data, loading, error }] = useDeleteChannelMutation({
|
|
464
|
+
* variables: {
|
|
465
|
+
* ChannelId: // value for 'ChannelId'
|
|
466
|
+
* },
|
|
467
|
+
* });
|
|
468
|
+
*/
|
|
469
|
+
function useDeleteChannelMutation(baseOptions) {
|
|
470
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
471
|
+
return Apollo.useMutation(exports.DeleteChannelDocument, options);
|
|
472
|
+
}
|
|
473
|
+
exports.useDeleteChannelMutation = useDeleteChannelMutation;
|
|
474
|
+
exports.SendMessagesDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "SendMessages" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "content" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "sendMessage" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "channelId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "messageInput" }, "value": { "kind": "ObjectValue", "fields": [{ "kind": "ObjectField", "name": { "kind": "Name", "value": "content" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "content" } } }] } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }] } }] } }] };
|
|
475
|
+
/**
|
|
476
|
+
* __useSendMessagesMutation__
|
|
477
|
+
*
|
|
478
|
+
* To run a mutation, you first call `useSendMessagesMutation` within a React component and pass it any options that fit your needs.
|
|
479
|
+
* When your component renders, `useSendMessagesMutation` returns a tuple that includes:
|
|
480
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
481
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
482
|
+
*
|
|
483
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
484
|
+
*
|
|
485
|
+
* @example
|
|
486
|
+
* const [sendMessagesMutation, { data, loading, error }] = useSendMessagesMutation({
|
|
487
|
+
* variables: {
|
|
488
|
+
* channelId: // value for 'channelId'
|
|
489
|
+
* content: // value for 'content'
|
|
490
|
+
* },
|
|
491
|
+
* });
|
|
492
|
+
*/
|
|
493
|
+
function useSendMessagesMutation(baseOptions) {
|
|
494
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
495
|
+
return Apollo.useMutation(exports.SendMessagesDocument, options);
|
|
496
|
+
}
|
|
497
|
+
exports.useSendMessagesMutation = useSendMessagesMutation;
|
|
498
|
+
exports.DeleteMessageDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "DeleteMessage" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "messageId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "deleteMessage" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "messageId" }, "value": { "kind": "ObjectValue", "fields": [{ "kind": "ObjectField", "name": { "kind": "Name", "value": "messageId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "messageId" } } }, { "kind": "ObjectField", "name": { "kind": "Name", "value": "channelId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } } }] } }] }] } }] };
|
|
499
|
+
/**
|
|
500
|
+
* __useDeleteMessageMutation__
|
|
501
|
+
*
|
|
502
|
+
* To run a mutation, you first call `useDeleteMessageMutation` within a React component and pass it any options that fit your needs.
|
|
503
|
+
* When your component renders, `useDeleteMessageMutation` returns a tuple that includes:
|
|
504
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
505
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
506
|
+
*
|
|
507
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
508
|
+
*
|
|
509
|
+
* @example
|
|
510
|
+
* const [deleteMessageMutation, { data, loading, error }] = useDeleteMessageMutation({
|
|
511
|
+
* variables: {
|
|
512
|
+
* messageId: // value for 'messageId'
|
|
513
|
+
* channelId: // value for 'channelId'
|
|
514
|
+
* },
|
|
515
|
+
* });
|
|
516
|
+
*/
|
|
517
|
+
function useDeleteMessageMutation(baseOptions) {
|
|
518
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
519
|
+
return Apollo.useMutation(exports.DeleteMessageDocument, options);
|
|
520
|
+
}
|
|
521
|
+
exports.useDeleteMessageMutation = useDeleteMessageMutation;
|
|
522
|
+
exports.EditMessageDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "EditMessage" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "messageId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "content" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "editMessage" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "messageId" }, "value": { "kind": "ObjectValue", "fields": [{ "kind": "ObjectField", "name": { "kind": "Name", "value": "messageId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "messageId" } } }, { "kind": "ObjectField", "name": { "kind": "Name", "value": "channelId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } } }] } }, { "kind": "Argument", "name": { "kind": "Name", "value": "messageInput" }, "value": { "kind": "ObjectValue", "fields": [{ "kind": "ObjectField", "name": { "kind": "Name", "value": "content" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "content" } } }] } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }] } }] } }] };
|
|
523
|
+
/**
|
|
524
|
+
* __useEditMessageMutation__
|
|
525
|
+
*
|
|
526
|
+
* To run a mutation, you first call `useEditMessageMutation` within a React component and pass it any options that fit your needs.
|
|
527
|
+
* When your component renders, `useEditMessageMutation` returns a tuple that includes:
|
|
528
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
529
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
530
|
+
*
|
|
531
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
532
|
+
*
|
|
533
|
+
* @example
|
|
534
|
+
* const [editMessageMutation, { data, loading, error }] = useEditMessageMutation({
|
|
535
|
+
* variables: {
|
|
536
|
+
* messageId: // value for 'messageId'
|
|
537
|
+
* channelId: // value for 'channelId'
|
|
538
|
+
* content: // value for 'content'
|
|
539
|
+
* },
|
|
540
|
+
* });
|
|
541
|
+
*/
|
|
542
|
+
function useEditMessageMutation(baseOptions) {
|
|
543
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
544
|
+
return Apollo.useMutation(exports.EditMessageDocument, options);
|
|
545
|
+
}
|
|
546
|
+
exports.useEditMessageMutation = useEditMessageMutation;
|
|
547
|
+
exports.GetChannelsByUserDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetChannelsByUser" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "channelsByUser" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "type" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "members" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "user" } }] } }] } }] } }] };
|
|
548
|
+
/**
|
|
549
|
+
* __useGetChannelsByUserQuery__
|
|
550
|
+
*
|
|
551
|
+
* To run a query within a React component, call `useGetChannelsByUserQuery` and pass it any options that fit your needs.
|
|
552
|
+
* When your component renders, `useGetChannelsByUserQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
553
|
+
* you can use to render your UI.
|
|
554
|
+
*
|
|
555
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
556
|
+
*
|
|
557
|
+
* @example
|
|
558
|
+
* const { data, loading, error } = useGetChannelsByUserQuery({
|
|
559
|
+
* variables: {
|
|
560
|
+
* },
|
|
561
|
+
* });
|
|
562
|
+
*/
|
|
563
|
+
function useGetChannelsByUserQuery(baseOptions) {
|
|
564
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
565
|
+
return Apollo.useQuery(exports.GetChannelsByUserDocument, options);
|
|
566
|
+
}
|
|
567
|
+
exports.useGetChannelsByUserQuery = useGetChannelsByUserQuery;
|
|
568
|
+
function useGetChannelsByUserLazyQuery(baseOptions) {
|
|
569
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
570
|
+
return Apollo.useLazyQuery(exports.GetChannelsByUserDocument, options);
|
|
571
|
+
}
|
|
572
|
+
exports.useGetChannelsByUserLazyQuery = useGetChannelsByUserLazyQuery;
|
|
573
|
+
exports.GetAllChannelDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetAllChannel" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "channels" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "type" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "members" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "user" } }] } }] } }] } }] };
|
|
574
|
+
/**
|
|
575
|
+
* __useGetAllChannelQuery__
|
|
576
|
+
*
|
|
577
|
+
* To run a query within a React component, call `useGetAllChannelQuery` and pass it any options that fit your needs.
|
|
578
|
+
* When your component renders, `useGetAllChannelQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
579
|
+
* you can use to render your UI.
|
|
580
|
+
*
|
|
581
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
582
|
+
*
|
|
583
|
+
* @example
|
|
584
|
+
* const { data, loading, error } = useGetAllChannelQuery({
|
|
585
|
+
* variables: {
|
|
586
|
+
* },
|
|
587
|
+
* });
|
|
588
|
+
*/
|
|
589
|
+
function useGetAllChannelQuery(baseOptions) {
|
|
590
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
591
|
+
return Apollo.useQuery(exports.GetAllChannelDocument, options);
|
|
592
|
+
}
|
|
593
|
+
exports.useGetAllChannelQuery = useGetAllChannelQuery;
|
|
594
|
+
function useGetAllChannelLazyQuery(baseOptions) {
|
|
595
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
596
|
+
return Apollo.useLazyQuery(exports.GetAllChannelDocument, options);
|
|
597
|
+
}
|
|
598
|
+
exports.useGetAllChannelLazyQuery = useGetAllChannelLazyQuery;
|
|
599
|
+
exports.GetMessagesDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetMessages" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "messages" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "channelId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "limit" }, "value": { "kind": "IntValue", "value": "100" } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "totalCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "data" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "PostProps" } }] } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "Configuration" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "IConfigurationModel" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "resource" } }, { "kind": "Field", "name": { "kind": "Name", "value": "target" } }, { "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, { "kind": "Field", "name": { "kind": "Name", "value": "keys" } }, { "kind": "Field", "name": { "kind": "Name", "value": "overrides" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, { "kind": "Field", "name": { "kind": "Name", "value": "identifiers" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "__typename" } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "PostProps" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "Post" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "author" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "username" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "message" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "editedBy" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "alias" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "propsConfiguration" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "Configuration" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "isPinned" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "center" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "compactDisplay" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isFirstReply" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "shouldHighlight" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "consecutivePostByUser" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "previousPostIsComment" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isCommentMention" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "hasReplies" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isLastPost" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "channelArchived" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isFlagged" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isCollapsedThreadsEnabled" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }] } }] };
|
|
600
|
+
/**
|
|
601
|
+
* __useGetMessagesQuery__
|
|
602
|
+
*
|
|
603
|
+
* To run a query within a React component, call `useGetMessagesQuery` and pass it any options that fit your needs.
|
|
604
|
+
* When your component renders, `useGetMessagesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
605
|
+
* you can use to render your UI.
|
|
606
|
+
*
|
|
607
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
608
|
+
*
|
|
609
|
+
* @example
|
|
610
|
+
* const { data, loading, error } = useGetMessagesQuery({
|
|
611
|
+
* variables: {
|
|
612
|
+
* channelId: // value for 'channelId'
|
|
613
|
+
* },
|
|
614
|
+
* });
|
|
615
|
+
*/
|
|
616
|
+
function useGetMessagesQuery(baseOptions) {
|
|
617
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
618
|
+
return Apollo.useQuery(exports.GetMessagesDocument, options);
|
|
619
|
+
}
|
|
620
|
+
exports.useGetMessagesQuery = useGetMessagesQuery;
|
|
621
|
+
function useGetMessagesLazyQuery(baseOptions) {
|
|
622
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
623
|
+
return Apollo.useLazyQuery(exports.GetMessagesDocument, options);
|
|
624
|
+
}
|
|
625
|
+
exports.useGetMessagesLazyQuery = useGetMessagesLazyQuery;
|
|
626
|
+
exports.GetAllUsersDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetAllUsers" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "getUsers" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "username" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "alias" } }] } }] } }] };
|
|
627
|
+
/**
|
|
628
|
+
* __useGetAllUsersQuery__
|
|
629
|
+
*
|
|
630
|
+
* To run a query within a React component, call `useGetAllUsersQuery` and pass it any options that fit your needs.
|
|
631
|
+
* When your component renders, `useGetAllUsersQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
632
|
+
* you can use to render your UI.
|
|
633
|
+
*
|
|
634
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
635
|
+
*
|
|
636
|
+
* @example
|
|
637
|
+
* const { data, loading, error } = useGetAllUsersQuery({
|
|
638
|
+
* variables: {
|
|
639
|
+
* },
|
|
640
|
+
* });
|
|
641
|
+
*/
|
|
642
|
+
function useGetAllUsersQuery(baseOptions) {
|
|
643
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
644
|
+
return Apollo.useQuery(exports.GetAllUsersDocument, options);
|
|
645
|
+
}
|
|
646
|
+
exports.useGetAllUsersQuery = useGetAllUsersQuery;
|
|
647
|
+
function useGetAllUsersLazyQuery(baseOptions) {
|
|
648
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
649
|
+
return Apollo.useLazyQuery(exports.GetAllUsersDocument, options);
|
|
650
|
+
}
|
|
651
|
+
exports.useGetAllUsersLazyQuery = useGetAllUsersLazyQuery;
|
|
652
|
+
exports.GetUserByIdDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetUserById" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "userId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "getUserAccount" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "userId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "userId" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "username" } }] } }] } }] };
|
|
653
|
+
/**
|
|
654
|
+
* __useGetUserByIdQuery__
|
|
655
|
+
*
|
|
656
|
+
* To run a query within a React component, call `useGetUserByIdQuery` and pass it any options that fit your needs.
|
|
657
|
+
* When your component renders, `useGetUserByIdQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
658
|
+
* you can use to render your UI.
|
|
659
|
+
*
|
|
660
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
661
|
+
*
|
|
662
|
+
* @example
|
|
663
|
+
* const { data, loading, error } = useGetUserByIdQuery({
|
|
664
|
+
* variables: {
|
|
665
|
+
* userId: // value for 'userId'
|
|
666
|
+
* },
|
|
667
|
+
* });
|
|
668
|
+
*/
|
|
669
|
+
function useGetUserByIdQuery(baseOptions) {
|
|
670
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
671
|
+
return Apollo.useQuery(exports.GetUserByIdDocument, options);
|
|
672
|
+
}
|
|
673
|
+
exports.useGetUserByIdQuery = useGetUserByIdQuery;
|
|
674
|
+
function useGetUserByIdLazyQuery(baseOptions) {
|
|
675
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
676
|
+
return Apollo.useLazyQuery(exports.GetUserByIdDocument, options);
|
|
677
|
+
}
|
|
678
|
+
exports.useGetUserByIdLazyQuery = useGetUserByIdLazyQuery;
|
|
368
679
|
|
|
369
680
|
|
|
370
681
|
/***/ }),
|
|
@@ -386,12 +697,23 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
386
697
|
o[k2] = m[k];
|
|
387
698
|
}));
|
|
388
699
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
389
|
-
for (var p in m) if (p !== "default" && !
|
|
700
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
390
701
|
};
|
|
391
702
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
392
703
|
__exportStar(__webpack_require__(/*! ./generated-models */ "./src/interfaces/generated-models.ts"), exports);
|
|
393
704
|
|
|
394
705
|
|
|
706
|
+
/***/ }),
|
|
707
|
+
|
|
708
|
+
/***/ "@apollo/client":
|
|
709
|
+
/*!*********************************!*\
|
|
710
|
+
!*** external "@apollo/client" ***!
|
|
711
|
+
\*********************************/
|
|
712
|
+
/*! no static exports found */
|
|
713
|
+
/***/ (function(module, exports) {
|
|
714
|
+
|
|
715
|
+
module.exports = require("@apollo/client");
|
|
716
|
+
|
|
395
717
|
/***/ })
|
|
396
718
|
|
|
397
719
|
/******/ });
|