@procraft/widget-order 2.30.2 → 2.30.4
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/config/index.js.map +1 -1
- package/dist/hooks/usePrices/index.js +3 -3
- package/dist/hooks/usePrices/index.js.map +1 -1
- package/dist/interfaces/CourseFragment.d.ts +1 -0
- package/dist/modules/gql/generated/helpers/apollo-helpers.d.ts +39 -9
- package/dist/modules/gql/generated/types.d.ts +60 -21
- package/dist/modules/gql/generated/types.js +10 -1
- package/dist/modules/gql/generated/types.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/config/index.ts +0 -1
- package/src/hooks/usePrices/index.tsx +3 -3
- package/src/interfaces/CourseFragment.ts +1 -0
- package/src/modules/gql/generated/helpers/apollo-helpers.ts +43 -13
- package/src/modules/gql/generated/schema.json +563 -231
- package/src/modules/gql/generated/types.ts +67 -22
- package/README.md +0 -4
|
@@ -44,6 +44,18 @@ export interface AddressInput {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
|
|
47
|
+
export interface BookingClientInput {
|
|
48
|
+
firstName?: Maybe<Scalars['String']>;
|
|
49
|
+
lastName?: Maybe<Scalars['String']>;
|
|
50
|
+
middleName?: Maybe<Scalars['String']>;
|
|
51
|
+
email?: Maybe<Scalars['String']>;
|
|
52
|
+
phone?: Maybe<Scalars['String']>;
|
|
53
|
+
notes?: Maybe<Scalars['String']>;
|
|
54
|
+
attachments?: Maybe<Array<PhotoDataInput>>;
|
|
55
|
+
patchMessengers?: Maybe<Array<MessengerPatch>>;
|
|
56
|
+
patchSocials?: Maybe<Array<SocialPatch>>;
|
|
57
|
+
}
|
|
58
|
+
|
|
47
59
|
export enum CardFieldName {
|
|
48
60
|
SOCIALTWITTER = 'SocialTwitter',
|
|
49
61
|
SOCIALOK = 'SocialOk',
|
|
@@ -123,7 +135,9 @@ export enum CatalogFieldValueType {
|
|
|
123
135
|
/** Базовая покупка курса */
|
|
124
136
|
COURSE = 'Course',
|
|
125
137
|
/** Подписка */
|
|
126
|
-
SUBSCRIPTION = 'Subscription'
|
|
138
|
+
SUBSCRIPTION = 'Subscription',
|
|
139
|
+
/** Число занятий */
|
|
140
|
+
LESSONCOUNT = 'LessonCount'
|
|
127
141
|
}
|
|
128
142
|
|
|
129
143
|
export interface CheckoutPriceDetails {
|
|
@@ -133,6 +147,8 @@ export interface CheckoutPriceDetails {
|
|
|
133
147
|
saleDiscount?: Maybe<Scalars['BigDecimal']>;
|
|
134
148
|
promoCodeDiscount?: Maybe<Scalars['BigDecimal']>;
|
|
135
149
|
subscriptionPrice?: Maybe<Scalars['BigDecimal']>;
|
|
150
|
+
subscriptionFirstPrice?: Maybe<Scalars['BigDecimal']>;
|
|
151
|
+
hasInstallment: Scalars['Boolean'];
|
|
136
152
|
}
|
|
137
153
|
|
|
138
154
|
export interface ClientForm {
|
|
@@ -326,6 +342,7 @@ export enum CourseTariffPriceKind {
|
|
|
326
342
|
SUBSCRIPTION = 'Subscription',
|
|
327
343
|
CHANGESBYSALES = 'ChangesBySales',
|
|
328
344
|
CHANGESBYTIME = 'ChangesByTime',
|
|
345
|
+
FIXEDBYOPTION = 'FixedByOption',
|
|
329
346
|
FIXED = 'Fixed',
|
|
330
347
|
FREE = 'Free'
|
|
331
348
|
}
|
|
@@ -349,6 +366,7 @@ export interface CourseTariffPublicCustom {
|
|
|
349
366
|
courseId: Scalars['Int'];
|
|
350
367
|
position: Scalars['Int'];
|
|
351
368
|
isActive: Scalars['Boolean'];
|
|
369
|
+
ratesVisible: Scalars['Boolean'];
|
|
352
370
|
withClientForm: Scalars['Boolean'];
|
|
353
371
|
flowBehaviour: CourseTariffFlowBehaviour;
|
|
354
372
|
marketingBenefits: Array<Scalars['String']>;
|
|
@@ -385,6 +403,12 @@ export interface EmailTransport {
|
|
|
385
403
|
email: Scalars['String'];
|
|
386
404
|
}
|
|
387
405
|
|
|
406
|
+
export interface FileData {
|
|
407
|
+
__typename?: 'FileData';
|
|
408
|
+
url: Scalars['String'];
|
|
409
|
+
fileName?: Maybe<Scalars['String']>;
|
|
410
|
+
}
|
|
411
|
+
|
|
388
412
|
export interface FileMeta {
|
|
389
413
|
__typename?: 'FileMeta';
|
|
390
414
|
size: Scalars['Int'];
|
|
@@ -431,6 +455,7 @@ export interface LandingCardField {
|
|
|
431
455
|
export interface LandingOrderPayload {
|
|
432
456
|
__typename?: 'LandingOrderPayload';
|
|
433
457
|
order?: Maybe<OrderCustom>;
|
|
458
|
+
denyReason?: Maybe<Scalars['String']>;
|
|
434
459
|
}
|
|
435
460
|
|
|
436
461
|
export interface LandingSite {
|
|
@@ -518,6 +543,7 @@ export interface MasterClientProfileCommon {
|
|
|
518
543
|
id: Scalars['ID'];
|
|
519
544
|
uid: Scalars['Int'];
|
|
520
545
|
extraFieldsAnswers: Array<ClientFormAnswer>;
|
|
546
|
+
supervised: Array<UserProfileCustom>;
|
|
521
547
|
}
|
|
522
548
|
|
|
523
549
|
export interface MasterProfileCustom {
|
|
@@ -529,6 +555,8 @@ export interface MasterProfileCustom {
|
|
|
529
555
|
pdfContractOffer?: Maybe<Scalars['String']>;
|
|
530
556
|
/** Ссылка на политику безопасности */
|
|
531
557
|
pdfPrivacyPolicy?: Maybe<Scalars['String']>;
|
|
558
|
+
pdfExtraDocument?: Maybe<FileData>;
|
|
559
|
+
installmentComment: Scalars['String'];
|
|
532
560
|
currency: Scalars['String'];
|
|
533
561
|
cashPaymentAliases: Array<CashPaymentAlias>;
|
|
534
562
|
/** Лого организации */
|
|
@@ -579,6 +607,8 @@ export interface Mutation {
|
|
|
579
607
|
login?: Maybe<RestApiPayload>;
|
|
580
608
|
/** Регистрация или авторизация клиента по телефону */
|
|
581
609
|
authClientByPhone?: Maybe<RestApiPayload>;
|
|
610
|
+
/** Регистрация или авторизация кастомера по телефону */
|
|
611
|
+
authCustomer?: Maybe<RestApiPayload>;
|
|
582
612
|
deleteLandingTemplateCustom: Scalars['Boolean'];
|
|
583
613
|
/** Создание шаблона */
|
|
584
614
|
createLandingTemplate?: Maybe<LandintTemplatePayload>;
|
|
@@ -616,7 +646,6 @@ export type MutationSendSmsCodeArgs = {
|
|
|
616
646
|
phone: Scalars['String'];
|
|
617
647
|
promoCode?: Maybe<Scalars['String']>;
|
|
618
648
|
promoCodeIsFromCookie?: Maybe<Scalars['Boolean']>;
|
|
619
|
-
allowCall: Scalars['Boolean'];
|
|
620
649
|
};
|
|
621
650
|
|
|
622
651
|
|
|
@@ -634,6 +663,14 @@ export type MutationAuthClientByPhoneArgs = {
|
|
|
634
663
|
};
|
|
635
664
|
|
|
636
665
|
|
|
666
|
+
export type MutationAuthCustomerArgs = {
|
|
667
|
+
orgId: Scalars['Int'];
|
|
668
|
+
phone: Scalars['String'];
|
|
669
|
+
smsCode?: Maybe<Scalars['String']>;
|
|
670
|
+
smsToken?: Maybe<Scalars['String']>;
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
|
|
637
674
|
export type MutationDeleteLandingTemplateCustomArgs = {
|
|
638
675
|
id: Scalars['ID'];
|
|
639
676
|
};
|
|
@@ -715,7 +752,7 @@ export interface OrderCondition {
|
|
|
715
752
|
data?: Maybe<OrderConditionData>;
|
|
716
753
|
}
|
|
717
754
|
|
|
718
|
-
export type OrderConditionData = ItemOrderConditionData;
|
|
755
|
+
export type OrderConditionData = ItemOrderConditionData | PriceOrderConditionData;
|
|
719
756
|
|
|
720
757
|
export interface OrderCustom {
|
|
721
758
|
__typename?: 'OrderCustom';
|
|
@@ -729,6 +766,7 @@ export interface OrderCustom {
|
|
|
729
766
|
saleDiscount?: Maybe<Scalars['BigDecimal']>;
|
|
730
767
|
promoCodeDiscount?: Maybe<Scalars['BigDecimal']>;
|
|
731
768
|
subscriptionPrice?: Maybe<Scalars['BigDecimal']>;
|
|
769
|
+
subscriptionFirstPrice?: Maybe<Scalars['BigDecimal']>;
|
|
732
770
|
status: OrderStatus;
|
|
733
771
|
paymentUrl?: Maybe<Scalars['String']>;
|
|
734
772
|
/** Суммы поэтапной оплаты */
|
|
@@ -860,6 +898,19 @@ export interface PhotoDataInput {
|
|
|
860
898
|
height?: Maybe<Scalars['Int']>;
|
|
861
899
|
}
|
|
862
900
|
|
|
901
|
+
export interface PriceOrderConditionData {
|
|
902
|
+
__typename?: 'PriceOrderConditionData';
|
|
903
|
+
kind: PriceOrderConditionKind;
|
|
904
|
+
from?: Maybe<Scalars['BigDecimal']>;
|
|
905
|
+
to?: Maybe<Scalars['BigDecimal']>;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
export enum PriceOrderConditionKind {
|
|
909
|
+
FROM = 'From',
|
|
910
|
+
TO = 'To',
|
|
911
|
+
BETWEEN = 'Between'
|
|
912
|
+
}
|
|
913
|
+
|
|
863
914
|
/** Текущий авторизованный пользователь */
|
|
864
915
|
export interface PrivateApiLandingViewer {
|
|
865
916
|
__typename?: 'PrivateApiLandingViewer';
|
|
@@ -899,6 +950,8 @@ export interface PublicMasterRole {
|
|
|
899
950
|
uid: Scalars['Int'];
|
|
900
951
|
master: MasterProfileCustom;
|
|
901
952
|
contacts: ContactsProfile;
|
|
953
|
+
/** Ссылка на приложение студента */
|
|
954
|
+
studentUrl?: Maybe<Scalars['String']>;
|
|
902
955
|
}
|
|
903
956
|
|
|
904
957
|
export interface Query {
|
|
@@ -974,6 +1027,7 @@ export interface RestApiPayload {
|
|
|
974
1027
|
error: Scalars['Boolean'];
|
|
975
1028
|
message: Scalars['String'];
|
|
976
1029
|
token?: Maybe<Scalars['String']>;
|
|
1030
|
+
customerId?: Maybe<Scalars['Int']>;
|
|
977
1031
|
methods?: Maybe<Array<Scalars['String']>>;
|
|
978
1032
|
}
|
|
979
1033
|
|
|
@@ -1066,17 +1120,15 @@ export enum StaticFileType {
|
|
|
1066
1120
|
|
|
1067
1121
|
export interface SubmitLandingOrderInput {
|
|
1068
1122
|
orderId: Scalars['Int'];
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
address?: Maybe<AddressInput>;
|
|
1074
|
-
attachments?: Maybe<Array<PhotoDataInput>>;
|
|
1075
|
-
email?: Maybe<Scalars['String']>;
|
|
1076
|
-
clientMutationId?: Maybe<Scalars['String']>;
|
|
1077
|
-
patchMessengers?: Maybe<Array<MessengerPatch>>;
|
|
1078
|
-
patchSocials?: Maybe<Array<SocialPatch>>;
|
|
1123
|
+
customerId?: Maybe<Scalars['Int']>;
|
|
1124
|
+
customerToken?: Maybe<Scalars['String']>;
|
|
1125
|
+
customerLogin?: Maybe<Scalars['String']>;
|
|
1126
|
+
isSupervisor: Scalars['Boolean'];
|
|
1079
1127
|
extraFields: Array<ClientFormClientAnswer>;
|
|
1128
|
+
client: BookingClientInput;
|
|
1129
|
+
customer?: Maybe<BookingClientInput>;
|
|
1130
|
+
clientMutationId?: Maybe<Scalars['String']>;
|
|
1131
|
+
address?: Maybe<AddressInput>;
|
|
1080
1132
|
}
|
|
1081
1133
|
|
|
1082
1134
|
export interface TelegramTransport {
|
|
@@ -1118,26 +1170,19 @@ export interface TimeUnitWithAmountInput {
|
|
|
1118
1170
|
|
|
1119
1171
|
export interface UpdateLandingOrderInput {
|
|
1120
1172
|
orderId: Scalars['Int'];
|
|
1173
|
+
client: BookingClientInput;
|
|
1121
1174
|
positions: Array<OrderPositionInput>;
|
|
1122
1175
|
locationId?: Maybe<Scalars['Int']>;
|
|
1123
1176
|
address?: Maybe<AddressInput>;
|
|
1124
1177
|
deliveryId?: Maybe<Scalars['Int']>;
|
|
1125
1178
|
selectedTime?: Maybe<Array<OrderSelectedTimeInput>>;
|
|
1126
1179
|
isMultiday?: Maybe<Scalars['Boolean']>;
|
|
1127
|
-
firstName?: Maybe<Scalars['String']>;
|
|
1128
|
-
middleName?: Maybe<Scalars['String']>;
|
|
1129
|
-
lastName?: Maybe<Scalars['String']>;
|
|
1130
|
-
notes?: Maybe<Scalars['String']>;
|
|
1131
|
-
email?: Maybe<Scalars['String']>;
|
|
1132
|
-
attachments?: Maybe<Array<PhotoDataInput>>;
|
|
1133
1180
|
clientMutationId?: Maybe<Scalars['String']>;
|
|
1134
1181
|
promoCode?: Maybe<Scalars['String']>;
|
|
1135
1182
|
paymentSchemaUid?: Maybe<Scalars['String']>;
|
|
1136
1183
|
paymentSchemaIndexes?: Maybe<Array<Scalars['Int']>>;
|
|
1137
1184
|
/** Поэтапная оплата */
|
|
1138
1185
|
partialPayment?: Maybe<Scalars['Boolean']>;
|
|
1139
|
-
patchMessengers?: Maybe<Array<MessengerPatch>>;
|
|
1140
|
-
patchSocials?: Maybe<Array<SocialPatch>>;
|
|
1141
1186
|
}
|
|
1142
1187
|
|
|
1143
1188
|
export interface UpdateLandingTemplateInput {
|
|
@@ -1183,4 +1228,4 @@ export interface UserProfileCustom {
|
|
|
1183
1228
|
export interface WhatsAppTransport {
|
|
1184
1229
|
__typename?: 'WhatsAppTransport';
|
|
1185
1230
|
name: Scalars['String'];
|
|
1186
|
-
}
|
|
1231
|
+
}
|
package/README.md
DELETED