Skip to content

Commit 323cbb2

Browse files
committed
feat: updated to latest version of specifications
1 parent 635a5f4 commit 323cbb2

File tree

700 files changed

+14512
-1961
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

700 files changed

+14512
-1961
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kind: Added
2+
body: Updated to latest version of specifications
3+
time: 2025-06-27T09:59:13.691555671+02:00

Taskfile.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
version: 3
22
vars:
3-
codegenJar: "../rmf-codegen/rmf-codegen.jar"
43
apiSpecsDir: "../commercetools-api-reference/api-specs"
54
generatedDir: "./generated"
65
versionId: 1.5.0
76

87
tasks:
98
install:
9+
platform:
10+
os: linux
11+
arch: amd64
1012
cmds:
11-
- go install golang.org/x/tools/cmd/goimports@latest
13+
- bash install-script.sh
1214

1315
test:
1416
cmds:
@@ -64,7 +66,7 @@ tasks:
6466

6567
generate-api:
6668
cmds:
67-
- java -jar {{ .codegenJar }} generate {{ .apiSpecsDir }}/{{ .path }}/api.raml -b {{ .apiName }} -o {{ .generatedDir }}/ -t GO_CLIENT
69+
- rmf-codegen generate {{ .apiSpecsDir }}/{{ .path }}/api.raml -b {{ .apiName }} -o {{ .generatedDir }}/ -t GO_CLIENT
6870
- goimports -w {{ .generatedDir }}/{{ .apiName }}/
6971
- go fmt {{ .generatedDir }}/{{ .apiName }}/
7072
- rm -rf {{ .apiName }}/

connect/client_deployments_by_project_key_deployments.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ func (rb *ByProjectKeyDeploymentsRequestBuilder) WithKey(key string) *ByProjectK
2727
}
2828

2929
/**
30-
* Specific error codes:
30+
* Specific Error Codes:
3131
* - [ConnectorStagedNotPreviewable](ctp:connect:type:ConnectorStagedNotPreviewableError)
3232
* - [DeploymentUnsupportedRegion](ctp:connect:type:DeploymentUnsupportedRegionError)
3333
* - [DeploymentUnknownApplicationConfiguration](ctp:connect:type:DeploymentUnknownApplicationConfigurationError)
3434
* - [DeploymentUnknownApplicationConfigurationKey](ctp:connect:type:DeploymentUnknownApplicationConfigurationKeyError)
35-
* - [DeploymentApplicationDoNotBelong](ctp:connect:type:DeploymentApplicationDoNotBelongError)
36-
* - [DeploymentMustIncludeApplication](ctp:connect:type:DeploymentMustIncludeApplicationError)
37-
* - [DeploymentApplicationRequired](ctp:connect:type:DeploymentApplicationRequiredError)
35+
* - [DeploymentInvalidType](ctp:connect:type:DeploymentInvalidTypeError)
36+
* - [DeploymentProductionDeactivated](ctp:connect:type:DeploymentProductionDeactivatedError)
37+
* |
38+
* The `manage_api_clients:{projectKey}` scope is required if you use automatically generated API Client credentials.
3839
*
3940
*/
4041
func (rb *ByProjectKeyDeploymentsRequestBuilder) Post(body DeploymentDraft) *ByProjectKeyDeploymentsRequestMethodPost {

connect/client_deployments_by_project_key_deployments_get.go

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,15 @@ func (r *ByProjectKeyDeploymentsRequestMethodGet) Dump() map[string]interface{}
2727
}
2828

2929
type ByProjectKeyDeploymentsRequestMethodGetInput struct {
30-
IntegrationTypes []IntegrationType
31-
DeploymentType *DeploymentType
3230
Limit *int
3331
Offset *int
3432
Sort []string
33+
IntegrationTypes []IntegrationType
34+
DeploymentType *DeploymentType
3535
}
3636

3737
func (input *ByProjectKeyDeploymentsRequestMethodGetInput) Values() url.Values {
3838
values := url.Values{}
39-
for _, v := range input.IntegrationTypes {
40-
values.Add("integrationTypes", fmt.Sprintf("%v", v))
41-
}
42-
if input.DeploymentType != nil {
43-
values.Add("deploymentType", fmt.Sprintf("%v", *input.DeploymentType))
44-
}
4539
if input.Limit != nil {
4640
values.Add("limit", strconv.Itoa(*input.Limit))
4741
}
@@ -51,46 +45,52 @@ func (input *ByProjectKeyDeploymentsRequestMethodGetInput) Values() url.Values {
5145
for _, v := range input.Sort {
5246
values.Add("sort", fmt.Sprintf("%v", v))
5347
}
48+
for _, v := range input.IntegrationTypes {
49+
values.Add("integrationTypes", fmt.Sprintf("%v", v))
50+
}
51+
if input.DeploymentType != nil {
52+
values.Add("deploymentType", fmt.Sprintf("%v", *input.DeploymentType))
53+
}
5454
return values
5555
}
5656

57-
func (rb *ByProjectKeyDeploymentsRequestMethodGet) IntegrationTypes(v []IntegrationType) *ByProjectKeyDeploymentsRequestMethodGet {
57+
func (rb *ByProjectKeyDeploymentsRequestMethodGet) Limit(v int) *ByProjectKeyDeploymentsRequestMethodGet {
5858
if rb.params == nil {
5959
rb.params = &ByProjectKeyDeploymentsRequestMethodGetInput{}
6060
}
61-
rb.params.IntegrationTypes = v
61+
rb.params.Limit = &v
6262
return rb
6363
}
6464

65-
func (rb *ByProjectKeyDeploymentsRequestMethodGet) DeploymentType(v DeploymentType) *ByProjectKeyDeploymentsRequestMethodGet {
65+
func (rb *ByProjectKeyDeploymentsRequestMethodGet) Offset(v int) *ByProjectKeyDeploymentsRequestMethodGet {
6666
if rb.params == nil {
6767
rb.params = &ByProjectKeyDeploymentsRequestMethodGetInput{}
6868
}
69-
rb.params.DeploymentType = &v
69+
rb.params.Offset = &v
7070
return rb
7171
}
7272

73-
func (rb *ByProjectKeyDeploymentsRequestMethodGet) Limit(v int) *ByProjectKeyDeploymentsRequestMethodGet {
73+
func (rb *ByProjectKeyDeploymentsRequestMethodGet) Sort(v []string) *ByProjectKeyDeploymentsRequestMethodGet {
7474
if rb.params == nil {
7575
rb.params = &ByProjectKeyDeploymentsRequestMethodGetInput{}
7676
}
77-
rb.params.Limit = &v
77+
rb.params.Sort = v
7878
return rb
7979
}
8080

81-
func (rb *ByProjectKeyDeploymentsRequestMethodGet) Offset(v int) *ByProjectKeyDeploymentsRequestMethodGet {
81+
func (rb *ByProjectKeyDeploymentsRequestMethodGet) IntegrationTypes(v []IntegrationType) *ByProjectKeyDeploymentsRequestMethodGet {
8282
if rb.params == nil {
8383
rb.params = &ByProjectKeyDeploymentsRequestMethodGetInput{}
8484
}
85-
rb.params.Offset = &v
85+
rb.params.IntegrationTypes = v
8686
return rb
8787
}
8888

89-
func (rb *ByProjectKeyDeploymentsRequestMethodGet) Sort(v []string) *ByProjectKeyDeploymentsRequestMethodGet {
89+
func (rb *ByProjectKeyDeploymentsRequestMethodGet) DeploymentType(v DeploymentType) *ByProjectKeyDeploymentsRequestMethodGet {
9090
if rb.params == nil {
9191
rb.params = &ByProjectKeyDeploymentsRequestMethodGetInput{}
9292
}
93-
rb.params.Sort = v
93+
rb.params.DeploymentType = &v
9494
return rb
9595
}
9696

connect/client_deployments_by_project_key_deployments_post.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@ func (rb *ByProjectKeyDeploymentsRequestMethodPost) WithHeaders(headers http.Hea
2929
}
3030

3131
/**
32-
* Specific error codes:
32+
* Specific Error Codes:
3333
* - [ConnectorStagedNotPreviewable](ctp:connect:type:ConnectorStagedNotPreviewableError)
3434
* - [DeploymentUnsupportedRegion](ctp:connect:type:DeploymentUnsupportedRegionError)
3535
* - [DeploymentUnknownApplicationConfiguration](ctp:connect:type:DeploymentUnknownApplicationConfigurationError)
3636
* - [DeploymentUnknownApplicationConfigurationKey](ctp:connect:type:DeploymentUnknownApplicationConfigurationKeyError)
37-
* - [DeploymentApplicationDoNotBelong](ctp:connect:type:DeploymentApplicationDoNotBelongError)
38-
* - [DeploymentMustIncludeApplication](ctp:connect:type:DeploymentMustIncludeApplicationError)
39-
* - [DeploymentApplicationRequired](ctp:connect:type:DeploymentApplicationRequiredError)
37+
* - [DeploymentInvalidType](ctp:connect:type:DeploymentInvalidTypeError)
38+
* - [DeploymentProductionDeactivated](ctp:connect:type:DeploymentProductionDeactivatedError)
39+
* |
40+
* The `manage_api_clients:{projectKey}` scope is required if you use automatically generated API Client credentials.
4041
*
4142
*/
4243
func (rb *ByProjectKeyDeploymentsRequestMethodPost) Execute(ctx context.Context) (result *Deployment, err error) {

connect/client_drafts_connectors_drafts_get.go

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,15 @@ func (r *ConnectorsDraftsRequestMethodGet) Dump() map[string]interface{} {
2727
}
2828

2929
type ConnectorsDraftsRequestMethodGetInput struct {
30-
IntegrationTypes []IntegrationType
3130
Limit *int
3231
Offset *int
3332
Sort []string
33+
IsPrivate *bool
34+
IntegrationTypes []IntegrationType
3435
}
3536

3637
func (input *ConnectorsDraftsRequestMethodGetInput) Values() url.Values {
3738
values := url.Values{}
38-
for _, v := range input.IntegrationTypes {
39-
values.Add("integrationTypes", fmt.Sprintf("%v", v))
40-
}
4139
if input.Limit != nil {
4240
values.Add("limit", strconv.Itoa(*input.Limit))
4341
}
@@ -47,15 +45,17 @@ func (input *ConnectorsDraftsRequestMethodGetInput) Values() url.Values {
4745
for _, v := range input.Sort {
4846
values.Add("sort", fmt.Sprintf("%v", v))
4947
}
50-
return values
51-
}
52-
53-
func (rb *ConnectorsDraftsRequestMethodGet) IntegrationTypes(v []IntegrationType) *ConnectorsDraftsRequestMethodGet {
54-
if rb.params == nil {
55-
rb.params = &ConnectorsDraftsRequestMethodGetInput{}
48+
if input.IsPrivate != nil {
49+
if *input.IsPrivate {
50+
values.Add("isPrivate", "true")
51+
} else {
52+
values.Add("isPrivate", "false")
53+
}
5654
}
57-
rb.params.IntegrationTypes = v
58-
return rb
55+
for _, v := range input.IntegrationTypes {
56+
values.Add("integrationTypes", fmt.Sprintf("%v", v))
57+
}
58+
return values
5959
}
6060

6161
func (rb *ConnectorsDraftsRequestMethodGet) Limit(v int) *ConnectorsDraftsRequestMethodGet {
@@ -82,6 +82,22 @@ func (rb *ConnectorsDraftsRequestMethodGet) Sort(v []string) *ConnectorsDraftsRe
8282
return rb
8383
}
8484

85+
func (rb *ConnectorsDraftsRequestMethodGet) IsPrivate(v bool) *ConnectorsDraftsRequestMethodGet {
86+
if rb.params == nil {
87+
rb.params = &ConnectorsDraftsRequestMethodGetInput{}
88+
}
89+
rb.params.IsPrivate = &v
90+
return rb
91+
}
92+
93+
func (rb *ConnectorsDraftsRequestMethodGet) IntegrationTypes(v []IntegrationType) *ConnectorsDraftsRequestMethodGet {
94+
if rb.params == nil {
95+
rb.params = &ConnectorsDraftsRequestMethodGetInput{}
96+
}
97+
rb.params.IntegrationTypes = v
98+
return rb
99+
}
100+
85101
func (rb *ConnectorsDraftsRequestMethodGet) WithQueryParams(input ConnectorsDraftsRequestMethodGetInput) *ConnectorsDraftsRequestMethodGet {
86102
rb.params = &input
87103
return rb

0 commit comments

Comments
 (0)