@heroku/salesforce-sdk
Salesforce Function SDK for Node.js
Last updated 3 months ago by jqian .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @heroku/salesforce-sdk 
SYNC missed versions from official npm registry.

CircleCI

Salesforce Function SDK for Node.js

Usage

import * as sdk from 'salesforce-sdk';

export default class HelloFunction {

    private readonly logger: sdk.Logger;

    constructor(private readonly event: any,
                private readonly context: sdk.Context) {
        this.logger = context.logger;
        this.logger.shout(`${this.getName()}.init()`);
    }

    public getName(): string {
        return this.constructor.name;
    }

    public async invoke(): Promise<any>  {
        this.logger.shout(`${this.getName()}.invoke()`);

        const results = await this.context.forceApi.query('SELECT Name FROM Account');
        this.logger.info(JSON.stringify(query));

        return results;
    }
}

Publish salesforce-sdk

salesforce-sdk is published to https://www.npmjs.com/package/@heroku/salesforce-sdk.

Note: Requires access to @heroku/salesforce-sdk.

To publish to @heroku/salesforce-sdk:

  1. Ensure you have latest source locally.
git pull
...
  1. Build & test.
npm run build
...

npm run test
...

Ensure that code coverage meets standards.

  1. Increment version in package.json.

If applicable, can use npm version.

TODO: Decide when to git-tag version.

  1. Publish to npmjs.com.
npm publish
...

May use np, eg:

np 0.0.18-develop.1 --no-release-draft --tag=develop.1 --any-branch
  1. Test and push to repo.
npm install
...

git commit -a -m "<updated-version>"
...

git push
...

TODO: Decide when to git-tag version.

Current Tags

  • 0.0.1-develop.10                                ...           latest (3 months ago)

12 Versions

  • 0.0.1-develop.10                                ...           3 months ago
  • 0.0.1-develop.9                                ...           4 months ago
  • 0.0.1-develop.8                                ...           4 months ago
  • 0.0.1-develop.7.1                                ...           4 months ago
  • 0.0.1-develop.7                                ...           4 months ago
  • 0.0.1-develop.6                                ...           5 months ago
  • 0.0.1-develop.5                                ...           5 months ago
  • 0.0.1-develop.4                                ...           5 months ago
  • 0.0.1-develop.3                                ...           5 months ago
  • 0.0.1-develop.2                                ...           5 months ago
  • 0.0.1-develop.1                                ...           5 months ago
  • 0.0.1                                ...           5 months ago
Maintainers (272)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 7
Dependencies (4)
Dev Dependencies (22)

Copyright 2014 - 2016 © taobao.org |