Skip to content

Commit

Permalink
feat: handle being used as an ES module in Node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
coel committed Sep 21, 2023
1 parent 28a3695 commit 61b4aca
Show file tree
Hide file tree
Showing 124 changed files with 383 additions and 362 deletions.
6 changes: 3 additions & 3 deletions lib/apis/APIsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
*/


import * as runtime from '../runtime';
import * as runtime from '../runtime.js';
import type {
AddAPIsRequest,
Api,
Apis,
ErrorResponse,
SuccessResponse,
UpdateAPIApplicationsRequest,
} from '../models/index';
} from '../models/index.js';
import {
AddAPIsRequestFromJSON,
AddAPIsRequestToJSON,
Expand All @@ -35,7 +35,7 @@ import {
SuccessResponseToJSON,
UpdateAPIApplicationsRequestFromJSON,
UpdateAPIApplicationsRequestToJSON,
} from '../models/index';
} from '../models/index.js';

export interface AddAPIsOperationRequest {
addAPIsRequest: AddAPIsRequest;
Expand Down
6 changes: 3 additions & 3 deletions lib/apis/ApplicationsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
*/


import * as runtime from '../runtime';
import * as runtime from '../runtime.js';
import type {
CreateApplicationRequest,
CreateApplicationResponse,
ErrorResponse,
GetApplicationResponse,
GetApplicationsResponse,
UpdateApplicationRequest,
} from '../models/index';
} from '../models/index.js';
import {
CreateApplicationRequestFromJSON,
CreateApplicationRequestToJSON,
Expand All @@ -35,7 +35,7 @@ import {
GetApplicationsResponseToJSON,
UpdateApplicationRequestFromJSON,
UpdateApplicationRequestToJSON,
} from '../models/index';
} from '../models/index.js';

export interface CreateApplicationOperationRequest {
createApplicationRequest?: CreateApplicationRequest;
Expand Down
6 changes: 3 additions & 3 deletions lib/apis/BusinessApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
*/


import * as runtime from '../runtime';
import * as runtime from '../runtime.js';
import type {
ErrorResponse,
SuccessResponse,
} from '../models/index';
} from '../models/index.js';
import {
ErrorResponseFromJSON,
ErrorResponseToJSON,
SuccessResponseFromJSON,
SuccessResponseToJSON,
} from '../models/index';
} from '../models/index.js';

export interface GetBusinessRequest {
code: string;
Expand Down
6 changes: 3 additions & 3 deletions lib/apis/CallbacksApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
*/


import * as runtime from '../runtime';
import * as runtime from '../runtime.js';
import type {
ErrorResponse,
LogoutRedirectUrls,
RedirectCallbackUrls,
ReplaceLogoutRedirectURLsRequest,
ReplaceRedirectCallbackURLsRequest,
SuccessResponse,
} from '../models/index';
} from '../models/index.js';
import {
ErrorResponseFromJSON,
ErrorResponseToJSON,
Expand All @@ -35,7 +35,7 @@ import {
ReplaceRedirectCallbackURLsRequestToJSON,
SuccessResponseFromJSON,
SuccessResponseToJSON,
} from '../models/index';
} from '../models/index.js';

export interface AddLogoutRedirectURLsRequest {
appId: string;
Expand Down
6 changes: 3 additions & 3 deletions lib/apis/ConnectedAppsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
*/


import * as runtime from '../runtime';
import * as runtime from '../runtime.js';
import type {
ConnectedAppsAccessToken,
ConnectedAppsAuthUrl,
ErrorResponse,
SuccessResponse,
} from '../models/index';
} from '../models/index.js';
import {
ConnectedAppsAccessTokenFromJSON,
ConnectedAppsAccessTokenToJSON,
Expand All @@ -29,7 +29,7 @@ import {
ErrorResponseToJSON,
SuccessResponseFromJSON,
SuccessResponseToJSON,
} from '../models/index';
} from '../models/index.js';

export interface GetConnectedAppAuthUrlRequest {
keyCodeRef: string;
Expand Down
6 changes: 3 additions & 3 deletions lib/apis/EnvironmentsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
*/


import * as runtime from '../runtime';
import * as runtime from '../runtime.js';
import type {
ErrorResponse,
GetEnvironmentFeatureFlagsResponse,
SuccessResponse,
UpdateEnvironementFeatureFlagOverrideRequest,
} from '../models/index';
} from '../models/index.js';
import {
ErrorResponseFromJSON,
ErrorResponseToJSON,
Expand All @@ -29,7 +29,7 @@ import {
SuccessResponseToJSON,
UpdateEnvironementFeatureFlagOverrideRequestFromJSON,
UpdateEnvironementFeatureFlagOverrideRequestToJSON,
} from '../models/index';
} from '../models/index.js';

export interface DeleteEnvironementFeatureFlagOverrideRequest {
featureFlagKey: string;
Expand Down
6 changes: 3 additions & 3 deletions lib/apis/FeatureFlagsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
*/


import * as runtime from '../runtime';
import * as runtime from '../runtime.js';
import type {
CreateFeatureFlagRequest,
ErrorResponse,
SuccessResponse,
} from '../models/index';
} from '../models/index.js';
import {
CreateFeatureFlagRequestFromJSON,
CreateFeatureFlagRequestToJSON,
ErrorResponseFromJSON,
ErrorResponseToJSON,
SuccessResponseFromJSON,
SuccessResponseToJSON,
} from '../models/index';
} from '../models/index.js';

export interface CreateFeatureFlagOperationRequest {
createFeatureFlagRequest: CreateFeatureFlagRequest;
Expand Down
6 changes: 3 additions & 3 deletions lib/apis/IndustriesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
*/


import * as runtime from '../runtime';
import * as runtime from '../runtime.js';
import type {
SuccessResponse,
} from '../models/index';
} from '../models/index.js';
import {
SuccessResponseFromJSON,
SuccessResponseToJSON,
} from '../models/index';
} from '../models/index.js';

export interface GetIndustriesRequest {
industryKey?: string;
Expand Down
6 changes: 3 additions & 3 deletions lib/apis/OAuthApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
*/


import * as runtime from '../runtime';
import * as runtime from '../runtime.js';
import type {
TokenErrorResponse,
TokenIntrospect,
UserProfile,
UserProfileV2,
} from '../models/index';
} from '../models/index.js';
import {
TokenErrorResponseFromJSON,
TokenErrorResponseToJSON,
Expand All @@ -29,7 +29,7 @@ import {
UserProfileToJSON,
UserProfileV2FromJSON,
UserProfileV2ToJSON,
} from '../models/index';
} from '../models/index.js';

export interface TokenIntrospectionRequest {
token?: string;
Expand Down
6 changes: 3 additions & 3 deletions lib/apis/OrganizationsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/


import * as runtime from '../runtime';
import * as runtime from '../runtime.js';
import type {
AddOrganizationUsersRequest,
AddOrganizationUsersResponse,
Expand All @@ -32,7 +32,7 @@ import type {
UpdateOrganizationRequest,
UpdateOrganizationUsersRequest,
UpdateOrganizationUsersResponse,
} from '../models/index';
} from '../models/index.js';
import {
AddOrganizationUsersRequestFromJSON,
AddOrganizationUsersRequestToJSON,
Expand Down Expand Up @@ -68,7 +68,7 @@ import {
UpdateOrganizationUsersRequestToJSON,
UpdateOrganizationUsersResponseFromJSON,
UpdateOrganizationUsersResponseToJSON,
} from '../models/index';
} from '../models/index.js';

export interface AddOrganizationUsersOperationRequest {
orgCode: string;
Expand Down
6 changes: 3 additions & 3 deletions lib/apis/PermissionsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
*/


import * as runtime from '../runtime';
import * as runtime from '../runtime.js';
import type {
CreatePermissionRequest,
ErrorResponse,
SuccessResponse,
} from '../models/index';
} from '../models/index.js';
import {
CreatePermissionRequestFromJSON,
CreatePermissionRequestToJSON,
ErrorResponseFromJSON,
ErrorResponseToJSON,
SuccessResponseFromJSON,
SuccessResponseToJSON,
} from '../models/index';
} from '../models/index.js';

export interface CreatePermissionOperationRequest {
createPermissionRequest?: CreatePermissionRequest;
Expand Down
6 changes: 3 additions & 3 deletions lib/apis/RolesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/


import * as runtime from '../runtime';
import * as runtime from '../runtime.js';
import type {
CreateRoleRequest,
ErrorResponse,
Expand All @@ -23,7 +23,7 @@ import type {
UpdateRolePermissionsRequest,
UpdateRolePermissionsResponse,
UpdateRolesRequest,
} from '../models/index';
} from '../models/index.js';
import {
CreateRoleRequestFromJSON,
CreateRoleRequestToJSON,
Expand All @@ -41,7 +41,7 @@ import {
UpdateRolePermissionsResponseToJSON,
UpdateRolesRequestFromJSON,
UpdateRolesRequestToJSON,
} from '../models/index';
} from '../models/index.js';

export interface CreateRoleOperationRequest {
createRoleRequest?: CreateRoleRequest;
Expand Down
6 changes: 3 additions & 3 deletions lib/apis/SubscribersApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
*/


import * as runtime from '../runtime';
import * as runtime from '../runtime.js';
import type {
CreateSubscriberSuccessResponse,
ErrorResponse,
GetSubscriberResponse,
GetSubscribersResponse,
} from '../models/index';
} from '../models/index.js';
import {
CreateSubscriberSuccessResponseFromJSON,
CreateSubscriberSuccessResponseToJSON,
Expand All @@ -29,7 +29,7 @@ import {
GetSubscriberResponseToJSON,
GetSubscribersResponseFromJSON,
GetSubscribersResponseToJSON,
} from '../models/index';
} from '../models/index.js';

export interface CreateSubscriberRequest {
firstName: string;
Expand Down
6 changes: 3 additions & 3 deletions lib/apis/TimezonesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
*/


import * as runtime from '../runtime';
import * as runtime from '../runtime.js';
import type {
SuccessResponse,
} from '../models/index';
} from '../models/index.js';
import {
SuccessResponseFromJSON,
SuccessResponseToJSON,
} from '../models/index';
} from '../models/index.js';

export interface GetTimezonesRequest {
timezoneKey?: string;
Expand Down
6 changes: 3 additions & 3 deletions lib/apis/UsersApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/


import * as runtime from '../runtime';
import * as runtime from '../runtime.js';
import type {
CreateUserRequest,
CreateUserResponse,
Expand All @@ -22,7 +22,7 @@ import type {
UpdateUserRequest,
User,
UsersResponse,
} from '../models/index';
} from '../models/index.js';
import {
CreateUserRequestFromJSON,
CreateUserRequestToJSON,
Expand All @@ -38,7 +38,7 @@ import {
UserToJSON,
UsersResponseFromJSON,
UsersResponseToJSON,
} from '../models/index';
} from '../models/index.js';

export interface CreateUserOperationRequest {
createUserRequest?: CreateUserRequest;
Expand Down
30 changes: 15 additions & 15 deletions lib/apis/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/* tslint:disable */
/* eslint-disable */
export * from './APIsApi';
export * from './ApplicationsApi';
export * from './BusinessApi';
export * from './CallbacksApi';
export * from './ConnectedAppsApi';
export * from './EnvironmentsApi';
export * from './FeatureFlagsApi';
export * from './IndustriesApi';
export * from './OAuthApi';
export * from './OrganizationsApi';
export * from './PermissionsApi';
export * from './RolesApi';
export * from './SubscribersApi';
export * from './TimezonesApi';
export * from './UsersApi';
export * from './APIsApi.js';
export * from './ApplicationsApi.js';
export * from './BusinessApi.js';
export * from './CallbacksApi.js';
export * from './ConnectedAppsApi.js';
export * from './EnvironmentsApi.js';
export * from './FeatureFlagsApi.js';
export * from './IndustriesApi.js';
export * from './OAuthApi.js';
export * from './OrganizationsApi.js';
export * from './PermissionsApi.js';
export * from './RolesApi.js';
export * from './SubscribersApi.js';
export * from './TimezonesApi.js';
export * from './UsersApi.js';
Loading

0 comments on commit 61b4aca

Please sign in to comment.