@faiber/faiber-profile 0.5.0 → 0.5.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.
@@ -1,6 +1,6 @@
1
- import type { ApiEnvelope, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
1
+ import type { ApiEnvelope, BackendJson, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
2
2
  /** Generated route contracts. Dynamic payload members remain JSON-safe and are documented with their Rust source type. */
3
- /** Backend response type: handler-defined response. */
3
+ /** Backend response type: api. */
4
4
  export interface RouterOpenapiJsonGetResponse extends ApiEnvelope<JsonValue> {
5
5
  }
6
6
  /** Backend request type: BulkAddressGet. */
@@ -10,51 +10,19 @@ export interface OptionAddressGetPostInput extends JsonObject {
10
10
  /** Backend response type: Value. */
11
11
  export interface OptionAddressGetPostResponse extends ApiEnvelope<JsonValue> {
12
12
  }
13
- /** Backend response type: SessionResponse. */
14
- export interface SessionGetSelfGetResponseDataProfileRoles extends JsonObject {
15
- "id": string;
16
- "name": string;
17
- }
18
- export interface SessionGetSelfGetResponseDataProfileCredential extends JsonObject {
19
- "handle_registration": number;
20
- "handle_registration_with_installment": number;
21
- "handle_await_installment": number;
22
- "handle_overdue_installment": number;
23
- "handle_freemium_sessions": number;
24
- "handle_cancel": number;
25
- "total": number;
13
+ /** Backend response type: profile_methods::ChatContext. */
14
+ export interface SessionGetChatContextGetResponseData extends JsonObject {
15
+ "profile": JsonValue;
16
+ "properties": BackendJson<"Map<String, Value>">;
26
17
  }
27
- export interface SessionGetSelfGetResponseDataProfileParent extends JsonObject {
28
- "user_id": string;
29
- "parent_type"?: string | null;
30
- }
31
- export interface SessionGetSelfGetResponseDataProfile extends JsonObject {
32
- "id": string;
33
- "user_id": string;
34
- "email"?: string | null;
35
- "phone"?: string | null;
36
- "national_code"?: string | null;
37
- "first_name"?: JsonValue | null;
38
- "last_name"?: JsonValue | null;
39
- "status": string;
40
- "employee_type"?: string | null;
41
- "freemium_session_limit"?: number | null;
42
- "avatar"?: string | null;
43
- "has_active_enrollment": boolean;
44
- "roles": SessionGetSelfGetResponseDataProfileRoles[];
45
- "credential"?: SessionGetSelfGetResponseDataProfileCredential | null;
46
- "meta"?: JsonValue | null;
47
- "app"?: JsonValue | null;
48
- "assessment"?: JsonValue | null;
49
- "properties"?: JsonValue | null;
50
- "services"?: JsonValue | null;
51
- "parent"?: SessionGetSelfGetResponseDataProfileParent[] | null;
18
+ export interface SessionGetChatContextGetResponse extends ApiEnvelope<SessionGetChatContextGetResponseData> {
52
19
  }
20
+ /** Backend response type: SessionResponse. */
53
21
  export interface SessionGetSelfGetResponseData extends JsonObject {
54
22
  "user_id": string;
55
23
  "roles": string[];
56
24
  "permissions": string[];
57
- "profile": SessionGetSelfGetResponseDataProfile;
25
+ "profile": BackendJson<"ProfileResponse">;
58
26
  }
59
27
  export interface SessionGetSelfGetResponse extends ApiEnvelope<SessionGetSelfGetResponseData> {
60
28
  }
@@ -89,19 +57,8 @@ export interface CityIndexGetQuery extends QueryParams {
89
57
  "filter[trashed]"?: string | null;
90
58
  }
91
59
  /** Backend response type: models::ListData. */
92
- export interface CityIndexGetResponseDataCities extends JsonObject {
93
- "id": string;
94
- "province_id": string;
95
- "name": string;
96
- "latitude"?: number | null;
97
- "longitude"?: number | null;
98
- "status": string;
99
- "created_at": string;
100
- "updated_at"?: string | null;
101
- "deleted_at"?: string | null;
102
- }
103
60
  export interface CityIndexGetResponseData extends JsonObject {
104
- "cities": CityIndexGetResponseDataCities[];
61
+ "cities": BackendJson<"Response">[];
105
62
  }
106
63
  export interface CityIndexGetMetaData extends JsonObject {
107
64
  "current_page": number;
@@ -120,19 +77,8 @@ export interface CityStorePostInput extends JsonObject {
120
77
  "longitude"?: number | null;
121
78
  }
122
79
  /** Backend response type: models::SingleData. */
123
- export interface CityStorePostResponseDataCity extends JsonObject {
124
- "id": string;
125
- "province_id": string;
126
- "name": string;
127
- "latitude"?: number | null;
128
- "longitude"?: number | null;
129
- "status": string;
130
- "created_at": string;
131
- "updated_at"?: string | null;
132
- "deleted_at"?: string | null;
133
- }
134
80
  export interface CityStorePostResponseData extends JsonObject {
135
- "city": CityStorePostResponseDataCity;
81
+ "city": BackendJson<"Response">;
136
82
  }
137
83
  export interface CityStorePostResponse extends ApiEnvelope<CityStorePostResponseData> {
138
84
  }
@@ -140,19 +86,8 @@ export interface CityStorePostResponse extends ApiEnvelope<CityStorePostResponse
140
86
  export interface CityDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
141
87
  }
142
88
  /** Backend response type: models::SingleData. */
143
- export interface CityShowGetResponseDataCity extends JsonObject {
144
- "id": string;
145
- "province_id": string;
146
- "name": string;
147
- "latitude"?: number | null;
148
- "longitude"?: number | null;
149
- "status": string;
150
- "created_at": string;
151
- "updated_at"?: string | null;
152
- "deleted_at"?: string | null;
153
- }
154
89
  export interface CityShowGetResponseData extends JsonObject {
155
- "city": CityShowGetResponseDataCity;
90
+ "city": BackendJson<"Response">;
156
91
  }
157
92
  export interface CityShowGetResponse extends ApiEnvelope<CityShowGetResponseData> {
158
93
  }
@@ -165,19 +100,8 @@ export interface CityUpdatePatchInput extends JsonObject {
165
100
  "status"?: string | null;
166
101
  }
167
102
  /** Backend response type: models::SingleData. */
168
- export interface CityUpdatePatchResponseDataCity extends JsonObject {
169
- "id": string;
170
- "province_id": string;
171
- "name": string;
172
- "latitude"?: number | null;
173
- "longitude"?: number | null;
174
- "status": string;
175
- "created_at": string;
176
- "updated_at"?: string | null;
177
- "deleted_at"?: string | null;
178
- }
179
103
  export interface CityUpdatePatchResponseData extends JsonObject {
180
- "city": CityUpdatePatchResponseDataCity;
104
+ "city": BackendJson<"Response">;
181
105
  }
182
106
  export interface CityUpdatePatchResponse extends ApiEnvelope<CityUpdatePatchResponseData> {
183
107
  }
@@ -190,19 +114,8 @@ export interface CityUpdatePutInput extends JsonObject {
190
114
  "status"?: string | null;
191
115
  }
192
116
  /** Backend response type: models::SingleData. */
193
- export interface CityUpdatePutResponseDataCity extends JsonObject {
194
- "id": string;
195
- "province_id": string;
196
- "name": string;
197
- "latitude"?: number | null;
198
- "longitude"?: number | null;
199
- "status": string;
200
- "created_at": string;
201
- "updated_at"?: string | null;
202
- "deleted_at"?: string | null;
203
- }
204
117
  export interface CityUpdatePutResponseData extends JsonObject {
205
- "city": CityUpdatePutResponseDataCity;
118
+ "city": BackendJson<"Response">;
206
119
  }
207
120
  export interface CityUpdatePutResponse extends ApiEnvelope<CityUpdatePutResponseData> {
208
121
  }
@@ -223,18 +136,8 @@ export interface CountryIndexGetQuery extends QueryParams {
223
136
  "filter[trashed]"?: string | null;
224
137
  }
225
138
  /** Backend response type: models::ListData. */
226
- export interface CountryIndexGetResponseDataCountries extends JsonObject {
227
- "id": string;
228
- "name": string;
229
- "latitude"?: number | null;
230
- "longitude"?: number | null;
231
- "status": string;
232
- "created_at": string;
233
- "updated_at"?: string | null;
234
- "deleted_at"?: string | null;
235
- }
236
139
  export interface CountryIndexGetResponseData extends JsonObject {
237
- "countries": CountryIndexGetResponseDataCountries[];
140
+ "countries": BackendJson<"Response">[];
238
141
  }
239
142
  export interface CountryIndexGetMetaData extends JsonObject {
240
143
  "current_page": number;
@@ -252,18 +155,8 @@ export interface CountryStorePostInput extends JsonObject {
252
155
  "longitude"?: number | null;
253
156
  }
254
157
  /** Backend response type: models::SingleData. */
255
- export interface CountryStorePostResponseDataCountry extends JsonObject {
256
- "id": string;
257
- "name": string;
258
- "latitude"?: number | null;
259
- "longitude"?: number | null;
260
- "status": string;
261
- "created_at": string;
262
- "updated_at"?: string | null;
263
- "deleted_at"?: string | null;
264
- }
265
158
  export interface CountryStorePostResponseData extends JsonObject {
266
- "country": CountryStorePostResponseDataCountry;
159
+ "country": BackendJson<"Response">;
267
160
  }
268
161
  export interface CountryStorePostResponse extends ApiEnvelope<CountryStorePostResponseData> {
269
162
  }
@@ -271,18 +164,8 @@ export interface CountryStorePostResponse extends ApiEnvelope<CountryStorePostRe
271
164
  export interface CountryDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
272
165
  }
273
166
  /** Backend response type: models::SingleData. */
274
- export interface CountryShowGetResponseDataCountry extends JsonObject {
275
- "id": string;
276
- "name": string;
277
- "latitude"?: number | null;
278
- "longitude"?: number | null;
279
- "status": string;
280
- "created_at": string;
281
- "updated_at"?: string | null;
282
- "deleted_at"?: string | null;
283
- }
284
167
  export interface CountryShowGetResponseData extends JsonObject {
285
- "country": CountryShowGetResponseDataCountry;
168
+ "country": BackendJson<"Response">;
286
169
  }
287
170
  export interface CountryShowGetResponse extends ApiEnvelope<CountryShowGetResponseData> {
288
171
  }
@@ -294,18 +177,8 @@ export interface CountryUpdatePatchInput extends JsonObject {
294
177
  "longitude"?: number | null;
295
178
  }
296
179
  /** Backend response type: models::SingleData. */
297
- export interface CountryUpdatePatchResponseDataCountry extends JsonObject {
298
- "id": string;
299
- "name": string;
300
- "latitude"?: number | null;
301
- "longitude"?: number | null;
302
- "status": string;
303
- "created_at": string;
304
- "updated_at"?: string | null;
305
- "deleted_at"?: string | null;
306
- }
307
180
  export interface CountryUpdatePatchResponseData extends JsonObject {
308
- "country": CountryUpdatePatchResponseDataCountry;
181
+ "country": BackendJson<"Response">;
309
182
  }
310
183
  export interface CountryUpdatePatchResponse extends ApiEnvelope<CountryUpdatePatchResponseData> {
311
184
  }
@@ -317,18 +190,8 @@ export interface CountryUpdatePutInput extends JsonObject {
317
190
  "longitude"?: number | null;
318
191
  }
319
192
  /** Backend response type: models::SingleData. */
320
- export interface CountryUpdatePutResponseDataCountry extends JsonObject {
321
- "id": string;
322
- "name": string;
323
- "latitude"?: number | null;
324
- "longitude"?: number | null;
325
- "status": string;
326
- "created_at": string;
327
- "updated_at"?: string | null;
328
- "deleted_at"?: string | null;
329
- }
330
193
  export interface CountryUpdatePutResponseData extends JsonObject {
331
- "country": CountryUpdatePutResponseDataCountry;
194
+ "country": BackendJson<"Response">;
332
195
  }
333
196
  export interface CountryUpdatePutResponse extends ApiEnvelope<CountryUpdatePutResponseData> {
334
197
  }
@@ -345,39 +208,14 @@ export interface OptionDependencyGetResponse extends ApiEnvelope<JsonValue> {
345
208
  export interface OptionIdentityGetResponse extends ApiEnvelope<JsonValue> {
346
209
  }
347
210
  /** Backend response type: crate::integration::models::IntegrationDocsResponse. */
348
- export interface IntegrationIntegrationDocsShowGetResponseDataDirectEventsPayloadFields extends JsonObject {
349
- "name": string;
350
- "field_type": string;
351
- "required": boolean;
352
- "description": string;
353
- }
354
- export interface IntegrationIntegrationDocsShowGetResponseDataDirectEvents extends JsonObject {
355
- "event_name": string;
356
- "payload_fields": IntegrationIntegrationDocsShowGetResponseDataDirectEventsPayloadFields[];
357
- }
358
- export interface IntegrationIntegrationDocsShowGetResponseDataDirect extends JsonObject {
359
- "transport": string;
360
- "queue"?: string | null;
361
- "base_url"?: string | null;
362
- "broker_url_hint"?: string | null;
363
- "sample_profile_id"?: string | null;
364
- "events": IntegrationIntegrationDocsShowGetResponseDataDirectEvents[];
365
- }
366
- export interface IntegrationIntegrationDocsShowGetResponseDataSdk extends JsonObject {
367
- "event_name": string;
368
- "method": string;
369
- "language": string;
370
- "cargo_dep": string;
371
- "code": string;
372
- }
373
211
  export interface IntegrationIntegrationDocsShowGetResponseData extends JsonObject {
374
- "direct": IntegrationIntegrationDocsShowGetResponseDataDirect;
375
- "sdk": IntegrationIntegrationDocsShowGetResponseDataSdk[];
212
+ "direct": BackendJson<"DirectIntegrationMeta">;
213
+ "sdk": BackendJson<"SdkIntegrationSnippet">[];
376
214
  }
377
215
  export interface IntegrationIntegrationDocsShowGetResponse extends ApiEnvelope<IntegrationIntegrationDocsShowGetResponseData> {
378
216
  }
379
217
  /** Backend response type: infera_flow_sdk::FlowIntegrationResponse. */
380
- export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<JsonValue> {
218
+ export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<BackendJson<"infera_flow_sdk::FlowIntegrationResponse">> {
381
219
  }
382
220
  /** Backend request type: LogActionCreate. */
383
221
  export interface LogActionStorePostInput extends JsonObject {
@@ -427,47 +265,8 @@ export interface ProfileIndexGetQuery extends QueryParams {
427
265
  "filter[trashed]"?: string | null;
428
266
  }
429
267
  /** Backend response type: models::ListData. */
430
- export interface ProfileIndexGetResponseDataProfilesRoles extends JsonObject {
431
- "id": string;
432
- "name": string;
433
- }
434
- export interface ProfileIndexGetResponseDataProfilesCredential extends JsonObject {
435
- "handle_registration": number;
436
- "handle_registration_with_installment": number;
437
- "handle_await_installment": number;
438
- "handle_overdue_installment": number;
439
- "handle_freemium_sessions": number;
440
- "handle_cancel": number;
441
- "total": number;
442
- }
443
- export interface ProfileIndexGetResponseDataProfilesParent extends JsonObject {
444
- "user_id": string;
445
- "parent_type"?: string | null;
446
- }
447
- export interface ProfileIndexGetResponseDataProfiles extends JsonObject {
448
- "id": string;
449
- "user_id": string;
450
- "email"?: string | null;
451
- "phone"?: string | null;
452
- "national_code"?: string | null;
453
- "first_name"?: JsonValue | null;
454
- "last_name"?: JsonValue | null;
455
- "status": string;
456
- "employee_type"?: string | null;
457
- "freemium_session_limit"?: number | null;
458
- "avatar"?: string | null;
459
- "has_active_enrollment": boolean;
460
- "roles": ProfileIndexGetResponseDataProfilesRoles[];
461
- "credential"?: ProfileIndexGetResponseDataProfilesCredential | null;
462
- "meta"?: JsonValue | null;
463
- "app"?: JsonValue | null;
464
- "assessment"?: JsonValue | null;
465
- "properties"?: JsonValue | null;
466
- "services"?: JsonValue | null;
467
- "parent"?: ProfileIndexGetResponseDataProfilesParent[] | null;
468
- }
469
268
  export interface ProfileIndexGetResponseData extends JsonObject {
470
- "profiles": ProfileIndexGetResponseDataProfiles[];
269
+ "profiles": BackendJson<"ProfileResponse">[];
471
270
  }
472
271
  export interface ProfileIndexGetMetaData extends JsonObject {
473
272
  "current_page": number;
@@ -490,25 +289,8 @@ export interface ProfilePropertyIndexGetQuery extends QueryParams {
490
289
  "filter[trashed]"?: string | null;
491
290
  }
492
291
  /** Backend response type: models::ListData. */
493
- export interface ProfilePropertyIndexGetResponseDataProfilePropertyDefinitions extends JsonObject {
494
- "id": string;
495
- "key": string;
496
- "title": string;
497
- "validator_type": string;
498
- "validator_config"?: JsonValue | null;
499
- "visible_in_list": boolean;
500
- "visible_in_get": boolean;
501
- "visible_in_full": boolean;
502
- "filterable": boolean;
503
- "index_value_kind"?: string | null;
504
- "sort_order": number;
505
- "status": string;
506
- "created_at": string;
507
- "updated_at"?: string | null;
508
- "deleted_at"?: string | null;
509
- }
510
292
  export interface ProfilePropertyIndexGetResponseData extends JsonObject {
511
- "profile_property_definitions": ProfilePropertyIndexGetResponseDataProfilePropertyDefinitions[];
293
+ "profile_property_definitions": BackendJson<"Response">[];
512
294
  }
513
295
  export interface ProfilePropertyIndexGetMetaData extends JsonObject {
514
296
  "current_page": number;
@@ -528,30 +310,14 @@ export interface ProfilePropertyStorePostInput extends JsonObject {
528
310
  "visible_in_list"?: boolean | null;
529
311
  "visible_in_get"?: boolean | null;
530
312
  "visible_in_full"?: boolean | null;
313
+ "visible_in_chat"?: boolean | null;
531
314
  "filterable"?: boolean | null;
532
315
  "index_value_kind"?: string | null;
533
316
  "sort_order"?: number | null;
534
317
  }
535
318
  /** Backend response type: models::SingleData. */
536
- export interface ProfilePropertyStorePostResponseDataProfilePropertyDefinition extends JsonObject {
537
- "id": string;
538
- "key": string;
539
- "title": string;
540
- "validator_type": string;
541
- "validator_config"?: JsonValue | null;
542
- "visible_in_list": boolean;
543
- "visible_in_get": boolean;
544
- "visible_in_full": boolean;
545
- "filterable": boolean;
546
- "index_value_kind"?: string | null;
547
- "sort_order": number;
548
- "status": string;
549
- "created_at": string;
550
- "updated_at"?: string | null;
551
- "deleted_at"?: string | null;
552
- }
553
319
  export interface ProfilePropertyStorePostResponseData extends JsonObject {
554
- "profile_property_definition": ProfilePropertyStorePostResponseDataProfilePropertyDefinition;
320
+ "profile_property_definition": BackendJson<"Response">;
555
321
  }
556
322
  export interface ProfilePropertyStorePostResponse extends ApiEnvelope<ProfilePropertyStorePostResponseData> {
557
323
  }
@@ -559,25 +325,8 @@ export interface ProfilePropertyStorePostResponse extends ApiEnvelope<ProfilePro
559
325
  export interface ProfilePropertyDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
560
326
  }
561
327
  /** Backend response type: models::SingleData. */
562
- export interface ProfilePropertyShowGetResponseDataProfilePropertyDefinition extends JsonObject {
563
- "id": string;
564
- "key": string;
565
- "title": string;
566
- "validator_type": string;
567
- "validator_config"?: JsonValue | null;
568
- "visible_in_list": boolean;
569
- "visible_in_get": boolean;
570
- "visible_in_full": boolean;
571
- "filterable": boolean;
572
- "index_value_kind"?: string | null;
573
- "sort_order": number;
574
- "status": string;
575
- "created_at": string;
576
- "updated_at"?: string | null;
577
- "deleted_at"?: string | null;
578
- }
579
328
  export interface ProfilePropertyShowGetResponseData extends JsonObject {
580
- "profile_property_definition": ProfilePropertyShowGetResponseDataProfilePropertyDefinition;
329
+ "profile_property_definition": BackendJson<"Response">;
581
330
  }
582
331
  export interface ProfilePropertyShowGetResponse extends ApiEnvelope<ProfilePropertyShowGetResponseData> {
583
332
  }
@@ -590,31 +339,15 @@ export interface ProfilePropertyUpdatePatchInput extends JsonObject {
590
339
  "visible_in_list"?: boolean | null;
591
340
  "visible_in_get"?: boolean | null;
592
341
  "visible_in_full"?: boolean | null;
342
+ "visible_in_chat"?: boolean | null;
593
343
  "filterable"?: boolean | null;
594
344
  "index_value_kind"?: string | null;
595
345
  "sort_order"?: number | null;
596
346
  "status"?: string | null;
597
347
  }
598
348
  /** Backend response type: models::SingleData. */
599
- export interface ProfilePropertyUpdatePatchResponseDataProfilePropertyDefinition extends JsonObject {
600
- "id": string;
601
- "key": string;
602
- "title": string;
603
- "validator_type": string;
604
- "validator_config"?: JsonValue | null;
605
- "visible_in_list": boolean;
606
- "visible_in_get": boolean;
607
- "visible_in_full": boolean;
608
- "filterable": boolean;
609
- "index_value_kind"?: string | null;
610
- "sort_order": number;
611
- "status": string;
612
- "created_at": string;
613
- "updated_at"?: string | null;
614
- "deleted_at"?: string | null;
615
- }
616
349
  export interface ProfilePropertyUpdatePatchResponseData extends JsonObject {
617
- "profile_property_definition": ProfilePropertyUpdatePatchResponseDataProfilePropertyDefinition;
350
+ "profile_property_definition": BackendJson<"Response">;
618
351
  }
619
352
  export interface ProfilePropertyUpdatePatchResponse extends ApiEnvelope<ProfilePropertyUpdatePatchResponseData> {
620
353
  }
@@ -627,31 +360,15 @@ export interface ProfilePropertyUpdatePutInput extends JsonObject {
627
360
  "visible_in_list"?: boolean | null;
628
361
  "visible_in_get"?: boolean | null;
629
362
  "visible_in_full"?: boolean | null;
363
+ "visible_in_chat"?: boolean | null;
630
364
  "filterable"?: boolean | null;
631
365
  "index_value_kind"?: string | null;
632
366
  "sort_order"?: number | null;
633
367
  "status"?: string | null;
634
368
  }
635
369
  /** Backend response type: models::SingleData. */
636
- export interface ProfilePropertyUpdatePutResponseDataProfilePropertyDefinition extends JsonObject {
637
- "id": string;
638
- "key": string;
639
- "title": string;
640
- "validator_type": string;
641
- "validator_config"?: JsonValue | null;
642
- "visible_in_list": boolean;
643
- "visible_in_get": boolean;
644
- "visible_in_full": boolean;
645
- "filterable": boolean;
646
- "index_value_kind"?: string | null;
647
- "sort_order": number;
648
- "status": string;
649
- "created_at": string;
650
- "updated_at"?: string | null;
651
- "deleted_at"?: string | null;
652
- }
653
370
  export interface ProfilePropertyUpdatePutResponseData extends JsonObject {
654
- "profile_property_definition": ProfilePropertyUpdatePutResponseDataProfilePropertyDefinition;
371
+ "profile_property_definition": BackendJson<"Response">;
655
372
  }
656
373
  export interface ProfilePropertyUpdatePutResponse extends ApiEnvelope<ProfilePropertyUpdatePutResponseData> {
657
374
  }
@@ -668,47 +385,8 @@ export interface ProfileDeleteParentDeleteResponse extends ApiEnvelope<JsonValue
668
385
  export interface ProfileDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
669
386
  }
670
387
  /** Backend response type: models::SingleData. */
671
- export interface ProfileShowGetResponseDataProfileRoles extends JsonObject {
672
- "id": string;
673
- "name": string;
674
- }
675
- export interface ProfileShowGetResponseDataProfileCredential extends JsonObject {
676
- "handle_registration": number;
677
- "handle_registration_with_installment": number;
678
- "handle_await_installment": number;
679
- "handle_overdue_installment": number;
680
- "handle_freemium_sessions": number;
681
- "handle_cancel": number;
682
- "total": number;
683
- }
684
- export interface ProfileShowGetResponseDataProfileParent extends JsonObject {
685
- "user_id": string;
686
- "parent_type"?: string | null;
687
- }
688
- export interface ProfileShowGetResponseDataProfile extends JsonObject {
689
- "id": string;
690
- "user_id": string;
691
- "email"?: string | null;
692
- "phone"?: string | null;
693
- "national_code"?: string | null;
694
- "first_name"?: JsonValue | null;
695
- "last_name"?: JsonValue | null;
696
- "status": string;
697
- "employee_type"?: string | null;
698
- "freemium_session_limit"?: number | null;
699
- "avatar"?: string | null;
700
- "has_active_enrollment": boolean;
701
- "roles": ProfileShowGetResponseDataProfileRoles[];
702
- "credential"?: ProfileShowGetResponseDataProfileCredential | null;
703
- "meta"?: JsonValue | null;
704
- "app"?: JsonValue | null;
705
- "assessment"?: JsonValue | null;
706
- "properties"?: JsonValue | null;
707
- "services"?: JsonValue | null;
708
- "parent"?: ProfileShowGetResponseDataProfileParent[] | null;
709
- }
710
388
  export interface ProfileShowGetResponseData extends JsonObject {
711
- "profile": ProfileShowGetResponseDataProfile;
389
+ "profile": BackendJson<"ProfileResponse">;
712
390
  }
713
391
  export interface ProfileShowGetResponse extends ApiEnvelope<ProfileShowGetResponseData> {
714
392
  }
@@ -742,92 +420,14 @@ export interface ProfileUpdatePatchInput extends JsonObject {
742
420
  "properties"?: Record<string, JsonValue> | null;
743
421
  }
744
422
  /** Backend response type: models::SingleData. */
745
- export interface ProfileUpdatePatchResponseDataProfileRoles extends JsonObject {
746
- "id": string;
747
- "name": string;
748
- }
749
- export interface ProfileUpdatePatchResponseDataProfileCredential extends JsonObject {
750
- "handle_registration": number;
751
- "handle_registration_with_installment": number;
752
- "handle_await_installment": number;
753
- "handle_overdue_installment": number;
754
- "handle_freemium_sessions": number;
755
- "handle_cancel": number;
756
- "total": number;
757
- }
758
- export interface ProfileUpdatePatchResponseDataProfileParent extends JsonObject {
759
- "user_id": string;
760
- "parent_type"?: string | null;
761
- }
762
- export interface ProfileUpdatePatchResponseDataProfile extends JsonObject {
763
- "id": string;
764
- "user_id": string;
765
- "email"?: string | null;
766
- "phone"?: string | null;
767
- "national_code"?: string | null;
768
- "first_name"?: JsonValue | null;
769
- "last_name"?: JsonValue | null;
770
- "status": string;
771
- "employee_type"?: string | null;
772
- "freemium_session_limit"?: number | null;
773
- "avatar"?: string | null;
774
- "has_active_enrollment": boolean;
775
- "roles": ProfileUpdatePatchResponseDataProfileRoles[];
776
- "credential"?: ProfileUpdatePatchResponseDataProfileCredential | null;
777
- "meta"?: JsonValue | null;
778
- "app"?: JsonValue | null;
779
- "assessment"?: JsonValue | null;
780
- "properties"?: JsonValue | null;
781
- "services"?: JsonValue | null;
782
- "parent"?: ProfileUpdatePatchResponseDataProfileParent[] | null;
783
- }
784
423
  export interface ProfileUpdatePatchResponseData extends JsonObject {
785
- "profile": ProfileUpdatePatchResponseDataProfile;
424
+ "profile": BackendJson<"ProfileResponse">;
786
425
  }
787
426
  export interface ProfileUpdatePatchResponse extends ApiEnvelope<ProfileUpdatePatchResponseData> {
788
427
  }
789
428
  /** Backend response type: models::SingleData. */
790
- export interface ProfileShowAdminGetResponseDataProfileRoles extends JsonObject {
791
- "id": string;
792
- "name": string;
793
- }
794
- export interface ProfileShowAdminGetResponseDataProfileCredential extends JsonObject {
795
- "handle_registration": number;
796
- "handle_registration_with_installment": number;
797
- "handle_await_installment": number;
798
- "handle_overdue_installment": number;
799
- "handle_freemium_sessions": number;
800
- "handle_cancel": number;
801
- "total": number;
802
- }
803
- export interface ProfileShowAdminGetResponseDataProfileParent extends JsonObject {
804
- "user_id": string;
805
- "parent_type"?: string | null;
806
- }
807
- export interface ProfileShowAdminGetResponseDataProfile extends JsonObject {
808
- "id": string;
809
- "user_id": string;
810
- "email"?: string | null;
811
- "phone"?: string | null;
812
- "national_code"?: string | null;
813
- "first_name"?: JsonValue | null;
814
- "last_name"?: JsonValue | null;
815
- "status": string;
816
- "employee_type"?: string | null;
817
- "freemium_session_limit"?: number | null;
818
- "avatar"?: string | null;
819
- "has_active_enrollment": boolean;
820
- "roles": ProfileShowAdminGetResponseDataProfileRoles[];
821
- "credential"?: ProfileShowAdminGetResponseDataProfileCredential | null;
822
- "meta"?: JsonValue | null;
823
- "app"?: JsonValue | null;
824
- "assessment"?: JsonValue | null;
825
- "properties"?: JsonValue | null;
826
- "services"?: JsonValue | null;
827
- "parent"?: ProfileShowAdminGetResponseDataProfileParent[] | null;
828
- }
829
429
  export interface ProfileShowAdminGetResponseData extends JsonObject {
830
- "profile": ProfileShowAdminGetResponseDataProfile;
430
+ "profile": BackendJson<"ProfileResponse">;
831
431
  }
832
432
  export interface ProfileShowAdminGetResponse extends ApiEnvelope<ProfileShowAdminGetResponseData> {
833
433
  }
@@ -838,7 +438,7 @@ export interface ProfileAvatarDeleteDeleteResponse extends ApiEnvelope<JsonValue
838
438
  export interface ProfileAvatarShowGetQuery extends QueryParams {
839
439
  "key": string;
840
440
  }
841
- /** Backend response type: handler-defined response. */
441
+ /** Backend response type: raw-response. */
842
442
  export interface ProfileAvatarShowGetResponse extends ApiEnvelope<JsonValue> {
843
443
  }
844
444
  /** Backend request type: multipart/form-data. */
@@ -854,47 +454,8 @@ export interface ProfileUpdateEmployeeTypePatchInput extends JsonObject {
854
454
  "employee_type": string;
855
455
  }
856
456
  /** Backend response type: models::SingleData. */
857
- export interface ProfileUpdateEmployeeTypePatchResponseDataProfileRoles extends JsonObject {
858
- "id": string;
859
- "name": string;
860
- }
861
- export interface ProfileUpdateEmployeeTypePatchResponseDataProfileCredential extends JsonObject {
862
- "handle_registration": number;
863
- "handle_registration_with_installment": number;
864
- "handle_await_installment": number;
865
- "handle_overdue_installment": number;
866
- "handle_freemium_sessions": number;
867
- "handle_cancel": number;
868
- "total": number;
869
- }
870
- export interface ProfileUpdateEmployeeTypePatchResponseDataProfileParent extends JsonObject {
871
- "user_id": string;
872
- "parent_type"?: string | null;
873
- }
874
- export interface ProfileUpdateEmployeeTypePatchResponseDataProfile extends JsonObject {
875
- "id": string;
876
- "user_id": string;
877
- "email"?: string | null;
878
- "phone"?: string | null;
879
- "national_code"?: string | null;
880
- "first_name"?: JsonValue | null;
881
- "last_name"?: JsonValue | null;
882
- "status": string;
883
- "employee_type"?: string | null;
884
- "freemium_session_limit"?: number | null;
885
- "avatar"?: string | null;
886
- "has_active_enrollment": boolean;
887
- "roles": ProfileUpdateEmployeeTypePatchResponseDataProfileRoles[];
888
- "credential"?: ProfileUpdateEmployeeTypePatchResponseDataProfileCredential | null;
889
- "meta"?: JsonValue | null;
890
- "app"?: JsonValue | null;
891
- "assessment"?: JsonValue | null;
892
- "properties"?: JsonValue | null;
893
- "services"?: JsonValue | null;
894
- "parent"?: ProfileUpdateEmployeeTypePatchResponseDataProfileParent[] | null;
895
- }
896
457
  export interface ProfileUpdateEmployeeTypePatchResponseData extends JsonObject {
897
- "profile": ProfileUpdateEmployeeTypePatchResponseDataProfile;
458
+ "profile": BackendJson<"ProfileResponse">;
898
459
  }
899
460
  export interface ProfileUpdateEmployeeTypePatchResponse extends ApiEnvelope<ProfileUpdateEmployeeTypePatchResponseData> {
900
461
  }
@@ -903,47 +464,8 @@ export interface ProfileUpdateEmployeeTypePutInput extends JsonObject {
903
464
  "employee_type": string;
904
465
  }
905
466
  /** Backend response type: models::SingleData. */
906
- export interface ProfileUpdateEmployeeTypePutResponseDataProfileRoles extends JsonObject {
907
- "id": string;
908
- "name": string;
909
- }
910
- export interface ProfileUpdateEmployeeTypePutResponseDataProfileCredential extends JsonObject {
911
- "handle_registration": number;
912
- "handle_registration_with_installment": number;
913
- "handle_await_installment": number;
914
- "handle_overdue_installment": number;
915
- "handle_freemium_sessions": number;
916
- "handle_cancel": number;
917
- "total": number;
918
- }
919
- export interface ProfileUpdateEmployeeTypePutResponseDataProfileParent extends JsonObject {
920
- "user_id": string;
921
- "parent_type"?: string | null;
922
- }
923
- export interface ProfileUpdateEmployeeTypePutResponseDataProfile extends JsonObject {
924
- "id": string;
925
- "user_id": string;
926
- "email"?: string | null;
927
- "phone"?: string | null;
928
- "national_code"?: string | null;
929
- "first_name"?: JsonValue | null;
930
- "last_name"?: JsonValue | null;
931
- "status": string;
932
- "employee_type"?: string | null;
933
- "freemium_session_limit"?: number | null;
934
- "avatar"?: string | null;
935
- "has_active_enrollment": boolean;
936
- "roles": ProfileUpdateEmployeeTypePutResponseDataProfileRoles[];
937
- "credential"?: ProfileUpdateEmployeeTypePutResponseDataProfileCredential | null;
938
- "meta"?: JsonValue | null;
939
- "app"?: JsonValue | null;
940
- "assessment"?: JsonValue | null;
941
- "properties"?: JsonValue | null;
942
- "services"?: JsonValue | null;
943
- "parent"?: ProfileUpdateEmployeeTypePutResponseDataProfileParent[] | null;
944
- }
945
467
  export interface ProfileUpdateEmployeeTypePutResponseData extends JsonObject {
946
- "profile": ProfileUpdateEmployeeTypePutResponseDataProfile;
468
+ "profile": BackendJson<"ProfileResponse">;
947
469
  }
948
470
  export interface ProfileUpdateEmployeeTypePutResponse extends ApiEnvelope<ProfileUpdateEmployeeTypePutResponseData> {
949
471
  }
@@ -952,47 +474,8 @@ export interface ProfileUpdateFreemiumPatchInput extends JsonObject {
952
474
  "freemium_session_limit": number;
953
475
  }
954
476
  /** Backend response type: models::SingleData. */
955
- export interface ProfileUpdateFreemiumPatchResponseDataProfileRoles extends JsonObject {
956
- "id": string;
957
- "name": string;
958
- }
959
- export interface ProfileUpdateFreemiumPatchResponseDataProfileCredential extends JsonObject {
960
- "handle_registration": number;
961
- "handle_registration_with_installment": number;
962
- "handle_await_installment": number;
963
- "handle_overdue_installment": number;
964
- "handle_freemium_sessions": number;
965
- "handle_cancel": number;
966
- "total": number;
967
- }
968
- export interface ProfileUpdateFreemiumPatchResponseDataProfileParent extends JsonObject {
969
- "user_id": string;
970
- "parent_type"?: string | null;
971
- }
972
- export interface ProfileUpdateFreemiumPatchResponseDataProfile extends JsonObject {
973
- "id": string;
974
- "user_id": string;
975
- "email"?: string | null;
976
- "phone"?: string | null;
977
- "national_code"?: string | null;
978
- "first_name"?: JsonValue | null;
979
- "last_name"?: JsonValue | null;
980
- "status": string;
981
- "employee_type"?: string | null;
982
- "freemium_session_limit"?: number | null;
983
- "avatar"?: string | null;
984
- "has_active_enrollment": boolean;
985
- "roles": ProfileUpdateFreemiumPatchResponseDataProfileRoles[];
986
- "credential"?: ProfileUpdateFreemiumPatchResponseDataProfileCredential | null;
987
- "meta"?: JsonValue | null;
988
- "app"?: JsonValue | null;
989
- "assessment"?: JsonValue | null;
990
- "properties"?: JsonValue | null;
991
- "services"?: JsonValue | null;
992
- "parent"?: ProfileUpdateFreemiumPatchResponseDataProfileParent[] | null;
993
- }
994
477
  export interface ProfileUpdateFreemiumPatchResponseData extends JsonObject {
995
- "profile": ProfileUpdateFreemiumPatchResponseDataProfile;
478
+ "profile": BackendJson<"ProfileResponse">;
996
479
  }
997
480
  export interface ProfileUpdateFreemiumPatchResponse extends ApiEnvelope<ProfileUpdateFreemiumPatchResponseData> {
998
481
  }
@@ -1001,92 +484,14 @@ export interface ProfileUpdateFreemiumPutInput extends JsonObject {
1001
484
  "freemium_session_limit": number;
1002
485
  }
1003
486
  /** Backend response type: models::SingleData. */
1004
- export interface ProfileUpdateFreemiumPutResponseDataProfileRoles extends JsonObject {
1005
- "id": string;
1006
- "name": string;
487
+ export interface ProfileUpdateFreemiumPutResponseData extends JsonObject {
488
+ "profile": BackendJson<"ProfileResponse">;
1007
489
  }
1008
- export interface ProfileUpdateFreemiumPutResponseDataProfileCredential extends JsonObject {
1009
- "handle_registration": number;
1010
- "handle_registration_with_installment": number;
1011
- "handle_await_installment": number;
1012
- "handle_overdue_installment": number;
1013
- "handle_freemium_sessions": number;
1014
- "handle_cancel": number;
1015
- "total": number;
1016
- }
1017
- export interface ProfileUpdateFreemiumPutResponseDataProfileParent extends JsonObject {
1018
- "user_id": string;
1019
- "parent_type"?: string | null;
1020
- }
1021
- export interface ProfileUpdateFreemiumPutResponseDataProfile extends JsonObject {
1022
- "id": string;
1023
- "user_id": string;
1024
- "email"?: string | null;
1025
- "phone"?: string | null;
1026
- "national_code"?: string | null;
1027
- "first_name"?: JsonValue | null;
1028
- "last_name"?: JsonValue | null;
1029
- "status": string;
1030
- "employee_type"?: string | null;
1031
- "freemium_session_limit"?: number | null;
1032
- "avatar"?: string | null;
1033
- "has_active_enrollment": boolean;
1034
- "roles": ProfileUpdateFreemiumPutResponseDataProfileRoles[];
1035
- "credential"?: ProfileUpdateFreemiumPutResponseDataProfileCredential | null;
1036
- "meta"?: JsonValue | null;
1037
- "app"?: JsonValue | null;
1038
- "assessment"?: JsonValue | null;
1039
- "properties"?: JsonValue | null;
1040
- "services"?: JsonValue | null;
1041
- "parent"?: ProfileUpdateFreemiumPutResponseDataProfileParent[] | null;
1042
- }
1043
- export interface ProfileUpdateFreemiumPutResponseData extends JsonObject {
1044
- "profile": ProfileUpdateFreemiumPutResponseDataProfile;
1045
- }
1046
- export interface ProfileUpdateFreemiumPutResponse extends ApiEnvelope<ProfileUpdateFreemiumPutResponseData> {
490
+ export interface ProfileUpdateFreemiumPutResponse extends ApiEnvelope<ProfileUpdateFreemiumPutResponseData> {
1047
491
  }
1048
492
  /** Backend response type: models::SingleData. */
1049
- export interface ProfileShowFullGetResponseDataProfileRoles extends JsonObject {
1050
- "id": string;
1051
- "name": string;
1052
- }
1053
- export interface ProfileShowFullGetResponseDataProfileCredential extends JsonObject {
1054
- "handle_registration": number;
1055
- "handle_registration_with_installment": number;
1056
- "handle_await_installment": number;
1057
- "handle_overdue_installment": number;
1058
- "handle_freemium_sessions": number;
1059
- "handle_cancel": number;
1060
- "total": number;
1061
- }
1062
- export interface ProfileShowFullGetResponseDataProfileParent extends JsonObject {
1063
- "user_id": string;
1064
- "parent_type"?: string | null;
1065
- }
1066
- export interface ProfileShowFullGetResponseDataProfile extends JsonObject {
1067
- "id": string;
1068
- "user_id": string;
1069
- "email"?: string | null;
1070
- "phone"?: string | null;
1071
- "national_code"?: string | null;
1072
- "first_name"?: JsonValue | null;
1073
- "last_name"?: JsonValue | null;
1074
- "status": string;
1075
- "employee_type"?: string | null;
1076
- "freemium_session_limit"?: number | null;
1077
- "avatar"?: string | null;
1078
- "has_active_enrollment": boolean;
1079
- "roles": ProfileShowFullGetResponseDataProfileRoles[];
1080
- "credential"?: ProfileShowFullGetResponseDataProfileCredential | null;
1081
- "meta"?: JsonValue | null;
1082
- "app"?: JsonValue | null;
1083
- "assessment"?: JsonValue | null;
1084
- "properties"?: JsonValue | null;
1085
- "services"?: JsonValue | null;
1086
- "parent"?: ProfileShowFullGetResponseDataProfileParent[] | null;
1087
- }
1088
493
  export interface ProfileShowFullGetResponseData extends JsonObject {
1089
- "profile": ProfileShowFullGetResponseDataProfile;
494
+ "profile": BackendJson<"ProfileResponse">;
1090
495
  }
1091
496
  export interface ProfileShowFullGetResponse extends ApiEnvelope<ProfileShowFullGetResponseData> {
1092
497
  }
@@ -1094,7 +499,7 @@ export interface ProfileShowFullGetResponse extends ApiEnvelope<ProfileShowFullG
1094
499
  export interface ProfileMediaShowGetQuery extends QueryParams {
1095
500
  "key": string;
1096
501
  }
1097
- /** Backend response type: handler-defined response. */
502
+ /** Backend response type: raw-response. */
1098
503
  export interface ProfileMediaShowGetResponse extends ApiEnvelope<JsonValue> {
1099
504
  }
1100
505
  /** Backend request type: property_models::PropertiesUpdate. */
@@ -1116,47 +521,8 @@ export interface ProfileUpdateStatusPatchInput extends JsonObject {
1116
521
  "status": string;
1117
522
  }
1118
523
  /** Backend response type: models::SingleData. */
1119
- export interface ProfileUpdateStatusPatchResponseDataProfileRoles extends JsonObject {
1120
- "id": string;
1121
- "name": string;
1122
- }
1123
- export interface ProfileUpdateStatusPatchResponseDataProfileCredential extends JsonObject {
1124
- "handle_registration": number;
1125
- "handle_registration_with_installment": number;
1126
- "handle_await_installment": number;
1127
- "handle_overdue_installment": number;
1128
- "handle_freemium_sessions": number;
1129
- "handle_cancel": number;
1130
- "total": number;
1131
- }
1132
- export interface ProfileUpdateStatusPatchResponseDataProfileParent extends JsonObject {
1133
- "user_id": string;
1134
- "parent_type"?: string | null;
1135
- }
1136
- export interface ProfileUpdateStatusPatchResponseDataProfile extends JsonObject {
1137
- "id": string;
1138
- "user_id": string;
1139
- "email"?: string | null;
1140
- "phone"?: string | null;
1141
- "national_code"?: string | null;
1142
- "first_name"?: JsonValue | null;
1143
- "last_name"?: JsonValue | null;
1144
- "status": string;
1145
- "employee_type"?: string | null;
1146
- "freemium_session_limit"?: number | null;
1147
- "avatar"?: string | null;
1148
- "has_active_enrollment": boolean;
1149
- "roles": ProfileUpdateStatusPatchResponseDataProfileRoles[];
1150
- "credential"?: ProfileUpdateStatusPatchResponseDataProfileCredential | null;
1151
- "meta"?: JsonValue | null;
1152
- "app"?: JsonValue | null;
1153
- "assessment"?: JsonValue | null;
1154
- "properties"?: JsonValue | null;
1155
- "services"?: JsonValue | null;
1156
- "parent"?: ProfileUpdateStatusPatchResponseDataProfileParent[] | null;
1157
- }
1158
524
  export interface ProfileUpdateStatusPatchResponseData extends JsonObject {
1159
- "profile": ProfileUpdateStatusPatchResponseDataProfile;
525
+ "profile": BackendJson<"ProfileResponse">;
1160
526
  }
1161
527
  export interface ProfileUpdateStatusPatchResponse extends ApiEnvelope<ProfileUpdateStatusPatchResponseData> {
1162
528
  }
@@ -1165,52 +531,33 @@ export interface ProfileUpdateStatusPutInput extends JsonObject {
1165
531
  "status": string;
1166
532
  }
1167
533
  /** Backend response type: models::SingleData. */
1168
- export interface ProfileUpdateStatusPutResponseDataProfileRoles extends JsonObject {
1169
- "id": string;
1170
- "name": string;
1171
- }
1172
- export interface ProfileUpdateStatusPutResponseDataProfileCredential extends JsonObject {
1173
- "handle_registration": number;
1174
- "handle_registration_with_installment": number;
1175
- "handle_await_installment": number;
1176
- "handle_overdue_installment": number;
1177
- "handle_freemium_sessions": number;
1178
- "handle_cancel": number;
1179
- "total": number;
534
+ export interface ProfileUpdateStatusPutResponseData extends JsonObject {
535
+ "profile": BackendJson<"ProfileResponse">;
1180
536
  }
1181
- export interface ProfileUpdateStatusPutResponseDataProfileParent extends JsonObject {
1182
- "user_id": string;
1183
- "parent_type"?: string | null;
537
+ export interface ProfileUpdateStatusPutResponse extends ApiEnvelope<ProfileUpdateStatusPutResponseData> {
1184
538
  }
1185
- export interface ProfileUpdateStatusPutResponseDataProfile extends JsonObject {
1186
- "id": string;
1187
- "user_id": string;
1188
- "email"?: string | null;
1189
- "phone"?: string | null;
1190
- "national_code"?: string | null;
1191
- "first_name"?: JsonValue | null;
1192
- "last_name"?: JsonValue | null;
1193
- "status": string;
1194
- "employee_type"?: string | null;
1195
- "freemium_session_limit"?: number | null;
1196
- "avatar"?: string | null;
1197
- "has_active_enrollment": boolean;
1198
- "roles": ProfileUpdateStatusPutResponseDataProfileRoles[];
1199
- "credential"?: ProfileUpdateStatusPutResponseDataProfileCredential | null;
1200
- "meta"?: JsonValue | null;
1201
- "app"?: JsonValue | null;
1202
- "assessment"?: JsonValue | null;
1203
- "properties"?: JsonValue | null;
1204
- "services"?: JsonValue | null;
1205
- "parent"?: ProfileUpdateStatusPutResponseDataProfileParent[] | null;
539
+ /** Backend query type: models::ListQuery. */
540
+ export interface ProfileAccountantIndexGetQuery extends QueryParams {
541
+ "page"?: string | null;
542
+ "per_page"?: string | null;
543
+ "filter[search]"?: string | null;
544
+ "filter[status]"?: string | null;
545
+ "filter[active]"?: string | null;
546
+ "filter[role]"?: string | null;
547
+ "filter[trashed]"?: string | null;
1206
548
  }
1207
- export interface ProfileUpdateStatusPutResponseData extends JsonObject {
1208
- "profile": ProfileUpdateStatusPutResponseDataProfile;
549
+ /** Backend response type: models::ListData. */
550
+ export interface ProfileAccountantIndexGetResponseData extends JsonObject {
551
+ "profiles": BackendJson<"ProfileResponse">[];
1209
552
  }
1210
- export interface ProfileUpdateStatusPutResponse extends ApiEnvelope<ProfileUpdateStatusPutResponseData> {
553
+ export interface ProfileAccountantIndexGetMetaData extends JsonObject {
554
+ "current_page": number;
555
+ "per_page": number;
556
+ "total": number;
557
+ "last_page": number;
1211
558
  }
1212
- /** Backend response type: handler-defined response. */
1213
- export interface ProfileAccountantIndexGetResponse extends ApiEnvelope<JsonValue> {
559
+ export interface ProfileAccountantIndexGetResponse extends ApiEnvelope<ProfileAccountantIndexGetResponseData> {
560
+ meta: ProfileAccountantIndexGetMetaData;
1214
561
  }
1215
562
  /** Backend request type: models::AddressRequest. */
1216
563
  export interface ProfileAddAddressPatchInput extends JsonObject {
@@ -1274,52 +621,33 @@ export interface ProfileCityGetPostInput extends JsonObject {
1274
621
  "user_ids"?: string[] | null;
1275
622
  }
1276
623
  /** Backend response type: models::ListData. */
1277
- export interface ProfileCityGetPostResponseDataProfilesRoles extends JsonObject {
1278
- "id": string;
1279
- "name": string;
1280
- }
1281
- export interface ProfileCityGetPostResponseDataProfilesCredential extends JsonObject {
1282
- "handle_registration": number;
1283
- "handle_registration_with_installment": number;
1284
- "handle_await_installment": number;
1285
- "handle_overdue_installment": number;
1286
- "handle_freemium_sessions": number;
1287
- "handle_cancel": number;
1288
- "total": number;
624
+ export interface ProfileCityGetPostResponseData extends JsonObject {
625
+ "profiles": BackendJson<"ProfileResponse">[];
1289
626
  }
1290
- export interface ProfileCityGetPostResponseDataProfilesParent extends JsonObject {
1291
- "user_id": string;
1292
- "parent_type"?: string | null;
627
+ export interface ProfileCityGetPostResponse extends ApiEnvelope<ProfileCityGetPostResponseData> {
1293
628
  }
1294
- export interface ProfileCityGetPostResponseDataProfiles extends JsonObject {
1295
- "id": string;
1296
- "user_id": string;
1297
- "email"?: string | null;
1298
- "phone"?: string | null;
1299
- "national_code"?: string | null;
1300
- "first_name"?: JsonValue | null;
1301
- "last_name"?: JsonValue | null;
1302
- "status": string;
1303
- "employee_type"?: string | null;
1304
- "freemium_session_limit"?: number | null;
1305
- "avatar"?: string | null;
1306
- "has_active_enrollment": boolean;
1307
- "roles": ProfileCityGetPostResponseDataProfilesRoles[];
1308
- "credential"?: ProfileCityGetPostResponseDataProfilesCredential | null;
1309
- "meta"?: JsonValue | null;
1310
- "app"?: JsonValue | null;
1311
- "assessment"?: JsonValue | null;
1312
- "properties"?: JsonValue | null;
1313
- "services"?: JsonValue | null;
1314
- "parent"?: ProfileCityGetPostResponseDataProfilesParent[] | null;
629
+ /** Backend query type: models::ListQuery. */
630
+ export interface ProfileConsultantIndexGetQuery extends QueryParams {
631
+ "page"?: string | null;
632
+ "per_page"?: string | null;
633
+ "filter[search]"?: string | null;
634
+ "filter[status]"?: string | null;
635
+ "filter[active]"?: string | null;
636
+ "filter[role]"?: string | null;
637
+ "filter[trashed]"?: string | null;
1315
638
  }
1316
- export interface ProfileCityGetPostResponseData extends JsonObject {
1317
- "profiles": ProfileCityGetPostResponseDataProfiles[];
639
+ /** Backend response type: models::ListData. */
640
+ export interface ProfileConsultantIndexGetResponseData extends JsonObject {
641
+ "profiles": BackendJson<"ProfileResponse">[];
1318
642
  }
1319
- export interface ProfileCityGetPostResponse extends ApiEnvelope<ProfileCityGetPostResponseData> {
643
+ export interface ProfileConsultantIndexGetMetaData extends JsonObject {
644
+ "current_page": number;
645
+ "per_page": number;
646
+ "total": number;
647
+ "last_page": number;
1320
648
  }
1321
- /** Backend response type: handler-defined response. */
1322
- export interface ProfileConsultantIndexGetResponse extends ApiEnvelope<JsonValue> {
649
+ export interface ProfileConsultantIndexGetResponse extends ApiEnvelope<ProfileConsultantIndexGetResponseData> {
650
+ meta: ProfileConsultantIndexGetMetaData;
1323
651
  }
1324
652
  /** Backend request type: models::GeoBulkGetRequest. */
1325
653
  export interface ProfileCountryGetPostInput extends JsonObject {
@@ -1327,47 +655,8 @@ export interface ProfileCountryGetPostInput extends JsonObject {
1327
655
  "user_ids"?: string[] | null;
1328
656
  }
1329
657
  /** Backend response type: models::ListData. */
1330
- export interface ProfileCountryGetPostResponseDataProfilesRoles extends JsonObject {
1331
- "id": string;
1332
- "name": string;
1333
- }
1334
- export interface ProfileCountryGetPostResponseDataProfilesCredential extends JsonObject {
1335
- "handle_registration": number;
1336
- "handle_registration_with_installment": number;
1337
- "handle_await_installment": number;
1338
- "handle_overdue_installment": number;
1339
- "handle_freemium_sessions": number;
1340
- "handle_cancel": number;
1341
- "total": number;
1342
- }
1343
- export interface ProfileCountryGetPostResponseDataProfilesParent extends JsonObject {
1344
- "user_id": string;
1345
- "parent_type"?: string | null;
1346
- }
1347
- export interface ProfileCountryGetPostResponseDataProfiles extends JsonObject {
1348
- "id": string;
1349
- "user_id": string;
1350
- "email"?: string | null;
1351
- "phone"?: string | null;
1352
- "national_code"?: string | null;
1353
- "first_name"?: JsonValue | null;
1354
- "last_name"?: JsonValue | null;
1355
- "status": string;
1356
- "employee_type"?: string | null;
1357
- "freemium_session_limit"?: number | null;
1358
- "avatar"?: string | null;
1359
- "has_active_enrollment": boolean;
1360
- "roles": ProfileCountryGetPostResponseDataProfilesRoles[];
1361
- "credential"?: ProfileCountryGetPostResponseDataProfilesCredential | null;
1362
- "meta"?: JsonValue | null;
1363
- "app"?: JsonValue | null;
1364
- "assessment"?: JsonValue | null;
1365
- "properties"?: JsonValue | null;
1366
- "services"?: JsonValue | null;
1367
- "parent"?: ProfileCountryGetPostResponseDataProfilesParent[] | null;
1368
- }
1369
658
  export interface ProfileCountryGetPostResponseData extends JsonObject {
1370
- "profiles": ProfileCountryGetPostResponseDataProfiles[];
659
+ "profiles": BackendJson<"ProfileResponse">[];
1371
660
  }
1372
661
  export interface ProfileCountryGetPostResponse extends ApiEnvelope<ProfileCountryGetPostResponseData> {
1373
662
  }
@@ -1379,47 +668,8 @@ export interface ProfileBulkGetPostInput extends JsonObject {
1379
668
  "user_ids": string[];
1380
669
  }
1381
670
  /** Backend response type: models::ListData. */
1382
- export interface ProfileBulkGetPostResponseDataProfilesRoles extends JsonObject {
1383
- "id": string;
1384
- "name": string;
1385
- }
1386
- export interface ProfileBulkGetPostResponseDataProfilesCredential extends JsonObject {
1387
- "handle_registration": number;
1388
- "handle_registration_with_installment": number;
1389
- "handle_await_installment": number;
1390
- "handle_overdue_installment": number;
1391
- "handle_freemium_sessions": number;
1392
- "handle_cancel": number;
1393
- "total": number;
1394
- }
1395
- export interface ProfileBulkGetPostResponseDataProfilesParent extends JsonObject {
1396
- "user_id": string;
1397
- "parent_type"?: string | null;
1398
- }
1399
- export interface ProfileBulkGetPostResponseDataProfiles extends JsonObject {
1400
- "id": string;
1401
- "user_id": string;
1402
- "email"?: string | null;
1403
- "phone"?: string | null;
1404
- "national_code"?: string | null;
1405
- "first_name"?: JsonValue | null;
1406
- "last_name"?: JsonValue | null;
1407
- "status": string;
1408
- "employee_type"?: string | null;
1409
- "freemium_session_limit"?: number | null;
1410
- "avatar"?: string | null;
1411
- "has_active_enrollment": boolean;
1412
- "roles": ProfileBulkGetPostResponseDataProfilesRoles[];
1413
- "credential"?: ProfileBulkGetPostResponseDataProfilesCredential | null;
1414
- "meta"?: JsonValue | null;
1415
- "app"?: JsonValue | null;
1416
- "assessment"?: JsonValue | null;
1417
- "properties"?: JsonValue | null;
1418
- "services"?: JsonValue | null;
1419
- "parent"?: ProfileBulkGetPostResponseDataProfilesParent[] | null;
1420
- }
1421
671
  export interface ProfileBulkGetPostResponseData extends JsonObject {
1422
- "profiles": ProfileBulkGetPostResponseDataProfiles[];
672
+ "profiles": BackendJson<"ProfileResponse">[];
1423
673
  }
1424
674
  export interface ProfileBulkGetPostResponse extends ApiEnvelope<ProfileBulkGetPostResponseData> {
1425
675
  }
@@ -1435,94 +685,98 @@ export interface ProfileGetAppGetResponse extends ApiEnvelope<JsonValue> {
1435
685
  /** Backend response type: serde_json::Value. */
1436
686
  export interface ProfileGetParentGetResponse extends ApiEnvelope<JsonValue> {
1437
687
  }
1438
- /** Backend response type: handler-defined response. */
1439
- export interface ProfileManagerIndexGetResponse extends ApiEnvelope<JsonValue> {
688
+ /** Backend query type: models::ListQuery. */
689
+ export interface ProfileManagerIndexGetQuery extends QueryParams {
690
+ "page"?: string | null;
691
+ "per_page"?: string | null;
692
+ "filter[search]"?: string | null;
693
+ "filter[status]"?: string | null;
694
+ "filter[active]"?: string | null;
695
+ "filter[role]"?: string | null;
696
+ "filter[trashed]"?: string | null;
1440
697
  }
1441
- /** Backend response type: handler-defined response. */
1442
- export interface ProfileOtherIndexGetResponse extends ApiEnvelope<JsonValue> {
698
+ /** Backend response type: models::ListData. */
699
+ export interface ProfileManagerIndexGetResponseData extends JsonObject {
700
+ "profiles": BackendJson<"ProfileResponse">[];
1443
701
  }
1444
- /** Backend response type: handler-defined response. */
1445
- export interface ProfileParentIndexGetResponse extends ApiEnvelope<JsonValue> {
702
+ export interface ProfileManagerIndexGetMetaData extends JsonObject {
703
+ "current_page": number;
704
+ "per_page": number;
705
+ "total": number;
706
+ "last_page": number;
1446
707
  }
1447
- /** Backend request type: models::GeoBulkGetRequest. */
1448
- export interface ProfileProvinceGetPostInput extends JsonObject {
1449
- "ids": string[];
1450
- "user_ids"?: string[] | null;
708
+ export interface ProfileManagerIndexGetResponse extends ApiEnvelope<ProfileManagerIndexGetResponseData> {
709
+ meta: ProfileManagerIndexGetMetaData;
710
+ }
711
+ /** Backend query type: models::ListQuery. */
712
+ export interface ProfileOtherIndexGetQuery extends QueryParams {
713
+ "page"?: string | null;
714
+ "per_page"?: string | null;
715
+ "filter[search]"?: string | null;
716
+ "filter[status]"?: string | null;
717
+ "filter[active]"?: string | null;
718
+ "filter[role]"?: string | null;
719
+ "filter[trashed]"?: string | null;
1451
720
  }
1452
721
  /** Backend response type: models::ListData. */
1453
- export interface ProfileProvinceGetPostResponseDataProfilesRoles extends JsonObject {
1454
- "id": string;
1455
- "name": string;
722
+ export interface ProfileOtherIndexGetResponseData extends JsonObject {
723
+ "profiles": BackendJson<"ProfileResponse">[];
1456
724
  }
1457
- export interface ProfileProvinceGetPostResponseDataProfilesCredential extends JsonObject {
1458
- "handle_registration": number;
1459
- "handle_registration_with_installment": number;
1460
- "handle_await_installment": number;
1461
- "handle_overdue_installment": number;
1462
- "handle_freemium_sessions": number;
1463
- "handle_cancel": number;
725
+ export interface ProfileOtherIndexGetMetaData extends JsonObject {
726
+ "current_page": number;
727
+ "per_page": number;
1464
728
  "total": number;
729
+ "last_page": number;
1465
730
  }
1466
- export interface ProfileProvinceGetPostResponseDataProfilesParent extends JsonObject {
1467
- "user_id": string;
1468
- "parent_type"?: string | null;
731
+ export interface ProfileOtherIndexGetResponse extends ApiEnvelope<ProfileOtherIndexGetResponseData> {
732
+ meta: ProfileOtherIndexGetMetaData;
1469
733
  }
1470
- export interface ProfileProvinceGetPostResponseDataProfiles extends JsonObject {
1471
- "id": string;
1472
- "user_id": string;
1473
- "email"?: string | null;
1474
- "phone"?: string | null;
1475
- "national_code"?: string | null;
1476
- "first_name"?: JsonValue | null;
1477
- "last_name"?: JsonValue | null;
1478
- "status": string;
1479
- "employee_type"?: string | null;
1480
- "freemium_session_limit"?: number | null;
1481
- "avatar"?: string | null;
1482
- "has_active_enrollment": boolean;
1483
- "roles": ProfileProvinceGetPostResponseDataProfilesRoles[];
1484
- "credential"?: ProfileProvinceGetPostResponseDataProfilesCredential | null;
1485
- "meta"?: JsonValue | null;
1486
- "app"?: JsonValue | null;
1487
- "assessment"?: JsonValue | null;
1488
- "properties"?: JsonValue | null;
1489
- "services"?: JsonValue | null;
1490
- "parent"?: ProfileProvinceGetPostResponseDataProfilesParent[] | null;
734
+ /** Backend query type: models::ListQuery. */
735
+ export interface ProfileParentIndexGetQuery extends QueryParams {
736
+ "page"?: string | null;
737
+ "per_page"?: string | null;
738
+ "filter[search]"?: string | null;
739
+ "filter[status]"?: string | null;
740
+ "filter[active]"?: string | null;
741
+ "filter[role]"?: string | null;
742
+ "filter[trashed]"?: string | null;
743
+ }
744
+ /** Backend response type: models::ListData. */
745
+ export interface ProfileParentIndexGetResponseData extends JsonObject {
746
+ "profiles": BackendJson<"ProfileResponse">[];
747
+ }
748
+ export interface ProfileParentIndexGetMetaData extends JsonObject {
749
+ "current_page": number;
750
+ "per_page": number;
751
+ "total": number;
752
+ "last_page": number;
753
+ }
754
+ export interface ProfileParentIndexGetResponse extends ApiEnvelope<ProfileParentIndexGetResponseData> {
755
+ meta: ProfileParentIndexGetMetaData;
1491
756
  }
757
+ /** Backend request type: models::GeoBulkGetRequest. */
758
+ export interface ProfileProvinceGetPostInput extends JsonObject {
759
+ "ids": string[];
760
+ "user_ids"?: string[] | null;
761
+ }
762
+ /** Backend response type: models::ListData. */
1492
763
  export interface ProfileProvinceGetPostResponseData extends JsonObject {
1493
- "profiles": ProfileProvinceGetPostResponseDataProfiles[];
764
+ "profiles": BackendJson<"ProfileResponse">[];
1494
765
  }
1495
766
  export interface ProfileProvinceGetPostResponse extends ApiEnvelope<ProfileProvinceGetPostResponseData> {
1496
767
  }
1497
768
  /** Backend request type: crate::profile_search::models::SearchRequest. */
1498
- export type ProfileSearchSearchPostInputFiltersOp = "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "in" | "contains" | "exists" | "json_contains";
1499
- export interface ProfileSearchSearchPostInputFilters extends JsonObject {
1500
- "path": string;
1501
- "op": ProfileSearchSearchPostInputFiltersOp;
1502
- "value"?: JsonValue | null;
1503
- }
1504
- export interface ProfileSearchSearchPostInputSort extends JsonObject {
1505
- "path": string;
1506
- "dir": string;
1507
- }
1508
769
  export interface ProfileSearchSearchPostInput extends JsonObject {
1509
770
  "search"?: string | null;
1510
- "filters"?: ProfileSearchSearchPostInputFilters[];
1511
- "sort"?: ProfileSearchSearchPostInputSort[];
771
+ "filters"?: BackendJson<"FilterClause">[];
772
+ "sort"?: BackendJson<"SortClause">[];
1512
773
  "page"?: number | null;
1513
774
  "per_page"?: number | null;
1514
775
  "include"?: string[];
1515
776
  }
1516
777
  /** Backend response type: SearchData. */
1517
- export interface ProfileSearchSearchPostResponseDataResults extends JsonObject {
1518
- "profile_id": string;
1519
- "user_id": string;
1520
- "core"?: JsonValue | null;
1521
- "properties"?: JsonValue | null;
1522
- "services"?: JsonValue | null;
1523
- }
1524
778
  export interface ProfileSearchSearchPostResponseData extends JsonObject {
1525
- "results": ProfileSearchSearchPostResponseDataResults[];
779
+ "results": BackendJson<"SearchHit">[];
1526
780
  }
1527
781
  export interface ProfileSearchSearchPostMetaData extends JsonObject {
1528
782
  "current_page": number;
@@ -1533,8 +787,28 @@ export interface ProfileSearchSearchPostMetaData extends JsonObject {
1533
787
  export interface ProfileSearchSearchPostResponse extends ApiEnvelope<ProfileSearchSearchPostResponseData> {
1534
788
  meta: ProfileSearchSearchPostMetaData;
1535
789
  }
1536
- /** Backend response type: handler-defined response. */
1537
- export interface ProfileStudentIndexGetResponse extends ApiEnvelope<JsonValue> {
790
+ /** Backend query type: models::ListQuery. */
791
+ export interface ProfileStudentIndexGetQuery extends QueryParams {
792
+ "page"?: string | null;
793
+ "per_page"?: string | null;
794
+ "filter[search]"?: string | null;
795
+ "filter[status]"?: string | null;
796
+ "filter[active]"?: string | null;
797
+ "filter[role]"?: string | null;
798
+ "filter[trashed]"?: string | null;
799
+ }
800
+ /** Backend response type: models::ListData. */
801
+ export interface ProfileStudentIndexGetResponseData extends JsonObject {
802
+ "profiles": BackendJson<"ProfileResponse">[];
803
+ }
804
+ export interface ProfileStudentIndexGetMetaData extends JsonObject {
805
+ "current_page": number;
806
+ "per_page": number;
807
+ "total": number;
808
+ "last_page": number;
809
+ }
810
+ export interface ProfileStudentIndexGetResponse extends ApiEnvelope<ProfileStudentIndexGetResponseData> {
811
+ meta: ProfileStudentIndexGetMetaData;
1538
812
  }
1539
813
  /** Backend response type: models::PesResponse. */
1540
814
  export interface ProfileStudentPesGetResponseData extends JsonObject {
@@ -1546,8 +820,28 @@ export interface ProfileStudentPesGetResponse extends ApiEnvelope<ProfileStudent
1546
820
  /** Backend response type: serde_json::Value. */
1547
821
  export interface ProfileStudentPesSchemaGetResponse extends ApiEnvelope<JsonValue> {
1548
822
  }
1549
- /** Backend response type: handler-defined response. */
1550
- export interface ProfileSupportIndexGetResponse extends ApiEnvelope<JsonValue> {
823
+ /** Backend query type: models::ListQuery. */
824
+ export interface ProfileSupportIndexGetQuery extends QueryParams {
825
+ "page"?: string | null;
826
+ "per_page"?: string | null;
827
+ "filter[search]"?: string | null;
828
+ "filter[status]"?: string | null;
829
+ "filter[active]"?: string | null;
830
+ "filter[role]"?: string | null;
831
+ "filter[trashed]"?: string | null;
832
+ }
833
+ /** Backend response type: models::ListData. */
834
+ export interface ProfileSupportIndexGetResponseData extends JsonObject {
835
+ "profiles": BackendJson<"ProfileResponse">[];
836
+ }
837
+ export interface ProfileSupportIndexGetMetaData extends JsonObject {
838
+ "current_page": number;
839
+ "per_page": number;
840
+ "total": number;
841
+ "last_page": number;
842
+ }
843
+ export interface ProfileSupportIndexGetResponse extends ApiEnvelope<ProfileSupportIndexGetResponseData> {
844
+ meta: ProfileSupportIndexGetMetaData;
1551
845
  }
1552
846
  /** Backend response type: models::PesResponse. */
1553
847
  export interface ProfileSupportPesGetResponseData extends JsonObject {
@@ -1559,8 +853,28 @@ export interface ProfileSupportPesGetResponse extends ApiEnvelope<ProfileSupport
1559
853
  /** Backend response type: serde_json::Value. */
1560
854
  export interface ProfileSupportPesSchemaGetResponse extends ApiEnvelope<JsonValue> {
1561
855
  }
1562
- /** Backend response type: handler-defined response. */
1563
- export interface ProfileTeacherIndexGetResponse extends ApiEnvelope<JsonValue> {
856
+ /** Backend query type: models::ListQuery. */
857
+ export interface ProfileTeacherIndexGetQuery extends QueryParams {
858
+ "page"?: string | null;
859
+ "per_page"?: string | null;
860
+ "filter[search]"?: string | null;
861
+ "filter[status]"?: string | null;
862
+ "filter[active]"?: string | null;
863
+ "filter[role]"?: string | null;
864
+ "filter[trashed]"?: string | null;
865
+ }
866
+ /** Backend response type: models::ListData. */
867
+ export interface ProfileTeacherIndexGetResponseData extends JsonObject {
868
+ "profiles": BackendJson<"ProfileResponse">[];
869
+ }
870
+ export interface ProfileTeacherIndexGetMetaData extends JsonObject {
871
+ "current_page": number;
872
+ "per_page": number;
873
+ "total": number;
874
+ "last_page": number;
875
+ }
876
+ export interface ProfileTeacherIndexGetResponse extends ApiEnvelope<ProfileTeacherIndexGetResponseData> {
877
+ meta: ProfileTeacherIndexGetMetaData;
1564
878
  }
1565
879
  /** Backend response type: serde_json::Value. */
1566
880
  export interface ProfileRestoreGetResponse extends ApiEnvelope<JsonValue> {
@@ -1598,47 +912,8 @@ export interface ProfileUpdatePersonalPatchInput extends JsonObject {
1598
912
  "city_id"?: string | null;
1599
913
  }
1600
914
  /** Backend response type: models::SingleData. */
1601
- export interface ProfileUpdatePersonalPatchResponseDataProfileRoles extends JsonObject {
1602
- "id": string;
1603
- "name": string;
1604
- }
1605
- export interface ProfileUpdatePersonalPatchResponseDataProfileCredential extends JsonObject {
1606
- "handle_registration": number;
1607
- "handle_registration_with_installment": number;
1608
- "handle_await_installment": number;
1609
- "handle_overdue_installment": number;
1610
- "handle_freemium_sessions": number;
1611
- "handle_cancel": number;
1612
- "total": number;
1613
- }
1614
- export interface ProfileUpdatePersonalPatchResponseDataProfileParent extends JsonObject {
1615
- "user_id": string;
1616
- "parent_type"?: string | null;
1617
- }
1618
- export interface ProfileUpdatePersonalPatchResponseDataProfile extends JsonObject {
1619
- "id": string;
1620
- "user_id": string;
1621
- "email"?: string | null;
1622
- "phone"?: string | null;
1623
- "national_code"?: string | null;
1624
- "first_name"?: JsonValue | null;
1625
- "last_name"?: JsonValue | null;
1626
- "status": string;
1627
- "employee_type"?: string | null;
1628
- "freemium_session_limit"?: number | null;
1629
- "avatar"?: string | null;
1630
- "has_active_enrollment": boolean;
1631
- "roles": ProfileUpdatePersonalPatchResponseDataProfileRoles[];
1632
- "credential"?: ProfileUpdatePersonalPatchResponseDataProfileCredential | null;
1633
- "meta"?: JsonValue | null;
1634
- "app"?: JsonValue | null;
1635
- "assessment"?: JsonValue | null;
1636
- "properties"?: JsonValue | null;
1637
- "services"?: JsonValue | null;
1638
- "parent"?: ProfileUpdatePersonalPatchResponseDataProfileParent[] | null;
1639
- }
1640
915
  export interface ProfileUpdatePersonalPatchResponseData extends JsonObject {
1641
- "profile": ProfileUpdatePersonalPatchResponseDataProfile;
916
+ "profile": BackendJson<"ProfileResponse">;
1642
917
  }
1643
918
  export interface ProfileUpdatePersonalPatchResponse extends ApiEnvelope<ProfileUpdatePersonalPatchResponseData> {
1644
919
  }
@@ -1661,47 +936,8 @@ export interface ProfileUpdatePersonalPutInput extends JsonObject {
1661
936
  "city_id"?: string | null;
1662
937
  }
1663
938
  /** Backend response type: models::SingleData. */
1664
- export interface ProfileUpdatePersonalPutResponseDataProfileRoles extends JsonObject {
1665
- "id": string;
1666
- "name": string;
1667
- }
1668
- export interface ProfileUpdatePersonalPutResponseDataProfileCredential extends JsonObject {
1669
- "handle_registration": number;
1670
- "handle_registration_with_installment": number;
1671
- "handle_await_installment": number;
1672
- "handle_overdue_installment": number;
1673
- "handle_freemium_sessions": number;
1674
- "handle_cancel": number;
1675
- "total": number;
1676
- }
1677
- export interface ProfileUpdatePersonalPutResponseDataProfileParent extends JsonObject {
1678
- "user_id": string;
1679
- "parent_type"?: string | null;
1680
- }
1681
- export interface ProfileUpdatePersonalPutResponseDataProfile extends JsonObject {
1682
- "id": string;
1683
- "user_id": string;
1684
- "email"?: string | null;
1685
- "phone"?: string | null;
1686
- "national_code"?: string | null;
1687
- "first_name"?: JsonValue | null;
1688
- "last_name"?: JsonValue | null;
1689
- "status": string;
1690
- "employee_type"?: string | null;
1691
- "freemium_session_limit"?: number | null;
1692
- "avatar"?: string | null;
1693
- "has_active_enrollment": boolean;
1694
- "roles": ProfileUpdatePersonalPutResponseDataProfileRoles[];
1695
- "credential"?: ProfileUpdatePersonalPutResponseDataProfileCredential | null;
1696
- "meta"?: JsonValue | null;
1697
- "app"?: JsonValue | null;
1698
- "assessment"?: JsonValue | null;
1699
- "properties"?: JsonValue | null;
1700
- "services"?: JsonValue | null;
1701
- "parent"?: ProfileUpdatePersonalPutResponseDataProfileParent[] | null;
1702
- }
1703
939
  export interface ProfileUpdatePersonalPutResponseData extends JsonObject {
1704
- "profile": ProfileUpdatePersonalPutResponseDataProfile;
940
+ "profile": BackendJson<"ProfileResponse">;
1705
941
  }
1706
942
  export interface ProfileUpdatePersonalPutResponse extends ApiEnvelope<ProfileUpdatePersonalPutResponseData> {
1707
943
  }
@@ -1717,19 +953,8 @@ export interface ProvinceIndexGetQuery extends QueryParams {
1717
953
  "filter[trashed]"?: string | null;
1718
954
  }
1719
955
  /** Backend response type: models::ListData. */
1720
- export interface ProvinceIndexGetResponseDataProvinces extends JsonObject {
1721
- "id": string;
1722
- "country_id": string;
1723
- "name": string;
1724
- "latitude"?: number | null;
1725
- "longitude"?: number | null;
1726
- "status": string;
1727
- "created_at": string;
1728
- "updated_at"?: string | null;
1729
- "deleted_at"?: string | null;
1730
- }
1731
956
  export interface ProvinceIndexGetResponseData extends JsonObject {
1732
- "provinces": ProvinceIndexGetResponseDataProvinces[];
957
+ "provinces": BackendJson<"Response">[];
1733
958
  }
1734
959
  export interface ProvinceIndexGetMetaData extends JsonObject {
1735
960
  "current_page": number;
@@ -1748,19 +973,8 @@ export interface ProvinceStorePostInput extends JsonObject {
1748
973
  "longitude"?: number | null;
1749
974
  }
1750
975
  /** Backend response type: models::SingleData. */
1751
- export interface ProvinceStorePostResponseDataProvince extends JsonObject {
1752
- "id": string;
1753
- "country_id": string;
1754
- "name": string;
1755
- "latitude"?: number | null;
1756
- "longitude"?: number | null;
1757
- "status": string;
1758
- "created_at": string;
1759
- "updated_at"?: string | null;
1760
- "deleted_at"?: string | null;
1761
- }
1762
976
  export interface ProvinceStorePostResponseData extends JsonObject {
1763
- "province": ProvinceStorePostResponseDataProvince;
977
+ "province": BackendJson<"Response">;
1764
978
  }
1765
979
  export interface ProvinceStorePostResponse extends ApiEnvelope<ProvinceStorePostResponseData> {
1766
980
  }
@@ -1768,19 +982,8 @@ export interface ProvinceStorePostResponse extends ApiEnvelope<ProvinceStorePost
1768
982
  export interface ProvinceDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
1769
983
  }
1770
984
  /** Backend response type: models::SingleData. */
1771
- export interface ProvinceShowGetResponseDataProvince extends JsonObject {
1772
- "id": string;
1773
- "country_id": string;
1774
- "name": string;
1775
- "latitude"?: number | null;
1776
- "longitude"?: number | null;
1777
- "status": string;
1778
- "created_at": string;
1779
- "updated_at"?: string | null;
1780
- "deleted_at"?: string | null;
1781
- }
1782
985
  export interface ProvinceShowGetResponseData extends JsonObject {
1783
- "province": ProvinceShowGetResponseDataProvince;
986
+ "province": BackendJson<"Response">;
1784
987
  }
1785
988
  export interface ProvinceShowGetResponse extends ApiEnvelope<ProvinceShowGetResponseData> {
1786
989
  }
@@ -1793,19 +996,8 @@ export interface ProvinceUpdatePatchInput extends JsonObject {
1793
996
  "longitude"?: number | null;
1794
997
  }
1795
998
  /** Backend response type: models::SingleData. */
1796
- export interface ProvinceUpdatePatchResponseDataProvince extends JsonObject {
1797
- "id": string;
1798
- "country_id": string;
1799
- "name": string;
1800
- "latitude"?: number | null;
1801
- "longitude"?: number | null;
1802
- "status": string;
1803
- "created_at": string;
1804
- "updated_at"?: string | null;
1805
- "deleted_at"?: string | null;
1806
- }
1807
999
  export interface ProvinceUpdatePatchResponseData extends JsonObject {
1808
- "province": ProvinceUpdatePatchResponseDataProvince;
1000
+ "province": BackendJson<"Response">;
1809
1001
  }
1810
1002
  export interface ProvinceUpdatePatchResponse extends ApiEnvelope<ProvinceUpdatePatchResponseData> {
1811
1003
  }
@@ -1818,19 +1010,8 @@ export interface ProvinceUpdatePutInput extends JsonObject {
1818
1010
  "longitude"?: number | null;
1819
1011
  }
1820
1012
  /** Backend response type: models::SingleData. */
1821
- export interface ProvinceUpdatePutResponseDataProvince extends JsonObject {
1822
- "id": string;
1823
- "country_id": string;
1824
- "name": string;
1825
- "latitude"?: number | null;
1826
- "longitude"?: number | null;
1827
- "status": string;
1828
- "created_at": string;
1829
- "updated_at"?: string | null;
1830
- "deleted_at"?: string | null;
1831
- }
1832
1013
  export interface ProvinceUpdatePutResponseData extends JsonObject {
1833
- "province": ProvinceUpdatePutResponseDataProvince;
1014
+ "province": BackendJson<"Response">;
1834
1015
  }
1835
1016
  export interface ProvinceUpdatePutResponse extends ApiEnvelope<ProvinceUpdatePutResponseData> {
1836
1017
  }
@@ -1841,16 +1022,8 @@ export interface ProvinceForceDestroyDeleteResponse extends ApiEnvelope<JsonValu
1841
1022
  export interface ProvinceRestoreGetResponse extends ApiEnvelope<JsonValue> {
1842
1023
  }
1843
1024
  /** Backend response type: models::ListData. */
1844
- export interface SettingIndexGetResponseDataSetting extends JsonObject {
1845
- "id": string;
1846
- "key": string;
1847
- "title": string;
1848
- "value": number;
1849
- "created_at": string;
1850
- "updated_at"?: string | null;
1851
- }
1852
1025
  export interface SettingIndexGetResponseData extends JsonObject {
1853
- "setting": SettingIndexGetResponseDataSetting[];
1026
+ "setting": BackendJson<"Response">[];
1854
1027
  }
1855
1028
  export interface SettingIndexGetResponse extends ApiEnvelope<SettingIndexGetResponseData> {
1856
1029
  }
@@ -1861,16 +1034,8 @@ export interface SettingStorePostInput extends JsonObject {
1861
1034
  "value": number;
1862
1035
  }
1863
1036
  /** Backend response type: models::SingleData. */
1864
- export interface SettingStorePostResponseDataSetting extends JsonObject {
1865
- "id": string;
1866
- "key": string;
1867
- "title": string;
1868
- "value": number;
1869
- "created_at": string;
1870
- "updated_at"?: string | null;
1871
- }
1872
1037
  export interface SettingStorePostResponseData extends JsonObject {
1873
- "setting": SettingStorePostResponseDataSetting;
1038
+ "setting": BackendJson<"Response">;
1874
1039
  }
1875
1040
  export interface SettingStorePostResponse extends ApiEnvelope<SettingStorePostResponseData> {
1876
1041
  }
@@ -1899,17 +1064,8 @@ export interface TrustedServiceIndexGetQuery extends QueryParams {
1899
1064
  "filter[trashed]"?: string | null;
1900
1065
  }
1901
1066
  /** Backend response type: models::ListData. */
1902
- export interface TrustedServiceIndexGetResponseDataTrustedServices extends JsonObject {
1903
- "id": string;
1904
- "service_key": string;
1905
- "title": string;
1906
- "status": string;
1907
- "created_at": string;
1908
- "updated_at"?: string | null;
1909
- "deleted_at"?: string | null;
1910
- }
1911
1067
  export interface TrustedServiceIndexGetResponseData extends JsonObject {
1912
- "trusted_services": TrustedServiceIndexGetResponseDataTrustedServices[];
1068
+ "trusted_services": BackendJson<"Response">[];
1913
1069
  }
1914
1070
  export interface TrustedServiceIndexGetMetaData extends JsonObject {
1915
1071
  "current_page": number;
@@ -1926,17 +1082,8 @@ export interface TrustedServiceStorePostInput extends JsonObject {
1926
1082
  "title": string;
1927
1083
  }
1928
1084
  /** Backend response type: models::SingleData. */
1929
- export interface TrustedServiceStorePostResponseDataTrustedService extends JsonObject {
1930
- "id": string;
1931
- "service_key": string;
1932
- "title": string;
1933
- "status": string;
1934
- "created_at": string;
1935
- "updated_at"?: string | null;
1936
- "deleted_at"?: string | null;
1937
- }
1938
1085
  export interface TrustedServiceStorePostResponseData extends JsonObject {
1939
- "trusted_service": TrustedServiceStorePostResponseDataTrustedService;
1086
+ "trusted_service": BackendJson<"Response">;
1940
1087
  }
1941
1088
  export interface TrustedServiceStorePostResponse extends ApiEnvelope<TrustedServiceStorePostResponseData> {
1942
1089
  }
@@ -1944,17 +1091,8 @@ export interface TrustedServiceStorePostResponse extends ApiEnvelope<TrustedServ
1944
1091
  export interface TrustedServiceDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
1945
1092
  }
1946
1093
  /** Backend response type: models::SingleData. */
1947
- export interface TrustedServiceShowGetResponseDataTrustedService extends JsonObject {
1948
- "id": string;
1949
- "service_key": string;
1950
- "title": string;
1951
- "status": string;
1952
- "created_at": string;
1953
- "updated_at"?: string | null;
1954
- "deleted_at"?: string | null;
1955
- }
1956
1094
  export interface TrustedServiceShowGetResponseData extends JsonObject {
1957
- "trusted_service": TrustedServiceShowGetResponseDataTrustedService;
1095
+ "trusted_service": BackendJson<"Response">;
1958
1096
  }
1959
1097
  export interface TrustedServiceShowGetResponse extends ApiEnvelope<TrustedServiceShowGetResponseData> {
1960
1098
  }
@@ -1965,17 +1103,8 @@ export interface TrustedServiceUpdatePatchInput extends JsonObject {
1965
1103
  "status"?: string | null;
1966
1104
  }
1967
1105
  /** Backend response type: models::SingleData. */
1968
- export interface TrustedServiceUpdatePatchResponseDataTrustedService extends JsonObject {
1969
- "id": string;
1970
- "service_key": string;
1971
- "title": string;
1972
- "status": string;
1973
- "created_at": string;
1974
- "updated_at"?: string | null;
1975
- "deleted_at"?: string | null;
1976
- }
1977
1106
  export interface TrustedServiceUpdatePatchResponseData extends JsonObject {
1978
- "trusted_service": TrustedServiceUpdatePatchResponseDataTrustedService;
1107
+ "trusted_service": BackendJson<"Response">;
1979
1108
  }
1980
1109
  export interface TrustedServiceUpdatePatchResponse extends ApiEnvelope<TrustedServiceUpdatePatchResponseData> {
1981
1110
  }
@@ -1986,17 +1115,8 @@ export interface TrustedServiceUpdatePutInput extends JsonObject {
1986
1115
  "status"?: string | null;
1987
1116
  }
1988
1117
  /** Backend response type: models::SingleData. */
1989
- export interface TrustedServiceUpdatePutResponseDataTrustedService extends JsonObject {
1990
- "id": string;
1991
- "service_key": string;
1992
- "title": string;
1993
- "status": string;
1994
- "created_at": string;
1995
- "updated_at"?: string | null;
1996
- "deleted_at"?: string | null;
1997
- }
1998
1118
  export interface TrustedServiceUpdatePutResponseData extends JsonObject {
1999
- "trusted_service": TrustedServiceUpdatePutResponseDataTrustedService;
1119
+ "trusted_service": BackendJson<"Response">;
2000
1120
  }
2001
1121
  export interface TrustedServiceUpdatePutResponse extends ApiEnvelope<TrustedServiceUpdatePutResponseData> {
2002
1122
  }
@@ -2012,21 +1132,8 @@ export interface TrustedServiceEventIndexGetQuery extends QueryParams {
2012
1132
  "filter[trashed]"?: string | null;
2013
1133
  }
2014
1134
  /** Backend response type: models::EventListData. */
2015
- export interface TrustedServiceEventIndexGetResponseDataTrustedServiceEvents extends JsonObject {
2016
- "id": string;
2017
- "service_id": string;
2018
- "event_name": string;
2019
- "title": string;
2020
- "visible_in_list": boolean;
2021
- "visible_in_get": boolean;
2022
- "visible_in_full": boolean;
2023
- "payload_schema"?: JsonValue | null;
2024
- "created_at": string;
2025
- "updated_at"?: string | null;
2026
- "deleted_at"?: string | null;
2027
- }
2028
1135
  export interface TrustedServiceEventIndexGetResponseData extends JsonObject {
2029
- "trusted_service_events": TrustedServiceEventIndexGetResponseDataTrustedServiceEvents[];
1136
+ "trusted_service_events": BackendJson<"EventResponse">[];
2030
1137
  }
2031
1138
  export interface TrustedServiceEventIndexGetMetaData extends JsonObject {
2032
1139
  "current_page": number;
@@ -2047,21 +1154,8 @@ export interface TrustedServiceEventStorePostInput extends JsonObject {
2047
1154
  "payload_schema"?: JsonValue | null;
2048
1155
  }
2049
1156
  /** Backend response type: models::EventSingleData. */
2050
- export interface TrustedServiceEventStorePostResponseDataTrustedServiceEvent extends JsonObject {
2051
- "id": string;
2052
- "service_id": string;
2053
- "event_name": string;
2054
- "title": string;
2055
- "visible_in_list": boolean;
2056
- "visible_in_get": boolean;
2057
- "visible_in_full": boolean;
2058
- "payload_schema"?: JsonValue | null;
2059
- "created_at": string;
2060
- "updated_at"?: string | null;
2061
- "deleted_at"?: string | null;
2062
- }
2063
1157
  export interface TrustedServiceEventStorePostResponseData extends JsonObject {
2064
- "trusted_service_event": TrustedServiceEventStorePostResponseDataTrustedServiceEvent;
1158
+ "trusted_service_event": BackendJson<"EventResponse">;
2065
1159
  }
2066
1160
  export interface TrustedServiceEventStorePostResponse extends ApiEnvelope<TrustedServiceEventStorePostResponseData> {
2067
1161
  }
@@ -2069,21 +1163,8 @@ export interface TrustedServiceEventStorePostResponse extends ApiEnvelope<Truste
2069
1163
  export interface TrustedServiceEventDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
2070
1164
  }
2071
1165
  /** Backend response type: models::EventSingleData. */
2072
- export interface TrustedServiceEventShowGetResponseDataTrustedServiceEvent extends JsonObject {
2073
- "id": string;
2074
- "service_id": string;
2075
- "event_name": string;
2076
- "title": string;
2077
- "visible_in_list": boolean;
2078
- "visible_in_get": boolean;
2079
- "visible_in_full": boolean;
2080
- "payload_schema"?: JsonValue | null;
2081
- "created_at": string;
2082
- "updated_at"?: string | null;
2083
- "deleted_at"?: string | null;
2084
- }
2085
1166
  export interface TrustedServiceEventShowGetResponseData extends JsonObject {
2086
- "trusted_service_event": TrustedServiceEventShowGetResponseDataTrustedServiceEvent;
1167
+ "trusted_service_event": BackendJson<"EventResponse">;
2087
1168
  }
2088
1169
  export interface TrustedServiceEventShowGetResponse extends ApiEnvelope<TrustedServiceEventShowGetResponseData> {
2089
1170
  }
@@ -2097,21 +1178,8 @@ export interface TrustedServiceEventUpdatePatchInput extends JsonObject {
2097
1178
  "payload_schema"?: JsonValue | null;
2098
1179
  }
2099
1180
  /** Backend response type: models::EventSingleData. */
2100
- export interface TrustedServiceEventUpdatePatchResponseDataTrustedServiceEvent extends JsonObject {
2101
- "id": string;
2102
- "service_id": string;
2103
- "event_name": string;
2104
- "title": string;
2105
- "visible_in_list": boolean;
2106
- "visible_in_get": boolean;
2107
- "visible_in_full": boolean;
2108
- "payload_schema"?: JsonValue | null;
2109
- "created_at": string;
2110
- "updated_at"?: string | null;
2111
- "deleted_at"?: string | null;
2112
- }
2113
1181
  export interface TrustedServiceEventUpdatePatchResponseData extends JsonObject {
2114
- "trusted_service_event": TrustedServiceEventUpdatePatchResponseDataTrustedServiceEvent;
1182
+ "trusted_service_event": BackendJson<"EventResponse">;
2115
1183
  }
2116
1184
  export interface TrustedServiceEventUpdatePatchResponse extends ApiEnvelope<TrustedServiceEventUpdatePatchResponseData> {
2117
1185
  }
@@ -2125,21 +1193,8 @@ export interface TrustedServiceEventUpdatePutInput extends JsonObject {
2125
1193
  "payload_schema"?: JsonValue | null;
2126
1194
  }
2127
1195
  /** Backend response type: models::EventSingleData. */
2128
- export interface TrustedServiceEventUpdatePutResponseDataTrustedServiceEvent extends JsonObject {
2129
- "id": string;
2130
- "service_id": string;
2131
- "event_name": string;
2132
- "title": string;
2133
- "visible_in_list": boolean;
2134
- "visible_in_get": boolean;
2135
- "visible_in_full": boolean;
2136
- "payload_schema"?: JsonValue | null;
2137
- "created_at": string;
2138
- "updated_at"?: string | null;
2139
- "deleted_at"?: string | null;
2140
- }
2141
1196
  export interface TrustedServiceEventUpdatePutResponseData extends JsonObject {
2142
- "trusted_service_event": TrustedServiceEventUpdatePutResponseDataTrustedServiceEvent;
1197
+ "trusted_service_event": BackendJson<"EventResponse">;
2143
1198
  }
2144
1199
  export interface TrustedServiceEventUpdatePutResponse extends ApiEnvelope<TrustedServiceEventUpdatePutResponseData> {
2145
1200
  }