This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Inject, Injectable, Type } from '@nestjs/common'; | |
import { ContextIdFactory, ModuleRef, REQUEST } from '@nestjs/core'; | |
import { ChannelType } from '@social-sprinkler/social-common'; | |
import { Request } from 'express'; | |
import { IPublisher } from './publisher.interface'; | |
import { SOCIAL_CHANNEL_PUBLISHER_SERVICE } from './const'; | |
@Injectable() | |
export class SocialPublisherFactory { | |
@Inject() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Directive, Input, TemplateRef, ViewContainerRef, inject } from '@angular/core'; | |
import { Claims, RolesEnum } from '@org/platform-provider-pattern/domain'; | |
import { jwtClaimsService } from '@org/platform-provider-pattern/ui/data-access'; | |
@Directive({ | |
selector: '[orgClaims]', | |
standalone: true, | |
}) | |
export class ClaimsDirective { | |
protected jwtClaimsService = jwtClaimsService(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# {{DIRECTORY_WITH_EMULATOR}}/cloud-tasks-emulator | |
# -host localhost \ | |
# -port {{PORT}} | |
# -queue | |
# projects/{{PROJECT_NAME}}/locations/{{LOCATION}}/queues/{{QUEUE_NAME}} | |
./tools/emulators/cloud-tasks-emulator | |
-host localhost \ | |
-port 8123 \ | |
-queue projects/dev/locations/global/queues/test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules/ | |
.env | |
.angular/ | |
coverage/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { PoolConnection } from 'promise-mysql'; | |
import { SqlDbPoolService } from '../services/sql-db-pool.service'; | |
export abstract class DbConnectionFactory { | |
private _connection: PoolConnection; | |
constructor(protected dbPool: SqlDbPoolService) { } | |
public async connection(): Promise<PoolConnection> { | |
this._connection = this._connection || await this.dbPool.createConnection(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Inject, Injectable } from '@nestjs/common'; | |
import { KeyManagementServiceClient } from '@google-cloud/kms'; | |
import { ENCRYPTION_CONFIG } from './const'; | |
import { IKmsEncryptionConfig } from './interfaces'; | |
import { IEncryptionService } from '@shared/security-encryption-common'; | |
@Injectable() | |
export class GoogleKmsService implements IEncryptionService { // implements the IEncryptionService interface | |
private keyName: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Injectable() | |
export class OrganizationEffects extends BaseEntityEffects<IOrganization> { | |
// Line 4 is marked as uncovered | |
constructor(protected service: OrganizationService) { | |
super(service, OrganizationActionTypes, OrganizationActionCreators); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | |
import { AppComponent } from './app.component'; | |
import { RouterModule, Routes } from '@angular/router'; | |
import { AngularFireModule } from '@angular/fire/compat'; | |
import { FirebaseOptions } from 'firebase/app'; | |
import { environment } from '../environments/environment'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { interval } from 'rxjs'; | |
interval(5000).subscribe({ | |
// The next value pushed in the stream | |
next: (value: number) => { | |
console.log(`${value} in the stream`); | |
}, | |
// Observable is done emitting values, callback when complete | |
complete: () => console.log('The stream has completed.'), | |
// An Error Occurred in the stream |
NewerOlder