api-sdk-rb 1.11.111 → 1.11.133
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/README.md +207 -381
- data/docs/{GetPartnerCreditTransactions200Response.md → AccountCreditTransactionListResponse.md} +2 -2
- data/docs/{GetUserAdapterConnections200Response.md → AdapterConnectionListResponse.md} +2 -2
- data/docs/{RemoveUserAdapterConnection200Response.md → AdapterConnectionRemovalResponse.md} +2 -2
- data/docs/{SetUserAdapterConnection200Response.md → AdapterConnectionResponse.md} +2 -2
- data/docs/{AddAiAnswersKnowledgeDocument201Response.md → AiAnswersKnowledgeDocumentResponse.md} +2 -2
- data/docs/BrandKitApi.md +74 -74
- data/docs/BrandKitTokens.md +2 -0
- data/docs/BrandKitView.md +1 -1
- data/docs/BrandTextStyle.md +22 -0
- data/docs/CanvasesApi.md +45 -45
- data/docs/{CreateCompositionDatabaseRecord201Response.md → CompositionDatabaseRecordResponse.md} +2 -2
- data/docs/CompositionsApi.md +615 -349
- data/docs/{CreateCompositionContentItem201Response.md → ContentItemWriteResultResponse.md} +2 -2
- data/docs/CreditsApi.md +20 -20
- data/docs/{CreateCompositionFromWidget201Response.md → DeleteUpload200Response.md} +3 -3
- data/docs/{UploadsIdDelete200ResponseData.md → DeleteUpload200ResponseData.md} +2 -2
- data/docs/{GetPartnerDesignDefaults200Response.md → DesignDefaultsResponse.md} +2 -2
- data/docs/EntitlementsApi.md +18 -18
- data/docs/{OperationsIdGetResponse.md → GetOperationResponse.md} +3 -3
- data/docs/{OperationsIdGetResponseData.md → GetOperationResponseData.md} +3 -3
- data/docs/GetOperationResponseDataMetadata.md +24 -0
- data/docs/InvoicesApi.md +9 -9
- data/docs/{UploadsGet200Response.md → ListUploads200Response.md} +2 -2
- data/docs/{GetManagedUserLimits200Response.md → ManagedUserLimitsResponse.md} +2 -2
- data/docs/{DeleteManagedUser200Response.md → ManagedUserRemovalResponse.md} +2 -2
- data/docs/ManagedUsersApi.md +261 -171
- data/docs/OperationsApi.md +11 -11
- data/docs/PartnersApi.md +388 -388
- data/docs/PatchBrandKitRequest.md +2 -0
- data/docs/PublicEmbedApi.md +95 -95
- data/docs/PublicWorkflowEventsRequestEventsInner.md +3 -1
- data/docs/{GetPublicWorkflow200Response.md → PublicWorkflowResponse.md} +2 -2
- data/docs/TokensApi.md +11 -9
- data/docs/Upload.md +1 -1
- data/docs/UploadLimits.md +3 -3
- data/docs/UploadsApi.md +85 -85
- data/docs/UsersApi.md +125 -125
- data/docs/WidgetClarification.md +22 -0
- data/docs/WidgetClarificationOption.md +22 -0
- data/docs/WidgetClarificationQuestion.md +26 -0
- data/docs/WidgetNextStep.md +24 -0
- data/docs/WidgetPlan.md +26 -0
- data/docs/WidgetPlanDecisions.md +32 -0
- data/docs/WidgetPlanDecisionsAdaptersInner.md +20 -0
- data/docs/WidgetPlanDecisionsLibrariesInner.md +22 -0
- data/docs/WidgetPlanDecisionsResponsive.md +22 -0
- data/docs/WidgetPlanTask.md +24 -0
- data/docs/WidgetsApi.md +38 -38
- data/docs/{CreateWorkspaceWorkflowFromPreset201Response.md → WorkflowDetailResponse.md} +2 -2
- data/docs/WorkflowFailureReason.md +15 -0
- data/docs/WorkflowFailureReasonCounter.md +22 -0
- data/docs/{SaveWorkspaceWorkflow200Response.md → WorkflowResponse.md} +2 -2
- data/docs/WorkflowStats.md +4 -2
- data/docs/WorkflowsApi.md +197 -413
- data/lib/api-sdk-rb/api/brand_kit_api.rb +61 -61
- data/lib/api-sdk-rb/api/canvases_api.rb +39 -39
- data/lib/api-sdk-rb/api/compositions_api.rb +770 -441
- data/lib/api-sdk-rb/api/credits_api.rb +20 -20
- data/lib/api-sdk-rb/api/entitlements_api.rb +14 -14
- data/lib/api-sdk-rb/api/invoices_api.rb +10 -10
- data/lib/api-sdk-rb/api/managed_users_api.rb +278 -172
- data/lib/api-sdk-rb/api/operations_api.rb +10 -10
- data/lib/api-sdk-rb/api/partners_api.rb +389 -389
- data/lib/api-sdk-rb/api/public_embed_api.rb +95 -95
- data/lib/api-sdk-rb/api/tokens_api.rb +8 -6
- data/lib/api-sdk-rb/api/uploads_api.rb +96 -96
- data/lib/api-sdk-rb/api/users_api.rb +132 -132
- data/lib/api-sdk-rb/api/widgets_api.rb +40 -40
- data/lib/api-sdk-rb/api/workflows_api.rb +246 -468
- data/lib/api-sdk-rb/configuration.rb +0 -60
- data/lib/api-sdk-rb/models/{get_user_adapter_connections200_response.rb → account_credit_transaction_list_response.rb} +4 -4
- data/lib/api-sdk-rb/models/{get_partner_credit_transactions200_response.rb → adapter_connection_list_response.rb} +4 -4
- data/lib/api-sdk-rb/models/{save_workspace_workflow200_response.rb → adapter_connection_removal_response.rb} +4 -4
- data/lib/api-sdk-rb/models/{set_user_adapter_connection200_response.rb → adapter_connection_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{add_ai_answers_knowledge_document201_response.rb → ai_answers_knowledge_document_response.rb} +3 -3
- data/lib/api-sdk-rb/models/brand_kit_tokens.rb +33 -2
- data/lib/api-sdk-rb/models/brand_kit_view.rb +1 -1
- data/lib/api-sdk-rb/models/brand_text_style.rb +344 -0
- data/lib/api-sdk-rb/models/{create_composition_database_record201_response.rb → composition_database_record_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{create_composition_content_item201_response.rb → content_item_write_result_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{operations_id_get_response.rb → delete_upload200_response.rb} +4 -5
- data/lib/api-sdk-rb/models/{uploads_id_delete200_response_data.rb → delete_upload200_response_data.rb} +3 -3
- data/lib/api-sdk-rb/models/{get_partner_design_defaults200_response.rb → design_defaults_response.rb} +3 -3
- data/lib/api-sdk-rb/models/get_operation_response.rb +247 -0
- data/lib/api-sdk-rb/models/{operations_id_get_response_data.rb → get_operation_response_data.rb} +5 -8
- data/lib/api-sdk-rb/models/get_operation_response_data_metadata.rb +283 -0
- data/lib/api-sdk-rb/models/{uploads_get200_response.rb → list_uploads200_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{get_managed_user_limits200_response.rb → managed_user_limits_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{uploads_id_delete200_response.rb → managed_user_removal_response.rb} +4 -4
- data/lib/api-sdk-rb/models/patch_brand_kit_request.rb +32 -1
- data/lib/api-sdk-rb/models/public_workflow_events_request_events_inner.rb +26 -4
- data/lib/api-sdk-rb/models/{get_public_workflow200_response.rb → public_workflow_response.rb} +3 -3
- data/lib/api-sdk-rb/models/upload.rb +1 -1
- data/lib/api-sdk-rb/models/upload_limits.rb +3 -3
- data/lib/api-sdk-rb/models/widget_clarification.rb +279 -0
- data/lib/api-sdk-rb/models/{create_composition_from_widget201_response.rb → widget_clarification_option.rb} +40 -30
- data/lib/api-sdk-rb/models/widget_clarification_question.rb +329 -0
- data/lib/api-sdk-rb/models/widget_next_step.rb +307 -0
- data/lib/api-sdk-rb/models/widget_plan.rb +306 -0
- data/lib/api-sdk-rb/models/widget_plan_decisions.rb +346 -0
- data/lib/api-sdk-rb/models/widget_plan_decisions_adapters_inner.rb +237 -0
- data/lib/api-sdk-rb/models/{create_workspace_workflow_from_preset201_response.rb → widget_plan_decisions_libraries_inner.rb} +39 -30
- data/lib/api-sdk-rb/models/widget_plan_decisions_responsive.rb +311 -0
- data/lib/api-sdk-rb/models/widget_plan_task.rb +320 -0
- data/lib/api-sdk-rb/models/{delete_managed_user200_response.rb → workflow_detail_response.rb} +4 -4
- data/lib/api-sdk-rb/models/workflow_failure_reason.rb +42 -0
- data/lib/api-sdk-rb/models/workflow_failure_reason_counter.rb +277 -0
- data/lib/api-sdk-rb/models/workflow_response.rb +246 -0
- data/lib/api-sdk-rb/models/workflow_stats.rb +17 -5
- data/lib/api-sdk-rb/version.rb +1 -1
- data/lib/api-sdk-rb.rb +32 -21
- data/spec/api/brand_kit_api_spec.rb +18 -18
- data/spec/api/canvases_api_spec.rb +10 -10
- data/spec/api/compositions_api_spec.rb +144 -83
- data/spec/api/credits_api_spec.rb +5 -5
- data/spec/api/entitlements_api_spec.rb +4 -4
- data/spec/api/invoices_api_spec.rb +2 -2
- data/spec/api/managed_users_api_spec.rb +63 -42
- data/spec/api/operations_api_spec.rb +3 -3
- data/spec/api/partners_api_spec.rb +91 -91
- data/spec/api/public_embed_api_spec.rb +23 -23
- data/spec/api/tokens_api_spec.rb +3 -2
- data/spec/api/uploads_api_spec.rb +24 -24
- data/spec/api/users_api_spec.rb +30 -30
- data/spec/api/widgets_api_spec.rb +9 -9
- data/spec/api/workflows_api_spec.rb +50 -89
- data/spec/models/{get_user_adapter_connections200_response_spec.rb → account_credit_transaction_list_response_spec.rb} +6 -6
- data/spec/models/{get_public_workflow200_response_spec.rb → adapter_connection_list_response_spec.rb} +6 -6
- data/spec/models/{save_workspace_workflow200_response_spec.rb → adapter_connection_removal_response_spec.rb} +6 -6
- data/spec/models/{delete_managed_user200_response_spec.rb → adapter_connection_response_spec.rb} +6 -6
- data/spec/models/ai_answers_knowledge_document_response_spec.rb +48 -0
- data/spec/models/brand_kit_tokens_spec.rb +6 -0
- data/spec/models/{create_composition_from_widget201_response_spec.rb → brand_text_style_spec.rb} +13 -9
- data/spec/models/{get_managed_user_limits200_response_spec.rb → composition_database_record_response_spec.rb} +6 -6
- data/spec/models/content_item_write_result_response_spec.rb +48 -0
- data/spec/models/{uploads_id_delete200_response_data_spec.rb → delete_upload200_response_data_spec.rb} +6 -6
- data/spec/models/{operations_id_get_response_spec.rb → delete_upload200_response_spec.rb} +6 -6
- data/spec/models/design_defaults_response_spec.rb +48 -0
- data/spec/models/get_operation_response_data_metadata_spec.rb +58 -0
- data/spec/models/{operations_id_get_response_data_spec.rb → get_operation_response_data_spec.rb} +6 -6
- data/spec/models/{uploads_get200_response_spec.rb → get_operation_response_spec.rb} +6 -6
- data/spec/models/list_uploads200_response_spec.rb +48 -0
- data/spec/models/managed_user_limits_response_spec.rb +48 -0
- data/spec/models/{uploads_id_delete200_response_spec.rb → managed_user_removal_response_spec.rb} +6 -6
- data/spec/models/patch_brand_kit_request_spec.rb +6 -0
- data/spec/models/public_workflow_events_request_events_inner_spec.rb +10 -0
- data/spec/models/public_workflow_response_spec.rb +48 -0
- data/spec/models/widget_clarification_option_spec.rb +48 -0
- data/spec/models/widget_clarification_question_spec.rb +60 -0
- data/spec/models/widget_clarification_spec.rb +48 -0
- data/spec/models/widget_next_step_spec.rb +58 -0
- data/spec/models/widget_plan_decisions_adapters_inner_spec.rb +42 -0
- data/spec/models/widget_plan_decisions_libraries_inner_spec.rb +48 -0
- data/spec/models/widget_plan_decisions_responsive_spec.rb +48 -0
- data/spec/models/widget_plan_decisions_spec.rb +78 -0
- data/spec/models/{create_composition_database_record201_response_spec.rb → widget_plan_spec.rb} +21 -9
- data/spec/models/widget_plan_task_spec.rb +62 -0
- data/spec/models/workflow_detail_response_spec.rb +48 -0
- data/spec/models/workflow_failure_reason_counter_spec.rb +48 -0
- data/spec/models/workflow_failure_reason_spec.rb +30 -0
- data/spec/models/workflow_response_spec.rb +48 -0
- data/spec/models/workflow_stats_spec.rb +6 -0
- metadata +130 -86
- data/docs/PartnerApi.md +0 -12714
- data/docs/UploadsIdDelete200Response.md +0 -22
- data/docs/WorkspacesApi.md +0 -1527
- data/lib/api-sdk-rb/api/partner_api.rb +0 -13791
- data/lib/api-sdk-rb/api/workspaces_api.rb +0 -1775
- data/lib/api-sdk-rb/models/remove_user_adapter_connection200_response.rb +0 -246
- data/spec/api/partner_api_spec.rb +0 -2437
- data/spec/api/workspaces_api_spec.rb +0 -339
- data/spec/models/add_ai_answers_knowledge_document201_response_spec.rb +0 -48
- data/spec/models/create_composition_content_item201_response_spec.rb +0 -48
- data/spec/models/create_workspace_workflow_from_preset201_response_spec.rb +0 -48
- data/spec/models/get_partner_credit_transactions200_response_spec.rb +0 -48
- data/spec/models/get_partner_design_defaults200_response_spec.rb +0 -48
- data/spec/models/remove_user_adapter_connection200_response_spec.rb +0 -48
- data/spec/models/set_user_adapter_connection200_response_spec.rb +0 -48
|
@@ -23,8 +23,8 @@ module ApiSdkRb
|
|
|
23
23
|
# @param [Hash] opts the optional parameters
|
|
24
24
|
# @option opts [String] :organization_id
|
|
25
25
|
# @return [BrandKitViewResponse]
|
|
26
|
-
def
|
|
27
|
-
data, _status_code, _headers =
|
|
26
|
+
def delete_brand_kit(opts = {})
|
|
27
|
+
data, _status_code, _headers = delete_brand_kit_with_http_info(opts)
|
|
28
28
|
data
|
|
29
29
|
end
|
|
30
30
|
|
|
@@ -32,9 +32,9 @@ module ApiSdkRb
|
|
|
32
32
|
# @param [Hash] opts the optional parameters
|
|
33
33
|
# @option opts [String] :organization_id
|
|
34
34
|
# @return [Array<(BrandKitViewResponse, Integer, Hash)>] BrandKitViewResponse data, response status code and response headers
|
|
35
|
-
def
|
|
35
|
+
def delete_brand_kit_with_http_info(opts = {})
|
|
36
36
|
if @api_client.config.debugging
|
|
37
|
-
@api_client.config.logger.debug 'Calling API: BrandKitApi.
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: BrandKitApi.delete_brand_kit ...'
|
|
38
38
|
end
|
|
39
39
|
# resource path
|
|
40
40
|
local_var_path = '/brand-kit'
|
|
@@ -61,7 +61,7 @@ module ApiSdkRb
|
|
|
61
61
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
62
62
|
|
|
63
63
|
new_options = opts.merge(
|
|
64
|
-
:operation => :"BrandKitApi.
|
|
64
|
+
:operation => :"BrandKitApi.delete_brand_kit",
|
|
65
65
|
:header_params => header_params,
|
|
66
66
|
:query_params => query_params,
|
|
67
67
|
:form_params => form_params,
|
|
@@ -72,7 +72,7 @@ module ApiSdkRb
|
|
|
72
72
|
|
|
73
73
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
74
74
|
if @api_client.config.debugging
|
|
75
|
-
@api_client.config.logger.debug "API called: BrandKitApi#
|
|
75
|
+
@api_client.config.logger.debug "API called: BrandKitApi#delete_brand_kit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
76
76
|
end
|
|
77
77
|
return data, status_code, headers
|
|
78
78
|
end
|
|
@@ -82,8 +82,8 @@ module ApiSdkRb
|
|
|
82
82
|
# @param [Hash] opts the optional parameters
|
|
83
83
|
# @option opts [String] :organization_id
|
|
84
84
|
# @return [BrandKitViewResponse]
|
|
85
|
-
def
|
|
86
|
-
data, _status_code, _headers =
|
|
85
|
+
def delete_brand_kit_asset(asset_id, opts = {})
|
|
86
|
+
data, _status_code, _headers = delete_brand_kit_asset_with_http_info(asset_id, opts)
|
|
87
87
|
data
|
|
88
88
|
end
|
|
89
89
|
|
|
@@ -92,13 +92,13 @@ module ApiSdkRb
|
|
|
92
92
|
# @param [Hash] opts the optional parameters
|
|
93
93
|
# @option opts [String] :organization_id
|
|
94
94
|
# @return [Array<(BrandKitViewResponse, Integer, Hash)>] BrandKitViewResponse data, response status code and response headers
|
|
95
|
-
def
|
|
95
|
+
def delete_brand_kit_asset_with_http_info(asset_id, opts = {})
|
|
96
96
|
if @api_client.config.debugging
|
|
97
|
-
@api_client.config.logger.debug 'Calling API: BrandKitApi.
|
|
97
|
+
@api_client.config.logger.debug 'Calling API: BrandKitApi.delete_brand_kit_asset ...'
|
|
98
98
|
end
|
|
99
99
|
# verify the required parameter 'asset_id' is set
|
|
100
100
|
if @api_client.config.client_side_validation && asset_id.nil?
|
|
101
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling BrandKitApi.
|
|
101
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling BrandKitApi.delete_brand_kit_asset"
|
|
102
102
|
end
|
|
103
103
|
# resource path
|
|
104
104
|
local_var_path = '/brand-kit/assets/{assetId}'.sub('{' + 'assetId' + '}', CGI.escape(asset_id.to_s))
|
|
@@ -125,7 +125,7 @@ module ApiSdkRb
|
|
|
125
125
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
126
126
|
|
|
127
127
|
new_options = opts.merge(
|
|
128
|
-
:operation => :"BrandKitApi.
|
|
128
|
+
:operation => :"BrandKitApi.delete_brand_kit_asset",
|
|
129
129
|
:header_params => header_params,
|
|
130
130
|
:query_params => query_params,
|
|
131
131
|
:form_params => form_params,
|
|
@@ -136,7 +136,7 @@ module ApiSdkRb
|
|
|
136
136
|
|
|
137
137
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
138
138
|
if @api_client.config.debugging
|
|
139
|
-
@api_client.config.logger.debug "API called: BrandKitApi#
|
|
139
|
+
@api_client.config.logger.debug "API called: BrandKitApi#delete_brand_kit_asset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
140
140
|
end
|
|
141
141
|
return data, status_code, headers
|
|
142
142
|
end
|
|
@@ -146,8 +146,8 @@ module ApiSdkRb
|
|
|
146
146
|
# @param [Hash] opts the optional parameters
|
|
147
147
|
# @option opts [String] :organization_id An organisation's kit; omit for the caller's current workspace.
|
|
148
148
|
# @return [BrandKitViewResponse]
|
|
149
|
-
def
|
|
150
|
-
data, _status_code, _headers =
|
|
149
|
+
def get_brand_kit(opts = {})
|
|
150
|
+
data, _status_code, _headers = get_brand_kit_with_http_info(opts)
|
|
151
151
|
data
|
|
152
152
|
end
|
|
153
153
|
|
|
@@ -156,9 +156,9 @@ module ApiSdkRb
|
|
|
156
156
|
# @param [Hash] opts the optional parameters
|
|
157
157
|
# @option opts [String] :organization_id An organisation's kit; omit for the caller's current workspace.
|
|
158
158
|
# @return [Array<(BrandKitViewResponse, Integer, Hash)>] BrandKitViewResponse data, response status code and response headers
|
|
159
|
-
def
|
|
159
|
+
def get_brand_kit_with_http_info(opts = {})
|
|
160
160
|
if @api_client.config.debugging
|
|
161
|
-
@api_client.config.logger.debug 'Calling API: BrandKitApi.
|
|
161
|
+
@api_client.config.logger.debug 'Calling API: BrandKitApi.get_brand_kit ...'
|
|
162
162
|
end
|
|
163
163
|
# resource path
|
|
164
164
|
local_var_path = '/brand-kit'
|
|
@@ -185,7 +185,7 @@ module ApiSdkRb
|
|
|
185
185
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
186
186
|
|
|
187
187
|
new_options = opts.merge(
|
|
188
|
-
:operation => :"BrandKitApi.
|
|
188
|
+
:operation => :"BrandKitApi.get_brand_kit",
|
|
189
189
|
:header_params => header_params,
|
|
190
190
|
:query_params => query_params,
|
|
191
191
|
:form_params => form_params,
|
|
@@ -196,35 +196,35 @@ module ApiSdkRb
|
|
|
196
196
|
|
|
197
197
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
198
198
|
if @api_client.config.debugging
|
|
199
|
-
@api_client.config.logger.debug "API called: BrandKitApi#
|
|
199
|
+
@api_client.config.logger.debug "API called: BrandKitApi#get_brand_kit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
200
200
|
end
|
|
201
201
|
return data, status_code, headers
|
|
202
202
|
end
|
|
203
203
|
|
|
204
204
|
# Change part of the Brand Kit
|
|
205
|
-
# Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic's default one. The response lists what is worth fixing in `warnings`.
|
|
205
|
+
# Changes only what is sent: the colors, a font role, the text styles, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit, text styles included. An account that never saved a kit starts from Widgetic's default one. The response lists what is worth fixing in `warnings`.
|
|
206
206
|
# @param patch_brand_kit_request [PatchBrandKitRequest]
|
|
207
207
|
# @param [Hash] opts the optional parameters
|
|
208
208
|
# @option opts [String] :organization_id
|
|
209
209
|
# @return [BrandKitViewResponse]
|
|
210
|
-
def
|
|
211
|
-
data, _status_code, _headers =
|
|
210
|
+
def patch_brand_kit(patch_brand_kit_request, opts = {})
|
|
211
|
+
data, _status_code, _headers = patch_brand_kit_with_http_info(patch_brand_kit_request, opts)
|
|
212
212
|
data
|
|
213
213
|
end
|
|
214
214
|
|
|
215
215
|
# Change part of the Brand Kit
|
|
216
|
-
# Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic's default one. The response lists what is worth fixing in `warnings`.
|
|
216
|
+
# Changes only what is sent: the colors, a font role, the text styles, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit, text styles included. An account that never saved a kit starts from Widgetic's default one. The response lists what is worth fixing in `warnings`.
|
|
217
217
|
# @param patch_brand_kit_request [PatchBrandKitRequest]
|
|
218
218
|
# @param [Hash] opts the optional parameters
|
|
219
219
|
# @option opts [String] :organization_id
|
|
220
220
|
# @return [Array<(BrandKitViewResponse, Integer, Hash)>] BrandKitViewResponse data, response status code and response headers
|
|
221
|
-
def
|
|
221
|
+
def patch_brand_kit_with_http_info(patch_brand_kit_request, opts = {})
|
|
222
222
|
if @api_client.config.debugging
|
|
223
|
-
@api_client.config.logger.debug 'Calling API: BrandKitApi.
|
|
223
|
+
@api_client.config.logger.debug 'Calling API: BrandKitApi.patch_brand_kit ...'
|
|
224
224
|
end
|
|
225
225
|
# verify the required parameter 'patch_brand_kit_request' is set
|
|
226
226
|
if @api_client.config.client_side_validation && patch_brand_kit_request.nil?
|
|
227
|
-
fail ArgumentError, "Missing the required parameter 'patch_brand_kit_request' when calling BrandKitApi.
|
|
227
|
+
fail ArgumentError, "Missing the required parameter 'patch_brand_kit_request' when calling BrandKitApi.patch_brand_kit"
|
|
228
228
|
end
|
|
229
229
|
# resource path
|
|
230
230
|
local_var_path = '/brand-kit'
|
|
@@ -256,7 +256,7 @@ module ApiSdkRb
|
|
|
256
256
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
257
257
|
|
|
258
258
|
new_options = opts.merge(
|
|
259
|
-
:operation => :"BrandKitApi.
|
|
259
|
+
:operation => :"BrandKitApi.patch_brand_kit",
|
|
260
260
|
:header_params => header_params,
|
|
261
261
|
:query_params => query_params,
|
|
262
262
|
:form_params => form_params,
|
|
@@ -267,7 +267,7 @@ module ApiSdkRb
|
|
|
267
267
|
|
|
268
268
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
269
269
|
if @api_client.config.debugging
|
|
270
|
-
@api_client.config.logger.debug "API called: BrandKitApi#
|
|
270
|
+
@api_client.config.logger.debug "API called: BrandKitApi#patch_brand_kit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
271
271
|
end
|
|
272
272
|
return data, status_code, headers
|
|
273
273
|
end
|
|
@@ -278,8 +278,8 @@ module ApiSdkRb
|
|
|
278
278
|
# @param [Hash] opts the optional parameters
|
|
279
279
|
# @option opts [String] :organization_id
|
|
280
280
|
# @return [BrandKitViewResponse]
|
|
281
|
-
def
|
|
282
|
-
data, _status_code, _headers =
|
|
281
|
+
def patch_brand_kit_asset(asset_id, patch_brand_kit_asset_request, opts = {})
|
|
282
|
+
data, _status_code, _headers = patch_brand_kit_asset_with_http_info(asset_id, patch_brand_kit_asset_request, opts)
|
|
283
283
|
data
|
|
284
284
|
end
|
|
285
285
|
|
|
@@ -289,17 +289,17 @@ module ApiSdkRb
|
|
|
289
289
|
# @param [Hash] opts the optional parameters
|
|
290
290
|
# @option opts [String] :organization_id
|
|
291
291
|
# @return [Array<(BrandKitViewResponse, Integer, Hash)>] BrandKitViewResponse data, response status code and response headers
|
|
292
|
-
def
|
|
292
|
+
def patch_brand_kit_asset_with_http_info(asset_id, patch_brand_kit_asset_request, opts = {})
|
|
293
293
|
if @api_client.config.debugging
|
|
294
|
-
@api_client.config.logger.debug 'Calling API: BrandKitApi.
|
|
294
|
+
@api_client.config.logger.debug 'Calling API: BrandKitApi.patch_brand_kit_asset ...'
|
|
295
295
|
end
|
|
296
296
|
# verify the required parameter 'asset_id' is set
|
|
297
297
|
if @api_client.config.client_side_validation && asset_id.nil?
|
|
298
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling BrandKitApi.
|
|
298
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling BrandKitApi.patch_brand_kit_asset"
|
|
299
299
|
end
|
|
300
300
|
# verify the required parameter 'patch_brand_kit_asset_request' is set
|
|
301
301
|
if @api_client.config.client_side_validation && patch_brand_kit_asset_request.nil?
|
|
302
|
-
fail ArgumentError, "Missing the required parameter 'patch_brand_kit_asset_request' when calling BrandKitApi.
|
|
302
|
+
fail ArgumentError, "Missing the required parameter 'patch_brand_kit_asset_request' when calling BrandKitApi.patch_brand_kit_asset"
|
|
303
303
|
end
|
|
304
304
|
# resource path
|
|
305
305
|
local_var_path = '/brand-kit/assets/{assetId}'.sub('{' + 'assetId' + '}', CGI.escape(asset_id.to_s))
|
|
@@ -331,7 +331,7 @@ module ApiSdkRb
|
|
|
331
331
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
332
332
|
|
|
333
333
|
new_options = opts.merge(
|
|
334
|
-
:operation => :"BrandKitApi.
|
|
334
|
+
:operation => :"BrandKitApi.patch_brand_kit_asset",
|
|
335
335
|
:header_params => header_params,
|
|
336
336
|
:query_params => query_params,
|
|
337
337
|
:form_params => form_params,
|
|
@@ -342,7 +342,7 @@ module ApiSdkRb
|
|
|
342
342
|
|
|
343
343
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
344
344
|
if @api_client.config.debugging
|
|
345
|
-
@api_client.config.logger.debug "API called: BrandKitApi#
|
|
345
|
+
@api_client.config.logger.debug "API called: BrandKitApi#patch_brand_kit_asset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
346
346
|
end
|
|
347
347
|
return data, status_code, headers
|
|
348
348
|
end
|
|
@@ -355,8 +355,8 @@ module ApiSdkRb
|
|
|
355
355
|
# @option opts [String] :organization_id
|
|
356
356
|
# @option opts [String] :style
|
|
357
357
|
# @return [BrandKitViewResponse]
|
|
358
|
-
def
|
|
359
|
-
data, _status_code, _headers =
|
|
358
|
+
def post_brand_kit_font(file, family, weight, opts = {})
|
|
359
|
+
data, _status_code, _headers = post_brand_kit_font_with_http_info(file, family, weight, opts)
|
|
360
360
|
data
|
|
361
361
|
end
|
|
362
362
|
|
|
@@ -368,21 +368,21 @@ module ApiSdkRb
|
|
|
368
368
|
# @option opts [String] :organization_id
|
|
369
369
|
# @option opts [String] :style
|
|
370
370
|
# @return [Array<(BrandKitViewResponse, Integer, Hash)>] BrandKitViewResponse data, response status code and response headers
|
|
371
|
-
def
|
|
371
|
+
def post_brand_kit_font_with_http_info(file, family, weight, opts = {})
|
|
372
372
|
if @api_client.config.debugging
|
|
373
|
-
@api_client.config.logger.debug 'Calling API: BrandKitApi.
|
|
373
|
+
@api_client.config.logger.debug 'Calling API: BrandKitApi.post_brand_kit_font ...'
|
|
374
374
|
end
|
|
375
375
|
# verify the required parameter 'file' is set
|
|
376
376
|
if @api_client.config.client_side_validation && file.nil?
|
|
377
|
-
fail ArgumentError, "Missing the required parameter 'file' when calling BrandKitApi.
|
|
377
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling BrandKitApi.post_brand_kit_font"
|
|
378
378
|
end
|
|
379
379
|
# verify the required parameter 'family' is set
|
|
380
380
|
if @api_client.config.client_side_validation && family.nil?
|
|
381
|
-
fail ArgumentError, "Missing the required parameter 'family' when calling BrandKitApi.
|
|
381
|
+
fail ArgumentError, "Missing the required parameter 'family' when calling BrandKitApi.post_brand_kit_font"
|
|
382
382
|
end
|
|
383
383
|
# verify the required parameter 'weight' is set
|
|
384
384
|
if @api_client.config.client_side_validation && weight.nil?
|
|
385
|
-
fail ArgumentError, "Missing the required parameter 'weight' when calling BrandKitApi.
|
|
385
|
+
fail ArgumentError, "Missing the required parameter 'weight' when calling BrandKitApi.post_brand_kit_font"
|
|
386
386
|
end
|
|
387
387
|
allowable_values = ["normal", "italic"]
|
|
388
388
|
if @api_client.config.client_side_validation && opts[:'style'] && !allowable_values.include?(opts[:'style'])
|
|
@@ -422,7 +422,7 @@ module ApiSdkRb
|
|
|
422
422
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
423
423
|
|
|
424
424
|
new_options = opts.merge(
|
|
425
|
-
:operation => :"BrandKitApi.
|
|
425
|
+
:operation => :"BrandKitApi.post_brand_kit_font",
|
|
426
426
|
:header_params => header_params,
|
|
427
427
|
:query_params => query_params,
|
|
428
428
|
:form_params => form_params,
|
|
@@ -433,7 +433,7 @@ module ApiSdkRb
|
|
|
433
433
|
|
|
434
434
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
435
435
|
if @api_client.config.debugging
|
|
436
|
-
@api_client.config.logger.debug "API called: BrandKitApi#
|
|
436
|
+
@api_client.config.logger.debug "API called: BrandKitApi#post_brand_kit_font\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
437
437
|
end
|
|
438
438
|
return data, status_code, headers
|
|
439
439
|
end
|
|
@@ -443,8 +443,8 @@ module ApiSdkRb
|
|
|
443
443
|
# @param [Hash] opts the optional parameters
|
|
444
444
|
# @option opts [String] :organization_id
|
|
445
445
|
# @return [BrandKitViewResponse]
|
|
446
|
-
def
|
|
447
|
-
data, _status_code, _headers =
|
|
446
|
+
def post_brand_kit_icon(post_brand_kit_icon_request, opts = {})
|
|
447
|
+
data, _status_code, _headers = post_brand_kit_icon_with_http_info(post_brand_kit_icon_request, opts)
|
|
448
448
|
data
|
|
449
449
|
end
|
|
450
450
|
|
|
@@ -453,13 +453,13 @@ module ApiSdkRb
|
|
|
453
453
|
# @param [Hash] opts the optional parameters
|
|
454
454
|
# @option opts [String] :organization_id
|
|
455
455
|
# @return [Array<(BrandKitViewResponse, Integer, Hash)>] BrandKitViewResponse data, response status code and response headers
|
|
456
|
-
def
|
|
456
|
+
def post_brand_kit_icon_with_http_info(post_brand_kit_icon_request, opts = {})
|
|
457
457
|
if @api_client.config.debugging
|
|
458
|
-
@api_client.config.logger.debug 'Calling API: BrandKitApi.
|
|
458
|
+
@api_client.config.logger.debug 'Calling API: BrandKitApi.post_brand_kit_icon ...'
|
|
459
459
|
end
|
|
460
460
|
# verify the required parameter 'post_brand_kit_icon_request' is set
|
|
461
461
|
if @api_client.config.client_side_validation && post_brand_kit_icon_request.nil?
|
|
462
|
-
fail ArgumentError, "Missing the required parameter 'post_brand_kit_icon_request' when calling BrandKitApi.
|
|
462
|
+
fail ArgumentError, "Missing the required parameter 'post_brand_kit_icon_request' when calling BrandKitApi.post_brand_kit_icon"
|
|
463
463
|
end
|
|
464
464
|
# resource path
|
|
465
465
|
local_var_path = '/brand-kit/icons'
|
|
@@ -491,7 +491,7 @@ module ApiSdkRb
|
|
|
491
491
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
492
492
|
|
|
493
493
|
new_options = opts.merge(
|
|
494
|
-
:operation => :"BrandKitApi.
|
|
494
|
+
:operation => :"BrandKitApi.post_brand_kit_icon",
|
|
495
495
|
:header_params => header_params,
|
|
496
496
|
:query_params => query_params,
|
|
497
497
|
:form_params => form_params,
|
|
@@ -502,35 +502,35 @@ module ApiSdkRb
|
|
|
502
502
|
|
|
503
503
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
504
504
|
if @api_client.config.debugging
|
|
505
|
-
@api_client.config.logger.debug "API called: BrandKitApi#
|
|
505
|
+
@api_client.config.logger.debug "API called: BrandKitApi#post_brand_kit_icon\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
506
506
|
end
|
|
507
507
|
return data, status_code, headers
|
|
508
508
|
end
|
|
509
509
|
|
|
510
510
|
# Save Brand Kit tokens
|
|
511
|
-
# Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
|
|
511
|
+
# Replaces the colors, fonts, text styles, spacing and notes of the kit with the ones sent, so text styles left out of the body are removed. To change one thing, use PATCH.
|
|
512
512
|
# @param put_brand_kit_request [PutBrandKitRequest]
|
|
513
513
|
# @param [Hash] opts the optional parameters
|
|
514
514
|
# @option opts [String] :organization_id
|
|
515
515
|
# @return [BrandKitViewResponse]
|
|
516
|
-
def
|
|
517
|
-
data, _status_code, _headers =
|
|
516
|
+
def put_brand_kit(put_brand_kit_request, opts = {})
|
|
517
|
+
data, _status_code, _headers = put_brand_kit_with_http_info(put_brand_kit_request, opts)
|
|
518
518
|
data
|
|
519
519
|
end
|
|
520
520
|
|
|
521
521
|
# Save Brand Kit tokens
|
|
522
|
-
# Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
|
|
522
|
+
# Replaces the colors, fonts, text styles, spacing and notes of the kit with the ones sent, so text styles left out of the body are removed. To change one thing, use PATCH.
|
|
523
523
|
# @param put_brand_kit_request [PutBrandKitRequest]
|
|
524
524
|
# @param [Hash] opts the optional parameters
|
|
525
525
|
# @option opts [String] :organization_id
|
|
526
526
|
# @return [Array<(BrandKitViewResponse, Integer, Hash)>] BrandKitViewResponse data, response status code and response headers
|
|
527
|
-
def
|
|
527
|
+
def put_brand_kit_with_http_info(put_brand_kit_request, opts = {})
|
|
528
528
|
if @api_client.config.debugging
|
|
529
|
-
@api_client.config.logger.debug 'Calling API: BrandKitApi.
|
|
529
|
+
@api_client.config.logger.debug 'Calling API: BrandKitApi.put_brand_kit ...'
|
|
530
530
|
end
|
|
531
531
|
# verify the required parameter 'put_brand_kit_request' is set
|
|
532
532
|
if @api_client.config.client_side_validation && put_brand_kit_request.nil?
|
|
533
|
-
fail ArgumentError, "Missing the required parameter 'put_brand_kit_request' when calling BrandKitApi.
|
|
533
|
+
fail ArgumentError, "Missing the required parameter 'put_brand_kit_request' when calling BrandKitApi.put_brand_kit"
|
|
534
534
|
end
|
|
535
535
|
# resource path
|
|
536
536
|
local_var_path = '/brand-kit'
|
|
@@ -562,7 +562,7 @@ module ApiSdkRb
|
|
|
562
562
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
563
563
|
|
|
564
564
|
new_options = opts.merge(
|
|
565
|
-
:operation => :"BrandKitApi.
|
|
565
|
+
:operation => :"BrandKitApi.put_brand_kit",
|
|
566
566
|
:header_params => header_params,
|
|
567
567
|
:query_params => query_params,
|
|
568
568
|
:form_params => form_params,
|
|
@@ -573,7 +573,7 @@ module ApiSdkRb
|
|
|
573
573
|
|
|
574
574
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
575
575
|
if @api_client.config.debugging
|
|
576
|
-
@api_client.config.logger.debug "API called: BrandKitApi#
|
|
576
|
+
@api_client.config.logger.debug "API called: BrandKitApi#put_brand_kit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
577
577
|
end
|
|
578
578
|
return data, status_code, headers
|
|
579
579
|
end
|
|
@@ -24,8 +24,8 @@ module ApiSdkRb
|
|
|
24
24
|
# @param create_canvas_request [CreateCanvasRequest]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [CanvasResponse]
|
|
27
|
-
def
|
|
28
|
-
data, _status_code, _headers =
|
|
27
|
+
def create_canvas(create_canvas_request, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_canvas_with_http_info(create_canvas_request, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -34,13 +34,13 @@ module ApiSdkRb
|
|
|
34
34
|
# @param create_canvas_request [CreateCanvasRequest]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(CanvasResponse, Integer, Hash)>] CanvasResponse data, response status code and response headers
|
|
37
|
-
def
|
|
37
|
+
def create_canvas_with_http_info(create_canvas_request, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: CanvasesApi.
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: CanvasesApi.create_canvas ...'
|
|
40
40
|
end
|
|
41
41
|
# verify the required parameter 'create_canvas_request' is set
|
|
42
42
|
if @api_client.config.client_side_validation && create_canvas_request.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'create_canvas_request' when calling CanvasesApi.
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'create_canvas_request' when calling CanvasesApi.create_canvas"
|
|
44
44
|
end
|
|
45
45
|
# resource path
|
|
46
46
|
local_var_path = '/canvases'
|
|
@@ -71,7 +71,7 @@ module ApiSdkRb
|
|
|
71
71
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
72
72
|
|
|
73
73
|
new_options = opts.merge(
|
|
74
|
-
:operation => :"CanvasesApi.
|
|
74
|
+
:operation => :"CanvasesApi.create_canvas",
|
|
75
75
|
:header_params => header_params,
|
|
76
76
|
:query_params => query_params,
|
|
77
77
|
:form_params => form_params,
|
|
@@ -82,7 +82,7 @@ module ApiSdkRb
|
|
|
82
82
|
|
|
83
83
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
84
|
if @api_client.config.debugging
|
|
85
|
-
@api_client.config.logger.debug "API called: CanvasesApi#
|
|
85
|
+
@api_client.config.logger.debug "API called: CanvasesApi#create_canvas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
86
|
end
|
|
87
87
|
return data, status_code, headers
|
|
88
88
|
end
|
|
@@ -92,8 +92,8 @@ module ApiSdkRb
|
|
|
92
92
|
# @param id [String] ID of the canvas
|
|
93
93
|
# @param [Hash] opts the optional parameters
|
|
94
94
|
# @return [CanvasResponse]
|
|
95
|
-
def
|
|
96
|
-
data, _status_code, _headers =
|
|
95
|
+
def delete_canvas(id, opts = {})
|
|
96
|
+
data, _status_code, _headers = delete_canvas_with_http_info(id, opts)
|
|
97
97
|
data
|
|
98
98
|
end
|
|
99
99
|
|
|
@@ -102,13 +102,13 @@ module ApiSdkRb
|
|
|
102
102
|
# @param id [String] ID of the canvas
|
|
103
103
|
# @param [Hash] opts the optional parameters
|
|
104
104
|
# @return [Array<(CanvasResponse, Integer, Hash)>] CanvasResponse data, response status code and response headers
|
|
105
|
-
def
|
|
105
|
+
def delete_canvas_with_http_info(id, opts = {})
|
|
106
106
|
if @api_client.config.debugging
|
|
107
|
-
@api_client.config.logger.debug 'Calling API: CanvasesApi.
|
|
107
|
+
@api_client.config.logger.debug 'Calling API: CanvasesApi.delete_canvas ...'
|
|
108
108
|
end
|
|
109
109
|
# verify the required parameter 'id' is set
|
|
110
110
|
if @api_client.config.client_side_validation && id.nil?
|
|
111
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CanvasesApi.
|
|
111
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CanvasesApi.delete_canvas"
|
|
112
112
|
end
|
|
113
113
|
# resource path
|
|
114
114
|
local_var_path = '/canvases/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
@@ -134,7 +134,7 @@ module ApiSdkRb
|
|
|
134
134
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
135
135
|
|
|
136
136
|
new_options = opts.merge(
|
|
137
|
-
:operation => :"CanvasesApi.
|
|
137
|
+
:operation => :"CanvasesApi.delete_canvas",
|
|
138
138
|
:header_params => header_params,
|
|
139
139
|
:query_params => query_params,
|
|
140
140
|
:form_params => form_params,
|
|
@@ -145,7 +145,7 @@ module ApiSdkRb
|
|
|
145
145
|
|
|
146
146
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
147
147
|
if @api_client.config.debugging
|
|
148
|
-
@api_client.config.logger.debug "API called: CanvasesApi#
|
|
148
|
+
@api_client.config.logger.debug "API called: CanvasesApi#delete_canvas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
149
149
|
end
|
|
150
150
|
return data, status_code, headers
|
|
151
151
|
end
|
|
@@ -163,8 +163,8 @@ module ApiSdkRb
|
|
|
163
163
|
# @option opts [String] :managed_user_id List only the canvases made for this managed user (Widgetic's id for the user). Send this or `managedUserExternalId`, not both.
|
|
164
164
|
# @option opts [String] :managed_user_external_id List only the canvases made for the managed user you registered with this `externalId` (your own identifier for the user). Send this or `managedUserId`, not both.
|
|
165
165
|
# @return [GetAllCanvasesResponse]
|
|
166
|
-
def
|
|
167
|
-
data, _status_code, _headers =
|
|
166
|
+
def get_all_canvases(opts = {})
|
|
167
|
+
data, _status_code, _headers = get_all_canvases_with_http_info(opts)
|
|
168
168
|
data
|
|
169
169
|
end
|
|
170
170
|
|
|
@@ -181,24 +181,24 @@ module ApiSdkRb
|
|
|
181
181
|
# @option opts [String] :managed_user_id List only the canvases made for this managed user (Widgetic's id for the user). Send this or `managedUserExternalId`, not both.
|
|
182
182
|
# @option opts [String] :managed_user_external_id List only the canvases made for the managed user you registered with this `externalId` (your own identifier for the user). Send this or `managedUserId`, not both.
|
|
183
183
|
# @return [Array<(GetAllCanvasesResponse, Integer, Hash)>] GetAllCanvasesResponse data, response status code and response headers
|
|
184
|
-
def
|
|
184
|
+
def get_all_canvases_with_http_info(opts = {})
|
|
185
185
|
if @api_client.config.debugging
|
|
186
|
-
@api_client.config.logger.debug 'Calling API: CanvasesApi.
|
|
186
|
+
@api_client.config.logger.debug 'Calling API: CanvasesApi.get_all_canvases ...'
|
|
187
187
|
end
|
|
188
188
|
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
189
|
-
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CanvasesApi.
|
|
189
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CanvasesApi.get_all_canvases, must be greater than or equal to 1.'
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] > 100
|
|
193
|
-
fail ArgumentError, 'invalid value for "opts[:"size"]" when calling CanvasesApi.
|
|
193
|
+
fail ArgumentError, 'invalid value for "opts[:"size"]" when calling CanvasesApi.get_all_canvases, must be smaller than or equal to 100.'
|
|
194
194
|
end
|
|
195
195
|
|
|
196
196
|
if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] < 1
|
|
197
|
-
fail ArgumentError, 'invalid value for "opts[:"size"]" when calling CanvasesApi.
|
|
197
|
+
fail ArgumentError, 'invalid value for "opts[:"size"]" when calling CanvasesApi.get_all_canvases, must be greater than or equal to 1.'
|
|
198
198
|
end
|
|
199
199
|
|
|
200
200
|
if @api_client.config.client_side_validation && !opts[:'managed_user_external_id'].nil? && opts[:'managed_user_external_id'].to_s.length > 255
|
|
201
|
-
fail ArgumentError, 'invalid value for "opts[:"managed_user_external_id"]" when calling CanvasesApi.
|
|
201
|
+
fail ArgumentError, 'invalid value for "opts[:"managed_user_external_id"]" when calling CanvasesApi.get_all_canvases, the character length must be smaller than or equal to 255.'
|
|
202
202
|
end
|
|
203
203
|
|
|
204
204
|
# resource path
|
|
@@ -234,7 +234,7 @@ module ApiSdkRb
|
|
|
234
234
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
235
235
|
|
|
236
236
|
new_options = opts.merge(
|
|
237
|
-
:operation => :"CanvasesApi.
|
|
237
|
+
:operation => :"CanvasesApi.get_all_canvases",
|
|
238
238
|
:header_params => header_params,
|
|
239
239
|
:query_params => query_params,
|
|
240
240
|
:form_params => form_params,
|
|
@@ -245,7 +245,7 @@ module ApiSdkRb
|
|
|
245
245
|
|
|
246
246
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
247
247
|
if @api_client.config.debugging
|
|
248
|
-
@api_client.config.logger.debug "API called: CanvasesApi#
|
|
248
|
+
@api_client.config.logger.debug "API called: CanvasesApi#get_all_canvases\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
249
249
|
end
|
|
250
250
|
return data, status_code, headers
|
|
251
251
|
end
|
|
@@ -255,8 +255,8 @@ module ApiSdkRb
|
|
|
255
255
|
# @param id [String] ID of the canvas
|
|
256
256
|
# @param [Hash] opts the optional parameters
|
|
257
257
|
# @return [CanvasResponse]
|
|
258
|
-
def
|
|
259
|
-
data, _status_code, _headers =
|
|
258
|
+
def get_canvas(id, opts = {})
|
|
259
|
+
data, _status_code, _headers = get_canvas_with_http_info(id, opts)
|
|
260
260
|
data
|
|
261
261
|
end
|
|
262
262
|
|
|
@@ -265,13 +265,13 @@ module ApiSdkRb
|
|
|
265
265
|
# @param id [String] ID of the canvas
|
|
266
266
|
# @param [Hash] opts the optional parameters
|
|
267
267
|
# @return [Array<(CanvasResponse, Integer, Hash)>] CanvasResponse data, response status code and response headers
|
|
268
|
-
def
|
|
268
|
+
def get_canvas_with_http_info(id, opts = {})
|
|
269
269
|
if @api_client.config.debugging
|
|
270
|
-
@api_client.config.logger.debug 'Calling API: CanvasesApi.
|
|
270
|
+
@api_client.config.logger.debug 'Calling API: CanvasesApi.get_canvas ...'
|
|
271
271
|
end
|
|
272
272
|
# verify the required parameter 'id' is set
|
|
273
273
|
if @api_client.config.client_side_validation && id.nil?
|
|
274
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CanvasesApi.
|
|
274
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CanvasesApi.get_canvas"
|
|
275
275
|
end
|
|
276
276
|
# resource path
|
|
277
277
|
local_var_path = '/canvases/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
@@ -297,7 +297,7 @@ module ApiSdkRb
|
|
|
297
297
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
298
298
|
|
|
299
299
|
new_options = opts.merge(
|
|
300
|
-
:operation => :"CanvasesApi.
|
|
300
|
+
:operation => :"CanvasesApi.get_canvas",
|
|
301
301
|
:header_params => header_params,
|
|
302
302
|
:query_params => query_params,
|
|
303
303
|
:form_params => form_params,
|
|
@@ -308,7 +308,7 @@ module ApiSdkRb
|
|
|
308
308
|
|
|
309
309
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
310
310
|
if @api_client.config.debugging
|
|
311
|
-
@api_client.config.logger.debug "API called: CanvasesApi#
|
|
311
|
+
@api_client.config.logger.debug "API called: CanvasesApi#get_canvas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
312
312
|
end
|
|
313
313
|
return data, status_code, headers
|
|
314
314
|
end
|
|
@@ -319,8 +319,8 @@ module ApiSdkRb
|
|
|
319
319
|
# @param update_canvas_request [UpdateCanvasRequest]
|
|
320
320
|
# @param [Hash] opts the optional parameters
|
|
321
321
|
# @return [CanvasResponse]
|
|
322
|
-
def
|
|
323
|
-
data, _status_code, _headers =
|
|
322
|
+
def update_canvas(id, update_canvas_request, opts = {})
|
|
323
|
+
data, _status_code, _headers = update_canvas_with_http_info(id, update_canvas_request, opts)
|
|
324
324
|
data
|
|
325
325
|
end
|
|
326
326
|
|
|
@@ -330,17 +330,17 @@ module ApiSdkRb
|
|
|
330
330
|
# @param update_canvas_request [UpdateCanvasRequest]
|
|
331
331
|
# @param [Hash] opts the optional parameters
|
|
332
332
|
# @return [Array<(CanvasResponse, Integer, Hash)>] CanvasResponse data, response status code and response headers
|
|
333
|
-
def
|
|
333
|
+
def update_canvas_with_http_info(id, update_canvas_request, opts = {})
|
|
334
334
|
if @api_client.config.debugging
|
|
335
|
-
@api_client.config.logger.debug 'Calling API: CanvasesApi.
|
|
335
|
+
@api_client.config.logger.debug 'Calling API: CanvasesApi.update_canvas ...'
|
|
336
336
|
end
|
|
337
337
|
# verify the required parameter 'id' is set
|
|
338
338
|
if @api_client.config.client_side_validation && id.nil?
|
|
339
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CanvasesApi.
|
|
339
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CanvasesApi.update_canvas"
|
|
340
340
|
end
|
|
341
341
|
# verify the required parameter 'update_canvas_request' is set
|
|
342
342
|
if @api_client.config.client_side_validation && update_canvas_request.nil?
|
|
343
|
-
fail ArgumentError, "Missing the required parameter 'update_canvas_request' when calling CanvasesApi.
|
|
343
|
+
fail ArgumentError, "Missing the required parameter 'update_canvas_request' when calling CanvasesApi.update_canvas"
|
|
344
344
|
end
|
|
345
345
|
# resource path
|
|
346
346
|
local_var_path = '/canvases/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
@@ -371,7 +371,7 @@ module ApiSdkRb
|
|
|
371
371
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
372
372
|
|
|
373
373
|
new_options = opts.merge(
|
|
374
|
-
:operation => :"CanvasesApi.
|
|
374
|
+
:operation => :"CanvasesApi.update_canvas",
|
|
375
375
|
:header_params => header_params,
|
|
376
376
|
:query_params => query_params,
|
|
377
377
|
:form_params => form_params,
|
|
@@ -382,7 +382,7 @@ module ApiSdkRb
|
|
|
382
382
|
|
|
383
383
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
384
384
|
if @api_client.config.debugging
|
|
385
|
-
@api_client.config.logger.debug "API called: CanvasesApi#
|
|
385
|
+
@api_client.config.logger.debug "API called: CanvasesApi#update_canvas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
386
386
|
end
|
|
387
387
|
return data, status_code, headers
|
|
388
388
|
end
|