@procraft/widget-order 2.30.3 → 2.30.5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@procraft/widget-order",
3
3
  "description": "Order widget for landing",
4
- "version": "2.30.3",
4
+ "version": "2.30.5",
5
5
  "private": false,
6
6
  "main": "dist",
7
7
  "scripts": {
@@ -22,16 +22,16 @@ export const usePrices = ({
22
22
  const fieldValuesGroups: FieldValuesGroups = {
23
23
  Unknown: {
24
24
  fieldValues: [],
25
- // fieldValueSelected: null,
26
25
  },
27
26
  Course: {
28
27
  fieldValues: [],
29
- // fieldValueSelected: null,
30
28
  },
31
29
  Subscription: {
32
30
  fieldValues: [],
33
- // fieldValueSelected: null,
34
31
  },
32
+ LessonCount: {
33
+ fieldValues: [],
34
+ }
35
35
  }
36
36
 
37
37
  for (const typeKey in CatalogFieldValueType) {
@@ -263,11 +263,12 @@ export type LangRussianNounFieldPolicy = {
263
263
  createdAt?: FieldPolicy<any> | FieldReadFunction<any>,
264
264
  gender?: FieldPolicy<any> | FieldReadFunction<any>
265
265
  };
266
- export type MasterClientProfileCommonKeySpecifier = ('id' | 'uid' | 'extraFieldsAnswers' | MasterClientProfileCommonKeySpecifier)[];
266
+ export type MasterClientProfileCommonKeySpecifier = ('id' | 'uid' | 'extraFieldsAnswers' | 'supervised' | MasterClientProfileCommonKeySpecifier)[];
267
267
  export type MasterClientProfileCommonFieldPolicy = {
268
268
  id?: FieldPolicy<any> | FieldReadFunction<any>,
269
269
  uid?: FieldPolicy<any> | FieldReadFunction<any>,
270
- extraFieldsAnswers?: FieldPolicy<any> | FieldReadFunction<any>
270
+ extraFieldsAnswers?: FieldPolicy<any> | FieldReadFunction<any>,
271
+ supervised?: FieldPolicy<any> | FieldReadFunction<any>
271
272
  };
272
273
  export type MasterProfileCustomKeySpecifier = ('id' | 'uid' | 'label' | 'pdfContractOffer' | 'pdfPrivacyPolicy' | 'pdfExtraDocument' | 'installmentComment' | 'currency' | 'cashPaymentAliases' | 'orgPhoto' | MasterProfileCustomKeySpecifier)[];
273
274
  export type MasterProfileCustomFieldPolicy = {
@@ -1053,6 +1053,12 @@
1053
1053
  "description": "Подписка",
1054
1054
  "isDeprecated": false,
1055
1055
  "deprecationReason": null
1056
+ },
1057
+ {
1058
+ "name": "LessonCount",
1059
+ "description": "Число занятий",
1060
+ "isDeprecated": false,
1061
+ "deprecationReason": null
1056
1062
  }
1057
1063
  ],
1058
1064
  "possibleTypes": null
@@ -2825,6 +2831,18 @@
2825
2831
  "isDeprecated": false,
2826
2832
  "deprecationReason": null
2827
2833
  },
2834
+ {
2835
+ "name": "FixedByOption",
2836
+ "description": null,
2837
+ "isDeprecated": false,
2838
+ "deprecationReason": null
2839
+ },
2840
+ {
2841
+ "name": "FreeByOption",
2842
+ "description": null,
2843
+ "isDeprecated": false,
2844
+ "deprecationReason": null
2845
+ },
2828
2846
  {
2829
2847
  "name": "Fixed",
2830
2848
  "description": null,
@@ -4675,6 +4693,30 @@
4675
4693
  },
4676
4694
  "isDeprecated": false,
4677
4695
  "deprecationReason": null
4696
+ },
4697
+ {
4698
+ "name": "supervised",
4699
+ "description": null,
4700
+ "args": [],
4701
+ "type": {
4702
+ "kind": "NON_NULL",
4703
+ "name": null,
4704
+ "ofType": {
4705
+ "kind": "LIST",
4706
+ "name": null,
4707
+ "ofType": {
4708
+ "kind": "NON_NULL",
4709
+ "name": null,
4710
+ "ofType": {
4711
+ "kind": "OBJECT",
4712
+ "name": "UserProfileCustom",
4713
+ "ofType": null
4714
+ }
4715
+ }
4716
+ }
4717
+ },
4718
+ "isDeprecated": false,
4719
+ "deprecationReason": null
4678
4720
  }
4679
4721
  ],
4680
4722
  "inputFields": null,
@@ -8872,6 +8914,18 @@
8872
8914
  "isDeprecated": false,
8873
8915
  "deprecationReason": null
8874
8916
  },
8917
+ {
8918
+ "name": "customerLogin",
8919
+ "description": null,
8920
+ "type": {
8921
+ "kind": "SCALAR",
8922
+ "name": "String",
8923
+ "ofType": null
8924
+ },
8925
+ "defaultValue": null,
8926
+ "isDeprecated": false,
8927
+ "deprecationReason": null
8928
+ },
8875
8929
  {
8876
8930
  "name": "isSupervisor",
8877
8931
  "description": null,
@@ -135,7 +135,9 @@ export enum CatalogFieldValueType {
135
135
  /** Базовая покупка курса */
136
136
  COURSE = 'Course',
137
137
  /** Подписка */
138
- SUBSCRIPTION = 'Subscription'
138
+ SUBSCRIPTION = 'Subscription',
139
+ /** Число занятий */
140
+ LESSONCOUNT = 'LessonCount'
139
141
  }
140
142
 
141
143
  export interface CheckoutPriceDetails {
@@ -340,6 +342,8 @@ export enum CourseTariffPriceKind {
340
342
  SUBSCRIPTION = 'Subscription',
341
343
  CHANGESBYSALES = 'ChangesBySales',
342
344
  CHANGESBYTIME = 'ChangesByTime',
345
+ FIXEDBYOPTION = 'FixedByOption',
346
+ FREEBYOPTION = 'FreeByOption',
343
347
  FIXED = 'Fixed',
344
348
  FREE = 'Free'
345
349
  }
@@ -540,6 +544,7 @@ export interface MasterClientProfileCommon {
540
544
  id: Scalars['ID'];
541
545
  uid: Scalars['Int'];
542
546
  extraFieldsAnswers: Array<ClientFormAnswer>;
547
+ supervised: Array<UserProfileCustom>;
543
548
  }
544
549
 
545
550
  export interface MasterProfileCustom {
@@ -1118,6 +1123,7 @@ export interface SubmitLandingOrderInput {
1118
1123
  orderId: Scalars['Int'];
1119
1124
  customerId?: Maybe<Scalars['Int']>;
1120
1125
  customerToken?: Maybe<Scalars['String']>;
1126
+ customerLogin?: Maybe<Scalars['String']>;
1121
1127
  isSupervisor: Scalars['Boolean'];
1122
1128
  extraFields: Array<ClientFormClientAnswer>;
1123
1129
  client: BookingClientInput;