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 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
  [![npm](https://img.shields.io/npm/v/copper-sdk.svg?style=flat-square)](https://www.npmjs.com/package/copper-sdk)
5
5
 
6
6
 
7
- The javascript SDK provides client-side functionalities for adding embedded app to the Copper web client.
7
+ The javascript SDK provides client-side functionalities for adding embedded apps to the Copper web client.
8
8
 
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.
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 10 or newer.
50
+ We recommend Node 18 or newer.
54
51
 
55
- Confirm all packages have been installed before development. Yarn will be used for this particular project.
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;
@@ -1,10 +1,10 @@
1
- export declare type HTTP_METHOD = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
2
- export declare 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
- };
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
+ };