copper-sdk 0.7.1 → 0.8.0
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/CHANGELOG.md +11 -0
- package/README.md +4 -7
- package/dist/action-data-generator.d.ts +20 -20
- package/dist/constant.d.ts +10 -10
- package/dist/copper-sdk.js +508 -651
- package/dist/copper-sdk.js.map +1 -0
- package/dist/copper-sdk.min.js +2 -1
- package/dist/copper-sdk.min.js.map +1 -0
- package/dist/defer.d.ts +14 -14
- package/dist/entity-model.d.ts +21 -21
- package/dist/index.d.ts +71 -71
- package/dist/interfaces.d.ts +42 -42
- package/dist/utils.d.ts +14 -14
- package/es/action-data-generator.d.ts +20 -20
- package/es/constant.d.ts +10 -10
- package/es/copper-sdk.js +506 -649
- package/es/copper-sdk.js.map +1 -0
- package/es/defer.d.ts +14 -14
- package/es/entity-model.d.ts +21 -21
- package/es/index.d.ts +71 -71
- package/es/interfaces.d.ts +42 -42
- package/es/utils.d.ts +14 -14
- package/lib/action-data-generator.d.ts +20 -20
- package/lib/constant.d.ts +10 -10
- package/lib/copper-sdk.js +505 -648
- package/lib/copper-sdk.js.map +1 -0
- package/lib/defer.d.ts +14 -14
- package/lib/entity-model.d.ts +21 -21
- package/lib/index.d.ts +71 -71
- package/lib/interfaces.d.ts +42 -42
- package/lib/utils.d.ts +14 -14
- package/package.json +34 -33
- package/src/action-data-generator.ts +0 -1
- package/src/index.ts +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,7 +1,18 @@
|
|
1
|
+
## 0.8.0
|
2
|
+
|
3
|
+
### Development
|
4
|
+
|
5
|
+
* Use Node 18
|
6
|
+
* Replace Gitbook with Docusaurus for doc generation
|
7
|
+
|
1
8
|
## 0.7.1
|
2
9
|
|
10
|
+
### Bugfixes
|
11
|
+
|
3
12
|
* Add support for parallel asynchronous requests
|
4
13
|
|
5
14
|
## 0.7.0
|
6
15
|
|
16
|
+
### Development
|
17
|
+
|
7
18
|
* Bump all dependencies as far as they can go on Node 10
|
package/README.md
CHANGED
@@ -4,9 +4,9 @@ Copper App SDK
|
|
4
4
|
[](https://www.npmjs.com/package/copper-sdk)
|
5
5
|
|
6
6
|
|
7
|
-
The javascript SDK provides client-side functionalities for adding embedded
|
7
|
+
The javascript SDK provides client-side functionalities for adding embedded apps to the Copper web client.
|
8
8
|
|
9
|
-
The
|
9
|
+
The embedded app is an iframe embedded in the Copper web page. The display location of the iframe is configured in the embedded app's settings page.
|
10
10
|
|
11
11
|
## Usage
|
12
12
|
Execute the following with your webpack/rollup/browserify etc.
|
@@ -43,16 +43,13 @@ sdk.getContext()
|
|
43
43
|
</script>
|
44
44
|
```
|
45
45
|
|
46
|
-
### SDK Docs
|
47
|
-
|
48
|
-
https://docs.copper.com/copper-sdk
|
49
46
|
|
50
47
|
## Development
|
51
48
|
### Prerequisites
|
52
49
|
|
53
|
-
We recommend Node
|
50
|
+
We recommend Node 18 or newer.
|
54
51
|
|
55
|
-
Confirm all packages have been installed
|
52
|
+
Confirm all packages have been installed. This project uses yarn for package management.
|
56
53
|
|
57
54
|
```bash
|
58
55
|
yarn
|
@@ -1,20 +1,20 @@
|
|
1
|
-
import { ENTITY_TYPE } from './constant';
|
2
|
-
import { IEntityModel } from './entity-model';
|
3
|
-
import { IActionApiData } from './interfaces';
|
4
|
-
export declare function logActivityDataGenerator(context: IEntityModel, { activityType, details, activityDate, }: {
|
5
|
-
activityType: number;
|
6
|
-
details: string;
|
7
|
-
activityDate?: number;
|
8
|
-
}): IActionApiData;
|
9
|
-
export declare function createEntityDataGenerator(context: IEntityModel, { entityType, data, }: {
|
10
|
-
entityType: ENTITY_TYPE;
|
11
|
-
data: any;
|
12
|
-
}): IActionApiData;
|
13
|
-
export declare function relateEntityDataGenerator(context: IEntityModel, { entityType, entityId, data, }: {
|
14
|
-
entityType: ENTITY_TYPE;
|
15
|
-
entityId: number;
|
16
|
-
data: {
|
17
|
-
id: number;
|
18
|
-
type: ENTITY_TYPE;
|
19
|
-
};
|
20
|
-
}): IActionApiData;
|
1
|
+
import { ENTITY_TYPE } from './constant';
|
2
|
+
import { IEntityModel } from './entity-model';
|
3
|
+
import { IActionApiData } from './interfaces';
|
4
|
+
export declare function logActivityDataGenerator(context: IEntityModel, { activityType, details, activityDate, }: {
|
5
|
+
activityType: number;
|
6
|
+
details: string;
|
7
|
+
activityDate?: number;
|
8
|
+
}): IActionApiData;
|
9
|
+
export declare function createEntityDataGenerator(context: IEntityModel, { entityType, data, }: {
|
10
|
+
entityType: ENTITY_TYPE;
|
11
|
+
data: any;
|
12
|
+
}): IActionApiData;
|
13
|
+
export declare function relateEntityDataGenerator(context: IEntityModel, { entityType, entityId, data, }: {
|
14
|
+
entityType: ENTITY_TYPE;
|
15
|
+
entityId: number;
|
16
|
+
data: {
|
17
|
+
id: number;
|
18
|
+
type: ENTITY_TYPE;
|
19
|
+
};
|
20
|
+
}): IActionApiData;
|
package/dist/constant.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
export
|
2
|
-
export
|
3
|
-
export declare const ENTITY_PATH_MAP: {
|
4
|
-
lead: string;
|
5
|
-
person: string;
|
6
|
-
company: string;
|
7
|
-
opportunity: string;
|
8
|
-
task: string;
|
9
|
-
project: string;
|
10
|
-
};
|
1
|
+
export type HTTP_METHOD = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
2
|
+
export type ENTITY_TYPE = 'lead' | 'person' | 'company' | 'opportunity' | 'task' | 'project';
|
3
|
+
export declare const ENTITY_PATH_MAP: {
|
4
|
+
lead: string;
|
5
|
+
person: string;
|
6
|
+
company: string;
|
7
|
+
opportunity: string;
|
8
|
+
task: string;
|
9
|
+
project: string;
|
10
|
+
};
|