@chift/chift-nodejs 1.0.17 → 1.0.19

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.
Files changed (48) hide show
  1. package/dist/src/types/public-api/schema.d.ts +15294 -0
  2. package/package.json +6 -2
  3. package/.eslintignore +0 -1
  4. package/.eslintrc.json +0 -25
  5. package/.github/workflows/ci.yml +0 -75
  6. package/.husky/pre-commit +0 -4
  7. package/.prettierignore +0 -1
  8. package/.prettierrc.json +0 -7
  9. package/CHANGELOG.md +0 -108
  10. package/jest.config.ts +0 -195
  11. package/src/helpers/openapi.ts +0 -22
  12. package/src/helpers/settings.ts +0 -3
  13. package/src/index.ts +0 -1
  14. package/src/modules/accounting.ts +0 -510
  15. package/src/modules/api.ts +0 -35
  16. package/src/modules/consumer.ts +0 -216
  17. package/src/modules/consumers.ts +0 -82
  18. package/src/modules/custom.ts +0 -36
  19. package/src/modules/datastores.ts +0 -19
  20. package/src/modules/ecommerce.ts +0 -129
  21. package/src/modules/flow.ts +0 -168
  22. package/src/modules/integrations.ts +0 -24
  23. package/src/modules/internalApi.ts +0 -182
  24. package/src/modules/invoicing.ts +0 -118
  25. package/src/modules/payment.ts +0 -59
  26. package/src/modules/pms.ts +0 -67
  27. package/src/modules/pos.ts +0 -144
  28. package/src/modules/sync.ts +0 -77
  29. package/src/modules/syncs.ts +0 -59
  30. package/src/modules/webhooks.ts +0 -86
  31. package/src/types/api.ts +0 -37
  32. package/src/types/consumers.ts +0 -9
  33. package/src/types/public-api/mappings.ts +0 -21
  34. package/src/types/sync.ts +0 -38
  35. package/test/data/accounting_invoice.pdf +0 -0
  36. package/test/modules/accounting.test.ts +0 -647
  37. package/test/modules/consumer.test.ts +0 -68
  38. package/test/modules/consumers.test.ts +0 -85
  39. package/test/modules/ecommerce.test.ts +0 -213
  40. package/test/modules/integrations.test.ts +0 -22
  41. package/test/modules/invoicing.test.ts +0 -98
  42. package/test/modules/payment.test.ts +0 -65
  43. package/test/modules/pms.test.ts +0 -69
  44. package/test/modules/pos.test.ts +0 -164
  45. package/test/modules/sync.test.ts +0 -74
  46. package/test/modules/syncs.test.ts +0 -23
  47. package/test/modules/webhooks.test.ts +0 -92
  48. package/tsconfig.json +0 -107
@@ -1,164 +0,0 @@
1
- import { beforeAll, expect, test } from '@jest/globals';
2
- import * as chift from '../../src/index';
3
- import * as dotenv from 'dotenv';
4
- import { components } from '../../src/types/public-api/schema';
5
- dotenv.config();
6
-
7
- const client = new chift.API({
8
- baseUrl: process.env.CHIFT_BACKBONE_API,
9
- clientId: process.env.CHIFT_TESTING_CLIENTID as string,
10
- clientSecret: process.env.CHIFT_TESTING_CLIENTSECRET as string,
11
- accountId: process.env.CHIFT_TESTING_ACCOUNTID as string,
12
- });
13
-
14
- // Split testing between two APIs to support all endpoints
15
- const consumerId = process.env.CHIFT_POS_CONSUMER_ID as string;
16
-
17
- let consumer: any;
18
- beforeAll(async () => {
19
- consumer = await client.Consumers.getConsumerById(consumerId);
20
- });
21
-
22
- test('getLocations', async () => {
23
- const locations = await consumer.pos.getLocations();
24
- expect(locations).toBeInstanceOf(Array);
25
- expect(locations.length).toBeGreaterThan(0);
26
- expect(locations[0]).toHaveProperty('id', expect.any(String));
27
- expect(locations[0]).toHaveProperty('name', expect.any(String));
28
- });
29
-
30
- let orders: components['schemas']['POSOrderItem'][];
31
- test.skip('getOrders', async () => {
32
- orders = await consumer.pos.getOrders({
33
- date_from: '2023-01-08',
34
- date_to: '2023-01-01',
35
- });
36
- expect(orders).toBeInstanceOf(Array);
37
- expect(orders.length).toBeGreaterThan(0);
38
- expect(orders[0]).toHaveProperty('id', expect.any(String));
39
- });
40
-
41
- // TODO: Fix Method Not Allowed error
42
- test.skip('createCustomer', async () => {
43
- const body = {
44
- first_name: 'John',
45
- last_name: 'Doe',
46
- email: 'test@test.com',
47
- };
48
- const customer = await consumer.pos.createCustomer(body);
49
- expect(customer).toBeTruthy();
50
- expect(customer).toHaveProperty('id', expect.any(String));
51
- expect(customer).toHaveProperty('name');
52
- });
53
-
54
- // TODO: Fix timeout error
55
- let customers: any[] = [];
56
- test.skip('getCustomers', async () => {
57
- customers = await consumer.pos.getCustomers();
58
- expect(customers).toBeInstanceOf(Array);
59
- expect(customers.length).toBeGreaterThan(0);
60
- expect(customers[0]).toHaveProperty('id', expect.any(String));
61
- });
62
-
63
- // TODO: Fix The day parameter is missing error
64
- test.skip('getOrder', async () => {
65
- if (!orders.length) {
66
- throw new Error('No orders found to test getOrder');
67
- }
68
-
69
- const order = await consumer.pos.getOrder(orders[0].id);
70
- expect(order).toBeTruthy();
71
- expect(order).toHaveProperty('id', expect.any(String));
72
- expect(order).toHaveProperty('order_number');
73
- expect(order).toHaveProperty('creation_date', expect.any(String));
74
- expect(order).toHaveProperty('closing_date');
75
- expect(order).toHaveProperty('service_date');
76
- expect(order).toHaveProperty('total', expect.any(Number));
77
- expect(order).toHaveProperty('tax_amount', expect.any(Number));
78
- expect(order).toHaveProperty('total_discount');
79
- expect(order).toHaveProperty('total_refund');
80
- expect(order).toHaveProperty('total_tip', expect.any(Number));
81
- expect(order).toHaveProperty('items', expect.any(Array));
82
- expect(order).toHaveProperty('payments', expect.any(Array));
83
- expect(order).toHaveProperty('currency');
84
- expect(order).toHaveProperty('country');
85
- expect(order).toHaveProperty('loyalty');
86
- expect(order).toHaveProperty('customer_id');
87
- expect(order).toHaveProperty('location_id');
88
- expect(order).toHaveProperty('taxes');
89
- });
90
-
91
- // TODO: Fix getCustomers first
92
- test.skip('getCustomer', async () => {
93
- const customer = await consumer.pos.getCustomer(customers[0].id);
94
- expect(customer).toBeTruthy();
95
- expect(customer).toHaveProperty('id', expect.any(String));
96
- expect(customer).toHaveProperty('name');
97
- });
98
-
99
- test('getPaymentMethods', async () => {
100
- const paymentMethods = await consumer.pos.getPaymentMethods();
101
- expect(paymentMethods).toBeInstanceOf(Array);
102
- expect(paymentMethods.length).toBeGreaterThan(0);
103
- expect(paymentMethods[0]).toHaveProperty('id', expect.any(String));
104
- expect(paymentMethods[0]).toHaveProperty('name', expect.any(String));
105
- expect(paymentMethods[0]).toHaveProperty('extra');
106
- });
107
-
108
- test('getSales', async () => {
109
- const sales = await consumer.pos.getSales({
110
- date_from: '2022-08-11',
111
- date_to: '2022-08-12',
112
- });
113
- expect(sales).toHaveProperty('total', expect.any(Number));
114
- expect(sales).toHaveProperty('tax_amount', expect.any(Number));
115
- expect(sales).toHaveProperty('taxes', expect.any(Array));
116
- });
117
-
118
- test('getClosure', async () => {
119
- const closure = await consumer.pos.getClosure('2022-08-11');
120
- expect(closure).toHaveProperty('date', expect.any(String));
121
- expect(closure).toHaveProperty('status');
122
- });
123
-
124
- test.skip('getPayments', async () => {
125
- const payments = await consumer.pos.getPayments({
126
- date_from: '2023-01-08',
127
- date_to: '2023-01-01',
128
- });
129
- expect(payments).toBeInstanceOf(Array);
130
- expect(payments.length).toBeGreaterThan(0);
131
- expect(payments[0]).toHaveProperty('id');
132
- expect(payments[0]).toHaveProperty('payment_method_id');
133
- expect(payments[0]).toHaveProperty('payment_method_name');
134
- expect(payments[0]).toHaveProperty('total', expect.any(Number));
135
- expect(payments[0]).toHaveProperty('tip', expect.any(Number));
136
- expect(payments[0]).toHaveProperty('status');
137
- expect(payments[0]).toHaveProperty('currency');
138
- expect(payments[0]).toHaveProperty('date');
139
- });
140
-
141
- // TODO: Fix API Resource does not exist
142
- test.skip('updateOrder', async () => {
143
- const order = await consumer.pos.updateOrder(orders[0].id, {});
144
- expect(order).toBeTruthy();
145
- expect(order).toHaveProperty('id', expect.any(String));
146
- });
147
-
148
- test.skip('getProducts', async () => {
149
- const products = await consumer.pos.getProducts();
150
- expect(products).toBeInstanceOf(Array);
151
- expect(products.length).toBeGreaterThan(0);
152
- });
153
-
154
- test('getProductCategories', async () => {
155
- const productCategories = await consumer.pos.getProductCategories();
156
- expect(productCategories).toBeInstanceOf(Array);
157
- expect(productCategories.length).toBeGreaterThan(0);
158
- });
159
-
160
- test('getAccountingCategories', async () => {
161
- const accountingCategories = await consumer.pos.getAccountingCategories();
162
- expect(accountingCategories).toBeInstanceOf(Array);
163
- expect(accountingCategories.length).toBeGreaterThan(0);
164
- });
@@ -1,74 +0,0 @@
1
- import { beforeAll, expect, test } from '@jest/globals';
2
- import * as chift from '../../src/index';
3
- import * as dotenv from 'dotenv';
4
-
5
- dotenv.config();
6
-
7
- const client = new chift.API({
8
- baseUrl: process.env.CHIFT_BACKBONE_API,
9
- clientId: process.env.CHIFT_TESTING_CLIENTID as string,
10
- clientSecret: process.env.CHIFT_TESTING_CLIENTSECRET as string,
11
- accountId: process.env.CHIFT_TESTING_ACCOUNTID as string,
12
- });
13
-
14
- const flowName = 'CI GENERATED';
15
-
16
- let sync: any;
17
-
18
- beforeAll(async () => {
19
- const syncId = process.env.CHIFT_TEST_SYNC_ID as string;
20
- sync = await client.Syncs.getSyncById(syncId);
21
- });
22
-
23
- test('createFlow', async () => {
24
- const flow = await sync.createFlow(
25
- {
26
- name: flowName,
27
- description: 'Generated by Chift Node.js sdk',
28
- execution: {
29
- type: 'module',
30
- data: {
31
- name: 'POS to accounting',
32
- },
33
- },
34
- triggers: [
35
- {
36
- id: 'trigger1',
37
- type: 'event',
38
- },
39
- ],
40
- config: {},
41
- },
42
- async (consumer: any, flowContext: any) => {
43
- console.log(`consumer: ${consumer}`);
44
- console.log(`flow_id : ${flowContext.flow_id}`);
45
- }
46
- );
47
-
48
- expect(flow).toHaveProperty('flowId');
49
- expect(flow).toHaveProperty('name', flowName);
50
- });
51
-
52
- let flows: any = [];
53
- test('getFlows', async () => {
54
- flows = await sync.getFlows();
55
- expect(flows).toBeInstanceOf(Array);
56
- });
57
-
58
- test('getFlowByName', async () => {
59
- if (!flows.length) {
60
- throw new Error('No flows found to test getFlowByName');
61
- }
62
-
63
- const flowWithName = await sync.getFlowByName(flows[0].name);
64
- expect(flowWithName).toHaveProperty('name', flows[0].name);
65
- });
66
-
67
- test('getFlowById', async () => {
68
- if (!flows.length) {
69
- throw new Error('No flows found to test getFlowById');
70
- }
71
-
72
- const flowWithId = await sync.getFlowById(flows[0].flowId);
73
- expect(flowWithId).toHaveProperty('flowId', flows[0].flowId);
74
- });
@@ -1,23 +0,0 @@
1
- import { expect, test } from '@jest/globals';
2
- import * as chift from '../../src/index';
3
- import * as dotenv from 'dotenv';
4
-
5
- dotenv.config();
6
-
7
- const client = new chift.API({
8
- baseUrl: process.env.CHIFT_BACKBONE_API,
9
- clientId: process.env.CHIFT_TESTING_CLIENTID as string,
10
- clientSecret: process.env.CHIFT_TESTING_CLIENTSECRET as string,
11
- accountId: process.env.CHIFT_TESTING_ACCOUNTID as string,
12
- });
13
-
14
- test('getSyncs', async () => {
15
- const syncs = await client.Syncs.getSyncs();
16
- expect(syncs).toBeInstanceOf(Array);
17
- });
18
-
19
- test('getSyncById', async () => {
20
- const syncId = process.env.CHIFT_TEST_SYNC_ID as string;
21
- const sync = await client.Syncs.getSyncById(syncId);
22
- expect(sync).toHaveProperty('syncid', syncId);
23
- });
@@ -1,92 +0,0 @@
1
- import { afterAll, beforeAll, expect, test } from '@jest/globals';
2
- import * as chift from '../../src/index';
3
- import * as dotenv from 'dotenv';
4
- import axios from 'axios';
5
- dotenv.config();
6
-
7
- const client = new chift.API({
8
- baseUrl: process.env.CHIFT_BACKBONE_API,
9
- clientId: process.env.CHIFT_TESTING_CLIENTID as string,
10
- clientSecret: process.env.CHIFT_TESTING_CLIENTSECRET as string,
11
- accountId: process.env.CHIFT_TESTING_ACCOUNTID as string,
12
- });
13
-
14
- let webhook: any;
15
-
16
- beforeAll(async () => {
17
- webhook = await client.Webhooks.registerWebhook({
18
- event: 'account.connection.created',
19
- url: 'https://test',
20
- signingsecret: 'secret',
21
- });
22
- expect(webhook).toHaveProperty('status', 'active');
23
- expect(webhook).toHaveProperty('webhookid', expect.any(String));
24
- expect(webhook).toHaveProperty('accountid', expect.any(String));
25
- expect(webhook).toHaveProperty('createdby');
26
- expect(webhook).toHaveProperty('createdon');
27
- expect(webhook).toHaveProperty('event', 'account.connection.created');
28
- expect(webhook).toHaveProperty('url', 'https://test');
29
- expect(webhook).toHaveProperty('status', 'active');
30
- expect(webhook).toHaveProperty('integrationid');
31
- });
32
-
33
- test('getWebhookTypes', async () => {
34
- const webhookTypes = await client.Webhooks.getWebhookTypes();
35
- expect(webhookTypes).toBeInstanceOf(Array);
36
- expect(webhookTypes.length).toBeGreaterThan(0);
37
- expect(webhookTypes[0]).toHaveProperty('event', expect.any(String));
38
- expect(webhookTypes[0]).toHaveProperty('api');
39
- });
40
-
41
- test('getWebhooks', async () => {
42
- const webhooks = await client.Webhooks.getWebhooks();
43
- expect(webhooks).toBeInstanceOf(Array);
44
- expect(webhooks.length).toBeGreaterThan(0);
45
- expect(webhooks[0]).toHaveProperty('webhookid', expect.any(String));
46
- });
47
-
48
- test('getWebhookById', async () => {
49
- const webhookWithId = await client.Webhooks.getWebhookById(webhook.webhookid);
50
- expect(webhookWithId).toHaveProperty('webhookid', webhook.webhookid);
51
- expect(webhookWithId).toHaveProperty('accountid', expect.any(String));
52
- expect(webhookWithId).toHaveProperty('createdby');
53
- expect(webhookWithId).toHaveProperty('createdon');
54
- expect(webhookWithId).toHaveProperty('event', expect.any(String));
55
- expect(webhookWithId).toHaveProperty('url', expect.any(String));
56
- expect(webhookWithId).toHaveProperty('status', expect.any(String));
57
- expect(webhookWithId).toHaveProperty('integrationid');
58
- });
59
-
60
- test('updateWebhookById', async () => {
61
- const updatedWebhook = await client.Webhooks.updateWebhookById(webhook.webhookid, {
62
- status: 'inactive',
63
- });
64
- expect(updatedWebhook).toHaveProperty('webhookid', expect.any(String));
65
- expect(updatedWebhook).toHaveProperty('accountid', expect.any(String));
66
- expect(updatedWebhook).toHaveProperty('createdby');
67
- expect(updatedWebhook).toHaveProperty('createdon');
68
- expect(updatedWebhook).toHaveProperty('event', 'account.connection.created');
69
- expect(updatedWebhook).toHaveProperty('url', 'https://test');
70
- expect(updatedWebhook).toHaveProperty('status', 'inactive');
71
- expect(updatedWebhook).toHaveProperty('integrationid');
72
- });
73
-
74
- test('getWebhookLogsByWebhookId', async () => {
75
- const webhookLogs = await client.Webhooks.getWebhookLogsByWebhookId(webhook.webhookid);
76
- expect(webhookLogs).toBeInstanceOf(Array);
77
- });
78
-
79
- afterAll(async () => {
80
- expect.assertions(1);
81
- try {
82
- await client.Webhooks.unRegisterWebhook(webhook.webhookid);
83
- await client.Webhooks.getWebhookById(webhook.webhookid);
84
- } catch (e: unknown) {
85
- if (axios.isAxiosError(e)) {
86
- expect(e.message).toMatch('Request failed with status code 404');
87
- return;
88
- }
89
-
90
- throw e;
91
- }
92
- });
package/tsconfig.json DELETED
@@ -1,107 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- /* Visit https://aka.ms/tsconfig to read more about this file */
4
-
5
- /* Projects */
6
- // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
7
- // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8
- // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
9
- // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
10
- // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11
- // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
-
13
- /* Language and Environment */
14
- "target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
15
- // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16
- // "jsx": "preserve", /* Specify what JSX code is generated. */
17
- // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
18
- // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
19
- // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
20
- // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
21
- // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
22
- // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
23
- // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
24
- // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
25
- // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
26
-
27
- /* Modules */
28
- "module": "commonjs" /* Specify what module code is generated. */,
29
- // "rootDir": "./", /* Specify the root folder within your source files. */
30
- // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
31
- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32
- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
33
- // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
34
- // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
35
- // "types": [], /* Specify type package names to be included without being referenced in a source file. */
36
- // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
37
- // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
38
- // "resolveJsonModule": true, /* Enable importing .json files. */
39
- // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
40
-
41
- /* JavaScript Support */
42
- // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
43
- // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
44
- // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
45
-
46
- /* Emit */
47
- // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
48
- // "declarationMap": true, /* Create sourcemaps for d.ts files. */
49
- // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
50
- // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
51
- // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
52
- // "outDir": "./", /* Specify an output folder for all emitted files. */
53
- // "removeComments": true, /* Disable emitting comments. */
54
- // "noEmit": true, /* Disable emitting files from a compilation. */
55
- // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
56
- // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
57
- // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
58
- // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
59
- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
60
- // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
61
- // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
62
- // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
63
- // "newLine": "crlf", /* Set the newline character for emitting files. */
64
- // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
65
- // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
66
- // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
67
- // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
68
- // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
69
- // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
70
-
71
- /* Interop Constraints */
72
- // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
73
- // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
74
- "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
75
- // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
76
- "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
77
-
78
- /* Type Checking */
79
- "strict": true /* Enable all strict type-checking options. */,
80
- // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
81
- // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
82
- // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
83
- // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
84
- // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
85
- // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
86
- // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
87
- // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
88
- // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
89
- // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
90
- // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
91
- // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
92
- // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
93
- // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
94
- // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
95
- // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
96
- // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
97
- // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
98
-
99
- /* Completeness */
100
- // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
101
- "skipLibCheck": true /* Skip type checking all .d.ts files. */,
102
- "declaration": true,
103
- "outDir": "./dist"
104
- },
105
- "include": ["./src/**/*", "./test/**/*"],
106
- "exclude": ["node_modules", "dist"]
107
- }