@procraft/widget-order 2.27.0 → 2.27.3
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/CourseItem/OrderButton/index.js +4 -2
- package/dist/CourseItem/OrderButton/index.js.map +1 -1
- package/dist/CourseItem/PlacesLeft/index.js +9 -2
- package/dist/CourseItem/PlacesLeft/index.js.map +1 -1
- package/dist/components/OldPrice/index.js +3 -4
- package/dist/components/OldPrice/index.js.map +1 -1
- package/dist/components/OldPrice/interfaces.d.ts +2 -0
- package/dist/modules/gql/generated/helpers/apollo-helpers.d.ts +19 -4
- package/dist/modules/gql/generated/types.d.ts +15 -0
- package/dist/modules/gql/generated/types.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/CourseItem/OrderButton/index.tsx +6 -3
- package/src/CourseItem/PlacesLeft/index.tsx +13 -3
- package/src/components/OldPrice/index.tsx +3 -2
- package/src/components/OldPrice/interfaces.ts +2 -0
- package/src/modules/gql/generated/helpers/apollo-helpers.ts +20 -5
- package/src/modules/gql/generated/schema.json +156 -0
- package/src/modules/gql/generated/types.ts +18 -0
package/package.json
CHANGED
|
@@ -244,9 +244,12 @@ export const OrderButton: React.FC<OrderButtonProps> = ({
|
|
|
244
244
|
break
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
+
const currencyPrefix = getCurrencyPrefix(catalogItem.master?.currency || '')
|
|
248
|
+
const currencySuffix = getCurrencySuffix(catalogItem.master?.currency || '')
|
|
249
|
+
|
|
247
250
|
content.push(
|
|
248
251
|
<Container key="buy" variant="white" className="buy">
|
|
249
|
-
{oldPrice && oldPrice > price ? <OldPrice price={oldPrice} /> : null}
|
|
252
|
+
{oldPrice && oldPrice > price ? <OldPrice prefix={currencyPrefix} suffix={currencySuffix} price={oldPrice} /> : null}
|
|
250
253
|
|
|
251
254
|
{!price ? (
|
|
252
255
|
<Typography className="free" component="span">
|
|
@@ -268,8 +271,8 @@ export const OrderButton: React.FC<OrderButtonProps> = ({
|
|
|
268
271
|
value={price}
|
|
269
272
|
displayType="text"
|
|
270
273
|
thousandSeparator={' '}
|
|
271
|
-
prefix={
|
|
272
|
-
suffix={
|
|
274
|
+
prefix={currencyPrefix}
|
|
275
|
+
suffix={currencySuffix}
|
|
273
276
|
/>
|
|
274
277
|
</>
|
|
275
278
|
) : (
|
|
@@ -10,13 +10,23 @@ import { PlacesLeftStyled } from './styles'
|
|
|
10
10
|
export const PlacesLeft: React.FC<PlacesLeftProps> = ({
|
|
11
11
|
fieldsValueSelected,
|
|
12
12
|
}) => {
|
|
13
|
-
// console.log('PlacesLeft fieldsValueSelected', fieldsValueSelected);
|
|
14
|
-
|
|
15
13
|
return useMemo(() => {
|
|
16
14
|
let placesLeft: number | undefined
|
|
17
15
|
|
|
18
16
|
fieldsValueSelected.forEach((n) => {
|
|
19
|
-
const { availableCount } = n
|
|
17
|
+
const { availableCount, isDisplayRemainder } = n
|
|
18
|
+
|
|
19
|
+
if (!isDisplayRemainder) {
|
|
20
|
+
if ((availableCount ?? 0) === 0) {
|
|
21
|
+
placesLeft = 0
|
|
22
|
+
|
|
23
|
+
return
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
placesLeft = undefined
|
|
27
|
+
|
|
28
|
+
return
|
|
29
|
+
}
|
|
20
30
|
|
|
21
31
|
/**
|
|
22
32
|
* Если availableCount является числом
|
|
@@ -3,7 +3,7 @@ import NumberFormat from 'react-number-format'
|
|
|
3
3
|
import { OldPriceProps } from './interfaces'
|
|
4
4
|
import { OldPriceStyled } from './styles'
|
|
5
5
|
|
|
6
|
-
const OldPrice: React.FC<OldPriceProps> = ({ price, ...other }) => {
|
|
6
|
+
const OldPrice: React.FC<OldPriceProps> = ({ price, prefix, suffix, ...other }) => {
|
|
7
7
|
return (
|
|
8
8
|
<OldPriceStyled component="span" {...other}>
|
|
9
9
|
<NumberFormat
|
|
@@ -11,8 +11,9 @@ const OldPrice: React.FC<OldPriceProps> = ({ price, ...other }) => {
|
|
|
11
11
|
displayType={'text'}
|
|
12
12
|
thousandSeparator={' '}
|
|
13
13
|
decimalScale={0}
|
|
14
|
+
prefix={prefix}
|
|
15
|
+
suffix={suffix}
|
|
14
16
|
/>{' '}
|
|
15
|
-
₽
|
|
16
17
|
</OldPriceStyled>
|
|
17
18
|
)
|
|
18
19
|
}
|
|
@@ -8,7 +8,7 @@ export type CashPaymentAliasFieldPolicy = {
|
|
|
8
8
|
description?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
9
9
|
showInCart?: FieldPolicy<any> | FieldReadFunction<any>
|
|
10
10
|
};
|
|
11
|
-
export type CatalogFieldValueKeySpecifier = ('uid' | 'fieldId' | 'fieldName' | 'optionName' | 'optionValue' | 'isSelected' | 'isDefault' | 'groupName' | 'extraPay' | 'extraPayOriginal' | 'extraPayPercentage' | 'extraWork' | 'extraWorkPercentage' | 'availableCount' | 'params' | 'type' | CatalogFieldValueKeySpecifier)[];
|
|
11
|
+
export type CatalogFieldValueKeySpecifier = ('uid' | 'fieldId' | 'fieldName' | 'optionName' | 'optionValue' | 'isSelected' | 'isDisplayRemainder' | 'isDefault' | 'groupName' | 'extraPay' | 'extraPayOriginal' | 'extraPayPercentage' | 'extraWork' | 'extraWorkPercentage' | 'availableCount' | 'params' | 'type' | CatalogFieldValueKeySpecifier)[];
|
|
12
12
|
export type CatalogFieldValueFieldPolicy = {
|
|
13
13
|
uid?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
14
14
|
fieldId?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
@@ -16,6 +16,7 @@ export type CatalogFieldValueFieldPolicy = {
|
|
|
16
16
|
optionName?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
17
17
|
optionValue?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
18
18
|
isSelected?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
19
|
+
isDisplayRemainder?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
19
20
|
isDefault?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
20
21
|
groupName?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
21
22
|
extraPay?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
@@ -91,12 +92,20 @@ export type ContactsProfileFieldPolicy = {
|
|
|
91
92
|
messengers?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
92
93
|
socials?: FieldPolicy<any> | FieldReadFunction<any>
|
|
93
94
|
};
|
|
94
|
-
export type CourseItemKeySpecifier = ('courseId' | 'flowId' | 'tariffId' | 'prolongationDays' | CourseItemKeySpecifier)[];
|
|
95
|
+
export type CourseItemKeySpecifier = ('courseId' | 'flowId' | 'tariffId' | 'prolongationDays' | 'courseMeta' | CourseItemKeySpecifier)[];
|
|
95
96
|
export type CourseItemFieldPolicy = {
|
|
96
97
|
courseId?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
97
98
|
flowId?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
98
99
|
tariffId?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
99
|
-
prolongationDays?: FieldPolicy<any> | FieldReadFunction<any
|
|
100
|
+
prolongationDays?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
101
|
+
courseMeta?: FieldPolicy<any> | FieldReadFunction<any>
|
|
102
|
+
};
|
|
103
|
+
export type CourseItemMetaKeySpecifier = ('courseName' | 'courseKind' | 'courseSubKindLabel' | 'courseSubKind' | CourseItemMetaKeySpecifier)[];
|
|
104
|
+
export type CourseItemMetaFieldPolicy = {
|
|
105
|
+
courseName?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
106
|
+
courseKind?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
107
|
+
courseSubKindLabel?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
108
|
+
courseSubKind?: FieldPolicy<any> | FieldReadFunction<any>
|
|
100
109
|
};
|
|
101
110
|
export type CoursePublicCustomKeySpecifier = ('id' | 'name' | 'uid' | 'catalogItems' | 'tariffs' | 'tariffPerFlowDataItems' | 'kind' | 'subKind' | 'subKindLabel' | CoursePublicCustomKeySpecifier)[];
|
|
102
111
|
export type CoursePublicCustomFieldPolicy = {
|
|
@@ -234,7 +243,7 @@ export type LandintTemplatePayloadKeySpecifier = ('landingTemplate' | LandintTem
|
|
|
234
243
|
export type LandintTemplatePayloadFieldPolicy = {
|
|
235
244
|
landingTemplate?: FieldPolicy<any> | FieldReadFunction<any>
|
|
236
245
|
};
|
|
237
|
-
export type LangRussianNounKeySpecifier = ('valueNominative' | 'valueGenitive' | 'valueAccusative' | 'valueDative' | 'valueInstrumental' | 'valuePrepositional' | 'gender' | LangRussianNounKeySpecifier)[];
|
|
246
|
+
export type LangRussianNounKeySpecifier = ('valueNominative' | 'valueGenitive' | 'valueAccusative' | 'valueDative' | 'valueInstrumental' | 'valuePrepositional' | 'createdAt' | 'gender' | LangRussianNounKeySpecifier)[];
|
|
238
247
|
export type LangRussianNounFieldPolicy = {
|
|
239
248
|
valueNominative?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
240
249
|
valueGenitive?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
@@ -242,6 +251,7 @@ export type LangRussianNounFieldPolicy = {
|
|
|
242
251
|
valueDative?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
243
252
|
valueInstrumental?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
244
253
|
valuePrepositional?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
254
|
+
createdAt?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
245
255
|
gender?: FieldPolicy<any> | FieldReadFunction<any>
|
|
246
256
|
};
|
|
247
257
|
export type MasterClientProfileCommonKeySpecifier = ('id' | 'uid' | 'extraFieldsAnswers' | MasterClientProfileCommonKeySpecifier)[];
|
|
@@ -422,13 +432,14 @@ export type PublicMasterRoleFieldPolicy = {
|
|
|
422
432
|
master?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
423
433
|
contacts?: FieldPolicy<any> | FieldReadFunction<any>
|
|
424
434
|
};
|
|
425
|
-
export type QueryKeySpecifier = ('me' | 'viewer' | 'templates' | 'template' | 'courses' | 'orderCatalogItem' | 'staticFiles' | 'extraFieldsQuestions' | 'promoCode' | QueryKeySpecifier)[];
|
|
435
|
+
export type QueryKeySpecifier = ('me' | 'viewer' | 'templates' | 'template' | 'courses' | 'course' | 'orderCatalogItem' | 'staticFiles' | 'extraFieldsQuestions' | 'promoCode' | QueryKeySpecifier)[];
|
|
426
436
|
export type QueryFieldPolicy = {
|
|
427
437
|
me?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
428
438
|
viewer?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
429
439
|
templates?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
430
440
|
template?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
431
441
|
courses?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
442
|
+
course?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
432
443
|
orderCatalogItem?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
433
444
|
staticFiles?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
434
445
|
extraFieldsQuestions?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
@@ -561,6 +572,10 @@ export type TypedTypePolicies = TypePolicies & {
|
|
|
561
572
|
keyFields?: false | CourseItemKeySpecifier | (() => undefined | CourseItemKeySpecifier),
|
|
562
573
|
fields?: CourseItemFieldPolicy,
|
|
563
574
|
},
|
|
575
|
+
CourseItemMeta?: Omit<TypePolicy, "fields" | "keyFields"> & {
|
|
576
|
+
keyFields?: false | CourseItemMetaKeySpecifier | (() => undefined | CourseItemMetaKeySpecifier),
|
|
577
|
+
fields?: CourseItemMetaFieldPolicy,
|
|
578
|
+
},
|
|
564
579
|
CoursePublicCustom?: Omit<TypePolicy, "fields" | "keyFields"> & {
|
|
565
580
|
keyFields?: false | CoursePublicCustomKeySpecifier | (() => undefined | CoursePublicCustomKeySpecifier),
|
|
566
581
|
fields?: CoursePublicCustomFieldPolicy,
|
|
@@ -600,6 +600,18 @@
|
|
|
600
600
|
"isDeprecated": false,
|
|
601
601
|
"deprecationReason": null
|
|
602
602
|
},
|
|
603
|
+
{
|
|
604
|
+
"name": "isDisplayRemainder",
|
|
605
|
+
"description": null,
|
|
606
|
+
"args": [],
|
|
607
|
+
"type": {
|
|
608
|
+
"kind": "SCALAR",
|
|
609
|
+
"name": "Boolean",
|
|
610
|
+
"ofType": null
|
|
611
|
+
},
|
|
612
|
+
"isDeprecated": false,
|
|
613
|
+
"deprecationReason": null
|
|
614
|
+
},
|
|
603
615
|
{
|
|
604
616
|
"name": "isDefault",
|
|
605
617
|
"description": null,
|
|
@@ -1956,6 +1968,89 @@
|
|
|
1956
1968
|
},
|
|
1957
1969
|
"isDeprecated": false,
|
|
1958
1970
|
"deprecationReason": null
|
|
1971
|
+
},
|
|
1972
|
+
{
|
|
1973
|
+
"name": "courseMeta",
|
|
1974
|
+
"description": null,
|
|
1975
|
+
"args": [],
|
|
1976
|
+
"type": {
|
|
1977
|
+
"kind": "OBJECT",
|
|
1978
|
+
"name": "CourseItemMeta",
|
|
1979
|
+
"ofType": null
|
|
1980
|
+
},
|
|
1981
|
+
"isDeprecated": false,
|
|
1982
|
+
"deprecationReason": null
|
|
1983
|
+
}
|
|
1984
|
+
],
|
|
1985
|
+
"inputFields": null,
|
|
1986
|
+
"interfaces": [],
|
|
1987
|
+
"enumValues": null,
|
|
1988
|
+
"possibleTypes": null
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
"kind": "OBJECT",
|
|
1992
|
+
"name": "CourseItemMeta",
|
|
1993
|
+
"description": null,
|
|
1994
|
+
"fields": [
|
|
1995
|
+
{
|
|
1996
|
+
"name": "courseName",
|
|
1997
|
+
"description": null,
|
|
1998
|
+
"args": [],
|
|
1999
|
+
"type": {
|
|
2000
|
+
"kind": "NON_NULL",
|
|
2001
|
+
"name": null,
|
|
2002
|
+
"ofType": {
|
|
2003
|
+
"kind": "SCALAR",
|
|
2004
|
+
"name": "String",
|
|
2005
|
+
"ofType": null
|
|
2006
|
+
}
|
|
2007
|
+
},
|
|
2008
|
+
"isDeprecated": false,
|
|
2009
|
+
"deprecationReason": null
|
|
2010
|
+
},
|
|
2011
|
+
{
|
|
2012
|
+
"name": "courseKind",
|
|
2013
|
+
"description": null,
|
|
2014
|
+
"args": [],
|
|
2015
|
+
"type": {
|
|
2016
|
+
"kind": "NON_NULL",
|
|
2017
|
+
"name": null,
|
|
2018
|
+
"ofType": {
|
|
2019
|
+
"kind": "ENUM",
|
|
2020
|
+
"name": "CourseKind",
|
|
2021
|
+
"ofType": null
|
|
2022
|
+
}
|
|
2023
|
+
},
|
|
2024
|
+
"isDeprecated": false,
|
|
2025
|
+
"deprecationReason": null
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
"name": "courseSubKindLabel",
|
|
2029
|
+
"description": null,
|
|
2030
|
+
"args": [],
|
|
2031
|
+
"type": {
|
|
2032
|
+
"kind": "OBJECT",
|
|
2033
|
+
"name": "LangRussianNoun",
|
|
2034
|
+
"ofType": null
|
|
2035
|
+
},
|
|
2036
|
+
"isDeprecated": false,
|
|
2037
|
+
"deprecationReason": null
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
"name": "courseSubKind",
|
|
2041
|
+
"description": null,
|
|
2042
|
+
"args": [],
|
|
2043
|
+
"type": {
|
|
2044
|
+
"kind": "NON_NULL",
|
|
2045
|
+
"name": null,
|
|
2046
|
+
"ofType": {
|
|
2047
|
+
"kind": "ENUM",
|
|
2048
|
+
"name": "CourseSubKind",
|
|
2049
|
+
"ofType": null
|
|
2050
|
+
}
|
|
2051
|
+
},
|
|
2052
|
+
"isDeprecated": false,
|
|
2053
|
+
"deprecationReason": null
|
|
1959
2054
|
}
|
|
1960
2055
|
],
|
|
1961
2056
|
"inputFields": null,
|
|
@@ -4244,6 +4339,22 @@
|
|
|
4244
4339
|
"isDeprecated": false,
|
|
4245
4340
|
"deprecationReason": null
|
|
4246
4341
|
},
|
|
4342
|
+
{
|
|
4343
|
+
"name": "createdAt",
|
|
4344
|
+
"description": null,
|
|
4345
|
+
"args": [],
|
|
4346
|
+
"type": {
|
|
4347
|
+
"kind": "NON_NULL",
|
|
4348
|
+
"name": null,
|
|
4349
|
+
"ofType": {
|
|
4350
|
+
"kind": "SCALAR",
|
|
4351
|
+
"name": "DateTime",
|
|
4352
|
+
"ofType": null
|
|
4353
|
+
}
|
|
4354
|
+
},
|
|
4355
|
+
"isDeprecated": false,
|
|
4356
|
+
"deprecationReason": null
|
|
4357
|
+
},
|
|
4247
4358
|
{
|
|
4248
4359
|
"name": "gender",
|
|
4249
4360
|
"description": null,
|
|
@@ -7299,6 +7410,51 @@
|
|
|
7299
7410
|
"isDeprecated": false,
|
|
7300
7411
|
"deprecationReason": null
|
|
7301
7412
|
},
|
|
7413
|
+
{
|
|
7414
|
+
"name": "course",
|
|
7415
|
+
"description": null,
|
|
7416
|
+
"args": [
|
|
7417
|
+
{
|
|
7418
|
+
"name": "id",
|
|
7419
|
+
"description": null,
|
|
7420
|
+
"type": {
|
|
7421
|
+
"kind": "NON_NULL",
|
|
7422
|
+
"name": null,
|
|
7423
|
+
"ofType": {
|
|
7424
|
+
"kind": "SCALAR",
|
|
7425
|
+
"name": "Int",
|
|
7426
|
+
"ofType": null
|
|
7427
|
+
}
|
|
7428
|
+
},
|
|
7429
|
+
"defaultValue": null,
|
|
7430
|
+
"isDeprecated": false,
|
|
7431
|
+
"deprecationReason": null
|
|
7432
|
+
},
|
|
7433
|
+
{
|
|
7434
|
+
"name": "code",
|
|
7435
|
+
"description": null,
|
|
7436
|
+
"type": {
|
|
7437
|
+
"kind": "NON_NULL",
|
|
7438
|
+
"name": null,
|
|
7439
|
+
"ofType": {
|
|
7440
|
+
"kind": "SCALAR",
|
|
7441
|
+
"name": "String",
|
|
7442
|
+
"ofType": null
|
|
7443
|
+
}
|
|
7444
|
+
},
|
|
7445
|
+
"defaultValue": null,
|
|
7446
|
+
"isDeprecated": false,
|
|
7447
|
+
"deprecationReason": null
|
|
7448
|
+
}
|
|
7449
|
+
],
|
|
7450
|
+
"type": {
|
|
7451
|
+
"kind": "OBJECT",
|
|
7452
|
+
"name": "CoursePublicCustom",
|
|
7453
|
+
"ofType": null
|
|
7454
|
+
},
|
|
7455
|
+
"isDeprecated": false,
|
|
7456
|
+
"deprecationReason": null
|
|
7457
|
+
},
|
|
7302
7458
|
{
|
|
7303
7459
|
"name": "orderCatalogItem",
|
|
7304
7460
|
"description": "Элемент каталога в заказе",
|
|
@@ -88,6 +88,7 @@ export interface CatalogFieldValue {
|
|
|
88
88
|
optionName: Scalars['String'];
|
|
89
89
|
optionValue?: Maybe<Scalars['String']>;
|
|
90
90
|
isSelected: Scalars['Boolean'];
|
|
91
|
+
isDisplayRemainder?: Maybe<Scalars['Boolean']>;
|
|
91
92
|
isDefault?: Maybe<Scalars['Boolean']>;
|
|
92
93
|
/** Используется для группировки по табам */
|
|
93
94
|
groupName?: Maybe<Scalars['String']>;
|
|
@@ -235,6 +236,15 @@ export interface CourseItem {
|
|
|
235
236
|
tariffId?: Maybe<Scalars['Int']>;
|
|
236
237
|
/** На сколько дней продление. Нужно для prolongation. */
|
|
237
238
|
prolongationDays?: Maybe<Scalars['Int']>;
|
|
239
|
+
courseMeta?: Maybe<CourseItemMeta>;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export interface CourseItemMeta {
|
|
243
|
+
__typename?: 'CourseItemMeta';
|
|
244
|
+
courseName: Scalars['String'];
|
|
245
|
+
courseKind: CourseKind;
|
|
246
|
+
courseSubKindLabel?: Maybe<LangRussianNoun>;
|
|
247
|
+
courseSubKind: CourseSubKind;
|
|
238
248
|
}
|
|
239
249
|
|
|
240
250
|
export enum CourseKind {
|
|
@@ -499,6 +509,7 @@ export interface LangRussianNoun {
|
|
|
499
509
|
valueDative: Scalars['String'];
|
|
500
510
|
valueInstrumental: Scalars['String'];
|
|
501
511
|
valuePrepositional: Scalars['String'];
|
|
512
|
+
createdAt: Scalars['DateTime'];
|
|
502
513
|
gender: LangGender;
|
|
503
514
|
}
|
|
504
515
|
|
|
@@ -900,6 +911,7 @@ export interface Query {
|
|
|
900
911
|
/** Шаблон */
|
|
901
912
|
template?: Maybe<LandingTemplateFragment>;
|
|
902
913
|
courses: Array<CoursePublicCustom>;
|
|
914
|
+
course?: Maybe<CoursePublicCustom>;
|
|
903
915
|
/** Элемент каталога в заказе */
|
|
904
916
|
orderCatalogItem?: Maybe<OrderCatalogItemFragment>;
|
|
905
917
|
/** Список файлов и папок в заданной директории */
|
|
@@ -933,6 +945,12 @@ export type QueryCoursesArgs = {
|
|
|
933
945
|
};
|
|
934
946
|
|
|
935
947
|
|
|
948
|
+
export type QueryCourseArgs = {
|
|
949
|
+
id: Scalars['Int'];
|
|
950
|
+
code: Scalars['String'];
|
|
951
|
+
};
|
|
952
|
+
|
|
953
|
+
|
|
936
954
|
export type QueryOrderCatalogItemArgs = {
|
|
937
955
|
gid: Scalars['ID'];
|
|
938
956
|
code: Scalars['String'];
|