stackone_client 0.5.0 → 0.5.2
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.
- checksums.yaml +4 -4
- data/lib/stack_one/accounts.rb +10 -5
- data/lib/stack_one/ats.rb +321 -62
- data/lib/stack_one/connect_sessions.rb +4 -2
- data/lib/stack_one/connectors.rb +4 -2
- data/lib/stack_one/crm.rb +20 -10
- data/lib/stack_one/hris.rb +93 -46
- data/lib/stack_one/iam.rb +16 -8
- data/lib/stack_one/lms.rb +52 -26
- data/lib/stack_one/marketing.rb +52 -26
- data/lib/stack_one/models/operations/ats_create_application_note_request.rb +30 -0
- data/lib/stack_one/models/operations/ats_create_application_note_response.rb +36 -0
- data/lib/stack_one/models/operations/ats_get_application_note_request.rb +39 -0
- data/lib/stack_one/models/operations/ats_get_application_note_response.rb +36 -0
- data/lib/stack_one/models/operations/ats_list_application_notes_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/ats_list_application_notes_request.rb +60 -0
- data/lib/stack_one/models/operations/ats_list_application_notes_response.rb +36 -0
- data/lib/stack_one/models/operations/ats_list_applications_queryparam_filter.rb +5 -2
- data/lib/stack_one/models/operations/ats_list_candidates_queryparam_filter.rb +5 -2
- data/lib/stack_one/models/operations/ats_list_interviews_queryparam_filter.rb +6 -3
- data/lib/stack_one/models/operations/ats_list_interviews_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_job_postings_queryparam_filter.rb +6 -3
- data/lib/stack_one/models/operations/ats_list_job_postings_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_jobs_queryparam_filter.rb +10 -2
- data/lib/stack_one/models/operations/ats_update_application_note_request.rb +33 -0
- data/lib/stack_one/models/operations/ats_update_application_note_response.rb +36 -0
- data/lib/stack_one/models/operations/job_status.rb +18 -0
- data/lib/stack_one/models/operations/status.rb +2 -0
- data/lib/stack_one/models/operations.rb +10 -0
- data/lib/stack_one/models/shared/atsupdatenotesrequestdto.rb +33 -0
- data/lib/stack_one/models/shared/atsupdatenotesrequestdto_value.rb +18 -0
- data/lib/stack_one/models/shared/atsupdatenotesrequestdto_visibility.rb +27 -0
- data/lib/stack_one/models/shared/category.rb +5 -2
- data/lib/stack_one/models/shared/category_schemas_value.rb +19 -0
- data/lib/stack_one/models/shared/category_value.rb +411 -4
- data/lib/stack_one/models/shared/course.rb +5 -2
- data/lib/stack_one/models/shared/createcategoriesapimodel.rb +5 -2
- data/lib/stack_one/models/shared/createcategoriesapimodel_language.rb +27 -0
- data/lib/stack_one/models/shared/createcategoriesapimodel_level.rb +2 -2
- data/lib/stack_one/models/shared/createcategoriesapimodel_schemas_value.rb +19 -0
- data/lib/stack_one/models/shared/createcategoriesapimodel_value.rb +411 -4
- data/lib/stack_one/models/shared/language.rb +27 -0
- data/lib/stack_one/models/shared/level.rb +2 -2
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb +5 -2
- data/lib/stack_one/models/shared/lmsupsertcourserequestdto.rb +5 -2
- data/lib/stack_one/models/shared/unifiedwarningapimodel.rb +24 -0
- data/lib/stack_one/models/shared/writeresultapimodel.rb +5 -2
- data/lib/stack_one/models/shared.rb +16 -8
- data/lib/stack_one/proxy.rb +3 -1
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- data/lib/stack_one/webhooks.rb +2 -1
- metadata +20 -2
data/lib/stack_one/lms.rb
CHANGED
@@ -59,9 +59,10 @@ module StackOne
|
|
59
59
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::BatchResultApiModel)
|
60
60
|
res.batch_result_api_model = out
|
61
61
|
end
|
62
|
-
elsif [400, 403, 412, 429
|
62
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
63
63
|
elsif r.status == 408
|
64
64
|
res.headers = r.headers
|
65
|
+
elsif [500, 501].include?(r.status)
|
65
66
|
end
|
66
67
|
|
67
68
|
res
|
@@ -108,9 +109,10 @@ module StackOne
|
|
108
109
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::BatchResultApiModel)
|
109
110
|
res.batch_result_api_model = out
|
110
111
|
end
|
111
|
-
elsif [400, 403, 412, 429
|
112
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
112
113
|
elsif r.status == 408
|
113
114
|
res.headers = r.headers
|
115
|
+
elsif [500, 501].include?(r.status)
|
114
116
|
end
|
115
117
|
|
116
118
|
res
|
@@ -157,9 +159,10 @@ module StackOne
|
|
157
159
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
158
160
|
res.create_result = out
|
159
161
|
end
|
160
|
-
elsif [400, 403, 412, 429
|
162
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
161
163
|
elsif r.status == 408
|
162
164
|
res.headers = r.headers
|
165
|
+
elsif [500, 501].include?(r.status)
|
163
166
|
end
|
164
167
|
|
165
168
|
res
|
@@ -212,9 +215,10 @@ module StackOne
|
|
212
215
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
213
216
|
res.create_result = out
|
214
217
|
end
|
215
|
-
elsif [400, 403, 412, 429
|
218
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
216
219
|
elsif r.status == 408
|
217
220
|
res.headers = r.headers
|
221
|
+
elsif [500, 501].include?(r.status)
|
218
222
|
end
|
219
223
|
|
220
224
|
res
|
@@ -267,9 +271,10 @@ module StackOne
|
|
267
271
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
268
272
|
res.create_result = out
|
269
273
|
end
|
270
|
-
elsif [400, 403, 412, 429
|
274
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
271
275
|
elsif r.status == 408
|
272
276
|
res.headers = r.headers
|
277
|
+
elsif [500, 501].include?(r.status)
|
273
278
|
end
|
274
279
|
|
275
280
|
res
|
@@ -308,9 +313,10 @@ module StackOne
|
|
308
313
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::AssignmentResult)
|
309
314
|
res.assignment_result = out
|
310
315
|
end
|
311
|
-
elsif [400, 403, 412, 429
|
316
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
312
317
|
elsif r.status == 408
|
313
318
|
res.headers = r.headers
|
319
|
+
elsif [500, 501].include?(r.status)
|
314
320
|
end
|
315
321
|
|
316
322
|
res
|
@@ -349,9 +355,10 @@ module StackOne
|
|
349
355
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CategoryResult)
|
350
356
|
res.category_result = out
|
351
357
|
end
|
352
|
-
elsif [400, 403, 412, 429
|
358
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
353
359
|
elsif r.status == 408
|
354
360
|
res.headers = r.headers
|
361
|
+
elsif [500, 501].include?(r.status)
|
355
362
|
end
|
356
363
|
|
357
364
|
res
|
@@ -390,9 +397,10 @@ module StackOne
|
|
390
397
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CompletionResult)
|
391
398
|
res.completion_result = out
|
392
399
|
end
|
393
|
-
elsif [400, 403, 412, 429
|
400
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
394
401
|
elsif r.status == 408
|
395
402
|
res.headers = r.headers
|
403
|
+
elsif [500, 501].include?(r.status)
|
396
404
|
end
|
397
405
|
|
398
406
|
res
|
@@ -431,9 +439,10 @@ module StackOne
|
|
431
439
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ContentResult)
|
432
440
|
res.content_result = out
|
433
441
|
end
|
434
|
-
elsif [400, 403, 412, 429
|
442
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
435
443
|
elsif r.status == 408
|
436
444
|
res.headers = r.headers
|
445
|
+
elsif [500, 501].include?(r.status)
|
437
446
|
end
|
438
447
|
|
439
448
|
res
|
@@ -472,9 +481,10 @@ module StackOne
|
|
472
481
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CourseResult)
|
473
482
|
res.course_result = out
|
474
483
|
end
|
475
|
-
elsif [400, 403, 412, 429
|
484
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
476
485
|
elsif r.status == 408
|
477
486
|
res.headers = r.headers
|
487
|
+
elsif [500, 501].include?(r.status)
|
478
488
|
end
|
479
489
|
|
480
490
|
res
|
@@ -513,9 +523,10 @@ module StackOne
|
|
513
523
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::SkillResult)
|
514
524
|
res.skill_result = out
|
515
525
|
end
|
516
|
-
elsif [400, 403, 412, 429
|
526
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
517
527
|
elsif r.status == 408
|
518
528
|
res.headers = r.headers
|
529
|
+
elsif [500, 501].include?(r.status)
|
519
530
|
end
|
520
531
|
|
521
532
|
res
|
@@ -554,9 +565,10 @@ module StackOne
|
|
554
565
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::UserResult)
|
555
566
|
res.user_result = out
|
556
567
|
end
|
557
|
-
elsif [400, 403, 412, 429
|
568
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
558
569
|
elsif r.status == 408
|
559
570
|
res.headers = r.headers
|
571
|
+
elsif [500, 501].include?(r.status)
|
560
572
|
end
|
561
573
|
|
562
574
|
res
|
@@ -595,9 +607,10 @@ module StackOne
|
|
595
607
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::AssignmentResult)
|
596
608
|
res.assignment_result = out
|
597
609
|
end
|
598
|
-
elsif [400, 403, 412, 429
|
610
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
599
611
|
elsif r.status == 408
|
600
612
|
res.headers = r.headers
|
613
|
+
elsif [500, 501].include?(r.status)
|
601
614
|
end
|
602
615
|
|
603
616
|
res
|
@@ -636,9 +649,10 @@ module StackOne
|
|
636
649
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CompletionResult)
|
637
650
|
res.completion_result = out
|
638
651
|
end
|
639
|
-
elsif [400, 403, 412, 429
|
652
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
640
653
|
elsif r.status == 408
|
641
654
|
res.headers = r.headers
|
655
|
+
elsif [500, 501].include?(r.status)
|
642
656
|
end
|
643
657
|
|
644
658
|
res
|
@@ -672,9 +686,10 @@ module StackOne
|
|
672
686
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::AssignmentsPaginated)
|
673
687
|
res.assignments_paginated = out
|
674
688
|
end
|
675
|
-
elsif [400, 403, 412, 429
|
689
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
676
690
|
elsif r.status == 408
|
677
691
|
res.headers = r.headers
|
692
|
+
elsif [500, 501].include?(r.status)
|
678
693
|
end
|
679
694
|
|
680
695
|
res
|
@@ -708,9 +723,10 @@ module StackOne
|
|
708
723
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CategoriesPaginated)
|
709
724
|
res.categories_paginated = out
|
710
725
|
end
|
711
|
-
elsif [400, 403, 412, 429
|
726
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
712
727
|
elsif r.status == 408
|
713
728
|
res.headers = r.headers
|
729
|
+
elsif [500, 501].include?(r.status)
|
714
730
|
end
|
715
731
|
|
716
732
|
res
|
@@ -744,9 +760,10 @@ module StackOne
|
|
744
760
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CompletionsPaginated)
|
745
761
|
res.completions_paginated = out
|
746
762
|
end
|
747
|
-
elsif [400, 403, 412, 429
|
763
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
748
764
|
elsif r.status == 408
|
749
765
|
res.headers = r.headers
|
766
|
+
elsif [500, 501].include?(r.status)
|
750
767
|
end
|
751
768
|
|
752
769
|
res
|
@@ -780,9 +797,10 @@ module StackOne
|
|
780
797
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ContentPaginated)
|
781
798
|
res.content_paginated = out
|
782
799
|
end
|
783
|
-
elsif [400, 403, 412, 429
|
800
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
784
801
|
elsif r.status == 408
|
785
802
|
res.headers = r.headers
|
803
|
+
elsif [500, 501].include?(r.status)
|
786
804
|
end
|
787
805
|
|
788
806
|
res
|
@@ -816,9 +834,10 @@ module StackOne
|
|
816
834
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CoursePaginated)
|
817
835
|
res.course_paginated = out
|
818
836
|
end
|
819
|
-
elsif [400, 403, 412, 429
|
837
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
820
838
|
elsif r.status == 408
|
821
839
|
res.headers = r.headers
|
840
|
+
elsif [500, 501].include?(r.status)
|
822
841
|
end
|
823
842
|
|
824
843
|
res
|
@@ -852,9 +871,10 @@ module StackOne
|
|
852
871
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::SkillsPaginated)
|
853
872
|
res.skills_paginated = out
|
854
873
|
end
|
855
|
-
elsif [400, 403, 412, 429
|
874
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
856
875
|
elsif r.status == 408
|
857
876
|
res.headers = r.headers
|
877
|
+
elsif [500, 501].include?(r.status)
|
858
878
|
end
|
859
879
|
|
860
880
|
res
|
@@ -893,9 +913,10 @@ module StackOne
|
|
893
913
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::AssignmentsPaginated)
|
894
914
|
res.assignments_paginated = out
|
895
915
|
end
|
896
|
-
elsif [400, 403, 412, 429
|
916
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
897
917
|
elsif r.status == 408
|
898
918
|
res.headers = r.headers
|
919
|
+
elsif [500, 501].include?(r.status)
|
899
920
|
end
|
900
921
|
|
901
922
|
res
|
@@ -934,9 +955,10 @@ module StackOne
|
|
934
955
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CompletionsPaginated)
|
935
956
|
res.completions_paginated = out
|
936
957
|
end
|
937
|
-
elsif [400, 403, 412, 429
|
958
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
938
959
|
elsif r.status == 408
|
939
960
|
res.headers = r.headers
|
961
|
+
elsif [500, 501].include?(r.status)
|
940
962
|
end
|
941
963
|
|
942
964
|
res
|
@@ -970,9 +992,10 @@ module StackOne
|
|
970
992
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::UsersPaginated)
|
971
993
|
res.users_paginated = out
|
972
994
|
end
|
973
|
-
elsif [400, 403, 412, 429
|
995
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
974
996
|
elsif r.status == 408
|
975
997
|
res.headers = r.headers
|
998
|
+
elsif [500, 501].include?(r.status)
|
976
999
|
end
|
977
1000
|
|
978
1001
|
res
|
@@ -1025,9 +1048,10 @@ module StackOne
|
|
1025
1048
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::UpdateResult)
|
1026
1049
|
res.update_result = out
|
1027
1050
|
end
|
1028
|
-
elsif [400, 403, 412, 429
|
1051
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1029
1052
|
elsif r.status == 408
|
1030
1053
|
res.headers = r.headers
|
1054
|
+
elsif [500, 501].include?(r.status)
|
1031
1055
|
end
|
1032
1056
|
|
1033
1057
|
res
|
@@ -1074,9 +1098,10 @@ module StackOne
|
|
1074
1098
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::UpsertResult)
|
1075
1099
|
res.upsert_result = out
|
1076
1100
|
end
|
1077
|
-
elsif [400, 403, 412, 429
|
1101
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1078
1102
|
elsif r.status == 408
|
1079
1103
|
res.headers = r.headers
|
1104
|
+
elsif [500, 501].include?(r.status)
|
1080
1105
|
end
|
1081
1106
|
|
1082
1107
|
res
|
@@ -1123,9 +1148,10 @@ module StackOne
|
|
1123
1148
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::UpsertResult)
|
1124
1149
|
res.upsert_result = out
|
1125
1150
|
end
|
1126
|
-
elsif [400, 403, 412, 429
|
1151
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1127
1152
|
elsif r.status == 408
|
1128
1153
|
res.headers = r.headers
|
1154
|
+
elsif [500, 501].include?(r.status)
|
1129
1155
|
end
|
1130
1156
|
|
1131
1157
|
res
|
data/lib/stack_one/marketing.rb
CHANGED
@@ -59,9 +59,10 @@ module StackOne
|
|
59
59
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
60
60
|
res.create_result = out
|
61
61
|
end
|
62
|
-
elsif [400, 403, 412, 429
|
62
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
63
63
|
elsif r.status == 408
|
64
64
|
res.headers = r.headers
|
65
|
+
elsif [500, 501].include?(r.status)
|
65
66
|
end
|
66
67
|
|
67
68
|
res
|
@@ -108,9 +109,10 @@ module StackOne
|
|
108
109
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
109
110
|
res.create_result = out
|
110
111
|
end
|
111
|
-
elsif [400, 403, 412, 429
|
112
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
112
113
|
elsif r.status == 408
|
113
114
|
res.headers = r.headers
|
115
|
+
elsif [500, 501].include?(r.status)
|
114
116
|
end
|
115
117
|
|
116
118
|
res
|
@@ -157,9 +159,10 @@ module StackOne
|
|
157
159
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
158
160
|
res.create_result = out
|
159
161
|
end
|
160
|
-
elsif [400, 403, 412, 429
|
162
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
161
163
|
elsif r.status == 408
|
162
164
|
res.headers = r.headers
|
165
|
+
elsif [500, 501].include?(r.status)
|
163
166
|
end
|
164
167
|
|
165
168
|
res
|
@@ -208,9 +211,10 @@ module StackOne
|
|
208
211
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
209
212
|
res.create_result = out
|
210
213
|
end
|
211
|
-
elsif [400, 403, 412, 429
|
214
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
212
215
|
elsif r.status == 408
|
213
216
|
res.headers = r.headers
|
217
|
+
elsif [500, 501].include?(r.status)
|
214
218
|
end
|
215
219
|
|
216
220
|
res
|
@@ -257,9 +261,10 @@ module StackOne
|
|
257
261
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
258
262
|
res.create_result = out
|
259
263
|
end
|
260
|
-
elsif [400, 403, 412, 429
|
264
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
261
265
|
elsif r.status == 408
|
262
266
|
res.headers = r.headers
|
267
|
+
elsif [500, 501].include?(r.status)
|
263
268
|
end
|
264
269
|
|
265
270
|
res
|
@@ -306,9 +311,10 @@ module StackOne
|
|
306
311
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
307
312
|
res.create_result = out
|
308
313
|
end
|
309
|
-
elsif [400, 403, 412, 429
|
314
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
310
315
|
elsif r.status == 408
|
311
316
|
res.headers = r.headers
|
317
|
+
elsif [500, 501].include?(r.status)
|
312
318
|
end
|
313
319
|
|
314
320
|
res
|
@@ -347,9 +353,10 @@ module StackOne
|
|
347
353
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CampaignResult)
|
348
354
|
res.campaign_result = out
|
349
355
|
end
|
350
|
-
elsif [400, 403, 412, 429
|
356
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
351
357
|
elsif r.status == 408
|
352
358
|
res.headers = r.headers
|
359
|
+
elsif [500, 501].include?(r.status)
|
353
360
|
end
|
354
361
|
|
355
362
|
res
|
@@ -388,9 +395,10 @@ module StackOne
|
|
388
395
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ContentBlockResult)
|
389
396
|
res.content_block_result = out
|
390
397
|
end
|
391
|
-
elsif [400, 403, 412, 429
|
398
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
392
399
|
elsif r.status == 408
|
393
400
|
res.headers = r.headers
|
401
|
+
elsif [500, 501].include?(r.status)
|
394
402
|
end
|
395
403
|
|
396
404
|
res
|
@@ -429,9 +437,10 @@ module StackOne
|
|
429
437
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmailTemplateResult)
|
430
438
|
res.email_template_result = out
|
431
439
|
end
|
432
|
-
elsif [400, 403, 412, 429
|
440
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
433
441
|
elsif r.status == 408
|
434
442
|
res.headers = r.headers
|
443
|
+
elsif [500, 501].include?(r.status)
|
435
444
|
end
|
436
445
|
|
437
446
|
res
|
@@ -470,9 +479,10 @@ module StackOne
|
|
470
479
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::InAppTemplateResult)
|
471
480
|
res.in_app_template_result = out
|
472
481
|
end
|
473
|
-
elsif [400, 403, 412, 429
|
482
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
474
483
|
elsif r.status == 408
|
475
484
|
res.headers = r.headers
|
485
|
+
elsif [500, 501].include?(r.status)
|
476
486
|
end
|
477
487
|
|
478
488
|
res
|
@@ -513,9 +523,10 @@ module StackOne
|
|
513
523
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::TemplateResult)
|
514
524
|
res.template_result = out
|
515
525
|
end
|
516
|
-
elsif [400, 403, 412, 429
|
526
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
517
527
|
elsif r.status == 408
|
518
528
|
res.headers = r.headers
|
529
|
+
elsif [500, 501].include?(r.status)
|
519
530
|
end
|
520
531
|
|
521
532
|
res
|
@@ -554,9 +565,10 @@ module StackOne
|
|
554
565
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::PushTemplateResult)
|
555
566
|
res.push_template_result = out
|
556
567
|
end
|
557
|
-
elsif [400, 403, 412, 429
|
568
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
558
569
|
elsif r.status == 408
|
559
570
|
res.headers = r.headers
|
571
|
+
elsif [500, 501].include?(r.status)
|
560
572
|
end
|
561
573
|
|
562
574
|
res
|
@@ -595,9 +607,10 @@ module StackOne
|
|
595
607
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::SmsTemplateResult)
|
596
608
|
res.sms_template_result = out
|
597
609
|
end
|
598
|
-
elsif [400, 403, 412, 429
|
610
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
599
611
|
elsif r.status == 408
|
600
612
|
res.headers = r.headers
|
613
|
+
elsif [500, 501].include?(r.status)
|
601
614
|
end
|
602
615
|
|
603
616
|
res
|
@@ -631,9 +644,10 @@ module StackOne
|
|
631
644
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CampaignsPaginated)
|
632
645
|
res.campaigns_paginated = out
|
633
646
|
end
|
634
|
-
elsif [400, 403, 412, 429
|
647
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
635
648
|
elsif r.status == 408
|
636
649
|
res.headers = r.headers
|
650
|
+
elsif [500, 501].include?(r.status)
|
637
651
|
end
|
638
652
|
|
639
653
|
res
|
@@ -667,9 +681,10 @@ module StackOne
|
|
667
681
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ContentBlocksPaginated)
|
668
682
|
res.content_blocks_paginated = out
|
669
683
|
end
|
670
|
-
elsif [400, 403, 412, 429
|
684
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
671
685
|
elsif r.status == 408
|
672
686
|
res.headers = r.headers
|
687
|
+
elsif [500, 501].include?(r.status)
|
673
688
|
end
|
674
689
|
|
675
690
|
res
|
@@ -703,9 +718,10 @@ module StackOne
|
|
703
718
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmailTemplatesPaginated)
|
704
719
|
res.email_templates_paginated = out
|
705
720
|
end
|
706
|
-
elsif [400, 403, 412, 429
|
721
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
707
722
|
elsif r.status == 408
|
708
723
|
res.headers = r.headers
|
724
|
+
elsif [500, 501].include?(r.status)
|
709
725
|
end
|
710
726
|
|
711
727
|
res
|
@@ -739,9 +755,10 @@ module StackOne
|
|
739
755
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::InAppTemplatesPaginated)
|
740
756
|
res.in_app_templates_paginated = out
|
741
757
|
end
|
742
|
-
elsif [400, 403, 412, 429
|
758
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
743
759
|
elsif r.status == 408
|
744
760
|
res.headers = r.headers
|
761
|
+
elsif [500, 501].include?(r.status)
|
745
762
|
end
|
746
763
|
|
747
764
|
res
|
@@ -777,9 +794,10 @@ module StackOne
|
|
777
794
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::TemplatesPaginated)
|
778
795
|
res.templates_paginated = out
|
779
796
|
end
|
780
|
-
elsif [400, 403, 412, 429
|
797
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
781
798
|
elsif r.status == 408
|
782
799
|
res.headers = r.headers
|
800
|
+
elsif [500, 501].include?(r.status)
|
783
801
|
end
|
784
802
|
|
785
803
|
res
|
@@ -813,9 +831,10 @@ module StackOne
|
|
813
831
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::PushTemplatesPaginated)
|
814
832
|
res.push_templates_paginated = out
|
815
833
|
end
|
816
|
-
elsif [400, 403, 412, 429
|
834
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
817
835
|
elsif r.status == 408
|
818
836
|
res.headers = r.headers
|
837
|
+
elsif [500, 501].include?(r.status)
|
819
838
|
end
|
820
839
|
|
821
840
|
res
|
@@ -849,9 +868,10 @@ module StackOne
|
|
849
868
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::SmsTemplatesPaginated)
|
850
869
|
res.sms_templates_paginated = out
|
851
870
|
end
|
852
|
-
elsif [400, 403, 412, 429
|
871
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
853
872
|
elsif r.status == 408
|
854
873
|
res.headers = r.headers
|
874
|
+
elsif [500, 501].include?(r.status)
|
855
875
|
end
|
856
876
|
|
857
877
|
res
|
@@ -904,9 +924,10 @@ module StackOne
|
|
904
924
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
905
925
|
res.create_result = out
|
906
926
|
end
|
907
|
-
elsif [400, 403, 412, 429
|
927
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
908
928
|
elsif r.status == 408
|
909
929
|
res.headers = r.headers
|
930
|
+
elsif [500, 501].include?(r.status)
|
910
931
|
end
|
911
932
|
|
912
933
|
res
|
@@ -959,9 +980,10 @@ module StackOne
|
|
959
980
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
960
981
|
res.create_result = out
|
961
982
|
end
|
962
|
-
elsif [400, 403, 412, 429
|
983
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
963
984
|
elsif r.status == 408
|
964
985
|
res.headers = r.headers
|
986
|
+
elsif [500, 501].include?(r.status)
|
965
987
|
end
|
966
988
|
|
967
989
|
res
|
@@ -1014,9 +1036,10 @@ module StackOne
|
|
1014
1036
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
1015
1037
|
res.create_result = out
|
1016
1038
|
end
|
1017
|
-
elsif [400, 403, 412, 429
|
1039
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1018
1040
|
elsif r.status == 408
|
1019
1041
|
res.headers = r.headers
|
1042
|
+
elsif [500, 501].include?(r.status)
|
1020
1043
|
end
|
1021
1044
|
|
1022
1045
|
res
|
@@ -1071,9 +1094,10 @@ module StackOne
|
|
1071
1094
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
1072
1095
|
res.create_result = out
|
1073
1096
|
end
|
1074
|
-
elsif [400, 403, 412, 429
|
1097
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1075
1098
|
elsif r.status == 408
|
1076
1099
|
res.headers = r.headers
|
1100
|
+
elsif [500, 501].include?(r.status)
|
1077
1101
|
end
|
1078
1102
|
|
1079
1103
|
res
|
@@ -1126,9 +1150,10 @@ module StackOne
|
|
1126
1150
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
1127
1151
|
res.create_result = out
|
1128
1152
|
end
|
1129
|
-
elsif [400, 403, 412, 429
|
1153
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1130
1154
|
elsif r.status == 408
|
1131
1155
|
res.headers = r.headers
|
1156
|
+
elsif [500, 501].include?(r.status)
|
1132
1157
|
end
|
1133
1158
|
|
1134
1159
|
res
|
@@ -1181,9 +1206,10 @@ module StackOne
|
|
1181
1206
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
1182
1207
|
res.create_result = out
|
1183
1208
|
end
|
1184
|
-
elsif [400, 403, 412, 429
|
1209
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1185
1210
|
elsif r.status == 408
|
1186
1211
|
res.headers = r.headers
|
1212
|
+
elsif [500, 501].include?(r.status)
|
1187
1213
|
end
|
1188
1214
|
|
1189
1215
|
res
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class AtsCreateApplicationNoteRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :ats_create_notes_request_dto, ::StackOne::Shared::AtsCreateNotesRequestDto, { 'request': { 'media_type': 'application/json' } }
|
16
|
+
|
17
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
18
|
+
# The account identifier
|
19
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(ats_create_notes_request_dto: ::StackOne::Shared::AtsCreateNotesRequestDto, id: ::String, x_account_id: ::String).void }
|
23
|
+
def initialize(ats_create_notes_request_dto: nil, id: nil, x_account_id: nil)
|
24
|
+
@ats_create_notes_request_dto = ats_create_notes_request_dto
|
25
|
+
@id = id
|
26
|
+
@x_account_id = x_account_id
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class AtsCreateApplicationNoteResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
|
17
|
+
field :headers, T::Hash[Symbol, T::Array[::String]]
|
18
|
+
# Raw HTTP response; suitable for custom response parsing
|
19
|
+
field :raw_response, ::Faraday::Response
|
20
|
+
# HTTP response status code for this operation
|
21
|
+
field :status_code, ::Integer
|
22
|
+
# Record created successfully.
|
23
|
+
field :create_result, T.nilable(::StackOne::Shared::CreateResult)
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], raw_response: ::Faraday::Response, status_code: ::Integer, create_result: T.nilable(::StackOne::Shared::CreateResult)).void }
|
27
|
+
def initialize(content_type: nil, headers: nil, raw_response: nil, status_code: nil, create_result: nil)
|
28
|
+
@content_type = content_type
|
29
|
+
@headers = headers
|
30
|
+
@raw_response = raw_response
|
31
|
+
@status_code = status_code
|
32
|
+
@create_result = create_result
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|