fix: make changes to allow esm imports to work properly

This commit is contained in:
Stevan Freeborn
2023-02-21 13:23:07 -06:00
parent 7e33c5ecaa
commit b989adc01d
46 changed files with 392 additions and 376 deletions
+45 -45
View File
@@ -1,45 +1,45 @@
import { DataFormat } from '../enums/DataFormat';
/**
* @class GetRecordsRequest - Request to get records by their ids
*/
export class GetRecordsRequest {
/**
* @property {number} appId - The id of the app the records belong to.
*/
appId: number;
/**
* @property {number[]} recordIds - The ids of the records to get.
*/
recordIds: number[];
/**
* @property {number[]} fieldIds - The ids of the fields to include in the response.
*/
fieldIds: number[];
/**
* @property {DataFormat} dataFormat - The format of the data in the response.
*/
dataFormat: DataFormat;
/**
* @constructor - Creates a new instance of GetRecordsRequest
* @param {number} appId - The id of the app the records belong to.
* @param {number[]} recordIds - The ids of the records to get.
* @param {number[]} fieldIds - The ids of the fields to include in the response.
* @param {DataFormat} dataFormat - The format of the data in the response.
*/
constructor(
appId: number,
recordIds: number[],
fieldIds: number[] = [],
dataFormat: DataFormat = DataFormat.Raw
) {
this.appId = appId;
this.recordIds = recordIds;
this.fieldIds = fieldIds;
this.dataFormat = dataFormat;
}
}
import { DataFormat } from '../enums/DataFormat.js';
/**
* @class GetRecordsRequest - Request to get records by their ids
*/
export class GetRecordsRequest {
/**
* @property {number} appId - The id of the app the records belong to.
*/
appId: number;
/**
* @property {number[]} recordIds - The ids of the records to get.
*/
recordIds: number[];
/**
* @property {number[]} fieldIds - The ids of the fields to include in the response.
*/
fieldIds: number[];
/**
* @property {DataFormat} dataFormat - The format of the data in the response.
*/
dataFormat: DataFormat;
/**
* @constructor - Creates a new instance of GetRecordsRequest
* @param {number} appId - The id of the app the records belong to.
* @param {number[]} recordIds - The ids of the records to get.
* @param {number[]} fieldIds - The ids of the fields to include in the response.
* @param {DataFormat} dataFormat - The format of the data in the response.
*/
constructor(
appId: number,
recordIds: number[],
fieldIds: number[] = [],
dataFormat: DataFormat = DataFormat.Raw
) {
this.appId = appId;
this.recordIds = recordIds;
this.fieldIds = fieldIds;
this.dataFormat = dataFormat;
}
}