@procraft/widget-order 2.21.13 → 2.22.1
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/Materials/styles.js +7 -3
- package/dist/CourseItem/Materials/styles.js.map +1 -1
- package/dist/CourseItem/Reviews/ReviewsPopup/Review/index.js +1 -1
- package/dist/CourseItem/Reviews/ReviewsPopup/Review/index.js.map +1 -1
- package/dist/modules/gql/generated/helpers/apollo-helpers.d.ts +96 -14
- package/dist/modules/gql/generated/types.d.ts +102 -9
- package/dist/modules/gql/generated/types.js +15 -2
- 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/Materials/styles.ts +7 -3
- package/src/CourseItem/Reviews/ReviewsPopup/Review/index.tsx +1 -1
- package/src/modules/gql/generated/helpers/apollo-helpers.ts +98 -16
- package/src/modules/gql/generated/schema.json +1169 -91
- package/src/modules/gql/generated/types.ts +116 -10
|
@@ -123,6 +123,80 @@ export enum CatalogFieldValueType {
|
|
|
123
123
|
SUBSCRIPTION = 'Subscription'
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
+
export interface ClientForm {
|
|
127
|
+
__typename?: 'ClientForm';
|
|
128
|
+
id: Scalars['ID'];
|
|
129
|
+
uid: Scalars['Int'];
|
|
130
|
+
name: Scalars['String'];
|
|
131
|
+
orgId: Scalars['Int'];
|
|
132
|
+
isDraft: Scalars['Boolean'];
|
|
133
|
+
createdAt: Scalars['DateTime'];
|
|
134
|
+
deletedAt?: Maybe<Scalars['DateTime']>;
|
|
135
|
+
kind: ClientFormKind;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface ClientFormAnswer {
|
|
139
|
+
__typename?: 'ClientFormAnswer';
|
|
140
|
+
uid: Scalars['Int'];
|
|
141
|
+
responseId: Scalars['Int'];
|
|
142
|
+
questionId: Scalars['Int'];
|
|
143
|
+
answer?: Maybe<Scalars['String']>;
|
|
144
|
+
variantId?: Maybe<Scalars['Int']>;
|
|
145
|
+
createdAt: Scalars['DateTime'];
|
|
146
|
+
files?: Maybe<Array<FileMeta>>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export interface ClientFormClientAnswer {
|
|
150
|
+
questionId: Scalars['Int'];
|
|
151
|
+
answer?: Maybe<Scalars['String']>;
|
|
152
|
+
files?: Maybe<Array<FileMetaInput>>;
|
|
153
|
+
variants?: Maybe<Array<Scalars['Int']>>;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export enum ClientFormKind {
|
|
157
|
+
NEWMEMBER = 'NewMember',
|
|
158
|
+
DEFAULT = 'Default'
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export interface ClientFormQuestion {
|
|
162
|
+
__typename?: 'ClientFormQuestion';
|
|
163
|
+
uid: Scalars['Int'];
|
|
164
|
+
formId: Scalars['Int'];
|
|
165
|
+
question: Scalars['String'];
|
|
166
|
+
isMandatory: Scalars['Boolean'];
|
|
167
|
+
kind: ClientFormQuestionKind;
|
|
168
|
+
createdAt: Scalars['DateTime'];
|
|
169
|
+
orderIndex: Scalars['Float'];
|
|
170
|
+
variants: Array<ClientFormQuestionVariant>;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export enum ClientFormQuestionKind {
|
|
174
|
+
FILELIST = 'FileList',
|
|
175
|
+
MULTIVARIANT = 'MultiVariant',
|
|
176
|
+
SINGLEVARIANT = 'SingleVariant',
|
|
177
|
+
PARAGRAPH = 'Paragraph',
|
|
178
|
+
SINGLELINE = 'SingleLine'
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface ClientFormQuestionVariant {
|
|
182
|
+
__typename?: 'ClientFormQuestionVariant';
|
|
183
|
+
uid: Scalars['Int'];
|
|
184
|
+
questionId: Scalars['Int'];
|
|
185
|
+
name: Scalars['String'];
|
|
186
|
+
createdAt: Scalars['DateTime'];
|
|
187
|
+
orderIndex: Scalars['Float'];
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export interface ClientFormSubmitExtraFieldsInput {
|
|
191
|
+
isDraft?: Maybe<Scalars['Boolean']>;
|
|
192
|
+
answers: Array<ClientFormClientAnswer>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface ClientFormSubmitExtraFieldsPayload {
|
|
196
|
+
__typename?: 'ClientFormSubmitExtraFieldsPayload';
|
|
197
|
+
clientForms: Array<ClientForm>;
|
|
198
|
+
}
|
|
199
|
+
|
|
126
200
|
/** Контакты пользователя */
|
|
127
201
|
export interface ContactsProfile {
|
|
128
202
|
__typename?: 'ContactsProfile';
|
|
@@ -176,10 +250,10 @@ export enum CourseSubKind {
|
|
|
176
250
|
CLUB = 'Club',
|
|
177
251
|
SUBSCRIPTION = 'Subscription',
|
|
178
252
|
WORKSHOP = 'Workshop',
|
|
179
|
-
PRERECORDING = 'PreRecording',
|
|
180
253
|
MASTERCLASS = 'MasterClass',
|
|
181
254
|
WEBINAR = 'Webinar',
|
|
182
255
|
FACULTY = 'Faculty',
|
|
256
|
+
PRERECORDING = 'PreRecording',
|
|
183
257
|
MARATHON = 'Marathon',
|
|
184
258
|
INTENSIVE = 'Intensive',
|
|
185
259
|
COURSE = 'Course'
|
|
@@ -196,18 +270,11 @@ export interface CourseTariffFlowPublic {
|
|
|
196
270
|
courseId: Scalars['Int'];
|
|
197
271
|
courseTariffId: Scalars['Int'];
|
|
198
272
|
flowId: Scalars['Int'];
|
|
199
|
-
/** Количество свободных мест в потоке */
|
|
200
|
-
computed?: Maybe<CourseTariffFlowPublicViewComputed>;
|
|
201
273
|
priceDetails: CourseTariffPriceDetails;
|
|
202
274
|
/** Условия продления курса */
|
|
203
275
|
prolongation: CourseTariffProlongation;
|
|
204
276
|
}
|
|
205
277
|
|
|
206
|
-
export interface CourseTariffFlowPublicViewComputed {
|
|
207
|
-
__typename?: 'CourseTariffFlowPublicViewComputed';
|
|
208
|
-
capacityRemainder?: Maybe<Scalars['Int']>;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
278
|
export interface CourseTariffPriceDetails {
|
|
212
279
|
__typename?: 'CourseTariffPriceDetails';
|
|
213
280
|
kind: CourseTariffPriceKind;
|
|
@@ -283,6 +350,25 @@ export interface Email {
|
|
|
283
350
|
email: Scalars['String'];
|
|
284
351
|
}
|
|
285
352
|
|
|
353
|
+
export interface FileMeta {
|
|
354
|
+
__typename?: 'FileMeta';
|
|
355
|
+
size: Scalars['Int'];
|
|
356
|
+
url: Scalars['String'];
|
|
357
|
+
mimeType: Scalars['String'];
|
|
358
|
+
name: Scalars['String'];
|
|
359
|
+
lastModified: Scalars['Float'];
|
|
360
|
+
customInfo?: Maybe<Scalars['String']>;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export interface FileMetaInput {
|
|
364
|
+
size: Scalars['Int'];
|
|
365
|
+
url: Scalars['String'];
|
|
366
|
+
mimeType: Scalars['String'];
|
|
367
|
+
name: Scalars['String'];
|
|
368
|
+
lastModified: Scalars['Float'];
|
|
369
|
+
customInfo?: Maybe<Scalars['String']>;
|
|
370
|
+
}
|
|
371
|
+
|
|
286
372
|
export interface FlowPublicCustom {
|
|
287
373
|
__typename?: 'FlowPublicCustom';
|
|
288
374
|
id: Scalars['ID'];
|
|
@@ -381,6 +467,13 @@ export interface LandintTemplatePayload {
|
|
|
381
467
|
landingTemplate: LandingTemplateFragment;
|
|
382
468
|
}
|
|
383
469
|
|
|
470
|
+
export interface MasterClientProfileCommon {
|
|
471
|
+
__typename?: 'MasterClientProfileCommon';
|
|
472
|
+
id: Scalars['ID'];
|
|
473
|
+
uid: Scalars['Int'];
|
|
474
|
+
extraFieldsAnswers: Array<ClientFormAnswer>;
|
|
475
|
+
}
|
|
476
|
+
|
|
384
477
|
export interface MasterProfileCustom {
|
|
385
478
|
__typename?: 'MasterProfileCustom';
|
|
386
479
|
id: Scalars['ID'];
|
|
@@ -445,6 +538,8 @@ export interface Mutation {
|
|
|
445
538
|
createLandingTemplate?: Maybe<LandintTemplatePayload>;
|
|
446
539
|
/** Обновление шаблона */
|
|
447
540
|
updateLandingTemplate?: Maybe<LandintTemplatePayload>;
|
|
541
|
+
/** @deprecated Больше не нужно */
|
|
542
|
+
clientFormSubmitExtraFields: ClientFormSubmitExtraFieldsPayload;
|
|
448
543
|
/** Получаем подписанный УРЛ для загрузки файлов */
|
|
449
544
|
s3getSignedUrl: Scalars['String'];
|
|
450
545
|
/**
|
|
@@ -507,6 +602,11 @@ export type MutationUpdateLandingTemplateArgs = {
|
|
|
507
602
|
};
|
|
508
603
|
|
|
509
604
|
|
|
605
|
+
export type MutationClientFormSubmitExtraFieldsArgs = {
|
|
606
|
+
input: ClientFormSubmitExtraFieldsInput;
|
|
607
|
+
};
|
|
608
|
+
|
|
609
|
+
|
|
510
610
|
export type MutationS3getSignedUrlArgs = {
|
|
511
611
|
objectName: Scalars['String'];
|
|
512
612
|
contentType: Scalars['String'];
|
|
@@ -623,7 +723,7 @@ export interface OrderReviewCustom {
|
|
|
623
723
|
timeCreated: Scalars['DateTime'];
|
|
624
724
|
text?: Maybe<Scalars['String']>;
|
|
625
725
|
meetExpectation?: Maybe<MeetExpectation>;
|
|
626
|
-
client:
|
|
726
|
+
client: Scalars['String'];
|
|
627
727
|
}
|
|
628
728
|
|
|
629
729
|
export interface OrderReviewsConnection {
|
|
@@ -693,11 +793,12 @@ export interface PhotoDataInput {
|
|
|
693
793
|
/** Текущий авторизованный пользователь */
|
|
694
794
|
export interface PrivateApiLandingViewer {
|
|
695
795
|
__typename?: 'PrivateApiLandingViewer';
|
|
696
|
-
id
|
|
796
|
+
id: Scalars['ID'];
|
|
697
797
|
/** Пользователь имеет право редактировать сайт */
|
|
698
798
|
isEditor: Scalars['Boolean'];
|
|
699
799
|
user?: Maybe<LandingViewerUserRoleFragment>;
|
|
700
800
|
landing?: Maybe<LandingSitePrivate>;
|
|
801
|
+
masterClientCommon?: Maybe<MasterClientProfileCommon>;
|
|
701
802
|
}
|
|
702
803
|
|
|
703
804
|
export interface PromoCodeFragment {
|
|
@@ -740,6 +841,8 @@ export interface Query {
|
|
|
740
841
|
orderCatalogItem?: Maybe<OrderCatalogItemFragment>;
|
|
741
842
|
/** Список файлов и папок в заданной директории */
|
|
742
843
|
staticFiles: Array<StaticFile>;
|
|
844
|
+
/** Вопросы анкет для новых пользователей */
|
|
845
|
+
extraFieldsQuestions?: Maybe<Array<ClientFormQuestion>>;
|
|
743
846
|
/** Поиск промокода */
|
|
744
847
|
promoCode?: Maybe<OrderCatalogItemFragment>;
|
|
745
848
|
}
|
|
@@ -819,6 +922,7 @@ export interface SaleOrderPosition {
|
|
|
819
922
|
saleName: Scalars['String'];
|
|
820
923
|
benefitAmount: Scalars['Float'];
|
|
821
924
|
benefitUnit: SaleBenefitUnit;
|
|
925
|
+
isBest?: Maybe<Scalars['Boolean']>;
|
|
822
926
|
}
|
|
823
927
|
|
|
824
928
|
export interface SaleOrderPositionInput {
|
|
@@ -827,6 +931,7 @@ export interface SaleOrderPositionInput {
|
|
|
827
931
|
saleName: Scalars['String'];
|
|
828
932
|
benefitAmount: Scalars['BigDecimal'];
|
|
829
933
|
benefitUnit: SaleBenefitUnit;
|
|
934
|
+
isBest?: Maybe<Scalars['Boolean']>;
|
|
830
935
|
}
|
|
831
936
|
|
|
832
937
|
export interface Social {
|
|
@@ -874,6 +979,7 @@ export interface SubmitLandingOrderInput {
|
|
|
874
979
|
clientMutationId?: Maybe<Scalars['String']>;
|
|
875
980
|
patchMessengers?: Maybe<Array<MessengerPatch>>;
|
|
876
981
|
patchSocials?: Maybe<Array<SocialPatch>>;
|
|
982
|
+
extraFields: Array<ClientFormClientAnswer>;
|
|
877
983
|
}
|
|
878
984
|
|
|
879
985
|
export interface TemplateWhereInput {
|