@etainabl/nodejs-sdk 1.3.192 → 1.3.196
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.
- package/dist/esm/index.js +1546 -9430
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +7745 -31978
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/dist/esm/chunk-3G3VXGQN.js +0 -164
- package/dist/esm/chunk-3G3VXGQN.js.map +0 -1
- package/dist/esm/chunk-4JDZJVKZ.js +0 -29
- package/dist/esm/chunk-4JDZJVKZ.js.map +0 -1
- package/dist/esm/chunk-4QSQRVYQ.js +0 -4408
- package/dist/esm/chunk-4QSQRVYQ.js.map +0 -1
- package/dist/esm/chunk-7QBJXGSP.js +0 -143
- package/dist/esm/chunk-7QBJXGSP.js.map +0 -1
- package/dist/esm/chunk-CRX53WMM.js +0 -222
- package/dist/esm/chunk-CRX53WMM.js.map +0 -1
- package/dist/esm/chunk-D74LA2XQ.js +0 -773
- package/dist/esm/chunk-D74LA2XQ.js.map +0 -1
- package/dist/esm/chunk-G3PMV62Z.js +0 -36
- package/dist/esm/chunk-G3PMV62Z.js.map +0 -1
- package/dist/esm/chunk-IX2LY325.js +0 -38
- package/dist/esm/chunk-IX2LY325.js.map +0 -1
- package/dist/esm/chunk-KWPO3OOT.js +0 -180
- package/dist/esm/chunk-KWPO3OOT.js.map +0 -1
- package/dist/esm/chunk-MCSCBMNG.js +0 -1424
- package/dist/esm/chunk-MCSCBMNG.js.map +0 -1
- package/dist/esm/chunk-RREOR7G6.js +0 -9
- package/dist/esm/chunk-RREOR7G6.js.map +0 -1
- package/dist/esm/chunk-UQAJZJ7E.js +0 -11
- package/dist/esm/chunk-UQAJZJ7E.js.map +0 -1
- package/dist/esm/chunk-UZGMBQZB.js +0 -13
- package/dist/esm/chunk-UZGMBQZB.js.map +0 -1
- package/dist/esm/chunk-XARQOPCZ.js +0 -47
- package/dist/esm/chunk-XARQOPCZ.js.map +0 -1
- package/dist/esm/chunk-YCRW5ZB7.js +0 -257
- package/dist/esm/chunk-YCRW5ZB7.js.map +0 -1
- package/dist/esm/chunk-YLT3BSXS.js +0 -180
- package/dist/esm/chunk-YLT3BSXS.js.map +0 -1
- package/dist/esm/chunk-Z63CAAFL.js +0 -43
- package/dist/esm/chunk-Z63CAAFL.js.map +0 -1
- package/dist/esm/dist-es-4VSEUPMG.js +0 -168
- package/dist/esm/dist-es-4VSEUPMG.js.map +0 -1
- package/dist/esm/dist-es-5G2D4IRG.js +0 -88
- package/dist/esm/dist-es-5G2D4IRG.js.map +0 -1
- package/dist/esm/dist-es-6PYQFA7S.js +0 -68
- package/dist/esm/dist-es-6PYQFA7S.js.map +0 -1
- package/dist/esm/dist-es-O7YXE2TO.js +0 -381
- package/dist/esm/dist-es-O7YXE2TO.js.map +0 -1
- package/dist/esm/dist-es-RVUNLU7U.js +0 -314
- package/dist/esm/dist-es-RVUNLU7U.js.map +0 -1
- package/dist/esm/dist-es-UEBBJXWA.js +0 -22
- package/dist/esm/dist-es-UEBBJXWA.js.map +0 -1
- package/dist/esm/dist-es-XS4DOSVC.js +0 -202
- package/dist/esm/dist-es-XS4DOSVC.js.map +0 -1
- package/dist/esm/event-streams-OE4R7Y65.js +0 -238
- package/dist/esm/event-streams-OE4R7Y65.js.map +0 -1
- package/dist/esm/loadSso-3FHKR3DN.js +0 -662
- package/dist/esm/loadSso-3FHKR3DN.js.map +0 -1
- package/dist/esm/sso-oidc-EORQ3JVU.js +0 -832
- package/dist/esm/sso-oidc-EORQ3JVU.js.map +0 -1
- package/dist/esm/sts-VPLY2J63.js +0 -1169
- package/dist/esm/sts-VPLY2J63.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -704,10 +704,19 @@ interface UploadCsv {
|
|
|
704
704
|
orgFilename?: string;
|
|
705
705
|
}
|
|
706
706
|
declare function sendEmail(lambdaSource: string, context: Context, error: Error, destinations: string[]): Promise<_aws_sdk_client_ses.SendEmailCommandOutput>;
|
|
707
|
+
type FormattedRecord = FormattedConsumption | FormattedReading | FormattedInvoice;
|
|
707
708
|
declare function createCsv(data: (FormattedConsumption | FormattedReading | FormattedInvoice)[]): string;
|
|
708
709
|
declare function uploadCsv({ csvContent, automationRun, s3Client, orgFilename, collectionType }: UploadCsv): Promise<string>;
|
|
709
710
|
declare function handleError({ context, etnApi, automationRun, error, lambdaSource, accountId, automation, messageId }: HandleErrorParams): Promise<void>;
|
|
710
711
|
declare function deleteMessage(queueUrl: string, receiptHandle: string, sqsClient?: SQSClient): Promise<void>;
|
|
712
|
+
interface StreamCsvToS3Params {
|
|
713
|
+
data: FormattedRecord[];
|
|
714
|
+
s3Client: S3Client;
|
|
715
|
+
key: string;
|
|
716
|
+
bucket: string;
|
|
717
|
+
metadata?: Record<string, string>;
|
|
718
|
+
}
|
|
719
|
+
declare function streamCsvToS3({ data, s3Client, key, bucket, metadata }: StreamCsvToS3Params): Promise<string>;
|
|
711
720
|
|
|
712
721
|
type integrations_CollectionType = CollectionType;
|
|
713
722
|
type integrations_FormattedConsumption = FormattedConsumption;
|
|
@@ -721,9 +730,10 @@ declare const integrations_errorCodeMap: typeof errorCodeMap;
|
|
|
721
730
|
declare const integrations_errorCodes: typeof errorCodes;
|
|
722
731
|
declare const integrations_handleError: typeof handleError;
|
|
723
732
|
declare const integrations_sendEmail: typeof sendEmail;
|
|
733
|
+
declare const integrations_streamCsvToS3: typeof streamCsvToS3;
|
|
724
734
|
declare const integrations_uploadCsv: typeof uploadCsv;
|
|
725
735
|
declare namespace integrations {
|
|
726
|
-
export { type integrations_CollectionType as CollectionType, type integrations_FormattedConsumption as FormattedConsumption, type integrations_FormattedInvoice as FormattedInvoice, type integrations_FormattedReading as FormattedReading, integrations_collectionTypes as collectionTypes, integrations_createCsv as createCsv, integrations_dataFetchersIds as dataFetchersIds, integrations_deleteMessage as deleteMessage, integrations_errorCodeMap as errorCodeMap, integrations_errorCodes as errorCodes, integrations_handleError as handleError, integrations_sendEmail as sendEmail, integrations_uploadCsv as uploadCsv };
|
|
736
|
+
export { type integrations_CollectionType as CollectionType, type integrations_FormattedConsumption as FormattedConsumption, type integrations_FormattedInvoice as FormattedInvoice, type integrations_FormattedReading as FormattedReading, integrations_collectionTypes as collectionTypes, integrations_createCsv as createCsv, integrations_dataFetchersIds as dataFetchersIds, integrations_deleteMessage as deleteMessage, integrations_errorCodeMap as errorCodeMap, integrations_errorCodes as errorCodes, integrations_handleError as handleError, integrations_sendEmail as sendEmail, integrations_streamCsvToS3 as streamCsvToS3, integrations_uploadCsv as uploadCsv };
|
|
727
737
|
}
|
|
728
738
|
|
|
729
739
|
interface AutomationRunLog<DateType = Date | string> {
|
package/dist/index.d.ts
CHANGED
|
@@ -704,10 +704,19 @@ interface UploadCsv {
|
|
|
704
704
|
orgFilename?: string;
|
|
705
705
|
}
|
|
706
706
|
declare function sendEmail(lambdaSource: string, context: Context, error: Error, destinations: string[]): Promise<_aws_sdk_client_ses.SendEmailCommandOutput>;
|
|
707
|
+
type FormattedRecord = FormattedConsumption | FormattedReading | FormattedInvoice;
|
|
707
708
|
declare function createCsv(data: (FormattedConsumption | FormattedReading | FormattedInvoice)[]): string;
|
|
708
709
|
declare function uploadCsv({ csvContent, automationRun, s3Client, orgFilename, collectionType }: UploadCsv): Promise<string>;
|
|
709
710
|
declare function handleError({ context, etnApi, automationRun, error, lambdaSource, accountId, automation, messageId }: HandleErrorParams): Promise<void>;
|
|
710
711
|
declare function deleteMessage(queueUrl: string, receiptHandle: string, sqsClient?: SQSClient): Promise<void>;
|
|
712
|
+
interface StreamCsvToS3Params {
|
|
713
|
+
data: FormattedRecord[];
|
|
714
|
+
s3Client: S3Client;
|
|
715
|
+
key: string;
|
|
716
|
+
bucket: string;
|
|
717
|
+
metadata?: Record<string, string>;
|
|
718
|
+
}
|
|
719
|
+
declare function streamCsvToS3({ data, s3Client, key, bucket, metadata }: StreamCsvToS3Params): Promise<string>;
|
|
711
720
|
|
|
712
721
|
type integrations_CollectionType = CollectionType;
|
|
713
722
|
type integrations_FormattedConsumption = FormattedConsumption;
|
|
@@ -721,9 +730,10 @@ declare const integrations_errorCodeMap: typeof errorCodeMap;
|
|
|
721
730
|
declare const integrations_errorCodes: typeof errorCodes;
|
|
722
731
|
declare const integrations_handleError: typeof handleError;
|
|
723
732
|
declare const integrations_sendEmail: typeof sendEmail;
|
|
733
|
+
declare const integrations_streamCsvToS3: typeof streamCsvToS3;
|
|
724
734
|
declare const integrations_uploadCsv: typeof uploadCsv;
|
|
725
735
|
declare namespace integrations {
|
|
726
|
-
export { type integrations_CollectionType as CollectionType, type integrations_FormattedConsumption as FormattedConsumption, type integrations_FormattedInvoice as FormattedInvoice, type integrations_FormattedReading as FormattedReading, integrations_collectionTypes as collectionTypes, integrations_createCsv as createCsv, integrations_dataFetchersIds as dataFetchersIds, integrations_deleteMessage as deleteMessage, integrations_errorCodeMap as errorCodeMap, integrations_errorCodes as errorCodes, integrations_handleError as handleError, integrations_sendEmail as sendEmail, integrations_uploadCsv as uploadCsv };
|
|
736
|
+
export { type integrations_CollectionType as CollectionType, type integrations_FormattedConsumption as FormattedConsumption, type integrations_FormattedInvoice as FormattedInvoice, type integrations_FormattedReading as FormattedReading, integrations_collectionTypes as collectionTypes, integrations_createCsv as createCsv, integrations_dataFetchersIds as dataFetchersIds, integrations_deleteMessage as deleteMessage, integrations_errorCodeMap as errorCodeMap, integrations_errorCodes as errorCodes, integrations_handleError as handleError, integrations_sendEmail as sendEmail, integrations_streamCsvToS3 as streamCsvToS3, integrations_uploadCsv as uploadCsv };
|
|
727
737
|
}
|
|
728
738
|
|
|
729
739
|
interface AutomationRunLog<DateType = Date | string> {
|