@homespot-sdk/api 0.0.632 → 0.0.634

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.
Files changed (103) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +27 -13
  3. package/dist/apis/AgencyControllerApi.d.ts +0 -14
  4. package/dist/apis/AgencyControllerApi.js +10 -38
  5. package/dist/apis/AgencyQueryControllerApi.d.ts +53 -1
  6. package/dist/apis/AgencyQueryControllerApi.js +79 -1
  7. package/dist/apis/InvitationControllerApi.d.ts +0 -2
  8. package/dist/apis/InvitationControllerApi.js +5 -7
  9. package/dist/apis/InvitationQueryControllerApi.d.ts +27 -5
  10. package/dist/apis/InvitationQueryControllerApi.js +45 -5
  11. package/dist/apis/MemberQueryControllerApi.d.ts +46 -0
  12. package/dist/apis/MemberQueryControllerApi.js +67 -0
  13. package/dist/apis/index.d.ts +1 -0
  14. package/dist/apis/index.js +1 -0
  15. package/dist/esm/apis/AgencyControllerApi.d.ts +0 -14
  16. package/dist/esm/apis/AgencyControllerApi.js +10 -38
  17. package/dist/esm/apis/AgencyQueryControllerApi.d.ts +53 -1
  18. package/dist/esm/apis/AgencyQueryControllerApi.js +79 -1
  19. package/dist/esm/apis/InvitationControllerApi.d.ts +0 -2
  20. package/dist/esm/apis/InvitationControllerApi.js +5 -7
  21. package/dist/esm/apis/InvitationQueryControllerApi.d.ts +27 -5
  22. package/dist/esm/apis/InvitationQueryControllerApi.js +46 -6
  23. package/dist/esm/apis/MemberQueryControllerApi.d.ts +46 -0
  24. package/dist/esm/apis/MemberQueryControllerApi.js +63 -0
  25. package/dist/esm/apis/index.d.ts +1 -0
  26. package/dist/esm/apis/index.js +1 -0
  27. package/dist/esm/models/AgencyPeekViewResponse.d.ts +102 -0
  28. package/dist/esm/models/AgencyPeekViewResponse.js +88 -0
  29. package/dist/esm/models/InvitationDetailsRequest.d.ts +38 -0
  30. package/dist/esm/models/InvitationDetailsRequest.js +47 -0
  31. package/dist/esm/models/InvitationDetailsResponse.d.ts +72 -0
  32. package/dist/esm/models/InvitationDetailsResponse.js +70 -0
  33. package/dist/esm/models/InviteMemberRequest.d.ts +3 -2
  34. package/dist/esm/models/InviteMemberRequest.js +3 -2
  35. package/dist/esm/models/MemberViewResponse.d.ts +74 -0
  36. package/dist/esm/models/MemberViewResponse.js +69 -0
  37. package/dist/esm/models/PageMetadata.d.ts +50 -0
  38. package/dist/esm/models/PageMetadata.js +47 -0
  39. package/dist/esm/models/Pageable.d.ts +44 -0
  40. package/dist/esm/models/Pageable.js +45 -0
  41. package/dist/esm/models/PagedModelAgencyPeekViewResponse.d.ts +40 -0
  42. package/dist/esm/models/PagedModelAgencyPeekViewResponse.js +45 -0
  43. package/dist/esm/models/PagedModelInvitationViewResponse.d.ts +40 -0
  44. package/dist/esm/models/PagedModelInvitationViewResponse.js +45 -0
  45. package/dist/esm/models/PagedModelMemberViewResponse.d.ts +40 -0
  46. package/dist/esm/models/PagedModelMemberViewResponse.js +45 -0
  47. package/dist/esm/models/index.d.ts +9 -0
  48. package/dist/esm/models/index.js +9 -0
  49. package/dist/models/AgencyPeekViewResponse.d.ts +102 -0
  50. package/dist/models/AgencyPeekViewResponse.js +96 -0
  51. package/dist/models/InvitationDetailsRequest.d.ts +38 -0
  52. package/dist/models/InvitationDetailsRequest.js +54 -0
  53. package/dist/models/InvitationDetailsResponse.d.ts +72 -0
  54. package/dist/models/InvitationDetailsResponse.js +78 -0
  55. package/dist/models/InviteMemberRequest.d.ts +3 -2
  56. package/dist/models/InviteMemberRequest.js +3 -2
  57. package/dist/models/MemberViewResponse.d.ts +74 -0
  58. package/dist/models/MemberViewResponse.js +76 -0
  59. package/dist/models/PageMetadata.d.ts +50 -0
  60. package/dist/models/PageMetadata.js +54 -0
  61. package/dist/models/Pageable.d.ts +44 -0
  62. package/dist/models/Pageable.js +52 -0
  63. package/dist/models/PagedModelAgencyPeekViewResponse.d.ts +40 -0
  64. package/dist/models/PagedModelAgencyPeekViewResponse.js +52 -0
  65. package/dist/models/PagedModelInvitationViewResponse.d.ts +40 -0
  66. package/dist/models/PagedModelInvitationViewResponse.js +52 -0
  67. package/dist/models/PagedModelMemberViewResponse.d.ts +40 -0
  68. package/dist/models/PagedModelMemberViewResponse.js +52 -0
  69. package/dist/models/index.d.ts +9 -0
  70. package/dist/models/index.js +9 -0
  71. package/docs/AgencyControllerApi.md +20 -41
  72. package/docs/AgencyPeekViewResponse.md +54 -0
  73. package/docs/AgencyQueryControllerApi.md +143 -0
  74. package/docs/InvitationControllerApi.md +3 -6
  75. package/docs/InvitationDetailsRequest.md +36 -0
  76. package/docs/InvitationDetailsResponse.md +44 -0
  77. package/docs/InvitationQueryControllerApi.md +78 -5
  78. package/docs/InviteMemberRequest.md +1 -1
  79. package/docs/MemberQueryControllerApi.md +78 -0
  80. package/docs/MemberViewResponse.md +48 -0
  81. package/docs/PageMetadata.md +40 -0
  82. package/docs/Pageable.md +38 -0
  83. package/docs/PagedModelAgencyPeekViewResponse.md +36 -0
  84. package/docs/PagedModelInvitationViewResponse.md +36 -0
  85. package/docs/PagedModelMemberViewResponse.md +36 -0
  86. package/package.json +1 -1
  87. package/src/apis/AgencyControllerApi.ts +10 -80
  88. package/src/apis/AgencyQueryControllerApi.ts +143 -0
  89. package/src/apis/InvitationControllerApi.ts +6 -13
  90. package/src/apis/InvitationQueryControllerApi.ts +91 -12
  91. package/src/apis/MemberQueryControllerApi.ts +102 -0
  92. package/src/apis/index.ts +1 -0
  93. package/src/models/AgencyPeekViewResponse.ts +167 -0
  94. package/src/models/InvitationDetailsRequest.ts +75 -0
  95. package/src/models/InvitationDetailsResponse.ts +123 -0
  96. package/src/models/InviteMemberRequest.ts +12 -4
  97. package/src/models/MemberViewResponse.ts +128 -0
  98. package/src/models/PageMetadata.ts +89 -0
  99. package/src/models/Pageable.ts +81 -0
  100. package/src/models/PagedModelAgencyPeekViewResponse.ts +88 -0
  101. package/src/models/PagedModelInvitationViewResponse.ts +88 -0
  102. package/src/models/PagedModelMemberViewResponse.ts +88 -0
  103. package/src/models/index.ts +9 -0
@@ -5,15 +5,25 @@ README.md
5
5
  docs/AddressRequest.md
6
6
  docs/AddressViewResponse.md
7
7
  docs/AgencyControllerApi.md
8
+ docs/AgencyPeekViewResponse.md
8
9
  docs/AgencyQueryControllerApi.md
9
10
  docs/AgencyViewResponse.md
10
11
  docs/CreateAgencyRequest.md
11
12
  docs/IdResponse.md
12
13
  docs/InvitationControllerApi.md
14
+ docs/InvitationDetailsRequest.md
15
+ docs/InvitationDetailsResponse.md
13
16
  docs/InvitationQueryControllerApi.md
14
17
  docs/InvitationViewResponse.md
15
18
  docs/InviteMemberRequest.md
19
+ docs/MemberQueryControllerApi.md
20
+ docs/MemberViewResponse.md
16
21
  docs/OrganizationSummaryViewResponse.md
22
+ docs/PageMetadata.md
23
+ docs/Pageable.md
24
+ docs/PagedModelAgencyPeekViewResponse.md
25
+ docs/PagedModelInvitationViewResponse.md
26
+ docs/PagedModelMemberViewResponse.md
17
27
  docs/PhotoRequest.md
18
28
  docs/PresignedUrlResponse.md
19
29
  docs/PresignedUrlsResponse.md
@@ -29,17 +39,27 @@ src/apis/AgencyControllerApi.ts
29
39
  src/apis/AgencyQueryControllerApi.ts
30
40
  src/apis/InvitationControllerApi.ts
31
41
  src/apis/InvitationQueryControllerApi.ts
42
+ src/apis/MemberQueryControllerApi.ts
32
43
  src/apis/UserQueryControllerApi.ts
33
44
  src/apis/index.ts
34
45
  src/index.ts
35
46
  src/models/AddressRequest.ts
36
47
  src/models/AddressViewResponse.ts
48
+ src/models/AgencyPeekViewResponse.ts
37
49
  src/models/AgencyViewResponse.ts
38
50
  src/models/CreateAgencyRequest.ts
39
51
  src/models/IdResponse.ts
52
+ src/models/InvitationDetailsRequest.ts
53
+ src/models/InvitationDetailsResponse.ts
40
54
  src/models/InvitationViewResponse.ts
41
55
  src/models/InviteMemberRequest.ts
56
+ src/models/MemberViewResponse.ts
42
57
  src/models/OrganizationSummaryViewResponse.ts
58
+ src/models/PageMetadata.ts
59
+ src/models/Pageable.ts
60
+ src/models/PagedModelAgencyPeekViewResponse.ts
61
+ src/models/PagedModelInvitationViewResponse.ts
62
+ src/models/PagedModelMemberViewResponse.ts
43
63
  src/models/PhotoRequest.ts
44
64
  src/models/PresignedUrlResponse.ts
45
65
  src/models/PresignedUrlsResponse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @homespot-sdk/api@0.0.632
1
+ # @homespot-sdk/api@0.0.634
2
2
 
3
3
  A TypeScript SDK client for the gateway.dev.homespot.ge API.
4
4
 
@@ -55,19 +55,23 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
55
55
  | Class | Method | HTTP request | Description
56
56
  | ----- | ------ | ------------ | -------------
57
57
  *AgencyControllerApi* | [**activateAgency**](docs/AgencyControllerApi.md#activateagency) | **POST** /agency/{agencyId}/activate |
58
- *AgencyControllerApi* | [**addRole**](docs/AgencyControllerApi.md#addrole) | **POST** /agency/{agencyId}/roles |
59
- *AgencyControllerApi* | [**correctRegistrationDetails**](docs/AgencyControllerApi.md#correctregistrationdetails) | **POST** /agency/{agencyId} |
58
+ *AgencyControllerApi* | [**addRole**](docs/AgencyControllerApi.md#addrole) | **POST** /agency/roles |
59
+ *AgencyControllerApi* | [**correctRegistrationDetails**](docs/AgencyControllerApi.md#correctregistrationdetails) | **PUT** /agency/{agencyId}/details |
60
60
  *AgencyControllerApi* | [**createAgency**](docs/AgencyControllerApi.md#createagencyoperation) | **POST** /agency |
61
- *AgencyControllerApi* | [**generatePresignedUrl**](docs/AgencyControllerApi.md#generatepresignedurl) | **PUT** /agency/{agencyId}/presigned-urls |
62
- *AgencyControllerApi* | [**notifyCoverUploadCompletion**](docs/AgencyControllerApi.md#notifycoveruploadcompletion) | **POST** /agency/{agencyId}/presigned-urls/notify/cover |
63
- *AgencyControllerApi* | [**notifyLogoUploadCompletion**](docs/AgencyControllerApi.md#notifylogouploadcompletion) | **POST** /agency/{agencyId}/presigned-urls/notify/logo |
64
- *AgencyControllerApi* | [**removeRole**](docs/AgencyControllerApi.md#removerole) | **DELETE** /agency/{agencyId}/roles/{roleId} |
65
- *AgencyControllerApi* | [**updateRole**](docs/AgencyControllerApi.md#updaterole) | **PUT** /agency/{agencyId}/roles/{roleId} |
66
- *AgencyControllerApi* | [**updateSocialUrls**](docs/AgencyControllerApi.md#updatesocialurls) | **PUT** /agency/{agencyId}/social-media |
61
+ *AgencyControllerApi* | [**generatePresignedUrl**](docs/AgencyControllerApi.md#generatepresignedurl) | **POST** /agency/presigned-urls |
62
+ *AgencyControllerApi* | [**notifyCoverUploadCompletion**](docs/AgencyControllerApi.md#notifycoveruploadcompletion) | **POST** /agency/presigned-urls/notify/cover |
63
+ *AgencyControllerApi* | [**notifyLogoUploadCompletion**](docs/AgencyControllerApi.md#notifylogouploadcompletion) | **POST** /agency/presigned-urls/notify/logo |
64
+ *AgencyControllerApi* | [**removeRole**](docs/AgencyControllerApi.md#removerole) | **DELETE** /agency/roles/{roleId} |
65
+ *AgencyControllerApi* | [**updateRole**](docs/AgencyControllerApi.md#updaterole) | **PUT** /agency/roles/{roleId} |
66
+ *AgencyControllerApi* | [**updateSocialUrls**](docs/AgencyControllerApi.md#updatesocialurls) | **PUT** /agency/social-media |
67
67
  *AgencyQueryControllerApi* | [**getAgency**](docs/AgencyQueryControllerApi.md#getagency) | **GET** /agency/{agencyId} |
68
- *InvitationControllerApi* | [**inviteAccepted**](docs/InvitationControllerApi.md#inviteaccepted) | **POST** /agency/{agencyId}/invitation/{invitationId} |
69
- *InvitationControllerApi* | [**inviteMember**](docs/InvitationControllerApi.md#invitememberoperation) | **POST** /agency/{agencyId}/invitation |
70
- *InvitationQueryControllerApi* | [**getAllInvitations**](docs/InvitationQueryControllerApi.md#getallinvitations) | **GET** /agency/{agencyId}/invitation |
68
+ *AgencyQueryControllerApi* | [**getAgencyBySubdomain**](docs/AgencyQueryControllerApi.md#getagencybysubdomain) | **GET** /agency/subdomain/{subDomain} |
69
+ *AgencyQueryControllerApi* | [**getAllAgencies**](docs/AgencyQueryControllerApi.md#getallagencies) | **GET** /agency |
70
+ *InvitationControllerApi* | [**inviteAccepted**](docs/InvitationControllerApi.md#inviteaccepted) | **POST** /invitation/{invitationId} |
71
+ *InvitationControllerApi* | [**inviteMember**](docs/InvitationControllerApi.md#invitememberoperation) | **POST** /invitation |
72
+ *InvitationQueryControllerApi* | [**getAllInvitations**](docs/InvitationQueryControllerApi.md#getallinvitations) | **GET** /invitation |
73
+ *InvitationQueryControllerApi* | [**getInvitationDetails**](docs/InvitationQueryControllerApi.md#getinvitationdetails) | **GET** /invitation/{invitationId} |
74
+ *MemberQueryControllerApi* | [**getAllMembers**](docs/MemberQueryControllerApi.md#getallmembers) | **GET** /member |
71
75
  *UserQueryControllerApi* | [**getMe**](docs/UserQueryControllerApi.md#getme) | **GET** /user/me |
72
76
 
73
77
 
@@ -75,12 +79,21 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
75
79
 
76
80
  - [AddressRequest](docs/AddressRequest.md)
77
81
  - [AddressViewResponse](docs/AddressViewResponse.md)
82
+ - [AgencyPeekViewResponse](docs/AgencyPeekViewResponse.md)
78
83
  - [AgencyViewResponse](docs/AgencyViewResponse.md)
79
84
  - [CreateAgencyRequest](docs/CreateAgencyRequest.md)
80
85
  - [IdResponse](docs/IdResponse.md)
86
+ - [InvitationDetailsRequest](docs/InvitationDetailsRequest.md)
87
+ - [InvitationDetailsResponse](docs/InvitationDetailsResponse.md)
81
88
  - [InvitationViewResponse](docs/InvitationViewResponse.md)
82
89
  - [InviteMemberRequest](docs/InviteMemberRequest.md)
90
+ - [MemberViewResponse](docs/MemberViewResponse.md)
83
91
  - [OrganizationSummaryViewResponse](docs/OrganizationSummaryViewResponse.md)
92
+ - [PageMetadata](docs/PageMetadata.md)
93
+ - [Pageable](docs/Pageable.md)
94
+ - [PagedModelAgencyPeekViewResponse](docs/PagedModelAgencyPeekViewResponse.md)
95
+ - [PagedModelInvitationViewResponse](docs/PagedModelInvitationViewResponse.md)
96
+ - [PagedModelMemberViewResponse](docs/PagedModelMemberViewResponse.md)
84
97
  - [PhotoRequest](docs/PhotoRequest.md)
85
98
  - [PresignedUrlResponse](docs/PresignedUrlResponse.md)
86
99
  - [PresignedUrlsResponse](docs/PresignedUrlsResponse.md)
@@ -105,6 +118,7 @@ Authentication schemes defined for the API:
105
118
  - **Scopes**:
106
119
  - `openid`: OpenID Connect
107
120
  - `profile`: User profile
121
+ - `organization`: Organization profile
108
122
 
109
123
  ## About
110
124
 
@@ -113,7 +127,7 @@ and is automatically generated by the
113
127
  [OpenAPI Generator](https://openapi-generator.tech) project:
114
128
 
115
129
  - API version: `v1`
116
- - Package version: `0.0.632`
130
+ - Package version: `0.0.634`
117
131
  - Generator version: `7.18.0`
118
132
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
119
133
 
@@ -15,7 +15,6 @@ export interface ActivateAgencyRequest {
15
15
  agencyId: string;
16
16
  }
17
17
  export interface AddRoleRequest {
18
- agencyId: string;
19
18
  rolesRequest: RolesRequest;
20
19
  }
21
20
  export interface CorrectRegistrationDetailsRequest {
@@ -26,28 +25,22 @@ export interface CreateAgencyOperationRequest {
26
25
  createAgencyRequest: CreateAgencyRequest;
27
26
  }
28
27
  export interface GeneratePresignedUrlRequest {
29
- agencyId: string;
30
28
  photoRequest: PhotoRequest;
31
29
  }
32
30
  export interface NotifyCoverUploadCompletionRequest {
33
- agencyId: string;
34
31
  photoRequest: PhotoRequest;
35
32
  }
36
33
  export interface NotifyLogoUploadCompletionRequest {
37
- agencyId: string;
38
34
  photoRequest: PhotoRequest;
39
35
  }
40
36
  export interface RemoveRoleRequest {
41
- agencyId: string;
42
37
  roleId: number;
43
38
  }
44
39
  export interface UpdateRoleRequest {
45
- agencyId: string;
46
40
  roleId: number;
47
41
  rolesRequest: RolesRequest;
48
42
  }
49
43
  export interface UpdateSocialUrlsRequest {
50
- agencyId: string;
51
44
  socialMediasRequest: SocialMediasRequest;
52
45
  }
53
46
  /**
@@ -70,7 +63,6 @@ export interface AgencyControllerApiInterface {
70
63
  activateAgency(requestParameters: ActivateAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
71
64
  /**
72
65
  *
73
- * @param {string} agencyId
74
66
  * @param {RolesRequest} rolesRequest
75
67
  * @param {*} [options] Override http request option.
76
68
  * @throws {RequiredError}
@@ -105,7 +97,6 @@ export interface AgencyControllerApiInterface {
105
97
  createAgency(requestParameters: CreateAgencyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdResponse>;
106
98
  /**
107
99
  *
108
- * @param {string} agencyId
109
100
  * @param {PhotoRequest} photoRequest
110
101
  * @param {*} [options] Override http request option.
111
102
  * @throws {RequiredError}
@@ -117,7 +108,6 @@ export interface AgencyControllerApiInterface {
117
108
  generatePresignedUrl(requestParameters: GeneratePresignedUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PresignedUrlsResponse>;
118
109
  /**
119
110
  *
120
- * @param {string} agencyId
121
111
  * @param {PhotoRequest} photoRequest
122
112
  * @param {*} [options] Override http request option.
123
113
  * @throws {RequiredError}
@@ -129,7 +119,6 @@ export interface AgencyControllerApiInterface {
129
119
  notifyCoverUploadCompletion(requestParameters: NotifyCoverUploadCompletionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadAcknowledgmentResponse>;
130
120
  /**
131
121
  *
132
- * @param {string} agencyId
133
122
  * @param {PhotoRequest} photoRequest
134
123
  * @param {*} [options] Override http request option.
135
124
  * @throws {RequiredError}
@@ -141,7 +130,6 @@ export interface AgencyControllerApiInterface {
141
130
  notifyLogoUploadCompletion(requestParameters: NotifyLogoUploadCompletionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadAcknowledgmentResponse>;
142
131
  /**
143
132
  *
144
- * @param {string} agencyId
145
133
  * @param {number} roleId
146
134
  * @param {*} [options] Override http request option.
147
135
  * @throws {RequiredError}
@@ -153,7 +141,6 @@ export interface AgencyControllerApiInterface {
153
141
  removeRole(requestParameters: RemoveRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
154
142
  /**
155
143
  *
156
- * @param {string} agencyId
157
144
  * @param {number} roleId
158
145
  * @param {RolesRequest} rolesRequest
159
146
  * @param {*} [options] Override http request option.
@@ -166,7 +153,6 @@ export interface AgencyControllerApiInterface {
166
153
  updateRole(requestParameters: UpdateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
167
154
  /**
168
155
  *
169
- * @param {string} agencyId
170
156
  * @param {SocialMediasRequest} socialMediasRequest
171
157
  * @param {*} [options] Override http request option.
172
158
  * @throws {RequiredError}
@@ -64,9 +64,6 @@ class AgencyControllerApi extends runtime.BaseAPI {
64
64
  */
65
65
  addRoleRaw(requestParameters, initOverrides) {
66
66
  return __awaiter(this, void 0, void 0, function* () {
67
- if (requestParameters['agencyId'] == null) {
68
- throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling addRole().');
69
- }
70
67
  if (requestParameters['rolesRequest'] == null) {
71
68
  throw new runtime.RequiredError('rolesRequest', 'Required parameter "rolesRequest" was null or undefined when calling addRole().');
72
69
  }
@@ -77,8 +74,7 @@ class AgencyControllerApi extends runtime.BaseAPI {
77
74
  // oauth required
78
75
  headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
79
76
  }
80
- let urlPath = `/agency/{agencyId}/roles`;
81
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
77
+ let urlPath = `/agency/roles`;
82
78
  const response = yield this.request({
83
79
  path: urlPath,
84
80
  method: 'POST',
@@ -113,11 +109,11 @@ class AgencyControllerApi extends runtime.BaseAPI {
113
109
  // oauth required
114
110
  headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
115
111
  }
116
- let urlPath = `/agency/{agencyId}`;
112
+ let urlPath = `/agency/{agencyId}/details`;
117
113
  urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
118
114
  const response = yield this.request({
119
115
  path: urlPath,
120
- method: 'POST',
116
+ method: 'PUT',
121
117
  headers: headerParameters,
122
118
  query: queryParameters,
123
119
  body: (0, index_1.CreateAgencyRequestToJSON)(requestParameters['createAgencyRequest']),
@@ -169,9 +165,6 @@ class AgencyControllerApi extends runtime.BaseAPI {
169
165
  */
170
166
  generatePresignedUrlRaw(requestParameters, initOverrides) {
171
167
  return __awaiter(this, void 0, void 0, function* () {
172
- if (requestParameters['agencyId'] == null) {
173
- throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling generatePresignedUrl().');
174
- }
175
168
  if (requestParameters['photoRequest'] == null) {
176
169
  throw new runtime.RequiredError('photoRequest', 'Required parameter "photoRequest" was null or undefined when calling generatePresignedUrl().');
177
170
  }
@@ -182,11 +175,10 @@ class AgencyControllerApi extends runtime.BaseAPI {
182
175
  // oauth required
183
176
  headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
184
177
  }
185
- let urlPath = `/agency/{agencyId}/presigned-urls`;
186
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
178
+ let urlPath = `/agency/presigned-urls`;
187
179
  const response = yield this.request({
188
180
  path: urlPath,
189
- method: 'PUT',
181
+ method: 'POST',
190
182
  headers: headerParameters,
191
183
  query: queryParameters,
192
184
  body: (0, index_1.PhotoRequestToJSON)(requestParameters['photoRequest']),
@@ -206,9 +198,6 @@ class AgencyControllerApi extends runtime.BaseAPI {
206
198
  */
207
199
  notifyCoverUploadCompletionRaw(requestParameters, initOverrides) {
208
200
  return __awaiter(this, void 0, void 0, function* () {
209
- if (requestParameters['agencyId'] == null) {
210
- throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling notifyCoverUploadCompletion().');
211
- }
212
201
  if (requestParameters['photoRequest'] == null) {
213
202
  throw new runtime.RequiredError('photoRequest', 'Required parameter "photoRequest" was null or undefined when calling notifyCoverUploadCompletion().');
214
203
  }
@@ -219,8 +208,7 @@ class AgencyControllerApi extends runtime.BaseAPI {
219
208
  // oauth required
220
209
  headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
221
210
  }
222
- let urlPath = `/agency/{agencyId}/presigned-urls/notify/cover`;
223
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
211
+ let urlPath = `/agency/presigned-urls/notify/cover`;
224
212
  const response = yield this.request({
225
213
  path: urlPath,
226
214
  method: 'POST',
@@ -243,9 +231,6 @@ class AgencyControllerApi extends runtime.BaseAPI {
243
231
  */
244
232
  notifyLogoUploadCompletionRaw(requestParameters, initOverrides) {
245
233
  return __awaiter(this, void 0, void 0, function* () {
246
- if (requestParameters['agencyId'] == null) {
247
- throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling notifyLogoUploadCompletion().');
248
- }
249
234
  if (requestParameters['photoRequest'] == null) {
250
235
  throw new runtime.RequiredError('photoRequest', 'Required parameter "photoRequest" was null or undefined when calling notifyLogoUploadCompletion().');
251
236
  }
@@ -256,8 +241,7 @@ class AgencyControllerApi extends runtime.BaseAPI {
256
241
  // oauth required
257
242
  headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
258
243
  }
259
- let urlPath = `/agency/{agencyId}/presigned-urls/notify/logo`;
260
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
244
+ let urlPath = `/agency/presigned-urls/notify/logo`;
261
245
  const response = yield this.request({
262
246
  path: urlPath,
263
247
  method: 'POST',
@@ -280,9 +264,6 @@ class AgencyControllerApi extends runtime.BaseAPI {
280
264
  */
281
265
  removeRoleRaw(requestParameters, initOverrides) {
282
266
  return __awaiter(this, void 0, void 0, function* () {
283
- if (requestParameters['agencyId'] == null) {
284
- throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling removeRole().');
285
- }
286
267
  if (requestParameters['roleId'] == null) {
287
268
  throw new runtime.RequiredError('roleId', 'Required parameter "roleId" was null or undefined when calling removeRole().');
288
269
  }
@@ -292,8 +273,7 @@ class AgencyControllerApi extends runtime.BaseAPI {
292
273
  // oauth required
293
274
  headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
294
275
  }
295
- let urlPath = `/agency/{agencyId}/roles/{roleId}`;
296
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
276
+ let urlPath = `/agency/roles/{roleId}`;
297
277
  urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
298
278
  const response = yield this.request({
299
279
  path: urlPath,
@@ -315,9 +295,6 @@ class AgencyControllerApi extends runtime.BaseAPI {
315
295
  */
316
296
  updateRoleRaw(requestParameters, initOverrides) {
317
297
  return __awaiter(this, void 0, void 0, function* () {
318
- if (requestParameters['agencyId'] == null) {
319
- throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling updateRole().');
320
- }
321
298
  if (requestParameters['roleId'] == null) {
322
299
  throw new runtime.RequiredError('roleId', 'Required parameter "roleId" was null or undefined when calling updateRole().');
323
300
  }
@@ -331,8 +308,7 @@ class AgencyControllerApi extends runtime.BaseAPI {
331
308
  // oauth required
332
309
  headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
333
310
  }
334
- let urlPath = `/agency/{agencyId}/roles/{roleId}`;
335
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
311
+ let urlPath = `/agency/roles/{roleId}`;
336
312
  urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
337
313
  const response = yield this.request({
338
314
  path: urlPath,
@@ -355,9 +331,6 @@ class AgencyControllerApi extends runtime.BaseAPI {
355
331
  */
356
332
  updateSocialUrlsRaw(requestParameters, initOverrides) {
357
333
  return __awaiter(this, void 0, void 0, function* () {
358
- if (requestParameters['agencyId'] == null) {
359
- throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling updateSocialUrls().');
360
- }
361
334
  if (requestParameters['socialMediasRequest'] == null) {
362
335
  throw new runtime.RequiredError('socialMediasRequest', 'Required parameter "socialMediasRequest" was null or undefined when calling updateSocialUrls().');
363
336
  }
@@ -368,8 +341,7 @@ class AgencyControllerApi extends runtime.BaseAPI {
368
341
  // oauth required
369
342
  headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
370
343
  }
371
- let urlPath = `/agency/{agencyId}/social-media`;
372
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
344
+ let urlPath = `/agency/social-media`;
373
345
  const response = yield this.request({
374
346
  path: urlPath,
375
347
  method: 'PUT',
@@ -10,10 +10,17 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AgencyViewResponse } from '../models/index';
13
+ import type { AgencyPeekViewResponse, AgencyViewResponse, Pageable, PagedModelAgencyPeekViewResponse } from '../models/index';
14
14
  export interface GetAgencyRequest {
15
15
  agencyId: string;
16
16
  }
17
+ export interface GetAgencyBySubdomainRequest {
18
+ subDomain: string;
19
+ }
20
+ export interface GetAllAgenciesRequest {
21
+ pageable: Pageable;
22
+ status?: GetAllAgenciesStatusEnum;
23
+ }
17
24
  /**
18
25
  * AgencyQueryControllerApi - interface
19
26
  *
@@ -32,6 +39,29 @@ export interface AgencyQueryControllerApiInterface {
32
39
  /**
33
40
  */
34
41
  getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyViewResponse>;
42
+ /**
43
+ *
44
+ * @param {string} subDomain
45
+ * @param {*} [options] Override http request option.
46
+ * @throws {RequiredError}
47
+ * @memberof AgencyQueryControllerApiInterface
48
+ */
49
+ getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyPeekViewResponse>>;
50
+ /**
51
+ */
52
+ getAgencyBySubdomain(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyPeekViewResponse>;
53
+ /**
54
+ *
55
+ * @param {Pageable} pageable
56
+ * @param {'NEW' | 'ACTIVE' | 'PAYMENT_FAILED' | 'INACTIVE'} [status]
57
+ * @param {*} [options] Override http request option.
58
+ * @throws {RequiredError}
59
+ * @memberof AgencyQueryControllerApiInterface
60
+ */
61
+ getAllAgenciesRaw(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedModelAgencyPeekViewResponse>>;
62
+ /**
63
+ */
64
+ getAllAgencies(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelAgencyPeekViewResponse>;
35
65
  }
36
66
  /**
37
67
  *
@@ -43,4 +73,26 @@ export declare class AgencyQueryControllerApi extends runtime.BaseAPI implements
43
73
  /**
44
74
  */
45
75
  getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyViewResponse>;
76
+ /**
77
+ */
78
+ getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyPeekViewResponse>>;
79
+ /**
80
+ */
81
+ getAgencyBySubdomain(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyPeekViewResponse>;
82
+ /**
83
+ */
84
+ getAllAgenciesRaw(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedModelAgencyPeekViewResponse>>;
85
+ /**
86
+ */
87
+ getAllAgencies(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelAgencyPeekViewResponse>;
46
88
  }
89
+ /**
90
+ * @export
91
+ */
92
+ export declare const GetAllAgenciesStatusEnum: {
93
+ readonly New: "NEW";
94
+ readonly Active: "ACTIVE";
95
+ readonly PaymentFailed: "PAYMENT_FAILED";
96
+ readonly Inactive: "INACTIVE";
97
+ };
98
+ export type GetAllAgenciesStatusEnum = typeof GetAllAgenciesStatusEnum[keyof typeof GetAllAgenciesStatusEnum];
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.AgencyQueryControllerApi = void 0;
25
+ exports.GetAllAgenciesStatusEnum = exports.AgencyQueryControllerApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const index_1 = require("../models/index");
28
28
  /**
@@ -61,5 +61,83 @@ class AgencyQueryControllerApi extends runtime.BaseAPI {
61
61
  return yield response.value();
62
62
  });
63
63
  }
64
+ /**
65
+ */
66
+ getAgencyBySubdomainRaw(requestParameters, initOverrides) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ if (requestParameters['subDomain'] == null) {
69
+ throw new runtime.RequiredError('subDomain', 'Required parameter "subDomain" was null or undefined when calling getAgencyBySubdomain().');
70
+ }
71
+ const queryParameters = {};
72
+ const headerParameters = {};
73
+ if (this.configuration && this.configuration.accessToken) {
74
+ // oauth required
75
+ headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
76
+ }
77
+ let urlPath = `/agency/subdomain/{subDomain}`;
78
+ urlPath = urlPath.replace(`{${"subDomain"}}`, encodeURIComponent(String(requestParameters['subDomain'])));
79
+ const response = yield this.request({
80
+ path: urlPath,
81
+ method: 'GET',
82
+ headers: headerParameters,
83
+ query: queryParameters,
84
+ }, initOverrides);
85
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgencyPeekViewResponseFromJSON)(jsonValue));
86
+ });
87
+ }
88
+ /**
89
+ */
90
+ getAgencyBySubdomain(requestParameters, initOverrides) {
91
+ return __awaiter(this, void 0, void 0, function* () {
92
+ const response = yield this.getAgencyBySubdomainRaw(requestParameters, initOverrides);
93
+ return yield response.value();
94
+ });
95
+ }
96
+ /**
97
+ */
98
+ getAllAgenciesRaw(requestParameters, initOverrides) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ if (requestParameters['pageable'] == null) {
101
+ throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getAllAgencies().');
102
+ }
103
+ const queryParameters = {};
104
+ if (requestParameters['status'] != null) {
105
+ queryParameters['status'] = requestParameters['status'];
106
+ }
107
+ if (requestParameters['pageable'] != null) {
108
+ queryParameters['pageable'] = requestParameters['pageable'];
109
+ }
110
+ const headerParameters = {};
111
+ if (this.configuration && this.configuration.accessToken) {
112
+ // oauth required
113
+ headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
114
+ }
115
+ let urlPath = `/agency`;
116
+ const response = yield this.request({
117
+ path: urlPath,
118
+ method: 'GET',
119
+ headers: headerParameters,
120
+ query: queryParameters,
121
+ }, initOverrides);
122
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PagedModelAgencyPeekViewResponseFromJSON)(jsonValue));
123
+ });
124
+ }
125
+ /**
126
+ */
127
+ getAllAgencies(requestParameters, initOverrides) {
128
+ return __awaiter(this, void 0, void 0, function* () {
129
+ const response = yield this.getAllAgenciesRaw(requestParameters, initOverrides);
130
+ return yield response.value();
131
+ });
132
+ }
64
133
  }
65
134
  exports.AgencyQueryControllerApi = AgencyQueryControllerApi;
135
+ /**
136
+ * @export
137
+ */
138
+ exports.GetAllAgenciesStatusEnum = {
139
+ New: 'NEW',
140
+ Active: 'ACTIVE',
141
+ PaymentFailed: 'PAYMENT_FAILED',
142
+ Inactive: 'INACTIVE'
143
+ };
@@ -16,7 +16,6 @@ export interface InviteAcceptedRequest {
16
16
  invitationId: string;
17
17
  }
18
18
  export interface InviteMemberOperationRequest {
19
- agencyId: string;
20
19
  inviteMemberRequest: InviteMemberRequest;
21
20
  }
22
21
  /**
@@ -40,7 +39,6 @@ export interface InvitationControllerApiInterface {
40
39
  inviteAccepted(requestParameters: InviteAcceptedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
41
40
  /**
42
41
  *
43
- * @param {string} agencyId
44
42
  * @param {InviteMemberRequest} inviteMemberRequest
45
43
  * @param {*} [options] Override http request option.
46
44
  * @throws {RequiredError}
@@ -40,13 +40,15 @@ class InvitationControllerApi extends runtime.BaseAPI {
40
40
  throw new runtime.RequiredError('invitationId', 'Required parameter "invitationId" was null or undefined when calling inviteAccepted().');
41
41
  }
42
42
  const queryParameters = {};
43
+ if (requestParameters['agencyId'] != null) {
44
+ queryParameters['agencyId'] = requestParameters['agencyId'];
45
+ }
43
46
  const headerParameters = {};
44
47
  if (this.configuration && this.configuration.accessToken) {
45
48
  // oauth required
46
49
  headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
47
50
  }
48
- let urlPath = `/agency/{agencyId}/invitation/{invitationId}`;
49
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
51
+ let urlPath = `/invitation/{invitationId}`;
50
52
  urlPath = urlPath.replace(`{${"invitationId"}}`, encodeURIComponent(String(requestParameters['invitationId'])));
51
53
  const response = yield this.request({
52
54
  path: urlPath,
@@ -68,9 +70,6 @@ class InvitationControllerApi extends runtime.BaseAPI {
68
70
  */
69
71
  inviteMemberRaw(requestParameters, initOverrides) {
70
72
  return __awaiter(this, void 0, void 0, function* () {
71
- if (requestParameters['agencyId'] == null) {
72
- throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling inviteMember().');
73
- }
74
73
  if (requestParameters['inviteMemberRequest'] == null) {
75
74
  throw new runtime.RequiredError('inviteMemberRequest', 'Required parameter "inviteMemberRequest" was null or undefined when calling inviteMember().');
76
75
  }
@@ -81,8 +80,7 @@ class InvitationControllerApi extends runtime.BaseAPI {
81
80
  // oauth required
82
81
  headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
83
82
  }
84
- let urlPath = `/agency/{agencyId}/invitation`;
85
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
83
+ let urlPath = `/invitation`;
86
84
  const response = yield this.request({
87
85
  path: urlPath,
88
86
  method: 'POST',