Skip to content

Commit

Permalink
📝 update documentation links #3234
Browse files Browse the repository at this point in the history
  • Loading branch information
smashah committed Aug 7, 2024
1 parent 32fafcd commit 3ebc0f8
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ ___

Uploads file to a cloud storage provider (GCP/AWS for now).

If this preprocessor is set then you have to also set [`cloudUploadOptions`](https://docs.openwa.dev/interfaces/api_model_config.ConfigObject.html#cloudUploadOptions) in the config.
If this preprocessor is set then you have to also set [`cloudUploadOptions`](https://docs.openwa.dev/docs/reference/api/model/config/interfaces/ConfigObject#clouduploadoptions) in the config.
3 changes: 1 addition & 2 deletions docs/docs/configuration/config-object.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description:
sidebar_position: 0
---

# Configration
# Configuration

There are quite a few ways you can customize your session.

Expand All @@ -32,7 +32,6 @@ const launchConfig = {
sessionId: 'hr'
};


function start(client) {
client.onMessage(async message => {
if (message.body === 'Hi') {
Expand Down
2 changes: 1 addition & 1 deletion patches.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/api/model/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export interface ProxyServerCredentials {

export interface ConfigObject {
/**
* @deprecated
* The authentication object (as a JSON object or a base64 encoded string) that is required to migrate a session from one instance to another or to just restart an existing instance.
* This sessionData is provided in a generated JSON file (it's a json file but contains the JSON data as a base64 encoded string) upon QR scan or an event.
*
Expand Down
4 changes: 2 additions & 2 deletions src/build/build-postman.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ const postmanRequestGeneratorGenerator = setup => method => {
}
},
url,
"documentationUrl": `https://docs.openwa.dev/docs/reference/api/Client/classes/Client#${method.name}`,
"description": `${method.text}\n[External Documentation](https://docs.openwa.dev/docs/reference/api/Client/classes/Client#${method.name})`
"documentationUrl": `https://docs.openwa.dev/docs/reference/api/Client/classes/Client#${(method.name || "").toLowerCase()}`,
"description": `${method.text}\n[External Documentation](https://docs.openwa.dev/docs/reference/api/Client/classes/Client#${(method.name || "").toLowerCase()})`
};
if (!(setup === null || setup === void 0 ? void 0 : setup.key))
delete request.auth;
Expand Down
2 changes: 1 addition & 1 deletion src/cli/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const generateCollections: any = async (config: { [x: string]: any; sessi
"description": "All methods from the Client",
"externalDocs": {
"description": "Find out more",
"url": "https://docs.openwa.dev/classes/api_Client.Client.html"
"url": "https://docs.openwa.dev/docs/reference/api/Client/classes/Client"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/cli/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const helptext = commandLineUsage([{
]
},
{
content: `Please check here for more information on some of the above mentioned parameters: {underline https://docs.openwa.dev/interfaces/api_model_config.configobject}`
content: `Please check here for more information on some of the above mentioned parameters: {underline https://docs.openwa.dev/docs/reference/api/model/config/interfaces/ConfigObject}`
},
{
content: 'Project home: {underline https://github.com/open-wa/wa-automate-nodejs}'
Expand Down
2 changes: 1 addition & 1 deletion src/structures/preProcessors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export enum PREPROCESSORS {
*
* Uploads file to a cloud storage provider (GCP/AWS for now).
*
* If this preprocessor is set then you have to also set [`cloudUploadOptions`](https://docs.openwa.dev/interfaces/api_model_config.ConfigObject.html#cloudUploadOptions) in the config.
* If this preprocessor is set then you have to also set [`cloudUploadOptions`](https://docs.openwa.dev/docs/reference/api/model/config/interfaces/ConfigObject#clouduploadoptions) in the config.
*
*/
UPLOAD_CLOUD = "UPLOAD_CLOUD",
Expand Down

0 comments on commit 3ebc0f8

Please sign in to comment.