@rasadov/lumoar-sdk 1.0.10 → 1.0.12

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.
@@ -46,6 +46,7 @@ docs/PaginationResponsePolicyRead.md
46
46
  docs/PaginationResponseReportBase.md
47
47
  docs/PaginationResponseTaskRead.md
48
48
  docs/PaymentsApi.md
49
+ docs/PermissionResponse.md
49
50
  docs/PermissionType.md
50
51
  docs/PoliciesApi.md
51
52
  docs/PolicyCreate.md
package/api.ts CHANGED
@@ -1278,6 +1278,27 @@ export interface PaginationResponseTaskRead {
1278
1278
  */
1279
1279
  'total': number;
1280
1280
  }
1281
+ /**
1282
+ *
1283
+ * @export
1284
+ * @interface PermissionResponse
1285
+ */
1286
+ export interface PermissionResponse {
1287
+ /**
1288
+ *
1289
+ * @type {string}
1290
+ * @memberof PermissionResponse
1291
+ */
1292
+ 'company_id': string;
1293
+ /**
1294
+ *
1295
+ * @type {PermissionType}
1296
+ * @memberof PermissionResponse
1297
+ */
1298
+ 'role': PermissionType;
1299
+ }
1300
+
1301
+
1281
1302
  /**
1282
1303
  *
1283
1304
  * @export
@@ -5582,7 +5603,46 @@ export class ReportsApi extends BaseAPI {
5582
5603
  export const RolesApiAxiosParamCreator = function (configuration?: Configuration) {
5583
5604
  return {
5584
5605
  /**
5585
- * Add people to company
5606
+ *
5607
+ * @summary Get User Permissions
5608
+ * @param {string} companyId
5609
+ * @param {string} [authorization]
5610
+ * @param {string} [sessionId]
5611
+ * @param {*} [options] Override http request option.
5612
+ * @throws {RequiredError}
5613
+ */
5614
+ getUserPermissionsV1RolesCompanyIdMeGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5615
+ // verify required parameter 'companyId' is not null or undefined
5616
+ assertParamExists('getUserPermissionsV1RolesCompanyIdMeGet', 'companyId', companyId)
5617
+ const localVarPath = `/v1/roles/{company_id}/me`
5618
+ .replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
5619
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5620
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5621
+ let baseOptions;
5622
+ if (configuration) {
5623
+ baseOptions = configuration.baseOptions;
5624
+ }
5625
+
5626
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5627
+ const localVarHeaderParameter = {} as any;
5628
+ const localVarQueryParameter = {} as any;
5629
+
5630
+
5631
+
5632
+ if (authorization != null) {
5633
+ localVarHeaderParameter['Authorization'] = String(authorization);
5634
+ }
5635
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5636
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5637
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5638
+
5639
+ return {
5640
+ url: toPathString(localVarUrlObj),
5641
+ options: localVarRequestOptions,
5642
+ };
5643
+ },
5644
+ /**
5645
+ *
5586
5646
  * @summary Invite
5587
5647
  * @param {InviteToCompany} inviteToCompany
5588
5648
  * @param {string} [authorization]
@@ -5623,7 +5683,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
5623
5683
  };
5624
5684
  },
5625
5685
  /**
5626
- * Remove people from company
5686
+ *
5627
5687
  * @summary Remove People
5628
5688
  * @param {RemoveFromCompany} removeFromCompany
5629
5689
  * @param {string} [authorization]
@@ -5674,7 +5734,22 @@ export const RolesApiFp = function(configuration?: Configuration) {
5674
5734
  const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration)
5675
5735
  return {
5676
5736
  /**
5677
- * Add people to company
5737
+ *
5738
+ * @summary Get User Permissions
5739
+ * @param {string} companyId
5740
+ * @param {string} [authorization]
5741
+ * @param {string} [sessionId]
5742
+ * @param {*} [options] Override http request option.
5743
+ * @throws {RequiredError}
5744
+ */
5745
+ async getUserPermissionsV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PermissionResponse>> {
5746
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options);
5747
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5748
+ const localVarOperationServerBasePath = operationServerMap['RolesApi.getUserPermissionsV1RolesCompanyIdMeGet']?.[localVarOperationServerIndex]?.url;
5749
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5750
+ },
5751
+ /**
5752
+ *
5678
5753
  * @summary Invite
5679
5754
  * @param {InviteToCompany} inviteToCompany
5680
5755
  * @param {string} [authorization]
@@ -5689,7 +5764,7 @@ export const RolesApiFp = function(configuration?: Configuration) {
5689
5764
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5690
5765
  },
5691
5766
  /**
5692
- * Remove people from company
5767
+ *
5693
5768
  * @summary Remove People
5694
5769
  * @param {RemoveFromCompany} removeFromCompany
5695
5770
  * @param {string} [authorization]
@@ -5714,7 +5789,19 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
5714
5789
  const localVarFp = RolesApiFp(configuration)
5715
5790
  return {
5716
5791
  /**
5717
- * Add people to company
5792
+ *
5793
+ * @summary Get User Permissions
5794
+ * @param {string} companyId
5795
+ * @param {string} [authorization]
5796
+ * @param {string} [sessionId]
5797
+ * @param {*} [options] Override http request option.
5798
+ * @throws {RequiredError}
5799
+ */
5800
+ getUserPermissionsV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PermissionResponse> {
5801
+ return localVarFp.getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
5802
+ },
5803
+ /**
5804
+ *
5718
5805
  * @summary Invite
5719
5806
  * @param {InviteToCompany} inviteToCompany
5720
5807
  * @param {string} [authorization]
@@ -5726,7 +5813,7 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
5726
5813
  return localVarFp.inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options).then((request) => request(axios, basePath));
5727
5814
  },
5728
5815
  /**
5729
- * Remove people from company
5816
+ *
5730
5817
  * @summary Remove People
5731
5818
  * @param {RemoveFromCompany} removeFromCompany
5732
5819
  * @param {string} [authorization]
@@ -5748,7 +5835,21 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
5748
5835
  */
5749
5836
  export class RolesApi extends BaseAPI {
5750
5837
  /**
5751
- * Add people to company
5838
+ *
5839
+ * @summary Get User Permissions
5840
+ * @param {string} companyId
5841
+ * @param {string} [authorization]
5842
+ * @param {string} [sessionId]
5843
+ * @param {*} [options] Override http request option.
5844
+ * @throws {RequiredError}
5845
+ * @memberof RolesApi
5846
+ */
5847
+ public getUserPermissionsV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
5848
+ return RolesApiFp(this.configuration).getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5849
+ }
5850
+
5851
+ /**
5852
+ *
5752
5853
  * @summary Invite
5753
5854
  * @param {InviteToCompany} inviteToCompany
5754
5855
  * @param {string} [authorization]
@@ -5762,7 +5863,7 @@ export class RolesApi extends BaseAPI {
5762
5863
  }
5763
5864
 
5764
5865
  /**
5765
- * Remove people from company
5866
+ *
5766
5867
  * @summary Remove People
5767
5868
  * @param {RemoveFromCompany} removeFromCompany
5768
5869
  * @param {string} [authorization]
package/dist/api.d.ts CHANGED
@@ -1246,6 +1246,25 @@ export interface PaginationResponseTaskRead {
1246
1246
  */
1247
1247
  'total': number;
1248
1248
  }
1249
+ /**
1250
+ *
1251
+ * @export
1252
+ * @interface PermissionResponse
1253
+ */
1254
+ export interface PermissionResponse {
1255
+ /**
1256
+ *
1257
+ * @type {string}
1258
+ * @memberof PermissionResponse
1259
+ */
1260
+ 'company_id': string;
1261
+ /**
1262
+ *
1263
+ * @type {PermissionType}
1264
+ * @memberof PermissionResponse
1265
+ */
1266
+ 'role': PermissionType;
1267
+ }
1249
1268
  /**
1250
1269
  *
1251
1270
  * @export
@@ -3787,7 +3806,17 @@ export declare class ReportsApi extends BaseAPI {
3787
3806
  */
3788
3807
  export declare const RolesApiAxiosParamCreator: (configuration?: Configuration) => {
3789
3808
  /**
3790
- * Add people to company
3809
+ *
3810
+ * @summary Get User Permissions
3811
+ * @param {string} companyId
3812
+ * @param {string} [authorization]
3813
+ * @param {string} [sessionId]
3814
+ * @param {*} [options] Override http request option.
3815
+ * @throws {RequiredError}
3816
+ */
3817
+ getUserPermissionsV1RolesCompanyIdMeGet: (companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3818
+ /**
3819
+ *
3791
3820
  * @summary Invite
3792
3821
  * @param {InviteToCompany} inviteToCompany
3793
3822
  * @param {string} [authorization]
@@ -3797,7 +3826,7 @@ export declare const RolesApiAxiosParamCreator: (configuration?: Configuration)
3797
3826
  */
3798
3827
  inviteV1RolesInvitesPost: (inviteToCompany: InviteToCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3799
3828
  /**
3800
- * Remove people from company
3829
+ *
3801
3830
  * @summary Remove People
3802
3831
  * @param {RemoveFromCompany} removeFromCompany
3803
3832
  * @param {string} [authorization]
@@ -3813,7 +3842,17 @@ export declare const RolesApiAxiosParamCreator: (configuration?: Configuration)
3813
3842
  */
3814
3843
  export declare const RolesApiFp: (configuration?: Configuration) => {
3815
3844
  /**
3816
- * Add people to company
3845
+ *
3846
+ * @summary Get User Permissions
3847
+ * @param {string} companyId
3848
+ * @param {string} [authorization]
3849
+ * @param {string} [sessionId]
3850
+ * @param {*} [options] Override http request option.
3851
+ * @throws {RequiredError}
3852
+ */
3853
+ getUserPermissionsV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PermissionResponse>>;
3854
+ /**
3855
+ *
3817
3856
  * @summary Invite
3818
3857
  * @param {InviteToCompany} inviteToCompany
3819
3858
  * @param {string} [authorization]
@@ -3823,7 +3862,7 @@ export declare const RolesApiFp: (configuration?: Configuration) => {
3823
3862
  */
3824
3863
  inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>>;
3825
3864
  /**
3826
- * Remove people from company
3865
+ *
3827
3866
  * @summary Remove People
3828
3867
  * @param {RemoveFromCompany} removeFromCompany
3829
3868
  * @param {string} [authorization]
@@ -3839,7 +3878,17 @@ export declare const RolesApiFp: (configuration?: Configuration) => {
3839
3878
  */
3840
3879
  export declare const RolesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3841
3880
  /**
3842
- * Add people to company
3881
+ *
3882
+ * @summary Get User Permissions
3883
+ * @param {string} companyId
3884
+ * @param {string} [authorization]
3885
+ * @param {string} [sessionId]
3886
+ * @param {*} [options] Override http request option.
3887
+ * @throws {RequiredError}
3888
+ */
3889
+ getUserPermissionsV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PermissionResponse>;
3890
+ /**
3891
+ *
3843
3892
  * @summary Invite
3844
3893
  * @param {InviteToCompany} inviteToCompany
3845
3894
  * @param {string} [authorization]
@@ -3849,7 +3898,7 @@ export declare const RolesApiFactory: (configuration?: Configuration, basePath?:
3849
3898
  */
3850
3899
  inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details>;
3851
3900
  /**
3852
- * Remove people from company
3901
+ *
3853
3902
  * @summary Remove People
3854
3903
  * @param {RemoveFromCompany} removeFromCompany
3855
3904
  * @param {string} [authorization]
@@ -3867,7 +3916,18 @@ export declare const RolesApiFactory: (configuration?: Configuration, basePath?:
3867
3916
  */
3868
3917
  export declare class RolesApi extends BaseAPI {
3869
3918
  /**
3870
- * Add people to company
3919
+ *
3920
+ * @summary Get User Permissions
3921
+ * @param {string} companyId
3922
+ * @param {string} [authorization]
3923
+ * @param {string} [sessionId]
3924
+ * @param {*} [options] Override http request option.
3925
+ * @throws {RequiredError}
3926
+ * @memberof RolesApi
3927
+ */
3928
+ getUserPermissionsV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PermissionResponse, any, {}>>;
3929
+ /**
3930
+ *
3871
3931
  * @summary Invite
3872
3932
  * @param {InviteToCompany} inviteToCompany
3873
3933
  * @param {string} [authorization]
@@ -3878,7 +3938,7 @@ export declare class RolesApi extends BaseAPI {
3878
3938
  */
3879
3939
  inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Details, any, {}>>;
3880
3940
  /**
3881
- * Remove people from company
3941
+ *
3882
3942
  * @summary Remove People
3883
3943
  * @param {RemoveFromCompany} removeFromCompany
3884
3944
  * @param {string} [authorization]
package/dist/api.js CHANGED
@@ -3509,7 +3509,41 @@ export class ReportsApi extends BaseAPI {
3509
3509
  export const RolesApiAxiosParamCreator = function (configuration) {
3510
3510
  return {
3511
3511
  /**
3512
- * Add people to company
3512
+ *
3513
+ * @summary Get User Permissions
3514
+ * @param {string} companyId
3515
+ * @param {string} [authorization]
3516
+ * @param {string} [sessionId]
3517
+ * @param {*} [options] Override http request option.
3518
+ * @throws {RequiredError}
3519
+ */
3520
+ getUserPermissionsV1RolesCompanyIdMeGet: (companyId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, authorization, sessionId, options = {}) {
3521
+ // verify required parameter 'companyId' is not null or undefined
3522
+ assertParamExists('getUserPermissionsV1RolesCompanyIdMeGet', 'companyId', companyId);
3523
+ const localVarPath = `/v1/roles/{company_id}/me`
3524
+ .replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
3525
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3526
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3527
+ let baseOptions;
3528
+ if (configuration) {
3529
+ baseOptions = configuration.baseOptions;
3530
+ }
3531
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3532
+ const localVarHeaderParameter = {};
3533
+ const localVarQueryParameter = {};
3534
+ if (authorization != null) {
3535
+ localVarHeaderParameter['Authorization'] = String(authorization);
3536
+ }
3537
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3538
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3539
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3540
+ return {
3541
+ url: toPathString(localVarUrlObj),
3542
+ options: localVarRequestOptions,
3543
+ };
3544
+ }),
3545
+ /**
3546
+ *
3513
3547
  * @summary Invite
3514
3548
  * @param {InviteToCompany} inviteToCompany
3515
3549
  * @param {string} [authorization]
@@ -3544,7 +3578,7 @@ export const RolesApiAxiosParamCreator = function (configuration) {
3544
3578
  };
3545
3579
  }),
3546
3580
  /**
3547
- * Remove people from company
3581
+ *
3548
3582
  * @summary Remove People
3549
3583
  * @param {RemoveFromCompany} removeFromCompany
3550
3584
  * @param {string} [authorization]
@@ -3588,7 +3622,25 @@ export const RolesApiFp = function (configuration) {
3588
3622
  const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration);
3589
3623
  return {
3590
3624
  /**
3591
- * Add people to company
3625
+ *
3626
+ * @summary Get User Permissions
3627
+ * @param {string} companyId
3628
+ * @param {string} [authorization]
3629
+ * @param {string} [sessionId]
3630
+ * @param {*} [options] Override http request option.
3631
+ * @throws {RequiredError}
3632
+ */
3633
+ getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options) {
3634
+ return __awaiter(this, void 0, void 0, function* () {
3635
+ var _a, _b, _c;
3636
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options);
3637
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3638
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.getUserPermissionsV1RolesCompanyIdMeGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3639
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3640
+ });
3641
+ },
3642
+ /**
3643
+ *
3592
3644
  * @summary Invite
3593
3645
  * @param {InviteToCompany} inviteToCompany
3594
3646
  * @param {string} [authorization]
@@ -3606,7 +3658,7 @@ export const RolesApiFp = function (configuration) {
3606
3658
  });
3607
3659
  },
3608
3660
  /**
3609
- * Remove people from company
3661
+ *
3610
3662
  * @summary Remove People
3611
3663
  * @param {RemoveFromCompany} removeFromCompany
3612
3664
  * @param {string} [authorization]
@@ -3633,7 +3685,19 @@ export const RolesApiFactory = function (configuration, basePath, axios) {
3633
3685
  const localVarFp = RolesApiFp(configuration);
3634
3686
  return {
3635
3687
  /**
3636
- * Add people to company
3688
+ *
3689
+ * @summary Get User Permissions
3690
+ * @param {string} companyId
3691
+ * @param {string} [authorization]
3692
+ * @param {string} [sessionId]
3693
+ * @param {*} [options] Override http request option.
3694
+ * @throws {RequiredError}
3695
+ */
3696
+ getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options) {
3697
+ return localVarFp.getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
3698
+ },
3699
+ /**
3700
+ *
3637
3701
  * @summary Invite
3638
3702
  * @param {InviteToCompany} inviteToCompany
3639
3703
  * @param {string} [authorization]
@@ -3645,7 +3709,7 @@ export const RolesApiFactory = function (configuration, basePath, axios) {
3645
3709
  return localVarFp.inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options).then((request) => request(axios, basePath));
3646
3710
  },
3647
3711
  /**
3648
- * Remove people from company
3712
+ *
3649
3713
  * @summary Remove People
3650
3714
  * @param {RemoveFromCompany} removeFromCompany
3651
3715
  * @param {string} [authorization]
@@ -3666,7 +3730,20 @@ export const RolesApiFactory = function (configuration, basePath, axios) {
3666
3730
  */
3667
3731
  export class RolesApi extends BaseAPI {
3668
3732
  /**
3669
- * Add people to company
3733
+ *
3734
+ * @summary Get User Permissions
3735
+ * @param {string} companyId
3736
+ * @param {string} [authorization]
3737
+ * @param {string} [sessionId]
3738
+ * @param {*} [options] Override http request option.
3739
+ * @throws {RequiredError}
3740
+ * @memberof RolesApi
3741
+ */
3742
+ getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options) {
3743
+ return RolesApiFp(this.configuration).getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3744
+ }
3745
+ /**
3746
+ *
3670
3747
  * @summary Invite
3671
3748
  * @param {InviteToCompany} inviteToCompany
3672
3749
  * @param {string} [authorization]
@@ -3679,7 +3756,7 @@ export class RolesApi extends BaseAPI {
3679
3756
  return RolesApiFp(this.configuration).inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3680
3757
  }
3681
3758
  /**
3682
- * Remove people from company
3759
+ *
3683
3760
  * @summary Remove People
3684
3761
  * @param {RemoveFromCompany} removeFromCompany
3685
3762
  * @param {string} [authorization]
@@ -0,0 +1,22 @@
1
+ # PermissionResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **company_id** | **string** | | [default to undefined]
9
+ **role** | [**PermissionType**](PermissionType.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PermissionResponse } from './api';
15
+
16
+ const instance: PermissionResponse = {
17
+ company_id,
18
+ role,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/RolesApi.md CHANGED
@@ -4,13 +4,70 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**getUserPermissionsV1RolesCompanyIdMeGet**](#getuserpermissionsv1rolescompanyidmeget) | **GET** /v1/roles/{company_id}/me | Get User Permissions|
7
8
  |[**inviteV1RolesInvitesPost**](#invitev1rolesinvitespost) | **POST** /v1/roles/invites | Invite|
8
9
  |[**removePeopleV1RolesInvitesDelete**](#removepeoplev1rolesinvitesdelete) | **DELETE** /v1/roles/invites | Remove People|
9
10
 
11
+ # **getUserPermissionsV1RolesCompanyIdMeGet**
12
+ > PermissionResponse getUserPermissionsV1RolesCompanyIdMeGet()
13
+
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ RolesApi,
20
+ Configuration
21
+ } from './api';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new RolesApi(configuration);
25
+
26
+ let companyId: string; // (default to undefined)
27
+ let authorization: string; // (optional) (default to undefined)
28
+ let sessionId: string; // (optional) (default to undefined)
29
+
30
+ const { status, data } = await apiInstance.getUserPermissionsV1RolesCompanyIdMeGet(
31
+ companyId,
32
+ authorization,
33
+ sessionId
34
+ );
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ |Name | Type | Description | Notes|
40
+ |------------- | ------------- | ------------- | -------------|
41
+ | **companyId** | [**string**] | | defaults to undefined|
42
+ | **authorization** | [**string**] | | (optional) defaults to undefined|
43
+ | **sessionId** | [**string**] | | (optional) defaults to undefined|
44
+
45
+
46
+ ### Return type
47
+
48
+ **PermissionResponse**
49
+
50
+ ### Authorization
51
+
52
+ No authorization required
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: Not defined
57
+ - **Accept**: application/json
58
+
59
+
60
+ ### HTTP response details
61
+ | Status code | Description | Response headers |
62
+ |-------------|-------------|------------------|
63
+ |**200** | Successful Response | - |
64
+ |**422** | Validation Error | - |
65
+
66
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
67
+
10
68
  # **inviteV1RolesInvitesPost**
11
69
  > Details inviteV1RolesInvitesPost(inviteToCompany)
12
70
 
13
- Add people to company
14
71
 
15
72
  ### Example
16
73
 
@@ -69,7 +126,6 @@ No authorization required
69
126
  # **removePeopleV1RolesInvitesDelete**
70
127
  > Details removePeopleV1RolesInvitesDelete(removeFromCompany)
71
128
 
72
- Remove people from company
73
129
 
74
130
  ### Example
75
131
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "openapi-generator-cli": "^1.0.0"
5
5
  },
6
6
  "name": "@rasadov/lumoar-sdk",
7
- "version": "1.0.10",
7
+ "version": "1.0.12",
8
8
  "description": "Lumoar API SDK",
9
9
  "main": "dist/index.js",
10
10
  "directories": {