Skip to content

Commit

Permalink
update SDK and add web params
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyescobar committed Jun 22, 2022
1 parent 7f7e76c commit 520130c
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 14 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,12 @@ echo(options: { value: string; }) => Promise<{ value: string; }>
### mParticleInit(...)

```typescript
mParticleInit(call: { key: string; production: boolean; }) => Promise<any>
mParticleInit(call: { key: string; production?: boolean; planID?: string; planVer?: number; logLevel?: any; }) => Promise<any>
```

| Param | Type |
| ---------- | -------------------------------------------------- |
| **`call`** | <code>{ key: string; production: boolean; }</code> |
| Param | Type |
| ---------- | ------------------------------------------------------------------------------------------------------ |
| **`call`** | <code>{ key: string; production?: boolean; planID?: string; planVer?: number; logLevel?: any; }</code> |

**Returns:** <code>Promise&lt;any&gt;</code>

Expand Down
Binary file modified android/.gradle/7.0/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified android/.gradle/7.0/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified android/.gradle/7.0/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified android/.gradle/7.0/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified android/.gradle/7.0/javaCompile/javaCompile.lock
Binary file not shown.
Binary file modified android/.gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
4 changes: 2 additions & 2 deletions dist/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
},
{
"name": "mParticleInit",
"signature": "(call: { key: string; production: boolean; }) => Promise<any>",
"signature": "(call: { key: string; production?: boolean; planID?: string; planVer?: number; logLevel?: any; }) => Promise<any>",
"parameters": [
{
"name": "call",
"docs": "",
"type": "{ key: string; production: boolean; }"
"type": "{ key: string; production?: boolean | undefined; planID?: string | undefined; planVer?: number | undefined; logLevel?: any; }"
}
],
"returns": "Promise<any>",
Expand Down
5 changes: 4 additions & 1 deletion dist/esm/definitions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ export interface MParticleCapacitorPlugin {
}>;
mParticleInit(call: {
key: string;
production: boolean;
production?: boolean;
planID?: string;
planVer?: number;
logLevel?: any;
}): Promise<any>;
loginMParticleUser(call: {
email: string;
Expand Down
8 changes: 4 additions & 4 deletions dist/esm/web.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import mParticle from '@mparticle/web-sdk';
export declare class MParticleCapacitorWeb extends WebPlugin implements MParticleCapacitorPlugin {
mParticleInit(call: {
key: string;
production: boolean;
planID: string;
planVer: number;
logLevel: any;
production?: boolean;
planID?: string;
planVer?: number;
logLevel?: any;
}): Promise<any>;
loginMParticleUser(call: {
email: string;
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/web.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export type mParticleInitListener = (info:any) => any;
export interface MParticleCapacitorPlugin {
echo(options: { value: string }): Promise<{ value: string }>;

mParticleInit(call: { key:string, production:boolean } ): Promise<any>;
mParticleInit(call: { key:string, production?:boolean, planID?:string, planVer?:number, logLevel?:any } ): Promise<any>;
loginMParticleUser(call: { email:string, customerId:string } ): Promise<any>;
logoutMParticleUser(call?:any): Promise<any>;

Expand Down
2 changes: 1 addition & 1 deletion src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class MParticleCapacitorWeb
extends WebPlugin
implements MParticleCapacitorPlugin {

async mParticleInit(call: { key:string, production:boolean, planID:string, planVer:number, logLevel:any } ): Promise<any> {
async mParticleInit(call: { key:string, production?:boolean, planID?:string, planVer?:number, logLevel?:any } ): Promise<any> {
const mParticleConfig = {
isDevelopmentMode: !(call.production) || true,
dataPlan: {
Expand Down

0 comments on commit 520130c

Please sign in to comment.