@equisoft/account-service-sdk-typescript 10.4.1-snapshot.20251124142957 → 10.4.1-snapshot.20251201203938

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.
@@ -40,6 +40,7 @@ src/models/OAuthClientLoginPayload.ts
40
40
  src/models/OAuthClientPublicKey.ts
41
41
  src/models/OAuthClientSecret.ts
42
42
  src/models/OAuthClientUpdated.ts
43
+ src/models/OAuthScope.ts
43
44
  src/models/Organization.ts
44
45
  src/models/OrganizationApplicableServiceProfiles.ts
45
46
  src/models/OrganizationCreated.ts
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AddOAuthClientSecretPayload, AddOAuthClientSecretResponse, CreateOAuthClientPayload, OAuthClient, OAuthClientListItem, OAuthClientLoginPayload, OAuthClientUpdated, UpdateOAuthClientPayload } from '../models/index';
13
+ import type { AddOAuthClientSecretPayload, AddOAuthClientSecretResponse, CreateOAuthClientPayload, OAuthClient, OAuthClientListItem, OAuthClientLoginPayload, OAuthClientUpdated, OAuthScope, UpdateOAuthClientPayload } from '../models/index';
14
14
  export interface AddOAuthClientSecretRequest {
15
15
  clientId: string;
16
16
  addOAuthClientSecretPayload: AddOAuthClientSecretPayload;
@@ -83,6 +83,14 @@ export declare class OAuthApi extends runtime.BaseAPI {
83
83
  * Get a list of all OAuth Clients.
84
84
  */
85
85
  listOAuthClients(requestParameters?: ListOAuthClientsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OAuthClientListItem>>;
86
+ /**
87
+ * Get a list of all OAuth Scopes.
88
+ */
89
+ listOAuthClients1Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OAuthScope>>>;
90
+ /**
91
+ * Get a list of all OAuth Scopes.
92
+ */
93
+ listOAuthClients1(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OAuthScope>>;
86
94
  /**
87
95
  * OAuth Client login
88
96
  */
@@ -215,6 +215,39 @@ class OAuthApi extends runtime.BaseAPI {
215
215
  return yield response.value();
216
216
  });
217
217
  }
218
+ /**
219
+ * Get a list of all OAuth Scopes.
220
+ */
221
+ listOAuthClients1Raw(initOverrides) {
222
+ return __awaiter(this, void 0, void 0, function* () {
223
+ const queryParameters = {};
224
+ const headerParameters = {};
225
+ if (this.configuration && this.configuration.accessToken) {
226
+ // oauth required
227
+ const token = this.configuration.accessToken;
228
+ const tokenString = yield token("OAuth2", []);
229
+ if (tokenString) {
230
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
231
+ }
232
+ }
233
+ const response = yield this.request({
234
+ path: `/oauthScopes`,
235
+ method: 'GET',
236
+ headers: headerParameters,
237
+ query: queryParameters,
238
+ }, initOverrides);
239
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.OAuthScopeFromJSON));
240
+ });
241
+ }
242
+ /**
243
+ * Get a list of all OAuth Scopes.
244
+ */
245
+ listOAuthClients1(initOverrides) {
246
+ return __awaiter(this, void 0, void 0, function* () {
247
+ const response = yield this.listOAuthClients1Raw(initOverrides);
248
+ return yield response.value();
249
+ });
250
+ }
218
251
  /**
219
252
  * OAuth Client login
220
253
  */
@@ -77,6 +77,7 @@ export interface ListOrganizationRequest {
77
77
  pageToken?: string;
78
78
  parent?: string;
79
79
  query?: string;
80
+ withServiceProfile?: string;
80
81
  withServiceProfileFor?: string;
81
82
  }
82
83
  export interface ListOrganizationLinkedUsersRequest {
@@ -635,6 +635,9 @@ class OrganizationApi extends runtime.BaseAPI {
635
635
  if (requestParameters['query'] != null) {
636
636
  queryParameters['query'] = requestParameters['query'];
637
637
  }
638
+ if (requestParameters['withServiceProfile'] != null) {
639
+ queryParameters['withServiceProfile'] = requestParameters['withServiceProfile'];
640
+ }
638
641
  if (requestParameters['withServiceProfileFor'] != null) {
639
642
  queryParameters['withServiceProfileFor'] = requestParameters['withServiceProfileFor'];
640
643
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AddOAuthClientSecretPayload, AddOAuthClientSecretResponse, CreateOAuthClientPayload, OAuthClient, OAuthClientListItem, OAuthClientLoginPayload, OAuthClientUpdated, UpdateOAuthClientPayload } from '../models/index';
13
+ import type { AddOAuthClientSecretPayload, AddOAuthClientSecretResponse, CreateOAuthClientPayload, OAuthClient, OAuthClientListItem, OAuthClientLoginPayload, OAuthClientUpdated, OAuthScope, UpdateOAuthClientPayload } from '../models/index';
14
14
  export interface AddOAuthClientSecretRequest {
15
15
  clientId: string;
16
16
  addOAuthClientSecretPayload: AddOAuthClientSecretPayload;
@@ -83,6 +83,14 @@ export declare class OAuthApi extends runtime.BaseAPI {
83
83
  * Get a list of all OAuth Clients.
84
84
  */
85
85
  listOAuthClients(requestParameters?: ListOAuthClientsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OAuthClientListItem>>;
86
+ /**
87
+ * Get a list of all OAuth Scopes.
88
+ */
89
+ listOAuthClients1Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OAuthScope>>>;
90
+ /**
91
+ * Get a list of all OAuth Scopes.
92
+ */
93
+ listOAuthClients1(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OAuthScope>>;
86
94
  /**
87
95
  * OAuth Client login
88
96
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { AddOAuthClientSecretPayloadToJSON, AddOAuthClientSecretResponseFromJSON, CreateOAuthClientPayloadToJSON, OAuthClientFromJSON, OAuthClientListItemFromJSON, OAuthClientLoginPayloadToJSON, OAuthClientUpdatedFromJSON, UpdateOAuthClientPayloadToJSON, } from '../models/index';
24
+ import { AddOAuthClientSecretPayloadToJSON, AddOAuthClientSecretResponseFromJSON, CreateOAuthClientPayloadToJSON, OAuthClientFromJSON, OAuthClientListItemFromJSON, OAuthClientLoginPayloadToJSON, OAuthClientUpdatedFromJSON, OAuthScopeFromJSON, UpdateOAuthClientPayloadToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -212,6 +212,39 @@ export class OAuthApi extends runtime.BaseAPI {
212
212
  return yield response.value();
213
213
  });
214
214
  }
215
+ /**
216
+ * Get a list of all OAuth Scopes.
217
+ */
218
+ listOAuthClients1Raw(initOverrides) {
219
+ return __awaiter(this, void 0, void 0, function* () {
220
+ const queryParameters = {};
221
+ const headerParameters = {};
222
+ if (this.configuration && this.configuration.accessToken) {
223
+ // oauth required
224
+ const token = this.configuration.accessToken;
225
+ const tokenString = yield token("OAuth2", []);
226
+ if (tokenString) {
227
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
228
+ }
229
+ }
230
+ const response = yield this.request({
231
+ path: `/oauthScopes`,
232
+ method: 'GET',
233
+ headers: headerParameters,
234
+ query: queryParameters,
235
+ }, initOverrides);
236
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OAuthScopeFromJSON));
237
+ });
238
+ }
239
+ /**
240
+ * Get a list of all OAuth Scopes.
241
+ */
242
+ listOAuthClients1(initOverrides) {
243
+ return __awaiter(this, void 0, void 0, function* () {
244
+ const response = yield this.listOAuthClients1Raw(initOverrides);
245
+ return yield response.value();
246
+ });
247
+ }
215
248
  /**
216
249
  * OAuth Client login
217
250
  */
@@ -77,6 +77,7 @@ export interface ListOrganizationRequest {
77
77
  pageToken?: string;
78
78
  parent?: string;
79
79
  query?: string;
80
+ withServiceProfile?: string;
80
81
  withServiceProfileFor?: string;
81
82
  }
82
83
  export interface ListOrganizationLinkedUsersRequest {
@@ -632,6 +632,9 @@ export class OrganizationApi extends runtime.BaseAPI {
632
632
  if (requestParameters['query'] != null) {
633
633
  queryParameters['query'] = requestParameters['query'];
634
634
  }
635
+ if (requestParameters['withServiceProfile'] != null) {
636
+ queryParameters['withServiceProfile'] = requestParameters['withServiceProfile'];
637
+ }
635
638
  if (requestParameters['withServiceProfileFor'] != null) {
636
639
  queryParameters['withServiceProfileFor'] = requestParameters['withServiceProfileFor'];
637
640
  }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * User account and session management
3
+ * Provides HTTP endpoints to manage User Accounts and User Sessions.
4
+ *
5
+ * The version of the OpenAPI document: 10.4.1-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { LocalizedString } from './LocalizedString';
13
+ /**
14
+ * Represents an OAuth Scope
15
+ * @export
16
+ * @interface OAuthScope
17
+ */
18
+ export interface OAuthScope {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof OAuthScope
23
+ */
24
+ code: string;
25
+ /**
26
+ *
27
+ * @type {LocalizedString}
28
+ * @memberof OAuthScope
29
+ */
30
+ name: LocalizedString;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof OAuthScope
35
+ */
36
+ serviceCode?: string | null;
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof OAuthScope
41
+ */
42
+ system: boolean;
43
+ }
44
+ /**
45
+ * Check if a given object implements the OAuthScope interface.
46
+ */
47
+ export declare function instanceOfOAuthScope(value: object): value is OAuthScope;
48
+ export declare function OAuthScopeFromJSON(json: any): OAuthScope;
49
+ export declare function OAuthScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthScope;
50
+ export declare function OAuthScopeToJSON(json: any): OAuthScope;
51
+ export declare function OAuthScopeToJSONTyped(value?: OAuthScope | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * User account and session management
5
+ * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
+ *
7
+ * The version of the OpenAPI document: 10.4.1-SNAPSHOT
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { LocalizedStringFromJSON, LocalizedStringToJSON, } from './LocalizedString';
15
+ /**
16
+ * Check if a given object implements the OAuthScope interface.
17
+ */
18
+ export function instanceOfOAuthScope(value) {
19
+ if (!('code' in value) || value['code'] === undefined)
20
+ return false;
21
+ if (!('name' in value) || value['name'] === undefined)
22
+ return false;
23
+ if (!('system' in value) || value['system'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function OAuthScopeFromJSON(json) {
28
+ return OAuthScopeFromJSONTyped(json, false);
29
+ }
30
+ export function OAuthScopeFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'code': json['code'],
36
+ 'name': LocalizedStringFromJSON(json['name']),
37
+ 'serviceCode': json['serviceCode'] == null ? undefined : json['serviceCode'],
38
+ 'system': json['system'],
39
+ };
40
+ }
41
+ export function OAuthScopeToJSON(json) {
42
+ return OAuthScopeToJSONTyped(json, false);
43
+ }
44
+ export function OAuthScopeToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'code': value['code'],
50
+ 'name': LocalizedStringToJSON(value['name']),
51
+ 'serviceCode': value['serviceCode'],
52
+ 'system': value['system'],
53
+ };
54
+ }
@@ -27,6 +27,7 @@ export * from './OAuthClientLoginPayload';
27
27
  export * from './OAuthClientPublicKey';
28
28
  export * from './OAuthClientSecret';
29
29
  export * from './OAuthClientUpdated';
30
+ export * from './OAuthScope';
30
31
  export * from './Organization';
31
32
  export * from './OrganizationApplicableServiceProfiles';
32
33
  export * from './OrganizationCreated';
@@ -29,6 +29,7 @@ export * from './OAuthClientLoginPayload';
29
29
  export * from './OAuthClientPublicKey';
30
30
  export * from './OAuthClientSecret';
31
31
  export * from './OAuthClientUpdated';
32
+ export * from './OAuthScope';
32
33
  export * from './Organization';
33
34
  export * from './OrganizationApplicableServiceProfiles';
34
35
  export * from './OrganizationCreated';
@@ -0,0 +1,51 @@
1
+ /**
2
+ * User account and session management
3
+ * Provides HTTP endpoints to manage User Accounts and User Sessions.
4
+ *
5
+ * The version of the OpenAPI document: 10.4.1-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { LocalizedString } from './LocalizedString';
13
+ /**
14
+ * Represents an OAuth Scope
15
+ * @export
16
+ * @interface OAuthScope
17
+ */
18
+ export interface OAuthScope {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof OAuthScope
23
+ */
24
+ code: string;
25
+ /**
26
+ *
27
+ * @type {LocalizedString}
28
+ * @memberof OAuthScope
29
+ */
30
+ name: LocalizedString;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof OAuthScope
35
+ */
36
+ serviceCode?: string | null;
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof OAuthScope
41
+ */
42
+ system: boolean;
43
+ }
44
+ /**
45
+ * Check if a given object implements the OAuthScope interface.
46
+ */
47
+ export declare function instanceOfOAuthScope(value: object): value is OAuthScope;
48
+ export declare function OAuthScopeFromJSON(json: any): OAuthScope;
49
+ export declare function OAuthScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthScope;
50
+ export declare function OAuthScopeToJSON(json: any): OAuthScope;
51
+ export declare function OAuthScopeToJSONTyped(value?: OAuthScope | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * User account and session management
6
+ * Provides HTTP endpoints to manage User Accounts and User Sessions.
7
+ *
8
+ * The version of the OpenAPI document: 10.4.1-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfOAuthScope = instanceOfOAuthScope;
17
+ exports.OAuthScopeFromJSON = OAuthScopeFromJSON;
18
+ exports.OAuthScopeFromJSONTyped = OAuthScopeFromJSONTyped;
19
+ exports.OAuthScopeToJSON = OAuthScopeToJSON;
20
+ exports.OAuthScopeToJSONTyped = OAuthScopeToJSONTyped;
21
+ const LocalizedString_1 = require("./LocalizedString");
22
+ /**
23
+ * Check if a given object implements the OAuthScope interface.
24
+ */
25
+ function instanceOfOAuthScope(value) {
26
+ if (!('code' in value) || value['code'] === undefined)
27
+ return false;
28
+ if (!('name' in value) || value['name'] === undefined)
29
+ return false;
30
+ if (!('system' in value) || value['system'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function OAuthScopeFromJSON(json) {
35
+ return OAuthScopeFromJSONTyped(json, false);
36
+ }
37
+ function OAuthScopeFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'code': json['code'],
43
+ 'name': (0, LocalizedString_1.LocalizedStringFromJSON)(json['name']),
44
+ 'serviceCode': json['serviceCode'] == null ? undefined : json['serviceCode'],
45
+ 'system': json['system'],
46
+ };
47
+ }
48
+ function OAuthScopeToJSON(json) {
49
+ return OAuthScopeToJSONTyped(json, false);
50
+ }
51
+ function OAuthScopeToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'code': value['code'],
57
+ 'name': (0, LocalizedString_1.LocalizedStringToJSON)(value['name']),
58
+ 'serviceCode': value['serviceCode'],
59
+ 'system': value['system'],
60
+ };
61
+ }
@@ -27,6 +27,7 @@ export * from './OAuthClientLoginPayload';
27
27
  export * from './OAuthClientPublicKey';
28
28
  export * from './OAuthClientSecret';
29
29
  export * from './OAuthClientUpdated';
30
+ export * from './OAuthScope';
30
31
  export * from './Organization';
31
32
  export * from './OrganizationApplicableServiceProfiles';
32
33
  export * from './OrganizationCreated';
@@ -45,6 +45,7 @@ __exportStar(require("./OAuthClientLoginPayload"), exports);
45
45
  __exportStar(require("./OAuthClientPublicKey"), exports);
46
46
  __exportStar(require("./OAuthClientSecret"), exports);
47
47
  __exportStar(require("./OAuthClientUpdated"), exports);
48
+ __exportStar(require("./OAuthScope"), exports);
48
49
  __exportStar(require("./Organization"), exports);
49
50
  __exportStar(require("./OrganizationApplicableServiceProfiles"), exports);
50
51
  __exportStar(require("./OrganizationCreated"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equisoft/account-service-sdk-typescript",
3
- "version": "10.4.1-snapshot.20251124142957",
3
+ "version": "10.4.1-snapshot.20251201203938",
4
4
  "description": "OpenAPI client for @equisoft/account-service-sdk-typescript",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -23,6 +23,7 @@ import type {
23
23
  OAuthClientListItem,
24
24
  OAuthClientLoginPayload,
25
25
  OAuthClientUpdated,
26
+ OAuthScope,
26
27
  UpdateOAuthClientPayload,
27
28
  } from '../models/index';
28
29
  import {
@@ -42,6 +43,8 @@ import {
42
43
  OAuthClientLoginPayloadToJSON,
43
44
  OAuthClientUpdatedFromJSON,
44
45
  OAuthClientUpdatedToJSON,
46
+ OAuthScopeFromJSON,
47
+ OAuthScopeToJSON,
45
48
  UpdateOAuthClientPayloadFromJSON,
46
49
  UpdateOAuthClientPayloadToJSON,
47
50
  } from '../models/index';
@@ -306,6 +309,41 @@ export class OAuthApi extends runtime.BaseAPI {
306
309
  return await response.value();
307
310
  }
308
311
 
312
+ /**
313
+ * Get a list of all OAuth Scopes.
314
+ */
315
+ async listOAuthClients1Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OAuthScope>>> {
316
+ const queryParameters: any = {};
317
+
318
+ const headerParameters: runtime.HTTPHeaders = {};
319
+
320
+ if (this.configuration && this.configuration.accessToken) {
321
+ // oauth required
322
+ const token = this.configuration.accessToken;
323
+ const tokenString = await token("OAuth2", []);
324
+ if (tokenString) {
325
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
326
+ }
327
+ }
328
+
329
+ const response = await this.request({
330
+ path: `/oauthScopes`,
331
+ method: 'GET',
332
+ headers: headerParameters,
333
+ query: queryParameters,
334
+ }, initOverrides);
335
+
336
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OAuthScopeFromJSON));
337
+ }
338
+
339
+ /**
340
+ * Get a list of all OAuth Scopes.
341
+ */
342
+ async listOAuthClients1(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OAuthScope>> {
343
+ const response = await this.listOAuthClients1Raw(initOverrides);
344
+ return await response.value();
345
+ }
346
+
309
347
  /**
310
348
  * OAuth Client login
311
349
  */
@@ -157,6 +157,7 @@ export interface ListOrganizationRequest {
157
157
  pageToken?: string;
158
158
  parent?: string;
159
159
  query?: string;
160
+ withServiceProfile?: string;
160
161
  withServiceProfileFor?: string;
161
162
  }
162
163
 
@@ -994,6 +995,10 @@ export class OrganizationApi extends runtime.BaseAPI {
994
995
  queryParameters['query'] = requestParameters['query'];
995
996
  }
996
997
 
998
+ if (requestParameters['withServiceProfile'] != null) {
999
+ queryParameters['withServiceProfile'] = requestParameters['withServiceProfile'];
1000
+ }
1001
+
997
1002
  if (requestParameters['withServiceProfileFor'] != null) {
998
1003
  queryParameters['withServiceProfileFor'] = requestParameters['withServiceProfileFor'];
999
1004
  }
@@ -0,0 +1,100 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * User account and session management
5
+ * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
+ *
7
+ * The version of the OpenAPI document: 10.4.1-SNAPSHOT
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { LocalizedString } from './LocalizedString';
17
+ import {
18
+ LocalizedStringFromJSON,
19
+ LocalizedStringFromJSONTyped,
20
+ LocalizedStringToJSON,
21
+ LocalizedStringToJSONTyped,
22
+ } from './LocalizedString';
23
+
24
+ /**
25
+ * Represents an OAuth Scope
26
+ * @export
27
+ * @interface OAuthScope
28
+ */
29
+ export interface OAuthScope {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof OAuthScope
34
+ */
35
+ code: string;
36
+ /**
37
+ *
38
+ * @type {LocalizedString}
39
+ * @memberof OAuthScope
40
+ */
41
+ name: LocalizedString;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof OAuthScope
46
+ */
47
+ serviceCode?: string | null;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof OAuthScope
52
+ */
53
+ system: boolean;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the OAuthScope interface.
58
+ */
59
+ export function instanceOfOAuthScope(value: object): value is OAuthScope {
60
+ if (!('code' in value) || value['code'] === undefined) return false;
61
+ if (!('name' in value) || value['name'] === undefined) return false;
62
+ if (!('system' in value) || value['system'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function OAuthScopeFromJSON(json: any): OAuthScope {
67
+ return OAuthScopeFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function OAuthScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthScope {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'code': json['code'],
77
+ 'name': LocalizedStringFromJSON(json['name']),
78
+ 'serviceCode': json['serviceCode'] == null ? undefined : json['serviceCode'],
79
+ 'system': json['system'],
80
+ };
81
+ }
82
+
83
+ export function OAuthScopeToJSON(json: any): OAuthScope {
84
+ return OAuthScopeToJSONTyped(json, false);
85
+ }
86
+
87
+ export function OAuthScopeToJSONTyped(value?: OAuthScope | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'code': value['code'],
95
+ 'name': LocalizedStringToJSON(value['name']),
96
+ 'serviceCode': value['serviceCode'],
97
+ 'system': value['system'],
98
+ };
99
+ }
100
+
@@ -29,6 +29,7 @@ export * from './OAuthClientLoginPayload';
29
29
  export * from './OAuthClientPublicKey';
30
30
  export * from './OAuthClientSecret';
31
31
  export * from './OAuthClientUpdated';
32
+ export * from './OAuthScope';
32
33
  export * from './Organization';
33
34
  export * from './OrganizationApplicableServiceProfiles';
34
35
  export * from './OrganizationCreated';