Skip to content

Commit 3e46e95

Browse files
authored
sync commons library to 156e845 (#1603)
* sync commons libary to 156e845 * fix tsconfig * fix: update tsconfig * update yarn.lock
1 parent 9ddd582 commit 3e46e95

File tree

415 files changed

+13028
-10204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

415 files changed

+13028
-10204
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ For production build and deploy, please get more information in [here](packages/
4242

4343
### Tutorials
4444

45-
This is a [demo](https://github.com/embbnux/ringcentral-widgets-demo) and [step-by-step tutorials](https://embbnux.github.io/ringcentral-widgets-demo/) show how to use this library.
45+
This is a [demo](https://github.com/ringcentral-tutorials/ringcentral-widgets-demo) and [step-by-step tutorials](https://ringcentral-tutorials.github.io/ringcentral-widgets-demo/) show how to use this library.
4646

4747
## Contribution and Development
4848

packages/README.md

Lines changed: 0 additions & 104 deletions
This file was deleted.

packages/ringcentral-integration/enums/activeCallControlStatus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import HashMap from '../lib/HashMap';
33
export default new HashMap({
44
hold: 'Hold',
55
setUp: 'Setup',
6-
proceeding: 'Proceeding'
6+
proceeding: 'Proceeding',
77
});

packages/ringcentral-integration/enums/callActions.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@ export default new HashMap({
2121
support: 'Support',
2222
transfer: 'Transfer',
2323
unknown: 'Unknown',
24-
voIPCall: 'VoIP Call'
24+
voIPCall: 'VoIP Call',
2525
});
26-
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Enum from '../lib/Enum';
22

3-
export default new Enum([
4-
'logCallLogFailed'
5-
], 'callLogMessages');
3+
export default new Enum(
4+
['logCallLogFailed', 'logFailed', 'fieldRequired'],
5+
'callLogMessages',
6+
);

packages/ringcentral-integration/enums/callLoggerTriggerTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import HashMap from '../lib/HashMap';
33
export default new HashMap({
44
manual: 'manual',
55
presenceUpdate: 'presenceUpdate',
6-
callLogSync: 'callLogSync'
6+
callLogSync: 'callLogSync',
77
});

packages/ringcentral-integration/enums/callResults.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,5 @@ export default new HashMap({
4242
wrongNumber: 'Wrong Number',
4343
faxReceipt: 'Fax Receipt',
4444
suspendedAccount: 'Suspended Account',
45-
disconnected: 'Disconnected'
45+
disconnected: 'Disconnected',
4646
});
47-
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
import Enum from '../lib/Enum';
22

3-
export default new Enum([
4-
'unknown',
5-
'contacts',
6-
'conference',
7-
], 'calleeTypes');
3+
export default new Enum(['unknown', 'contacts', 'conference'], 'calleeTypes');

packages/ringcentral-integration/enums/moduleActionTypes.d.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Enum from '../lib/Enum';
1+
import { createEnum } from '../lib/Enum';
22

33
/**
44
* @typedef {Object} ModuleActionTypes
@@ -7,13 +7,16 @@ import Enum from '../lib/Enum';
77
* @property {String} reset
88
* @property {String} resetSuccess
99
*/
10-
11-
/**
12-
* @type {ModuleActionTypes}
13-
*/
14-
export const moduleActionTypes = new Enum([
10+
export const moduleActionTypes = createEnum([
1511
'init',
1612
'initSuccess',
1713
'reset',
1814
'resetSuccess',
1915
]);
16+
17+
export interface ModuleActionTypes {
18+
init: string;
19+
initSuccess: string;
20+
reset: string;
21+
resetSuccess: string;
22+
}

0 commit comments

Comments
 (0)