@pageproof/sdk-pr 277.0.1604004428019 → 277.0.1604011134876

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.
@@ -29,7 +29,7 @@ declare class Integrations extends API {
29
29
  * const { url, windowFeatures } = await client.profile.integrations.getSetupUrl('monday.com');
30
30
  *
31
31
  * @since 2.0.0-beta.141
32
- * @param {string} integrationKey The unique identifier/identifiers for the integration/integrations
32
+ * @param {string} integrationKey The unique identifier for the integration
33
33
  * @param {object} [params] Any additional parameters required for building the setup url
34
34
  * @returns {Promise<{ url: string, windowFeatures: string }>}
35
35
  */
@@ -37,6 +37,20 @@ declare class Integrations extends API {
37
37
  url: string;
38
38
  windowFeatures: string;
39
39
  }>;
40
- disable(integrationKey: any): any;
40
+ /**
41
+ * Gets the URL for setting up an integration
42
+ *
43
+ * @example <caption>Disabling an integration for a team</caption>
44
+ * const admin = await client.admin();
45
+ * const success = await admin.team.integrations.disable('monday.com');
46
+ *
47
+ * @example <caption>Disabling an integration for a user</caption>
48
+ * const success = await client.profile.integrations.disable('monday.com');
49
+ *
50
+ * @since 2.0.0-beta.144
51
+ * @param {string} integrationKey The unique identifier/identifiers for the integration/integrations
52
+ * @returns {Promise<boolean>}
53
+ */
54
+ disable(integrationKey: string): Promise<boolean>;
41
55
  }
42
56
  import API from "./API";
@@ -1,9 +1,44 @@
1
1
  export default ProofsIntegrationReferences;
2
2
  declare class ProofsIntegrationReferences extends API {
3
3
  constructor(client: any);
4
- availableIntegrations(): any;
5
- options(key: any): any;
6
- add(proofId: any, integrationReference: any): any;
7
- remove(proofId: any, referenceId: any): any;
4
+ /**
5
+ * Gets the integrations that a user is able to reference
6
+ *
7
+ * @example <caption>Retrieving integrations that can be referenced by a user</caption>
8
+ * const availableIntegrations = await client.proofs.integrationReferences.availableIntegrations()
9
+ *
10
+ * @since 2.0.0-beta.144
11
+ * @returns {Promise<Array<object>>}
12
+ */
13
+ availableIntegrations(): Promise<any[]>;
14
+ /**
15
+ * Gets the options for what a user can reference in an integration
16
+ *
17
+ * @example <caption>Retrieving options that a user can reference in an integration</caption>
18
+ * const options = await client.proofs.integrationReferences.options('monday.com')
19
+ *
20
+ * @since 2.0.0-beta.144
21
+ * @param {string} integrationKey The unique identifier for the integration
22
+ * @returns {Promise<Array<object>>}
23
+ */
24
+ options(key: any): Promise<any[]>;
25
+ /**
26
+ * Add an integration reference to a proof
27
+ *
28
+ * @since 2.0.0-beta.144
29
+ * @param {string} proofId The proof id
30
+ * @param {object} integrationReference The integration reference option to add to a proof
31
+ * @returns {Promise<Array<object>>}
32
+ */
33
+ add(proofId: string, integrationReference: any): Promise<any[]>;
34
+ /**
35
+ * Remove an integration reference from a proof
36
+ *
37
+ * @since 2.0.0-beta.144
38
+ * @param {string} proofId The proof id
39
+ * @param {object} referenceId The integration reference option referenceId
40
+ * @returns {Promise}
41
+ */
42
+ remove(proofId: string, referenceId: any): Promise<any>;
8
43
  }
9
44
  import API from "./API";