@aloma.io/integration-sdk 3.8.19 → 3.8.21
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.
| @@ -132,6 +132,7 @@ export class AbstractController { | |
| 132 132 | 
             
                }
         | 
| 133 133 | 
             
                async defaultConfigCheck(configSchema) {
         | 
| 134 134 | 
             
                    const config = this.config;
         | 
| 135 | 
            +
                    console.log(this.config, configSchema);
         | 
| 135 136 | 
             
                    const missing = Object.entries(configSchema)
         | 
| 136 137 | 
             
                        .map(([key, field]) => {
         | 
| 137 138 | 
             
                        if (!field)
         | 
| @@ -59,12 +59,14 @@ export const onConnect = ({ dispatcher, configSchema, config, start, }) => { | |
| 59 59 | 
             
                            healthCheck: async (controller) => {
         | 
| 60 60 | 
             
                                let result = { ok: true, error: null };
         | 
| 61 61 | 
             
                                try {
         | 
| 62 | 
            +
                                    console.log('running healthcheck');
         | 
| 62 63 | 
             
                                    if (oauthClient) {
         | 
| 63 64 | 
             
                                        await oauthClient.__healthCheck();
         | 
| 64 65 | 
             
                                    }
         | 
| 65 66 | 
             
                                    await controller.__healthCheck(configSchema);
         | 
| 66 67 | 
             
                                }
         | 
| 67 68 | 
             
                                catch (e) {
         | 
| 69 | 
            +
                                    console.log(e);
         | 
| 68 70 | 
             
                                    result.ok = false;
         | 
| 69 71 | 
             
                                    result.error = e.message;
         | 
| 70 72 | 
             
                                }
         | 
    
        package/package.json
    CHANGED
    
    
    
        package/src/controller/index.mts
    CHANGED
    
    | @@ -186,6 +186,8 @@ export abstract class AbstractController { | |
| 186 186 | 
             
              private async defaultConfigCheck(configSchema: {[key: string]: ConfigField}): Promise<void> {
         | 
| 187 187 | 
             
                const config = this.config;
         | 
| 188 188 |  | 
| 189 | 
            +
                console.log(this.config, configSchema)
         | 
| 190 | 
            +
             | 
| 189 191 | 
             
                const missing = Object.entries(configSchema)
         | 
| 190 192 | 
             
                  .map(([key, field]) => {
         | 
| 191 193 | 
             
                    if (!field) return;
         | 
| @@ -100,12 +100,14 @@ export const onConnect = ({ | |
| 100 100 | 
             
                      let result: any = {ok: true, error: null};
         | 
| 101 101 |  | 
| 102 102 | 
             
                      try {
         | 
| 103 | 
            +
                        console.log('running healthcheck')
         | 
| 103 104 | 
             
                        if (oauthClient) {
         | 
| 104 105 | 
             
                          await oauthClient.__healthCheck();
         | 
| 105 106 | 
             
                        }
         | 
| 106 107 |  | 
| 107 108 | 
             
                        await controller.__healthCheck(configSchema);
         | 
| 108 109 | 
             
                      } catch (e: any) {
         | 
| 110 | 
            +
                        console.log(e)
         | 
| 109 111 | 
             
                        result.ok = false;
         | 
| 110 112 | 
             
                        result.error = e.message;
         | 
| 111 113 | 
             
                      }
         |