andoncloud-dashboard-toolkit 1.0.2 → 1.0.6
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/graphql-request.d.ts +113 -0
- package/dist/index.js +60 -24
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +59 -25
- package/dist/index.modern.js.map +1 -1
- package/dist/operations/mutations/index.d.ts +2 -0
- package/package.json +2 -2
|
@@ -111,6 +111,13 @@ export declare type FieldConfig = {
|
|
|
111
111
|
regexp?: Maybe<Scalars['String']>;
|
|
112
112
|
unit?: Maybe<Scalars['String']>;
|
|
113
113
|
};
|
|
114
|
+
export declare enum GridTableTypeEnum {
|
|
115
|
+
Counter = "COUNTER",
|
|
116
|
+
Empty = "EMPTY",
|
|
117
|
+
Indicator = "INDICATOR",
|
|
118
|
+
Kpi = "KPI",
|
|
119
|
+
Timer = "TIMER"
|
|
120
|
+
}
|
|
114
121
|
export declare type KpiItem = {
|
|
115
122
|
__typename?: 'KpiItem';
|
|
116
123
|
id: Scalars['ID'];
|
|
@@ -126,6 +133,21 @@ export declare type KpiProgressItem = {
|
|
|
126
133
|
symbol: Scalars['String'];
|
|
127
134
|
};
|
|
128
135
|
export declare type KpiUnionItem = KpiItem | KpiProgressItem;
|
|
136
|
+
export declare type Metric = {
|
|
137
|
+
__typename?: 'Metric';
|
|
138
|
+
id: Scalars['ID'];
|
|
139
|
+
name: Scalars['String'];
|
|
140
|
+
};
|
|
141
|
+
export declare type MetricValue = {
|
|
142
|
+
__typename?: 'MetricValue';
|
|
143
|
+
active: Scalars['Boolean'];
|
|
144
|
+
metricId: Scalars['String'];
|
|
145
|
+
status: AndonLightColor;
|
|
146
|
+
timer?: Maybe<Scalars['Int']>;
|
|
147
|
+
type: GridTableTypeEnum;
|
|
148
|
+
value?: Maybe<Scalars['String']>;
|
|
149
|
+
workplaceId: Scalars['String'];
|
|
150
|
+
};
|
|
129
151
|
export declare type Mutation = {
|
|
130
152
|
__typename?: 'Mutation';
|
|
131
153
|
createDashboard: CreateDashboardPayload;
|
|
@@ -135,7 +157,9 @@ export declare type Mutation = {
|
|
|
135
157
|
createUserPresence: CreateUserPresencePayload;
|
|
136
158
|
createWidget: CreateWidgetPayload;
|
|
137
159
|
pauseOrderExecution: PauseOrderExecutionPayload;
|
|
160
|
+
removeDashboard: RemoveDashboardPayload;
|
|
138
161
|
removeUserPresence: RemoveUserPresencePayload;
|
|
162
|
+
removeWidget: RemoveWidgetPayload;
|
|
139
163
|
removeWorkplaceUsersPresences: RemoveWorkplaceUsersPresencesPayload;
|
|
140
164
|
setCounter: SetCounterPayload;
|
|
141
165
|
startOrderExecution: StartOrderExecutionPayload;
|
|
@@ -177,9 +201,15 @@ export declare type MutationPauseOrderExecutionArgs = {
|
|
|
177
201
|
id: Scalars['ID'];
|
|
178
202
|
statusChangeId: Scalars['ID'];
|
|
179
203
|
};
|
|
204
|
+
export declare type MutationRemoveDashboardArgs = {
|
|
205
|
+
id: Scalars['ID'];
|
|
206
|
+
};
|
|
180
207
|
export declare type MutationRemoveUserPresenceArgs = {
|
|
181
208
|
id: Scalars['ID'];
|
|
182
209
|
};
|
|
210
|
+
export declare type MutationRemoveWidgetArgs = {
|
|
211
|
+
id: Scalars['ID'];
|
|
212
|
+
};
|
|
183
213
|
export declare type MutationRemoveWorkplaceUsersPresencesArgs = {
|
|
184
214
|
workplaceId: Scalars['ID'];
|
|
185
215
|
};
|
|
@@ -266,6 +296,8 @@ export declare type Query = {
|
|
|
266
296
|
counters: Array<Counter>;
|
|
267
297
|
currentUser: User;
|
|
268
298
|
dashboards: Array<Dashboard>;
|
|
299
|
+
metricValues: Array<MetricValue>;
|
|
300
|
+
metrics?: Maybe<Array<Metric>>;
|
|
269
301
|
orders: Array<Order>;
|
|
270
302
|
ordersExecutions: Array<OrderExecution>;
|
|
271
303
|
products: Array<Product>;
|
|
@@ -278,6 +310,10 @@ export declare type Query = {
|
|
|
278
310
|
widget: Widget;
|
|
279
311
|
workplaces: Array<Workplace>;
|
|
280
312
|
};
|
|
313
|
+
export declare type QueryMetricValuesArgs = {
|
|
314
|
+
gridReasons?: InputMaybe<Array<Scalars['ID']>>;
|
|
315
|
+
workplaces?: InputMaybe<Array<Scalars['ID']>>;
|
|
316
|
+
};
|
|
281
317
|
export declare type QueryWidgetArgs = {
|
|
282
318
|
id: Scalars['ID'];
|
|
283
319
|
};
|
|
@@ -293,10 +329,18 @@ export declare type Reason = {
|
|
|
293
329
|
reasonGroupId: Scalars['String'];
|
|
294
330
|
statusColor: AndonLightColor;
|
|
295
331
|
};
|
|
332
|
+
export declare type RemoveDashboardPayload = {
|
|
333
|
+
__typename?: 'RemoveDashboardPayload';
|
|
334
|
+
errors?: Maybe<Array<MutationError>>;
|
|
335
|
+
};
|
|
296
336
|
export declare type RemoveUserPresencePayload = {
|
|
297
337
|
__typename?: 'RemoveUserPresencePayload';
|
|
298
338
|
errors?: Maybe<Array<MutationError>>;
|
|
299
339
|
};
|
|
340
|
+
export declare type RemoveWidgetPayload = {
|
|
341
|
+
__typename?: 'RemoveWidgetPayload';
|
|
342
|
+
errors?: Maybe<Array<MutationError>>;
|
|
343
|
+
};
|
|
300
344
|
export declare type RemoveWorkplaceUsersPresencesPayload = {
|
|
301
345
|
__typename?: 'RemoveWorkplaceUsersPresencesPayload';
|
|
302
346
|
errors?: Maybe<Array<MutationError>>;
|
|
@@ -624,6 +668,20 @@ export declare type PauseOrderExecutionMutation = {
|
|
|
624
668
|
}> | null | undefined;
|
|
625
669
|
};
|
|
626
670
|
};
|
|
671
|
+
export declare type RemoveDashboardMutationVariables = Exact<{
|
|
672
|
+
id: Scalars['ID'];
|
|
673
|
+
}>;
|
|
674
|
+
export declare type RemoveDashboardMutation = {
|
|
675
|
+
__typename?: 'Mutation';
|
|
676
|
+
removeDashboard: {
|
|
677
|
+
__typename?: 'RemoveDashboardPayload';
|
|
678
|
+
errors?: Array<{
|
|
679
|
+
__typename?: 'MutationError';
|
|
680
|
+
field?: string | null | undefined;
|
|
681
|
+
messages: Array<string>;
|
|
682
|
+
}> | null | undefined;
|
|
683
|
+
};
|
|
684
|
+
};
|
|
627
685
|
export declare type RemoveUserPresenceMutationVariables = Exact<{
|
|
628
686
|
id: Scalars['ID'];
|
|
629
687
|
}>;
|
|
@@ -638,6 +696,20 @@ export declare type RemoveUserPresenceMutation = {
|
|
|
638
696
|
}> | null | undefined;
|
|
639
697
|
};
|
|
640
698
|
};
|
|
699
|
+
export declare type RemoveWidgetMutationVariables = Exact<{
|
|
700
|
+
id: Scalars['ID'];
|
|
701
|
+
}>;
|
|
702
|
+
export declare type RemoveWidgetMutation = {
|
|
703
|
+
__typename?: 'Mutation';
|
|
704
|
+
removeWidget: {
|
|
705
|
+
__typename?: 'RemoveWidgetPayload';
|
|
706
|
+
errors?: Array<{
|
|
707
|
+
__typename?: 'MutationError';
|
|
708
|
+
field?: string | null | undefined;
|
|
709
|
+
messages: Array<string>;
|
|
710
|
+
}> | null | undefined;
|
|
711
|
+
};
|
|
712
|
+
};
|
|
641
713
|
export declare type RemoveWorkplaceUsersPresencesMutationVariables = Exact<{
|
|
642
714
|
workplaceId: Scalars['ID'];
|
|
643
715
|
}>;
|
|
@@ -883,6 +955,34 @@ export declare type DashboardsQuery = {
|
|
|
883
955
|
gridLayout?: string | null | undefined;
|
|
884
956
|
}>;
|
|
885
957
|
};
|
|
958
|
+
export declare type MetricValuesQueryVariables = Exact<{
|
|
959
|
+
workplaces?: InputMaybe<Array<Scalars['ID']> | Scalars['ID']>;
|
|
960
|
+
gridReasons?: InputMaybe<Array<Scalars['ID']> | Scalars['ID']>;
|
|
961
|
+
}>;
|
|
962
|
+
export declare type MetricValuesQuery = {
|
|
963
|
+
__typename?: 'Query';
|
|
964
|
+
metricValues: Array<{
|
|
965
|
+
__typename?: 'MetricValue';
|
|
966
|
+
active: boolean;
|
|
967
|
+
type: GridTableTypeEnum;
|
|
968
|
+
timer?: number | null | undefined;
|
|
969
|
+
value?: string | null | undefined;
|
|
970
|
+
status: AndonLightColor;
|
|
971
|
+
workplaceId: string;
|
|
972
|
+
metricId: string;
|
|
973
|
+
}>;
|
|
974
|
+
};
|
|
975
|
+
export declare type MetricsQueryVariables = Exact<{
|
|
976
|
+
[key: string]: never;
|
|
977
|
+
}>;
|
|
978
|
+
export declare type MetricsQuery = {
|
|
979
|
+
__typename?: 'Query';
|
|
980
|
+
metrics?: Array<{
|
|
981
|
+
__typename?: 'Metric';
|
|
982
|
+
id: string;
|
|
983
|
+
name: string;
|
|
984
|
+
}> | null | undefined;
|
|
985
|
+
};
|
|
886
986
|
export declare type OrdersQueryVariables = Exact<{
|
|
887
987
|
[key: string]: never;
|
|
888
988
|
}>;
|
|
@@ -1104,7 +1204,9 @@ export declare const CreateStatusChangeDocument: any;
|
|
|
1104
1204
|
export declare const CreateUserPresenceDocument: any;
|
|
1105
1205
|
export declare const CreateWidgetDocument: any;
|
|
1106
1206
|
export declare const PauseOrderExecutionDocument: any;
|
|
1207
|
+
export declare const RemoveDashboardDocument: any;
|
|
1107
1208
|
export declare const RemoveUserPresenceDocument: any;
|
|
1209
|
+
export declare const RemoveWidgetDocument: any;
|
|
1108
1210
|
export declare const RemoveWorkplaceUsersPresencesDocument: any;
|
|
1109
1211
|
export declare const SetCounterDocument: any;
|
|
1110
1212
|
export declare const StartOrderExecutionDocument: any;
|
|
@@ -1116,6 +1218,8 @@ export declare const CounterDirectoriesDocument: any;
|
|
|
1116
1218
|
export declare const CountersDocument: any;
|
|
1117
1219
|
export declare const CurrentUserDocument: any;
|
|
1118
1220
|
export declare const DashboardsDocument: any;
|
|
1221
|
+
export declare const MetricValuesDocument: any;
|
|
1222
|
+
export declare const MetricsDocument: any;
|
|
1119
1223
|
export declare const OrdersDocument: any;
|
|
1120
1224
|
export declare const OrdersExecutionsDocument: any;
|
|
1121
1225
|
export declare const ProductsDocument: any;
|
|
@@ -1136,7 +1240,9 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
1136
1240
|
createUserPresence(variables: CreateUserPresenceMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<CreateUserPresenceMutation>;
|
|
1137
1241
|
createWidget(variables: CreateWidgetMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<CreateWidgetMutation>;
|
|
1138
1242
|
pauseOrderExecution(variables: PauseOrderExecutionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<PauseOrderExecutionMutation>;
|
|
1243
|
+
removeDashboard(variables: RemoveDashboardMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<RemoveDashboardMutation>;
|
|
1139
1244
|
removeUserPresence(variables: RemoveUserPresenceMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<RemoveUserPresenceMutation>;
|
|
1245
|
+
removeWidget(variables: RemoveWidgetMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<RemoveWidgetMutation>;
|
|
1140
1246
|
removeWorkplaceUsersPresences(variables: RemoveWorkplaceUsersPresencesMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<RemoveWorkplaceUsersPresencesMutation>;
|
|
1141
1247
|
setCounter(variables: SetCounterMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<SetCounterMutation>;
|
|
1142
1248
|
startOrderExecution(variables: StartOrderExecutionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<StartOrderExecutionMutation>;
|
|
@@ -1158,6 +1264,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
1158
1264
|
dashboards(variables?: Exact<{
|
|
1159
1265
|
[key: string]: never;
|
|
1160
1266
|
}> | undefined, requestHeaders?: Dom.RequestInit["headers"]): Promise<DashboardsQuery>;
|
|
1267
|
+
metricValues(variables?: Exact<{
|
|
1268
|
+
workplaces?: string | string[] | null | undefined;
|
|
1269
|
+
gridReasons?: string | string[] | null | undefined;
|
|
1270
|
+
}> | undefined, requestHeaders?: Dom.RequestInit["headers"]): Promise<MetricValuesQuery>;
|
|
1271
|
+
metrics(variables?: Exact<{
|
|
1272
|
+
[key: string]: never;
|
|
1273
|
+
}> | undefined, requestHeaders?: Dom.RequestInit["headers"]): Promise<MetricsQuery>;
|
|
1161
1274
|
orders(variables?: Exact<{
|
|
1162
1275
|
[key: string]: never;
|
|
1163
1276
|
}> | undefined, requestHeaders?: Dom.RequestInit["headers"]): Promise<OrdersQuery>;
|
package/dist/index.js
CHANGED
|
@@ -172,7 +172,7 @@ var extras = {
|
|
|
172
172
|
gql["default"] = gql;
|
|
173
173
|
var gql$1 = gql;
|
|
174
174
|
|
|
175
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30;
|
|
175
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34;
|
|
176
176
|
|
|
177
177
|
(function (AndonLightColor) {
|
|
178
178
|
AndonLightColor["Gray"] = "gray";
|
|
@@ -192,6 +192,14 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
192
192
|
DefaultScreenEnum["Statuses"] = "STATUSES";
|
|
193
193
|
})(exports.DefaultScreenEnum || (exports.DefaultScreenEnum = {}));
|
|
194
194
|
|
|
195
|
+
(function (GridTableTypeEnum) {
|
|
196
|
+
GridTableTypeEnum["Counter"] = "COUNTER";
|
|
197
|
+
GridTableTypeEnum["Empty"] = "EMPTY";
|
|
198
|
+
GridTableTypeEnum["Indicator"] = "INDICATOR";
|
|
199
|
+
GridTableTypeEnum["Kpi"] = "KPI";
|
|
200
|
+
GridTableTypeEnum["Timer"] = "TIMER";
|
|
201
|
+
})(exports.GridTableTypeEnum || (exports.GridTableTypeEnum = {}));
|
|
202
|
+
|
|
195
203
|
(function (ProgressEnum) {
|
|
196
204
|
ProgressEnum["Boost"] = "boost";
|
|
197
205
|
ProgressEnum["Failure"] = "failure";
|
|
@@ -220,29 +228,33 @@ var CreateStatusChangeDocument = gql$1(_templateObject4 || (_templateObject4 = _
|
|
|
220
228
|
var CreateUserPresenceDocument = gql$1(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n mutation createUserPresence($id: ID!, $workplaceId: ID!, $userToken: String!) {\n createUserPresence(id: $id, workplaceId: $workplaceId, userToken: $userToken) {\n userPresence {\n id\n workplaceId\n user {\n id\n login\n name\n }\n startedAt\n finishedAt\n author {\n id\n login\n name\n }\n }\n errors {\n field\n messages\n }\n }\n}\n "])));
|
|
221
229
|
var CreateWidgetDocument = gql$1(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n mutation createWidget($id: ID!, $config: String) {\n createWidget(id: $id, config: $config) {\n widget {\n id\n config\n }\n errors {\n field\n messages\n }\n }\n}\n "])));
|
|
222
230
|
var PauseOrderExecutionDocument = gql$1(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n mutation pauseOrderExecution($id: ID!, $statusChangeId: ID!) {\n pauseOrderExecution(id: $id, statusChangeId: $statusChangeId) {\n order {\n id\n number\n }\n errors {\n field\n messages\n }\n }\n}\n "])));
|
|
223
|
-
var
|
|
224
|
-
var
|
|
225
|
-
var
|
|
226
|
-
var
|
|
227
|
-
var
|
|
228
|
-
var
|
|
229
|
-
var
|
|
230
|
-
var
|
|
231
|
-
var
|
|
232
|
-
var
|
|
233
|
-
var
|
|
234
|
-
var
|
|
235
|
-
var
|
|
236
|
-
var
|
|
237
|
-
var
|
|
238
|
-
var
|
|
239
|
-
var
|
|
240
|
-
var
|
|
241
|
-
var
|
|
242
|
-
var
|
|
243
|
-
var
|
|
244
|
-
var
|
|
245
|
-
var
|
|
231
|
+
var RemoveDashboardDocument = gql$1(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n mutation removeDashboard($id: ID!) {\n removeDashboard(id: $id) {\n errors {\n field\n messages\n }\n }\n}\n "])));
|
|
232
|
+
var RemoveUserPresenceDocument = gql$1(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n mutation removeUserPresence($id: ID!) {\n removeUserPresence(id: $id) {\n errors {\n field\n messages\n }\n }\n}\n "])));
|
|
233
|
+
var RemoveWidgetDocument = gql$1(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["\n mutation removeWidget($id: ID!) {\n removeWidget(id: $id) {\n errors {\n field\n messages\n }\n }\n}\n "])));
|
|
234
|
+
var RemoveWorkplaceUsersPresencesDocument = gql$1(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n mutation removeWorkplaceUsersPresences($workplaceId: ID!) {\n removeWorkplaceUsersPresences(workplaceId: $workplaceId) {\n errors {\n field\n messages\n }\n }\n}\n "])));
|
|
235
|
+
var SetCounterDocument = gql$1(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n mutation setCounter($id: ID!, $value: Float!) {\n setCounter(id: $id, value: $value) {\n counter {\n id\n kind\n workplaceId\n directoryId\n name\n value\n position\n }\n errors {\n field\n messages\n }\n }\n}\n "])));
|
|
236
|
+
var StartOrderExecutionDocument = gql$1(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose(["\n mutation startOrderExecution($id: ID!, $workplaceId: ID!, $orderId: ID!, $productId: ID, $statusChangeId: ID!, $quantity: Float, $note: String) {\n startOrderExecution(\n id: $id\n workplaceId: $workplaceId\n orderId: $orderId\n productId: $productId\n statusChangeId: $statusChangeId\n quantity: $quantity\n note: $note\n ) {\n order {\n id\n number\n }\n errors {\n field\n messages\n }\n }\n}\n "])));
|
|
237
|
+
var StopOrderExecutionDocument = gql$1(_templateObject14 || (_templateObject14 = _taggedTemplateLiteralLoose(["\n mutation stopOrderExecution($id: ID!, $statusChangeId: ID!) {\n stopOrderExecution(id: $id, statusChangeId: $statusChangeId) {\n order {\n id\n number\n }\n errors {\n field\n messages\n }\n }\n}\n "])));
|
|
238
|
+
var UpdateDashboardDocument = gql$1(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n mutation updateDashboard($id: ID!, $gridLayout: String!) {\n updateDashboard(id: $id, gridLayout: $gridLayout) {\n dashboard {\n id\n name\n gridLayout\n }\n errors {\n field\n messages\n }\n }\n}\n "])));
|
|
239
|
+
var UpdateWidgetDocument = gql$1(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n mutation updateWidget($id: ID!, $config: String!) {\n updateWidget(id: $id, config: $config) {\n widget {\n id\n config\n }\n errors {\n field\n messages\n }\n }\n}\n "])));
|
|
240
|
+
var CompanyConfigDocument = gql$1(_templateObject17 || (_templateObject17 = _taggedTemplateLiteralLoose(["\n query companyConfig {\n companyConfig {\n productConfig {\n formFieldsConfigs {\n name\n regexp\n prefix\n unit\n }\n }\n roleConfig {\n historyVisibilityEnabled\n }\n displayedKpiItems\n workplacesConfigs {\n workplaceId\n orderConfig {\n featureEnabled\n afterStartOrderExecutionReasonId\n afterPauseOrderExecutionReasonId\n afterStopOrderExecutionReasonId\n orderExecutionFormFieldsConfigs {\n name\n regexp\n prefix\n unit\n }\n orderFormFieldsConfigs {\n name\n regexp\n prefix\n unit\n }\n }\n screenSaverConfig {\n enabled\n idleTime\n displayAfterIdle\n displayAfterStatusChangeCreated\n displayAfterOrderCreated\n autoSignOut\n }\n defaultScreen\n statusScreenDisplayBlocks\n }\n devicesConfigs {\n deviceId\n name\n defaultWorkplaceId\n }\n }\n}\n "])));
|
|
241
|
+
var CounterDirectoriesDocument = gql$1(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n query counterDirectories {\n counterDirectories {\n id\n name\n directoryId\n position\n workplaceId\n }\n}\n "])));
|
|
242
|
+
var CountersDocument = gql$1(_templateObject19 || (_templateObject19 = _taggedTemplateLiteralLoose(["\n query counters {\n counters {\n id\n kind\n workplaceId\n directoryId\n name\n value\n position\n }\n}\n "])));
|
|
243
|
+
var CurrentUserDocument = gql$1(_templateObject20 || (_templateObject20 = _taggedTemplateLiteralLoose(["\n query currentUser {\n currentUser {\n id\n login\n name\n }\n}\n "])));
|
|
244
|
+
var DashboardsDocument = gql$1(_templateObject21 || (_templateObject21 = _taggedTemplateLiteralLoose(["\n query dashboards {\n dashboards {\n id\n name\n gridLayout\n }\n}\n "])));
|
|
245
|
+
var MetricValuesDocument = gql$1(_templateObject22 || (_templateObject22 = _taggedTemplateLiteralLoose(["\n query metricValues($workplaces: [ID!], $gridReasons: [ID!]) {\n metricValues(workplaces: $workplaces, gridReasons: $gridReasons) {\n active\n type\n timer\n value\n status\n workplaceId\n metricId\n }\n}\n "])));
|
|
246
|
+
var MetricsDocument = gql$1(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n query metrics {\n metrics {\n id\n name\n }\n}\n "])));
|
|
247
|
+
var OrdersDocument = gql$1(_templateObject24 || (_templateObject24 = _taggedTemplateLiteralLoose(["\n query orders {\n orders {\n id\n number\n }\n}\n "])));
|
|
248
|
+
var OrdersExecutionsDocument = gql$1(_templateObject25 || (_templateObject25 = _taggedTemplateLiteralLoose(["\n query ordersExecutions {\n ordersExecutions {\n id\n workplaceId\n order {\n id\n number\n }\n product {\n id\n name\n number\n assemblyManual\n }\n startedAt\n finishedAt\n quantity\n note\n }\n}\n "])));
|
|
249
|
+
var ProductsDocument = gql$1(_templateObject26 || (_templateObject26 = _taggedTemplateLiteralLoose(["\n query products {\n products {\n id\n name\n number\n assemblyManual\n }\n}\n "])));
|
|
250
|
+
var ReasonsDocument = gql$1(_templateObject27 || (_templateObject27 = _taggedTemplateLiteralLoose(["\n query reasons {\n reasons {\n id\n parentId\n reasonGroupId\n name\n position\n leaf\n acceptanceMonit\n hasNote\n statusColor\n }\n}\n "])));
|
|
251
|
+
var ShiftsDocument = gql$1(_templateObject28 || (_templateObject28 = _taggedTemplateLiteralLoose(["\n query shifts {\n shifts {\n id\n name\n startedAt\n finishedAt\n }\n}\n "])));
|
|
252
|
+
var StatusChangeTransitionPermissionsDocument = gql$1(_templateObject29 || (_templateObject29 = _taggedTemplateLiteralLoose(["\n query statusChangeTransitionPermissions {\n statusChangeTransitionPermissions {\n id\n workplaceId\n roleId\n fromReasonId\n toReasonId\n allowed\n }\n}\n "])));
|
|
253
|
+
var StatusChangesDocument = gql$1(_templateObject30 || (_templateObject30 = _taggedTemplateLiteralLoose(["\n query statusChanges {\n statusChanges {\n id\n workplaceId\n startedAt\n finishedAt\n reason {\n id\n parentId\n reasonGroupId\n name\n position\n leaf\n acceptanceMonit\n hasNote\n statusColor\n }\n author {\n id\n login\n name\n }\n note\n order {\n id\n number\n }\n product {\n id\n name\n number\n assemblyManual\n }\n }\n}\n "])));
|
|
254
|
+
var UsersDocument = gql$1(_templateObject31 || (_templateObject31 = _taggedTemplateLiteralLoose(["\n query users {\n users {\n id\n login\n name\n }\n}\n "])));
|
|
255
|
+
var UsersPresencesDocument = gql$1(_templateObject32 || (_templateObject32 = _taggedTemplateLiteralLoose(["\n query usersPresences {\n usersPresences {\n id\n workplaceId\n user {\n id\n login\n name\n }\n startedAt\n finishedAt\n author {\n id\n login\n name\n }\n }\n}\n "])));
|
|
256
|
+
var WidgetDocument = gql$1(_templateObject33 || (_templateObject33 = _taggedTemplateLiteralLoose(["\n query widget($id: ID!) {\n widget(id: $id) {\n id\n config\n }\n}\n "])));
|
|
257
|
+
var WorkplacesDocument = gql$1(_templateObject34 || (_templateObject34 = _taggedTemplateLiteralLoose(["\n query workplaces {\n workplaces {\n id\n name\n reasonGroupId\n kpiData {\n ... on KpiItem {\n id\n label\n symbol\n value\n }\n ... on KpiProgressItem {\n id\n label\n symbol\n progress\n }\n }\n }\n}\n "])));
|
|
246
258
|
|
|
247
259
|
var defaultWrapper = function defaultWrapper(action, _operationName) {
|
|
248
260
|
return action();
|
|
@@ -289,11 +301,21 @@ function getSdk(client, withWrapper) {
|
|
|
289
301
|
return client.request(PauseOrderExecutionDocument, variables, _extends({}, requestHeaders, wrappedRequestHeaders));
|
|
290
302
|
}, 'pauseOrderExecution');
|
|
291
303
|
},
|
|
304
|
+
removeDashboard: function removeDashboard(variables, requestHeaders) {
|
|
305
|
+
return withWrapper(function (wrappedRequestHeaders) {
|
|
306
|
+
return client.request(RemoveDashboardDocument, variables, _extends({}, requestHeaders, wrappedRequestHeaders));
|
|
307
|
+
}, 'removeDashboard');
|
|
308
|
+
},
|
|
292
309
|
removeUserPresence: function removeUserPresence(variables, requestHeaders) {
|
|
293
310
|
return withWrapper(function (wrappedRequestHeaders) {
|
|
294
311
|
return client.request(RemoveUserPresenceDocument, variables, _extends({}, requestHeaders, wrappedRequestHeaders));
|
|
295
312
|
}, 'removeUserPresence');
|
|
296
313
|
},
|
|
314
|
+
removeWidget: function removeWidget(variables, requestHeaders) {
|
|
315
|
+
return withWrapper(function (wrappedRequestHeaders) {
|
|
316
|
+
return client.request(RemoveWidgetDocument, variables, _extends({}, requestHeaders, wrappedRequestHeaders));
|
|
317
|
+
}, 'removeWidget');
|
|
318
|
+
},
|
|
297
319
|
removeWorkplaceUsersPresences: function removeWorkplaceUsersPresences(variables, requestHeaders) {
|
|
298
320
|
return withWrapper(function (wrappedRequestHeaders) {
|
|
299
321
|
return client.request(RemoveWorkplaceUsersPresencesDocument, variables, _extends({}, requestHeaders, wrappedRequestHeaders));
|
|
@@ -349,6 +371,16 @@ function getSdk(client, withWrapper) {
|
|
|
349
371
|
return client.request(DashboardsDocument, variables, _extends({}, requestHeaders, wrappedRequestHeaders));
|
|
350
372
|
}, 'dashboards');
|
|
351
373
|
},
|
|
374
|
+
metricValues: function metricValues(variables, requestHeaders) {
|
|
375
|
+
return withWrapper(function (wrappedRequestHeaders) {
|
|
376
|
+
return client.request(MetricValuesDocument, variables, _extends({}, requestHeaders, wrappedRequestHeaders));
|
|
377
|
+
}, 'metricValues');
|
|
378
|
+
},
|
|
379
|
+
metrics: function metrics(variables, requestHeaders) {
|
|
380
|
+
return withWrapper(function (wrappedRequestHeaders) {
|
|
381
|
+
return client.request(MetricsDocument, variables, _extends({}, requestHeaders, wrappedRequestHeaders));
|
|
382
|
+
}, 'metrics');
|
|
383
|
+
},
|
|
352
384
|
orders: function orders(variables, requestHeaders) {
|
|
353
385
|
return withWrapper(function (wrappedRequestHeaders) {
|
|
354
386
|
return client.request(OrdersDocument, variables, _extends({}, requestHeaders, wrappedRequestHeaders));
|
|
@@ -418,12 +450,16 @@ exports.CreateUserPresenceDocument = CreateUserPresenceDocument;
|
|
|
418
450
|
exports.CreateWidgetDocument = CreateWidgetDocument;
|
|
419
451
|
exports.CurrentUserDocument = CurrentUserDocument;
|
|
420
452
|
exports.DashboardsDocument = DashboardsDocument;
|
|
453
|
+
exports.MetricValuesDocument = MetricValuesDocument;
|
|
454
|
+
exports.MetricsDocument = MetricsDocument;
|
|
421
455
|
exports.OrdersDocument = OrdersDocument;
|
|
422
456
|
exports.OrdersExecutionsDocument = OrdersExecutionsDocument;
|
|
423
457
|
exports.PauseOrderExecutionDocument = PauseOrderExecutionDocument;
|
|
424
458
|
exports.ProductsDocument = ProductsDocument;
|
|
425
459
|
exports.ReasonsDocument = ReasonsDocument;
|
|
460
|
+
exports.RemoveDashboardDocument = RemoveDashboardDocument;
|
|
426
461
|
exports.RemoveUserPresenceDocument = RemoveUserPresenceDocument;
|
|
462
|
+
exports.RemoveWidgetDocument = RemoveWidgetDocument;
|
|
427
463
|
exports.RemoveWorkplaceUsersPresencesDocument = RemoveWorkplaceUsersPresencesDocument;
|
|
428
464
|
exports.SetCounterDocument = SetCounterDocument;
|
|
429
465
|
exports.ShiftsDocument = ShiftsDocument;
|