@rasadov/lumoar-sdk 1.0.9 → 1.0.11

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,7 @@ export class ReportsApi extends BaseAPI {
5582
5603
  export const RolesApiAxiosParamCreator = function (configuration?: Configuration) {
5583
5604
  return {
5584
5605
  /**
5585
- * Add people to company
5606
+ *
5586
5607
  * @summary Invite
5587
5608
  * @param {InviteToCompany} inviteToCompany
5588
5609
  * @param {string} [authorization]
@@ -5623,7 +5644,46 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
5623
5644
  };
5624
5645
  },
5625
5646
  /**
5626
- * Remove people from company
5647
+ *
5648
+ * @summary List Invites
5649
+ * @param {string} companyId
5650
+ * @param {string} [authorization]
5651
+ * @param {string} [sessionId]
5652
+ * @param {*} [options] Override http request option.
5653
+ * @throws {RequiredError}
5654
+ */
5655
+ listInvitesV1RolesCompanyIdMeGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5656
+ // verify required parameter 'companyId' is not null or undefined
5657
+ assertParamExists('listInvitesV1RolesCompanyIdMeGet', 'companyId', companyId)
5658
+ const localVarPath = `/v1/roles/{company_id}/me`
5659
+ .replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
5660
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5661
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5662
+ let baseOptions;
5663
+ if (configuration) {
5664
+ baseOptions = configuration.baseOptions;
5665
+ }
5666
+
5667
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5668
+ const localVarHeaderParameter = {} as any;
5669
+ const localVarQueryParameter = {} as any;
5670
+
5671
+
5672
+
5673
+ if (authorization != null) {
5674
+ localVarHeaderParameter['Authorization'] = String(authorization);
5675
+ }
5676
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5677
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5678
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5679
+
5680
+ return {
5681
+ url: toPathString(localVarUrlObj),
5682
+ options: localVarRequestOptions,
5683
+ };
5684
+ },
5685
+ /**
5686
+ *
5627
5687
  * @summary Remove People
5628
5688
  * @param {RemoveFromCompany} removeFromCompany
5629
5689
  * @param {string} [authorization]
@@ -5674,7 +5734,7 @@ export const RolesApiFp = function(configuration?: Configuration) {
5674
5734
  const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration)
5675
5735
  return {
5676
5736
  /**
5677
- * Add people to company
5737
+ *
5678
5738
  * @summary Invite
5679
5739
  * @param {InviteToCompany} inviteToCompany
5680
5740
  * @param {string} [authorization]
@@ -5689,7 +5749,22 @@ export const RolesApiFp = function(configuration?: Configuration) {
5689
5749
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5690
5750
  },
5691
5751
  /**
5692
- * Remove people from company
5752
+ *
5753
+ * @summary List Invites
5754
+ * @param {string} companyId
5755
+ * @param {string} [authorization]
5756
+ * @param {string} [sessionId]
5757
+ * @param {*} [options] Override http request option.
5758
+ * @throws {RequiredError}
5759
+ */
5760
+ async listInvitesV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PermissionResponse>> {
5761
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInvitesV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options);
5762
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5763
+ const localVarOperationServerBasePath = operationServerMap['RolesApi.listInvitesV1RolesCompanyIdMeGet']?.[localVarOperationServerIndex]?.url;
5764
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5765
+ },
5766
+ /**
5767
+ *
5693
5768
  * @summary Remove People
5694
5769
  * @param {RemoveFromCompany} removeFromCompany
5695
5770
  * @param {string} [authorization]
@@ -5714,7 +5789,7 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
5714
5789
  const localVarFp = RolesApiFp(configuration)
5715
5790
  return {
5716
5791
  /**
5717
- * Add people to company
5792
+ *
5718
5793
  * @summary Invite
5719
5794
  * @param {InviteToCompany} inviteToCompany
5720
5795
  * @param {string} [authorization]
@@ -5726,7 +5801,19 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
5726
5801
  return localVarFp.inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options).then((request) => request(axios, basePath));
5727
5802
  },
5728
5803
  /**
5729
- * Remove people from company
5804
+ *
5805
+ * @summary List Invites
5806
+ * @param {string} companyId
5807
+ * @param {string} [authorization]
5808
+ * @param {string} [sessionId]
5809
+ * @param {*} [options] Override http request option.
5810
+ * @throws {RequiredError}
5811
+ */
5812
+ listInvitesV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PermissionResponse> {
5813
+ return localVarFp.listInvitesV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
5814
+ },
5815
+ /**
5816
+ *
5730
5817
  * @summary Remove People
5731
5818
  * @param {RemoveFromCompany} removeFromCompany
5732
5819
  * @param {string} [authorization]
@@ -5748,7 +5835,7 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
5748
5835
  */
5749
5836
  export class RolesApi extends BaseAPI {
5750
5837
  /**
5751
- * Add people to company
5838
+ *
5752
5839
  * @summary Invite
5753
5840
  * @param {InviteToCompany} inviteToCompany
5754
5841
  * @param {string} [authorization]
@@ -5762,7 +5849,21 @@ export class RolesApi extends BaseAPI {
5762
5849
  }
5763
5850
 
5764
5851
  /**
5765
- * Remove people from company
5852
+ *
5853
+ * @summary List Invites
5854
+ * @param {string} companyId
5855
+ * @param {string} [authorization]
5856
+ * @param {string} [sessionId]
5857
+ * @param {*} [options] Override http request option.
5858
+ * @throws {RequiredError}
5859
+ * @memberof RolesApi
5860
+ */
5861
+ public listInvitesV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
5862
+ return RolesApiFp(this.configuration).listInvitesV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5863
+ }
5864
+
5865
+ /**
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,7 @@ export declare class ReportsApi extends BaseAPI {
3787
3806
  */
3788
3807
  export declare const RolesApiAxiosParamCreator: (configuration?: Configuration) => {
3789
3808
  /**
3790
- * Add people to company
3809
+ *
3791
3810
  * @summary Invite
3792
3811
  * @param {InviteToCompany} inviteToCompany
3793
3812
  * @param {string} [authorization]
@@ -3797,7 +3816,17 @@ export declare const RolesApiAxiosParamCreator: (configuration?: Configuration)
3797
3816
  */
3798
3817
  inviteV1RolesInvitesPost: (inviteToCompany: InviteToCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3799
3818
  /**
3800
- * Remove people from company
3819
+ *
3820
+ * @summary List Invites
3821
+ * @param {string} companyId
3822
+ * @param {string} [authorization]
3823
+ * @param {string} [sessionId]
3824
+ * @param {*} [options] Override http request option.
3825
+ * @throws {RequiredError}
3826
+ */
3827
+ listInvitesV1RolesCompanyIdMeGet: (companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3828
+ /**
3829
+ *
3801
3830
  * @summary Remove People
3802
3831
  * @param {RemoveFromCompany} removeFromCompany
3803
3832
  * @param {string} [authorization]
@@ -3813,7 +3842,7 @@ export declare const RolesApiAxiosParamCreator: (configuration?: Configuration)
3813
3842
  */
3814
3843
  export declare const RolesApiFp: (configuration?: Configuration) => {
3815
3844
  /**
3816
- * Add people to company
3845
+ *
3817
3846
  * @summary Invite
3818
3847
  * @param {InviteToCompany} inviteToCompany
3819
3848
  * @param {string} [authorization]
@@ -3823,7 +3852,17 @@ export declare const RolesApiFp: (configuration?: Configuration) => {
3823
3852
  */
3824
3853
  inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>>;
3825
3854
  /**
3826
- * Remove people from company
3855
+ *
3856
+ * @summary List Invites
3857
+ * @param {string} companyId
3858
+ * @param {string} [authorization]
3859
+ * @param {string} [sessionId]
3860
+ * @param {*} [options] Override http request option.
3861
+ * @throws {RequiredError}
3862
+ */
3863
+ listInvitesV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PermissionResponse>>;
3864
+ /**
3865
+ *
3827
3866
  * @summary Remove People
3828
3867
  * @param {RemoveFromCompany} removeFromCompany
3829
3868
  * @param {string} [authorization]
@@ -3839,7 +3878,7 @@ 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
+ *
3843
3882
  * @summary Invite
3844
3883
  * @param {InviteToCompany} inviteToCompany
3845
3884
  * @param {string} [authorization]
@@ -3849,7 +3888,17 @@ export declare const RolesApiFactory: (configuration?: Configuration, basePath?:
3849
3888
  */
3850
3889
  inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details>;
3851
3890
  /**
3852
- * Remove people from company
3891
+ *
3892
+ * @summary List Invites
3893
+ * @param {string} companyId
3894
+ * @param {string} [authorization]
3895
+ * @param {string} [sessionId]
3896
+ * @param {*} [options] Override http request option.
3897
+ * @throws {RequiredError}
3898
+ */
3899
+ listInvitesV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PermissionResponse>;
3900
+ /**
3901
+ *
3853
3902
  * @summary Remove People
3854
3903
  * @param {RemoveFromCompany} removeFromCompany
3855
3904
  * @param {string} [authorization]
@@ -3867,7 +3916,7 @@ 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
+ *
3871
3920
  * @summary Invite
3872
3921
  * @param {InviteToCompany} inviteToCompany
3873
3922
  * @param {string} [authorization]
@@ -3878,7 +3927,18 @@ export declare class RolesApi extends BaseAPI {
3878
3927
  */
3879
3928
  inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Details, any, {}>>;
3880
3929
  /**
3881
- * Remove people from company
3930
+ *
3931
+ * @summary List Invites
3932
+ * @param {string} companyId
3933
+ * @param {string} [authorization]
3934
+ * @param {string} [sessionId]
3935
+ * @param {*} [options] Override http request option.
3936
+ * @throws {RequiredError}
3937
+ * @memberof RolesApi
3938
+ */
3939
+ listInvitesV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PermissionResponse, any, {}>>;
3940
+ /**
3941
+ *
3882
3942
  * @summary Remove People
3883
3943
  * @param {RemoveFromCompany} removeFromCompany
3884
3944
  * @param {string} [authorization]
package/dist/api.js CHANGED
@@ -3509,7 +3509,7 @@ export class ReportsApi extends BaseAPI {
3509
3509
  export const RolesApiAxiosParamCreator = function (configuration) {
3510
3510
  return {
3511
3511
  /**
3512
- * Add people to company
3512
+ *
3513
3513
  * @summary Invite
3514
3514
  * @param {InviteToCompany} inviteToCompany
3515
3515
  * @param {string} [authorization]
@@ -3544,7 +3544,41 @@ export const RolesApiAxiosParamCreator = function (configuration) {
3544
3544
  };
3545
3545
  }),
3546
3546
  /**
3547
- * Remove people from company
3547
+ *
3548
+ * @summary List Invites
3549
+ * @param {string} companyId
3550
+ * @param {string} [authorization]
3551
+ * @param {string} [sessionId]
3552
+ * @param {*} [options] Override http request option.
3553
+ * @throws {RequiredError}
3554
+ */
3555
+ listInvitesV1RolesCompanyIdMeGet: (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 = {}) {
3556
+ // verify required parameter 'companyId' is not null or undefined
3557
+ assertParamExists('listInvitesV1RolesCompanyIdMeGet', 'companyId', companyId);
3558
+ const localVarPath = `/v1/roles/{company_id}/me`
3559
+ .replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
3560
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3561
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3562
+ let baseOptions;
3563
+ if (configuration) {
3564
+ baseOptions = configuration.baseOptions;
3565
+ }
3566
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3567
+ const localVarHeaderParameter = {};
3568
+ const localVarQueryParameter = {};
3569
+ if (authorization != null) {
3570
+ localVarHeaderParameter['Authorization'] = String(authorization);
3571
+ }
3572
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3573
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3574
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3575
+ return {
3576
+ url: toPathString(localVarUrlObj),
3577
+ options: localVarRequestOptions,
3578
+ };
3579
+ }),
3580
+ /**
3581
+ *
3548
3582
  * @summary Remove People
3549
3583
  * @param {RemoveFromCompany} removeFromCompany
3550
3584
  * @param {string} [authorization]
@@ -3588,7 +3622,7 @@ export const RolesApiFp = function (configuration) {
3588
3622
  const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration);
3589
3623
  return {
3590
3624
  /**
3591
- * Add people to company
3625
+ *
3592
3626
  * @summary Invite
3593
3627
  * @param {InviteToCompany} inviteToCompany
3594
3628
  * @param {string} [authorization]
@@ -3606,7 +3640,25 @@ export const RolesApiFp = function (configuration) {
3606
3640
  });
3607
3641
  },
3608
3642
  /**
3609
- * Remove people from company
3643
+ *
3644
+ * @summary List Invites
3645
+ * @param {string} companyId
3646
+ * @param {string} [authorization]
3647
+ * @param {string} [sessionId]
3648
+ * @param {*} [options] Override http request option.
3649
+ * @throws {RequiredError}
3650
+ */
3651
+ listInvitesV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options) {
3652
+ return __awaiter(this, void 0, void 0, function* () {
3653
+ var _a, _b, _c;
3654
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listInvitesV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options);
3655
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3656
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.listInvitesV1RolesCompanyIdMeGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3657
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3658
+ });
3659
+ },
3660
+ /**
3661
+ *
3610
3662
  * @summary Remove People
3611
3663
  * @param {RemoveFromCompany} removeFromCompany
3612
3664
  * @param {string} [authorization]
@@ -3633,7 +3685,7 @@ export const RolesApiFactory = function (configuration, basePath, axios) {
3633
3685
  const localVarFp = RolesApiFp(configuration);
3634
3686
  return {
3635
3687
  /**
3636
- * Add people to company
3688
+ *
3637
3689
  * @summary Invite
3638
3690
  * @param {InviteToCompany} inviteToCompany
3639
3691
  * @param {string} [authorization]
@@ -3645,7 +3697,19 @@ export const RolesApiFactory = function (configuration, basePath, axios) {
3645
3697
  return localVarFp.inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options).then((request) => request(axios, basePath));
3646
3698
  },
3647
3699
  /**
3648
- * Remove people from company
3700
+ *
3701
+ * @summary List Invites
3702
+ * @param {string} companyId
3703
+ * @param {string} [authorization]
3704
+ * @param {string} [sessionId]
3705
+ * @param {*} [options] Override http request option.
3706
+ * @throws {RequiredError}
3707
+ */
3708
+ listInvitesV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options) {
3709
+ return localVarFp.listInvitesV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
3710
+ },
3711
+ /**
3712
+ *
3649
3713
  * @summary Remove People
3650
3714
  * @param {RemoveFromCompany} removeFromCompany
3651
3715
  * @param {string} [authorization]
@@ -3666,7 +3730,7 @@ export const RolesApiFactory = function (configuration, basePath, axios) {
3666
3730
  */
3667
3731
  export class RolesApi extends BaseAPI {
3668
3732
  /**
3669
- * Add people to company
3733
+ *
3670
3734
  * @summary Invite
3671
3735
  * @param {InviteToCompany} inviteToCompany
3672
3736
  * @param {string} [authorization]
@@ -3679,7 +3743,20 @@ export class RolesApi extends BaseAPI {
3679
3743
  return RolesApiFp(this.configuration).inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3680
3744
  }
3681
3745
  /**
3682
- * Remove people from company
3746
+ *
3747
+ * @summary List Invites
3748
+ * @param {string} companyId
3749
+ * @param {string} [authorization]
3750
+ * @param {string} [sessionId]
3751
+ * @param {*} [options] Override http request option.
3752
+ * @throws {RequiredError}
3753
+ * @memberof RolesApi
3754
+ */
3755
+ listInvitesV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options) {
3756
+ return RolesApiFp(this.configuration).listInvitesV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3757
+ }
3758
+ /**
3759
+ *
3683
3760
  * @summary Remove People
3684
3761
  * @param {RemoveFromCompany} removeFromCompany
3685
3762
  * @param {string} [authorization]
package/dist/index.d.ts CHANGED
@@ -11,3 +11,4 @@
11
11
  */
12
12
  export * from "./api";
13
13
  export * from "./configuration";
14
+ export * from "./sdk";
package/dist/index.js CHANGED
@@ -13,3 +13,4 @@
13
13
  */
14
14
  export * from "./api";
15
15
  export * from "./configuration";
16
+ export * from "./sdk";
@@ -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
@@ -5,12 +5,12 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**inviteV1RolesInvitesPost**](#invitev1rolesinvitespost) | **POST** /v1/roles/invites | Invite|
8
+ |[**listInvitesV1RolesCompanyIdMeGet**](#listinvitesv1rolescompanyidmeget) | **GET** /v1/roles/{company_id}/me | List Invites|
8
9
  |[**removePeopleV1RolesInvitesDelete**](#removepeoplev1rolesinvitesdelete) | **DELETE** /v1/roles/invites | Remove People|
9
10
 
10
11
  # **inviteV1RolesInvitesPost**
11
12
  > Details inviteV1RolesInvitesPost(inviteToCompany)
12
13
 
13
- Add people to company
14
14
 
15
15
  ### Example
16
16
 
@@ -58,6 +58,63 @@ No authorization required
58
58
  - **Accept**: application/json
59
59
 
60
60
 
61
+ ### HTTP response details
62
+ | Status code | Description | Response headers |
63
+ |-------------|-------------|------------------|
64
+ |**200** | Successful Response | - |
65
+ |**422** | Validation Error | - |
66
+
67
+ [[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)
68
+
69
+ # **listInvitesV1RolesCompanyIdMeGet**
70
+ > PermissionResponse listInvitesV1RolesCompanyIdMeGet()
71
+
72
+
73
+ ### Example
74
+
75
+ ```typescript
76
+ import {
77
+ RolesApi,
78
+ Configuration
79
+ } from './api';
80
+
81
+ const configuration = new Configuration();
82
+ const apiInstance = new RolesApi(configuration);
83
+
84
+ let companyId: string; // (default to undefined)
85
+ let authorization: string; // (optional) (default to undefined)
86
+ let sessionId: string; // (optional) (default to undefined)
87
+
88
+ const { status, data } = await apiInstance.listInvitesV1RolesCompanyIdMeGet(
89
+ companyId,
90
+ authorization,
91
+ sessionId
92
+ );
93
+ ```
94
+
95
+ ### Parameters
96
+
97
+ |Name | Type | Description | Notes|
98
+ |------------- | ------------- | ------------- | -------------|
99
+ | **companyId** | [**string**] | | defaults to undefined|
100
+ | **authorization** | [**string**] | | (optional) defaults to undefined|
101
+ | **sessionId** | [**string**] | | (optional) defaults to undefined|
102
+
103
+
104
+ ### Return type
105
+
106
+ **PermissionResponse**
107
+
108
+ ### Authorization
109
+
110
+ No authorization required
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: Not defined
115
+ - **Accept**: application/json
116
+
117
+
61
118
  ### HTTP response details
62
119
  | Status code | Description | Response headers |
63
120
  |-------------|-------------|------------------|
@@ -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/index.ts CHANGED
@@ -15,4 +15,4 @@
15
15
 
16
16
  export * from "./api";
17
17
  export * from "./configuration";
18
-
18
+ export * from "./sdk";
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.9",
7
+ "version": "1.0.11",
8
8
  "description": "Lumoar API SDK",
9
9
  "main": "dist/index.js",
10
10
  "directories": {