@ingeno/pipedream-services 1.0.63 → 1.0.64
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/aws/apn/partner-central-client.test.d.ts +2 -0
- package/dist/aws/apn/partner-central-client.test.d.ts.map +1 -0
- package/dist/aws/apn/partner-central-client.test.js +38 -0
- package/dist/aws/apn/partner-central-client.test.js.map +1 -0
- package/dist/aws/apn/zoho-crm/apn-opportunities-sync-step.test.d.ts +2 -0
- package/dist/aws/apn/zoho-crm/apn-opportunities-sync-step.test.d.ts.map +1 -0
- package/dist/aws/apn/zoho-crm/apn-opportunities-sync-step.test.js +34 -0
- package/dist/aws/apn/zoho-crm/apn-opportunities-sync-step.test.js.map +1 -0
- package/dist/aws/aws-list-stream.test.d.ts +3 -0
- package/dist/aws/aws-list-stream.test.d.ts.map +1 -0
- package/dist/aws/aws-list-stream.test.js +50 -0
- package/dist/aws/aws-list-stream.test.js.map +1 -0
- package/dist/collections/collections-to-table.test.d.ts +2 -0
- package/dist/collections/collections-to-table.test.d.ts.map +1 -0
- package/dist/collections/collections-to-table.test.js +105 -0
- package/dist/collections/collections-to-table.test.js.map +1 -0
- package/dist/collections/converter.test.d.ts +2 -0
- package/dist/collections/converter.test.d.ts.map +1 -0
- package/dist/collections/converter.test.js +304 -0
- package/dist/collections/converter.test.js.map +1 -0
- package/dist/postgres/posgres-test-config.d.ts +8 -0
- package/dist/postgres/posgres-test-config.d.ts.map +1 -0
- package/dist/postgres/posgres-test-config.js +8 -0
- package/dist/postgres/posgres-test-config.js.map +1 -0
- package/dist/postgres/postgres-test-connection.test.d.ts +2 -0
- package/dist/postgres/postgres-test-connection.test.d.ts.map +1 -0
- package/dist/postgres/postgres-test-connection.test.js +68 -0
- package/dist/postgres/postgres-test-connection.test.js.map +1 -0
- package/dist/postgres/postgres.d.ts.map +1 -1
- package/dist/postgres/postgres.js +5 -3
- package/dist/postgres/postgres.js.map +1 -1
- package/dist/postgres/postgres.test.d.ts +2 -0
- package/dist/postgres/postgres.test.d.ts.map +1 -0
- package/dist/postgres/postgres.test.js +497 -0
- package/dist/postgres/postgres.test.js.map +1 -0
- package/dist/streams/list-stream.test.d.ts +2 -0
- package/dist/streams/list-stream.test.d.ts.map +1 -0
- package/dist/streams/list-stream.test.js +169 -0
- package/dist/streams/list-stream.test.js.map +1 -0
- package/dist/zoho-crm/zoho-crm-client.d.ts +68 -0
- package/dist/zoho-crm/zoho-crm-client.d.ts.map +1 -1
- package/dist/zoho-crm/zoho-crm-client.js +216 -0
- package/dist/zoho-crm/zoho-crm-client.js.map +1 -1
- package/dist/zoho-crm/zoho-crm-client.test.d.ts +2 -0
- package/dist/zoho-crm/zoho-crm-client.test.d.ts.map +1 -0
- package/dist/zoho-crm/zoho-crm-client.test.js +341 -0
- package/dist/zoho-crm/zoho-crm-client.test.js.map +1 -0
- package/dist/zoho-crm/zoho-crm-fetcher.d.ts.map +1 -1
- package/dist/zoho-crm/zoho-crm-fetcher.js +76 -5
- package/dist/zoho-crm/zoho-crm-fetcher.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partner-central-client.test.d.ts","sourceRoot":"","sources":["../../../src/aws/apn/partner-central-client.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { lastValueFrom, tap } from 'rxjs';
|
|
2
|
+
import { describe, expect, it } from 'vitest';
|
|
3
|
+
import { awsTestCredentials } from '@ingeno/pipedream-simulator';
|
|
4
|
+
import { assumeRoleExecutionContext } from '../execute-as.js';
|
|
5
|
+
import { PartnerCentralClient } from './partner-central-client.js';
|
|
6
|
+
describe('createPaginatedStream', () => {
|
|
7
|
+
const getClient = async () => {
|
|
8
|
+
const awsCredentials = await awsTestCredentials();
|
|
9
|
+
const mainCredentials = {
|
|
10
|
+
accessKeyId: awsCredentials.accessKeyId,
|
|
11
|
+
secretAccessKey: awsCredentials.secretAccessKey,
|
|
12
|
+
};
|
|
13
|
+
const apnOptions = {
|
|
14
|
+
accountId: '774133161165',
|
|
15
|
+
roleName: 'IngenoCrossAccountReadOnlyAccessRole',
|
|
16
|
+
mainCredentials,
|
|
17
|
+
};
|
|
18
|
+
const executionContext = assumeRoleExecutionContext(apnOptions);
|
|
19
|
+
const credentials = typeof executionContext.credentials === 'function'
|
|
20
|
+
? await executionContext.credentials()
|
|
21
|
+
: executionContext.credentials;
|
|
22
|
+
return new PartnerCentralClient({ credentials });
|
|
23
|
+
};
|
|
24
|
+
it('can stream all opportunities', async () => {
|
|
25
|
+
const client = await getClient();
|
|
26
|
+
let count = 0;
|
|
27
|
+
const stream = client.streamOpportunities({
|
|
28
|
+
maxResults: 5, pageSize: 4, includeAwsOpportunity: true, includeDetails: true
|
|
29
|
+
})
|
|
30
|
+
.pipe(tap(opportunity => {
|
|
31
|
+
count++;
|
|
32
|
+
console.log(`Opportunity ${count} : ${JSON.stringify(opportunity, null, 2)}`);
|
|
33
|
+
}));
|
|
34
|
+
await lastValueFrom(stream);
|
|
35
|
+
expect(count).toBe(5);
|
|
36
|
+
}, 10000);
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=partner-central-client.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partner-central-client.test.js","sourceRoot":"","sources":["../../../src/aws/apn/partner-central-client.test.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAY,GAAG,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IAErC,MAAM,SAAS,GA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KAAK,CAAC,CAAA;AACX,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apn-opportunities-sync-step.test.d.ts","sourceRoot":"","sources":["../../../../src/aws/apn/zoho-crm/apn-opportunities-sync-step.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { beforeAll, describe, it } from 'vitest';
|
|
2
|
+
import { awsTestCredentials, zohoTestCredentials } from '@ingeno/pipedream-simulator';
|
|
3
|
+
import { syncAPNOpportunitiesToZoho } from './apn-opportunities-sync-step.js';
|
|
4
|
+
describe('ApnOpportunitiesSync', () => {
|
|
5
|
+
let apnOptions;
|
|
6
|
+
let zohoOptions;
|
|
7
|
+
beforeAll(async () => {
|
|
8
|
+
const awsCredentials = await awsTestCredentials();
|
|
9
|
+
const zohoCredentials = await zohoTestCredentials();
|
|
10
|
+
apnOptions = {
|
|
11
|
+
accountId: '774133161165',
|
|
12
|
+
roleName: 'IngenoCrossAccountReadOnlyAccessRole',
|
|
13
|
+
mainCredentials: {
|
|
14
|
+
accessKeyId: awsCredentials.accessKeyId,
|
|
15
|
+
secretAccessKey: awsCredentials.secretAccessKey,
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
zohoOptions = {
|
|
19
|
+
accessToken: zohoCredentials.oauth_access_token,
|
|
20
|
+
apiDomain: zohoCredentials.api_domain,
|
|
21
|
+
};
|
|
22
|
+
}, 30000);
|
|
23
|
+
describe('apn-opportunities-sync', () => {
|
|
24
|
+
it('should handle sync with real credentials', async () => {
|
|
25
|
+
await syncAPNOpportunitiesToZoho({
|
|
26
|
+
apn: apnOptions,
|
|
27
|
+
zoho: zohoOptions,
|
|
28
|
+
syncedDays: 10000,
|
|
29
|
+
maxRecords: 1000,
|
|
30
|
+
});
|
|
31
|
+
}, 300000);
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=apn-opportunities-sync-step.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apn-opportunities-sync-step.test.js","sourceRoot":"","sources":["../../../../src/aws/apn/zoho-crm/apn-opportunities-sync-step.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAErF,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAA;AAE7E,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IAEpC,IAAI,UAA6B,CAAA;IACjC,IAAI,WAGH,CAAA;IAED,SAAS,CAAC,KAAK,IAAI,EAAE;QACnB,MAAM,cAAc,GAAG,MAAM,kBAAkB,EAAE,CAAA;QACjD,MAAM,eAAe,GAAG,MAAM,mBAAmB,EAAE,CAAA;QAEnD,UAAU,GAAG;YACX,SAAS,EAAE,cAAc;YACzB,QAAQ,EAAE,sCAAsC;YAChD,eAAe,EAAE;gBACf,WAAW,EAAE,cAAc,CAAC,WAAW;gBACvC,eAAe,EAAE,cAAc,CAAC,eAAe;aAChD;SACF,CAAA;QAED,WAAW,GAAG;YACZ,WAAW,EAAE,eAAe,CAAC,kBAAmB;YAChD,SAAS,EAAE,eAAe,CAAC,UAAU;SACtC,CAAA;IACH,CAAC,EAAE,KAAK,CAAC,CAAA;IAET,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;QACtC,EAAE,CAAC,0CAA0C,EAAE,KAAK,IAAI,EAAE;YACxD,MAAM,0BAA0B,CAAC;gBAC/B,GAAG,EAAE,UAAU;gBACf,IAAI,EAAE,WAAW;gBACjB,UAAU,EAAE,KAAK;gBACjB,UAAU,EAAE,IAAI;aACjB,CAAC,CAAA;QACJ,CAAC,EAAE,MAAM,CAAC,CAAA;IACZ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aws-list-stream.test.d.ts","sourceRoot":"","sources":["../../src/aws/aws-list-stream.test.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0C,UAAU,EAAsB,MAAM,MAAM,CAAC;AAO9F,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAE,SAAS,MAAM,MAC1C,QAAQ,UAAU,CAAC,CAAC,CAAC,KAAG,UAAU,CAAC,CAAC,CAK7C,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ListOpportunitiesCommand, PartnerCentralSellingClient } from '@aws-sdk/client-partnercentral-selling';
|
|
2
|
+
import { concatMap, delay, firstValueFrom, from, take, toArray } from 'rxjs';
|
|
3
|
+
import { describe, expect, it } from 'vitest';
|
|
4
|
+
import { awsTestCredentials } from '@ingeno/pipedream-simulator';
|
|
5
|
+
import { createPaginatedStream } from '../streams/list-stream.js';
|
|
6
|
+
import { assumeRoleExecutionContext } from './execute-as.js';
|
|
7
|
+
// Simple delay-based throttling
|
|
8
|
+
export const throttleWithDelay = (delayMs) => {
|
|
9
|
+
return (source) => {
|
|
10
|
+
return source.pipe(concatMap(item => from([item]).pipe(delay(delayMs))));
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
describe('createPaginatedStream', () => {
|
|
14
|
+
const getApnClient = async () => {
|
|
15
|
+
const awsCredentials = await awsTestCredentials();
|
|
16
|
+
const credentials = {
|
|
17
|
+
accessKeyId: awsCredentials.accessKeyId,
|
|
18
|
+
secretAccessKey: awsCredentials.secretAccessKey,
|
|
19
|
+
};
|
|
20
|
+
const apnOptions = {
|
|
21
|
+
accountId: '774133161165',
|
|
22
|
+
roleName: 'IngenoCrossAccountReadOnlyAccessRole',
|
|
23
|
+
mainCredentials: credentials,
|
|
24
|
+
};
|
|
25
|
+
const executionContext = assumeRoleExecutionContext(apnOptions);
|
|
26
|
+
return new PartnerCentralSellingClient({ credentials: executionContext.credentials, region: 'us-east-1' });
|
|
27
|
+
};
|
|
28
|
+
it('page', async () => {
|
|
29
|
+
const client = await getApnClient();
|
|
30
|
+
const request = { Catalog: 'AWS' };
|
|
31
|
+
let callCount = 0;
|
|
32
|
+
const fn = async (options) => {
|
|
33
|
+
callCount++;
|
|
34
|
+
const command = new ListOpportunitiesCommand({ ...request, NextToken: options.nextPageToken, MaxResults: options.pageSize });
|
|
35
|
+
const response = await client.send(command);
|
|
36
|
+
return { items: response.OpportunitySummaries || [], nextPageToken: response.NextToken };
|
|
37
|
+
};
|
|
38
|
+
const pageSize = 5;
|
|
39
|
+
const maxResult = 6;
|
|
40
|
+
const stream = createPaginatedStream(fn, { pageSize });
|
|
41
|
+
const results = await firstValueFrom(stream.pipe(take(maxResult), toArray()));
|
|
42
|
+
console.log(`Total opportunities fetched: ${results.length}`);
|
|
43
|
+
const expectedCallCount = Math.ceil(maxResult / pageSize) + 1;
|
|
44
|
+
expect(results).toBeDefined();
|
|
45
|
+
expect(Array.isArray(results)).toBe(true);
|
|
46
|
+
expect(results.length).toBe(maxResult);
|
|
47
|
+
expect(callCount).toBe(expectedCallCount);
|
|
48
|
+
}, 10000);
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=aws-list-stream.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aws-list-stream.test.js","sourceRoot":"","sources":["../../src/aws/aws-list-stream.test.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EAExB,2BAA2B,EAC5B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAc,IAAI,EAAE,OAAO,EAAO,MAAM,MAAM,CAAC;AAC9F,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAsC,MAAM,2BAA2B,CAAC;AACtG,OAAO,EA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-table.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { describe, it, expect } from 'vitest';
|
|
2
|
+
import { collectionsToTables } from './collections-to-table.js';
|
|
3
|
+
describe('collectionsToTables', () => {
|
|
4
|
+
it('should handle Zoho CRM timestamp format correctly', () => {
|
|
5
|
+
const collection = {
|
|
6
|
+
schema: {
|
|
7
|
+
name: 'test_deals',
|
|
8
|
+
prepareMode: 'drop',
|
|
9
|
+
columns: [
|
|
10
|
+
{ name: 'id', type: 'id' },
|
|
11
|
+
{ name: 'deal_name', type: 'string' },
|
|
12
|
+
{ name: 'closing_date', type: 'datetime' },
|
|
13
|
+
{ name: 'last_activity', type: 'datetime' },
|
|
14
|
+
{ name: 'amount', type: 'currency' },
|
|
15
|
+
{ name: 'raw_data', transform: (record) => JSON.stringify(record) }
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
objects: [
|
|
19
|
+
{
|
|
20
|
+
id: 1,
|
|
21
|
+
deal_name: 'Test Deal',
|
|
22
|
+
closing_date: 'Mon Jul 07 2025 21:12:49 GMT+0000 (GMT)',
|
|
23
|
+
last_activity: 'Mon Nov 30 2020 00:00:00 GMT+0000 (GMT)',
|
|
24
|
+
amount: '50000'
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
};
|
|
28
|
+
const result = collectionsToTables([collection]);
|
|
29
|
+
expect(result).toHaveLength(1);
|
|
30
|
+
expect(result[0].schema.name).toBe('test_deals');
|
|
31
|
+
expect(result[0].rows).toHaveLength(1);
|
|
32
|
+
const row = result[0].rows[0];
|
|
33
|
+
expect(row).toHaveLength(6); // Should have exactly 6 values for 6 columns
|
|
34
|
+
// Check values
|
|
35
|
+
expect(row[0]).toBe(1); // id
|
|
36
|
+
expect(row[1]).toBe('Test Deal'); // deal_name
|
|
37
|
+
expect(row[2]).toEqual(new Date('2025-07-07T21:12:49.000Z')); // closing_date - converted to Date object
|
|
38
|
+
expect(row[3]).toEqual(new Date('2020-11-30T00:00:00.000Z')); // last_activity - converted to Date object
|
|
39
|
+
expect(row[4]).toBe(50000); // amount - converted to number
|
|
40
|
+
expect(row[5]).toBe('{"id":1,"deal_name":"Test Deal","closing_date":"Mon Jul 07 2025 21:12:49 GMT+0000 (GMT)","last_activity":"Mon Nov 30 2020 00:00:00 GMT+0000 (GMT)","amount":"50000"}'); // raw_data - JSON string
|
|
41
|
+
});
|
|
42
|
+
it('should handle invalid timestamps gracefully', () => {
|
|
43
|
+
const collection = {
|
|
44
|
+
schema: {
|
|
45
|
+
name: 'test_deals',
|
|
46
|
+
prepareMode: 'drop',
|
|
47
|
+
columns: [
|
|
48
|
+
{ name: 'id', type: 'id' },
|
|
49
|
+
{ name: 'invalid_date', type: 'datetime' },
|
|
50
|
+
{ name: 'empty_date', type: 'datetime' },
|
|
51
|
+
{ name: 'null_date', type: 'datetime' }
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
objects: [
|
|
55
|
+
{
|
|
56
|
+
id: 1,
|
|
57
|
+
invalid_date: 'not a date',
|
|
58
|
+
empty_date: '',
|
|
59
|
+
null_date: null
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
};
|
|
63
|
+
const result = collectionsToTables([collection]);
|
|
64
|
+
expect(result).toHaveLength(1);
|
|
65
|
+
const row = result[0].rows[0];
|
|
66
|
+
expect(row[0]).toBe(1); // id
|
|
67
|
+
expect(row[1]).toBe(null); // invalid_date - should be null
|
|
68
|
+
expect(row[2]).toBe(undefined); // empty_date - should remain undefined
|
|
69
|
+
expect(row[3]).toBe(null); // null_date - should remain null
|
|
70
|
+
});
|
|
71
|
+
it('should handle nested object fields correctly', () => {
|
|
72
|
+
const collection = {
|
|
73
|
+
schema: {
|
|
74
|
+
name: 'test_deals',
|
|
75
|
+
prepareMode: 'drop',
|
|
76
|
+
columns: [
|
|
77
|
+
{ name: 'id', type: 'id' },
|
|
78
|
+
{ name: 'account_name_name', path: 'account_name.name' },
|
|
79
|
+
{ name: 'account_name_id', path: 'account_name.id' },
|
|
80
|
+
{ name: 'owner_email', path: 'owner.email' }
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
objects: [
|
|
84
|
+
{
|
|
85
|
+
id: 1,
|
|
86
|
+
account_name: {
|
|
87
|
+
name: 'ACME Corp',
|
|
88
|
+
id: '12345'
|
|
89
|
+
},
|
|
90
|
+
owner: {
|
|
91
|
+
email: 'john@example.com'
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
};
|
|
96
|
+
const result = collectionsToTables([collection]);
|
|
97
|
+
expect(result).toHaveLength(1);
|
|
98
|
+
const row = result[0].rows[0];
|
|
99
|
+
expect(row[0]).toBe(1); // id
|
|
100
|
+
expect(row[1]).toBe('ACME Corp'); // account_name_name
|
|
101
|
+
expect(row[2]).toBe('12345'); // account_name_id
|
|
102
|
+
expect(row[3]).toBe('john@example.com'); // owner_email
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
//# sourceMappingURL=collections-to-table.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collections-to-table.test.js","sourceRoot":"","sources":["../../src/collections/collections-to-table.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,mBAAmB,EAAY,MAAM,2BAA2B,CAAA;AAGzE,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,mDAAmD,EAAE,GAAG,EAAE;QAC3D,MAAM,UAAU,GAAe;YAC7B,MAAM,EAAE;gBACN,IAAI,EAAE,YAAY;gBAClB,WAAW,EAAE,MAAM;gBACnB,OAAO,EAAE;oBACP,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;oBAC1B,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACrC,EAAE,IAAI,EAAE,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,CAAA;QAE7B,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA,CAAC,KAAK;QAC5B,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA,CAAC,oBAAoB;QACrD,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA,CAAC,kBAAkB;QAC/C,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA,CAAC,cAAc;IACxD,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"converter.test.d.ts","sourceRoot":"","sources":["../../src/collections/converter.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import { describe, it, expect } from 'vitest';
|
|
2
|
+
import { convert } from './converter.js';
|
|
3
|
+
describe('convert function', () => {
|
|
4
|
+
describe('null and undefined handling', () => {
|
|
5
|
+
it('should preserve null and undefined values for all types', () => {
|
|
6
|
+
const types = ['string', 'number', 'currency', 'bool', 'date', 'datetime', 'json', 'id'];
|
|
7
|
+
types.forEach(type => {
|
|
8
|
+
const column = { name: 'test', type };
|
|
9
|
+
expect(convert(column, null)).toBe(null);
|
|
10
|
+
expect(convert(column, undefined)).toBe(undefined);
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
describe('string type conversion', () => {
|
|
15
|
+
it('should return strings as-is for string type', () => {
|
|
16
|
+
const column = { name: 'test', type: 'string' };
|
|
17
|
+
expect(convert(column, 'hello')).toBe('hello');
|
|
18
|
+
expect(convert(column, ' hello ')).toBe(' hello ');
|
|
19
|
+
expect(convert(column, '')).toBe('');
|
|
20
|
+
expect(convert(column, '123')).toBe('123');
|
|
21
|
+
});
|
|
22
|
+
it('should handle empty strings for string type', () => {
|
|
23
|
+
const column = { name: 'test', type: 'string' };
|
|
24
|
+
expect(convert(column, '')).toBe('');
|
|
25
|
+
expect(convert(column, ' ')).toBe(' ');
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
describe('number type conversion', () => {
|
|
29
|
+
it('should convert valid number strings', () => {
|
|
30
|
+
const column = { name: 'test', type: 'number' };
|
|
31
|
+
expect(convert(column, '123')).toBe(123);
|
|
32
|
+
expect(convert(column, '123.45')).toBe(123.45);
|
|
33
|
+
expect(convert(column, ' 456 ')).toBe(456);
|
|
34
|
+
expect(convert(column, '0')).toBe(0);
|
|
35
|
+
expect(convert(column, '-123')).toBe(-123);
|
|
36
|
+
});
|
|
37
|
+
it('should handle invalid number strings', () => {
|
|
38
|
+
const column = { name: 'test', type: 'number' };
|
|
39
|
+
expect(convert(column, 'not a number')).toBeNaN();
|
|
40
|
+
expect(convert(column, '')).toBe(undefined);
|
|
41
|
+
expect(convert(column, ' ')).toBe(undefined);
|
|
42
|
+
});
|
|
43
|
+
it('should return numbers as-is', () => {
|
|
44
|
+
const column = { name: 'test', type: 'number' };
|
|
45
|
+
expect(convert(column, 123)).toBe(123);
|
|
46
|
+
expect(convert(column, 123.45)).toBe(123.45);
|
|
47
|
+
expect(convert(column, 0)).toBe(0);
|
|
48
|
+
expect(convert(column, -123)).toBe(-123);
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
describe('currency type conversion', () => {
|
|
52
|
+
it('should convert valid currency strings', () => {
|
|
53
|
+
const column = { name: 'amount', type: 'currency' };
|
|
54
|
+
expect(convert(column, '50000')).toBe(50000);
|
|
55
|
+
expect(convert(column, '123.45')).toBe(123.45);
|
|
56
|
+
expect(convert(column, ' 1000 ')).toBe(1000);
|
|
57
|
+
expect(convert(column, '0.99')).toBe(0.99);
|
|
58
|
+
});
|
|
59
|
+
it('should handle invalid currency strings', () => {
|
|
60
|
+
const column = { name: 'amount', type: 'currency' };
|
|
61
|
+
expect(convert(column, 'not a number')).toBeNaN();
|
|
62
|
+
expect(convert(column, '')).toBe(undefined);
|
|
63
|
+
expect(convert(column, ' ')).toBe(undefined);
|
|
64
|
+
});
|
|
65
|
+
it('should return numbers as-is for currency type', () => {
|
|
66
|
+
const column = { name: 'amount', type: 'currency' };
|
|
67
|
+
expect(convert(column, 50000)).toBe(50000);
|
|
68
|
+
expect(convert(column, 123.45)).toBe(123.45);
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
describe('boolean type conversion', () => {
|
|
72
|
+
it('should convert truthy boolean strings', () => {
|
|
73
|
+
const column = { name: 'is_active', type: 'bool' };
|
|
74
|
+
expect(convert(column, 'true')).toBe(true);
|
|
75
|
+
expect(convert(column, 'TRUE')).toBe(true);
|
|
76
|
+
expect(convert(column, 'yes')).toBe(true);
|
|
77
|
+
expect(convert(column, 'YES')).toBe(true);
|
|
78
|
+
expect(convert(column, 'Yes')).toBe(true);
|
|
79
|
+
});
|
|
80
|
+
it('should convert falsy boolean strings', () => {
|
|
81
|
+
const column = { name: 'is_active', type: 'bool' };
|
|
82
|
+
expect(convert(column, 'false')).toBe(false);
|
|
83
|
+
expect(convert(column, 'FALSE')).toBe(false);
|
|
84
|
+
expect(convert(column, 'no')).toBe(false);
|
|
85
|
+
expect(convert(column, 'NO')).toBe(false);
|
|
86
|
+
expect(convert(column, 'No')).toBe(false);
|
|
87
|
+
expect(convert(column, 'other')).toBe(false);
|
|
88
|
+
expect(convert(column, '0')).toBe(false);
|
|
89
|
+
});
|
|
90
|
+
it('should handle empty strings for boolean type', () => {
|
|
91
|
+
const column = { name: 'is_active', type: 'bool' };
|
|
92
|
+
expect(convert(column, '')).toBe(undefined);
|
|
93
|
+
expect(convert(column, ' ')).toBe(undefined);
|
|
94
|
+
});
|
|
95
|
+
it('should return booleans as-is', () => {
|
|
96
|
+
const column = { name: 'is_active', type: 'bool' };
|
|
97
|
+
expect(convert(column, true)).toBe(true);
|
|
98
|
+
expect(convert(column, false)).toBe(false);
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
describe('date type conversion', () => {
|
|
102
|
+
it('should convert valid date strings', () => {
|
|
103
|
+
const column = { name: 'test_date', type: 'date' };
|
|
104
|
+
expect(convert(column, '2023-01-01')).toEqual(new Date('2023-01-01'));
|
|
105
|
+
expect(convert(column, '2023-12-31T23:59:59Z')).toEqual(new Date('2023-12-31T23:59:59Z'));
|
|
106
|
+
expect(convert(column, 'Jan 1, 2023')).toEqual(new Date('Jan 1, 2023'));
|
|
107
|
+
});
|
|
108
|
+
it('should handle invalid date strings', () => {
|
|
109
|
+
const column = { name: 'test_date', type: 'date' };
|
|
110
|
+
expect(convert(column, 'invalid date')).toBe(null);
|
|
111
|
+
expect(convert(column, '')).toBe(undefined);
|
|
112
|
+
expect(convert(column, ' ')).toBe(undefined);
|
|
113
|
+
expect(convert(column, '2023-13-01')).toBe(null); // Invalid month
|
|
114
|
+
});
|
|
115
|
+
it('should return Date objects as-is', () => {
|
|
116
|
+
const column = { name: 'test_date', type: 'date' };
|
|
117
|
+
const date = new Date('2023-01-01');
|
|
118
|
+
expect(convert(column, date)).toBe(date);
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
describe('datetime type conversion', () => {
|
|
122
|
+
it('should convert Zoho CRM timestamp format to Date object', () => {
|
|
123
|
+
const column = { name: 'test_date', type: 'datetime' };
|
|
124
|
+
const zohoTimestamp = 'Mon Jul 07 2025 21:12:49 GMT+0000 (GMT)';
|
|
125
|
+
const result = convert(column, zohoTimestamp);
|
|
126
|
+
expect(result).toBeInstanceOf(Date);
|
|
127
|
+
expect(result).toEqual(new Date('2025-07-07T21:12:49.000Z'));
|
|
128
|
+
});
|
|
129
|
+
it('should convert various datetime formats', () => {
|
|
130
|
+
const column = { name: 'test_date', type: 'datetime' };
|
|
131
|
+
expect(convert(column, '2023-01-01T12:00:00Z')).toEqual(new Date('2023-01-01T12:00:00Z'));
|
|
132
|
+
expect(convert(column, '2023-12-31 23:59:59')).toEqual(new Date('2023-12-31 23:59:59'));
|
|
133
|
+
});
|
|
134
|
+
it('should handle invalid datetime strings', () => {
|
|
135
|
+
const column = { name: 'test_date', type: 'datetime' };
|
|
136
|
+
expect(convert(column, 'invalid date')).toBe(null);
|
|
137
|
+
expect(convert(column, '')).toBe(undefined);
|
|
138
|
+
expect(convert(column, ' ')).toBe(undefined);
|
|
139
|
+
});
|
|
140
|
+
it('should return Date objects as-is for datetime type', () => {
|
|
141
|
+
const column = { name: 'test_date', type: 'datetime' };
|
|
142
|
+
const date = new Date('2023-01-01T12:00:00Z');
|
|
143
|
+
expect(convert(column, date)).toBe(date);
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
describe('json type conversion', () => {
|
|
147
|
+
it('should serialize objects to JSON strings', () => {
|
|
148
|
+
const column = { name: 'metadata', type: 'json' };
|
|
149
|
+
expect(convert(column, { id: 123, name: 'test' })).toBe('{"id":123,"name":"test"}');
|
|
150
|
+
expect(convert(column, [1, 2, 3])).toBe('[1,2,3]');
|
|
151
|
+
expect(convert(column, { nested: { value: 'test' } })).toBe('{"nested":{"value":"test"}}');
|
|
152
|
+
});
|
|
153
|
+
it('should validate and return valid JSON strings', () => {
|
|
154
|
+
const column = { name: 'metadata', type: 'json' };
|
|
155
|
+
expect(convert(column, '{"valid":"json"}')).toBe('{"valid":"json"}');
|
|
156
|
+
expect(convert(column, '[1,2,3]')).toBe('[1,2,3]');
|
|
157
|
+
expect(convert(column, '"simple string"')).toBe('"simple string"');
|
|
158
|
+
});
|
|
159
|
+
it('should handle invalid JSON strings', () => {
|
|
160
|
+
const column = { name: 'metadata', type: 'json' };
|
|
161
|
+
expect(convert(column, 'invalid json')).toBe(null);
|
|
162
|
+
expect(convert(column, '{"incomplete":')).toBe(null);
|
|
163
|
+
expect(convert(column, '')).toBe(null); // Empty string gets validated as invalid JSON
|
|
164
|
+
expect(convert(column, ' ')).toBe(null); // Whitespace gets validated as invalid JSON
|
|
165
|
+
});
|
|
166
|
+
it('should handle primitive values for JSON type', () => {
|
|
167
|
+
const column = { name: 'metadata', type: 'json' };
|
|
168
|
+
expect(convert(column, 123)).toBe('123');
|
|
169
|
+
expect(convert(column, true)).toBe('true');
|
|
170
|
+
expect(convert(column, false)).toBe('false');
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
describe('id type conversion', () => {
|
|
174
|
+
it('should handle id type like string by default', () => {
|
|
175
|
+
const column = { name: 'record_id', type: 'id' };
|
|
176
|
+
expect(convert(column, 'abc123')).toBe('abc123');
|
|
177
|
+
expect(convert(column, 123)).toBe(123);
|
|
178
|
+
expect(convert(column, ' 123 ')).toBe('123'); // String gets trimmed for non-string types
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
describe('text type conversion', () => {
|
|
182
|
+
it('should handle text type like string by default', () => {
|
|
183
|
+
const column = { name: 'description', type: 'text' };
|
|
184
|
+
expect(convert(column, 'some text')).toBe('some text');
|
|
185
|
+
expect(convert(column, ' padded ')).toBe('padded'); // String gets trimmed for non-string types
|
|
186
|
+
expect(convert(column, 123)).toBe(123);
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
describe('unknown type conversion', () => {
|
|
190
|
+
it('should handle unknown types as strings', () => {
|
|
191
|
+
const column = { name: 'unknown', type: 'unknown' };
|
|
192
|
+
expect(convert(column, 'test')).toBe('test');
|
|
193
|
+
expect(convert(column, 123)).toBe(123);
|
|
194
|
+
expect(convert(column, true)).toBe(true);
|
|
195
|
+
});
|
|
196
|
+
it('should handle columns without type specified', () => {
|
|
197
|
+
const column = { name: 'no_type' };
|
|
198
|
+
expect(convert(column, 'test')).toBe('test');
|
|
199
|
+
expect(convert(column, 123)).toBe(123);
|
|
200
|
+
expect(convert(column, true)).toBe(true);
|
|
201
|
+
});
|
|
202
|
+
});
|
|
203
|
+
describe('edge cases', () => {
|
|
204
|
+
it('should handle whitespace-only strings correctly', () => {
|
|
205
|
+
const stringColumn = { name: 'test', type: 'string' };
|
|
206
|
+
const numberColumn = { name: 'test', type: 'number' };
|
|
207
|
+
const boolColumn = { name: 'test', type: 'bool' };
|
|
208
|
+
expect(convert(stringColumn, ' ')).toBe(' ');
|
|
209
|
+
expect(convert(numberColumn, ' ')).toBe(undefined);
|
|
210
|
+
expect(convert(boolColumn, ' ')).toBe(undefined);
|
|
211
|
+
});
|
|
212
|
+
it('should handle zero values correctly', () => {
|
|
213
|
+
const numberColumn = { name: 'test', type: 'number' };
|
|
214
|
+
const currencyColumn = { name: 'test', type: 'currency' };
|
|
215
|
+
const boolColumn = { name: 'test', type: 'bool' };
|
|
216
|
+
expect(convert(numberColumn, 0)).toBe(0);
|
|
217
|
+
expect(convert(numberColumn, '0')).toBe(0);
|
|
218
|
+
expect(convert(currencyColumn, 0)).toBe(0);
|
|
219
|
+
expect(convert(currencyColumn, '0')).toBe(0);
|
|
220
|
+
expect(convert(boolColumn, '0')).toBe(false);
|
|
221
|
+
});
|
|
222
|
+
it('should handle very large numbers', () => {
|
|
223
|
+
const numberColumn = { name: 'test', type: 'number' };
|
|
224
|
+
expect(convert(numberColumn, '999999999999999')).toBe(999999999999999);
|
|
225
|
+
expect(convert(numberColumn, '1.23456789012345')).toBe(1.23456789012345);
|
|
226
|
+
});
|
|
227
|
+
it('should handle special float values', () => {
|
|
228
|
+
const numberColumn = { name: 'test', type: 'number' };
|
|
229
|
+
expect(convert(numberColumn, 'Infinity')).toBe(Infinity);
|
|
230
|
+
expect(convert(numberColumn, '-Infinity')).toBe(-Infinity);
|
|
231
|
+
expect(convert(numberColumn, 'NaN')).toBeNaN();
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
describe('error handling', () => {
|
|
235
|
+
it('should handle circular references in JSON conversion', () => {
|
|
236
|
+
const column = { name: 'metadata', type: 'json' };
|
|
237
|
+
const circular = { name: 'test' };
|
|
238
|
+
circular.self = circular;
|
|
239
|
+
expect(convert(column, circular)).toBe(null);
|
|
240
|
+
});
|
|
241
|
+
it('should handle functions in JSON conversion', () => {
|
|
242
|
+
const column = { name: 'metadata', type: 'json' };
|
|
243
|
+
const objWithFunction = {
|
|
244
|
+
name: 'test',
|
|
245
|
+
fn: () => 'hello'
|
|
246
|
+
};
|
|
247
|
+
expect(convert(column, objWithFunction)).toBe('{"name":"test"}');
|
|
248
|
+
});
|
|
249
|
+
it('should handle Date constructor exceptions', () => {
|
|
250
|
+
const column = { name: 'test_date', type: 'datetime' };
|
|
251
|
+
// Create a mock Date constructor that throws an error
|
|
252
|
+
const originalDate = Date;
|
|
253
|
+
const mockDate = function (value) {
|
|
254
|
+
throw new Error('Date constructor error');
|
|
255
|
+
};
|
|
256
|
+
mockDate.prototype = originalDate.prototype;
|
|
257
|
+
// Replace the global Date constructor
|
|
258
|
+
global.Date = mockDate;
|
|
259
|
+
try {
|
|
260
|
+
const result = convert(column, 'some date string');
|
|
261
|
+
expect(result).toBe(null);
|
|
262
|
+
}
|
|
263
|
+
finally {
|
|
264
|
+
// Restore the original Date constructor
|
|
265
|
+
global.Date = originalDate;
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
it('should handle exceptions in main convert function', () => {
|
|
269
|
+
const column = { name: 'test', type: 'number' };
|
|
270
|
+
// Create a String object that will be treated as a string but throws during processing
|
|
271
|
+
const problematicString = new String('123');
|
|
272
|
+
// Override isString type check behavior by making it throw
|
|
273
|
+
Object.defineProperty(problematicString, 'trim', {
|
|
274
|
+
value: () => {
|
|
275
|
+
throw new Error('trim error during processing');
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
const result = convert(column, problematicString);
|
|
279
|
+
expect(result).toBe(undefined);
|
|
280
|
+
});
|
|
281
|
+
it('should handle malformed string objects that throw during preprocessing', () => {
|
|
282
|
+
const column = { name: 'test', type: 'datetime' };
|
|
283
|
+
// Create a String object that throws when trim() is called
|
|
284
|
+
const malformedString = new String('test date');
|
|
285
|
+
malformedString.trim = () => {
|
|
286
|
+
throw new Error('trim error');
|
|
287
|
+
};
|
|
288
|
+
const result = convert(column, malformedString);
|
|
289
|
+
expect(result).toBe(undefined);
|
|
290
|
+
});
|
|
291
|
+
it('should handle objects with getters that throw errors', () => {
|
|
292
|
+
const column = { name: 'test', type: 'json' };
|
|
293
|
+
// Create an object with a getter that throws
|
|
294
|
+
const objectWithThrowingGetter = {
|
|
295
|
+
get badProperty() {
|
|
296
|
+
throw new Error('Getter error');
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
const result = convert(column, objectWithThrowingGetter);
|
|
300
|
+
expect(result).toBe(null);
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
//# sourceMappingURL=converter.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"converter.test.js","sourceRoot":"","sources":["../../src/collections/converter.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;QAC3C,EAAE,CAAC,yDAAyD,EAAE,GAAG,EAAE;YACjE,MAAM,KAAK,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,CAAU,CAAA;YAEjG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;gBACnB,MAAM,MAAM,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;gBACrC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;gBACxC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;YACpD,CAAC,CAAC,CAAA;Q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