stackone_client 0.2.32 → 0.2.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stack_one/hris.rb +71 -0
- data/lib/stack_one/marketing.rb +169 -0
- data/lib/stack_one/models/operations/ats_get_candidate_request.rb +5 -2
- data/lib/stack_one/models/operations/ats_list_candidates_request.rb +5 -2
- data/lib/stack_one/models/operations/hris_get_department_group_request.rb +36 -0
- data/lib/stack_one/models/operations/hris_get_department_group_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_department_groups_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/hris_list_department_groups_request.rb +52 -0
- data/lib/stack_one/models/operations/hris_list_department_groups_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_create_content_block_request.rb +27 -0
- data/lib/stack_one/models/operations/marketing_create_content_block_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_get_content_block_request.rb +36 -0
- data/lib/stack_one/models/operations/marketing_get_content_block_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_list_content_blocks_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/marketing_list_content_blocks_request.rb +52 -0
- data/lib/stack_one/models/operations/marketing_list_content_blocks_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_update_content_block_request.rb +30 -0
- data/lib/stack_one/models/operations/marketing_update_content_block_response.rb +33 -0
- data/lib/stack_one/models/operations.rb +14 -0
- data/lib/stack_one/models/shared/candidate.rb +5 -2
- data/lib/stack_one/models/shared/candidatecustomfields.rb +48 -0
- data/lib/stack_one/models/shared/{employee_schemas_type.rb → candidatecustomfields_type.rb} +5 -5
- data/lib/stack_one/models/shared/{employee_schemas_groups_value.rb → candidatecustomfields_value.rb} +6 -6
- data/lib/stack_one/models/shared/contentblock.rb +48 -0
- data/lib/stack_one/models/shared/contentblock_schemas_value.rb +18 -0
- data/lib/stack_one/models/shared/contentblock_status.rb +27 -0
- data/lib/stack_one/models/shared/contentblock_type.rb +27 -0
- data/lib/stack_one/models/shared/contentblock_value.rb +18 -0
- data/lib/stack_one/models/shared/contentblockspaginated.rb +33 -0
- data/lib/stack_one/models/shared/employee.rb +2 -2
- data/lib/stack_one/models/shared/employee_type.rb +4 -4
- data/lib/stack_one/models/shared/{groups.rb → hrisdepartment.rb} +5 -5
- data/lib/stack_one/models/shared/hrisdepartment_type.rb +27 -0
- data/lib/stack_one/models/shared/hrisdepartment_value.rb +18 -0
- data/lib/stack_one/models/shared/hrisdepartmentspaginated.rb +33 -0
- data/lib/stack_one/models/shared/hrisdepartmentsresult.rb +27 -0
- data/lib/stack_one/models/shared/marketingcreatecontentblocksrequestdto.rb +33 -0
- data/lib/stack_one/models/shared/national_identity_number.rb +2 -2
- data/lib/stack_one/models/shared.rb +19 -7
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- metadata +31 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d05233a81606a6d77aca78a50ebf2baa2719f22701318bbb7556eeab5e674c12
|
4
|
+
data.tar.gz: e9c8908a9ac3ef74be0dbd0a284145675f5b32784bfdf26e6be8fed25c4354e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21e3b8520fba5cda6b96f705a61904a9f6932e0719f347cfabeba5a895c0729f556413997d72de1eb5e9edc43227b69b4a796305a63a8f6ea6e4897b5df0c197
|
7
|
+
data.tar.gz: 9d0bbbef253345218ab72e06543b0001b49b298f639fc3c619eee01b3878db9036530a0c76c6a176a238c72e438c28f1c064890aa3abd249f4fdfddaaa8b495e
|
data/lib/stack_one/hris.rb
CHANGED
@@ -334,6 +334,44 @@ module StackOne
|
|
334
334
|
end
|
335
335
|
|
336
336
|
|
337
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetDepartmentGroupRequest)).returns(::StackOne::Operations::HrisGetDepartmentGroupResponse) }
|
338
|
+
def get_department_group(request)
|
339
|
+
# get_department_group - Get Department Group
|
340
|
+
url, params = @sdk_configuration.get_server_details
|
341
|
+
base_url = Utils.template_url(url, params)
|
342
|
+
url = Utils.generate_url(
|
343
|
+
::StackOne::Operations::HrisGetDepartmentGroupRequest,
|
344
|
+
base_url,
|
345
|
+
'/unified/hris/groups/departments/{id}',
|
346
|
+
request
|
347
|
+
)
|
348
|
+
headers = Utils.get_headers(request)
|
349
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetDepartmentGroupRequest, request)
|
350
|
+
headers['Accept'] = 'application/json'
|
351
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
352
|
+
|
353
|
+
r = @sdk_configuration.client.get(url) do |req|
|
354
|
+
req.headers = headers
|
355
|
+
req.params = query_params
|
356
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
357
|
+
end
|
358
|
+
|
359
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
360
|
+
|
361
|
+
res = ::StackOne::Operations::HrisGetDepartmentGroupResponse.new(
|
362
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
363
|
+
)
|
364
|
+
if r.status == 200
|
365
|
+
if Utils.match_content_type(content_type, 'application/json')
|
366
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISDepartmentsResult)
|
367
|
+
res.hris_departments_result = out
|
368
|
+
end
|
369
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
370
|
+
end
|
371
|
+
res
|
372
|
+
end
|
373
|
+
|
374
|
+
|
337
375
|
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeRequest)).returns(::StackOne::Operations::HrisGetEmployeeResponse) }
|
338
376
|
def get_employee(request)
|
339
377
|
# get_employee - Get Employee
|
@@ -780,6 +818,39 @@ module StackOne
|
|
780
818
|
end
|
781
819
|
|
782
820
|
|
821
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListDepartmentGroupsRequest)).returns(::StackOne::Operations::HrisListDepartmentGroupsResponse) }
|
822
|
+
def list_department_groups(request)
|
823
|
+
# list_department_groups - List Department Groups
|
824
|
+
url, params = @sdk_configuration.get_server_details
|
825
|
+
base_url = Utils.template_url(url, params)
|
826
|
+
url = "#{base_url}/unified/hris/groups/departments"
|
827
|
+
headers = Utils.get_headers(request)
|
828
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListDepartmentGroupsRequest, request)
|
829
|
+
headers['Accept'] = 'application/json'
|
830
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
831
|
+
|
832
|
+
r = @sdk_configuration.client.get(url) do |req|
|
833
|
+
req.headers = headers
|
834
|
+
req.params = query_params
|
835
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
836
|
+
end
|
837
|
+
|
838
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
839
|
+
|
840
|
+
res = ::StackOne::Operations::HrisListDepartmentGroupsResponse.new(
|
841
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
842
|
+
)
|
843
|
+
if r.status == 200
|
844
|
+
if Utils.match_content_type(content_type, 'application/json')
|
845
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISDepartmentsPaginated)
|
846
|
+
res.hris_departments_paginated = out
|
847
|
+
end
|
848
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
849
|
+
end
|
850
|
+
res
|
851
|
+
end
|
852
|
+
|
853
|
+
|
783
854
|
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeCategoriesRequest)).returns(::StackOne::Operations::HrisListEmployeeCategoriesResponse) }
|
784
855
|
def list_employee_categories(request)
|
785
856
|
# list_employee_categories - List Employee Document Categories
|
data/lib/stack_one/marketing.rb
CHANGED
@@ -19,6 +19,52 @@ module StackOne
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
+
sig { params(marketing_create_content_blocks_request_dto: ::StackOne::Shared::MarketingCreateContentBlocksRequestDto, x_account_id: ::String).returns(::StackOne::Operations::MarketingCreateContentBlockResponse) }
|
23
|
+
def create_content_block(marketing_create_content_blocks_request_dto, x_account_id)
|
24
|
+
# create_content_block - Create Content Block
|
25
|
+
request = ::StackOne::Operations::MarketingCreateContentBlockRequest.new(
|
26
|
+
|
27
|
+
marketing_create_content_blocks_request_dto: marketing_create_content_blocks_request_dto,
|
28
|
+
x_account_id: x_account_id
|
29
|
+
)
|
30
|
+
url, params = @sdk_configuration.get_server_details
|
31
|
+
base_url = Utils.template_url(url, params)
|
32
|
+
url = "#{base_url}/unified/marketing/content_blocks"
|
33
|
+
headers = Utils.get_headers(request)
|
34
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :marketing_create_content_blocks_request_dto, :json)
|
35
|
+
headers['content-type'] = req_content_type
|
36
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
37
|
+
headers['Accept'] = 'application/json'
|
38
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
39
|
+
|
40
|
+
r = @sdk_configuration.client.post(url) do |req|
|
41
|
+
req.headers = headers
|
42
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
43
|
+
if form
|
44
|
+
req.body = Utils.encode_form(form)
|
45
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
46
|
+
req.body = URI.encode_www_form(data)
|
47
|
+
else
|
48
|
+
req.body = data
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
53
|
+
|
54
|
+
res = ::StackOne::Operations::MarketingCreateContentBlockResponse.new(
|
55
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
56
|
+
)
|
57
|
+
if r.status == 201
|
58
|
+
if Utils.match_content_type(content_type, 'application/json')
|
59
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
60
|
+
res.create_result = out
|
61
|
+
end
|
62
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
63
|
+
end
|
64
|
+
res
|
65
|
+
end
|
66
|
+
|
67
|
+
|
22
68
|
sig { params(marketing_create_email_template_request_dto: ::StackOne::Shared::MarketingCreateEmailTemplateRequestDto, x_account_id: ::String).returns(::StackOne::Operations::MarketingCreateEmailTemplateResponse) }
|
23
69
|
def create_email_template(marketing_create_email_template_request_dto, x_account_id)
|
24
70
|
# create_email_template - Create email template
|
@@ -195,6 +241,44 @@ module StackOne
|
|
195
241
|
end
|
196
242
|
|
197
243
|
|
244
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingGetContentBlockRequest)).returns(::StackOne::Operations::MarketingGetContentBlockResponse) }
|
245
|
+
def get_content_block(request)
|
246
|
+
# get_content_block - Get Content Blocks
|
247
|
+
url, params = @sdk_configuration.get_server_details
|
248
|
+
base_url = Utils.template_url(url, params)
|
249
|
+
url = Utils.generate_url(
|
250
|
+
::StackOne::Operations::MarketingGetContentBlockRequest,
|
251
|
+
base_url,
|
252
|
+
'/unified/marketing/content_blocks/{id}',
|
253
|
+
request
|
254
|
+
)
|
255
|
+
headers = Utils.get_headers(request)
|
256
|
+
query_params = Utils.get_query_params(::StackOne::Operations::MarketingGetContentBlockRequest, request)
|
257
|
+
headers['Accept'] = 'application/json'
|
258
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
259
|
+
|
260
|
+
r = @sdk_configuration.client.get(url) do |req|
|
261
|
+
req.headers = headers
|
262
|
+
req.params = query_params
|
263
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
264
|
+
end
|
265
|
+
|
266
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
267
|
+
|
268
|
+
res = ::StackOne::Operations::MarketingGetContentBlockResponse.new(
|
269
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
270
|
+
)
|
271
|
+
if r.status == 200
|
272
|
+
if Utils.match_content_type(content_type, 'application/json')
|
273
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ContentBlocksPaginated)
|
274
|
+
res.content_blocks_paginated = out
|
275
|
+
end
|
276
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
277
|
+
end
|
278
|
+
res
|
279
|
+
end
|
280
|
+
|
281
|
+
|
198
282
|
sig { params(request: T.nilable(::StackOne::Operations::MarketingGetEmailTemplateRequest)).returns(::StackOne::Operations::MarketingGetEmailTemplateResponse) }
|
199
283
|
def get_email_template(request)
|
200
284
|
# get_email_template - Get email template
|
@@ -342,6 +426,39 @@ module StackOne
|
|
342
426
|
end
|
343
427
|
|
344
428
|
|
429
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingListContentBlocksRequest)).returns(::StackOne::Operations::MarketingListContentBlocksResponse) }
|
430
|
+
def list_content_blocks(request)
|
431
|
+
# list_content_blocks - List Content Blocks
|
432
|
+
url, params = @sdk_configuration.get_server_details
|
433
|
+
base_url = Utils.template_url(url, params)
|
434
|
+
url = "#{base_url}/unified/marketing/content_blocks"
|
435
|
+
headers = Utils.get_headers(request)
|
436
|
+
query_params = Utils.get_query_params(::StackOne::Operations::MarketingListContentBlocksRequest, request)
|
437
|
+
headers['Accept'] = 'application/json'
|
438
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
439
|
+
|
440
|
+
r = @sdk_configuration.client.get(url) do |req|
|
441
|
+
req.headers = headers
|
442
|
+
req.params = query_params
|
443
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
444
|
+
end
|
445
|
+
|
446
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
447
|
+
|
448
|
+
res = ::StackOne::Operations::MarketingListContentBlocksResponse.new(
|
449
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
450
|
+
)
|
451
|
+
if r.status == 200
|
452
|
+
if Utils.match_content_type(content_type, 'application/json')
|
453
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ContentBlocksPaginated)
|
454
|
+
res.content_blocks_paginated = out
|
455
|
+
end
|
456
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
457
|
+
end
|
458
|
+
res
|
459
|
+
end
|
460
|
+
|
461
|
+
|
345
462
|
sig { params(request: T.nilable(::StackOne::Operations::MarketingListEmailTemplatesRequest)).returns(::StackOne::Operations::MarketingListEmailTemplatesResponse) }
|
346
463
|
def list_email_templates(request)
|
347
464
|
# list_email_templates - List email templates
|
@@ -441,6 +558,58 @@ module StackOne
|
|
441
558
|
end
|
442
559
|
|
443
560
|
|
561
|
+
sig { params(marketing_create_content_blocks_request_dto: ::StackOne::Shared::MarketingCreateContentBlocksRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::MarketingUpdateContentBlockResponse) }
|
562
|
+
def update_content_block(marketing_create_content_blocks_request_dto, id, x_account_id)
|
563
|
+
# update_content_block - Update email template
|
564
|
+
request = ::StackOne::Operations::MarketingUpdateContentBlockRequest.new(
|
565
|
+
|
566
|
+
marketing_create_content_blocks_request_dto: marketing_create_content_blocks_request_dto,
|
567
|
+
id: id,
|
568
|
+
x_account_id: x_account_id
|
569
|
+
)
|
570
|
+
url, params = @sdk_configuration.get_server_details
|
571
|
+
base_url = Utils.template_url(url, params)
|
572
|
+
url = Utils.generate_url(
|
573
|
+
::StackOne::Operations::MarketingUpdateContentBlockRequest,
|
574
|
+
base_url,
|
575
|
+
'/unified/marketing/content_blocks/{id}',
|
576
|
+
request
|
577
|
+
)
|
578
|
+
headers = Utils.get_headers(request)
|
579
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :marketing_create_content_blocks_request_dto, :json)
|
580
|
+
headers['content-type'] = req_content_type
|
581
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
582
|
+
headers['Accept'] = 'application/json'
|
583
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
584
|
+
|
585
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
586
|
+
req.headers = headers
|
587
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
588
|
+
if form
|
589
|
+
req.body = Utils.encode_form(form)
|
590
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
591
|
+
req.body = URI.encode_www_form(data)
|
592
|
+
else
|
593
|
+
req.body = data
|
594
|
+
end
|
595
|
+
end
|
596
|
+
|
597
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
598
|
+
|
599
|
+
res = ::StackOne::Operations::MarketingUpdateContentBlockResponse.new(
|
600
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
601
|
+
)
|
602
|
+
if r.status == 200
|
603
|
+
if Utils.match_content_type(content_type, 'application/json')
|
604
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
605
|
+
res.create_result = out
|
606
|
+
end
|
607
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
608
|
+
end
|
609
|
+
res
|
610
|
+
end
|
611
|
+
|
612
|
+
|
444
613
|
sig { params(marketing_create_email_template_request_dto: ::StackOne::Shared::MarketingCreateEmailTemplateRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::MarketingUpdateEmailTemplateResponse) }
|
445
614
|
def update_email_template(marketing_create_email_template_request_dto, id, x_account_id)
|
446
615
|
# update_email_template - Update email template
|
@@ -17,17 +17,20 @@ module StackOne
|
|
17
17
|
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
18
18
|
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
19
19
|
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
20
|
+
# The comma separated list of fields that will be included in the response
|
21
|
+
field :include, T.nilable(::String), { 'query_param': { 'field_name': 'include', 'style': 'form', 'explode': true } }
|
20
22
|
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
21
23
|
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
22
24
|
# Indicates that the raw request result is returned
|
23
25
|
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
24
26
|
|
25
27
|
|
26
|
-
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
|
27
|
-
def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
|
28
|
+
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), include: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
|
29
|
+
def initialize(id: nil, x_account_id: nil, fields_: nil, include: nil, proxy: nil, raw: nil)
|
28
30
|
@id = id
|
29
31
|
@x_account_id = x_account_id
|
30
32
|
@fields_ = fields_
|
33
|
+
@include = include
|
31
34
|
@proxy = proxy
|
32
35
|
@raw = raw
|
33
36
|
end
|
@@ -17,6 +17,8 @@ module StackOne
|
|
17
17
|
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
18
18
|
# ATS Candidate Filter
|
19
19
|
field :filter, T.nilable(::StackOne::Operations::AtsListCandidatesQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
|
20
|
+
# The comma separated list of fields that will be included in the response
|
21
|
+
field :include, T.nilable(::String), { 'query_param': { 'field_name': 'include', 'style': 'form', 'explode': true } }
|
20
22
|
# The unified cursor
|
21
23
|
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
22
24
|
# The page number of the results to fetch
|
@@ -39,11 +41,12 @@ module StackOne
|
|
39
41
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
40
42
|
|
41
43
|
|
42
|
-
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::AtsListCandidatesQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
|
43
|
-
def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
|
44
|
+
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::AtsListCandidatesQueryParamFilter), include: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
|
45
|
+
def initialize(x_account_id: nil, fields_: nil, filter: nil, include: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
|
44
46
|
@x_account_id = x_account_id
|
45
47
|
@fields_ = fields_
|
46
48
|
@filter = filter
|
49
|
+
@include = include
|
47
50
|
@next_ = next_
|
48
51
|
@page = page
|
49
52
|
@page_size = page_size
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisGetDepartmentGroupRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
16
|
+
# The account identifier
|
17
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
18
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
19
|
+
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
20
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
21
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
22
|
+
# Indicates that the raw request result is returned
|
23
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
|
27
|
+
def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
|
28
|
+
@id = id
|
29
|
+
@x_account_id = x_account_id
|
30
|
+
@fields_ = fields_
|
31
|
+
@proxy = proxy
|
32
|
+
@raw = raw
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisGetDepartmentGroupResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The department group with the given identifier was retrieved.
|
21
|
+
field :hris_departments_result, T.nilable(::StackOne::Shared::HRISDepartmentsResult)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, hris_departments_result: T.nilable(::StackOne::Shared::HRISDepartmentsResult)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, hris_departments_result: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@hris_departments_result = hris_departments_result
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
# Filter parameters that allow greater customisation of the list response
|
11
|
+
class HrisListDepartmentGroupsQueryParamFilter < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Use a string with a date to only select results updated after that given date
|
15
|
+
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
|
16
|
+
|
17
|
+
|
18
|
+
sig { params(updated_after: T.nilable(::String)).void }
|
19
|
+
def initialize(updated_after: nil)
|
20
|
+
@updated_after = updated_after
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisListDepartmentGroupsRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The account identifier
|
15
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
16
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
17
|
+
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
18
|
+
# Filter parameters that allow greater customisation of the list response
|
19
|
+
field :filter, T.nilable(::StackOne::Operations::HrisListDepartmentGroupsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
|
20
|
+
# The unified cursor
|
21
|
+
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
22
|
+
# The page number of the results to fetch
|
23
|
+
#
|
24
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
25
|
+
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
26
|
+
# The number of results per page
|
27
|
+
field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
28
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
29
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
30
|
+
# Indicates that the raw request result is returned
|
31
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
32
|
+
# Use a string with a date to only select results updated after that given date
|
33
|
+
#
|
34
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
35
|
+
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
36
|
+
|
37
|
+
|
38
|
+
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::HrisListDepartmentGroupsQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
|
39
|
+
def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
|
40
|
+
@x_account_id = x_account_id
|
41
|
+
@fields_ = fields_
|
42
|
+
@filter = filter
|
43
|
+
@next_ = next_
|
44
|
+
@page = page
|
45
|
+
@page_size = page_size
|
46
|
+
@proxy = proxy
|
47
|
+
@raw = raw
|
48
|
+
@updated_after = updated_after
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisListDepartmentGroupsResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The list of department groups was retrieved.
|
21
|
+
field :hris_departments_paginated, T.nilable(::StackOne::Shared::HRISDepartmentsPaginated)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, hris_departments_paginated: T.nilable(::StackOne::Shared::HRISDepartmentsPaginated)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, hris_departments_paginated: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@hris_departments_paginated = hris_departments_paginated
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class MarketingCreateContentBlockRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :marketing_create_content_blocks_request_dto, ::StackOne::Shared::MarketingCreateContentBlocksRequestDto, { 'request': { 'media_type': 'application/json' } }
|
16
|
+
# The account identifier
|
17
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(marketing_create_content_blocks_request_dto: ::StackOne::Shared::MarketingCreateContentBlocksRequestDto, x_account_id: ::String).void }
|
21
|
+
def initialize(marketing_create_content_blocks_request_dto: nil, x_account_id: nil)
|
22
|
+
@marketing_create_content_blocks_request_dto = marketing_create_content_blocks_request_dto
|
23
|
+
@x_account_id = x_account_id
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class MarketingCreateContentBlockResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# Record created successfully.
|
21
|
+
field :create_result, T.nilable(::StackOne::Shared::CreateResult)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, create_result: T.nilable(::StackOne::Shared::CreateResult)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, create_result: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@create_result = create_result
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class MarketingGetContentBlockRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
16
|
+
# The account identifier
|
17
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
18
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
19
|
+
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
20
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
21
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
22
|
+
# Indicates that the raw request result is returned
|
23
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
|
27
|
+
def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
|
28
|
+
@id = id
|
29
|
+
@x_account_id = x_account_id
|
30
|
+
@fields_ = fields_
|
31
|
+
@proxy = proxy
|
32
|
+
@raw = raw
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class MarketingGetContentBlockResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The Content Block with the given identifier was retrieved
|
21
|
+
field :content_blocks_paginated, T.nilable(::StackOne::Shared::ContentBlocksPaginated)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, content_blocks_paginated: T.nilable(::StackOne::Shared::ContentBlocksPaginated)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, content_blocks_paginated: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@content_blocks_paginated = content_blocks_paginated
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|