117309b4e8
no-issue Using models internally and in the exported API means that we avoid expensive `toJSON` calls, which affects performance when looping through large lists of members. It also allows us to take advantage of the new relations used in the models. The addition of "ByID" methods for linking stripe customers and setting complimentary subscriptions allows bulk imports to avoid the overhead of creating a model for each members, instead passing an id string. n.b. currently the impl _does_ still create models, but it makes it easier to optimise and refactor in the future. |
||
---|---|---|
.. | ||
lib | ||
test | ||
.eslintrc.js | ||
index.js | ||
package.json | ||
tsconfig.json |